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 |
|---|---|---|---|---|---|---|
| SWT.FULL_SELECTION ); | | SWT.FULL_SELECTION | SWT.LEFT_TO_RIGHT ); | private void createTextArea( Composite parent ) { IVerticalRuler ruler = null; textViewer = new SourceViewer( parent, ruler, SWT.WRAP | SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION ); textViewer.setDocument( new Document( ) ); textEditor = textViewer.getTextWidget( ); { GridData gd = new GridData( GridData.FILL_BOTH ); gd.horizontalSpan = 3; gd.widthHint = 600; gd.heightHint = 300; textEditor.setLayoutData( gd ); textEditor.setText( oldValue ); textEditor.setFocus( ); textEditor.setFont( JFaceResources.getTextFont( ) ); } textEditor.addKeyListener( new KeyListener( ) { public void keyPressed( KeyEvent e ) { if ( isUndoKeyPress( e ) ) { textViewer.doOperation( ITextOperationTarget.UNDO ); } else if ( isRedoKeyPress( e ) ) { textViewer.doOperation( ITextOperationTarget.REDO ); } } public void keyReleased( KeyEvent e ) { // do nothing } private boolean isUndoKeyPress( KeyEvent e ) { return ( ( e.stateMask & SWT.CONTROL ) > 0 ) && ( ( e.keyCode == 'z' ) || ( e.keyCode == 'Z' ) ); } private boolean isRedoKeyPress( KeyEvent e ) { return ( ( e.stateMask & SWT.CONTROL ) > 0 ) && ( ( e.keyCode == 'y' ) || ( e.keyCode == 'Y' ) ); } } ); textViewer.configure( new SourceViewerConfiguration( ) ); textEditor.invokeAction( ST.TEXT_END ); // create actions for context menu and short cut keys ResourceBundle bundle = ResourceBundle.getBundle( "org.eclipse.birt.report.designer.nls.messages" );//$NON-NLS-1$ final TextEditorAction undoAction = new EBTextAction( bundle, "TextAreaContextMenu.Undo.",//$NON-NLS-1$ textViewer, ITextOperationTarget.UNDO ); undoAction.setAccelerator( SWT.CTRL | 'Z' ); final TextEditorAction redoAction = new EBTextAction( bundle, "TextAreaContextMenu.Redo.",//$NON-NLS-1$ textViewer, ITextOperationTarget.REDO ); redoAction.setAccelerator( SWT.CTRL | 'Y' ); final TextEditorAction cutAction = new EBTextAction( bundle, "TextAreaContextMenu.Cut.",//$NON-NLS-1$ textViewer, ITextOperationTarget.CUT ); cutAction.setAccelerator( SWT.CTRL | 'X' ); final TextEditorAction copyAction = new EBTextAction( bundle, "TextAreaContextMenu.Copy.",//$NON-NLS-1$ textViewer, ITextOperationTarget.COPY ); copyAction.setAccelerator( SWT.CTRL | 'C' ); final TextEditorAction pasteAction = new EBTextAction( bundle, "TextAreaContextMenu.Paste.",//$NON-NLS-1$ textViewer, ITextOperationTarget.PASTE ); pasteAction.setAccelerator( SWT.CTRL | 'V' ); final TextEditorAction selectAllAction = new EBTextAction( bundle, "TextAreaContextMenu.SelectAll.",//$NON-NLS-1$ textViewer, ITextOperationTarget.SELECT_ALL ); selectAllAction.setAccelerator( SWT.CTRL | 'A' ); // Create context menu MenuManager menuMgr = new MenuManager( "#EB Context" );//$NON-NLS-1$ menuMgr.setRemoveAllWhenShown( true ); menuMgr.addMenuListener( new IMenuListener( ) { public void menuAboutToShow( IMenuManager menuManager ) { menuManager.add( new Separator( ITextEditorActionConstants.GROUP_UNDO ) ); menuManager.add( new Separator( ITextEditorActionConstants.GROUP_COPY ) ); menuManager.add( new Separator( ITextEditorActionConstants.GROUP_EDIT ) ); menuManager.add( new Separator( ITextEditorActionConstants.GROUP_REST ) ); undoAction.update( ); redoAction.update( ); copyAction.update( ); cutAction.update( ); pasteAction.update( ); selectAllAction.update( ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_UNDO, undoAction ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_UNDO, redoAction ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_COPY, cutAction ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_COPY, copyAction ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_COPY, pasteAction ); menuManager.appendToGroup( ITextEditorActionConstants.GROUP_EDIT, selectAllAction ); IAction action = new Action( ACTION_TEXT_FORMAT_NUMBER ) { public boolean isEnabled( ) { return formatChoicer.getSelectionIndex( ) == FORMAT_CHOICE_INDEX_DYNAMIC_TEXT; } public void run( ) { insertFormat( FormatBuilder.NUMBER ); } }; menuManager.appendToGroup( ITextEditorActionConstants.GROUP_REST, action ); action = new Action( ACTION_TEXT_FORMAT_STRING ) { public boolean isEnabled( ) { return formatChoicer.getSelectionIndex( ) == FORMAT_CHOICE_INDEX_DYNAMIC_TEXT; } public void run( ) { insertFormat( FormatBuilder.STRING ); } }; menuManager.appendToGroup( ITextEditorActionConstants.GROUP_REST, action ); action = new Action( ACTION_TEXT_FORMAT_DATE_TIME ) { public boolean isEnabled( ) { return formatChoicer.getSelectionIndex( ) == FORMAT_CHOICE_INDEX_DYNAMIC_TEXT; } public void run( ) { insertFormat( FormatBuilder.DATETIME ); } }; menuManager.appendToGroup( ITextEditorActionConstants.GROUP_REST, action ); action = new Action( ACTION_TEXT_EDIT_DYNAMIC_TEXT ) { public boolean isEnabled( ) { return formatChoicer.getSelectionIndex( ) == FORMAT_CHOICE_INDEX_DYNAMIC_TEXT; } public void run( ) { ExpressionBuilder eb = new ExpressionBuilder( textEditor.getSelectionText( ) ); //$NON-NLS-1$ eb.setExpressionProvier( new ExpressionProvider( handle ) ); if ( eb.open( ) == OK ) { if ( !eb.getResult( ).equals( "" ) ) //$NON-NLS-1$ { textEditor.insert( eb.getResult( ) ); } } } }; menuManager.appendToGroup( ITextEditorActionConstants.GROUP_REST, action ); } } ); textEditor.setMenu( menuMgr.createContextMenu( textEditor ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9919375241cd4aa989d714df256d697a372b363a/TextEditor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/TextEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
1528,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
45,
15704,
54,
17040,
436,
17040,
273,
446,
31,
202,
202,
955,
18415,
273,
394,
4998,
18415,
12,
982,
16,
436,
17040,
16,
348,
8588,
18,
27664,
9506,
202,
96,
348,
8588,
18,
26588,
9506,
202,
96,
348,
8588,
18,
38,
7954,
9506,
202,
96,
348,
8588,
18,
44,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
11272,
202,
202,
955,
18415,
18,
542,
2519,
12,
394,
4319,
12,
262,
11272,
202,
202,
955,
6946,
273,
977,
18415,
18,
588,
1528,
4609,
12,
11272,
202,
202,
95,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
11272,
1082,
202,
19016,
18,
18396,
6952,
273,
890,
31,
1082,
202,
19016,
18,
2819,
7002,
273,
14707,
31,
1082,
202,
19016,
18,
4210,
7002,
273,
11631,
31,
1082,
202,
955,
6946,
18,
542,
3744,
751,
12,
15551,
11272,
1082,
202,
955,
6946,
18,
542,
1528,
12,
11144,
11272,
1082,
202,
955,
6946,
18,
542,
9233,
12,
11272,
1082,
202,
955,
6946,
18,
542,
5711,
12,
804,
11824,
3805,
18,
588,
1528,
5711,
12,
262,
11272,
202,
202,
97,
202,
202,
955,
6946,
18,
1289,
653,
2223,
12,
394,
1929,
2223,
12,
262,
288,
1082,
202,
482,
918,
498,
24624,
12,
23737,
425,
262,
1082,
202,
95,
9506,
202,
430,
261,
20488,
2896,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
1528,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
45,
15704,
54,
17040,
436,
17040,
273,
446,
31,
202,
202,
955,
18415,
273,
394,
4998,
18415,
12,
982,
16,
436,
17040,
16,
348,
8588,
18,
27664,
9506,
202,
96,
348,
8588,
18,
26588,
9506,
202,
96,
348,
8588,
18,
38,
7954,
9506,
202,
96,
348,
8588,
18,
44,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
11272,
202,
202,
955,
18415,
18,
542,
2519,
12,
394,
4319,
12,
262,
11272,
202,
202,
955,
6946,
273,
977,
18415,
18,
588,
1528,
4609,
12,
11272,
202,
202,
95,
1082,
202,
2
] |
return booleanValue ? Boolean.TRUE : Boolean.FALSE; | return wrap_boolean(booleanValue); | public Object getDefaultValue(Class typeHint) { // This is actually non-ECMA, but will be proposed // as a change in round 2. if (typeHint == ScriptRuntime.BooleanClass) return booleanValue ? Boolean.TRUE : Boolean.FALSE; return super.getDefaultValue(typeHint); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/5199af305119ce6bc1706da9df0efe90859c2359/NativeBoolean.java/clean/js/rhino/org/mozilla/javascript/NativeBoolean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
19569,
12,
797,
618,
7002,
13,
288,
3639,
368,
1220,
353,
6013,
1661,
17,
7228,
5535,
16,
1496,
903,
506,
20084,
3639,
368,
487,
279,
2549,
316,
3643,
576,
18,
3639,
309,
261,
723,
7002,
422,
7739,
5576,
18,
5507,
797,
13,
202,
565,
327,
2193,
67,
6494,
12,
6494,
620,
1769,
3639,
327,
2240,
18,
588,
15646,
12,
723,
7002,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
19569,
12,
797,
618,
7002,
13,
288,
3639,
368,
1220,
353,
6013,
1661,
17,
7228,
5535,
16,
1496,
903,
506,
20084,
3639,
368,
487,
279,
2549,
316,
3643,
576,
18,
3639,
309,
261,
723,
7002,
422,
7739,
5576,
18,
5507,
797,
13,
202,
565,
327,
2193,
67,
6494,
12,
6494,
620,
1769,
3639,
327,
2240,
18,
588,
15646,
12,
723,
7002,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mediumPriorityButton.setMnemonic('M'); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); sourceUpButton = new javax.swing.JButton(); sourceDownButton = new javax.swing.JButton(); classpathUpButton = new javax.swing.JButton(); classpathDownButton = new javax.swing.JButton(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); urlLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); logoLabel = new javax.swing.JLabel(); growBoxSpacer = new javax.swing.JLabel(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); recentProjectsMenu = new javax.swing.JMenu(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator9 = new javax.swing.JSeparator(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); lowPriorityButton.setText(L10N.getLocalString("menu.lowpriority_item", "Low Priority")); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); jSeparator8 = new javax.swing.JSeparator(); viewProjectItem = new javax.swing.JRadioButtonMenuItem(); viewBugsItem = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); jarFileLabel.setText(L10N.getLocalString("dlg.jarfile_lbl", "Archive or Directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); addJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); addJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); addJarButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); jarFileListLabel.setText(L10N.getLocalString("dlg.jarlist_lbl", "Archives/Directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); sourceDirLabel.setText(L10N.getLocalString("dlg.srcfile_lbl", "Source directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); sourceDirListLabel.setText(L10N.getLocalString("dlg.srclist_lbl", "Source directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeJarButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseJarButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 8; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); editProjectLabel.setText(L10N.getLocalString("dlg.project_lbl", "Project")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 21; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 14; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); classpathEntryLabel.setText(L10N.getLocalString("dlg.classpathfile_lbl", "Classpath entry:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); classpathEntryListLabel.setText(L10N.getLocalString("dlg.classpathlist_lbl", "Classpath entries:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 15; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 15; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 16; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 20; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); sourceUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceUpButton.setText("Up"); sourceUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); sourceUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.weighty = 0.2; editProjectPanel.add(sourceUpButton, gridBagConstraints); sourceDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDownButton.setText("Down"); sourceDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); sourceDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 11; editProjectPanel.add(sourceDownButton, gridBagConstraints); classpathUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathUpButton.setText("Up"); classpathUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); classpathUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 17; gridBagConstraints.weighty = 0.2; editProjectPanel.add(classpathUpButton, gridBagConstraints); classpathDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathDownButton.setText("Down"); classpathDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); classpathDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 18; editProjectPanel.add(classpathDownButton, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextArea.setEnabled(false); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); { equalizeControls(new JComponent[] { browseJarButton, browseSrcDirButton, browseClasspathEntryButton, addJarButton, addSourceDirButton, addClasspathEntryButton, removeJarButton, removeSrcDirButton, removeClasspathEntryButton, sourceUpButton, sourceDownButton, classpathUpButton, classpathDownButton }); groupByTabbedPane.setTitleAt(0, L10N.getLocalString("dlg.byclass_tab", "By Class")); groupByTabbedPane.setTitleAt(1, L10N.getLocalString("dlg.bypackage_tab", "By Package")); groupByTabbedPane.setTitleAt(2, L10N.getLocalString("dlg.bybugtype_tab", "By Bug Type")); groupByTabbedPane.setTitleAt(3, L10N.getLocalString("dlg.summary_tab", "Summary")); bugDetailsTabbedPane.setTitleAt(0, L10N.getLocalString("dlg.details_tab", "Details")); bugDetailsTabbedPane.setTitleAt(1, L10N.getLocalString("dlg.sourcecode_tab", "Source Code")); bugDetailsTabbedPane.setTitleAt(2, L10N.getLocalString("dlg.annotations_tab", "Annotations")); } consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http://findbugs.sourceforge.net/"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); getContentPane().add(urlLabel, gridBagConstraints); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); jPanel1.add(logoLabel); growBoxSpacer.setMaximumSize(new java.awt.Dimension(16, 16)); jPanel1.add(growBoxSpacer); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); getContentPane().add(jPanel1, gridBagConstraints); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setText(L10N.getLocalString("menu.file_menu", "File")); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.setText(L10N.getLocalString("menu.new_item", "New Project")); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project..."); openProjectItem.setText(L10N.getLocalString("menu.open_item", "Open Project...")); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); recentProjectsMenu.setMnemonic('E'); recentProjectsMenu.setText("Recent Projects"); recentProjectsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); recentProjectsMenu.setText(L10N.getLocalString("menu.recent_menu", "Recent Projects...")); rebuildRecentProjectsMenu(); fileMenu.add(recentProjectsMenu); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); closeProjectItem.setText(L10N.getLocalString("menu.close_item", "Close")); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator9); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save Project"); saveProjectItem.setText(L10N.getLocalString("menu.save_item", "Save Project")); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setMnemonic('A'); saveProjectAsItem.setText("Save Project As..."); saveProjectAsItem.setText(L10N.getLocalString("menu.saveas_item", "Save Project As...")); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setMnemonic('R'); reloadProjectItem.setText("Reload Project"); reloadProjectItem.setText(L10N.getLocalString("menu.reload_item", "Reload Project")); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setMnemonic('L'); loadBugsItem.setText("Load Bugs..."); loadBugsItem.setText(L10N.getLocalString("menu.loadbugs_item", "Load Bugs...")); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setMnemonic('B'); saveBugsItem.setText("Save Bugs"); saveBugsItem.setText(L10N.getLocalString("menu.savebugs_item", "Save Bugs...")); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.setText(L10N.getLocalString("menu.exit_item", "Exit")); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewMenu.setText(L10N.getLocalString("menu.view_menu", "View")); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setText("Console"); viewConsoleItem.setText(L10N.getLocalString("menu.console_item", "Console")); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setMnemonic('D'); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); viewBugDetailsItem.setText(L10N.getLocalString("menu.bugdetails_item", "Bug Details")); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setMnemonic('F'); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); fullDescriptionsItem.setText(L10N.getLocalString("menu.fulldescriptions_item", "Full Descriptions")); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setMnemonic('L'); lowPriorityButton.setText("Low Priority"); lowPriorityButton.setText(L10N.getLocalString("menu.lowpriority_item", "Low Priority")); lowPriorityButton.setSelected(priorityThreshold == Detector.LOW_PRIORITY); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); viewMenu.add(lowPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setMnemonic('M'); mediumPriorityButton.setText("Medium Priority"); mediumPriorityButton.setText(L10N.getLocalString("menu.mediumpriority_item", "Medium Priority")); mediumPriorityButton.setSelected(priorityThreshold == Detector.NORMAL_PRIORITY); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); viewMenu.add(mediumPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setMnemonic('H'); highPriorityButton.setText("High Priority"); highPriorityButton.setText(L10N.getLocalString("menu.highpriority_item", "High Priority")); highPriorityButton.setSelected(priorityThreshold == Detector.HIGH_PRIORITY); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); viewMenu.add(highPriorityButton); viewMenu.add(jSeparator8); viewProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewProjectItem.setText("View Project Details"); viewProjectItem.setEnabled(false); viewProjectItem.setText(L10N.getLocalString("menu.viewprojectdetails_item", "View Project Details")); viewProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewProjectItemActionPerformed(evt); } }); viewMenu.add(viewProjectItem); viewBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugsItem.setText("View Bugs"); viewBugsItem.setEnabled(false); viewBugsItem.setText(L10N.getLocalString("menu.viewbugs_item", "View Bugs")); viewBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugsItemActionPerformed(evt); } }); viewMenu.add(viewBugsItem); theMenuBar.add(viewMenu); settingsMenu.setMnemonic('S'); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); settingsMenu.setText(L10N.getLocalString("menu.settings_menu", "Settings")); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setMnemonic('C'); configureDetectorsItem.setText("Configure Detectors..."); configureDetectorsItem.setText(L10N.getLocalString("menu.configure_item", "Configure Detectors")); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); theMenuBar.add(settingsMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); helpMenu.setText(L10N.getLocalString("menu.help_menu", "Help")); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About..."); aboutItem.setText(L10N.getLocalString("menu.about_item", "About...")); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fb9db786c49e8a31baf12894ef55b2c9ce521f5b/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
202,
202,
6290,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
202,
202,
8698,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
202,
202,
1945,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
5531,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
6006,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
4619,
4109,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
11930,
812,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
11930,
461,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
202,
202,
1289,
10813,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
11930,
26098,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
3168,
1621,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
4816,
1621,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
202,
202,
1289,
1830,
1621,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
3168,
1621,
682,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
4479,
10813,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
4479,
7740,
1621,
3616,
273,
394,
6863,
18,
5328,
310,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
202,
202,
6290,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
202,
202,
8698,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
202,
202,
1945,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
5531,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
6006,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
4619,
4109,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
11930,
812,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
11930,
461,
16157,
273,
2
] | |
return getBoolean(defaultProperties, name); } | return getBoolean(defaultProperties, name); } | public boolean getDefaultBoolean(String name) { return getBoolean(defaultProperties, name);} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/be95edd129a1deef61176d5d63fd605f9dfe18a5/PreferenceStore.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
4829,
5507,
12,
780,
508,
13,
288,
202,
2463,
12835,
12,
1886,
2297,
16,
508,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
4829,
5507,
12,
780,
508,
13,
288,
202,
2463,
12835,
12,
1886,
2297,
16,
508,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String messageType = lis.readLine(64, 64, true); | String messageType = lis.readLine(128, 128, true); | public void realRun() throws IOException { InputStream is = handler.sock.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); boolean firstMessage = true; while(true) { SimpleFieldSet fs; // Read a message String messageType = lis.readLine(64, 64, true); if(messageType == null) { is.close(); return; } if(messageType.equals("")) continue; fs = new SimpleFieldSet(lis, 4096, 128, true, false, true); FCPMessage msg; try { msg = FCPMessage.create(messageType, fs, handler.bf, handler.server.node.persistentTempBucketFactory); if(msg == null) continue; } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } if(firstMessage && !(msg instanceof ClientHelloMessage)) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.CLIENT_HELLO_MUST_BE_FIRST_MESSAGE, true, null, null); handler.outputHandler.queue(err); handler.close(); continue; } if(msg instanceof BaseDataCarryingMessage) { // FIXME tidy up - coalesce with above and below try { } catch (MIE) {}'s? try { ((BaseDataCarryingMessage)msg).readFrom(lis, handler.bf, handler.server); } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } } if((!firstMessage) && (msg instanceof ClientHelloMessage)) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.NO_LATE_CLIENT_HELLOS, false, null, null); handler.outputHandler.queue(err); continue; } try { msg.run(handler, handler.server.node); } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } firstMessage = false; if(handler.isClosed()) return; } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/98127b0a349166731e56c04ded862ab411b7127d/FCPConnectionInputHandler.java/clean/src/freenet/node/fcp/FCPConnectionInputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
9506,
202,
6494,
1122,
1079,
273,
638,
31,
9506,
202,
17523,
12,
3767,
13,
288,
1082,
202,
5784,
974,
694,
2662,
31,
1082,
202,
759,
2720,
279,
883,
1082,
202,
780,
22402,
273,
328,
291,
18,
896,
1670,
12,
1105,
16,
5178,
16,
638,
1769,
1082,
202,
430,
12,
2150,
559,
422,
446,
13,
288,
9506,
202,
291,
18,
4412,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
12,
2150,
559,
18,
14963,
2932,
6,
3719,
1324,
31,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
80,
291,
16,
16797,
16,
8038,
16,
638,
16,
629,
16,
638,
1769,
1082,
202,
42,
4258,
1079,
1234,
31,
1082,
202,
698,
288,
9506,
202,
3576,
273,
478,
4258,
1079,
18,
2640,
12,
2150,
559,
16,
2662,
16,
1838,
18,
17156,
16,
1838,
18,
3567,
18,
2159,
18,
19393,
7185,
4103,
1733,
1769,
9506,
202,
430,
12,
3576,
422,
446,
13,
1324,
31,
1082,
202,
97,
1044,
261,
1079,
1941,
503,
425,
13,
288,
9506,
202,
42,
4258,
1079,
393,
273,
394,
4547,
14935,
12,
73,
18,
8373,
1085,
16,
629,
16,
425,
18,
24906,
9334,
425,
18,
6392,
1769,
9506,
202,
4176,
18,
2844,
1503,
18,
4000,
12,
370,
1769,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
9506,
202,
6494,
1122,
1079,
273,
638,
31,
9506,
202,
17523,
12,
3767,
13,
288,
1082,
202,
5784,
974,
694,
2662,
31,
1082,
202,
759,
2720,
279,
883,
1082,
202,
780,
22402,
273,
328,
291,
18,
896,
1670,
12,
1105,
16,
5178,
16,
638,
1769,
1082,
202,
430,
12,
2150,
559,
422,
446,
13,
288,
9506,
202,
291,
18,
4412,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
12,
2150,
559,
18,
14963,
2932,
6,
3719,
1324,
31,
1082,
2
] |
(zone_letter >= 'V')) north100k += 2000000; | (zone_letter >= 'V')) { north100k += 2000000; if (DEBUG) Debug.output(" northing rolled over 54, adding 200k to " + north100k); } | protected void decode(String mgrsString) throws NumberFormatException { if (mgrsString == null || mgrsString.length() == 0) { throw new NumberFormatException("MGRSPoint coverting from nothing"); } int length = mgrsString.length(); String hunK = null; String seasting = null; String snorthing = null; StringBuffer sb = new StringBuffer(); char testChar; int i = 0; // get Zone number while (!Character.isLetter(testChar = mgrsString.charAt(i))) { if (i > 2) { throw new NumberFormatException("MGRSPoint bad conversion from: " + mgrsString); } sb.append(testChar); i++; } zone_number = Integer.parseInt(sb.toString()); if (i == 0 || i+3 > length) { // A good MGRS string has to be 4-5 digits long, ##AAA/#AAA at least. throw new NumberFormatException("MGRSPoint bad conversion from: " + mgrsString); } zone_letter = mgrsString.charAt(i++); // Should we check the zone letter here? Why not. if (zone_letter <= 'A' || zone_letter == 'B' || zone_letter == 'Y' || zone_letter >= 'Z' || zone_letter == 'I' || zone_letter == 'O') { throw new NumberFormatException("MGRSPoint zone letter " + (char)zone_letter + " not handled: " + mgrsString); } hunK = mgrsString.substring(i, i+=2); int set = get100kSetForZone(zone_number); float east100k = getEastingFromChar(hunK.charAt(0), set); float north100k = getNorthingFromChar(hunK.charAt(1), set); // We have a bug where the northing may be 2000000 too low. How // do we know when to roll over? Every 18 degrees. Q - 3, S - // 5, U - 5, W - 8 if ((zone_letter == 'Q' && north100k < 1700000) || (zone_letter >= 'R')) north100k += 2000000; if ((zone_letter == 'S' && north100k < 3000000) || (zone_letter >= 'T')) north100k += 2000000; if ((zone_letter == 'U' && north100k < 5330000) || (zone_letter >= 'V')) north100k += 2000000; if (zone_letter >= 'X') { north100k += 2000000; if (north100k > 9500000) { // There's a tiny sliver of space that does this... north100k -= 2000000; } } // This (^^) may not be enough, we have to find out // when we cross over a 18 degree line. // calculate the char index for easting/northing separator int remainder = length - i; if (remainder%2 != 0) { throw new NumberFormatException("MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters" + mgrsString); } int sep = remainder / 2; float sepEasting = 0f; float sepNorthing = 0f; if (sep > 0) { float accuracyBonus = 100000f/(float)Math.pow(10, sep); String sepEastingString = mgrsString.substring(i, i + sep); sepEasting = Float.parseFloat(sepEastingString) * accuracyBonus; String sepNorthingString = mgrsString.substring(i + sep); sepNorthing = Float.parseFloat(sepNorthingString) * accuracyBonus; } easting = sepEasting + east100k; northing = sepNorthing + north100k; if (DEBUG) { Debug.output("Decoded " + mgrsString + " as zone number: " + zone_number + ", zone letter: " + zone_letter + ", easting: " + easting + ", northing: " + northing + ", 100k: " + hunK); } } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/0987dcc9f500c0a94d948a61567ec17e956c0f7a/MGRSPoint.java/buggy/src/openmap/com/bbn/openmap/MGRSPoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2495,
12,
780,
13333,
87,
780,
13,
225,
202,
15069,
12100,
288,
202,
430,
261,
13552,
87,
780,
422,
446,
747,
13333,
87,
780,
18,
2469,
1435,
422,
374,
13,
288,
202,
565,
604,
394,
12100,
2932,
49,
6997,
55,
2148,
1825,
1097,
310,
628,
5083,
8863,
202,
97,
202,
474,
769,
273,
13333,
87,
780,
18,
2469,
5621,
202,
780,
366,
318,
47,
273,
446,
31,
202,
780,
695,
689,
310,
273,
446,
31,
202,
780,
4556,
280,
4274,
273,
446,
31,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
3001,
1842,
2156,
31,
202,
474,
277,
273,
374,
31,
202,
759,
336,
10912,
1300,
202,
17523,
16051,
7069,
18,
291,
13938,
12,
3813,
2156,
273,
13333,
87,
780,
18,
3001,
861,
12,
77,
20349,
288,
202,
565,
309,
261,
77,
405,
576,
13,
288,
202,
202,
12849,
394,
12100,
2932,
49,
6997,
55,
2148,
5570,
4105,
628,
30,
315,
397,
13333,
87,
780,
1769,
202,
565,
289,
202,
565,
2393,
18,
6923,
12,
3813,
2156,
1769,
202,
565,
277,
9904,
31,
202,
97,
202,
3486,
67,
2696,
273,
2144,
18,
2670,
1702,
12,
18366,
18,
10492,
10663,
202,
430,
261,
77,
422,
374,
747,
277,
15,
23,
405,
769,
13,
288,
202,
565,
368,
432,
7494,
490,
6997,
55,
533,
711,
358,
506,
1059,
17,
25,
6815,
1525,
16,
7541,
24653,
21067,
24653,
622,
4520,
18,
202,
565,
604,
394,
12100,
2932,
49,
6997,
55,
2148,
5570,
4105,
628,
30,
315,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2495,
12,
780,
13333,
87,
780,
13,
225,
202,
15069,
12100,
288,
202,
430,
261,
13552,
87,
780,
422,
446,
747,
13333,
87,
780,
18,
2469,
1435,
422,
374,
13,
288,
202,
565,
604,
394,
12100,
2932,
49,
6997,
55,
2148,
1825,
1097,
310,
628,
5083,
8863,
202,
97,
202,
474,
769,
273,
13333,
87,
780,
18,
2469,
5621,
202,
780,
366,
318,
47,
273,
446,
31,
202,
780,
695,
689,
310,
273,
446,
31,
202,
780,
4556,
280,
4274,
273,
446,
31,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
3001,
1842,
2156,
31,
202,
474,
277,
273,
374,
31,
202,
759,
336,
10912,
1300,
202,
17523,
16051,
7069,
18,
291,
13938,
12,
3813,
2
] |
for (RepositoryTemplate template : connector.getTemplates()) { if (template.label.equals(text)) { serverUrlEditor.setStringValue(template.repositoryUrl); taskPrefixUrlEditor.setStringValue(template.taskPrefixUrl); newTaskUrlEditor.setStringValue(template.newTaskUrl); getContainer().updateButtons(); return; } } | RepositoryTemplate template = connector.getTemplate(text); if(template != null) { serverUrlEditor.setStringValue(template.repositoryUrl); taskPrefixUrlEditor.setStringValue(template.taskPrefixUrl); newTaskUrlEditor.setStringValue(template.newTaskUrl); getContainer().updateButtons(); return; } | protected void createAdditionalControls(Composite parent) { for (RepositoryTemplate template : connector.getTemplates()) { if (repositoryLabelCombo.indexOf(template.label) == -1) { repositoryLabelCombo.add(template.label); } } repositoryLabelCombo.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { String text = repositoryLabelCombo.getText(); for (RepositoryTemplate template : connector.getTemplates()) { // WebRepositoryTemplate template = // WebRepositoryConnector.getTemplate(repositoryLabelCombo.getText()); if (template.label.equals(text)) { serverUrlEditor.setStringValue(template.repositoryUrl); taskPrefixUrlEditor.setStringValue(template.taskPrefixUrl); newTaskUrlEditor.setStringValue(template.newTaskUrl); getContainer().updateButtons(); return; } } } public void widgetDefaultSelected(SelectionEvent e) { // ignore } }); taskPrefixUrlEditor = new StringFieldEditor("taskPrefixUrl", "Task prefix URL:", StringFieldEditor.UNLIMITED, parent); taskPrefixUrlEditor.setPropertyChangeListener(this); newTaskUrlEditor = new StringFieldEditor("newTaskUrl", "New task URL:", StringFieldEditor.UNLIMITED, parent); newTaskUrlEditor.setPropertyChangeListener(this); if (repository != null) { taskPrefixUrlEditor.setStringValue(repository.getProperty(WebRepositoryConnector.PROPERTY_TASK_PREFIX_URL)); newTaskUrlEditor.setStringValue(repository.getProperty(WebRepositoryConnector.PROPERTY_NEW_TASK_URL)); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/adef57654c0a1a9c13a0fd58052c3a3292920a95/WebRepositorySettingsPage.java/buggy/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/web/WebRepositorySettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
10552,
16795,
12,
9400,
982,
13,
288,
202,
202,
1884,
261,
3305,
2283,
1542,
294,
8703,
18,
588,
8218,
10756,
288,
1082,
202,
430,
261,
9071,
2224,
16156,
18,
31806,
12,
3202,
18,
1925,
13,
422,
300,
21,
13,
288,
9506,
202,
9071,
2224,
16156,
18,
1289,
12,
3202,
18,
1925,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
9071,
2224,
16156,
18,
1289,
6233,
2223,
12,
2704,
12977,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
780,
977,
273,
3352,
2224,
16156,
18,
588,
1528,
5621,
9506,
202,
1884,
261,
3305,
2283,
1542,
294,
8703,
18,
588,
8218,
10756,
288,
6862,
202,
759,
2999,
3305,
2283,
1542,
273,
6862,
202,
759,
2999,
3305,
7487,
18,
588,
2283,
12,
9071,
2224,
16156,
18,
588,
1528,
10663,
6862,
202,
430,
261,
3202,
18,
1925,
18,
14963,
12,
955,
3719,
288,
25083,
202,
3567,
1489,
6946,
18,
542,
19733,
12,
3202,
18,
9071,
1489,
1769,
25083,
202,
4146,
2244,
1489,
6946,
18,
542,
19733,
12,
3202,
18,
4146,
2244,
1489,
1769,
25083,
202,
2704,
2174,
1489,
6946,
18,
542,
19733,
12,
3202,
18,
2704,
2174,
1489,
1769,
25083,
202,
588,
2170,
7675,
2725,
14388,
5621,
25083,
202,
2463,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
482,
918,
3604,
1868,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
759,
2305,
1082,
202,
97,
202,
202,
22938,
202,
202,
4146,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
10552,
16795,
12,
9400,
982,
13,
288,
202,
202,
1884,
261,
3305,
2283,
1542,
294,
8703,
18,
588,
8218,
10756,
288,
1082,
202,
430,
261,
9071,
2224,
16156,
18,
31806,
12,
3202,
18,
1925,
13,
422,
300,
21,
13,
288,
9506,
202,
9071,
2224,
16156,
18,
1289,
12,
3202,
18,
1925,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
9071,
2224,
16156,
18,
1289,
6233,
2223,
12,
2704,
12977,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
780,
977,
273,
3352,
2224,
16156,
18,
588,
1528,
5621,
9506,
202,
1884,
261,
3305,
2283,
1542,
294,
8703,
18,
588,
8218,
10756,
288,
6862,
202,
759,
2
] |
" [pc: 5, pc: 23] local: i index: 2 type: int\n" + " \n" + "}"; | " [pc: 5, pc: 23] local: i index: 2 type: int\n"; | public void test004() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " int i = 6;\n" + " if ((i == 6) \n" + " && !b) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; String expectedOutput = "/* \n" + " * Version (target 1.2) \n" + " * - magic: CAFEBABE\n" + " * - minor: 0\n" + " * - major: 46\n" + " */\n" + "// Compiled from A.java\n" + "public class A extends java.lang.Object {\n" + " \n" + " /* Method descriptor #6 ()V */\n" + " public A();\n" + " /* Stack: 1, Locals: 1 */\n" + " Code attribute:\n" + " 0 aload_0\n" + " 1 invokespecial #9 <Constructor java.lang.Object()>\n" + " 4 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 1]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 5] local: this index: 0 type: A\n" + " \n" + " /* Method descriptor #15 ([Ljava/lang/String;)V */\n" + " public static void main(String[] args);\n" + " /* Stack: 2, Locals: 3 */\n" + " Code attribute:\n" + " 0 iconst_0\n" + " 1 istore_1\n" + " 2 bipush 6\n" + " 4 istore_2\n" + " 5 iload_2\n" + " 6 bipush 6\n" + " 8 if_icmpne 22\n" + " 11 iload_1\n" + " 12 ifne 22\n" + " 15 getstatic #21 <Field java.lang.System#out java.io.PrintStream>\n" + " 18 iload_2\n" + " 19 invokevirtual #27 <Method java.io.PrintStream#println(int arg) void>\n" + " 22 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 3]\n" + " [pc: 2, line: 4]\n" + " [pc: 5, line: 5]\n" + " [pc: 11, line: 6]\n" + " [pc: 15, line: 7]\n" + " [pc: 22, line: 9]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 23] local: args index: 0 type: java/lang/String[]\n" + " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 23] local: i index: 2 type: int\n" + " \n" + "}"; checkClassFile("A", source, expectedOutput); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/33954bbbcb57410dd9650c66d085059854f2f0c2/ClassFileReaderTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
26565,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
1082,
202,
6,
202,
202,
6494,
324,
273,
629,
9747,
82,
6,
397,
1082,
202,
6,
202,
202,
474,
277,
273,
1666,
9747,
82,
6,
397,
1082,
202,
6,
202,
202,
430,
14015,
77,
422,
1666,
13,
521,
82,
6,
397,
1082,
202,
6,
1082,
282,
597,
401,
70,
13,
288,
565,
202,
64,
82,
6,
397,
1082,
202,
6,
1082,
565,
202,
3163,
18,
659,
18,
8222,
12,
77,
20472,
82,
6,
397,
1082,
202,
6,
1082,
282,
289,
64,
82,
6,
397,
1082,
202,
6,
202,
6280,
82,
6,
397,
1082,
202,
6,
1532,
31,
202,
202,
780,
2665,
1447,
273,
1082,
202,
6,
20308,
521,
82,
6,
397,
1875,
202,
6,
380,
4049,
261,
3299,
404,
18,
22,
13,
521,
82,
6,
397,
1875,
202,
6,
380,
300,
8146,
30,
6425,
8090,
38,
2090,
41,
64,
82,
6,
397,
1875,
202,
6,
380,
300,
8439,
30,
374,
64,
82,
6,
397,
1875,
202,
6,
380,
300,
7888,
30,
17077,
64,
82,
6,
397,
1875,
202,
6,
1195,
64,
82,
6,
397,
1875,
202,
6,
759,
25854,
628,
432,
18,
6290,
64,
82,
6,
397,
1875,
202,
6,
482,
667,
432,
3231,
2252,
18,
4936,
18,
921,
18890,
82,
6,
397,
1875,
202,
6,
225,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26565,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
1082,
202,
6,
202,
202,
6494,
324,
273,
629,
9747,
82,
6,
397,
1082,
202,
6,
202,
202,
474,
277,
273,
1666,
9747,
82,
6,
397,
1082,
202,
6,
202,
202,
430,
14015,
77,
422,
1666,
13,
521,
82,
6,
397,
1082,
202,
6,
1082,
282,
597,
401,
70,
13,
288,
565,
202,
64,
82,
6,
397,
1082,
202,
6,
1082,
565,
202,
3163,
18,
659,
18,
8222,
12,
77,
20472,
82,
6,
397,
1082,
202,
6,
1082,
282,
2
] |
return updateCount; | return updateCount; | public int getUpdateCount() { return updateCount; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/1ce8bf79447f0f0fb500a9a74e1b5bc26e417d6e/Sql.java/buggy/src/main/groovy/sql/Sql.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
23866,
1380,
1435,
288,
377,
202,
2463,
1089,
1380,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
23866,
1380,
1435,
288,
377,
202,
2463,
1089,
1380,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setProperties(props); | setProperties(); | public Preemphasizer(String name, String context, SphinxProperties props, AudioSource predecessor) { super(name, context); setProperties(props); this.predecessor = predecessor; } | 48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/e91e15bab808e5ef2a51d5d5a16fcde2dd6e3917/Preemphasizer.java/clean/sphinx4/edu/cmu/sphinx/frontend/Preemphasizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2962,
351,
26377,
1824,
12,
780,
508,
16,
514,
819,
16,
348,
15922,
2297,
3458,
16,
9506,
15045,
1830,
24282,
13,
288,
3639,
2240,
12,
529,
16,
819,
1769,
3639,
23126,
5621,
3639,
333,
18,
1484,
14258,
280,
273,
24282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2962,
351,
26377,
1824,
12,
780,
508,
16,
514,
819,
16,
348,
15922,
2297,
3458,
16,
9506,
15045,
1830,
24282,
13,
288,
3639,
2240,
12,
529,
16,
819,
1769,
3639,
23126,
5621,
3639,
333,
18,
1484,
14258,
280,
273,
24282,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t258 = _t; AST tmp846_AST_in = (AST)_t; | AST __t263 = _t; AST tmp856_AST_in = (AST)_t; | public final void columnformat(AST _t) throws RecognitionException { AST columnformat_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t250 = _t; AST tmp838_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt267=0; _loop267: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORMAT: { AST __t252 = _t; AST tmp839_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t252; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case NOLABELS: { AST tmp840_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case COLUMNFONT: { AST __t253 = _t; AST tmp841_AST_in = (AST)_t; match(_t,COLUMNFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t253; _t = _t.getNextSibling(); break; } case COLUMNDCOLOR: { AST __t254 = _t; AST tmp842_AST_in = (AST)_t; match(_t,COLUMNDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t254; _t = _t.getNextSibling(); break; } case COLUMNBGCOLOR: { AST __t255 = _t; AST tmp843_AST_in = (AST)_t; match(_t,COLUMNBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t255; _t = _t.getNextSibling(); break; } case COLUMNFGCOLOR: { AST __t256 = _t; AST tmp844_AST_in = (AST)_t; match(_t,COLUMNFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t256; _t = _t.getNextSibling(); break; } case COLUMNPFCOLOR: { AST __t257 = _t; AST tmp845_AST_in = (AST)_t; match(_t,COLUMNPFCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t257; _t = _t.getNextSibling(); break; } case LABELFONT: { AST __t258 = _t; AST tmp846_AST_in = (AST)_t; match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t258; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t259 = _t; AST tmp847_AST_in = (AST)_t; match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t259; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t260 = _t; AST tmp848_AST_in = (AST)_t; match(_t,LABELBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t260; _t = _t.getNextSibling(); break; } case LABELFGCOLOR: { AST __t261 = _t; AST tmp849_AST_in = (AST)_t; match(_t,LABELFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t261; _t = _t.getNextSibling(); break; } case LEXAT: { AST __t262 = _t; AST tmp850_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t262; _t = _t.getNextSibling(); break; } case WIDTH: { AST __t264 = _t; AST tmp851_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getFirstChild(); AST tmp852_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t264; _t = _t.getNextSibling(); break; } case WIDTHPIXELS: { AST __t265 = _t; AST tmp853_AST_in = (AST)_t; match(_t,WIDTHPIXELS); _t = _t.getFirstChild(); AST tmp854_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t265; _t = _t.getNextSibling(); break; } case WIDTHCHARS: { AST __t266 = _t; AST tmp855_AST_in = (AST)_t; match(_t,WIDTHCHARS); _t = _t.getFirstChild(); AST tmp856_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t266; _t = _t.getNextSibling(); break; } default: { if ( _cnt267>=1 ) { break _loop267; } else {throw new NoViableAltException(_t);} } } _cnt267++; } while (true); } _t = __t250; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1057,
2139,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1057,
2139,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
26520,
273,
389,
88,
31,
202,
202,
9053,
1853,
28,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
5558,
27,
33,
20,
31,
202,
202,
67,
6498,
5558,
27,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
10449,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
2947,
22,
273,
389,
88,
31,
9506,
202,
9053,
1853,
28,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
7254,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
8692,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
67,
88,
273,
1001,
88,
2947,
22,
31,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
13473,
13545,
30,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1057,
2139,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1057,
2139,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
26520,
273,
389,
88,
31,
202,
202,
9053,
1853,
28,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1630,
67,
9429,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
474,
389,
13085,
5558,
27,
33,
20,
31,
202,
202,
67,
6498,
5558,
27,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
2
] |
AST __t119 = _t; | AST __t124 = _t; | public final void aggregate_opt(AST _t) throws RecognitionException { AST aggregate_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST id1 = null; AST id2 = null; AST id3 = null; AST id4 = null; AST id5 = null; AST id6 = null; AST id7 = null; AST id8 = null; AST id9 = null; AST id10 = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AVERAGE: { AST __t117 = _t; id1 = _t==ASTNULL ? null :(AST)_t; match(_t,AVERAGE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id1, id1, DECIMAL)); } _t = __t117; _t = _t.getNextSibling(); break; } case COUNT: { AST __t119 = _t; id2 = _t==ASTNULL ? null :(AST)_t; match(_t,COUNT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id2, id2, INTEGER)); } _t = __t119; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t121 = _t; id3 = _t==ASTNULL ? null :(AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id3, id3, DECIMAL)); } _t = __t121; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t123 = _t; id4 = _t==ASTNULL ? null :(AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id4, id4, DECIMAL)); } _t = __t123; _t = _t.getNextSibling(); break; } case TOTAL: { AST __t125 = _t; id5 = _t==ASTNULL ? null :(AST)_t; match(_t,TOTAL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id5, id5, DECIMAL)); } _t = __t125; _t = _t.getNextSibling(); break; } case SUBAVERAGE: { AST __t127 = _t; id6 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBAVERAGE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id6, id6, DECIMAL)); } _t = __t127; _t = _t.getNextSibling(); break; } case SUBCOUNT: { AST __t129 = _t; id7 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBCOUNT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id7, id7, DECIMAL)); } _t = __t129; _t = _t.getNextSibling(); break; } case SUBMAXIMUM: { AST __t131 = _t; id8 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBMAXIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id8, id8, DECIMAL)); } _t = __t131; _t = _t.getNextSibling(); break; } case SUBMINIMUM: { AST __t133 = _t; id9 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBMINIMUM); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id9, id9, DECIMAL)); } _t = __t133; _t = _t.getNextSibling(); break; } case SUBTOTAL: { AST __t135 = _t; id10 = _t==ASTNULL ? null :(AST)_t; match(_t,SUBTOTAL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id10, id10, DECIMAL)); } _t = __t135; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
7047,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7047,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
612,
21,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
202,
202,
9053,
612,
23,
273,
446,
31,
202,
202,
9053,
612,
24,
273,
446,
31,
202,
202,
9053,
612,
25,
273,
446,
31,
202,
202,
9053,
612,
26,
273,
446,
31,
202,
202,
9053,
612,
27,
273,
446,
31,
202,
202,
9053,
612,
28,
273,
446,
31,
202,
202,
9053,
612,
29,
273,
446,
31,
202,
202,
9053,
612,
2163,
273,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2204,
2833,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
23454,
273,
389,
88,
31,
1082,
202,
350,
21,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2204,
2833,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
13473,
13545,
30,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7047,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
7047,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
612,
21,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
202,
202,
9053,
612,
23,
273,
446,
31,
202,
202,
9053,
612,
24,
273,
446,
31,
202,
202,
9053,
612,
25,
273,
446,
31,
202,
202,
9053,
612,
26,
273,
446,
31,
202,
202,
9053,
612,
27,
273,
446,
31,
202,
202,
9053,
612,
28,
273,
446,
31,
202,
202,
9053,
612,
29,
273,
446,
31,
202,
202,
9053,
612,
2
] |
List list = new ArrayList(pages); | List list = new ArrayList( pages ); | public void dispose( ) { //dispose page List list = new ArrayList(pages); int size = list.size( ); for (int i=0; i<size; i++) { Object obj =list.get( i ); if (obj instanceof IReportEditorPage) { ((IReportEditorPage)obj).dispose( ); pages.remove( obj ); } } // getSite( ).getWorkbenchWindow( ) // .getPartService( ) // .removePartListener( this ); if ( fPalettePage != null ) { fPalettePage.dispose( ); } if ( outlinePage != null ) { outlinePage.dispose( ); } if ( dataPage != null ) { dataPage.dispose( ); } getSite( ).setSelectionProvider(null ); // remove the mediator listener SessionHandleAdapter.getInstance( ).getMediator( ) .removeGlobalColleague( this ); getModel( ).close( ); super.dispose( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6f2bf55f121981dcb9b70c8145124efef6d7ada0/MultiPageReportEditor.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/ui/editors/MultiPageReportEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
12,
262,
202,
95,
202,
202,
759,
2251,
4150,
1363,
202,
202,
682,
666,
273,
394,
2407,
12,
7267,
1769,
202,
202,
474,
963,
273,
666,
18,
1467,
12,
11272,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
27245,
202,
202,
95,
1082,
202,
921,
1081,
273,
1098,
18,
588,
12,
277,
11272,
1082,
202,
430,
261,
2603,
1276,
467,
4820,
6946,
1964,
13,
1082,
202,
95,
9506,
202,
12443,
45,
4820,
6946,
1964,
13,
2603,
2934,
2251,
4150,
12,
11272,
9506,
202,
7267,
18,
4479,
12,
1081,
11272,
1082,
202,
97,
202,
202,
97,
9506,
202,
759,
11021,
12,
262,
18,
588,
2421,
22144,
3829,
12,
262,
202,
202,
759,
263,
588,
1988,
1179,
12,
262,
202,
202,
759,
263,
4479,
1988,
2223,
12,
333,
11272,
202,
202,
430,
261,
284,
25863,
1964,
480,
446,
262,
202,
202,
95,
1082,
202,
74,
25863,
1964,
18,
2251,
4150,
12,
11272,
202,
202,
97,
202,
202,
430,
261,
16363,
1964,
480,
446,
262,
202,
202,
95,
1082,
202,
25134,
1964,
18,
2251,
4150,
12,
11272,
202,
202,
97,
202,
202,
430,
261,
501,
1964,
480,
446,
262,
202,
202,
95,
1082,
202,
892,
1964,
18,
2251,
4150,
12,
11272,
202,
202,
97,
202,
202,
588,
4956,
12,
262,
18,
542,
6233,
2249,
12,
2011,
11272,
202,
202,
759,
1206,
326,
6735,
10620,
2991,
202,
202,
2157,
3259,
4216,
18,
588,
1442,
12,
262,
18,
588,
13265,
10620,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15825,
12,
262,
202,
95,
202,
202,
759,
2251,
4150,
1363,
202,
202,
682,
666,
273,
394,
2407,
12,
7267,
1769,
202,
202,
474,
963,
273,
666,
18,
1467,
12,
11272,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
27245,
202,
202,
95,
1082,
202,
921,
1081,
273,
1098,
18,
588,
12,
277,
11272,
1082,
202,
430,
261,
2603,
1276,
467,
4820,
6946,
1964,
13,
1082,
202,
95,
9506,
202,
12443,
45,
4820,
6946,
1964,
13,
2603,
2934,
2251,
4150,
12,
11272,
9506,
202,
7267,
18,
4479,
12,
1081,
11272,
1082,
202,
97,
202,
202,
97,
9506,
202,
759,
11021,
12,
262,
18,
588,
2421,
22144,
3829,
12,
262,
2
] |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/b1293eda8454686e846e2a9837b348e2983bb423/ZSuperNode.java/buggy/src/org/jruby/ast/ZSuperNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.setUserObject(artifact.getName()) ; | treeModel.reload(this) ; | public void update (Observable _observable, Object _observer) { this.setUserObject(artifact.getName()) ; } | 12231 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12231/9f6042d11539358e55b16db9f104acb673b76978/ArtifactTreeNode.java/buggy/PSI/src/ui/tree/ArtifactTreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
261,
15279,
389,
12199,
16845,
16,
1033,
389,
30971,
13,
202,
95,
202,
202,
2211,
18,
542,
1299,
921,
12,
17706,
18,
17994,
10756,
274,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1089,
261,
15279,
389,
12199,
16845,
16,
1033,
389,
30971,
13,
202,
95,
202,
202,
2211,
18,
542,
1299,
921,
12,
17706,
18,
17994,
10756,
274,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
testCase = new MockObjectSupportTestCase(name) { }; | testCase = new MockObjectSupportTestCase(name) { }; | public void testCanBeConstructedWithAName() { String name = "NAME"; testCase = new MockObjectSupportTestCase(name) { }; assertEquals("name", name, testCase.getName()); } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/MockObjectSupportTestCaseTest.java/buggy/jmock/core/src/test/jmock/core/MockObjectSupportTestCaseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2568,
1919,
7249,
329,
1190,
37,
461,
1435,
288,
202,
202,
780,
508,
273,
315,
1985,
14432,
202,
202,
3813,
2449,
273,
394,
7867,
921,
6289,
4709,
2449,
12,
529,
13,
202,
202,
95,
202,
202,
20451,
202,
202,
11231,
8867,
2932,
529,
3113,
508,
16,
1842,
2449,
18,
17994,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1842,
2568,
1919,
7249,
329,
1190,
37,
461,
1435,
288,
202,
202,
780,
508,
273,
315,
1985,
14432,
202,
202,
3813,
2449,
273,
394,
7867,
921,
6289,
4709,
2449,
12,
529,
13,
202,
202,
95,
202,
202,
20451,
202,
202,
11231,
8867,
2932,
529,
3113,
508,
16,
1842,
2449,
18,
17994,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ids[count++] = name; | ids[count++] = getIdName(id); | Object[] getIds(boolean getAll) { Object[] result = super.getIds(getAll); Object[] data = idMapData; if (data != null) { Object[] ids = null; int count = 0; for (int id = getMaximumId(); id != 0; --id) { if (data[id * ID_MULT + VALUE_SHIFT] != NOT_FOUND) { if (getAll || (getAttributes(id) & DONTENUM) == 0) { Object name; if (!CACHE_NAMES) { name = getIdName(id); } else { int offset = id * ID_MULT + NAME_CACHE_SHIFT; name = data[offset]; if (name == null) { name = getIdName(id); data[offset] = name; } } if (count == 0) { // Need extra room for nor more then [1..id] names ids = new Object[id]; } ids[count++] = name; } } } 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; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/d5c6a2fda4600410fcf91dde4a3709ea9429783f/IdScriptable.java/buggy/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,
1033,
8526,
501,
273,
612,
863,
751,
31,
3639,
309,
261,
892,
480,
446,
13,
288,
5411,
1033,
8526,
3258,
273,
446,
31,
5411,
509,
1056,
273,
374,
31,
13491,
364,
261,
474,
612,
273,
25194,
548,
5621,
612,
480,
374,
31,
1493,
350,
13,
288,
7734,
309,
261,
892,
63,
350,
380,
1599,
67,
12845,
397,
5848,
67,
23191,
65,
480,
4269,
67,
9294,
13,
288,
10792,
309,
261,
588,
1595,
747,
261,
588,
2498,
12,
350,
13,
473,
463,
10079,
16509,
13,
422,
374,
13,
288,
13491,
1033,
508,
31,
13491,
309,
16051,
8495,
67,
16257,
13,
288,
18701,
508,
273,
2634,
461,
12,
350,
1769,
13491,
289,
13491,
469,
288,
18701,
509,
1384,
273,
612,
380,
1599,
67,
12845,
397,
6048,
67,
8495,
67,
23191,
31,
18701,
508,
273,
501,
63,
3348,
15533,
18701,
309,
261,
529,
422,
446,
13,
288,
27573,
508,
273,
2634,
461,
12,
350,
1769,
27573,
501,
63,
3348,
65,
273,
508,
31,
18701,
289,
13491,
289,
13491,
309,
261,
1883,
422,
374,
13,
288,
18701,
368,
12324,
2870,
7725,
364,
12517,
1898,
1508,
306,
21,
838,
350,
65,
1257,
18701,
3258,
273,
394,
1033,
63,
350,
15533,
13491,
289,
13491,
3258,
63,
1883,
9904,
65,
273,
2634,
461,
12,
350,
1769,
10792,
289,
7734,
289,
5411,
289,
5411,
309,
261,
1883,
480,
374,
13,
288,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
8526,
501,
273,
612,
863,
751,
31,
3639,
309,
261,
892,
480,
446,
13,
288,
5411,
1033,
8526,
3258,
273,
446,
31,
5411,
509,
1056,
273,
374,
31,
13491,
364,
261,
474,
612,
273,
25194,
548,
5621,
612,
480,
374,
31,
1493,
350,
13,
288,
7734,
309,
261,
892,
63,
350,
380,
1599,
67,
12845,
397,
5848,
67,
23191,
65,
480,
4269,
67,
9294,
13,
288,
10792,
309,
261,
588,
1595,
747,
261,
588,
2498,
12,
350,
13,
473,
463,
10079,
16509,
13,
422,
374,
13,
288,
13491,
1033,
508,
31,
13491,
309,
16051,
2
] |
if (!tokenType.equals(JavaTokenType.PLUSPLUS)) { | if(!tokenType.equals(JavaTokenType.PLUSPLUS)){ | private static boolean isIncrement(PsiStatement statement, PsiLocalVariable var) { if (!(statement instanceof PsiExpressionStatement)) { return false; } PsiExpression exp = ((PsiExpressionStatement) statement).getExpression(); exp = ParenthesesUtils.stripParentheses(exp); if (exp instanceof PsiPrefixExpression) { final PsiPrefixExpression prefixExp = (PsiPrefixExpression) exp; final PsiJavaToken sign = prefixExp.getOperationSign(); if (sign == null) { return false; } final IElementType tokenType = sign.getTokenType(); if (!tokenType.equals(JavaTokenType.PLUSPLUS)) { return false; } final PsiExpression operand = prefixExp.getOperand(); return expressionIsVariableLookup(operand, var); } else if (exp instanceof PsiPostfixExpression) { final PsiPostfixExpression postfixExp = (PsiPostfixExpression) exp; final PsiJavaToken sign = postfixExp.getOperationSign(); if (sign == null) { return false; } final IElementType tokenType = sign.getTokenType(); if (!tokenType.equals(JavaTokenType.PLUSPLUS)) { return false; } final PsiExpression operand = postfixExp.getOperand(); return expressionIsVariableLookup(operand, var); } return false; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
8048,
3702,
12,
52,
7722,
3406,
3021,
16,
453,
7722,
2042,
3092,
569,
13,
288,
3639,
309,
16051,
12,
11516,
1276,
453,
7722,
2300,
3406,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
453,
7722,
2300,
1329,
273,
14015,
52,
7722,
2300,
3406,
13,
3021,
2934,
588,
2300,
5621,
3639,
1329,
273,
453,
10640,
281,
1989,
18,
6406,
17880,
281,
12,
2749,
1769,
3639,
309,
261,
2749,
1276,
453,
7722,
2244,
2300,
13,
288,
5411,
727,
453,
7722,
2244,
2300,
1633,
2966,
273,
261,
52,
7722,
2244,
2300,
13,
1329,
31,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
1633,
2966,
18,
588,
2988,
2766,
5621,
5411,
309,
261,
2977,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
5411,
309,
12,
5,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
18567,
3118,
48,
3378,
3719,
95,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
9886,
273,
1633,
2966,
18,
588,
10265,
5621,
5411,
327,
2652,
2520,
3092,
6609,
12,
4063,
464,
16,
569,
1769,
3639,
289,
469,
309,
261,
2749,
1276,
453,
7722,
24505,
2300,
13,
288,
5411,
727,
453,
7722,
24505,
2300,
18923,
2966,
273,
261,
52,
7722,
24505,
2300,
13,
1329,
31,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
18923,
2966,
18,
588,
2988,
2766,
5621,
5411,
309,
261,
2977,
422,
446,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
467,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
8048,
3702,
12,
52,
7722,
3406,
3021,
16,
453,
7722,
2042,
3092,
569,
13,
288,
3639,
309,
16051,
12,
11516,
1276,
453,
7722,
2300,
3406,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
453,
7722,
2300,
1329,
273,
14015,
52,
7722,
2300,
3406,
13,
3021,
2934,
588,
2300,
5621,
3639,
1329,
273,
453,
10640,
281,
1989,
18,
6406,
17880,
281,
12,
2749,
1769,
3639,
309,
261,
2749,
1276,
453,
7722,
2244,
2300,
13,
288,
5411,
727,
453,
7722,
2244,
2300,
1633,
2966,
273,
261,
52,
7722,
2244,
2300,
13,
1329,
31,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
1633,
2966,
18,
588,
2988,
2766,
5621,
5411,
309,
261,
2977,
422,
446,
13,
288,
2
] |
results = compare(retEnv, tempPath); assertTrue(results); | compareXML(retEnv, tempPath); | public void testRBaseEchoStruct() throws AxisFault { url = "http://soapinterop.java.sun.com:80/round2/base"; soapAction = ""; util = new Round2EchoStructClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunBaseStructRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/SunRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/SunRound2InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
2171,
19704,
3823,
1435,
1216,
15509,
7083,
225,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
6290,
18,
16924,
18,
832,
30,
3672,
19,
2260,
22,
19,
1969,
14432,
3639,
9930,
1803,
273,
1408,
31,
3639,
1709,
273,
394,
11370,
22,
19704,
3823,
1227,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
16924,
2171,
3823,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
2171,
19704,
3823,
1435,
1216,
15509,
7083,
225,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
6290,
18,
16924,
18,
832,
30,
3672,
19,
2260,
22,
19,
1969,
14432,
3639,
9930,
1803,
273,
1408,
31,
3639,
1709,
273,
394,
11370,
22,
19704,
3823,
1227,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
16924,
2171,
3823,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ch.startElement(XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); | ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); | public void readImpl(final PipelineContext pipelineContext, ContentHandler contentHandler) { // Get XForms model and instance, etc. Model model = new Model(pipelineContext, readInputAsDOM4J(pipelineContext, INPUT_MODEL)); Instance instance = new Instance(pipelineContext, readInputAsDOM4J(pipelineContext, INPUT_INSTANCE)); Document controlsDocument = readInputAsDOM4J(pipelineContext, INPUT_CONTROLS); Document eventDocument = readInputAsDOM4J(pipelineContext, INPUT_EVENT); // Extract action element Element actionElement; { String controlId = eventDocument.getRootElement().attributeValue("source-control-id"); String eventName = eventDocument.getRootElement().attributeValue("name"); Map variables = new HashMap(); variables.put("control-id", controlId); variables.put("control-name", eventName); PooledXPathExpression xpathExpression = XPathCache.getXPathExpression(pipelineContext, new DocumentWrapper(controlsDocument, null).wrap(controlsDocument), "/xxf:controls//*[@xxf:id = $control-id]/xf:*[@ev:event = $control-name]", XFORMS_NAMESPACES, variables); try { actionElement = (Element) xpathExpression.evaluateSingle(); if (actionElement == null) throw new OXFException("Cannot find control with id '" + controlId + "' and event '" + eventName + "'."); } catch (XPathException e) { throw new OXFException(e); } finally { if (xpathExpression != null) xpathExpression.returnToPool(); } } // Interpret action interpretAction(pipelineContext, actionElement, instance); // Create resulting document ContentHandlerHelper ch = new ContentHandlerHelper(contentHandler); ch.startDocument(); ch.startElement(XFormsConstants.XXFORMS_NAMESPACE_URI, "event-response"); // Output new controls values ch.startElement(XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); { PooledXPathExpression xpathExpression = XPathCache.getXPathExpression(pipelineContext, new DocumentWrapper(controlsDocument, null).wrap(controlsDocument), "/xxf:controls//(xf:input|xf:secret|xf:textarea|xf:output|xf:upload|xf:range|xf:trigger|xf:submit|xf:select|xf:select1)[@ref]", XFORMS_NAMESPACES); try { for (Iterator i = xpathExpression.evaluate().iterator(); i.hasNext();) { Element controlElement = (Element) i.next(); String controlId = controlElement.attributeValue(new QName("id", XFormsConstants.XXFORMS_NAMESPACE)); String controlValue = getControlValue(pipelineContext, controlElement, instance); ch.element(XFormsConstants.XXFORMS_NAMESPACE_URI, "control", new String[] {"id", controlId, "value", controlValue }); } } catch (XPathException e) { throw new OXFException(e); } finally { if (xpathExpression != null) xpathExpression.returnToPool(); } } ch.endElement(); // Output updated instances ch.startElement(XFormsConstants.XXFORMS_NAMESPACE_URI, "instances"); ch.startElement(XFormsConstants.XXFORMS_NAMESPACE_URI, "instance"); instance.read(new EmbeddedDocumentContentHandler(contentHandler)); ch.endElement(); ch.endElement(); ch.endElement(); ch.endDocument(); } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/d1a98e1cc7e44e6bb6bac4ab822d667eff832f2a/XFormsEvent.java/buggy/src/java/org/orbeon/oxf/processor/xforms/event/XFormsEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
368,
968,
1139,
18529,
938,
471,
791,
16,
5527,
18,
7734,
3164,
938,
273,
394,
3164,
12,
14511,
1042,
16,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
17391,
10019,
7734,
5180,
791,
273,
394,
5180,
12,
14511,
1042,
16,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
13341,
10019,
7734,
4319,
11022,
2519,
273,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
6067,
1457,
3045,
1769,
7734,
4319,
871,
2519,
273,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
10454,
1769,
7734,
368,
8152,
1301,
930,
7734,
3010,
1301,
1046,
31,
7734,
288,
10792,
514,
3325,
548,
273,
871,
2519,
18,
588,
2375,
1046,
7675,
4589,
620,
2932,
3168,
17,
7098,
17,
350,
8863,
10792,
514,
7933,
273,
871,
2519,
18,
588,
2375,
1046,
7675,
4589,
620,
2932,
529,
8863,
10792,
1635,
3152,
273,
394,
4317,
5621,
10792,
3152,
18,
458,
2932,
7098,
17,
350,
3113,
3325,
548,
1769,
10792,
3152,
18,
458,
2932,
7098,
17,
529,
3113,
7933,
1769,
10792,
453,
22167,
14124,
2300,
6748,
2300,
273,
13491,
10172,
1649,
18,
588,
14124,
2300,
12,
14511,
1042,
16,
394,
4319,
3611,
12,
24350,
2519,
16,
446,
2934,
4113,
12,
24350,
2519,
3631,
27573,
2206,
5279,
74,
30,
24350,
759,
14,
14782,
5279,
74,
30,
350,
273,
271,
7098,
17,
350,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
368,
968,
1139,
18529,
938,
471,
791,
16,
5527,
18,
7734,
3164,
938,
273,
394,
3164,
12,
14511,
1042,
16,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
17391,
10019,
7734,
5180,
791,
273,
394,
5180,
12,
14511,
1042,
16,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
13341,
10019,
7734,
4319,
11022,
2519,
273,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
6067,
1457,
3045,
1769,
7734,
4319,
871,
2519,
273,
855,
1210,
1463,
8168,
24,
46,
12,
14511,
1042,
16,
12943,
67,
10454,
1769,
7734,
368,
2
] |
FStat hostFStat(File f) { return new HostFStat(f); } | FStat hostFStat(File f, Object data) { return new HostFStat(f); } | FStat hostFStat(File f) { return new HostFStat(f); } | 4600 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4600/98f786ce8ee1fcd9568d1c367160851d32e1c786/Runtime.java/buggy/src/org/ibex/nestedvm/Runtime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
478,
5000,
1479,
42,
5000,
12,
812,
284,
13,
288,
327,
394,
4893,
42,
5000,
12,
74,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
5000,
1479,
42,
5000,
12,
812,
284,
13,
288,
327,
394,
4893,
42,
5000,
12,
74,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void redoPendingChanges() throws IllegalStateException { | public ITransaction redoPendingChanges() throws IllegalStateException { | public void redoPendingChanges() throws IllegalStateException { while(!_undoneChanges.isEmpty()) { redoPendingChange(); } TransactionEvent event = new TransactionEvent(this); for(ITransactionListener listener: _listeners) { listener.redonePendingChanges(event); } // no need to ask TM to check which pojos are enlisted; they will have // automatically enlisted themselves as necessary } | 13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/438111483ce9161cee6f32d417dc29b21ef1e790/Transaction.java/buggy/trunk/workspace/de.berlios.rcpviewer.domain.runtime/src/de/berlios/rcpviewer/transaction/internal/Transaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24524,
8579,
7173,
1435,
1216,
5477,
288,
202,
202,
17523,
12,
5,
67,
1074,
476,
7173,
18,
291,
1921,
10756,
288,
1082,
202,
1118,
83,
8579,
3043,
5621,
202,
202,
97,
202,
202,
3342,
1133,
871,
273,
394,
5947,
1133,
12,
2211,
1769,
202,
202,
1884,
12,
45,
3342,
2223,
2991,
30,
389,
16072,
13,
288,
1082,
202,
12757,
18,
1118,
476,
8579,
7173,
12,
2575,
1769,
202,
202,
97,
202,
202,
759,
1158,
1608,
358,
6827,
27435,
358,
866,
1492,
293,
6311,
538,
854,
570,
18647,
31,
2898,
903,
1240,
3196,
202,
759,
6635,
570,
18647,
20968,
487,
4573,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
24524,
8579,
7173,
1435,
1216,
5477,
288,
202,
202,
17523,
12,
5,
67,
1074,
476,
7173,
18,
291,
1921,
10756,
288,
1082,
202,
1118,
83,
8579,
3043,
5621,
202,
202,
97,
202,
202,
3342,
1133,
871,
273,
394,
5947,
1133,
12,
2211,
1769,
202,
202,
1884,
12,
45,
3342,
2223,
2991,
30,
389,
16072,
13,
288,
1082,
202,
12757,
18,
1118,
476,
8579,
7173,
12,
2575,
1769,
202,
202,
97,
202,
202,
759,
1158,
1608,
358,
6827,
27435,
358,
866,
1492,
293,
6311,
538,
854,
570,
18647,
31,
2898,
903,
1240,
3196,
202,
759,
6635,
570,
18647,
20968,
487,
4573,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int contentIPD = referenceIPD - getIPIndents(); | public LinkedList getNextKnuthElements(LayoutContext context, int alignment) { LinkedList returnList = new LinkedList(); if (!bBreakBeforeServed) { try { if (addKnuthElementsForBreakBefore(returnList)) { return returnList; } } finally { bBreakBeforeServed = true; } } referenceBPD = context.getStackLimit().opt; referenceIPD = context.getRefIPD(); if (fobj.getInlineProgressionDimension().getOptimum(this).getEnum() != EN_AUTO) { referenceIPD = fobj.getInlineProgressionDimension().getOptimum(this).getLength().getValue(this); } else if( !fobj.isAutoLayout() ) { log.info("table-layout=\"fixed\" and width=\"auto\", but auto-layout not supported " + "=> assuming width=\"100%\""); } if (referenceIPD > context.getRefIPD()) { log.warn("Allocated IPD exceeds available reference IPD"); } int contentIPD = referenceIPD - getIPIndents(); MinOptMax stackSize = new MinOptMax(); //Add spacing if (spaceAfter != null) { stackSize.add(spaceAfter); } if (spaceBefore != null) { stackSize.add(spaceBefore); } // either works out table of column widths or if proportional-column-width function // is used works out total factor, so that value of single unit can be computed. int sumCols = 0; float factors = 0; for (Iterator i = columns.iterator(); i.hasNext(); ) { TableColumn column = (TableColumn) i.next(); Length width = column.getColumnWidth(); sumCols += width.getValue(this); if (width instanceof TableColLength) { factors += ((TableColLength) width).getTableUnits(); } } // sets TABLE_UNITS in case where one or more oldColumns is defined using // proportional-column-width if (sumCols < contentIPD) { if (fobj.getLayoutDimension(PercentBase.TABLE_UNITS).floatValue() == 0.0) { fobj.setLayoutDimension(PercentBase.TABLE_UNITS, (contentIPD - sumCols) / factors); } } LinkedList returnedList = null; LinkedList contentList = new LinkedList(); //Position returnPosition = new NonLeafPosition(this, null); //Body prevLM = null; LayoutContext childLC = new LayoutContext(0); childLC.setStackLimit( MinOptMax.subtract(context.getStackLimit(), stackSize)); childLC.setRefIPD(context.getRefIPD()); if (contentLM == null) { contentLM = new TableContentLayoutManager(this); } returnedList = contentLM.getNextKnuthElements(childLC, alignment); if (childLC.isKeepWithNextPending()) { log.debug("TableContentLM signals pending keep-with-next"); context.setFlags(LayoutContext.KEEP_WITH_NEXT_PENDING); } if (childLC.isKeepWithPreviousPending()) { log.debug("TableContentLM signals pending keep-with-previous"); context.setFlags(LayoutContext.KEEP_WITH_PREVIOUS_PENDING); } //Set index values on elements coming from the content LM Iterator iter = returnedList.iterator(); while (iter.hasNext()) { KnuthElement el = (KnuthElement)iter.next(); notifyPos(el.getPosition()); } log.debug(returnedList); if (returnedList.size() == 1 && ((KnuthElement) returnedList.getFirst()).isPenalty() && ((KnuthPenalty) returnedList.getFirst()).getP() == -KnuthElement.INFINITE) { // a descendant of this block has break-before if (returnList.size() == 0) { // the first child (or its first child ...) has // break-before; // all this block, including space before, will be put in // the // following page //FIX ME //bSpaceBeforeServed = false; } contentList.addAll(returnedList); // "wrap" the Position inside each element // moving the elements from contentList to returnList returnedList = new LinkedList(); wrapPositionElements(contentList, returnList); return returnList; } else { /* if (prevLM != null) { // there is a block handled by prevLM // before the one handled by curLM if (mustKeepTogether() || prevLM.mustKeepWithNext() || curLM.mustKeepWithPrevious()) { // add an infinite penalty to forbid a break between // blocks contentList.add(new KnuthPenalty(0, KnuthElement.INFINITE, false, new Position(this), false)); } else if (!((KnuthElement) contentList.getLast()).isGlue()) { // add a null penalty to allow a break between blocks contentList.add(new KnuthPenalty(0, 0, false, new Position(this), false)); } else { // the last element in contentList is a glue; // it is a feasible breakpoint, there is no need to add // a penalty } }*/ contentList.addAll(returnedList); if (returnedList.size() > 0) { if (((KnuthElement) returnedList.getLast()).isPenalty() && ((KnuthPenalty) returnedList.getLast()).getP() == -KnuthElement.INFINITE) { // a descendant of this block has break-after if (false /*curLM.isFinished()*/) { // there is no other content in this block; // it's useless to add space after before a page break setFinished(true); } returnedList = new LinkedList(); wrapPositionElements(contentList, returnList); return returnList; } } } wrapPositionElements(contentList, returnList); addKnuthElementsForBreakAfter(returnList); setFinished(true); return returnList; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e5e875900e4af10fb0bf6116c552373c4b580edd/TableLayoutManager.java/clean/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10688,
6927,
47,
82,
795,
3471,
12,
3744,
1042,
819,
16,
509,
8710,
13,
288,
7734,
10688,
327,
682,
273,
394,
10688,
5621,
7734,
309,
16051,
70,
7634,
4649,
827,
2155,
13,
288,
5411,
775,
288,
7734,
309,
261,
1289,
47,
82,
795,
3471,
1290,
7634,
4649,
12,
2463,
682,
3719,
288,
10792,
327,
327,
682,
31,
7734,
289,
5411,
289,
3095,
288,
7734,
324,
7634,
4649,
827,
2155,
273,
638,
31,
5411,
289,
3639,
289,
3639,
2114,
38,
21527,
273,
819,
18,
588,
2624,
3039,
7675,
3838,
31,
3639,
2114,
2579,
40,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
309,
261,
27936,
18,
588,
10870,
5491,
285,
8611,
7675,
588,
6179,
2422,
12,
2211,
2934,
588,
3572,
1435,
480,
6693,
67,
18909,
13,
288,
5411,
2114,
2579,
40,
273,
24705,
18,
588,
10870,
5491,
285,
8611,
7675,
588,
6179,
2422,
12,
2211,
2934,
588,
1782,
7675,
24805,
12,
2211,
1769,
3639,
289,
469,
309,
12,
401,
27936,
18,
291,
4965,
3744,
1435,
262,
288,
5411,
613,
18,
1376,
2932,
2121,
17,
6741,
5189,
12429,
2412,
471,
1835,
5189,
6079,
22564,
1496,
3656,
17,
6741,
486,
3260,
315,
397,
8227,
315,
9207,
15144,
1835,
5189,
6625,
9,
8530,
1769,
3639,
289,
3639,
309,
261,
6180,
2579,
40,
405,
819,
18,
588,
1957,
2579,
40,
10756,
288,
5411,
613,
18,
8935,
2932,
29392,
2971,
40,
14399,
2319,
2114,
2971,
40,
8863,
3639,
289,
9079,
5444,
6179,
2747,
2110,
1225,
273,
394,
5444,
6179,
2747,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10688,
6927,
47,
82,
795,
3471,
12,
3744,
1042,
819,
16,
509,
8710,
13,
288,
7734,
10688,
327,
682,
273,
394,
10688,
5621,
7734,
309,
16051,
70,
7634,
4649,
827,
2155,
13,
288,
5411,
775,
288,
7734,
309,
261,
1289,
47,
82,
795,
3471,
1290,
7634,
4649,
12,
2463,
682,
3719,
288,
10792,
327,
327,
682,
31,
7734,
289,
5411,
289,
3095,
288,
7734,
324,
7634,
4649,
827,
2155,
273,
638,
31,
5411,
289,
3639,
289,
3639,
2114,
38,
21527,
273,
819,
18,
588,
2624,
3039,
7675,
3838,
31,
3639,
2114,
2579,
40,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
309,
261,
27936,
18,
588,
10870,
5491,
285,
8611,
7675,
588,
6179,
2422,
12,
2211,
2
] | |
protected StyledText newLayout(Composite composite, int colSpan, String text, String style) { GridData data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = colSpan; StyledText stext; if (style.equalsIgnoreCase(VALUE)) { StyledText styledText = new StyledText(composite, SWT.MULTI | SWT.READ_ONLY); styledText.setFont(TEXT_FONT); styledText.setText(checkText(text)); styledText.setBackground(background); data.horizontalIndent = HORZ_INDENT; styledText.setLayoutData(data); styledText.setEditable(false); styledText.getCaret().setVisible(false); styledText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { StyledText c = (StyledText) e.widget; if (c != null && c.getSelectionCount() > 0) { if (currentSelectedText != null) { if (!c.equals(currentSelectedText)) { currentSelectedText.setSelectionRange(0, 0); } } } currentSelectedText = c; } }); styledText.setMenu( contextMenuManager.createContextMenu(styledText)); stext = styledText; } else if (style.equalsIgnoreCase(PROPERTY)) { StyledText styledText = new StyledText(composite, SWT.MULTI | SWT.READ_ONLY); styledText.setFont(TEXT_FONT); styledText.setText(checkText(text)); styledText.setBackground(background); data.horizontalIndent = HORZ_INDENT; styledText.setLayoutData(data); StyleRange sr = new StyleRange( styledText.getOffsetAtLine(0), text.length(), foreground, background, SWT.BOLD); styledText.setStyleRange(sr); styledText.getCaret().setVisible(false); styledText.setEnabled(false); styledText.setMenu(contextMenuManager.createContextMenu(styledText)); stext = styledText; } else { Composite generalTitleGroup = new Composite(composite, SWT.NONE); generalTitleGroup.setLayoutData( new GridData(GridData.FILL_HORIZONTAL)); generalTitleGroup.setLayoutData(data); GridLayout generalTitleLayout = new GridLayout(); generalTitleLayout.numColumns = 2; generalTitleLayout.marginWidth = 0; generalTitleLayout.marginHeight = 9; generalTitleGroup.setLayout(generalTitleLayout); generalTitleGroup.setBackground(background); Label image = new Label(generalTitleGroup, SWT.NONE); image.setBackground(background); image.setImage( WorkbenchImages.getImage( IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM)); GridData gd = new GridData(GridData.FILL_BOTH); gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING; image.setLayoutData(gd); StyledText titleText = new StyledText(generalTitleGroup, SWT.MULTI | SWT.READ_ONLY); titleText.setText(checkText(text)); titleText.setFont(HEADER_FONT); titleText.setBackground(background); StyleRange sr = new StyleRange( titleText.getOffsetAtLine(0), text.length(), foreground, background, SWT.BOLD); titleText.setStyleRange(sr); titleText.getCaret().setVisible(false); titleText.setEditable(false); titleText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { StyledText c = (StyledText) e.widget; if (c != null && c.getSelectionCount() > 0) { if (currentSelectedText != null) { if (!c.equals(currentSelectedText)) { currentSelectedText.setSelectionRange(0, 0); } } } currentSelectedText = c; } }); // create context menu generalTitleGroup.setMenu( contextMenuManager.createContextMenu(generalTitleGroup)); titleText.setMenu( contextMenuManager.createContextMenu(titleText)); image.setMenu( contextMenuManager.createContextMenu(image)); stext = titleText; } composite.setMenu(contextMenuManager.createContextMenu(composite)); return stext; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/5863a0e5bb8b4443a2fdcf6102d50aae66ef1287/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
934,
93,
1259,
1528,
394,
3744,
12,
9400,
9635,
16,
509,
645,
6952,
16,
514,
977,
16,
1082,
202,
780,
2154,
13,
288,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
16061,
15870,
1769,
202,
202,
892,
18,
18396,
6952,
273,
645,
6952,
31,
7734,
934,
93,
1259,
1528,
384,
408,
31,
202,
202,
430,
261,
4060,
18,
14963,
5556,
12,
4051,
3719,
288,
1082,
202,
24273,
1259,
1528,
16253,
1259,
1528,
273,
9506,
202,
2704,
934,
93,
1259,
1528,
12,
27676,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
6949,
67,
10857,
1769,
1082,
202,
334,
93,
1259,
1528,
18,
542,
5711,
12,
5151,
67,
25221,
1769,
1082,
202,
334,
93,
1259,
1528,
18,
542,
1528,
12,
1893,
1528,
12,
955,
10019,
1082,
202,
334,
93,
1259,
1528,
18,
542,
8199,
12,
9342,
1769,
1082,
202,
892,
18,
18396,
7790,
273,
670,
916,
62,
67,
2356,
2222,
31,
1082,
202,
334,
93,
1259,
1528,
18,
542,
3744,
751,
12,
892,
1769,
1082,
202,
334,
93,
1259,
1528,
18,
542,
15470,
12,
5743,
1769,
1082,
202,
334,
93,
1259,
1528,
18,
588,
39,
20731,
7675,
542,
6207,
12,
5743,
1769,
25083,
202,
334,
93,
1259,
1528,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
6862,
9506,
202,
36,
6618,
9506,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
6862,
202,
24273,
1259,
1528,
276,
273,
261,
24273,
1259,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
93,
1259,
1528,
394,
3744,
12,
9400,
9635,
16,
509,
645,
6952,
16,
514,
977,
16,
1082,
202,
780,
2154,
13,
288,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
16061,
15870,
1769,
202,
202,
892,
18,
18396,
6952,
273,
645,
6952,
31,
7734,
934,
93,
1259,
1528,
384,
408,
31,
202,
202,
430,
261,
4060,
18,
14963,
5556,
12,
4051,
3719,
288,
1082,
202,
24273,
1259,
1528,
16253,
1259,
1528,
273,
9506,
202,
2704,
934,
93,
1259,
1528,
12,
27676,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
6949,
67,
10857,
1769,
1082,
202,
334,
93,
1259,
1528,
18,
542,
5711,
12,
5151,
2
] | ||
deflater.reset(); deflater.setInput(payload, msg.getOffset(), length); deflater.finish(); deflater.deflate(compressed_payload); int compressed_size=deflater.getTotalOut(); | int compressed_size; synchronized(deflater_mutex) { deflater.reset(); deflater.setInput(payload, msg.getOffset(), length); deflater.finish(); deflater.deflate(compressed_payload); compressed_size=deflater.getTotalOut(); } | public void down(Event evt) { if(evt.getType() == Event.MSG) { Message msg=(Message)evt.getArg(); int length=msg.getLength(); // takes offset/length (if set) into account if(length >= min_size) { byte[] payload=msg.getRawBuffer(); // here we get the ref so we can avoid copying byte[] compressed_payload=new byte[length]; deflater.reset(); deflater.setInput(payload, msg.getOffset(), length); deflater.finish(); deflater.deflate(compressed_payload); int compressed_size=deflater.getTotalOut(); byte[] new_payload=new byte[compressed_size]; System.arraycopy(compressed_payload, 0, new_payload, 0, compressed_size); msg.setBuffer(new_payload); msg.putHeader(name, new CompressHeader(length)); if(trace) log.trace("compressed payload from " + length + " bytes to " + compressed_size + " bytes"); } } passDown(evt); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/6c762f484effaa52afe48389cae973135ce0674f/COMPRESS.java/buggy/src/org/jgroups/protocols/COMPRESS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
309,
12,
73,
11734,
18,
588,
559,
1435,
422,
2587,
18,
11210,
13,
288,
5411,
2350,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
5411,
509,
769,
33,
3576,
18,
588,
1782,
5621,
368,
5530,
1384,
19,
2469,
261,
430,
444,
13,
1368,
2236,
5411,
309,
12,
2469,
1545,
1131,
67,
1467,
13,
288,
7734,
1160,
8526,
2385,
33,
3576,
18,
588,
4809,
1892,
5621,
368,
2674,
732,
336,
326,
1278,
1427,
732,
848,
4543,
8933,
7734,
1160,
8526,
8968,
67,
7648,
33,
2704,
1160,
63,
2469,
15533,
7734,
1652,
29082,
18,
6208,
5621,
7734,
1652,
29082,
18,
542,
1210,
12,
7648,
16,
1234,
18,
588,
2335,
9334,
769,
1769,
7734,
1652,
29082,
18,
13749,
5621,
7734,
1652,
29082,
18,
536,
20293,
12,
15385,
67,
7648,
1769,
7734,
509,
8968,
67,
1467,
33,
536,
29082,
18,
588,
5269,
1182,
5621,
7734,
1160,
8526,
394,
67,
7648,
33,
2704,
1160,
63,
15385,
67,
1467,
15533,
7734,
2332,
18,
1126,
3530,
12,
15385,
67,
7648,
16,
374,
16,
394,
67,
7648,
16,
374,
16,
8968,
67,
1467,
1769,
7734,
1234,
18,
542,
1892,
12,
2704,
67,
7648,
1769,
7734,
1234,
18,
458,
1864,
12,
529,
16,
394,
25698,
1864,
12,
2469,
10019,
7734,
309,
12,
5129,
13,
10792,
613,
18,
5129,
2932,
15385,
2385,
628,
315,
397,
769,
397,
315,
1731,
358,
315,
397,
8968,
67,
1467,
397,
315,
1731,
8863,
5411,
289,
3639,
289,
3639,
1342,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2588,
12,
1133,
6324,
13,
288,
3639,
309,
12,
73,
11734,
18,
588,
559,
1435,
422,
2587,
18,
11210,
13,
288,
5411,
2350,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
5411,
509,
769,
33,
3576,
18,
588,
1782,
5621,
368,
5530,
1384,
19,
2469,
261,
430,
444,
13,
1368,
2236,
5411,
309,
12,
2469,
1545,
1131,
67,
1467,
13,
288,
7734,
1160,
8526,
2385,
33,
3576,
18,
588,
4809,
1892,
5621,
368,
2674,
732,
336,
326,
1278,
1427,
732,
848,
4543,
8933,
7734,
1160,
8526,
8968,
67,
7648,
33,
2704,
1160,
63,
2469,
15533,
7734,
1652,
29082,
18,
6208,
5621,
7734,
1652,
29082,
18,
542,
1210,
12,
7648,
16,
1234,
18,
588,
2335,
2
] |
sendURIParseError(sock.getOutputStream(), true); | sendURIParseError(sock.getOutputStream(), true, e); | public static void handle(Socket sock, ToadletContainer container, BucketFactory bf, PageMaker pageMaker) { try { InputStream is = sock.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); while(true) { String firstLine = lis.readLine(32768, 128, false); // ISO-8859-1 or US-ASCII, _not_ UTF-8 if (firstLine == null) { sock.close(); return; } else if (firstLine.equals("")) { continue; } if(Logger.shouldLog(Logger.MINOR, ToadletContextImpl.class)) Logger.minor(ToadletContextImpl.class, "first line: "+firstLine); String[] split = firstLine.split(" "); if(split.length != 3) throw new ParseException("Could not parse request line (split.length="+split.length+"): "+firstLine); if(!split[2].startsWith("HTTP/1.")) throw new ParseException("Unrecognized protocol "+split[2]); URI uri; try { //uri = new URI(URLDecoder.decode(split[1])); uri = new URI(split[1]); } catch (URISyntaxException e) { sendURIParseError(sock.getOutputStream(), true); return; /* } catch (URLEncodedFormatException e) { sendURIParseError(sock.getOutputStream(), true); return; */ } String method = split[0]; MultiValueTable headers = new MultiValueTable(); while(true) { String line = lis.readLine(32768, 128, false); // ISO-8859 or US-ASCII, not UTF-8 if (line == null) { sock.close(); return; } //System.out.println("Length="+line.length()+": "+line); if(line.length() == 0) break; int index = line.indexOf(':'); if (index < 0) { throw new ParseException("Missing ':' in request header field"); } String before = line.substring(0, index).toLowerCase(); String after = line.substring(index+1); after = after.trim(); headers.put(before, after); } boolean shouldDisconnect = shouldDisconnectAfterHandled(split[2].equals("HTTP/1.0"), headers); ToadletContextImpl ctx = new ToadletContextImpl(sock, headers, container.getCSSName(), bf, pageMaker); ctx.shouldDisconnect = shouldDisconnect; /* * if we're handling a POST, copy the data into a bucket now, * before we go into the redirect loop */ Bucket data; if(method.equals("POST")) { String slen = (String) headers.get("content-length"); if(slen == null) { sendError(sock.getOutputStream(), 400, "No content-length in POST", true, null); return; } long len; try { len = Integer.parseInt(slen); if(len < 0) throw new NumberFormatException("content-length less than 0"); } catch (NumberFormatException e) { sendError(sock.getOutputStream(), 400, "content-length parse error: "+e, true, null); return; } data = bf.makeBucket(len); BucketTools.copyFrom(data, is, len); } else { // we're not doing to use it, but we have to keep // the compiler happy data = null; } // Handle it. boolean redirect = true; while (redirect) { // don't go around the loop unless set explicitly redirect = false; Toadlet t = container.findToadlet(uri); if(t == null) { ctx.sendNoToadletError(shouldDisconnect); break; } if(method.equals("GET")) { try { t.handleGet(uri, ctx); ctx.close(); } catch (RedirectException re) { uri = re.newuri; redirect = true; } } else if(method.equals("PUT")) { try { t.handlePut(uri, null, ctx); ctx.close(); } catch (RedirectException re) { uri = re.newuri; redirect = true; } } else if(method.equals("POST")) { try { t.handlePost(uri, data, ctx); } catch (RedirectException re) { uri = re.newuri; redirect = true; } } else { ctx.sendMethodNotAllowed(method, shouldDisconnect); ctx.close(); } } if(shouldDisconnect) { sock.close(); return; } } } catch (ParseException e) { try { sendError(sock.getOutputStream(), 400, "Parse error: "+e.getMessage(), true, null); } catch (IOException e1) { // Ignore } } catch (TooLongException e) { try { sendError(sock.getOutputStream(), 400, "Line too long parsing headers", true, null); } catch (IOException e1) { // Ignore } } catch (IOException e) { return; } catch (ToadletContextClosedException e) { Logger.error(ToadletContextImpl.class, "ToadletContextClosedException while handling connection!"); return; } } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b8bc833a6de62d6bbd53148d84f75b8e34f3076d/ToadletContextImpl.java/buggy/src/freenet/clients/http/ToadletContextImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
12,
4534,
7313,
16,
2974,
361,
1810,
2170,
1478,
16,
7408,
1733,
16222,
16,
3460,
12373,
1363,
12373,
13,
288,
202,
202,
698,
288,
1082,
202,
4348,
353,
273,
7313,
18,
588,
4348,
5621,
25083,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
25083,
202,
17523,
12,
3767,
13,
288,
6862,
9506,
202,
780,
24415,
273,
328,
291,
18,
896,
1670,
12,
1578,
6669,
28,
16,
8038,
16,
629,
1769,
368,
9351,
17,
17258,
17,
21,
578,
11836,
17,
13756,
16,
389,
902,
67,
6380,
17,
28,
9506,
202,
430,
261,
3645,
1670,
422,
446,
13,
288,
6862,
202,
15031,
18,
4412,
5621,
6862,
202,
2463,
31,
9506,
202,
97,
469,
309,
261,
3645,
1670,
18,
14963,
2932,
6,
3719,
288,
6862,
202,
17143,
31,
9506,
202,
97,
6862,
9506,
202,
430,
12,
3328,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
2974,
361,
1810,
1042,
2828,
18,
1106,
3719,
6862,
202,
3328,
18,
17364,
12,
774,
361,
1810,
1042,
2828,
18,
1106,
16,
315,
3645,
980,
30,
13773,
3645,
1670,
1769,
6862,
9506,
202,
780,
8526,
1416,
273,
24415,
18,
4939,
2932,
315,
1769,
6862,
9506,
202,
430,
12,
4939,
18,
2469,
480,
890,
13,
6862,
202,
12849,
394,
10616,
2932,
4445,
486,
1109,
590,
980,
261,
4939,
18,
2469,
1546,
15,
4939,
18,
2469,
9078,
4672,
13773,
3645,
1670,
1769,
6862,
9506,
202,
430,
12,
5,
4939,
63,
22,
8009,
17514,
1190,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
12,
4534,
7313,
16,
2974,
361,
1810,
2170,
1478,
16,
7408,
1733,
16222,
16,
3460,
12373,
1363,
12373,
13,
288,
202,
202,
698,
288,
1082,
202,
4348,
353,
273,
7313,
18,
588,
4348,
5621,
25083,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
25083,
202,
17523,
12,
3767,
13,
288,
6862,
9506,
202,
780,
24415,
273,
328,
291,
18,
896,
1670,
12,
1578,
6669,
28,
16,
8038,
16,
629,
1769,
368,
9351,
17,
17258,
17,
21,
578,
11836,
17,
13756,
16,
389,
902,
67,
6380,
17,
28,
9506,
202,
430,
261,
3645,
1670,
422,
446,
13,
288,
6862,
202,
15031,
18,
4412,
5621,
6862,
202,
2463,
31,
2
] |
expressionStack[expressionPtr--], | this.expressionStack[this.expressionPtr--], | protected void consumeStatementWhile() { // WhileStatement ::= 'while' '(' Expression ')' Statement // WhileStatementNoShortIf ::= 'while' '(' Expression ')' StatementNoShortIf expressionLengthPtr--; Statement statement = (Statement) astStack[astPtr]; astStack[astPtr] = new WhileStatement( expressionStack[expressionPtr--], statement, intStack[intPtr--], endStatementPosition); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
3406,
15151,
1435,
288,
202,
759,
21572,
3406,
493,
33,
296,
17523,
11,
7321,
5371,
5777,
8056,
202,
759,
21572,
3406,
2279,
4897,
2047,
493,
33,
296,
17523,
11,
7321,
5371,
5777,
8056,
2279,
4897,
2047,
202,
8692,
1782,
5263,
413,
31,
202,
3406,
3021,
273,
261,
3406,
13,
3364,
2624,
63,
689,
5263,
15533,
202,
689,
2624,
63,
689,
5263,
65,
273,
3196,
202,
2704,
21572,
3406,
12,
1082,
202,
2211,
18,
8692,
2624,
63,
2211,
18,
8692,
5263,
413,
6487,
1875,
202,
11516,
16,
1875,
202,
474,
2624,
63,
474,
5263,
413,
6487,
1875,
202,
409,
3406,
2555,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
918,
7865,
3406,
15151,
1435,
288,
202,
759,
21572,
3406,
493,
33,
296,
17523,
11,
7321,
5371,
5777,
8056,
202,
759,
21572,
3406,
2279,
4897,
2047,
493,
33,
296,
17523,
11,
7321,
5371,
5777,
8056,
2279,
4897,
2047,
202,
8692,
1782,
5263,
413,
31,
202,
3406,
3021,
273,
261,
3406,
13,
3364,
2624,
63,
689,
5263,
15533,
202,
689,
2624,
63,
689,
5263,
65,
273,
3196,
202,
2704,
21572,
3406,
12,
1082,
202,
2211,
18,
8692,
2624,
63,
2211,
18,
8692,
5263,
413,
6487,
1875,
202,
11516,
16,
1875,
202,
474,
2624,
63,
474,
5263,
413,
6487,
1875,
202,
409,
3406,
2555,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ return classIndexOf(classLabel.bestClassName()); } | { return classIndexOf(classLabel.bestClassName()); } | private int classIndexOf(ClassLabel classLabel) { return classIndexOf(classLabel.bestClassName()); } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/e6f5547ded82a315c0b8bcee96ff61710888c5a2/Evaluation.java/buggy/src/edu/cmu/minorthird/classify/experiments/Evaluation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
667,
31985,
12,
797,
2224,
667,
2224,
13,
565,
288,
202,
2463,
667,
31985,
12,
1106,
2224,
18,
12729,
3834,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
509,
667,
31985,
12,
797,
2224,
667,
2224,
13,
565,
288,
202,
2463,
667,
31985,
12,
1106,
2224,
18,
12729,
3834,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
long id = getStepTypeID(sp.getID()); | long id = getStepTypeID(sp.getID()[0]); | public void updateStepTypes() throws KettleDatabaseException { // We should only do an update if something has changed... for (int i = 0; i < steploader.nrStepsWithType(StepPlugin.TYPE_ALL); i++) { StepPlugin sp = steploader.getStepWithType(StepPlugin.TYPE_ALL, i); long id = getStepTypeID(sp.getID()); if (id < 0) // Not found, we need to add this one... { // We need to add this one ... id = getNextStepTypeID(); Row table = new Row(); table.addValue(new Value("ID_STEP_TYPE", id)); table.addValue(new Value("CODE", sp.getID())); table.addValue(new Value("DESCRIPTION", sp.getDescription())); table.addValue(new Value("HELPTEXT", sp.getTooltip())); database.prepareInsert(table, "R_STEP_TYPE"); database.setValuesInsert(table); database.insertRow(); database.closeInsert(); } } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/03d4f634e8c8f5eabd44f40018e75e4fdc22ac5d/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
4160,
2016,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
759,
1660,
1410,
1338,
741,
392,
1089,
309,
5943,
711,
3550,
2777,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2235,
6714,
18,
11611,
11811,
1190,
559,
12,
4160,
3773,
18,
2399,
67,
4685,
1769,
277,
27245,
202,
202,
95,
1082,
202,
4160,
3773,
1694,
273,
2235,
6714,
18,
588,
4160,
1190,
559,
12,
4160,
3773,
18,
2399,
67,
4685,
16,
277,
1769,
1082,
202,
5748,
612,
273,
30909,
559,
734,
12,
1752,
18,
588,
734,
10663,
1082,
202,
430,
261,
350,
411,
374,
13,
368,
2288,
1392,
16,
732,
1608,
358,
527,
333,
1245,
2777,
1082,
202,
95,
9506,
202,
759,
1660,
1608,
358,
527,
333,
1245,
1372,
9506,
202,
350,
273,
6927,
4160,
559,
734,
5621,
9506,
202,
1999,
1014,
273,
394,
6556,
5621,
9506,
202,
2121,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
26951,
67,
2399,
3113,
612,
10019,
9506,
202,
2121,
18,
1289,
620,
12,
2704,
1445,
2932,
5572,
3113,
1694,
18,
588,
734,
1435,
10019,
9506,
202,
2121,
18,
1289,
620,
12,
2704,
1445,
2932,
15911,
3113,
1694,
18,
588,
3291,
1435,
10019,
9506,
202,
2121,
18,
1289,
620,
12,
2704,
1445,
2932,
27396,
5151,
3113,
1694,
18,
588,
22444,
1435,
10019,
9506,
202,
6231,
18,
9366,
4600,
12,
2121,
16,
315,
54,
67,
26951,
67,
2399,
8863,
9506,
202,
6231,
18,
542,
1972,
4600,
12,
2121,
1769,
9506,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4160,
2016,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
759,
1660,
1410,
1338,
741,
392,
1089,
309,
5943,
711,
3550,
2777,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2235,
6714,
18,
11611,
11811,
1190,
559,
12,
4160,
3773,
18,
2399,
67,
4685,
1769,
277,
27245,
202,
202,
95,
1082,
202,
4160,
3773,
1694,
273,
2235,
6714,
18,
588,
4160,
1190,
559,
12,
4160,
3773,
18,
2399,
67,
4685,
16,
277,
1769,
1082,
202,
5748,
612,
273,
30909,
559,
734,
12,
1752,
18,
588,
734,
10663,
1082,
202,
430,
261,
350,
411,
374,
13,
368,
2288,
1392,
16,
732,
1608,
358,
527,
333,
1245,
2777,
1082,
202,
2
] |
Boolean bool = new Boolean(mCheckbox.getState()); mProps.put(Prompt.CHECKBOX_STATE_KEY, bool.toString()); | Boolean bool = new Boolean(mCheckbox.getState()); mData.mProps.put(Prompt.CHECKBOX_STATE_KEY, bool.toString()); | public void actionPerformed(ActionEvent ae) { Assert.assert_it(null != buttons); int i = 0; for (i = 0; i < buttons.length; i++) { if (ae.getSource() == buttons[i]) { mProps.put(Prompt.BUTTON_PRESSED_KEY, Integer.toString(i)); // pull out the values from the TextFields break; } } if (null != fields) { String curString; for (i = 0; i < fields.length; i++) { curString = fields[i].getText(); if (0 == i) { mProps.put(Prompt.EDIT_FIELD_1_KEY, curString); } else { mProps.put(Prompt.EDIT_FIELD_2_KEY, curString); } } } if (null != mCheckbox) { Boolean bool = new Boolean(mCheckbox.getState()); mProps.put(Prompt.CHECKBOX_STATE_KEY, bool.toString()); } dispose(true);} | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/636945d6cae7057bcd6b97b497339ba9a9435bd3/UniversalDialog.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/UniversalDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
565,
5452,
18,
11231,
67,
305,
12,
2011,
480,
9502,
1769,
565,
509,
277,
273,
374,
31,
565,
364,
261,
77,
273,
374,
31,
277,
411,
9502,
18,
2469,
31,
277,
27245,
288,
202,
430,
261,
8906,
18,
588,
1830,
1435,
422,
9502,
63,
77,
5717,
288,
202,
565,
312,
5047,
18,
458,
12,
15967,
18,
20068,
67,
27388,
67,
3297,
16,
2144,
18,
10492,
12,
77,
10019,
202,
565,
368,
6892,
596,
326,
924,
628,
326,
3867,
2314,
202,
565,
898,
31,
202,
97,
565,
289,
565,
309,
261,
2011,
480,
1466,
13,
288,
202,
780,
662,
780,
31,
202,
1884,
261,
77,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
202,
565,
662,
780,
273,
1466,
63,
77,
8009,
588,
1528,
5621,
202,
565,
309,
261,
20,
422,
277,
13,
288,
202,
202,
81,
5047,
18,
458,
12,
15967,
18,
10776,
67,
6776,
67,
21,
67,
3297,
16,
662,
780,
1769,
202,
565,
289,
202,
565,
469,
288,
202,
202,
81,
5047,
18,
458,
12,
15967,
18,
10776,
67,
6776,
67,
22,
67,
3297,
16,
662,
780,
1769,
202,
565,
289,
202,
97,
565,
289,
565,
309,
261,
2011,
480,
312,
21272,
13,
288,
202,
5507,
1426,
273,
394,
3411,
12,
81,
21272,
18,
588,
1119,
10663,
202,
81,
5047,
18,
458,
12,
15967,
18,
10687,
16876,
67,
7998,
67,
3297,
16,
1426,
18,
10492,
10663,
565,
289,
565,
15825,
12,
3767,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
565,
5452,
18,
11231,
67,
305,
12,
2011,
480,
9502,
1769,
565,
509,
277,
273,
374,
31,
565,
364,
261,
77,
273,
374,
31,
277,
411,
9502,
18,
2469,
31,
277,
27245,
288,
202,
430,
261,
8906,
18,
588,
1830,
1435,
422,
9502,
63,
77,
5717,
288,
202,
565,
312,
5047,
18,
458,
12,
15967,
18,
20068,
67,
27388,
67,
3297,
16,
2144,
18,
10492,
12,
77,
10019,
202,
565,
368,
6892,
596,
326,
924,
628,
326,
3867,
2314,
202,
565,
898,
31,
202,
97,
565,
289,
565,
309,
261,
2011,
480,
1466,
13,
288,
202,
780,
662,
780,
31,
202,
1884,
261,
77,
273,
374,
31,
277,
411,
1466,
2
] |
if (localName.equals(VALIDITY_ELEMENT)) { | else if (localName.equals(VALIDITY_ELEMENT)) { | public void endElement( String namespaceURI, String localName, String qName ) throws SAXException { super.endElement(namespaceURI, localName, qName); if (endElementAction == SKIP) { return; } if (log.isDebugEnabled()) { log.debug("CryptoClientPolicy: " + localName + " = " + getContents()); } if (localName.equals(IS_CERT_AUTH_ELEMENT)) { String st_value = getContents(); boolean value = false; if (st_value.equalsIgnoreCase("true")) { value = true; } if (log.isInfoEnabled()) { if (value) { log.info("Running as a Certificate Authority"); } else { log.info("Running as a standard Cougaar node"); } } cryptoClientPolicy.setIsCertificateAuthority(value); } if (localName.equals(KEYSTORE_FILE_ELEMENT)) { cryptoClientPolicy.setKeystoreName(getContents()); } if (localName.equals(KEYSTORE_PASSWORD_ELEMENT)) { cryptoClientPolicy.setKeystorePassword(getContents()); } if (localName.equals(KEYSTORE_USE_SMART_CARD)) { cryptoClientPolicy.setUseSmartCard(true); } // end of if (localName.equals(KEYSTORE_USE_SMART_CARD)) // trusted CA keystore if (localName.equals(CA_KEYSTORE_ELEMENT)) { cryptoClientPolicy.setTrustedCaKeystoreName(getContents()); } if (localName.equals(CA_KEYSTORE_PASSWORD_ELEMENT)) { cryptoClientPolicy.setTrustedCaKeystorePassword(getContents()); } // trusted CA /* if (localName.equals(CA_ALIAS_ELEMENT)) { currentTrustedCa.caAlias = getContents(); } */ if (localName.equals(CA_URL_ELEMENT)) { currentTrustedCa.caURL = getContents(); } if (localName.equals(CA_DN_ELEMENT)) { currentTrustedCa.caDN = getContents(); } if (localName.equals(CERT_DIRECTORY_URL_ELEMENT)) { currentTrustedCa.certDirectoryUrl = getContents(); } if (localName.equals(CERT_DIRECTORY_TYPE_ELEMENT)) { String type = getContents(); if (type.equalsIgnoreCase("NetTools")) { currentTrustedCa.certDirectoryType = TrustedCaPolicy.NETTOOLS; } else if (type.equalsIgnoreCase("CougaarOpenLdap")) { currentTrustedCa.certDirectoryType = TrustedCaPolicy.COUGAAR_OPENLDAP; } } // Certificate attributes if (localName.equals(OU_ELEMENT)) { currentCertAttr.ou = getContents(); } if (localName.equals(O_ELEMENT)) { currentCertAttr.o = getContents(); } if (localName.equals(L_ELEMENT)) { currentCertAttr.l = getContents(); } if (localName.equals(ST_ELEMENT)) { currentCertAttr.st = getContents(); } if (localName.equals(C_ELEMENT)) { currentCertAttr.c = getContents(); } if (localName.equals(DOMAIN_ELEMENT)) { currentCertAttr.domain = getContents(); } if (localName.equals(KEYALGNAME_ELEMENT)) { currentCertAttr.keyAlgName = getContents(); } if (localName.equals(SIGALGNAME_ELEMENT)) { currentCertAttr.sigAlgName = getContents(); } if (localName.equals(KEYSIZE_ELEMENT)) { String val = getContents(); currentCertAttr.keysize = Integer.parseInt(val); } if (localName.equals(NODE_IS_SIGNER_ELEMENT)) { String val = getContents(); currentCertAttr.nodeIsSigner = false; if (val.equalsIgnoreCase("true")) { currentCertAttr.nodeIsSigner = true; } } if (localName.equals(IS_ROOT_CA_ELEMENT)) { String st_value = getContents(); boolean value = true; if (st_value.equalsIgnoreCase("false")) { value = false; } if (CryptoDebug.debug) { if (value) { if(log.isDebugEnabled()) log.debug("Running as Root Certificate Authority"); } else { if(log.isDebugEnabled()) log.debug("Running as a delegate Certificate Authority"); } } cryptoClientPolicy.setIsRootCA(value); } if (localName.equals(VALIDITY_ELEMENT)) { Duration duration = new Duration(serviceBroker); duration.parse(getContents()); currentCertAttr.howLong = duration.getDuration(); } if (localName.equals(ENVELOPE_ELEMENT)) { Duration duration = new Duration(serviceBroker); duration.parse(getContents()); currentCertAttr.regenEnvelope = duration.getDuration(); } } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/a51df5f1eb38a22f66b24c8f4cba9da639b96ff5/CryptoClientPolicyHandler.java/buggy/securityservices/src/org/cougaar/core/security/config/CryptoClientPolicyHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
14840,
12,
514,
19421,
16,
9506,
225,
514,
11927,
16,
9506,
225,
514,
22914,
262,
565,
1216,
14366,
288,
565,
2240,
18,
409,
1046,
12,
4937,
3098,
16,
11927,
16,
22914,
1769,
565,
309,
261,
409,
1046,
1803,
422,
18420,
13,
288,
1377,
327,
31,
565,
289,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
613,
18,
4148,
2932,
18048,
1227,
2582,
30,
315,
397,
11927,
202,
202,
15,
315,
273,
315,
397,
15015,
10663,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
12,
5127,
67,
22367,
67,
7131,
67,
10976,
3719,
288,
1377,
514,
384,
67,
1132,
273,
15015,
5621,
1377,
1250,
460,
273,
629,
31,
1377,
309,
261,
334,
67,
1132,
18,
14963,
5556,
2932,
3767,
6,
3719,
288,
202,
1132,
273,
638,
31,
1377,
289,
1377,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
202,
430,
261,
1132,
13,
288,
202,
225,
613,
18,
1376,
2932,
7051,
487,
279,
6660,
6712,
560,
8863,
202,
97,
202,
12107,
288,
202,
225,
613,
18,
1376,
2932,
7051,
487,
279,
4529,
7695,
637,
69,
297,
756,
8863,
202,
97,
1377,
289,
1377,
8170,
1227,
2582,
18,
542,
2520,
20795,
12,
1132,
1769,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
12,
3297,
13651,
67,
3776,
67,
10976,
3719,
288,
1377,
8170,
1227,
2582,
18,
542,
653,
2233,
461,
12,
588,
6323,
10663,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
12,
3297,
13651,
67,
13784,
67,
10976,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14840,
12,
514,
19421,
16,
9506,
225,
514,
11927,
16,
9506,
225,
514,
22914,
262,
565,
1216,
14366,
288,
565,
2240,
18,
409,
1046,
12,
4937,
3098,
16,
11927,
16,
22914,
1769,
565,
309,
261,
409,
1046,
1803,
422,
18420,
13,
288,
1377,
327,
31,
565,
289,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
613,
18,
4148,
2932,
18048,
1227,
2582,
30,
315,
397,
11927,
202,
202,
15,
315,
273,
315,
397,
15015,
10663,
565,
289,
565,
309,
261,
3729,
461,
18,
14963,
12,
5127,
67,
22367,
67,
7131,
67,
10976,
3719,
288,
1377,
514,
384,
67,
1132,
273,
15015,
5621,
1377,
1250,
460,
273,
629,
31,
1377,
309,
261,
334,
67,
2
] |
System.out.println("HeathProblem: " + e.getMessage()); | public HealthProblem(Complaint complaint, Person person, MedicalAid aid) { illness = complaint; sufferer = person; timePassed = 0; state = DEGRADING; duration = illness.getDegradePeriod(); usedAid = null; Treatment treatment = illness.getRecoveryTreatment(); // Create medical event for health problem. MedicalEvent newEvent = new MedicalEvent(sufferer, this, MedicalEvent.STARTS); sufferer.getMars().getEventManager().registerNewEvent(newEvent); // If no degrade period & no treatment, then can do self heel if ((duration == 0D) && (treatment == null)) { startRecovery(); } else { // Start treatment if the medical aid can help. if ((state == DEGRADING) && (aid != null) && aid.canTreatProblem(this)) { usedAid = aid; try { usedAid.requestTreatment(this); } catch (Exception e) { // System.out.println("HeathProblem: " + e.getMessage()); } } } // System.out.println(person.getName() + " has new health problem: " + complaint.getName()); } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/584a027482881ff9d18481ad4872a560f3d0a80b/HealthProblem.java/clean/org/mars_sim/msp/simulation/person/medical/HealthProblem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
1071,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
11745,
13719,
12,
799,
412,
1598,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
27534,
1598,
16,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
11573,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
6175,
16,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
20158,
1706,
37,
350,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
20702,
13,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
288,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
2332,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
1071,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
11745,
13719,
12,
799,
412,
1598,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
18,
24906,
10663,
27534,
1598,
16,
3163,
18,
659,
18,
8222,
2932,
5256,
421,
13719,
30,
315,
397,
425,
2
] | |
foldername=cms.getRequestContext().currentFolder().getAbsolutePath(); | foldername=cms.rootFolder().getAbsolutePath(); | public byte[] getContent(A_CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { // the template to be displayed String template=null; String filename=null; String title=null; String foldername=null; String type=null; HttpSession session= ((HttpServletRequest)cms.getRequestContext().getRequest().getOriginalRequest()).getSession(true); // get the current phase of this wizard String step=cms.getRequestContext().getRequest().getParameter("step"); if (step != null) { // step 1 - show the final selection screen if (step.equals("1")) { template="step1"; filename=cms.getRequestContext().getRequest().getParameter(C_PARA_FILE); session.putValue(C_PARA_FILE,filename); title=cms.getRequestContext().getRequest().getParameter(C_PARA_TITLE); session.putValue(C_PARA_TITLE,title); } else if (step.equals("2")) { // step 2 - create the file // get folder- and filename foldername=(String)session.getValue(C_PARA_FILELIST); title=(String)session.getValue(C_PARA_TITLE); if (foldername==null) { foldername=cms.getRequestContext().currentFolder().getAbsolutePath(); } filename=(String)session.getValue(C_PARA_FILE); type=(String)cms.getRequestContext().getRequest().getParameter("type"); // create the new file cms.createFile(foldername,filename,new byte[0],type); // lock the new file cms.lockResource(foldername+filename); cms.writeProperty(foldername+filename,C_PROPERTY_TITLE,title); // remove values from session session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_TITLE); // TODO: ErrorHandling // now return to filelist try { cms.getRequestContext().getResponse().sendCmsRedirect( getConfigFile(cms).getWorkplaceActionPath()+C_WP_EXPLORER_FILELIST); } catch (Exception e) { throw new CmsException("Redirect fails :"+ getConfigFile(cms).getWorkplaceActionPath()+C_WP_EXPLORER_FILELIST,CmsException.C_UNKNOWN_EXCEPTION,e); } } } else { session.removeValue(C_PARA_FILE); } // get the document to display CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms,templateFile); // set the size of the radiobox entrys getResources(cms,null,null,null,null,null); if (m_names != null) { xmlTemplateDocument.setXmlData(C_RADIOSIZE,new Integer(m_names.size()).toString()); } // process the selected template return startProcessing(cms,xmlTemplateDocument,"",parameters,template); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a5925e0f4f8a26ff7aba0051df8a95e28803290c/CmsNewResourceOthertype.java/buggy/src/com/opencms/workplace/CmsNewResourceOthertype.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
37,
67,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
17311,
18559,
1472,
16,
514,
1542,
4320,
13,
3639,
1216,
11228,
288,
3639,
368,
326,
1542,
358,
506,
10453,
3639,
514,
1542,
33,
2011,
31,
3639,
514,
1544,
33,
2011,
31,
3639,
514,
2077,
33,
2011,
31,
3639,
514,
3009,
529,
33,
2011,
31,
3639,
514,
618,
33,
2011,
31,
3639,
26166,
1339,
33,
14015,
2940,
18572,
13,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
8176,
691,
1435,
2934,
588,
2157,
12,
3767,
1769,
5397,
368,
336,
326,
783,
6855,
434,
333,
24204,
3639,
514,
2235,
33,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
1662,
2932,
4119,
8863,
9079,
309,
261,
4119,
480,
446,
13,
288,
5411,
368,
2235,
404,
300,
2405,
326,
727,
4421,
5518,
5411,
309,
261,
4119,
18,
14963,
2932,
21,
6,
3719,
288,
7734,
1542,
1546,
4119,
21,
14432,
7734,
1544,
33,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
1662,
12,
39,
67,
2778,
37,
67,
3776,
1769,
7734,
1339,
18,
458,
620,
12,
39,
67,
2778,
37,
67,
3776,
16,
3459,
1769,
7734,
2077,
33,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
1662,
12,
39,
67,
2778,
37,
67,
14123,
1769,
7734,
1339,
18,
458,
620,
12,
39,
67,
2778,
37,
67,
14123,
16,
2649,
1769,
5411,
289,
469,
309,
261,
4119,
18,
14963,
2932,
22,
6,
3719,
288,
7734,
368,
2235,
576,
300,
752,
326,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
37,
67,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
17311,
18559,
1472,
16,
514,
1542,
4320,
13,
3639,
1216,
11228,
288,
3639,
368,
326,
1542,
358,
506,
10453,
3639,
514,
1542,
33,
2011,
31,
3639,
514,
1544,
33,
2011,
31,
3639,
514,
2077,
33,
2011,
31,
3639,
514,
3009,
529,
33,
2011,
31,
3639,
514,
618,
33,
2011,
31,
3639,
26166,
1339,
33,
14015,
2940,
18572,
13,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
8176,
691,
1435,
2934,
588,
2157,
12,
3767,
1769,
5397,
368,
336,
326,
783,
6855,
434,
333,
24204,
3639,
514,
2235,
33,
6851,
18,
588,
21426,
7675,
588,
691,
7675,
588,
1662,
2932,
4119,
2
] |
SpeakerNPC npc=npcs.add("Nomyr Ahba",new SpeakerNPC() | SpeakerNPC npc=npcs.add(new SpeakerNPC("Nomyr Ahba") | private void buildSemosCityArea(StendhalRPZone zone) { Portal portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(42); portal.sety(37); portal.setNumber(0); portal.setDestination("int_semos_tavern_0",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(53); portal.sety(37); portal.setNumber(1); portal.setDestination("int_semos_temple",2); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(15); portal.sety(41); portal.setNumber(2); portal.setDestination("int_semos_blacksmith",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(6); portal.sety(22); portal.setNumber(3); portal.setDestination("int_semos_library",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(11); portal.sety(22); portal.setNumber(4); portal.setDestination("int_semos_library",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(52); portal.sety(19); portal.setNumber(5); portal.setDestination("int_semos_storage_0",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(18); portal.sety(22); portal.setNumber(6); portal.setDestination("int_semos_bank",0); zone.addPortal(portal); for(int i=0;i<3;i++) { portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(29+i); portal.sety(13); portal.setNumber(7+i); portal.setDestination("int_semos_townhall",2); zone.addPortal(portal); } portal=new OneWayPortal(); zone.assignRPObjectID(portal); portal.setx(12); portal.sety(49); portal.setNumber(60); zone.addPortal(portal); Sign sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(4); sign.sety(41); sign.setText("You are about to leave this area to move to the village.|You can buy a new sheep there."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(8); sign.sety(47); sign.setText("Welcome to Stendhal!| Please report any problems and issues at our webpage."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(26); sign.sety(40); sign.setText("You are about to enter the Dungeons.|But Beware! This area is infested with rats and legend has |it that many Adventurers have died down there..."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(44); sign.sety(62); sign.setText("You are about to leave this area and move to the plains.|You may fatten up your sheep there on the wild berries.|Be careful though, wolves roam these plains."); zone.add(sign); Chest chest=new Chest(); zone.assignRPObjectID(chest); chest.setx(44); chest.sety(60); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("knife")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("wooden_shield")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("leather_armor")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("money")); zone.add(chest); SpeakerNPC npc=npcs.add("Nomyr Ahba",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(46,19)); nodes.add(new Path.Node(46,20)); nodes.add(new Path.Node(50,20)); nodes.add(new Path.Node(50,19)); nodes.add(new Path.Node(50,20)); nodes.add(new Path.Node(46,20)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Nomyr")) { engine.say("I've heard cries inside and I was just... but you look disoriented, foreigner. Do you want to know what has been happening around here lately?"); player.setQuest("Nomyr","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"I'm a... hmmm... observer. I can help you by sharing my information about rumours with you... Do you want to know what has been happening around here lately?"); Behaviours.addJob(this,"I am committed to peek every curious fact about Semos. I know any rumor that has ever existed in Semos and I have invented most of them. Well, except that about Hackim smuggling Deniran's army weapons to wandering adventurer's like you"); add(1,new String[]{"quest","task"},null,1,"I do not have any task for you right now. If you need anything from me just say it.",null); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","thiefnpc"); npc.set(46,19); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Monogenes",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); setPath(nodes,false); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Monogenes")) { engine.say("Hi foreigner, don't be surprised if people here are reserved: the fear of the advances of Blordrough's dark legion has affected everybody, including me. Do you want to know how to socialize with Semos' people?"); player.setQuest("Monogenes","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"I'm diogenes' older brother and I don't remember what I did before I retired. Anyway, I can help you by telling you how to treat Semos' people... Do you want to know how to socialize with them?"); Behaviours.addJob(this,"I am committed to give directions to foreigners and show them how to talk to people here. However, when I'm in a bad mood I give them misleading directions hehehe... What is not necessarily bad because I can give wrong directions unwillingly anyway and they can result in being the right directions"); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","oldmannpc"); npc.set(26,21); npc.setDirection(Direction.DOWN); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Hayunn Naratha",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(27,37)); nodes.add(new Path.Node(27,38)); nodes.add(new Path.Node(29,38)); nodes.add(new Path.Node(29,37)); nodes.add(new Path.Node(29,38)); nodes.add(new Path.Node(27,38)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Hayunn")) { engine.say("Hi. I am Hayunn Naratha, a retired adventurer. Do you want me to tell you how I used to kill creatures?"); player.setQuest("Hayunn","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"Well, I'm a retired adventurer as I've told you before. I only can help you by sharing my experience with you... Do you want me to tell you how I used to kill creatures?"); Behaviours.addJob(this,"I've sworn defending with my life the people of Semos from any creature that dares to get out of this dungeon. With all our young people battling Blordrough's dark legion at south, monsters are getting more and more confident to go to the surface."); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","oldheronpc"); npc.set(27,37); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Diogenes",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(22,42)); nodes.add(new Path.Node(26,42)); nodes.add(new Path.Node(26,44)); nodes.add(new Path.Node(31,44)); nodes.add(new Path.Node(31,42)); nodes.add(new Path.Node(35,42)); nodes.add(new Path.Node(35,28)); nodes.add(new Path.Node(22,28)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this,"Hehehe! Job! hehehe! Muahahaha!."); Behaviours.addHelp(this,"I can't help you, but you can help Stendhal: tell your friends about Stendhal and help us to create maps."); Behaviours.addGoodbye(this); add(1, "quest", null, 1, null, new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { switch(Rand.rand(2)) { case 0: say("Ah, quests... just like the old days when I was young! I remember one quest that was about... Oh look, a bird!hmm, what?! Oh, Oops! I forgot it! :("); break; case 1: say("I have been told that on the deepest place of the dungeon under this city someone also buy sheeps, but *it* pays better!."); break; } } }); add(1, "cleanme!", null, 1, "What?", new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { if(player.isAdmin()) { for(String quest: player.getQuests()) { player.removeQuest(quest); } } else { say("Ummm! No, you clean me! begin with my back!"); player.setHP(player.getHP()-5); world.modify(player); } } }); } }); zone.assignRPObjectID(npc); npc.put("class","beggarnpc"); npc.set(24,42); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Carmen",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(5,45)); nodes.add(new Path.Node(18,45)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this, "I have healing abilities and I heal wounded players. I also sell potions and antidotes."); Behaviours.addHelp(this, "Ask me to heal you and I will help you or ask me offer and I will show my shop's stuff."); Behaviours.addSeller(this,new Behaviours.SellerBehaviour(shops.get("healing"))); Behaviours.addHealer(this, 0); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","welcomernpc"); npc.set(5,45); npc.initHP(100); zone.addNPC(npc); } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/ecfe586cc023f057c38e81b5ae8082477344f44b/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
13185,
538,
22236,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
9452,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
20,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
2351,
502,
82,
67,
20,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
8643,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
21,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
874,
1802,
3113,
22,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
3600,
1769,
565,
11899,
18,
542,
93,
12,
9803,
1769,
565,
11899,
18,
542,
1854,
12,
22,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
11223,
4808,
483,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
26,
1769,
565,
11899,
18,
542,
93,
12,
3787,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
13185,
538,
22236,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
9452,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
20,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
2351,
502,
82,
67,
20,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
8643,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
2
] |
private static int replaceInSelection(JEditTextArea textArea, | private static int replaceInSelection(View view, JEditTextArea textArea, | private static int replaceInSelection(JEditTextArea textArea, Buffer buffer, SearchMatcher matcher, boolean smartCaseReplace, Selection s) throws Exception { /* if an occurence occurs at the beginning of the selection, the selection start will get moved. this sucks, so we hack to avoid it. */ int start = s.getStart(); int returnValue; if(s instanceof Selection.Range) { returnValue = _replace(buffer,matcher, s.getStart(),s.getEnd(), smartCaseReplace); textArea.removeFromSelection(s); textArea.addToSelection(new Selection.Range( start,s.getEnd())); } else if(s instanceof Selection.Rect) { Selection.Rect rect = (Selection.Rect)s; int startCol = rect.getStartColumn( buffer); int endCol = rect.getEndColumn( buffer); returnValue = 0; for(int j = s.getStartLine(); j <= s.getEndLine(); j++) { returnValue += _replace(buffer,matcher, getColumnOnOtherLine(buffer,j,startCol), getColumnOnOtherLine(buffer,j,endCol), smartCaseReplace); } textArea.addToSelection(new Selection.Rect( start,s.getEnd())); } else throw new RuntimeException("Unsupported: " + s); return returnValue; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/534b2bec104d20deac772463218547112f8b4112/SearchAndReplace.java/buggy/org/gjt/sp/jedit/search/SearchAndReplace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
1453,
382,
6233,
12,
46,
4666,
1528,
5484,
977,
5484,
16,
202,
202,
1892,
1613,
16,
5167,
6286,
4546,
16,
1250,
13706,
2449,
5729,
16,
202,
202,
6233,
272,
13,
1216,
1185,
202,
95,
202,
202,
20308,
309,
392,
9145,
25267,
9938,
622,
326,
202,
202,
10086,
2093,
434,
326,
4421,
16,
326,
202,
202,
10705,
787,
903,
336,
10456,
18,
202,
202,
2211,
1597,
363,
87,
16,
1427,
732,
11769,
358,
4543,
518,
18,
1195,
202,
202,
474,
787,
273,
272,
18,
588,
1685,
5621,
202,
202,
474,
7750,
31,
202,
202,
430,
12,
87,
1276,
12977,
18,
2655,
13,
202,
202,
95,
1082,
202,
2463,
620,
273,
389,
2079,
12,
4106,
16,
22761,
16,
9506,
202,
87,
18,
588,
1685,
9334,
87,
18,
588,
1638,
9334,
9506,
202,
26416,
2449,
5729,
1769,
1082,
202,
955,
5484,
18,
4479,
1265,
6233,
12,
87,
1769,
1082,
202,
955,
5484,
18,
1289,
774,
6233,
12,
2704,
12977,
18,
2655,
12,
9506,
202,
1937,
16,
87,
18,
588,
1638,
1435,
10019,
202,
202,
97,
202,
202,
12107,
309,
12,
87,
1276,
12977,
18,
6120,
13,
202,
202,
95,
1082,
202,
6233,
18,
6120,
4917,
273,
261,
6233,
18,
6120,
13,
87,
31,
1082,
202,
474,
787,
914,
273,
4917,
18,
588,
1685,
1494,
12,
9506,
202,
4106,
1769,
1082,
202,
474,
679,
914,
273,
4917,
18,
588,
1638,
1494,
12,
9506,
202,
4106,
1769,
1082,
202,
2463,
620,
273,
374,
31,
1082,
202,
1884,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
1453,
382,
6233,
12,
46,
4666,
1528,
5484,
977,
5484,
16,
202,
202,
1892,
1613,
16,
5167,
6286,
4546,
16,
1250,
13706,
2449,
5729,
16,
202,
202,
6233,
272,
13,
1216,
1185,
202,
95,
202,
202,
20308,
309,
392,
9145,
25267,
9938,
622,
326,
202,
202,
10086,
2093,
434,
326,
4421,
16,
326,
202,
202,
10705,
787,
903,
336,
10456,
18,
202,
202,
2211,
1597,
363,
87,
16,
1427,
732,
11769,
358,
4543,
518,
18,
1195,
202,
202,
474,
787,
273,
272,
18,
588,
1685,
5621,
202,
202,
474,
7750,
31,
202,
202,
430,
12,
87,
1276,
12977,
18,
2655,
13,
202,
202,
95,
1082,
202,
2463,
620,
273,
389,
2079,
12,
4106,
16,
2
] |
JTextField val1 = (JTextField) var.getValue(); Assert.assertEquals("initial value ", "5", val1.getText()); | checkValue(variable, "first value check ", "5"); Component val1 = variable.getValue(); | public void testVariableSynch() { // initialize the system ProgDebugger p = new ProgDebugger(); InstanceManager.setProgrammer(p); Vector v = createCvVector(); CvValue cv = new CvValue(81); v.setElementAt(cv, 81); // create a variable pointed at CV 81, loaded as 5, manually notified DecVariableValue var = new DecVariableValue("name", "comment", false, 81, "XXVVVVXX", 0, 255, v, null); ((JTextField)var.getValue()).setText("5"); ((JTextField)var.getValue()).postActionEvent(); // now get value, check JTextField val1 = (JTextField) var.getValue(); Assert.assertEquals("initial value ", "5", val1.getText()); // now get rep, check JTextField rep1 = (JTextField) var.getRep(""); Assert.assertEquals("initial rep ", "5", rep1.getText()); // update via value ((JTextField)var.getValue()).setText("12"); ((JTextField)var.getValue()).postActionEvent(); // check again with existing references Assert.assertEquals("1 saved value ", "12", val1.getText()); Assert.assertEquals("1 saved rep ", "12", rep1.getText()); // pick up new references and check Assert.assertEquals("1 new value ", "12", ((JTextField) var.getValue()).getText()); Assert.assertEquals("1 new rep ", "12", ((JTextField) var.getRep("")).getText()); // update via rep rep1.setText("201"); rep1.postActionEvent(); // check again with existing references Assert.assertEquals("2 saved value ", "201", val1.getText()); Assert.assertEquals("2 saved rep ", "201", rep1.getText()); // pick up new references and check Assert.assertEquals("2 new value ", "201", ((JTextField) var.getValue()).getText()); Assert.assertEquals("2 new rep ", "201", ((JTextField) var.getRep("")).getText()); } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/ff8d0282db180a2dfd09caa7963acb2d709903b2/VariableValueTest.java/clean/tests/jmrit/symbolicprog/VariableValueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3092,
55,
2515,
1435,
288,
202,
202,
759,
4046,
326,
2619,
202,
202,
626,
75,
24113,
293,
273,
394,
1186,
75,
24113,
5621,
202,
202,
1442,
1318,
18,
542,
9459,
6592,
12,
84,
1769,
9506,
202,
5018,
331,
273,
752,
39,
90,
5018,
5621,
202,
202,
39,
90,
620,
8951,
273,
394,
385,
90,
620,
12,
11861,
1769,
202,
202,
90,
18,
542,
1046,
861,
12,
19774,
16,
29424,
1769,
202,
202,
759,
752,
279,
2190,
25874,
622,
385,
58,
29424,
16,
4203,
487,
1381,
16,
10036,
18791,
202,
202,
1799,
3092,
620,
569,
273,
394,
3416,
3092,
620,
2932,
529,
3113,
315,
3469,
3113,
629,
16,
29424,
16,
315,
5619,
58,
58,
58,
58,
5619,
3113,
374,
16,
4561,
16,
331,
16,
446,
1769,
202,
202,
12443,
46,
16157,
13,
1401,
18,
24805,
1435,
2934,
542,
1528,
2932,
25,
8863,
202,
202,
12443,
46,
16157,
13,
1401,
18,
24805,
1435,
2934,
2767,
1803,
1133,
5621,
202,
202,
759,
2037,
336,
460,
16,
866,
202,
202,
46,
16157,
1244,
21,
273,
261,
46,
16157,
13,
569,
18,
24805,
5621,
202,
202,
8213,
18,
11231,
8867,
2932,
6769,
460,
3104,
315,
25,
3113,
1244,
21,
18,
588,
1528,
10663,
202,
202,
759,
2037,
336,
2071,
16,
866,
202,
202,
46,
16157,
2071,
21,
273,
261,
46,
16157,
13,
569,
18,
588,
18933,
2932,
8863,
202,
202,
8213,
18,
11231,
8867,
2932,
6769,
2071,
3104,
315,
25,
3113,
2071,
21,
18,
588,
1528,
10663,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3092,
55,
2515,
1435,
288,
202,
202,
759,
4046,
326,
2619,
202,
202,
626,
75,
24113,
293,
273,
394,
1186,
75,
24113,
5621,
202,
202,
1442,
1318,
18,
542,
9459,
6592,
12,
84,
1769,
9506,
202,
5018,
331,
273,
752,
39,
90,
5018,
5621,
202,
202,
39,
90,
620,
8951,
273,
394,
385,
90,
620,
12,
11861,
1769,
202,
202,
90,
18,
542,
1046,
861,
12,
19774,
16,
29424,
1769,
202,
202,
759,
752,
279,
2190,
25874,
622,
385,
58,
29424,
16,
4203,
487,
1381,
16,
10036,
18791,
202,
202,
1799,
3092,
620,
569,
273,
394,
3416,
3092,
620,
2932,
529,
3113,
315,
3469,
3113,
629,
16,
29424,
16,
315,
5619,
58,
58,
58,
2
] |
public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } | public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } | public Iterator<VertexType> predecessorIterator(final VertexType target) { return new Iterator<VertexType>() { private Iterator<EdgeType> iter = incomingEdgeIterator(target); public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } }; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/AbstractGraph.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/AbstractGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4498,
32,
6475,
559,
34,
24282,
3198,
12,
6385,
12541,
559,
1018,
13,
288,
202,
202,
2463,
394,
4498,
32,
6475,
559,
34,
1435,
288,
1082,
202,
1152,
4498,
32,
6098,
559,
34,
1400,
273,
6935,
6098,
3198,
12,
3299,
1769,
1082,
202,
482,
1250,
4564,
1435,
288,
327,
1400,
18,
5332,
2134,
5621,
289,
1082,
202,
482,
12541,
559,
1024,
1435,
288,
327,
1400,
18,
4285,
7675,
588,
1830,
5621,
289,
1082,
202,
482,
918,
1206,
1435,
288,
1400,
18,
4479,
5621,
289,
202,
202,
20451,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4498,
32,
6475,
559,
34,
24282,
3198,
12,
6385,
12541,
559,
1018,
13,
288,
202,
202,
2463,
394,
4498,
32,
6475,
559,
34,
1435,
288,
1082,
202,
1152,
4498,
32,
6098,
559,
34,
1400,
273,
6935,
6098,
3198,
12,
3299,
1769,
1082,
202,
482,
1250,
4564,
1435,
288,
327,
1400,
18,
5332,
2134,
5621,
289,
1082,
202,
482,
12541,
559,
1024,
1435,
288,
327,
1400,
18,
4285,
7675,
588,
1830,
5621,
289,
1082,
202,
482,
918,
1206,
1435,
288,
1400,
18,
4479,
5621,
289,
202,
202,
20451,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static XMPPDocument create(final Document document, final DocumentContent content) { return new XMPPDocument(content.getContent(), document.getCreatedBy(), document.getCreatedOn(), document.getDescription(), document.getFlags(), document.getId(), document.getName(), document.getUpdatedBy(), document.getUpdatedOn()); | public static XMPPDocument create(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final Collection<ParityObjectFlag> flags, final UUID id, final String name, final String updatedBy, final Calendar updatedOn) { return new XMPPDocument(content, createdBy, createdOn, description, flags, id, name, updatedBy, updatedOn); | public static XMPPDocument create(final Document document, final DocumentContent content) { return new XMPPDocument(content.getContent(), document.getCreatedBy(), document.getCreatedOn(), document.getDescription(), document.getFlags(), document.getId(), document.getName(), document.getUpdatedBy(), document.getUpdatedOn()); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/95abad91a0126bd87227dacc39fbfa9b784fe551/XMPPDocument.java/buggy/client-model/src/main/java/com/thinkparity/model/xmpp/document/XMPPDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
23216,
2519,
752,
12,
6385,
4319,
1668,
16,
1082,
202,
6385,
4319,
1350,
913,
13,
288,
202,
202,
2463,
394,
23216,
2519,
12,
1745,
18,
588,
1350,
9334,
1668,
18,
588,
6119,
858,
9334,
9506,
202,
5457,
18,
588,
6119,
1398,
9334,
1668,
18,
588,
3291,
9334,
9506,
202,
5457,
18,
588,
5094,
9334,
1668,
18,
26321,
9334,
1668,
18,
17994,
9334,
9506,
202,
5457,
18,
588,
7381,
858,
9334,
1668,
18,
588,
7381,
1398,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
23216,
2519,
752,
12,
6385,
4319,
1668,
16,
1082,
202,
6385,
4319,
1350,
913,
13,
288,
202,
202,
2463,
394,
23216,
2519,
12,
1745,
18,
588,
1350,
9334,
1668,
18,
588,
6119,
858,
9334,
9506,
202,
5457,
18,
588,
6119,
1398,
9334,
1668,
18,
588,
3291,
9334,
9506,
202,
5457,
18,
588,
5094,
9334,
1668,
18,
26321,
9334,
1668,
18,
17994,
9334,
9506,
202,
5457,
18,
588,
7381,
858,
9334,
1668,
18,
588,
7381,
1398,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
addError( "Could not set component " + obj + " for parent component " + obj, e); | addError("Could not set component " + obj + " for parent component " + obj, e); | public void setComponent(String name, Object childComponent) { PropertyDescriptor propertyDescriptor = getPropertyDescriptor(name); if (propertyDescriptor == null) { addWarn( "Could not find PropertyDescriptor for [" + name + "] in " + objClass.getName()); return; } Method setter = propertyDescriptor.getWriteMethod(); if (setter == null) { addWarn( "Not setter method for property [" + name + "] in " + obj.getClass().getName()); return; } Class[] paramTypes = setter.getParameterTypes(); if (paramTypes.length != 1) { addError( "Wrong number of parameters in setter method for property [" + name + "] in " + obj.getClass().getName()); return; } try { setter.invoke(obj, new Object[] { childComponent }); //getLogger().debug( // "Set child component of type [{}] for [{}].", objClass.getName(), // childComponent.getClass().getName()); } catch (Exception e) { addError( "Could not set component " + obj + " for parent component " + obj, e); } } | 50185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50185/d3806b8259a72fed9836fbf64e5ec69286d504ac/PropertySetter.java/clean/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
1841,
12,
780,
508,
16,
1033,
1151,
1841,
13,
288,
565,
26761,
1272,
3187,
273,
3911,
3187,
12,
529,
1769,
565,
309,
261,
4468,
3187,
422,
446,
13,
288,
1377,
527,
3160,
12,
3639,
315,
4445,
486,
1104,
26761,
364,
8247,
397,
508,
397,
9850,
316,
315,
3639,
397,
1081,
797,
18,
17994,
10663,
1377,
327,
31,
565,
289,
565,
2985,
7794,
273,
1272,
3187,
18,
588,
3067,
1305,
5621,
565,
309,
261,
18062,
422,
446,
13,
288,
1377,
527,
3160,
12,
3639,
315,
1248,
7794,
707,
364,
1272,
8247,
397,
508,
397,
9850,
316,
315,
3639,
397,
1081,
18,
588,
797,
7675,
17994,
10663,
1377,
327,
31,
565,
289,
565,
1659,
8526,
21265,
273,
7794,
18,
588,
1662,
2016,
5621,
565,
309,
261,
891,
2016,
18,
2469,
480,
404,
13,
288,
1377,
9501,
12,
3639,
315,
13634,
1300,
434,
1472,
316,
7794,
707,
364,
1272,
8247,
397,
508,
3639,
397,
9850,
316,
315,
397,
1081,
18,
588,
797,
7675,
17994,
10663,
1377,
327,
31,
565,
289,
565,
775,
288,
1377,
7794,
18,
14407,
12,
2603,
16,
394,
1033,
8526,
288,
1151,
1841,
15549,
1377,
368,
588,
3328,
7675,
4148,
12,
1377,
368,
225,
315,
694,
1151,
1794,
434,
618,
17936,
364,
17936,
1199,
16,
1081,
797,
18,
17994,
9334,
1377,
368,
225,
1151,
1841,
18,
588,
797,
7675,
17994,
10663,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
9501,
12,
3639,
315,
4445,
486,
444,
1794,
315,
397,
1081,
397,
315,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
1841,
12,
780,
508,
16,
1033,
1151,
1841,
13,
288,
565,
26761,
1272,
3187,
273,
3911,
3187,
12,
529,
1769,
565,
309,
261,
4468,
3187,
422,
446,
13,
288,
1377,
527,
3160,
12,
3639,
315,
4445,
486,
1104,
26761,
364,
8247,
397,
508,
397,
9850,
316,
315,
3639,
397,
1081,
797,
18,
17994,
10663,
1377,
327,
31,
565,
289,
565,
2985,
7794,
273,
1272,
3187,
18,
588,
3067,
1305,
5621,
565,
309,
261,
18062,
422,
446,
13,
288,
1377,
527,
3160,
12,
3639,
315,
1248,
7794,
707,
364,
1272,
8247,
397,
508,
397,
9850,
316,
315,
3639,
397,
1081,
18,
588,
797,
7675,
17994,
10663,
1377,
327,
31,
565,
289,
565,
1659,
8526,
21265,
273,
2
] |
.getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding(), taskData, wrap); | .getUserName(), repository.getPassword(), repository.getCharacterEncoding(), taskData, wrap); | public void submitToRepository() { submitButton.setEnabled(false); showBusy(true); if (isDirty()) { doSave(new NullProgressMonitor()); } BugzillaReportSubmitForm bugzillaReportSubmitForm; try { if (taskData.isLocallyCreated()) { boolean wrap = IBugzillaConstants.BugzillaServerVersion.SERVER_218.equals(repository.getVersion()); bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeNewBugPost(repository.getUrl(), repository .getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding(), taskData, wrap); } else { bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeExistingBugPost(taskData, repository.getUrl(), repository.getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding()); } } catch (UnsupportedEncodingException e) { // should never get here but just in case... MessageDialog.openError(null, "Posting Error", "Ensure proper encoding selected in " + TaskRepositoriesView.NAME + "."); return; } final BugzillaRepositoryConnector bugzillaRepositoryConnector = (BugzillaRepositoryConnector) TasksUiPlugin .getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); final AbstractRepositoryTask modifiedTask = (AbstractRepositoryTask) TasksUiPlugin.getTaskListManager() .getTaskList().getTask(AbstractRepositoryTask.getHandle(repository.getUrl(), taskData.getId())); JobChangeAdapter submitJobListener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) {// // Attach context if (getAttachContext()) { IWorkbench wb = PlatformUI.getWorkbench(); IProgressService ps = wb.getProgressService(); try { ps.busyCursorWhile(new IRunnableWithProgress() { public void run(IProgressMonitor pm) { try { bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "", TasksUiPlugin.getDefault().getProxySettings()); } catch (Exception e) { MylarStatusHandler.fail(e, "Failed to attach task context.\n\n" + e.getMessage(), true); } } }); } catch (InvocationTargetException e1) { MylarStatusHandler.fail(e1.getCause(), "Failed to attach task context.\n\n" + e1.getMessage(), true); } catch (InterruptedException e1) { // ignore } } if (modifiedTask != null) { // TODO: This is set to null in order for update // to bypass // ui override check with user // Need to change how this is achieved. //modifiedTask.setTaskData(null); TasksUiPlugin.getSynchronizationManager().synchronize(connector, modifiedTask, true, new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { close(); TaskUiUtil.openEditor(modifiedTask, false); } }); Set<AbstractRepositoryQuery> queriesWithHandle = TasksUiPlugin.getTaskListManager() .getTaskList().getQueriesForHandle(modifiedTask.getHandleIdentifier()); // Sync Queries that have this task TasksUiPlugin.getSynchronizationManager().synchronize(connector, queriesWithHandle, null, Job.SHORT, 0, false); // Sync any tasks that might have changed as a // result of this action // TODO: removed since we don't have a way to exclude currently submitted task // and others will be synched later by background sync anyway (or manual sync) //TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository); } else { TaskUiUtil.openRepositoryTask(repository.getUrl(), BugzillaTaskEditor.this .getRepositoryTaskData().getId(), repository.getUrl() + IBugzillaConstants.URL_GET_SHOW_BUG + BugzillaTaskEditor.this.getRepositoryTaskData().getId()); close(); } return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event .getJob().getResult().getMessage(), event.getJob().getResult().getException() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MessageDialog.openError(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getResult() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } } }); } }; submissionHandler.submitBugReport(bugzillaReportSubmitForm, submitJobListener, false, false); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/101ff7c2d10bb2298dc26374711a5c44d3a01761/BugzillaTaskEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
202,
2896,
4755,
12,
2704,
4112,
5491,
7187,
10663,
202,
202,
97,
202,
202,
19865,
15990,
4820,
11620,
1204,
7934,
15990,
4820,
11620,
1204,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
4146,
751,
18,
291,
1333,
1230,
6119,
10756,
288,
9506,
202,
6494,
2193,
273,
467,
19865,
15990,
2918,
18,
19865,
15990,
2081,
1444,
18,
4370,
67,
22,
2643,
18,
14963,
12,
9071,
18,
588,
1444,
10663,
9506,
202,
925,
15990,
4820,
11620,
1204,
273,
16907,
15990,
4820,
11620,
1204,
18,
6540,
1908,
19865,
3349,
12,
9071,
18,
588,
1489,
9334,
3352,
25083,
202,
18,
588,
15296,
9334,
3352,
18,
588,
3913,
9334,
4858,
1210,
18,
588,
3886,
2628,
9334,
3352,
25083,
202,
18,
588,
7069,
4705,
9334,
1562,
751,
16,
2193,
1769,
1082,
202,
97,
469,
288,
9506,
202,
925,
15990,
4820,
11620,
1204,
273,
16907,
15990,
4820,
11620,
1204,
18,
6540,
9895,
19865,
3349,
12,
4146,
751,
16,
3352,
18,
588,
1489,
9334,
25083,
202,
9071,
18,
588,
15296,
9334,
3352,
18,
588,
3913,
9334,
4858,
1210,
18,
588,
3886,
2628,
9334,
3352,
25083,
202,
18,
588,
7069,
4705,
10663,
1082,
202,
97,
202,
202,
97,
1044,
261,
8544,
13836,
425,
13,
288,
1082,
202,
759,
1410,
5903,
336,
2674,
1496,
2537,
316,
648,
2777,
1082,
202,
1079,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
202,
2896,
4755,
12,
2704,
4112,
5491,
7187,
10663,
202,
202,
97,
202,
202,
19865,
15990,
4820,
11620,
1204,
7934,
15990,
4820,
11620,
1204,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
4146,
751,
18,
291,
1333,
1230,
6119,
10756,
288,
9506,
202,
6494,
2193,
273,
467,
19865,
15990,
2918,
18,
19865,
15990,
2081,
1444,
18,
4370,
67,
22,
2643,
18,
14963,
12,
9071,
18,
588,
1444,
10663,
9506,
202,
925,
15990,
4820,
11620,
1204,
273,
16907,
15990,
4820,
11620,
1204,
18,
6540,
2
] |
wcClient.doSetRevisionProperty(getCommandLine().getURL(0), getCommandLine().getPegRevision(0), | wcClient.doSetRevisionProperty(SVNURL.parseURIEncoded(getCommandLine().getURL(0)), getCommandLine().getPegRevision(0), | public final void run(final PrintStream out, PrintStream err) throws SVNException { final String propertyName = getCommandLine().getPathAt(0); String propertyValue = getCommandLine().getPathAt(1); final boolean recursive = getCommandLine().hasArgument(SVNArgument.RECURSIVE); boolean force = getCommandLine().hasArgument(SVNArgument.FORCE); boolean revProps = getCommandLine().hasArgument(SVNArgument.REV_PROP); int pathIndex = 2; if (getCommandLine().hasArgument(SVNArgument.FILE)) { File file = new File((String) getCommandLine().getArgumentValue(SVNArgument.FILE)); ByteArrayOutputStream os = new ByteArrayOutputStream(); FileInputStream is = null; try { is = new FileInputStream(file); while(true) { int r = is.read(); if (r < 0) { break; } os.write(r); } } catch (IOException e) { throw new SVNException(e); } finally { try { os.close(); } catch (IOException e1) { } if (is != null) { try { is.close(); } catch (IOException e) { } } } propertyValue = os.toString(); pathIndex = 1; } SVNWCClient wcClient = getClientManager().getWCClient(); if (revProps) { SVNRevision revision = SVNRevision.UNDEFINED; if (getCommandLine().hasArgument(SVNArgument.REVISION)) { revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION)); } if (getCommandLine().hasURLs()) { wcClient.doSetRevisionProperty(getCommandLine().getURL(0), getCommandLine().getPegRevision(0), revision, propertyName, propertyValue, force, new ISVNPropertyHandler() { public void handleProperty(File path, SVNPropertyData property) throws SVNException { } public void handleProperty(String url, SVNPropertyData property) throws SVNException { out.println("Property '" + propertyName +"' set on repository revision " + url); } }); } else { File tgt = new File("."); if (getCommandLine().getPathCount() > 2) { tgt = new File(getCommandLine().getPathAt(2)); } wcClient.doSetRevisionProperty(tgt, revision, propertyName, propertyValue, force, new ISVNPropertyHandler() { public void handleProperty(File path, SVNPropertyData property) throws SVNException { } public void handleProperty(String url, SVNPropertyData property) throws SVNException { out.println("Property '" + propertyName +"' set on repository revision " + url); } }); } } else { for (int i = pathIndex; i < getCommandLine().getPathCount(); i++) { final String absolutePath = getCommandLine().getPathAt(i); if (!recursive) { wcClient.doSetProperty(new File(absolutePath), propertyName, propertyValue, force, recursive, new ISVNPropertyHandler() { public void handleProperty(File path, SVNPropertyData property) throws SVNException { out.println("Property '" + propertyName + "' set on '" + SVNFormatUtil.formatPath(path) + "'"); } public void handleProperty(String url, SVNPropertyData property) throws SVNException { } }); } else { final boolean wasSet[] = new boolean[] {false}; wcClient.doSetProperty(new File(absolutePath), propertyName, propertyValue, force, recursive, new ISVNPropertyHandler() { public void handleProperty(File path, SVNPropertyData property) throws SVNException { wasSet[0] = true; } public void handleProperty(String url, SVNPropertyData property) throws SVNException { } }); if (wasSet[0]) { out.println("Property '" + propertyName + "' set (recursively) on '" + absolutePath + "'"); } } } if (getCommandLine().getPathCount() == 2 && getCommandLine().hasURLs()) { err.println("Propset is not supported for target '" + getCommandLine().getURL(0) + "'"); System.exit(1); } } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/28381179e464d7990498164d52693487f9dddb79/PropsetCommand.java/buggy/javasvn/src/org/tmatesoft/svn/cli/command/PropsetCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1086,
12,
6385,
21677,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
727,
514,
5470,
273,
12856,
1670,
7675,
588,
743,
861,
12,
20,
1769,
3639,
514,
12337,
273,
12856,
1670,
7675,
588,
743,
861,
12,
21,
1769,
3639,
727,
1250,
5904,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
862,
7509,
24870,
1769,
3639,
1250,
2944,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
27817,
1769,
3639,
1250,
5588,
5047,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
862,
58,
67,
15811,
1769,
3639,
509,
589,
1016,
273,
576,
31,
3639,
309,
261,
588,
21391,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
3776,
3719,
288,
5411,
1387,
585,
273,
394,
1387,
12443,
780,
13,
12856,
1670,
7675,
588,
1379,
620,
12,
23927,
50,
1379,
18,
3776,
10019,
5411,
11559,
1140,
273,
394,
11559,
5621,
5411,
11907,
353,
273,
446,
31,
5411,
775,
288,
7734,
353,
273,
394,
11907,
12,
768,
1769,
7734,
1323,
12,
3767,
13,
288,
10792,
509,
436,
273,
353,
18,
896,
5621,
10792,
309,
261,
86,
411,
374,
13,
288,
13491,
898,
31,
10792,
289,
10792,
1140,
18,
2626,
12,
86,
1769,
7734,
289,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
604,
394,
29537,
50,
503,
12,
73,
1769,
5411,
289,
3095,
288,
7734,
775,
288,
10792,
1140,
18,
4412,
5621,
7734,
289,
1044,
261,
14106,
425,
21,
13,
288,
7734,
289,
7734,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1086,
12,
6385,
21677,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
727,
514,
5470,
273,
12856,
1670,
7675,
588,
743,
861,
12,
20,
1769,
3639,
514,
12337,
273,
12856,
1670,
7675,
588,
743,
861,
12,
21,
1769,
3639,
727,
1250,
5904,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
862,
7509,
24870,
1769,
3639,
1250,
2944,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
27817,
1769,
3639,
1250,
5588,
5047,
273,
12856,
1670,
7675,
5332,
1379,
12,
23927,
50,
1379,
18,
862,
58,
67,
15811,
1769,
3639,
509,
589,
1016,
273,
576,
31,
3639,
309,
261,
588,
21391,
7675,
5332,
1379,
12,
23927,
50,
1379,
2
] |
public static void setSlotContents(int slot, int value) { | public static void setSlotContents(int slot, int value) throws VM_PragmaUninterruptible { | public static void setSlotContents(int slot, int value) { slots[slot] = value; if (VM.BuildForConcurrentGC && VM.runningVM && isReference(slot)) { VM.sysWrite("WARNING - setSlotContents of int for reference slot, value = "); VM.sysWrite(value); VM.sysWrite("\n"); } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b3eb8a5fcae0dc552de280cd4760954770ad3f0d/VM_Statics.java/buggy/rvm/src/vm/runtime/VM_Statics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
444,
8764,
6323,
12,
474,
4694,
16,
509,
460,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
1377,
12169,
63,
14194,
65,
273,
460,
31,
1377,
309,
261,
7397,
18,
3116,
1290,
18521,
15396,
597,
8251,
18,
8704,
7397,
597,
353,
2404,
12,
14194,
3719,
4202,
288,
3639,
8251,
18,
9499,
3067,
2932,
9511,
300,
444,
8764,
6323,
434,
509,
364,
2114,
4694,
16,
460,
273,
315,
1769,
3639,
8251,
18,
9499,
3067,
12,
1132,
1769,
3639,
8251,
18,
9499,
3067,
31458,
82,
8863,
1377,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
444,
8764,
6323,
12,
474,
4694,
16,
509,
460,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
1377,
12169,
63,
14194,
65,
273,
460,
31,
1377,
309,
261,
7397,
18,
3116,
1290,
18521,
15396,
597,
8251,
18,
8704,
7397,
597,
353,
2404,
12,
14194,
3719,
4202,
288,
3639,
8251,
18,
9499,
3067,
2932,
9511,
300,
444,
8764,
6323,
434,
509,
364,
2114,
4694,
16,
460,
273,
315,
1769,
3639,
8251,
18,
9499,
3067,
12,
1132,
1769,
3639,
8251,
18,
9499,
3067,
31458,
82,
8863,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case TerminalSymbols.TokenNameint: | case TerminalSymbols.TokenNamebyte: | protected boolean isPrimitiveTypeToken(int token) { switch(token) { case TerminalSymbols.TokenNameboolean: case TerminalSymbols.TokenNameint: case TerminalSymbols.TokenNamechar: case TerminalSymbols.TokenNamebyte: case TerminalSymbols.TokenNamefloat: case TerminalSymbols.TokenNamedouble: case TerminalSymbols.TokenNamelong: case TerminalSymbols.TokenNameshort: return true; default : return false; } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/fffbeaf78694c80bae33ca05c4a6a80acb9fd2e9/BreakpointLocationVerifier.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/BreakpointLocationVerifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
19598,
559,
1345,
12,
474,
1147,
13,
288,
202,
202,
9610,
12,
2316,
13,
288,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
6494,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
474,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
3001,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
7229,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
5659,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
7604,
83,
1255,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
50,
9925,
932,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
1557,
15571,
30,
9506,
202,
2463,
638,
31,
1082,
202,
1886,
294,
4697,
202,
2463,
629,
31,
202,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
1250,
19598,
559,
1345,
12,
474,
1147,
13,
288,
202,
202,
9610,
12,
2316,
13,
288,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
6494,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
474,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
3001,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
7229,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
461,
5659,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
7604,
83,
1255,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
50,
9925,
932,
30,
1082,
202,
3593,
18778,
14821,
18,
1345,
1557,
15571,
30,
9506,
202,
2463,
638,
31,
1082,
202,
1886,
294,
4697,
202,
2463,
629,
31,
202,
202,
97,
1082,
2
] |
return new File(appDir, "WEB-INF/application.conf"); | return new File(appDir, /*"webapp/"+*/"WEB-INF/application.conf"); | private static File getConfigFile(String root, String name) { File rootDir = new File(root); if (rootDir.exists()) { if (rootDir.isDirectory()) { File appDir = new File(rootDir, normalize(name)); if (appDir.isDirectory()) { return new File(appDir, "WEB-INF/application.conf"); } } } return null; } | 6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/e6fbe7cf95e0d25c08ce2982da0aa38ac1ff28f2/ApplicationLoader.java/clean/src/org/snipsnap/server/ApplicationLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1387,
4367,
812,
12,
780,
1365,
16,
514,
508,
13,
288,
565,
1387,
15393,
273,
394,
1387,
12,
3085,
1769,
565,
309,
261,
3085,
1621,
18,
1808,
10756,
288,
1377,
309,
261,
3085,
1621,
18,
291,
2853,
10756,
288,
3639,
1387,
595,
1621,
273,
394,
1387,
12,
3085,
1621,
16,
3883,
12,
529,
10019,
3639,
309,
261,
2910,
1621,
18,
291,
2853,
10756,
288,
6647,
327,
394,
1387,
12,
2910,
1621,
16,
1748,
6,
4875,
2910,
4898,
15,
14,
4898,
14778,
17,
19212,
19,
3685,
18,
3923,
8863,
3639,
289,
1377,
289,
565,
289,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
760,
1387,
4367,
812,
12,
780,
1365,
16,
514,
508,
13,
288,
565,
1387,
15393,
273,
394,
1387,
12,
3085,
1769,
565,
309,
261,
3085,
1621,
18,
1808,
10756,
288,
1377,
309,
261,
3085,
1621,
18,
291,
2853,
10756,
288,
3639,
1387,
595,
1621,
273,
394,
1387,
12,
3085,
1621,
16,
3883,
12,
529,
10019,
3639,
309,
261,
2910,
1621,
18,
291,
2853,
10756,
288,
6647,
327,
394,
1387,
12,
2910,
1621,
16,
1748,
6,
4875,
2910,
4898,
15,
14,
4898,
14778,
17,
19212,
19,
3685,
18,
3923,
8863,
3639,
289,
1377,
289,
565,
289,
565,
327,
446,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (EReference)labelEClass.getEStructuralFeatures().get(2); | return (EReference) labelEClass.getEStructuralFeatures().get(2); | public EReference getLabel_Outline() { return (EReference)labelEClass.getEStructuralFeatures().get(2); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
2404,
11237,
67,
21805,
1435,
565,
288,
3639,
327,
261,
41,
2404,
13,
1433,
5720,
18,
588,
41,
14372,
8696,
7675,
588,
12,
22,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
2404,
11237,
67,
21805,
1435,
565,
288,
3639,
327,
261,
41,
2404,
13,
1433,
5720,
18,
588,
41,
14372,
8696,
7675,
588,
12,
22,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
response.setContentType("text/plain"); | response.setContentType("text/xml"); | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String filename = request.getPathInfo(); if (filename == null) { filename = ""; } if (filename.startsWith("/")) { filename = filename.substring(1); } if (filename.trim().length() == 0) { //todo: send an index page? response.sendError(HttpServletResponse.SC_NOT_FOUND); } else { InputStream xmlResource = getClass().getResourceAsStream("/" + filename); if (xmlResource == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } else { //todo: figure out why firefox can't parse this as text/xml (character encoding?) response.setContentType("text/plain"); BufferedReader reader = new BufferedReader(new InputStreamReader(xmlResource)); PrintWriter writer = response.getWriter(); String line = reader.readLine(); while (line != null) { writer.println(line); line = reader.readLine(); } reader.close(); writer.close(); } } } | 52299 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52299/2dbaa70223d4f5cbe8e8ff5248a2aff13293afae/XMLAPIServlet.java/buggy/src/java/net/sf/enunciate/modules/xml/XMLAPIServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
288,
565,
514,
1544,
273,
590,
18,
588,
743,
966,
5621,
565,
309,
261,
3459,
422,
446,
13,
288,
1377,
1544,
273,
1408,
31,
565,
289,
565,
309,
261,
3459,
18,
17514,
1190,
2932,
4898,
3719,
288,
1377,
1544,
273,
1544,
18,
28023,
12,
21,
1769,
565,
289,
565,
309,
261,
3459,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
1377,
368,
9012,
30,
1366,
392,
770,
1363,
35,
1377,
766,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
4400,
67,
9294,
1769,
565,
289,
565,
469,
288,
1377,
5037,
2025,
1420,
273,
2900,
7675,
588,
1420,
17052,
2932,
4898,
397,
1544,
1769,
1377,
309,
261,
2902,
1420,
422,
446,
13,
288,
3639,
766,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
4400,
67,
9294,
1769,
1377,
289,
1377,
469,
288,
3639,
368,
9012,
30,
7837,
596,
11598,
4452,
13873,
848,
1404,
1109,
333,
487,
977,
19,
2902,
261,
11560,
2688,
8535,
4202,
766,
18,
542,
8046,
2932,
955,
19,
2902,
8863,
3639,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
2902,
1420,
10019,
3639,
14071,
2633,
273,
766,
18,
588,
2289,
5621,
3639,
514,
980,
273,
2949,
18,
896,
1670,
5621,
3639,
1323,
261,
1369,
480,
446,
13,
288,
1850,
2633,
18,
8222,
12,
1369,
1769,
1850,
980,
273,
2949,
18,
896,
1670,
5621,
3639,
289,
3639,
2949,
18,
4412,
5621,
3639,
2633,
18,
4412,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
16517,
16,
1860,
288,
565,
514,
1544,
273,
590,
18,
588,
743,
966,
5621,
565,
309,
261,
3459,
422,
446,
13,
288,
1377,
1544,
273,
1408,
31,
565,
289,
565,
309,
261,
3459,
18,
17514,
1190,
2932,
4898,
3719,
288,
1377,
1544,
273,
1544,
18,
28023,
12,
21,
1769,
565,
289,
565,
309,
261,
3459,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
288,
1377,
368,
9012,
30,
1366,
392,
770,
1363,
35,
1377,
766,
18,
4661,
668,
12,
2940,
29910,
18,
2312,
67,
4400,
67,
9294,
1769,
565,
289,
565,
469,
288,
1377,
5037,
2025,
1420,
273,
2900,
7675,
588,
1420,
17052,
2932,
4898,
2
] |
filterKeySequenceBindings(event); | state.setCollapseFully(true); state.reset(); | public void handleEvent(Event event) { filterKeySequenceBindings(event); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8fade70812602707904f82fb8b9dec3028fb7005/WorkbenchKeyboard.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
1082,
202,
2188,
653,
4021,
10497,
12,
2575,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
1082,
202,
2188,
653,
4021,
10497,
12,
2575,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case Node.COMMENT_NODE : comment( node.getNodeValue() ); break; case Node.ENTITY_REFERENCE_NODE : { Node child; endCDATA(); content(); child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } case Node.PROCESSING_INSTRUCTION_NODE : processingInstruction( node.getNodeName(), node.getNodeValue() ); break; case Node.ELEMENT_NODE : serializeElement( (Element) node ); break; case Node.DOCUMENT_NODE : DocumentType docType; NamedNodeMap map; Entity entity; Notation notation; int i; docType = ( (Document) node ).getDoctype(); if ( docType != null ) { startDTD( docType.getName(), docType.getPublicId(), docType.getSystemId() ); /* This is only required for internal subset map = docType.getEntities(); if ( map != null ) { for ( i = 0 ; i < map.getLength() ; ++i ) { entity = (Entity) map.item( i ); if ( entity.getSystemId() == null && entity.getPublicId() == null ) { Node child; printText( "<!ENTITY " + entity.getNodeName() + " \"" ); child = entity.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } printText( "\">" ); } else { unparsedEntityDecl( entity.getNodeName(), entity.getPublicId(), entity.getSystemId(), entity.getNotationName() ); } } } map = docType.getNotations(); if ( map != null ) { for ( i = 0 ; i < map.getLength() ; ++i ) { notation = (Notation) map.item( i ); notationDecl( notation.getNodeName(), notation.getPublicId(), notation.getSystemId() ); } } */ endDTD(); } case Node.DOCUMENT_FRAGMENT_NODE : { Node child; child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } default: break; } | startDTD( docType.getName(), docType.getPublicId(), docType.getSystemId() ); internal = docType.getInternalSubset(); if ( internal != null && internal.length() > 0 ) printText( internal, true ); endDTD(); } case Node.DOCUMENT_FRAGMENT_NODE : { Node child; child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } default: break; } | protected void serializeNode( Node node ) { // Based on the node type call the suitable SAX handler. // Only comments entities and documents which are not // handled by SAX are serialized directly. switch ( node.getNodeType() ) { case Node.TEXT_NODE : characters( node.getNodeValue(), false ); break; case Node.CDATA_SECTION_NODE : startCDATA(); characters( node.getNodeValue(), false ); endCDATA(); break; case Node.COMMENT_NODE : comment( node.getNodeValue() ); break; case Node.ENTITY_REFERENCE_NODE : { Node child; endCDATA(); content(); child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } case Node.PROCESSING_INSTRUCTION_NODE : processingInstruction( node.getNodeName(), node.getNodeValue() ); break; case Node.ELEMENT_NODE : serializeElement( (Element) node ); break; case Node.DOCUMENT_NODE : DocumentType docType; NamedNodeMap map; Entity entity; Notation notation; int i; // If there is a document type, use the SAX events to // serialize it. docType = ( (Document) node ).getDoctype(); if ( docType != null ) { startDTD( docType.getName(), docType.getPublicId(), docType.getSystemId() ); /* This is only required for internal subset map = docType.getEntities(); if ( map != null ) { for ( i = 0 ; i < map.getLength() ; ++i ) { entity = (Entity) map.item( i ); if ( entity.getSystemId() == null && entity.getPublicId() == null ) { Node child; printText( "<!ENTITY " + entity.getNodeName() + " \"" ); child = entity.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } printText( "\">" ); } else { unparsedEntityDecl( entity.getNodeName(), entity.getPublicId(), entity.getSystemId(), entity.getNotationName() ); } } } map = docType.getNotations(); if ( map != null ) { for ( i = 0 ; i < map.getLength() ; ++i ) { notation = (Notation) map.item( i ); notationDecl( notation.getNodeName(), notation.getPublicId(), notation.getSystemId() ); } } */ endDTD(); } // !! Fall through case Node.DOCUMENT_FRAGMENT_NODE : { Node child; // By definition this will happen if the node is a document, // document fragment, etc. Just serialize its contents. It will // work well for other nodes that we do not know how to serialize. child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } default: break; } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/af047e33ee4283cd437ffa6760ccff3d3d2bf9ea/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4472,
907,
12,
2029,
756,
262,
565,
288,
202,
759,
25935,
603,
326,
756,
618,
745,
326,
10631,
10168,
1838,
18,
202,
759,
5098,
5678,
5140,
471,
7429,
1492,
854,
486,
202,
759,
7681,
635,
10168,
854,
5343,
5122,
18,
3639,
1620,
261,
756,
18,
588,
15101,
1435,
262,
288,
202,
3593,
2029,
18,
5151,
67,
8744,
294,
202,
565,
3949,
12,
756,
18,
588,
907,
620,
9334,
629,
11272,
202,
565,
898,
31,
202,
3593,
2029,
18,
18375,
67,
19082,
67,
8744,
294,
202,
565,
787,
18375,
5621,
202,
565,
3949,
12,
756,
18,
588,
907,
620,
9334,
629,
11272,
202,
565,
679,
18375,
5621,
202,
565,
898,
31,
202,
3593,
2029,
18,
12200,
67,
8744,
294,
202,
565,
2879,
12,
756,
18,
588,
907,
620,
1435,
11272,
202,
565,
898,
31,
202,
3593,
2029,
18,
11101,
67,
14617,
67,
8744,
294,
288,
202,
565,
2029,
540,
1151,
31,
202,
565,
679,
18375,
5621,
202,
565,
913,
5621,
202,
565,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
202,
565,
1323,
261,
1151,
480,
446,
262,
288,
202,
202,
6288,
907,
12,
1151,
11272,
202,
202,
3624,
273,
1151,
18,
588,
2134,
10291,
5621,
202,
565,
289,
202,
565,
898,
31,
202,
97,
202,
3593,
2029,
18,
16560,
1360,
67,
706,
3902,
27035,
67,
8744,
294,
202,
565,
4929,
11983,
12,
756,
18,
588,
18948,
9334,
756,
18,
588,
907,
620,
1435,
11272,
202,
565,
898,
31,
202,
3593,
2029,
18,
10976,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4472,
907,
12,
2029,
756,
262,
565,
288,
202,
759,
25935,
603,
326,
756,
618,
745,
326,
10631,
10168,
1838,
18,
202,
759,
5098,
5678,
5140,
471,
7429,
1492,
854,
486,
202,
759,
7681,
635,
10168,
854,
5343,
5122,
18,
3639,
1620,
261,
756,
18,
588,
15101,
1435,
262,
288,
202,
3593,
2029,
18,
5151,
67,
8744,
294,
202,
565,
3949,
12,
756,
18,
588,
907,
620,
9334,
629,
11272,
202,
565,
898,
31,
202,
3593,
2029,
18,
18375,
67,
19082,
67,
8744,
294,
202,
565,
787,
18375,
5621,
202,
565,
3949,
12,
756,
18,
588,
907,
620,
9334,
629,
11272,
202,
565,
679,
18375,
5621,
202,
565,
898,
31,
202,
3593,
2029,
18,
12200,
67,
2
] |
{ } | { } | public void keyReleased(KeyEvent e) { } | 12183 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12183/003bedd4a60eb785c7a3d3ad25389d1f9fadcde2/Reunion.java/buggy/trunk/applications/reunion/src/org/lucane/applications/reunion/Reunion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
498,
26363,
12,
653,
1133,
425,
13,
225,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
498,
26363,
12,
653,
1133,
425,
13,
225,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ptds.addTable("SECOND_TABLE","SELECT COLUMN0, COLUMN3 FROM SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); | ptds.addTable("SECOND_TABLE", "SELECT COLUMN0, COLUMN3 FROM SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); | public void testCombinedWhere() throws Exception { QueryDataSet ptds = new QueryDataSet(_connection); ptds.addTable("SECOND_TABLE","SELECT COLUMN0, COLUMN3 FROM SECOND_TABLE where COLUMN0='row 0 col 0' and COLUMN2='row 0 col 2'"); ITable table = ptds.getTable("SECOND_TABLE"); assertEquals("","row 0 col 0",table.getValue(0,"COLUMN0").toString()); assertEquals("","row 0 col 3",table.getValue(0,"COLUMN3").toString()); assertEquals("","1",new String(table.getRowCount() + "")); } | 49588 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49588/910986f4f575cbdbeeaa9a5fe2dcd847aafba5ce/QueryDataSetTest.java/clean/src/test/org/dbunit/database/QueryDataSetTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
27994,
5262,
1435,
1216,
1185,
565,
288,
3639,
2770,
13676,
5818,
2377,
273,
394,
2770,
13676,
24899,
4071,
1769,
3639,
5818,
2377,
18,
1289,
1388,
2932,
16328,
67,
7775,
3113,
315,
4803,
13473,
20,
16,
13473,
23,
4571,
19379,
67,
7775,
1625,
13473,
20,
2218,
492,
374,
645,
374,
11,
471,
13473,
22,
2218,
492,
374,
645,
576,
4970,
1769,
3639,
467,
1388,
1014,
273,
5818,
2377,
18,
588,
1388,
2932,
16328,
67,
7775,
8863,
3639,
1815,
8867,
2932,
15937,
492,
374,
645,
374,
3113,
2121,
18,
24805,
12,
20,
10837,
11009,
20,
20387,
10492,
10663,
3639,
1815,
8867,
2932,
15937,
492,
374,
645,
890,
3113,
2121,
18,
24805,
12,
20,
10837,
11009,
23,
20387,
10492,
10663,
3639,
1815,
8867,
2932,
15937,
21,
3113,
2704,
514,
12,
2121,
18,
588,
26359,
1435,
397,
1408,
10019,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
27994,
5262,
1435,
1216,
1185,
565,
288,
3639,
2770,
13676,
5818,
2377,
273,
394,
2770,
13676,
24899,
4071,
1769,
3639,
5818,
2377,
18,
1289,
1388,
2932,
16328,
67,
7775,
3113,
315,
4803,
13473,
20,
16,
13473,
23,
4571,
19379,
67,
7775,
1625,
13473,
20,
2218,
492,
374,
645,
374,
11,
471,
13473,
22,
2218,
492,
374,
645,
576,
4970,
1769,
3639,
467,
1388,
1014,
273,
5818,
2377,
18,
588,
1388,
2932,
16328,
67,
7775,
8863,
3639,
1815,
8867,
2932,
15937,
492,
374,
645,
374,
3113,
2121,
18,
24805,
12,
20,
10837,
11009,
20,
20387,
10492,
10663,
3639,
1815,
8867,
2932,
15937,
492,
374,
645,
890,
3113,
2121,
18,
24805,
12,
20,
10837,
11009,
23,
20387,
2
] |
public ReteTuple createAndPropagateAssertTuple(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory); | public void createAndPropagateAssertTuple(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory); | public ReteTuple createAndPropagateAssertTuple(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory); | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/1eecc5b92cff9cb47286a1e0c8737e6643f2f46a/TupleSinkPropagator.java/buggy/drools-core/src/main/java/org/drools/reteoo/TupleSinkPropagator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
534,
12865,
9038,
30545,
11953,
340,
8213,
9038,
12,
3061,
9766,
3259,
1640,
16,
4766,
10402,
1186,
9095,
367,
1042,
819,
16,
4766,
10402,
3186,
14836,
6031,
5960,
6031,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
534,
12865,
9038,
30545,
11953,
340,
8213,
9038,
12,
3061,
9766,
3259,
1640,
16,
4766,
10402,
1186,
9095,
367,
1042,
819,
16,
4766,
10402,
3186,
14836,
6031,
5960,
6031,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (bundle.getState() == Bundle.INSTALLED) { textSelectionPossible = true; return null; } | if (bundle.getState() == Bundle.INSTALLED) { textSelectionPossible = true; return null; } | private static Class getTextSelectionClass() { if (iTextSelectionClass != null) { // tried before and succeeded return iTextSelectionClass; } if (!textSelectionPossible) { // tried before and failed return null; } // JFace text plug-in is not on prereq chain of generic wb plug-in // hence: ITextSelection.class won't compile // and Class.forName("org.eclipse.jface.text.ITextSelection") won't find // it need to be trickier... Bundle bundle = Platform.getBundle(JFACE_TEXT_PLUG_IN); if (bundle == null || bundle.getState() == Bundle.UNINSTALLED) { // JFace text plug-in is not around, or has already // been removed, assume that it will never be around textSelectionPossible = false; return null; } // plug-in is around // it's not our job to activate the plug-in if (bundle.getState() == Bundle.INSTALLED) { // assume it might come alive later textSelectionPossible = true; return null; } try { Class c = bundle.loadClass(TEXT_SELECTION_CLASS); // remember for next time iTextSelectionClass = c; return iTextSelectionClass; } catch (ClassNotFoundException e) { // unable to load ITextSelection - sounds pretty serious // treat as if JFace text plug-in were unavailable textSelectionPossible = false; return null; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/SelectionEnabler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SelectionEnabler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1659,
6701,
6233,
797,
1435,
288,
3639,
309,
261,
77,
1528,
6233,
797,
480,
446,
13,
288,
5411,
368,
12928,
1865,
471,
15784,
5411,
327,
277,
1528,
6233,
797,
31,
3639,
289,
3639,
309,
16051,
955,
6233,
13576,
13,
288,
5411,
368,
12928,
1865,
471,
2535,
5411,
327,
446,
31,
3639,
289,
3639,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
603,
30328,
85,
2687,
434,
5210,
17298,
15852,
17,
267,
3639,
368,
20356,
30,
467,
1528,
6233,
18,
1106,
8462,
1404,
4074,
3639,
368,
471,
1659,
18,
1884,
461,
2932,
3341,
18,
20416,
18,
78,
865,
18,
955,
18,
1285,
408,
6233,
7923,
8462,
1404,
1104,
3639,
368,
518,
1608,
358,
506,
28837,
2453,
2777,
3639,
8539,
3440,
273,
11810,
18,
588,
3405,
12,
46,
11300,
67,
5151,
67,
18567,
43,
67,
706,
1769,
3639,
309,
261,
9991,
422,
446,
747,
3440,
18,
588,
1119,
1435,
422,
8539,
18,
2124,
19784,
27751,
13,
288,
5411,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
6740,
16,
578,
711,
1818,
5411,
368,
2118,
3723,
16,
6750,
716,
518,
903,
5903,
506,
6740,
5411,
977,
6233,
13576,
273,
629,
31,
5411,
327,
446,
31,
3639,
289,
3639,
368,
15852,
17,
267,
353,
6740,
3639,
368,
518,
1807,
486,
3134,
1719,
358,
10235,
326,
15852,
17,
267,
3639,
309,
261,
9991,
18,
588,
1119,
1435,
422,
8539,
18,
19784,
27751,
13,
288,
5411,
368,
6750,
518,
4825,
12404,
13714,
5137,
5411,
977,
6233,
13576,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1659,
6701,
6233,
797,
1435,
288,
3639,
309,
261,
77,
1528,
6233,
797,
480,
446,
13,
288,
5411,
368,
12928,
1865,
471,
15784,
5411,
327,
277,
1528,
6233,
797,
31,
3639,
289,
3639,
309,
16051,
955,
6233,
13576,
13,
288,
5411,
368,
12928,
1865,
471,
2535,
5411,
327,
446,
31,
3639,
289,
3639,
368,
804,
11824,
977,
15852,
17,
267,
353,
486,
603,
30328,
85,
2687,
434,
5210,
17298,
15852,
17,
267,
3639,
368,
20356,
30,
467,
1528,
6233,
18,
1106,
8462,
1404,
4074,
3639,
368,
471,
1659,
18,
1884,
461,
2932,
3341,
18,
20416,
18,
78,
865,
18,
955,
18,
1285,
408,
6233,
7923,
8462,
1404,
1104,
3639,
368,
518,
1608,
358,
506,
28837,
2453,
2
] |
System.err.println("viewing results for execution "+execData.getID()); | public void handlePopup(MouseEvent e) { postPopup = true; xLoc = e.getX(); yLoc = e.getY(); ExecutionView exec = getViewAt(xLoc,yLoc); if (exec == null) return; ChainExecutionData execData = exec.getChainExecution(); System.err.println("viewing results for execution "+execData.getID()); String name = execData.getChain().getName(); // this is a hack to let me pull up spots viewer. once history view //is done, remove this. if (name.compareTo("Find and track spots") ==0) { System.err.println("viewing trajectories..."); ViewTrackSpotsEvent event = new ViewTrackSpotsEvent(execData); registry.getEventBus().post(event); } else { SelectChainExecutionEvent event = new SelectChainExecutionEvent(execData); registry.getEventBus().post(event); } } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/e2c81874e6494723db0b78637410176d2fbe60df/ExecutionsCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/executions/ui/ExecutionsCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
13770,
12,
9186,
1133,
425,
13,
288,
202,
202,
2767,
13770,
273,
638,
31,
202,
202,
92,
1333,
273,
425,
18,
588,
60,
5621,
202,
202,
93,
1333,
273,
425,
18,
588,
61,
5621,
202,
202,
3210,
1767,
1196,
273,
8893,
861,
12,
92,
1333,
16,
93,
1333,
1769,
202,
202,
430,
261,
4177,
422,
446,
13,
1082,
202,
2463,
31,
9506,
202,
3893,
3210,
751,
1196,
751,
273,
1196,
18,
588,
3893,
3210,
5621,
202,
202,
3163,
18,
370,
18,
8222,
2932,
1945,
310,
1686,
364,
4588,
13773,
4177,
751,
18,
588,
734,
10663,
202,
202,
780,
508,
273,
1196,
751,
18,
588,
3893,
7675,
17994,
5621,
202,
202,
759,
333,
353,
279,
11769,
358,
2231,
1791,
6892,
731,
1694,
6968,
14157,
18,
3647,
4927,
1476,
202,
202,
759,
291,
2731,
16,
1206,
333,
18,
202,
202,
430,
261,
529,
18,
9877,
774,
2932,
3125,
471,
3298,
1694,
6968,
7923,
422,
20,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
1945,
310,
1284,
937,
2401,
7070,
1769,
1082,
202,
1767,
4402,
3389,
6968,
1133,
871,
273,
394,
4441,
4402,
3389,
6968,
1133,
12,
4177,
751,
1769,
1082,
202,
9893,
18,
588,
1133,
7086,
7675,
2767,
12,
2575,
1769,
6862,
202,
97,
202,
202,
12107,
288,
1082,
202,
3391,
3893,
3210,
1133,
871,
273,
4697,
202,
2704,
6766,
3893,
3210,
1133,
12,
4177,
751,
1769,
1082,
202,
9893,
18,
588,
1133,
7086,
7675,
2767,
12,
2575,
1769,
6862,
202,
97,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
13770,
12,
9186,
1133,
425,
13,
288,
202,
202,
2767,
13770,
273,
638,
31,
202,
202,
92,
1333,
273,
425,
18,
588,
60,
5621,
202,
202,
93,
1333,
273,
425,
18,
588,
61,
5621,
202,
202,
3210,
1767,
1196,
273,
8893,
861,
12,
92,
1333,
16,
93,
1333,
1769,
202,
202,
430,
261,
4177,
422,
446,
13,
1082,
202,
2463,
31,
9506,
202,
3893,
3210,
751,
1196,
751,
273,
1196,
18,
588,
3893,
3210,
5621,
202,
202,
3163,
18,
370,
18,
8222,
2932,
1945,
310,
1686,
364,
4588,
13773,
4177,
751,
18,
588,
734,
10663,
202,
202,
780,
508,
273,
1196,
751,
18,
588,
3893,
7675,
17994,
5621,
202,
202,
759,
333,
353,
279,
2
] | |
RouterInfo ri = _context.netDb().lookupRouterInfoLocally(_config.getSendTo()); | RouterInfo ri = _nextHopCache; if (ri == null) ri = _context.netDb().lookupRouterInfoLocally(_config.getSendTo()); | public void dispatch(TunnelDataMessage msg, Hash recvFrom) { boolean ok = false; if (_processor != null) ok = _processor.process(msg.getData(), 0, msg.getData().length, recvFrom); else if (_inboundEndpointProcessor != null) ok = _inboundEndpointProcessor.retrievePreprocessedData(msg.getData(), 0, msg.getData().length, recvFrom); if (!ok) { if (_log.shouldLog(Log.ERROR)) _log.error("Failed to dispatch " + msg + ": processor=" + _processor + " inboundEndpoint=" + _inboundEndpointProcessor); return; } if ( (_config != null) && (_config.getSendTo() != null) ) { _config.incrementProcessedMessages(); RouterInfo ri = _context.netDb().lookupRouterInfoLocally(_config.getSendTo()); if (ri != null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Send off to nextHop directly (" + _config.getSendTo().toBase64().substring(0,4) + " for " + msg); send(_config, msg, ri); } else { if (_log.shouldLog(Log.WARN)) _log.warn("Lookup the nextHop (" + _config.getSendTo().toBase64().substring(0,4) + " for " + msg); _context.netDb().lookupRouterInfo(_config.getSendTo(), new SendJob(msg), new TimeoutJob(msg), 10*1000); } } else { _inboundEndpointProcessor.getConfig().incrementProcessedMessages(); if (_log.shouldLog(Log.DEBUG)) _log.debug("Receive fragment: on " + _config + ": " + msg); _handler.receiveTunnelMessage(msg.getData(), 0, msg.getData().length); } } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/21f13dba43c6ab0e1670b99284d5d33379f8e091/TunnelParticipant.java/clean/router/java/src/net/i2p/router/tunnel/TunnelParticipant.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3435,
12,
20329,
751,
1079,
1234,
16,
2474,
10665,
1265,
13,
288,
3639,
1250,
1529,
273,
629,
31,
3639,
309,
261,
67,
8700,
480,
446,
13,
5411,
1529,
273,
389,
8700,
18,
2567,
12,
3576,
18,
588,
751,
9334,
374,
16,
1234,
18,
588,
751,
7675,
2469,
16,
10665,
1265,
1769,
3639,
469,
309,
261,
67,
267,
3653,
3293,
5164,
480,
446,
13,
2398,
1529,
273,
389,
267,
3653,
3293,
5164,
18,
17466,
1386,
11005,
751,
12,
3576,
18,
588,
751,
9334,
374,
16,
1234,
18,
588,
751,
7675,
2469,
16,
10665,
1265,
1769,
7734,
309,
16051,
601,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
2925,
358,
3435,
315,
397,
1234,
397,
6398,
6659,
1546,
397,
389,
8700,
18701,
397,
315,
13357,
3293,
1546,
397,
389,
267,
3653,
3293,
5164,
1769,
5411,
327,
31,
3639,
289,
7734,
309,
261,
261,
67,
1425,
480,
446,
13,
597,
261,
67,
1425,
18,
588,
3826,
774,
1435,
480,
446,
13,
262,
288,
5411,
389,
1425,
18,
15016,
13533,
5058,
5621,
5411,
9703,
966,
12347,
273,
389,
4285,
27461,
1649,
31,
309,
261,
566,
422,
446,
13,
12347,
273,
389,
2472,
18,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
24899,
1425,
18,
588,
3826,
774,
10663,
5411,
309,
261,
566,
480,
446,
13,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
10792,
389,
1330,
18,
4148,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3435,
12,
20329,
751,
1079,
1234,
16,
2474,
10665,
1265,
13,
288,
3639,
1250,
1529,
273,
629,
31,
3639,
309,
261,
67,
8700,
480,
446,
13,
5411,
1529,
273,
389,
8700,
18,
2567,
12,
3576,
18,
588,
751,
9334,
374,
16,
1234,
18,
588,
751,
7675,
2469,
16,
10665,
1265,
1769,
3639,
469,
309,
261,
67,
267,
3653,
3293,
5164,
480,
446,
13,
2398,
1529,
273,
389,
267,
3653,
3293,
5164,
18,
17466,
1386,
11005,
751,
12,
3576,
18,
588,
751,
9334,
374,
16,
1234,
18,
588,
751,
7675,
2469,
16,
10665,
1265,
1769,
7734,
309,
16051,
601,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
2
] |
for (CacheUpdater participant : myRefreshParticipants) { | for (int i = 0; i < myRefreshParticipants.size(); i++) { CacheUpdater participant = myRefreshParticipants.get(i); | public void run() { for (Runnable runnable : myRefreshEventsToFire) { try { runnable.run(); } catch (Exception e) { LOG.error(e); } } if (myRefreshCount > 0) { myRefreshEventsToFire.clear(); } else { myRefreshEventsToFire = null; final FileSystemSynchronizer synchronizer; if (asynchronous) { synchronizer = new FileSystemSynchronizer(); for (CacheUpdater participant : myRefreshParticipants) { synchronizer.registerCacheUpdater(participant); } } else { synchronizer = null; } myVirtualFileManagerListenerMulticaster.getMulticaster().afterRefreshFinish(asynchronous); if (asynchronous) { int filesCount = synchronizer.collectFilesToUpdate(); if (filesCount > 0) { boolean runWithProgress = !ApplicationManager.getApplication().isUnitTestMode() && filesCount > 5; if (runWithProgress) { Runnable process = new Runnable() { public void run() { synchronizer.execute(); } }; ApplicationManager.getApplication().runProcessWithProgressSynchronously(process, "Updating Modified Files...", false, null); } else { synchronizer.execute(); } } } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b6de686a60578318aedf3fa8075bcc0f2c9b61c7/VirtualFileManagerImpl.java/buggy/source/com/intellij/openapi/vfs/impl/VirtualFileManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2868,
364,
261,
20013,
14685,
294,
3399,
8323,
3783,
774,
9723,
13,
288,
7734,
775,
288,
5375,
14685,
18,
2681,
5621,
7734,
289,
7734,
1044,
261,
503,
425,
13,
288,
5375,
2018,
18,
1636,
12,
73,
1769,
7734,
289,
2868,
289,
2868,
309,
261,
4811,
8323,
1380,
405,
374,
13,
288,
7734,
3399,
8323,
3783,
774,
9723,
18,
8507,
5621,
2868,
289,
2868,
469,
288,
7734,
3399,
8323,
3783,
774,
9723,
273,
446,
31,
7734,
727,
10931,
19298,
1824,
3248,
1824,
31,
7734,
309,
261,
345,
7121,
13,
288,
5375,
3248,
1824,
273,
394,
10931,
19298,
1824,
5621,
10402,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3399,
8323,
1988,
27620,
18,
1467,
5621,
277,
27245,
288,
4379,
15305,
14188,
273,
3399,
8323,
1988,
27620,
18,
588,
12,
77,
1769,
10792,
3248,
1824,
18,
4861,
1649,
15305,
12,
2680,
14265,
1769,
5375,
289,
7734,
289,
7734,
469,
288,
5375,
3248,
1824,
273,
446,
31,
7734,
289,
7734,
3399,
6466,
812,
1318,
2223,
5049,
335,
2440,
18,
588,
5049,
335,
2440,
7675,
5205,
8323,
11641,
12,
345,
7121,
1769,
7734,
309,
261,
345,
7121,
13,
288,
5375,
509,
1390,
1380,
273,
3248,
1824,
18,
14676,
2697,
21267,
5621,
5375,
309,
261,
2354,
1380,
405,
374,
13,
288,
10792,
1250,
1086,
1190,
5491,
273,
401,
3208,
1318,
18,
588,
3208,
7675,
291,
2802,
4709,
2309,
1435,
597,
1390,
1380,
405,
1381,
31,
10792,
309,
261,
2681,
1190,
5491,
13,
288,
8227,
10254,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2868,
364,
261,
20013,
14685,
294,
3399,
8323,
3783,
774,
9723,
13,
288,
7734,
775,
288,
5375,
14685,
18,
2681,
5621,
7734,
289,
7734,
1044,
261,
503,
425,
13,
288,
5375,
2018,
18,
1636,
12,
73,
1769,
7734,
289,
2868,
289,
2868,
309,
261,
4811,
8323,
1380,
405,
374,
13,
288,
7734,
3399,
8323,
3783,
774,
9723,
18,
8507,
5621,
2868,
289,
2868,
469,
288,
7734,
3399,
8323,
3783,
774,
9723,
273,
446,
31,
7734,
727,
10931,
19298,
1824,
3248,
1824,
31,
7734,
309,
261,
345,
7121,
13,
288,
5375,
3248,
1824,
273,
394,
10931,
19298,
1824,
5621,
10402,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3399,
8323,
1988,
27620,
18,
2
] |
public void visitChildren(NodeVisitor v) { | Object visitChildren(NodeVisitor v) { | public void visitChildren(NodeVisitor v) { // nothing to do } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/46f164284b4c476b23700f47d7d82a18a0c7d4f0/BranchStatement.java/buggy/src/polyglot/ast/BranchStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
3757,
4212,
12,
907,
7413,
331,
13,
288,
565,
368,
5083,
358,
741,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
3757,
4212,
12,
907,
7413,
331,
13,
288,
565,
368,
5083,
358,
741,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static String getDefaultMethodBodyStatement(String methodName, String[] paramNames, String retTypeSig, boolean callSuper) { | public static String getDefaultMethodBodyStatement(String methodName, String[] paramNames, String retTypeSig, boolean callSuper) { | private static String getDefaultMethodBodyStatement(String methodName, String[] paramNames, String retTypeSig, boolean callSuper) { StringBuffer buf= new StringBuffer(); if (callSuper) { if (retTypeSig != null) { if (!Signature.SIG_VOID.equals(retTypeSig)) { buf.append("return "); //$NON-NLS-1$ } buf.append("super."); //$NON-NLS-1$ buf.append(methodName); } else { buf.append("super"); //$NON-NLS-1$ } buf.append('('); for (int i= 0; i < paramNames.length; i++) { if (i > 0) { buf.append(", "); //$NON-NLS-1$ } buf.append(paramNames[i]); } buf.append(");"); //$NON-NLS-1$ } else { if (retTypeSig != null && !retTypeSig.equals(Signature.SIG_VOID)) { if (!isPrimitiveType(retTypeSig) || Signature.getArrayCount(retTypeSig) > 0) { buf.append("return null;"); //$NON-NLS-1$ } else if (retTypeSig.equals(Signature.SIG_BOOLEAN)) { buf.append("return false;"); //$NON-NLS-1$ } else { buf.append("return 0;"); //$NON-NLS-1$ } } } return buf.toString(); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/641e100f8c36f96c820caa961ea4a0d119e8b823/StubUtility.java/clean/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
4829,
1305,
2250,
3406,
12,
780,
4918,
16,
514,
8526,
579,
1557,
16,
514,
325,
559,
8267,
16,
1250,
745,
8051,
13,
288,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
430,
261,
1991,
8051,
13,
288,
1082,
202,
430,
261,
1349,
559,
8267,
480,
446,
13,
288,
9506,
202,
430,
16051,
5374,
18,
18513,
67,
58,
12945,
18,
14963,
12,
1349,
559,
8267,
3719,
288,
6862,
202,
4385,
18,
6923,
2932,
2463,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
9506,
202,
4385,
18,
6923,
2932,
9565,
1199,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4385,
18,
6923,
12,
2039,
461,
1769,
1082,
202,
97,
469,
288,
9506,
202,
4385,
18,
6923,
2932,
9565,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
4385,
18,
6923,
2668,
2668,
1769,
25083,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
579,
1557,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
261,
77,
405,
374,
13,
288,
6862,
202,
4385,
18,
6923,
2932,
16,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
9506,
202,
4385,
18,
6923,
12,
891,
1557,
63,
77,
19226,
1082,
202,
97,
1082,
202,
4385,
18,
6923,
2932,
1769,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
469,
288,
1082,
202,
430,
261,
1349,
559,
8267,
480,
446,
597,
401,
1349,
559,
8267,
18,
14963,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
4829,
1305,
2250,
3406,
12,
780,
4918,
16,
514,
8526,
579,
1557,
16,
514,
325,
559,
8267,
16,
1250,
745,
8051,
13,
288,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
430,
261,
1991,
8051,
13,
288,
1082,
202,
430,
261,
1349,
559,
8267,
480,
446,
13,
288,
9506,
202,
430,
16051,
5374,
18,
18513,
67,
58,
12945,
18,
14963,
12,
1349,
559,
8267,
3719,
288,
6862,
202,
4385,
18,
6923,
2932,
2463,
315,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
9506,
202,
4385,
18,
6923,
2932,
9565,
1199,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
4385,
18,
6923,
12,
2039,
461,
1769,
1082,
2
] |
final InputStream in = inputStreamForClassName(classname.getType()); | final InputStream in = inputStreamForClassName(classloader, classname.getType()); | public AbstractClassClosure(final List/* <Class> */classes, final boolean includeJDK) { final Set visited = new HashSet(); final ArrayListStack stack = new ArrayListStack(); for (final Iterator iterator = classes.iterator(); iterator.hasNext();) { final Class c = (Class)iterator.next(); final ClassName classname = ClassName.getClassName(c.getName().replace('.', '/')); stack.push(classname); visited.add(classname.getExternalName()); } while (!stack.empty()) { // Add class to closure. final ClassName classname = (ClassName)stack.pop(); final InputStream in = inputStreamForClassName(classname.getType()); try { final ClassFile classfile = new ClassFile(in); closure.add(classfile.getName().getExternalName()); final ConstantPool pool = classfile.getConstantPool(); final Iterator references = pool.getAllClassNames().iterator(); while (references.hasNext()) { final ClassName classnameReference = (ClassName)references.next(); final String name = classnameReference.getExternalName(); if (name.indexOf('[') != -1) { // skip arrays } else if (!includeJDK && (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("sun.") || name.startsWith("com.sun.corba") || name.startsWith("com.sun.image") || name.startsWith("com.sun.java.swing") || name.startsWith("com.sun.naming") || name .startsWith("com.sun.security"))) { // if directed, skip JDK references } else { final boolean isNew = visited.add(name); if (isNew) { stack.push(classnameReference); } } } // Get the input stream a second time to add to JAR final InputStream in2 = inputStreamForClassName(classname.getType()); try { addClass(classfile.getName().getInternalName(), in2); } finally { in2.close(); } } catch (IOException e) { throw new WicketRuntimeException(e); } finally { try { in.close(); } catch (IOException e) { throw new RuntimeException(e); } } } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/63d8ed9961a9ef3aae39c5f13be4b5fec031d416/AbstractClassClosure.java/buggy/wicket-sandbox/src/jonathan/java/wicket/util/lang/AbstractClassClosure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
797,
10573,
12,
6385,
987,
20308,
411,
797,
34,
1195,
4701,
16,
727,
1250,
2341,
46,
3398,
13,
202,
95,
202,
202,
6385,
1000,
9711,
273,
394,
6847,
5621,
202,
202,
6385,
2407,
2624,
2110,
273,
394,
2407,
2624,
5621,
202,
202,
1884,
261,
6385,
4498,
2775,
273,
3318,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
1659,
276,
273,
261,
797,
13,
9838,
18,
4285,
5621,
1082,
202,
6385,
19811,
7479,
273,
19811,
18,
588,
3834,
12,
71,
18,
17994,
7675,
2079,
2668,
1093,
16,
2023,
10019,
1082,
202,
3772,
18,
6206,
12,
18340,
1769,
1082,
202,
30129,
18,
1289,
12,
18340,
18,
588,
6841,
461,
10663,
202,
202,
97,
202,
202,
17523,
16051,
3772,
18,
5531,
10756,
202,
202,
95,
1082,
202,
759,
1436,
667,
358,
7213,
18,
1082,
202,
6385,
19811,
7479,
273,
261,
3834,
13,
3772,
18,
5120,
5621,
1082,
202,
6385,
5037,
316,
273,
10010,
1290,
3834,
12,
18340,
18,
588,
559,
10663,
1082,
202,
698,
1082,
202,
95,
9506,
202,
6385,
30614,
667,
768,
273,
394,
30614,
12,
267,
1769,
9506,
202,
20823,
18,
1289,
12,
1106,
768,
18,
17994,
7675,
588,
6841,
461,
10663,
9506,
202,
6385,
10551,
2864,
2845,
273,
667,
768,
18,
588,
6902,
2864,
5621,
9506,
202,
6385,
4498,
5351,
273,
2845,
18,
588,
1595,
18127,
7675,
9838,
5621,
9506,
202,
17523,
261,
14353,
18,
5332,
2134,
10756,
9506,
202,
95,
6862,
202,
6385,
19811,
7479,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
797,
10573,
12,
6385,
987,
20308,
411,
797,
34,
1195,
4701,
16,
727,
1250,
2341,
46,
3398,
13,
202,
95,
202,
202,
6385,
1000,
9711,
273,
394,
6847,
5621,
202,
202,
6385,
2407,
2624,
2110,
273,
394,
2407,
2624,
5621,
202,
202,
1884,
261,
6385,
4498,
2775,
273,
3318,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
1659,
276,
273,
261,
797,
13,
9838,
18,
4285,
5621,
1082,
202,
6385,
19811,
7479,
273,
19811,
18,
588,
3834,
12,
71,
18,
17994,
7675,
2079,
2668,
1093,
16,
2023,
10019,
1082,
202,
3772,
18,
6206,
12,
18340,
1769,
1082,
202,
30129,
18,
1289,
12,
18340,
18,
588,
6841,
461,
10663,
2
] |
public void report() { for (Iterator<XField> i = statMap.keySet().iterator(); i.hasNext(); ) { XField xfield = i.next(); FieldStats stats = statMap.get(xfield); WarningPropertySet propertySet = new WarningPropertySet(); int numReadUnlocked = stats.getNumAccesses(READ_UNLOCKED); int numWriteUnlocked = stats.getNumAccesses(WRITE_UNLOCKED); int numReadLocked = stats.getNumAccesses(READ_LOCKED); int numWriteLocked = stats.getNumAccesses(WRITE_LOCKED); int locked = numReadLocked + numWriteLocked; int biasedLocked = numReadLocked + (int) (WRITE_BIAS * numWriteLocked); int unlocked = numReadUnlocked + numWriteUnlocked; int biasedUnlocked = numReadUnlocked + (int) (WRITE_BIAS * numWriteUnlocked); int writes = numWriteLocked + numWriteUnlocked; if (locked == 0) { continue;// propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_LOCKED); } if (unlocked == 0) { continue;// propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_UNLOCKED); } if (DEBUG) { System.out.println("IS2: " + xfield); System.out.println(" RL: " + numReadLocked); System.out.println(" WL: " + numWriteLocked); System.out.println(" RU: " + numReadUnlocked); System.out.println(" WU: " + numWriteUnlocked); } if (!EVAL && numReadUnlocked > 0 && ((int) (UNSYNC_FACTOR * biasedUnlocked)) > biasedLocked) {// continue; propertySet.addProperty(InconsistentSyncWarningProperty.MANY_BIASED_UNLOCKED); } // NOTE: we ignore access to public, volatile, and final fields if (numWriteUnlocked + numWriteLocked == 0) { // No writes outside of constructor if (DEBUG) System.out.println(" No writes outside of constructor"); propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_WRITTEN);// continue; } if (numReadUnlocked + numReadLocked == 0) { // No reads outside of constructor if (DEBUG) System.out.println(" No reads outside of constructor");// continue; propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_READ); } if (stats.getNumLocalLocks() == 0) { if (DEBUG) System.out.println(" No local locks");// continue; propertySet.addProperty(InconsistentSyncWarningProperty.NO_LOCAL_LOCKS); } int freq; if (locked + unlocked > 0) { freq = (100 * locked) / (locked + unlocked); } else { freq = 0; } if (freq < MIN_SYNC_PERCENT) {// continue; propertySet.addProperty(InconsistentSyncWarningProperty.BELOW_MIN_SYNC_PERCENT); } if (DEBUG) System.out.println(" Sync %: " + freq); if (stats.getNumGetterMethodAccesses() >= unlocked) { // Unlocked accesses are only in getter method(s). propertySet.addProperty(InconsistentSyncWarningProperty.ONLY_UNSYNC_IN_GETTERS); } // At this point, we report the field as being inconsistently synchronized int priority = propertySet.computePriority(NORMAL_PRIORITY); if (!propertySet.isFalsePositive(priority)) { BugInstance bugInstance = new BugInstance("IS2_INCONSISTENT_SYNC", priority) .addClass(xfield.getClassName()) .addField(xfield) .addInt(freq).describe("INT_SYNC_PERCENT"); if (FindBugsAnalysisFeatures.isRelaxedMode()) { propertySet.decorateBugInstance(bugInstance); } // Add source lines for unsynchronized accesses for (Iterator<SourceLineAnnotation> j = stats.unsyncAccessIterator(); j.hasNext();) { SourceLineAnnotation accessSourceLine = j.next(); bugInstance.addSourceLine(accessSourceLine).describe("SOURCE_LINE_UNSYNC_ACCESS"); } if (SYNC_ACCESS) { // Add source line for synchronized accesses; // useful for figuring out what the detector is doing for (Iterator<SourceLineAnnotation> j = stats.syncAccessIterator(); j.hasNext();) { SourceLineAnnotation accessSourceLine = j.next(); bugInstance.addSourceLine(accessSourceLine).describe("SOURCE_LINE_SYNC_ACCESS"); } } if (EVAL) { bugInstance.addInt(biasedLocked).describe("INT_BIASED_LOCKED"); bugInstance.addInt(biasedUnlocked).describe("INT_BIASED_UNLOCKED"); } bugReporter.reportBug(bugInstance); } } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0a90d09d10d1b86a115beba3e78b25e18a12d9c9/FindInconsistentSync2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2605,
1435,
288,
202,
202,
1884,
261,
3198,
32,
60,
974,
34,
277,
273,
610,
863,
18,
856,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
1082,
202,
60,
974,
619,
1518,
273,
277,
18,
4285,
5621,
1082,
202,
974,
4195,
3177,
273,
610,
863,
18,
588,
12,
92,
1518,
1769,
25083,
202,
6210,
1396,
694,
1272,
694,
273,
394,
9728,
1396,
694,
5621,
1082,
202,
474,
818,
1994,
7087,
329,
273,
3177,
18,
588,
2578,
1862,
281,
12,
6949,
67,
2124,
6589,
2056,
1769,
1082,
202,
474,
818,
3067,
7087,
329,
273,
3177,
18,
588,
2578,
1862,
281,
12,
11677,
67,
2124,
6589,
2056,
1769,
1082,
202,
474,
818,
1994,
8966,
273,
3177,
18,
588,
2578,
1862,
281,
12,
6949,
67,
6589,
2056,
1769,
1082,
202,
474,
818,
3067,
8966,
273,
3177,
18,
588,
2578,
1862,
281,
12,
11677,
67,
6589,
2056,
1769,
1082,
202,
474,
8586,
273,
818,
1994,
8966,
397,
818,
3067,
8966,
31,
1082,
202,
474,
10054,
8905,
8966,
273,
818,
1994,
8966,
397,
261,
474,
13,
261,
11677,
67,
38,
16133,
380,
818,
3067,
8966,
1769,
1082,
202,
474,
25966,
273,
818,
1994,
7087,
329,
397,
818,
3067,
7087,
329,
31,
1082,
202,
474,
10054,
8905,
7087,
329,
273,
818,
1994,
7087,
329,
397,
261,
474,
13,
261,
11677,
67,
38,
16133,
380,
818,
3067,
7087,
329,
1769,
1082,
202,
474,
7262,
273,
818,
3067,
8966,
397,
818,
3067,
7087,
329,
31,
1082,
202,
430,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2605,
1435,
288,
202,
202,
1884,
261,
3198,
32,
60,
974,
34,
277,
273,
610,
863,
18,
856,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
1082,
202,
60,
974,
619,
1518,
273,
277,
18,
4285,
5621,
1082,
202,
974,
4195,
3177,
273,
610,
863,
18,
588,
12,
92,
1518,
1769,
25083,
202,
6210,
1396,
694,
1272,
694,
273,
394,
9728,
1396,
694,
5621,
1082,
202,
474,
818,
1994,
7087,
329,
273,
3177,
18,
588,
2578,
1862,
281,
12,
6949,
67,
2124,
6589,
2056,
1769,
1082,
202,
474,
818,
3067,
7087,
329,
273,
3177,
18,
588,
2578,
1862,
281,
12,
11677,
67,
2124,
6589,
2056,
1769,
1082,
202,
474,
818,
1994,
8966,
2
] | ||
if ( instruction.getOffset() != 0 ) { sb.append( '+' ); | long offset = instruction.getOffset(); if ( offset != 0 ) { if ( offset > 0 ) sb.append( '+' ); | private String getInstructionString( IAsmInstruction instruction, int instrPosition, int argPosition ) { int worstCaseSpace = Math.max( instrPosition, argPosition ); char[] spaces = new char[worstCaseSpace]; Arrays.fill( spaces, ' ' ); StringBuffer sb = new StringBuffer(); if ( instruction != null ) { sb.append( instruction.getAdress().toHexAddressString() ); sb.append( ' ' ); String functionName = instruction.getFunctionName(); if ( functionName != null && functionName.length() > 0 ) { sb.append( '<' ); sb.append( functionName ); if ( instruction.getOffset() != 0 ) { sb.append( '+' ); sb.append( instruction.getOffset() ); } sb.append( ">:" ); //$NON-NLS-1$ sb.append( spaces, 0, instrPosition - sb.length() ); } sb.append( instruction.getOpcode() ); sb.append( spaces, 0, argPosition - sb.length() ); sb.append( instruction.getArguments() ); sb.append( '\n' ); } return sb.toString(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/15c37f6a0abd24b15bc605320333497b9ff5691c/DisassemblyEditorInput.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/disassembly/DisassemblyEditorInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
7854,
4549,
780,
12,
467,
1463,
81,
11983,
7592,
16,
509,
16170,
2555,
16,
509,
1501,
2555,
262,
288,
202,
202,
474,
22952,
2449,
3819,
273,
2361,
18,
1896,
12,
16170,
2555,
16,
1501,
2555,
11272,
202,
202,
3001,
8526,
7292,
273,
394,
1149,
63,
91,
280,
334,
2449,
3819,
15533,
202,
202,
12726,
18,
5935,
12,
7292,
16,
296,
296,
11272,
202,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
202,
430,
261,
7592,
480,
446,
262,
288,
1082,
202,
18366,
18,
6923,
12,
7592,
18,
588,
1871,
663,
7675,
869,
7037,
1887,
780,
1435,
11272,
1082,
202,
18366,
18,
6923,
12,
296,
296,
11272,
1082,
202,
780,
14117,
273,
7592,
18,
588,
25258,
5621,
1082,
202,
430,
261,
14117,
480,
446,
597,
14117,
18,
2469,
1435,
405,
374,
262,
288,
9506,
202,
18366,
18,
6923,
12,
9138,
11272,
9506,
202,
18366,
18,
6923,
12,
14117,
11272,
9506,
202,
430,
261,
7592,
18,
588,
2335,
1435,
480,
374,
262,
288,
6862,
202,
18366,
18,
6923,
12,
10058,
11272,
6862,
202,
18366,
18,
6923,
12,
7592,
18,
588,
2335,
1435,
11272,
9506,
202,
97,
9506,
202,
18366,
18,
6923,
12,
14402,
2773,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
18366,
18,
6923,
12,
7292,
16,
374,
16,
16170,
2555,
300,
2393,
18,
2469,
1435,
11272,
1082,
202,
97,
1082,
202,
18366,
18,
6923,
12,
7592,
18,
588,
22808,
1435,
11272,
1082,
202,
18366,
18,
6923,
12,
7292,
16,
374,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7854,
4549,
780,
12,
467,
1463,
81,
11983,
7592,
16,
509,
16170,
2555,
16,
509,
1501,
2555,
262,
288,
202,
202,
474,
22952,
2449,
3819,
273,
2361,
18,
1896,
12,
16170,
2555,
16,
1501,
2555,
11272,
202,
202,
3001,
8526,
7292,
273,
394,
1149,
63,
91,
280,
334,
2449,
3819,
15533,
202,
202,
12726,
18,
5935,
12,
7292,
16,
296,
296,
11272,
202,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
202,
430,
261,
7592,
480,
446,
262,
288,
1082,
202,
18366,
18,
6923,
12,
7592,
18,
588,
1871,
663,
7675,
869,
7037,
1887,
780,
1435,
11272,
1082,
202,
18366,
18,
6923,
12,
296,
296,
11272,
1082,
202,
780,
14117,
273,
7592,
18,
588,
2
] |
handler.warn ("modifying document by adding DTD"); handler.doctypeDecl (gi, publicId, systemId); pushString (null, ">"); pushURL (true, "[dtd]", new String [] { publicId, systemId, null }, subset.getCharacterStream (), subset.getByteStream (), subset.getEncoding (), false); while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead ('>')) { break; } else { expandPE = true; parseMarkupdecl (); expandPE = false; } } if (inputStack.size () != 1) error ("external subset has unmatched '>'"); handler.endDoctype (); } } currentElement = gi; element = (Object []) elementInfo.get (gi); currentElementContent = getContentType (element, CONTENT_ANY); boolean white = tryWhitespace (); c = readCh (); while (c != '/' && c != '>') { unread (c); if (!white) error ("need whitespace between attributes"); parseAttribute (gi); white = tryWhitespace (); c = readCh (); } Enumeration atts = declaredAttributes (element); if (atts != null) { String aname; loop: while (atts.hasMoreElements ()) { aname = (String) atts.nextElement (); for (int i = 0; i < tagAttributePos; i++) { if (tagAttributes [i] == aname) { continue loop; } } String value = getAttributeDefaultValue (gi, aname); if (value == null) continue; handler.attribute (aname, value, false); } } switch (c) { case '>': handler.startElement (gi); parseContent (); break; case '/': require ('>'); handler.startElement (gi); handler.endElement (gi); break; } currentElement = oldElement; currentElementContent = oldElementContent; } | currentElement = oldElement; currentElementContent = oldElementContent; } | private void parseElement (boolean maybeGetSubset) throws Exception { String gi; char c; int oldElementContent = currentElementContent; String oldElement = currentElement; Object element []; // This is the (global) counter for the // array of specified attributes. tagAttributePos = 0; // Read the element type name. gi = readNmtoken (true); // If we saw no DTD, and this is the document root element, // let the application modify the input stream by providing one. if (maybeGetSubset) { InputSource subset = handler.getExternalSubset (gi, handler.getSystemId ()); if (subset != null) { String publicId = subset.getPublicId (); String systemId = subset.getSystemId (); handler.warn ("modifying document by adding DTD"); handler.doctypeDecl (gi, publicId, systemId); pushString (null, ">"); // NOTE: [dtd] is so we say what SAX2 expects, // though it's misleading (subset, not entire dtd) pushURL (true, "[dtd]", new String [] { publicId, systemId, null }, subset.getCharacterStream (), subset.getByteStream (), subset.getEncoding (), false); // Loop until we end up back at '>' while (true) { doReport = expandPE = true; skipWhitespace (); doReport = expandPE = false; if (tryRead ('>')) { break; } else { expandPE = true; parseMarkupdecl (); expandPE = false; } } // the ">" string isn't popped yet if (inputStack.size () != 1) error ("external subset has unmatched '>'"); handler.endDoctype (); } } // Determine the current content type. currentElement = gi; element = (Object []) elementInfo.get (gi); currentElementContent = getContentType (element, CONTENT_ANY); // Read the attributes, if any. // After this loop, "c" is the closing delimiter. boolean white = tryWhitespace (); c = readCh (); while (c != '/' && c != '>') { unread (c); if (!white) error ("need whitespace between attributes"); parseAttribute (gi); white = tryWhitespace (); c = readCh (); } // Supply any defaulted attributes. Enumeration atts = declaredAttributes (element); if (atts != null) { String aname;loop: while (atts.hasMoreElements ()) { aname = (String) atts.nextElement (); // See if it was specified. for (int i = 0; i < tagAttributePos; i++) { if (tagAttributes [i] == aname) { continue loop; } } // ... or has a default String value = getAttributeDefaultValue (gi, aname); if (value == null) continue; handler.attribute (aname, value, false); } } // Figure out if this is a start tag // or an empty element, and dispatch an // event accordingly. switch (c) { case '>': handler.startElement (gi); parseContent (); break; case '/': require ('>'); handler.startElement (gi); handler.endElement (gi); break; } // Restore the previous state. currentElement = oldElement; currentElementContent = oldElementContent; } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1046,
261,
6494,
6944,
967,
20315,
13,
565,
1216,
1185,
565,
288,
202,
780,
202,
10052,
31,
202,
3001,
202,
71,
31,
202,
474,
202,
1673,
1046,
1350,
273,
22993,
1350,
31,
202,
780,
202,
1673,
1046,
273,
22993,
31,
202,
921,
202,
2956,
5378,
31,
202,
759,
1220,
353,
326,
261,
6347,
13,
3895,
364,
326,
202,
759,
526,
434,
1269,
1677,
18,
202,
2692,
1499,
1616,
273,
374,
31,
202,
759,
2720,
326,
930,
618,
508,
18,
202,
10052,
273,
855,
50,
1010,
969,
261,
3767,
1769,
202,
759,
971,
732,
19821,
1158,
10696,
40,
16,
471,
333,
353,
326,
1668,
1365,
930,
16,
202,
759,
2231,
326,
2521,
5612,
326,
810,
1407,
635,
17721,
1245,
18,
202,
430,
261,
19133,
967,
20315,
13,
288,
202,
565,
23699,
202,
15657,
273,
1838,
18,
588,
6841,
20315,
261,
10052,
16,
202,
377,
202,
202,
4176,
18,
588,
3163,
548,
1832,
1769,
202,
565,
309,
261,
15657,
480,
446,
13,
288,
202,
202,
780,
202,
482,
548,
273,
7931,
18,
588,
4782,
548,
261,
1769,
202,
202,
780,
202,
4299,
548,
273,
7931,
18,
588,
3163,
548,
261,
1769,
202,
202,
4176,
18,
8935,
7566,
17042,
310,
1668,
635,
6534,
10696,
40,
8863,
202,
202,
4176,
18,
2896,
12387,
3456,
261,
10052,
16,
1071,
548,
16,
30083,
1769,
202,
202,
6206,
780,
261,
2011,
16,
14675,
1769,
202,
202,
759,
5219,
30,
225,
306,
31834,
65,
353,
1427,
732,
12532,
4121,
10168,
22,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1046,
261,
6494,
6944,
967,
20315,
13,
565,
1216,
1185,
565,
288,
202,
780,
202,
10052,
31,
202,
3001,
202,
71,
31,
202,
474,
202,
1673,
1046,
1350,
273,
22993,
1350,
31,
202,
780,
202,
1673,
1046,
273,
22993,
31,
202,
921,
202,
2956,
5378,
31,
202,
759,
1220,
353,
326,
261,
6347,
13,
3895,
364,
326,
202,
759,
526,
434,
1269,
1677,
18,
202,
2692,
1499,
1616,
273,
374,
31,
202,
759,
2720,
326,
930,
618,
508,
18,
202,
10052,
273,
855,
50,
1010,
969,
261,
3767,
1769,
202,
759,
971,
732,
19821,
1158,
10696,
40,
16,
471,
333,
353,
326,
1668,
1365,
930,
16,
202,
759,
2231,
326,
2521,
5612,
326,
810,
1407,
2
] |
TableContent() { _elem = null; _style = null; _children = new LinkedList(); | TableContent(Element e, CascadedStyle style) { _elem = e; _style = style; _children = null; | TableContent() { _elem = null; _style = null; _children = new LinkedList(); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/36d41d42515cf524c6b858498cb3adfef5f8bed8/TableContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/TableContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3555,
1350,
1435,
288,
3639,
389,
10037,
273,
446,
31,
3639,
389,
4060,
273,
446,
31,
3639,
389,
5906,
273,
394,
10688,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3555,
1350,
1435,
288,
3639,
389,
10037,
273,
446,
31,
3639,
389,
4060,
273,
446,
31,
3639,
389,
5906,
273,
394,
10688,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new AbstractDropTarget() { public void drop() { draggedTrim.dock(dropSide); } public Cursor getCursor() { return DragCursors.getCursor(DragCursors .positionToDragCursor(dropSide)); } public Rectangle getSnapRectangle() { int smaller = Math.min(dragRectangle.width, dragRectangle.height); return Geometry .toDisplay( windowComposite, Geometry .getExtrudedEdge( windowComposite .getClientArea(), smaller, dropSide)); } }; | return createDropResult(dragRectangle, draggedTrim, dropSide); | public IDropTarget drag(Control currentControl, Object draggedObject, Point position, final Rectangle dragRectangle) { // Handle dropping window trim on the border of the workbench (for example, // the fast view bar) if (draggedObject instanceof IWindowTrim) { final IWindowTrim draggedTrim = (IWindowTrim) draggedObject; Control trimControl = draggedTrim.getControl(); if (trimControl.getParent() == windowComposite) { Control targetTrim = getTrimControl(currentControl); if (targetTrim != null) { int side = layout.getTrimLocation(targetTrim); if (side == SWT.DEFAULT) { if (targetTrim == layout.getCenterControl()) { side = CompatibilityDragTarget.getRelativePosition( targetTrim, position); if (side == SWT.CENTER) { side = SWT.DEFAULT; } targetTrim = null; } } if (side != SWT.DEFAULT && (targetTrim != trimControl) && (targetTrim != null || side != layout .getTrimLocation(trimControl)) && ((side & draggedTrim.getValidSides()) != 0)) { final int dropSide = side; final Control insertionPoint = targetTrim; return new AbstractDropTarget() { public void drop() { draggedTrim.dock(dropSide); } public Cursor getCursor() { return DragCursors.getCursor(DragCursors .positionToDragCursor(dropSide)); } public Rectangle getSnapRectangle() { int smaller = Math.min(dragRectangle.width, dragRectangle.height); return Geometry .toDisplay( windowComposite, Geometry .getExtrudedEdge( windowComposite .getClientArea(), smaller, dropSide)); } }; } } } } return null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f43823957a434ef1348401eb00754046c71f332d/TrimDropTarget.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/TrimDropTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1599,
1764,
2326,
8823,
12,
3367,
783,
3367,
16,
1033,
8823,
2423,
921,
16,
5411,
4686,
1754,
16,
727,
13264,
8823,
19463,
13,
288,
3639,
368,
5004,
3640,
1382,
2742,
2209,
603,
326,
5795,
434,
326,
1440,
22144,
261,
1884,
3454,
16,
3639,
368,
326,
4797,
1476,
4653,
13,
3639,
309,
261,
15997,
2423,
921,
1276,
467,
3829,
14795,
13,
288,
5411,
727,
467,
3829,
14795,
8823,
2423,
14795,
273,
261,
45,
3829,
14795,
13,
8823,
2423,
921,
31,
5411,
8888,
2209,
3367,
273,
8823,
2423,
14795,
18,
588,
3367,
5621,
5411,
309,
261,
5290,
3367,
18,
588,
3054,
1435,
422,
2742,
9400,
13,
288,
7734,
8888,
1018,
14795,
273,
336,
14795,
3367,
12,
2972,
3367,
1769,
7734,
309,
261,
3299,
14795,
480,
446,
13,
288,
10792,
509,
4889,
273,
3511,
18,
588,
14795,
2735,
12,
3299,
14795,
1769,
10792,
309,
261,
5564,
422,
348,
8588,
18,
5280,
13,
288,
13491,
309,
261,
3299,
14795,
422,
3511,
18,
588,
8449,
3367,
10756,
288,
18701,
4889,
273,
5427,
270,
3628,
11728,
2326,
18,
588,
8574,
2555,
12,
4766,
565,
1018,
14795,
16,
1754,
1769,
18701,
309,
261,
5564,
422,
348,
8588,
18,
19835,
13,
288,
27573,
4889,
273,
348,
8588,
18,
5280,
31,
18701,
289,
18701,
1018,
14795,
273,
446,
31,
13491,
289,
10792,
289,
10792,
309,
261,
5564,
480,
348,
8588,
18,
5280,
18701,
597,
261,
3299,
14795,
480,
2209,
3367,
13,
18701,
597,
261,
3299,
14795,
480,
446,
747,
4889,
480,
3511,
4766,
565,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1599,
1764,
2326,
8823,
12,
3367,
783,
3367,
16,
1033,
8823,
2423,
921,
16,
5411,
4686,
1754,
16,
727,
13264,
8823,
19463,
13,
288,
3639,
368,
5004,
3640,
1382,
2742,
2209,
603,
326,
5795,
434,
326,
1440,
22144,
261,
1884,
3454,
16,
3639,
368,
326,
4797,
1476,
4653,
13,
3639,
309,
261,
15997,
2423,
921,
1276,
467,
3829,
14795,
13,
288,
5411,
727,
467,
3829,
14795,
8823,
2423,
14795,
273,
261,
45,
3829,
14795,
13,
8823,
2423,
921,
31,
5411,
8888,
2209,
3367,
273,
8823,
2423,
14795,
18,
588,
3367,
5621,
5411,
309,
261,
5290,
3367,
18,
588,
3054,
1435,
422,
2742,
9400,
13,
288,
7734,
8888,
1018,
14795,
273,
336,
14795,
3367,
12,
2972,
3367,
1769,
2
] |
if(session != null ) { userId = (String) session.getAttribute("AdminUser.user_id") ; } | if ( session != null ) { userId = (String)session.getAttribute( "AdminUser.user_id" ); } | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface() ; // Lets get an user object String userId = null ; // Get the session HttpSession session = req.getSession(true) ; // Lets check if the user wants to edit his phonenumbers // ******* Edit phones fields ********** if( req.getParameter("edit_phones") != null ) { log("Ok, edit phones") ; String user_id = req.getParameter("CURR_USER_ID") ; if(user_id == null) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the session with a return back to variable which the phonenbr // function will look for if(session != null ) { session.setAttribute("UserChangePrefs.goBack", "1" ) ; } res.sendRedirect("AdminUserPhones?user_id=" + user_id); } // End of editphones // ********** SAVE A USER ************* if( req.getParameter("SAVE_USER") != null ) { // log("Ok, save user parameters") ; userId = (String) session.getAttribute("AdminUser.user_id" ) ; // Lets get the users information from db Properties currUserInfo = getUserInfoDB(imcref, userId) ; // Lets get the parameters from html page and validate them Properties params = this.getParameters(req) ; //log(currUserInfo.toString()) ; // Lets check the password. if its empty, then it wont be updated, (we use // the password from the db instead if(params.getProperty("password1").equals("")) { params.setProperty("password1" , currUserInfo.getProperty("login_password")) ; params.setProperty("password2" , currUserInfo.getProperty("login_password")) ; //log("gick in") ; } //log(params.getProperty("password1")) ; if( AdminUserProps.verifyPassword(params,req,res) == false) { return ; } if(checkParameters(params) == false) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the db object with the new info from http form currUserInfo = this.copyProps(params ,currUserInfo) ; currUserInfo.setProperty("password1", params.getProperty("password1") ) ; currUserInfo.setProperty("title", params.getProperty("title")) ; currUserInfo.setProperty("company", params.getProperty("company")) ; // Lets build the users information into a string and add it to db String[] procParams = AdminUserProps.extractUpdateUserSprocParametersFromProperties(currUserInfo) ; imcref.sqlUpdateProcedure( "UpdateUser", procParams ) ; // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", "" ) ; this.sendHtml(req,res,vm, DONE ) ; return ; } // ************* Verfiy username and password ************** if (req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; // Validate loginparams against the DB userId = imcref.sqlProcedureStr("GetUserIdFromName",new String[]{loginName,password}); // log("GetUserIdFromName ok") ; // Lets check that we the found the user. Otherwise send unvailid username password if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } // Lets check if the users password are correct String currPass = imcref.sqlProcedureStr("GetUserPassword", new String[] { userId }); if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Ok, the user is verified, lets generate the users infopage // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // ok, redirect to myself res.sendRedirect("UserChangePrefs?changeUser=on"); return ; } // end verifyUser ///*********** Lets get the users information ************ // Lets generate the users info if(req.getParameter("changeUser") != null) { session = req.getSession(false) ; if(session == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { userId = (String) session.getAttribute("AdminUser.user_id") ; } String showUserInfo = (String) session.getAttribute("AdminUser.passedLogin" ) ; if(showUserInfo.equals("1")) { // Ok, we got the user. Lets get his settings. VariableManager vm = new VariableManager() ; String[] userInfo = imcref.sqlProcedure("UserPrefsChange", new String[] { userId }); String[] keys = {"USER_ID","LOGIN_NAME","PWD1","PWD2","FIRST_NAME", "LAST_NAME","TITLE", "COMPANY", "ADDRESS","CITY","ZIP","COUNTRY","COUNTRY_COUNCIL", "EMAIL", "LANG_ID" } ; for(int i = 0 ; i<keys.length; i++) { vm.addProperty(keys[i], userInfo[i]); } // Lets fix all users phone numbers from DB String[] phonesArr = imcref.sqlProcedure("GetUserPhones", new String[] {userId}); Vector phonesV = new Vector(java.util.Arrays.asList(phonesArr)) ; String phones = Html.createOptionList( "", phonesV ) ; vm.addProperty("PHONES_MENU", phones ) ; vm.addProperty("CURR_USER_ID", userId ) ; // Lets get the the users language id String[] langList = imcref.sqlProcedure("GetLanguageList", new String[0]); Vector selectedLangV = new Vector() ; selectedLangV.add(vm.getProperty("LANG_ID")) ; vm.addProperty("LANG_TYPES", Html.createOptionList( new Vector(Arrays.asList(langList)), selectedLangV )) ; // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // Lets generete the change user page this.sendHtml(req,res,vm, CHANGE_PREFS ) ; return ; } } // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", "" ) ; this.sendHtml(req,res,vm, LOGIN ) ; return ; } // end HTTP POST | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ebf0781020199f986e0621851cc0ceaef92969e2/UserChangePrefs.java/clean/server/src/com/imcode/imcms/servlet/UserChangePrefs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
1435,
274,
202,
759,
511,
2413,
336,
392,
729,
733,
202,
780,
6249,
273,
446,
274,
202,
759,
968,
326,
1339,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
3767,
13,
274,
202,
759,
511,
2413,
866,
309,
326,
729,
14805,
358,
3874,
18423,
22105,
7924,
2210,
202,
759,
380,
11345,
15328,
1844,
5322,
1466,
380,
1644,
14,
202,
430,
12,
1111,
18,
588,
1662,
2932,
4619,
67,
844,
5322,
7923,
480,
446,
262,
288,
202,
565,
613,
2932,
8809,
16,
3874,
1844,
5322,
7923,
274,
202,
565,
514,
729,
67,
350,
273,
1111,
18,
588,
1662,
2932,
7509,
54,
67,
4714,
67,
734,
7923,
274,
202,
565,
309,
12,
1355,
67,
350,
422,
446,
13,
288,
202,
202,
780,
1446,
273,
1111,
18,
588,
4745,
743,
1435,
274,
202,
202,
4446,
668,
22,
393,
273,
394,
7807,
668,
22,
12,
3658,
16,
455,
16,
3374,
16,
10593,
13,
274,
202,
202,
1330,
12,
3374,
397,
393,
18,
588,
668,
3332,
10756,
274,
202,
202,
2463,
274,
202,
565,
289,
202,
565,
368,
511,
2413,
1089,
326,
1339,
598,
279,
327,
1473,
358,
2190,
1492,
326,
22105,
275,
2848,
202,
565,
368,
445,
903,
2324,
364,
202,
565,
309,
12,
3184,
480,
446,
225,
262,
288,
202,
202,
3184,
18,
542,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
6246,
39,
18348,
709,
71,
1734,
273,
4257,
2081,
18,
588,
3445,
39,
18348,
1435,
274,
202,
759,
511,
2413,
336,
392,
729,
733,
202,
780,
6249,
273,
446,
274,
202,
759,
968,
326,
1339,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
3767,
13,
274,
202,
759,
511,
2413,
866,
309,
326,
729,
14805,
358,
3874,
18423,
22105,
7924,
2210,
202,
759,
380,
11345,
15328,
1844,
5322,
1466,
380,
1644,
14,
202,
430,
12,
1111,
18,
588,
1662,
2932,
4619,
67,
844,
5322,
7923,
480,
446,
262,
288,
202,
565,
613,
2932,
8809,
16,
3874,
1844,
2
] |
new Object[] { "'" + content + "'" + " with totalDigits = '"+ totalDigits +"'", | new Object[] { "'" + content + "'" + " with totalDigits = '"+ totalDigits +"'", | protected void checkContent(String content, Object state, Vector enumeration, boolean asBase) throws InvalidDatatypeValueException { // validate against parent type if any if (fBaseValidator instanceof DecimalDatatypeValidator) { // validate content as a base type ((DecimalDatatypeValidator)fBaseValidator).checkContent(content, state, enumeration, true); } // we check pattern first if ((fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0) { if (fRegex == null || fRegex.matches( content) == false) throw new InvalidDatatypeValueException("Value'"+content+ "' does not match regular expression facet " + fRegex.getPattern() ); } // if this is a base validator, we only need to check pattern facet // all other facet were inherited by the derived type if (asBase) return; BigDecimal d = null; // Is content a Decimal try { d = new BigDecimal( stripPlusIfPresent( content)); } catch (Exception nfe) { String msg = getErrorString( DatatypeMessageProvider.fgMessageKeys[DatatypeMessageProvider.NOT_DECIMAL], new Object[] { "'" + content +"'"}); throw new InvalidDatatypeValueException(msg); } if (enumeration != null) { //the call was made from List or Union int size= enumeration.size(); BigDecimal[] enumDecimal = new BigDecimal[size]; int i = 0; try { for (; i < size; i++) enumDecimal[i] = new BigDecimal( stripPlusIfPresent(((String) enumeration.elementAt(i)))); } catch (NumberFormatException nfe) { String msg = getErrorString( DatatypeMessageProvider.fgMessageKeys[DatatypeMessageProvider.INVALID_ENUM_VALUE], new Object [] { enumeration.elementAt(i)}); throw new InvalidDatatypeValueException(msg); }enumCheck(d, enumDecimal); } if ((fFacetsDefined & DatatypeValidator.FACET_FRACTIONDIGITS)!=0) { if (d.scale() > fFractionDigits) { String msg = getErrorString( DatatypeMessageProvider.fgMessageKeys[DatatypeMessageProvider.FRACTION_EXCEEDED], new Object[] { "'" + content + "'" + " with fractionDigits = '"+ d.scale() +"'", "'" + fFractionDigits + "'" }); throw new InvalidDatatypeValueException(msg); } } if ((fFacetsDefined & DatatypeValidator.FACET_TOTALDIGITS)!=0) { int totalDigits = d.movePointRight(d.scale()).toString().length() - ((d.signum() < 0) ? 1 : 0); // account for minus sign if (totalDigits > fTotalDigits) { String msg = getErrorString( DatatypeMessageProvider.fgMessageKeys[DatatypeMessageProvider.TOTALDIGITS_EXCEEDED], new Object[] { "'" + content + "'" + " with totalDigits = '"+ totalDigits +"'", "'" + fTotalDigits + "'" }); throw new InvalidDatatypeValueException(msg); } } boundsCheck(d); if (fEnumeration != null) enumCheck(d, (BigDecimal[]) fEnumeration); return; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/fa03213874e6022b4e60324f2dd87064178ccf5a/DecimalDatatypeValidator.java/buggy/src/org/apache/xerces/impl/v2/datatypes/DecimalDatatypeValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
866,
1350,
12,
780,
913,
16,
1033,
919,
16,
5589,
16836,
16,
1250,
487,
2171,
13,
565,
1216,
1962,
20228,
9738,
288,
3639,
368,
1954,
5314,
982,
618,
309,
1281,
3639,
309,
261,
74,
2171,
5126,
1276,
11322,
20228,
5126,
13,
288,
5411,
368,
1954,
913,
487,
279,
1026,
618,
5411,
14015,
5749,
20228,
5126,
13,
74,
2171,
5126,
2934,
1893,
1350,
12,
1745,
16,
919,
16,
16836,
16,
638,
1769,
3639,
289,
3639,
368,
732,
866,
1936,
1122,
3639,
309,
14015,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
13,
288,
5411,
309,
261,
74,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
13,
7734,
604,
394,
1962,
20228,
9738,
2932,
620,
4970,
15,
1745,
15,
4766,
13491,
2491,
1552,
486,
845,
6736,
2652,
11082,
315,
397,
284,
6628,
18,
588,
3234,
1435,
11272,
3639,
289,
3639,
368,
309,
333,
353,
279,
1026,
4213,
16,
732,
1338,
1608,
358,
866,
1936,
11082,
3639,
368,
777,
1308,
11082,
4591,
12078,
635,
326,
10379,
618,
3639,
309,
261,
345,
2171,
13,
5411,
327,
31,
3639,
8150,
302,
273,
446,
31,
368,
2585,
913,
279,
11322,
3639,
775,
288,
5411,
302,
273,
394,
8150,
12,
2569,
13207,
2047,
6351,
12,
913,
10019,
3639,
289,
3639,
1044,
261,
503,
25386,
13,
288,
5411,
514,
1234,
273,
7926,
780,
12,
4766,
4202,
21168,
1079,
2249,
18,
2137,
1079,
2396,
63,
20228,
1079,
2249,
18,
4400,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
1350,
12,
780,
913,
16,
1033,
919,
16,
5589,
16836,
16,
1250,
487,
2171,
13,
565,
1216,
1962,
20228,
9738,
288,
3639,
368,
1954,
5314,
982,
618,
309,
1281,
3639,
309,
261,
74,
2171,
5126,
1276,
11322,
20228,
5126,
13,
288,
5411,
368,
1954,
913,
487,
279,
1026,
618,
5411,
14015,
5749,
20228,
5126,
13,
74,
2171,
5126,
2934,
1893,
1350,
12,
1745,
16,
919,
16,
16836,
16,
638,
1769,
3639,
289,
3639,
368,
732,
866,
1936,
1122,
3639,
309,
14015,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
13,
288,
5411,
309,
261,
74,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
2
] |
index +=2; | index += 2; | protected void printCDATAText( String text ) throws IOException { int length = text.length(); char ch; for ( int index = 0 ; index < length; ++index ) { ch = text.charAt( index ); if ( ch ==']' && index + 2 < length && text.charAt (index + 1) == ']' && text.charAt (index + 2) == '>' ) { // check for ']]>' // DOM Level 3 Load and Save // if (fFeatures != null && fDOMErrorHandler != null) { if (!getFeature(Constants.DOM_SPLIT_CDATA)) { // issue fatal error String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "EndingCDATA", null); modifyDOMError(msg, DOMError.SEVERITY_FATAL_ERROR, fCurrentNode); boolean continueProcess = fDOMErrorHandler.handleError(fDOMError); if (!continueProcess) { throw new IOException(); } } else { // issue warning String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "SplittingCDATA", null); modifyDOMError(msg, DOMError.SEVERITY_WARNING, fCurrentNode); fDOMErrorHandler.handleError(fDOMError); } } // split CDATA section _printer.printText("]]]]><![CDATA[>"); index +=2; continue; } if (!XMLChar.isValid(ch)) { // check if it is surrogate if (++index <length) { surrogates(ch, text.charAt(index)); } else { fatalError("The character '"+(char)ch+"' is an invalid XML character"); } continue; } else { if ( ( ch >= ' ' && _encodingInfo.isPrintable((char)ch) && ch != 0xF7 ) || ch == '\n' || ch == '\r' || ch == '\t' ) { _printer.printText((char)ch); } else { // The character is not printable -- split CDATA section _printer.printText("]]>&#x"); _printer.printText(Integer.toHexString(ch)); _printer.printText(";<![CDATA["); } } } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/546f416633ed944307d047af867715947693cfc1/BaseMarkupSerializer.java/clean/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1172,
10160,
789,
789,
408,
12,
514,
977,
262,
1216,
1860,
288,
3639,
509,
769,
273,
977,
18,
2469,
5621,
3639,
1149,
462,
31,
3639,
364,
261,
509,
770,
273,
374,
274,
770,
411,
225,
769,
31,
965,
1615,
262,
288,
5411,
462,
273,
977,
18,
3001,
861,
12,
770,
11272,
13491,
309,
261,
462,
422,
3546,
11,
597,
770,
397,
576,
411,
769,
597,
5375,
977,
18,
3001,
861,
261,
1615,
397,
404,
13,
422,
8641,
597,
977,
18,
3001,
861,
261,
1615,
397,
576,
13,
422,
7481,
262,
288,
368,
866,
364,
12671,
65,
1870,
7734,
368,
4703,
4557,
890,
4444,
471,
7074,
7734,
368,
7734,
309,
261,
74,
8696,
480,
446,
597,
284,
8168,
17729,
480,
446,
13,
288,
10792,
309,
16051,
588,
4595,
12,
2918,
18,
8168,
67,
17482,
67,
18375,
3719,
288,
13491,
368,
5672,
10081,
555,
13491,
514,
1234,
273,
4703,
1079,
5074,
18,
2139,
1079,
12,
8168,
1079,
5074,
18,
2123,
15154,
654,
67,
18192,
16,
315,
25674,
18375,
3113,
446,
1769,
13491,
5612,
8168,
668,
12,
3576,
16,
4703,
668,
18,
1090,
2204,
4107,
67,
29891,
67,
3589,
16,
284,
3935,
907,
1769,
13491,
1250,
1324,
2227,
273,
284,
8168,
17729,
18,
4110,
668,
12,
74,
8168,
668,
1769,
13491,
309,
16051,
17143,
2227,
13,
288,
18701,
604,
394,
1860,
5621,
13491,
289,
10792,
289,
469,
288,
13491,
368,
5672,
3436,
13491,
514,
1234,
273,
4703,
1079,
5074,
18,
2139,
1079,
12,
8168,
1079,
5074,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
10160,
789,
789,
408,
12,
514,
977,
262,
1216,
1860,
288,
3639,
509,
769,
273,
977,
18,
2469,
5621,
3639,
1149,
462,
31,
3639,
364,
261,
509,
770,
273,
374,
274,
770,
411,
225,
769,
31,
965,
1615,
262,
288,
5411,
462,
273,
977,
18,
3001,
861,
12,
770,
11272,
13491,
309,
261,
462,
422,
3546,
11,
597,
770,
397,
576,
411,
769,
597,
5375,
977,
18,
3001,
861,
261,
1615,
397,
404,
13,
422,
8641,
597,
977,
18,
3001,
861,
261,
1615,
397,
576,
13,
422,
7481,
262,
288,
368,
866,
364,
12671,
65,
1870,
7734,
368,
4703,
4557,
890,
4444,
471,
7074,
7734,
368,
7734,
309,
261,
74,
8696,
480,
446,
597,
284,
2
] |
assertEquals( node.getCompletionPrefix(), "" ); assertEquals( node.getFunctionName(), "foo" ); | assertEquals( node.getCompletionPrefix(), "" ); assertEquals( node.getFunctionName(), "foo" ); | public void testBug50807() throws Exception { Writer writer = new StringWriter(); writer.write( "void foo();" ); writer.write( "void foo( int );" ); writer.write( "void foo( int, char );" ); writer.write( "void foo( int, int, int );" ); writer.write( "void bar(){ " ); String code = writer.toString() + "foo( SP"; IASTCompletionNode node = parse( code, code.indexOf( "SP" ) ); assertEquals( node.getCompletionPrefix(), "" ); assertEquals( node.getFunctionName(), "foo" ); ILookupResult result = node.getCompletionScope().lookup( node.getFunctionName(), new IASTNode.LookupKind[]{ IASTNode.LookupKind.FUNCTIONS }, node.getCompletionContext(), null ); assertEquals( result.getResultsSize(), 4 ); code = writer.toString() + "foo( 1, SP"; node = parse( code, code.indexOf( "SP" ) ); assertEquals( node.getCompletionPrefix(), "" ); assertEquals( node.getFunctionName(), "foo" ); result = node.getCompletionScope().lookup( node.getFunctionName(), new IASTNode.LookupKind[]{ IASTNode.LookupKind.FUNCTIONS }, node.getCompletionContext(), node.getFunctionParameters() ); assertEquals( result.getResultsSize(), 2 ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/06d6b593af58d77adce12d0559baf16351c8c1bc/CompletionParseTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
3361,
3672,
27,
1435,
1216,
1185,
202,
95,
202,
202,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
26994,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
16,
1149,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
16,
509,
16,
509,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
4653,
1435,
95,
315,
11272,
9506,
202,
780,
981,
273,
2633,
18,
10492,
1435,
397,
315,
11351,
12,
11405,
14432,
202,
202,
45,
9053,
11238,
907,
756,
273,
1109,
12,
981,
16,
981,
18,
31806,
12,
315,
3118,
6,
262,
11272,
9506,
202,
11231,
8867,
12,
756,
18,
588,
11238,
2244,
9334,
1408,
11272,
202,
202,
11231,
8867,
12,
756,
18,
588,
25258,
9334,
315,
11351,
6,
11272,
202,
202,
2627,
4909,
1253,
563,
273,
756,
18,
588,
11238,
3876,
7675,
8664,
12,
756,
18,
588,
25258,
9334,
4766,
21394,
394,
467,
9053,
907,
18,
6609,
5677,
63,
7073,
467,
9053,
907,
18,
6609,
5677,
18,
7788,
55,
19879,
28524,
756,
18,
588,
11238,
1042,
9334,
446,
11272,
202,
202,
11231,
8867,
12,
563,
18,
588,
3447,
1225,
9334,
1059,
11272,
9506,
202,
710,
273,
2633,
18,
10492,
1435,
397,
315,
11351,
12,
404,
16,
11405,
14432,
202,
202,
2159,
273,
1109,
12,
981,
16,
981,
18,
31806,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19865,
3361,
3672,
27,
1435,
1216,
1185,
202,
95,
202,
202,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
26994,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
16,
1149,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
8431,
12,
509,
16,
509,
16,
509,
262,
4868,
11272,
202,
202,
6299,
18,
2626,
12,
315,
6459,
4653,
1435,
95,
315,
11272,
9506,
202,
780,
981,
273,
2633,
18,
10492,
1435,
397,
315,
11351,
12,
11405,
14432,
202,
202,
45,
9053,
11238,
907,
756,
273,
1109,
12,
2
] |
log.info("Fetching primary keys."); | log.debug("Fetching primary keys."); | protected void fetchPrimaryKeys() { if (!hasFetchedPrimaryKeys()) { if (editingContext() == null) throw new RuntimeException("Attempting to fetch the primary keys for a null editingContext"); EOEntity entity = EOUtilities.entityNamed(editingContext(), fetchSpecification.entityName()); if (entity.primaryKeyAttributes().count() > 1) throw new RuntimeException("ERXFetchSpecificationBatchIterator: Currently only single primary key entities are supported."); EOFetchSpecification pkFetchSpec = ERXEOControlUtilities.primaryKeyFetchSpecificationForEntity(editingContext(), fetchSpecification.entityName(), fetchSpecification.qualifier(), fetchSpecification.sortOrderings(), null); log.info("Fetching primary keys."); NSArray primaryKeyDictionaries = editingContext().objectsWithFetchSpecification(pkFetchSpec); String pkAttributeName = ((EOAttribute)entity.primaryKeyAttributes().lastObject()).name(); primaryKeys = (NSArray)primaryKeyDictionaries.valueForKey(pkAttributeName); } } | 46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/e11ef73ba5ba4b30363c28e04d24415f8ff8b3d9/ERXFetchSpecificationBatchIterator.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXFetchSpecificationBatchIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2158,
6793,
2396,
1435,
288,
3639,
309,
16051,
5332,
30771,
6793,
2396,
10756,
288,
5411,
309,
261,
4619,
310,
1042,
1435,
422,
446,
13,
7734,
604,
394,
3235,
2932,
23089,
358,
2158,
326,
3354,
1311,
364,
279,
446,
15755,
1042,
8863,
5411,
512,
51,
1943,
1522,
273,
512,
51,
11864,
18,
1096,
7604,
12,
4619,
310,
1042,
9334,
2158,
8615,
18,
1096,
461,
10663,
13491,
309,
261,
1096,
18,
8258,
653,
2498,
7675,
1883,
1435,
405,
404,
13,
7734,
604,
394,
3235,
2932,
654,
60,
5005,
8615,
4497,
3198,
30,
15212,
1338,
2202,
3354,
498,
5140,
854,
3260,
1199,
1769,
13491,
6431,
1593,
8615,
2365,
5005,
1990,
273,
4232,
60,
41,
51,
3367,
11864,
18,
8258,
653,
5005,
8615,
1290,
1943,
12,
4619,
310,
1042,
9334,
28524,
4766,
1377,
2158,
8615,
18,
1096,
461,
9334,
28524,
4766,
1377,
2158,
8615,
18,
28157,
9334,
28524,
4766,
1377,
2158,
8615,
18,
3804,
2448,
899,
9334,
28524,
4766,
1377,
446,
1769,
5411,
613,
18,
4148,
2932,
30806,
3354,
1311,
1199,
1769,
5411,
11472,
1076,
8841,
40,
14336,
273,
15755,
1042,
7675,
6911,
1190,
5005,
8615,
12,
5465,
5005,
1990,
1769,
13491,
514,
2365,
19240,
273,
14015,
41,
51,
1499,
13,
1096,
18,
8258,
653,
2498,
7675,
2722,
921,
1435,
2934,
529,
5621,
5411,
31629,
273,
261,
3156,
1076,
13,
8258,
653,
40,
14336,
18,
1132,
19759,
12,
5465,
19240,
1769,
3639,
289,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2158,
6793,
2396,
1435,
288,
3639,
309,
16051,
5332,
30771,
6793,
2396,
10756,
288,
5411,
309,
261,
4619,
310,
1042,
1435,
422,
446,
13,
7734,
604,
394,
3235,
2932,
23089,
358,
2158,
326,
3354,
1311,
364,
279,
446,
15755,
1042,
8863,
5411,
512,
51,
1943,
1522,
273,
512,
51,
11864,
18,
1096,
7604,
12,
4619,
310,
1042,
9334,
2158,
8615,
18,
1096,
461,
10663,
13491,
309,
261,
1096,
18,
8258,
653,
2498,
7675,
1883,
1435,
405,
404,
13,
7734,
604,
394,
3235,
2932,
654,
60,
5005,
8615,
4497,
3198,
30,
15212,
1338,
2202,
3354,
498,
5140,
854,
3260,
1199,
1769,
13491,
6431,
1593,
8615,
2365,
5005,
1990,
273,
4232,
60,
41,
51,
3367,
11864,
18,
8258,
2
] |
int length= fElements.length; | private int fold() { int length= fElements.length; if (fAllowDuplicates) { for (int i= 0; i != length; i++) fFoldedIndices[i]= i; // identity mapping return length; } else { int k= 0; Label last= null; for (int i= 0; i != length; i++) { Label current= fLabels[i]; if (! current.equals(last)) { fFoldedIndices[k]= i; k++; last= current; } } return k; } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/7bf340f9614abe9c6b9178de73c0cce9b3c5c4a2/FilteredList.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
11590,
1435,
288,
202,
202,
474,
769,
33,
284,
3471,
18,
2469,
31,
9506,
202,
430,
261,
74,
7009,
23897,
13,
288,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
769,
31,
277,
27245,
6862,
1082,
202,
74,
42,
355,
785,
8776,
63,
77,
65,
33,
277,
31,
368,
4215,
2874,
6862,
1082,
202,
2463,
769,
31,
6862,
1082,
202,
97,
469,
288,
1082,
202,
474,
417,
33,
374,
31,
1082,
202,
2224,
1142,
33,
446,
31,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
769,
31,
277,
27245,
288,
9506,
202,
2224,
783,
33,
284,
5888,
63,
77,
15533,
9506,
202,
430,
16051,
783,
18,
14963,
12,
2722,
3719,
288,
6862,
202,
74,
42,
355,
785,
8776,
63,
79,
65,
33,
277,
31,
6862,
202,
79,
9904,
31,
6862,
202,
2722,
33,
783,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2463,
417,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1152,
509,
11590,
1435,
288,
202,
202,
474,
769,
33,
284,
3471,
18,
2469,
31,
9506,
202,
430,
261,
74,
7009,
23897,
13,
288,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
769,
31,
277,
27245,
6862,
1082,
202,
74,
42,
355,
785,
8776,
63,
77,
65,
33,
277,
31,
368,
4215,
2874,
6862,
1082,
202,
2463,
769,
31,
6862,
1082,
202,
97,
469,
288,
1082,
202,
474,
417,
33,
374,
31,
1082,
202,
2224,
1142,
33,
446,
31,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
769,
31,
277,
27245,
288,
9506,
202,
2224,
783,
33,
284,
5888,
63,
77,
15533,
9506,
202,
430,
16051,
783,
18,
14963,
12,
2722,
2
] | |
throws EndOfFileException, BacktrackException { | throws EndOfFileException, BacktrackException { | protected void consumePointerOperators(List collection) throws EndOfFileException, BacktrackException { for (;;) { if (LT(1) == IToken.tAMPER) { int length = LA(1).getEndOffset() - LA(1).getOffset(); int o = consume(IToken.tAMPER).getOffset(); ICPPASTReferenceOperator refOp = createReferenceOperator(); ((ASTNode) refOp).setOffsetAndLength(o, length); collection.add(refOp); return; } IToken last = null; IToken mark = mark(); ITokenDuple nameDuple = null; boolean isConst = false, isVolatile = false, isRestrict = false; if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON) { try { nameDuple = name(); last = nameDuple.getLastToken(); } catch (BacktrackException bt) { backup(mark); return; } } if (LT(1) == IToken.tSTAR) { last = consume(IToken.tSTAR); int starOffset = last.getOffset(); for (;;) { IToken t = LA(1); int startingOffset = LA(1).getOffset(); switch (LT(1)) { case IToken.t_const: last = consume(IToken.t_const); isConst = true; break; case IToken.t_volatile: last = consume(IToken.t_volatile); isVolatile = true; break; case IToken.t_restrict: if (allowCPPRestrict) { last = consume(IToken.t_restrict); isRestrict = true; break; } IToken la = LA(1); throwBacktrack(startingOffset, la.getEndOffset() - startingOffset); } if (t == LA(1)) break; } IASTPointerOperator po = null; if (nameDuple != null) { IASTName name = createName(nameDuple); ICPPASTPointerToMember p2m = createPointerToMember(isRestrict); ((ASTNode) p2m).setOffsetAndLength(nameDuple .getFirstToken().getOffset(), last.getEndOffset() - nameDuple.getFirstToken().getOffset()); p2m.setConst(isConst); p2m.setVolatile(isVolatile); p2m.setName(name); name.setParent(p2m); name.setPropertyInParent(ICPPASTPointerToMember.NAME); if (isRestrict) { IGPPASTPointerToMember newPo = (IGPPASTPointerToMember) p2m; newPo.setRestrict(isRestrict); p2m = newPo; } po = p2m; } else { po = createPointer(isRestrict); ((ASTNode) po).setOffsetAndLength(starOffset, last .getEndOffset() - starOffset); ((IASTPointer) po).setConst(isConst); ((IASTPointer) po).setVolatile(isVolatile); if (isRestrict) { IGPPASTPointer newPo = (IGPPASTPointer) po; newPo.setRestrict(isRestrict); po = newPo; } } if (po != null) collection.add(po); continue; } backup(mark); return; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
2192,
3194,
13,
288,
9506,
202,
474,
769,
273,
2928,
12,
21,
2934,
588,
1638,
2335,
1435,
300,
2928,
12,
21,
2934,
588,
2335,
5621,
9506,
202,
474,
320,
273,
7865,
12,
1285,
969,
18,
88,
2192,
3194,
2934,
588,
2335,
5621,
9506,
202,
2871,
52,
4066,
882,
2404,
5592,
1278,
3817,
273,
752,
2404,
5592,
5621,
9506,
202,
12443,
9053,
907,
13,
1278,
3817,
2934,
542,
2335,
1876,
1782,
12,
83,
16,
769,
1769,
9506,
202,
5548,
18,
1289,
12,
1734,
3817,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
1285,
969,
1142,
273,
446,
31,
1082,
202,
1285,
969,
2267,
273,
2267,
5621,
1082,
202,
1285,
969,
40,
2268,
508,
40,
2268,
273,
446,
31,
1082,
202,
6494,
353,
9661,
273,
629,
16,
353,
17431,
20295,
273,
629,
16,
353,
29371,
273,
629,
31,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
16606,
747,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
4935,
673,
4935,
673,
13,
288,
9506,
202,
698,
288,
6862,
202,
529,
40,
2268,
273,
508,
5621,
6862,
202,
2722,
273,
508,
40,
2268,
18,
588,
3024,
1345,
5621,
9506,
202,
97,
1044,
261,
2711,
4101,
503,
10921,
13,
288,
6862,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
2192,
3194,
13,
288,
9506,
202,
474,
769,
273,
2928,
12,
21,
2934,
588,
1638,
2335,
1435,
300,
2928,
12,
21,
2934,
588,
2335,
5621,
9506,
202,
474,
320,
273,
7865,
12,
1285,
969,
18,
88,
2192,
3194,
2934,
588,
2335,
5621,
9506,
202,
2871,
52,
4066,
882,
2404,
5592,
1278,
3817,
273,
752,
2404,
5592,
5621,
9506,
202,
12443,
9053,
907,
13,
1278,
3817,
2934,
542,
2335,
1876,
1782,
12,
83,
16,
769,
1769,
9506,
2
] |
intData = new short[dwWidth * bmpHeight]; | byteData = new byte[(bmpBitsPerPixel / 8) * dwWidth * bmpHeight]; | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); imgs = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } while (in.read(list) == 4) { in.seek(in.getFilePointer() - 4); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); } } else if (listString.equals("LIST")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.seek(in.getFilePointer() - 12); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { pos = in.getFilePointer(); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.seek(pos + size); } } } } else if (fcc.equals("strl")) { long startPos = in.getFilePointer(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { pos = in.getFilePointer(); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.seek(pos + size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { pos = in.getFilePointer(); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes bmpScanLineSize = ((bmpWidth * bmpBitsPerPixel + 31) / 32) * 4; if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette long pos1 = in.getFilePointer(); pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.seek(pos + size); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } } in.seek(startPos + 8 + streamSize); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.seek(in.getFilePointer() - 12); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); long startPos = in.getFilePointer(); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { pos = in.getFilePointer(); if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { int len = bmpScanLineSize; if (bmpBitsPerPixel > 8) { intData = new short[dwWidth * bmpHeight]; } else { byteData = new byte[dwWidth * bmpHeight]; } rawData = new byte[bmpActualSize]; int rawOffset = 0; int offset = (bmpHeight - 1) * dwWidth; for (int i=bmpHeight - 1; i>=0; i--) { int n = in.read(rawData, rawOffset, len); if (n < len) { whine("Scan line " + i + " ended prematurely."); } if (bmpBitsPerPixel > 8) { unpack(rawData, rawOffset, intData, offset, dwWidth); } else { unpack(rawData, rawOffset, bmpBitsPerPixel, byteData, offset, dwWidth); } rawOffset += len; offset -= dwWidth; } if (bmpBitsPerPixel > 8) { imgs.add(ImageTools.makeImage(intData, dwWidth, bmpHeight, 1, false)); } else { imgs.add(ImageTools.makeImage(byteData, dwWidth, bmpHeight, 1, false)); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.seek(in.getFilePointer() - 8); } } } else { // skipping unknown block in.seek(in.getFilePointer() + 8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.seek(in.getFilePointer() + size); } } numImages = imgs.size(); initOMEMetadata(); } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/8b2e41bdba7337cde3ad9ca6e19fde354945f0df/AVIReader.java/buggy/loci/formats/AVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
25646,
273,
394,
5589,
5621,
565,
1160,
8526,
666,
273,
394,
1160,
63,
24,
15533,
565,
514,
666,
780,
31,
565,
618,
273,
18646,
2160,
5621,
565,
963,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
12720,
1769,
565,
284,
952,
273,
18646,
2160,
5621,
565,
309,
261,
723,
18,
14963,
2932,
2259,
2246,
6,
3719,
288,
1377,
5446,
26307,
273,
963,
31,
1377,
309,
16051,
74,
952,
18,
14963,
2932,
37,
4136,
315,
3719,
288,
3639,
600,
558,
2932,
28898,
16,
432,
4136,
534,
16962,
740,
486,
1392,
1199,
1769,
1377,
289,
565,
289,
565,
469,
288,
1377,
600,
558,
2932,
1248,
392,
432,
4136,
585,
8863,
565,
289,
565,
1323,
261,
267,
18,
896,
12,
1098,
13,
422,
1059,
13,
288,
1377,
316,
18,
16508,
12,
267,
18,
29925,
4926,
1435,
300,
1059,
1769,
1377,
666,
780,
273,
394,
514,
12,
1098,
1769,
1377,
309,
261,
1098,
780,
18,
14963,
2932,
46,
16141,
6,
3719,
288,
3639,
618,
273,
18646,
2160,
5621,
3639,
963,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
12720,
1769,
3639,
309,
261,
723,
18,
14963,
2932,
46,
16141,
6,
3719,
288,
1850,
316,
18,
16508,
12,
267,
18,
29925,
4926,
1435,
397,
963,
1769,
3639,
289,
1377,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
25646,
273,
394,
5589,
5621,
565,
1160,
8526,
666,
273,
394,
1160,
63,
24,
15533,
565,
514,
666,
780,
31,
565,
618,
273,
18646,
2160,
5621,
565,
963,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
12720,
1769,
565,
284,
952,
273,
18646,
2160,
5621,
565,
309,
261,
723,
18,
14963,
2932,
2259,
2246,
6,
3719,
288,
1377,
5446,
26307,
273,
963,
31,
1377,
309,
16051,
74,
952,
18,
14963,
2932,
37,
4136,
315,
3719,
288,
3639,
600,
558,
2932,
2
] |
if (! readers.hasNext()) { | if ((readers == null) || (!readers.hasNext())) { | public boolean checkFile(ImageFile imgf) throws IOException { // fileset to store the information ImageFileset imgfs = imgf.getParent(); File f = imgf.getFile(); if (f == null) { throw new IOException("File not found!"); } RandomAccessFile raf = new RandomAccessFile(f, "r"); // set up ImageInfo object ImageInfo iif = new ImageInfo(); iif.setInput(raf); iif.setCollectComments(false); iif.setDetermineImageNumber(false); logger.debug("identifying (ImageInfo) "+f); // try with ImageInfo first if (iif.check()) { ImageSize d = new ImageSize(iif.getWidth(), iif.getHeight()); imgf.setSize(d); imgf.setMimetype(iif.getMimeType()); if (imgfs != null) { imgfs.setAspect(d); } raf.close(); } else { logger.debug("identifying (ImageIO) "+f); // else use ImageReader ImageInputStream istream = ImageIO.createImageInputStream(raf); Iterator readers = ImageIO.getImageReaders(istream); //String ext = f.getName().substring(f.getName().lastIndexOf('.')+1); //Iterator readers = ImageIO.getImageReadersBySuffix(ext); if (! readers.hasNext()) { throw new FileOpException("ERROR: unknown image file format!"); } ImageReader reader = (ImageReader) readers.next(); /* are there more readers? */ logger.debug("ImageIO: this reader: " + reader.getClass()); while (readers.hasNext()) { logger.debug("ImageIO: next reader: " + readers.next().getClass()); } reader.setInput(istream); ImageSize d = new ImageSize(reader.getWidth(0), reader.getHeight(0)); imgf.setSize(d); String t = reader.getFormatName(); t = FileOps.mimeForFile(f); imgf.setMimetype(t); if (imgfs != null) { imgfs.setAspect(d); } // dispose the reader to free resources reader.dispose(); raf.close(); } return true; } | 53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/286124eb721062a21e9c6e3c9af16d45f9f8fcf4/ImageLoaderImageInfoDocuInfo.java/clean/servlet/src/digilib/image/ImageLoaderImageInfoDocuInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
866,
812,
12,
2040,
812,
3774,
74,
13,
1216,
1860,
288,
202,
202,
759,
1390,
278,
358,
1707,
326,
1779,
202,
202,
2040,
2697,
278,
3774,
2556,
273,
3774,
74,
18,
588,
3054,
5621,
202,
202,
812,
284,
273,
3774,
74,
18,
29925,
5621,
202,
202,
430,
261,
74,
422,
446,
13,
288,
1082,
202,
12849,
394,
1860,
2932,
812,
486,
1392,
4442,
1769,
202,
202,
97,
202,
202,
8529,
26933,
24671,
273,
394,
8072,
26933,
12,
74,
16,
315,
86,
8863,
202,
202,
759,
444,
731,
3421,
966,
733,
202,
202,
2040,
966,
277,
430,
273,
394,
3421,
966,
5621,
202,
202,
77,
430,
18,
542,
1210,
12,
13308,
1769,
202,
202,
77,
430,
18,
542,
10808,
9051,
12,
5743,
1769,
202,
202,
77,
430,
18,
542,
8519,
2040,
1854,
12,
5743,
1769,
202,
202,
4901,
18,
4148,
2932,
31079,
310,
261,
2040,
966,
13,
13773,
74,
1769,
202,
202,
759,
775,
598,
3421,
966,
1122,
202,
202,
430,
261,
77,
430,
18,
1893,
10756,
288,
1082,
202,
28576,
302,
273,
9506,
202,
2704,
3421,
1225,
12,
77,
430,
18,
588,
2384,
9334,
277,
430,
18,
588,
2686,
10663,
1082,
202,
6081,
74,
18,
542,
1225,
12,
72,
1769,
1082,
202,
6081,
74,
18,
542,
49,
10076,
12,
77,
430,
18,
588,
16821,
10663,
1082,
202,
430,
261,
6081,
2556,
480,
446,
13,
288,
9506,
202,
6081,
2556,
18,
542,
17468,
12,
72,
1769,
1082,
202,
97,
1082,
202,
13308,
18,
4412,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
812,
12,
2040,
812,
3774,
74,
13,
1216,
1860,
288,
202,
202,
759,
1390,
278,
358,
1707,
326,
1779,
202,
202,
2040,
2697,
278,
3774,
2556,
273,
3774,
74,
18,
588,
3054,
5621,
202,
202,
812,
284,
273,
3774,
74,
18,
29925,
5621,
202,
202,
430,
261,
74,
422,
446,
13,
288,
1082,
202,
12849,
394,
1860,
2932,
812,
486,
1392,
4442,
1769,
202,
202,
97,
202,
202,
8529,
26933,
24671,
273,
394,
8072,
26933,
12,
74,
16,
315,
86,
8863,
202,
202,
759,
444,
731,
3421,
966,
733,
202,
202,
2040,
966,
277,
430,
273,
394,
3421,
966,
5621,
202,
202,
77,
430,
18,
542,
1210,
12,
13308,
1769,
202,
202,
77,
430,
2
] |
add(valueTextField); | public PropertyCheckBox(String id, final PropertyMeta propertyMeta) { super(id, propertyMeta); setRenderBodyOnly(true); Class type = propertyMeta.getPropertyType(); CheckBox valueTextField = new CheckBox("value", new BeanPropertyModel(propertyMeta)); EditModeReplacementModel replacementModel = new EditModeReplacementModel(propertyMeta); valueTextField.add(new AttributeModifier("disabled", true, replacementModel)); add(valueTextField); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/d67f19800d8ce88df0f4dd999b9f1894b367f0d7/BeanPanel.java/clean/wicket-sandbox/src/eelco/java/wicket/extensions/markup/html/beanedit/BeanPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4276,
19174,
12,
780,
612,
16,
727,
4276,
2781,
1272,
2781,
13,
202,
202,
95,
1082,
202,
9565,
12,
350,
16,
1272,
2781,
1769,
1082,
202,
542,
3420,
2250,
3386,
12,
3767,
1769,
1082,
202,
797,
618,
273,
1272,
2781,
18,
588,
22802,
5621,
1082,
202,
19174,
460,
16157,
273,
394,
2073,
3514,
2932,
1132,
3113,
394,
7704,
1396,
1488,
12,
4468,
2781,
10019,
1082,
202,
4666,
2309,
15201,
1488,
6060,
1488,
273,
394,
15328,
2309,
15201,
1488,
12,
4468,
2781,
1769,
1082,
202,
1132,
16157,
18,
1289,
12,
2704,
3601,
9829,
2932,
9278,
3113,
638,
16,
6060,
1488,
10019,
1082,
202,
1289,
12,
1132,
16157,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
4276,
19174,
12,
780,
612,
16,
727,
4276,
2781,
1272,
2781,
13,
202,
202,
95,
1082,
202,
9565,
12,
350,
16,
1272,
2781,
1769,
1082,
202,
542,
3420,
2250,
3386,
12,
3767,
1769,
1082,
202,
797,
618,
273,
1272,
2781,
18,
588,
22802,
5621,
1082,
202,
19174,
460,
16157,
273,
394,
2073,
3514,
2932,
1132,
3113,
394,
7704,
1396,
1488,
12,
4468,
2781,
10019,
1082,
202,
4666,
2309,
15201,
1488,
6060,
1488,
273,
394,
15328,
2309,
15201,
1488,
12,
4468,
2781,
1769,
1082,
202,
1132,
16157,
18,
1289,
12,
2704,
3601,
9829,
2932,
9278,
3113,
638,
16,
6060,
1488,
10019,
1082,
202,
1289,
12,
1132,
16157,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] | |
String alternate = (String)alias.get(name.toUpperCase()); | name = name.toUpperCase(); String alternate = (String)alias.get(name); | static String alias(String name) { //name = name.toUpperCase(); //String alternate = (String)alias.get(name); String alternate = (String)alias.get(name.toUpperCase()); if (alternate == null) { return (name); } else { return (alternate); } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/ccebc8a37fce9c00a0a2d7b7f80e2b9d659d9413/ConverterAlias.java/buggy/libraries/javalib/kaffe/io/ConverterAlias.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
2308,
12,
780,
508,
13,
288,
202,
759,
529,
273,
508,
18,
869,
8915,
5621,
202,
759,
780,
12184,
273,
261,
780,
13,
4930,
18,
588,
12,
529,
1769,
202,
780,
12184,
273,
261,
780,
13,
4930,
18,
588,
12,
529,
18,
869,
8915,
10663,
202,
430,
261,
16025,
340,
422,
446,
13,
288,
202,
565,
327,
261,
529,
1769,
202,
97,
469,
288,
202,
565,
327,
261,
16025,
340,
1769,
202,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
514,
2308,
12,
780,
508,
13,
288,
202,
759,
529,
273,
508,
18,
869,
8915,
5621,
202,
759,
780,
12184,
273,
261,
780,
13,
4930,
18,
588,
12,
529,
1769,
202,
780,
12184,
273,
261,
780,
13,
4930,
18,
588,
12,
529,
18,
869,
8915,
10663,
202,
430,
261,
16025,
340,
422,
446,
13,
288,
202,
565,
327,
261,
529,
1769,
202,
97,
469,
288,
202,
565,
327,
261,
16025,
340,
1769,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rootNode.add(projectNode); navigatorTree.setSelectionPath(new TreePath(new Object[]{rootNode, projectNode})); | DefaultTreeModel treeModel = (DefaultTreeModel) navigatorTree.getModel(); treeModel.insertNodeInto(projectNode, rootNode, rootNode.getChildCount()); TreePath projPath = new TreePath(new Object[]{rootNode, projectNode}); navigatorTree.makeVisible(projPath); navigatorTree.setSelectionPath(projPath); | private void newProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newProjectItemActionPerformed Project project = new Project(UNTITLED_PROJECT); projectCollection.addProject(project); DefaultMutableTreeNode projectNode = new DefaultMutableTreeNode(project); rootNode.add(projectNode); navigatorTree.setSelectionPath(new TreePath(new Object[]{rootNode, projectNode})); }//GEN-LAST:event_newProjectItemActionPerformed | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/d1bd482cfa2e1601883f2b32bf20eaa10039239f/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
394,
4109,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
2704,
4109,
1180,
19449,
3639,
5420,
1984,
273,
394,
5420,
12,
5321,
1285,
6687,
67,
17147,
1769,
3639,
1984,
2532,
18,
1289,
4109,
12,
4406,
1769,
3639,
2989,
19536,
12513,
1984,
907,
273,
394,
2989,
19536,
12513,
12,
4406,
1769,
3639,
10181,
18,
1289,
12,
4406,
907,
1769,
3639,
19796,
2471,
18,
542,
6233,
743,
12,
2704,
4902,
743,
12,
2704,
1033,
63,
7073,
3085,
907,
16,
1984,
907,
6792,
1769,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
2704,
4109,
1180,
19449,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
394,
4109,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
2704,
4109,
1180,
19449,
3639,
5420,
1984,
273,
394,
5420,
12,
5321,
1285,
6687,
67,
17147,
1769,
3639,
1984,
2532,
18,
1289,
4109,
12,
4406,
1769,
3639,
2989,
19536,
12513,
1984,
907,
273,
394,
2989,
19536,
12513,
12,
4406,
1769,
3639,
10181,
18,
1289,
12,
4406,
907,
1769,
3639,
19796,
2471,
18,
542,
6233,
743,
12,
2704,
4902,
743,
12,
2704,
1033,
63,
7073,
3085,
907,
16,
1984,
907,
6792,
1769,
565,
289,
759,
16652,
17,
14378,
30,
2575,
67,
2704,
4109,
1180,
19449,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else { | } else { | private boolean updateNeeded(IResource[] oldResources, IResource[] newResources) { //determine if an update if refiltering is required IFilter iFilter = getFilter(); if (iFilter == null) { return false; } MarkerFilter filter = (MarkerFilter) iFilter; int onResource = filter.getOnResource(); if (onResource == MarkerFilter.ON_ANY_RESOURCE || onResource == MarkerFilter.ON_WORKING_SET) { return false; } if (newResources == null || newResources.length < 1) { return false; } if (oldResources == null || oldResources.length < 1) { return true; } if (Arrays.equals(oldResources, newResources)) { return false; } if (onResource == MarkerFilter.ON_ANY_RESOURCE_OF_SAME_PROJECT) { List oldProjects = new ArrayList(newResources.length); List newProjects = new ArrayList(newResources.length); for (int i = 0; i < oldResources.length; i++) { IProject project = oldResources[i].getProject(); if (!oldProjects.contains(project)) { oldProjects.add(project); } } for (int i = 0; i < newResources.length; i++) { IProject project = newResources[i].getProject(); if (!newProjects.contains(project)) { newProjects.add(project); } } if (oldProjects.size() == newProjects.size()) { for (int i = 0; i < oldProjects.size(); i++) { if (!newProjects.contains(oldProjects.get(i))) { return true; } } } else { return true; } } else { return true; } return false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2cd5f192433d8e4a018a46aa91e1db260ff692bb/MarkerView.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1089,
11449,
12,
45,
1420,
8526,
1592,
3805,
16,
467,
1420,
8526,
394,
3805,
13,
288,
202,
202,
759,
24661,
309,
392,
1089,
309,
1278,
1088,
310,
353,
1931,
202,
202,
45,
1586,
277,
1586,
273,
12267,
5621,
202,
202,
430,
261,
77,
1586,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
7078,
1586,
1034,
273,
261,
7078,
1586,
13,
277,
1586,
31,
202,
202,
474,
603,
1420,
273,
1034,
18,
588,
1398,
1420,
5621,
202,
202,
430,
261,
265,
1420,
422,
14742,
1586,
18,
673,
67,
15409,
67,
11395,
747,
603,
1420,
422,
14742,
1586,
18,
673,
67,
10566,
1360,
67,
4043,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
261,
2704,
3805,
422,
446,
747,
394,
3805,
18,
2469,
411,
404,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
261,
1673,
3805,
422,
446,
747,
1592,
3805,
18,
2469,
411,
404,
13,
288,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
430,
261,
12726,
18,
14963,
12,
1673,
3805,
16,
394,
3805,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
261,
265,
1420,
422,
14742,
1586,
18,
673,
67,
15409,
67,
11395,
67,
3932,
67,
29080,
67,
17147,
13,
288,
1082,
202,
682,
1592,
15298,
273,
394,
2407,
12,
2704,
3805,
18,
2469,
1769,
1082,
202,
682,
394,
15298,
273,
394,
2407,
12,
2704,
3805,
18,
2469,
1769,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1089,
11449,
12,
45,
1420,
8526,
1592,
3805,
16,
467,
1420,
8526,
394,
3805,
13,
288,
202,
202,
759,
24661,
309,
392,
1089,
309,
1278,
1088,
310,
353,
1931,
202,
202,
45,
1586,
277,
1586,
273,
12267,
5621,
202,
202,
430,
261,
77,
1586,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
7078,
1586,
1034,
273,
261,
7078,
1586,
13,
277,
1586,
31,
202,
202,
474,
603,
1420,
273,
1034,
18,
588,
1398,
1420,
5621,
202,
202,
430,
261,
265,
1420,
422,
14742,
1586,
18,
673,
67,
15409,
67,
11395,
747,
603,
1420,
422,
14742,
1586,
18,
673,
67,
10566,
1360,
67,
4043,
13,
288,
1082,
202,
2463,
629,
2
] |
paramTypes); | paramTypes, meth.getExceptions()); | public static ResolvedMember interMethodDispatcher(ResolvedMember meth, TypeX aspectType) { TypeX[] paramTypes = meth.getParameterTypes(); if (!meth.isStatic()) { paramTypes = TypeX.insert(meth.getDeclaringType(), paramTypes); } return new ResolvedMember(Member.METHOD, aspectType, PUBLIC_STATIC, meth.getReturnType(), NameMangler.interMethodDispatcher(aspectType, meth.getDeclaringType(), meth.getName()), paramTypes); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/efc1cc47398443b33fe90da11c4cf1d14dc9c108/AjcMemberMaker.java/clean/weaver/src/org/aspectj/weaver/AjcMemberMaker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
22776,
4419,
1554,
1305,
6681,
12,
12793,
4419,
7917,
16,
1412,
60,
9648,
559,
13,
225,
202,
95,
202,
202,
559,
60,
8526,
21265,
273,
7917,
18,
588,
1662,
2016,
5621,
202,
202,
430,
16051,
27305,
18,
291,
5788,
10756,
288,
1082,
202,
891,
2016,
273,
1412,
60,
18,
6387,
12,
27305,
18,
588,
3456,
5968,
559,
9334,
21265,
1769,
202,
202,
97,
9506,
202,
2463,
394,
22776,
4419,
12,
4419,
18,
5327,
16,
9648,
559,
16,
17187,
67,
22741,
16,
1082,
202,
27305,
18,
588,
9102,
9334,
1875,
202,
461,
49,
539,
749,
18,
2761,
1305,
6681,
12,
23579,
559,
16,
7917,
18,
588,
3456,
5968,
559,
9334,
7917,
18,
17994,
1435,
3631,
1082,
202,
891,
2016,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
22776,
4419,
1554,
1305,
6681,
12,
12793,
4419,
7917,
16,
1412,
60,
9648,
559,
13,
225,
202,
95,
202,
202,
559,
60,
8526,
21265,
273,
7917,
18,
588,
1662,
2016,
5621,
202,
202,
430,
16051,
27305,
18,
291,
5788,
10756,
288,
1082,
202,
891,
2016,
273,
1412,
60,
18,
6387,
12,
27305,
18,
588,
3456,
5968,
559,
9334,
21265,
1769,
202,
202,
97,
9506,
202,
2463,
394,
22776,
4419,
12,
4419,
18,
5327,
16,
9648,
559,
16,
17187,
67,
22741,
16,
1082,
202,
27305,
18,
588,
9102,
9334,
1875,
202,
461,
49,
539,
749,
18,
2761,
1305,
6681,
12,
23579,
559,
16,
7917,
18,
588,
3456,
5968,
559,
9334,
7917,
18,
17994,
1435,
3631,
1082,
2
] |
filepath + ":25: variable 'badConstant' must match pattern '^[A-Z]([A-Z0-9_]*[A-Z0-9])?$'.", | filepath + ":25: variable 'badConstant' must match pattern '^[A-Z](_?[A-Z0-9]+)*$'.", | public void testSimple() throws Exception { mConfig.setMaxFileLength(20); mConfig.setMaxMethodLength(19); mConfig.setMaxConstructorLength(9); mConfig.setParamPat("^a[A-Z][a-zA-Z0-9]*$"); mConfig.setStaticPat("^s[A-Z][a-zA-Z0-9]*$"); mConfig.setMemberPat("^m[A-Z][a-zA-Z0-9]*$"); final Checker c = createChecker(); final String filepath = getPath("InputSimple.java"); assertNotNull(c); final String[] expected = { filepath + ":1: file length is 151 lines (max allowed is 20).", filepath + ":3: Line does not match expected header line of '// Created: 2001'.", filepath + ":16: 'final' modifier out of order with the JLS suggestions.", filepath + ":18: line longer than 80 characters", filepath + ":19: line contains a tab character", filepath + ":25: variable 'badConstant' must match pattern '^[A-Z]([A-Z0-9_]*[A-Z0-9])?$'.", filepath + ":30: variable 'badStatic' must match pattern '^s[A-Z][a-zA-Z0-9]*$'.", filepath + ":35: variable 'badMember' must match pattern '^m[A-Z][a-zA-Z0-9]*$'.", filepath + ":39: variable 'mNumCreated2' must be private and have accessor methods.", filepath + ":42: ',' needs to be followed by whitespace.", filepath + ":49: variable 'sTest1' must be private and have accessor methods.", filepath + ":51: variable 'sTest3' must be private and have accessor methods.", filepath + ":53: variable 'sTest2' must be private and have accessor methods.", filepath + ":56: variable 'mTest1' must be private and have accessor methods.", filepath + ":58: variable 'mTest2' must be private and have accessor methods.", filepath + ":71: ',' needs to be followed by whitespace.", filepath + ":71: parameter 'badFormat1' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":71: parameter 'badFormat2' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":72: parameter 'badFormat3' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":80: method length is 20 lines (max allowed is 19).", filepath + ":103: constructor length is 10 lines (max allowed is 9).", filepath + ":119: variable 'ABC' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":123: variable 'CDE' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":127: '{' should be on the previous line.", filepath + ":130: variable 'I' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":131: '{' should be on the previous line.", filepath + ":132: variable 'InnerBlockVariable' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":137: method name 'ALL_UPPERCASE_METHOD' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":142: 'private' modifier out of order with the JLS suggestions.", filepath + ":148: 'private' modifier out of order with the JLS suggestions.", }; verify(c, filepath, expected); } | 31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/49314771b622e7e10bde3d13f8c38170da96a3db/CheckerTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
2747,
812,
1782,
12,
3462,
1769,
3639,
312,
809,
18,
542,
2747,
1305,
1782,
12,
3657,
1769,
3639,
312,
809,
18,
542,
2747,
6293,
1782,
12,
29,
1769,
3639,
312,
809,
18,
542,
786,
22834,
2932,
66,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
5788,
22834,
2932,
66,
87,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
4419,
22834,
2932,
66,
81,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
727,
31577,
276,
273,
752,
8847,
5621,
3639,
727,
514,
3608,
273,
4339,
2932,
1210,
5784,
18,
6290,
8863,
3639,
25395,
12,
71,
1769,
3639,
727,
514,
8526,
2665,
273,
288,
5411,
3608,
397,
6398,
21,
30,
585,
769,
353,
4711,
21,
2362,
261,
1896,
2935,
353,
4200,
14944,
16,
5411,
3608,
397,
6398,
23,
30,
5377,
1552,
486,
845,
2665,
1446,
980,
434,
12084,
12953,
30,
4044,
21,
14550,
16,
5411,
3608,
397,
6398,
2313,
30,
296,
6385,
11,
9606,
596,
434,
1353,
598,
326,
804,
3045,
17969,
1199,
16,
5411,
3608,
397,
6398,
2643,
30,
980,
7144,
2353,
8958,
3949,
3113,
5411,
3608,
397,
6398,
3657,
30,
980,
1914,
279,
3246,
3351,
3113,
5411,
3608,
397,
6398,
2947,
30,
2190,
296,
8759,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
2747,
812,
1782,
12,
3462,
1769,
3639,
312,
809,
18,
542,
2747,
1305,
1782,
12,
3657,
1769,
3639,
312,
809,
18,
542,
2747,
6293,
1782,
12,
29,
1769,
3639,
312,
809,
18,
542,
786,
22834,
2932,
66,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
5788,
22834,
2932,
66,
87,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
4419,
22834,
2932,
66,
81,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
2
] |
d = d >= 0 | d = d >= 0 | public static long toUint32(double d) { // 0x100000000 gives me a numeric overflow... double two32 = 4294967296.0; if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) return 0; if (d > 0.0) d = Math.floor(d); else d = Math.ceil(d); d = Math.IEEEremainder(d, two32); d = d >= 0 ? d : d + two32; return (long) Math.floor(d); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/a73c6e75ae2fab8328356d16318be7fab782905c/ScriptRuntime.java/buggy/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
358,
5487,
1578,
12,
9056,
302,
13,
288,
3639,
368,
374,
92,
21,
12648,
14758,
1791,
279,
6389,
9391,
2777,
3639,
1645,
2795,
1578,
273,
27542,
7616,
9599,
5540,
26,
18,
20,
31,
3639,
309,
261,
72,
480,
302,
747,
302,
422,
374,
18,
20,
747,
5411,
302,
422,
3698,
18,
7057,
16325,
67,
17716,
747,
5411,
302,
422,
3698,
18,
5407,
22421,
67,
17716,
13,
5411,
327,
374,
31,
3639,
309,
261,
72,
405,
374,
18,
20,
13,
5411,
302,
273,
2361,
18,
74,
5807,
12,
72,
1769,
3639,
469,
5411,
302,
273,
2361,
18,
311,
330,
12,
72,
1769,
202,
72,
273,
2361,
18,
8732,
9383,
2764,
25407,
12,
72,
16,
2795,
1578,
1769,
202,
72,
273,
302,
1545,
374,
5411,
692,
302,
5411,
294,
302,
397,
2795,
1578,
31,
3639,
327,
261,
5748,
13,
2361,
18,
74,
5807,
12,
72,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1525,
358,
5487,
1578,
12,
9056,
302,
13,
288,
3639,
368,
374,
92,
21,
12648,
14758,
1791,
279,
6389,
9391,
2777,
3639,
1645,
2795,
1578,
273,
27542,
7616,
9599,
5540,
26,
18,
20,
31,
3639,
309,
261,
72,
480,
302,
747,
302,
422,
374,
18,
20,
747,
5411,
302,
422,
3698,
18,
7057,
16325,
67,
17716,
747,
5411,
302,
422,
3698,
18,
5407,
22421,
67,
17716,
13,
5411,
327,
374,
31,
3639,
309,
261,
72,
405,
374,
18,
20,
13,
5411,
302,
273,
2361,
18,
74,
5807,
12,
72,
1769,
3639,
469,
5411,
302,
273,
2361,
18,
311,
330,
12,
72,
1769,
202,
72,
273,
2361,
18,
8732,
9383,
2764,
25407,
12,
72,
16,
2795,
1578,
2
] |
createTextField(textFieldComposite, getRepositoryTaskData().getAttribute(RepositoryTaskAttribute.USER_REPORTER), SWT.FLAT | SWT.READ_ONLY); | createTextField(textFieldComposite, getRepositoryTaskData().getAttribute(RepositoryTaskAttribute.USER_REPORTER), SWT.FLAT | SWT.READ_ONLY); | protected void createPeopleLayout(Composite composite) { FormToolkit toolkit = getManagedForm().getToolkit(); Section peopleSection = createSection(composite, SECTION_TITLE_PEOPLE); GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(peopleSection); Composite peopleComposite = toolkit.createComposite(peopleSection); GridLayout layout = new GridLayout(2, false); layout.marginRight = 5; peopleComposite.setLayout(layout); GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(peopleComposite); Label label = toolkit.createLabel(peopleComposite, "Assigned to:"); GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.DEFAULT).applyTo(label); Composite textFieldComposite = toolkit.createComposite(peopleComposite); GridLayout textLayout = new GridLayout(); textLayout.marginWidth = 1; textLayout.verticalSpacing = 0; textLayout.marginHeight = 0; textLayout.marginRight = 5; textFieldComposite.setLayout(textLayout); createTextField(textFieldComposite, getRepositoryTaskData().getAttribute(RepositoryTaskAttribute.USER_ASSIGNED), SWT.FLAT | SWT.READ_ONLY); label = toolkit.createLabel(peopleComposite, "Reporter:"); GridDataFactory.fillDefaults().align(SWT.RIGHT, SWT.DEFAULT).applyTo(label); textFieldComposite = toolkit.createComposite(peopleComposite); textLayout = new GridLayout(); textLayout.marginWidth = 1; textLayout.verticalSpacing = 0; textLayout.marginHeight = 0; textFieldComposite.setLayout(textLayout); createTextField(textFieldComposite, getRepositoryTaskData().getAttribute(RepositoryTaskAttribute.USER_REPORTER), SWT.FLAT | SWT.READ_ONLY); addSelfToCC(peopleComposite); addCCList(peopleComposite); getManagedForm().getToolkit().paintBordersFor(peopleComposite); peopleSection.setClient(peopleComposite); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5925c78fc268689d1668e9c446649db17df62ff2/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
11227,
11763,
3744,
12,
9400,
9635,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
2108,
4184,
1204,
7675,
588,
6364,
8691,
5621,
202,
202,
5285,
16951,
5285,
273,
752,
5285,
12,
27676,
16,
25881,
67,
14123,
67,
1423,
3665,
900,
1769,
202,
202,
6313,
751,
1733,
18,
5935,
7019,
7675,
7989,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
2934,
2752,
70,
12,
3767,
16,
638,
2934,
9010,
774,
12,
28035,
5285,
1769,
202,
202,
9400,
16951,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
28035,
5285,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
22,
16,
629,
1769,
202,
202,
6741,
18,
10107,
4726,
273,
1381,
31,
202,
202,
28035,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
1733,
18,
5935,
7019,
7675,
7989,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
2934,
2752,
70,
12,
3767,
16,
638,
2934,
9010,
774,
12,
28035,
9400,
1769,
202,
202,
2224,
1433,
273,
5226,
8691,
18,
2640,
2224,
12,
28035,
9400,
16,
315,
20363,
358,
2773,
1769,
202,
202,
6313,
751,
1733,
18,
5935,
7019,
7675,
7989,
12,
55,
8588,
18,
11847,
16,
348,
8588,
18,
5280,
2934,
9010,
774,
12,
1925,
1769,
202,
202,
9400,
977,
974,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
28035,
9400,
1769,
202,
202,
6313,
3744,
977,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
955,
3744,
18,
10107,
2384,
273,
404,
31,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
11227,
11763,
3744,
12,
9400,
9635,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
2108,
4184,
1204,
7675,
588,
6364,
8691,
5621,
202,
202,
5285,
16951,
5285,
273,
752,
5285,
12,
27676,
16,
25881,
67,
14123,
67,
1423,
3665,
900,
1769,
202,
202,
6313,
751,
1733,
18,
5935,
7019,
7675,
7989,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
29818,
2934,
2752,
70,
12,
3767,
16,
638,
2934,
9010,
774,
12,
28035,
5285,
1769,
202,
202,
9400,
16951,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
28035,
5285,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
22,
16,
629,
1769,
202,
202,
6741,
18,
10107,
4726,
273,
1381,
2
] |
DatabaseLookupMessage msg = new DatabaseLookupMessage(_context); | DatabaseLookupMessage msg = new DatabaseLookupMessage(getContext()); | protected DatabaseLookupMessage buildMessage(TunnelId replyTunnelId, RouterInfo replyGateway, long expiration) { DatabaseLookupMessage msg = new DatabaseLookupMessage(_context); msg.setSearchKey(_state.getTarget()); msg.setFrom(replyGateway); msg.setDontIncludePeers(_state.getAttempted()); msg.setMessageExpiration(new Date(expiration)); msg.setReplyTunnel(replyTunnelId); return msg; } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/e737e5c9507ed0d463dc9e45a8f63657f466b177/SearchJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5130,
6609,
1079,
1361,
1079,
12,
20329,
548,
4332,
20329,
548,
16,
9703,
966,
4332,
5197,
16,
1525,
7686,
13,
288,
3639,
5130,
6609,
1079,
1234,
273,
394,
5130,
6609,
1079,
12,
29120,
10663,
3639,
1234,
18,
542,
2979,
653,
24899,
2019,
18,
588,
2326,
10663,
3639,
1234,
18,
542,
1265,
12,
10629,
5197,
1769,
3639,
1234,
18,
542,
40,
1580,
8752,
14858,
24899,
2019,
18,
588,
28788,
10663,
3639,
1234,
18,
542,
1079,
12028,
12,
2704,
2167,
12,
19519,
10019,
3639,
1234,
18,
542,
7817,
20329,
12,
10629,
20329,
548,
1769,
3639,
327,
1234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5130,
6609,
1079,
1361,
1079,
12,
20329,
548,
4332,
20329,
548,
16,
9703,
966,
4332,
5197,
16,
1525,
7686,
13,
288,
3639,
5130,
6609,
1079,
1234,
273,
394,
5130,
6609,
1079,
12,
29120,
10663,
3639,
1234,
18,
542,
2979,
653,
24899,
2019,
18,
588,
2326,
10663,
3639,
1234,
18,
542,
1265,
12,
10629,
5197,
1769,
3639,
1234,
18,
542,
40,
1580,
8752,
14858,
24899,
2019,
18,
588,
28788,
10663,
3639,
1234,
18,
542,
1079,
12028,
12,
2704,
2167,
12,
19519,
10019,
3639,
1234,
18,
542,
7817,
20329,
12,
10629,
20329,
548,
1769,
3639,
327,
1234,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
position = position - mark + buffPos; | position = position - buffPos + mark; | public void reset() throws IOException { if (mark < 0) throw new IOException("The mark is not currently in scope"); position = position - mark + buffPos; buffPos = mark; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/4b90466f895483cd6b94a50f305057a4ef057feb/IndexedSequenceDB.java/clean/src/org/biojava/bio/seq/db/IndexedSequenceDB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
1435,
202,
565,
1216,
1860,
202,
95,
202,
565,
309,
261,
3355,
411,
374,
13,
202,
202,
12849,
394,
1860,
2932,
1986,
2267,
353,
486,
4551,
316,
2146,
8863,
202,
565,
1754,
273,
1754,
300,
2267,
397,
6139,
1616,
31,
202,
565,
6139,
1616,
273,
2267,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
2715,
1435,
202,
565,
1216,
1860,
202,
95,
202,
565,
309,
261,
3355,
411,
374,
13,
202,
202,
12849,
394,
1860,
2932,
1986,
2267,
353,
486,
4551,
316,
2146,
8863,
202,
565,
1754,
273,
1754,
300,
2267,
397,
6139,
1616,
31,
202,
565,
6139,
1616,
273,
2267,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void runInTime(Database<T> database) throws IllegalStateException { if (!(database instanceof SpatialIndexDatabase)) throw new IllegalArgumentException("Database must be an instance of " + SpatialIndexDatabase.class.getName()); if (!(getDistanceFunction() instanceof SpatialDistanceFunction)) throw new IllegalArgumentException("Distance Function must be an instance of " + SpatialDistanceFunction.class.getName()); SpatialIndexDatabase<T> db = (SpatialIndexDatabase<T>) database; SpatialDistanceFunction<T> distFunction = (SpatialDistanceFunction<T>) getDistanceFunction(); HashMap<Integer, KNNList> knnLists = new HashMap<Integer, KNNList>(); try { // data pages of s List<Entry> ps_candidates = db.getLeafNodes(); Progress progress = new Progress(ps_candidates.size()); logger.info("# ps = " + ps_candidates.size()); // hosting data pages of r List<Entry> pr_candidates = new ArrayList<Entry>(ps_candidates); logger.info("# pr = " + pr_candidates.size()); for (int i = 0; i < pr_candidates.size(); i++) { // PR holen SpatialNode pr = db.getNode(pr_candidates.get(i).getID()); MBR pr_mbr = pr_candidates.get(i).getMBR(); Distance pr_knn_distance = distFunction.infiniteDistance(); logger.info(" ------ PR = " + pr); // create for each data object a knn list for (int j = 0; j < pr.getNumEntries(); j++) { knnLists.put(pr.getEntry(j).getID(), new KNNList(k, getDistanceFunction().infiniteDistance())); } for (Entry ps_candidate : ps_candidates) { MBR ps_mbr = ps_candidate.getMBR(); Distance distance = distFunction.distance(pr_mbr, ps_mbr); if (distance.compareTo(pr_knn_distance) <= 0) { SpatialNode ps = db.getNode(ps_candidate.getID()); pr_knn_distance = processDataPages(db, pr, ps, knnLists, pr_knn_distance); }// else {// logger.info("prune");// } } if (isVerbose()) { progress.setProcessed(i); System.out.println("\r" + progress.toString()); } } result = new KNNJoinResult<T>(knnLists); } catch (Exception e) { e.printStackTrace(); throw new IllegalStateException(e); } } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/cac48e5566ba1e737864c77c65481239006b6981/KNNJoin.java/clean/src/de/lmu/ifi/dbs/algorithm/KNNJoin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
382,
950,
12,
4254,
32,
56,
34,
6231,
13,
15069,
12195,
5060,
95,
430,
12,
5,
12,
6231,
1336,
792,
24648,
1016,
4254,
3719,
12849,
2704,
31237,
2932,
4254,
11926,
14496,
1336,
792,
6,
15,
24648,
1016,
4254,
18,
1106,
18,
17994,
10663,
430,
12,
5,
12,
588,
7200,
2083,
1435,
1336,
792,
24648,
7200,
2083,
3719,
12849,
2704,
31237,
2932,
7200,
2083,
11926,
14496,
1336,
792,
6,
15,
24648,
7200,
2083,
18,
1106,
18,
17994,
10663,
24648,
1016,
4254,
32,
56,
34,
1966,
28657,
24648,
1016,
4254,
32,
56,
23429,
6231,
31,
24648,
7200,
2083,
32,
56,
34,
4413,
2083,
28657,
24648,
7200,
2083,
32,
56,
23429,
588,
7200,
2083,
5621,
8658,
32,
4522,
16,
47,
12225,
682,
34,
79,
9074,
7432,
33,
2704,
8658,
32,
4522,
16,
47,
12225,
682,
34,
5621,
698,
95,
759,
892,
7267,
792,
21576,
32,
1622,
34,
1121,
67,
21635,
33,
1966,
18,
588,
9858,
3205,
5621,
5491,
8298,
33,
2704,
5491,
12,
1121,
67,
21635,
18,
1467,
10663,
4901,
18,
1376,
2932,
7,
1121,
1546,
15,
1121,
67,
21635,
18,
1467,
10663,
759,
31415,
892,
7267,
792,
86,
682,
32,
1622,
34,
683,
67,
21635,
33,
2704,
19558,
32,
1622,
34,
12,
1121,
67,
21635,
1769,
4901,
18,
1376,
2932,
7,
683,
1546,
15,
683,
67,
21635,
18,
1467,
10663,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
683,
67,
21635,
18,
1467,
5621,
77,
27245,
95,
759,
8025,
76,
355,
275,
24648,
907,
683,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
382,
950,
12,
4254,
32,
56,
34,
6231,
13,
15069,
12195,
5060,
95,
430,
12,
5,
12,
6231,
1336,
792,
24648,
1016,
4254,
3719,
12849,
2704,
31237,
2932,
4254,
11926,
14496,
1336,
792,
6,
15,
24648,
1016,
4254,
18,
1106,
18,
17994,
10663,
430,
12,
5,
12,
588,
7200,
2083,
1435,
1336,
792,
24648,
7200,
2083,
3719,
12849,
2704,
31237,
2932,
7200,
2083,
11926,
14496,
1336,
792,
6,
15,
24648,
7200,
2083,
18,
1106,
18,
17994,
10663,
24648,
1016,
4254,
32,
56,
34,
1966,
28657,
24648,
1016,
4254,
32,
56,
23429,
6231,
31,
24648,
7200,
2083,
32,
56,
34,
4413,
2083,
28657,
24648,
7200,
2083,
32,
56,
23429,
588,
7200,
2083,
5621,
8658,
32,
4522,
16,
2
] | ||
public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc(); | public quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { quickfix.field.SecurityDesc value = new quickfix.field.SecurityDesc(); | public org.quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound { org.quickfix.field.SecurityDesc value = new org.quickfix.field.SecurityDesc(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
19288,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
19288,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
4217,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new DummyContext(environment); | String url = (String) environment.get(Context.PROVIDER_URL); if (url==null) { throw new NamingException("Unable to create context. Environment is missing a " + Context.PROVIDER_URL); } synchronized (DummyInitialContextFactory.contexts) { DummyContext ctx = (DummyContext) contexts.get(url); if (ctx==null) { ctx = new DummyContext(environment); contexts.put(url, ctx); } return ctx; } | public Context getInitialContext(Hashtable environment) throws NamingException { return new DummyContext(environment); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/e6af2687061755e93f7df9fd09a6afd625563299/DummyInitialContextFactory.java/buggy/src/java/org/apache/jackrabbit/core/jndi/provider/DummyInitialContextFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
24044,
1042,
12,
5582,
14544,
3330,
13,
1216,
26890,
288,
540,
514,
880,
273,
261,
780,
13,
3330,
18,
588,
12,
1042,
18,
26413,
67,
1785,
1769,
309,
261,
718,
631,
2011,
13,
288,
604,
394,
26890,
2932,
3370,
358,
752,
819,
18,
7518,
353,
3315,
279,
315,
397,
1772,
18,
26413,
67,
1785,
1769,
289,
225,
3852,
261,
20094,
4435,
29871,
18,
18332,
13,
288,
28622,
1042,
1103,
273,
261,
20094,
1042,
13,
5781,
18,
588,
12,
718,
1769,
309,
261,
5900,
631,
2011,
13,
288,
1103,
273,
394,
28622,
1042,
12,
10274,
1769,
5781,
18,
458,
12,
718,
16,
1103,
1769,
289,
327,
1103,
31,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1772,
24044,
1042,
12,
5582,
14544,
3330,
13,
1216,
26890,
288,
540,
514,
880,
273,
261,
780,
13,
3330,
18,
588,
12,
1042,
18,
26413,
67,
1785,
1769,
309,
261,
718,
631,
2011,
13,
288,
604,
394,
26890,
2932,
3370,
358,
752,
819,
18,
7518,
353,
3315,
279,
315,
397,
1772,
18,
26413,
67,
1785,
1769,
289,
225,
3852,
261,
20094,
4435,
29871,
18,
18332,
13,
288,
28622,
1042,
1103,
273,
261,
20094,
1042,
13,
5781,
18,
588,
12,
718,
1769,
309,
261,
5900,
631,
2011,
13,
288,
1103,
273,
394,
28622,
1042,
12,
10274,
1769,
5781,
18,
458,
12,
718,
16,
1103,
1769,
289,
327,
1103,
31,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
logDetail( "** NOT IMPLEMENTED ** updateActuatorType()" ); | if ( _logger.isDetailEnabled() ) _logger.detail( "** NOT IMPLEMENTED ** updateActuatorType()" ); | public void updateActuatorType( ActionTechSpecInterface actuator_ts ) { logDetail( "** NOT IMPLEMENTED ** updateActuatorType()" ); } // method updateActuatorType | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/b46bccd9c04fcb2db618966e6d9b5841c1fc8c6b/ModelManager.java/clean/believability/src/org/cougaar/coordinator/believability/ModelManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2459,
28764,
559,
12,
4382,
56,
8987,
1990,
1358,
1328,
28764,
67,
3428,
262,
565,
288,
3639,
309,
261,
389,
4901,
18,
291,
6109,
1526,
1435,
262,
389,
4901,
18,
8992,
12,
28078,
4269,
15694,
28485,
6404,
2826,
1089,
2459,
28764,
559,
10031,
11272,
565,
289,
368,
707,
1089,
2459,
28764,
559,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2459,
28764,
559,
12,
4382,
56,
8987,
1990,
1358,
1328,
28764,
67,
3428,
262,
565,
288,
3639,
309,
261,
389,
4901,
18,
291,
6109,
1526,
1435,
262,
389,
4901,
18,
8992,
12,
28078,
4269,
15694,
28485,
6404,
2826,
1089,
2459,
28764,
559,
10031,
11272,
565,
289,
368,
707,
1089,
2459,
28764,
559,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ClassLoader classLoader = this.getClass().getClassLoader(); | private void setDefaultProperties() { ClassLoader classLoader = this.getClass().getClassLoader(); try { InputStream inputStream = classLoader .getResourceAsStream( DEFAULT_RUNTIME_PROPERTIES ); configuration.load( inputStream ); info ("Default Properties File: " + new File(DEFAULT_RUNTIME_PROPERTIES).getPath()); } catch (IOException ioe) { System.err.println("Cannot get Velocity Runtime default properties!"); } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/b8cb84124e4cd5968587d18a4b990a32c181160b/RuntimeInstance.java/clean/src/java/org/apache/velocity/runtime/RuntimeInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
9277,
2297,
1435,
565,
288,
2868,
775,
3639,
288,
5411,
5037,
10010,
273,
11138,
7734,
263,
588,
1420,
17052,
12,
3331,
67,
54,
25375,
67,
17421,
11272,
13491,
1664,
18,
945,
12,
10010,
11272,
13491,
1123,
7566,
1868,
6183,
1387,
30,
315,
397,
1171,
394,
1387,
12,
5280,
67,
54,
25375,
67,
17421,
2934,
588,
743,
10663,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
4515,
336,
24561,
2509,
805,
1790,
4442,
1769,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
9277,
2297,
1435,
565,
288,
2868,
775,
3639,
288,
5411,
5037,
10010,
273,
11138,
7734,
263,
588,
1420,
17052,
12,
3331,
67,
54,
25375,
67,
17421,
11272,
13491,
1664,
18,
945,
12,
10010,
11272,
13491,
1123,
7566,
1868,
6183,
1387,
30,
315,
397,
1171,
394,
1387,
12,
5280,
67,
54,
25375,
67,
17421,
2934,
588,
743,
10663,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
4515,
336,
24561,
2509,
805,
1790,
4442,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
return mArray; } | return (String)_parameterList.get(index); } | public java.lang.String[] getParameter() { int size = _parameterList.size(); java.lang.String[] mArray = new java.lang.String[size]; for (int index = 0; index < size; index++) { mArray[index] = (String)_parameterList.get(index); } return mArray; } //-- java.lang.String[] getParameter() | 14598 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14598/ca3c3246eb5b12205b2d0cdb4349bf667b89663c/ServiceMethodDataType.java/clean/javasrc/schemas/treaty/ServiceMethodDataType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4936,
18,
780,
8526,
5575,
1435,
565,
288,
3639,
509,
963,
273,
389,
6775,
682,
18,
1467,
5621,
3639,
2252,
18,
4936,
18,
780,
8526,
312,
1076,
273,
394,
2252,
18,
4936,
18,
780,
63,
1467,
15533,
3639,
364,
261,
474,
770,
273,
374,
31,
770,
411,
963,
31,
770,
27245,
288,
5411,
312,
1076,
63,
1615,
65,
273,
261,
780,
13,
67,
6775,
682,
18,
588,
12,
1615,
1769,
3639,
289,
3639,
327,
312,
1076,
31,
565,
289,
368,
413,
2252,
18,
4936,
18,
780,
8526,
5575,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2252,
18,
4936,
18,
780,
8526,
5575,
1435,
565,
288,
3639,
509,
963,
273,
389,
6775,
682,
18,
1467,
5621,
3639,
2252,
18,
4936,
18,
780,
8526,
312,
1076,
273,
394,
2252,
18,
4936,
18,
780,
63,
1467,
15533,
3639,
364,
261,
474,
770,
273,
374,
31,
770,
411,
963,
31,
770,
27245,
288,
5411,
312,
1076,
63,
1615,
65,
273,
261,
780,
13,
67,
6775,
682,
18,
588,
12,
1615,
1769,
3639,
289,
3639,
327,
312,
1076,
31,
565,
289,
368,
413,
2252,
18,
4936,
18,
780,
8526,
5575,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean persistent = message.persistenceType != ClientGet.PERSIST_CONNECTION; | boolean persistent = message.persistenceType != ClientRequest.PERSIST_CONNECTION; | public void startClientPutDir(ClientPutDirMessage message, HashMap buckets) { Logger.minor(this, "Start ClientPutDir"); String id = message.identifier; ClientPutDir cp = null; boolean success; boolean persistent = message.persistenceType != ClientGet.PERSIST_CONNECTION; synchronized(this) { if(isClosed) return; // We need to track non-persistent requests anyway, so we may as well check if(persistent) success = true; else success = !requestsByIdentifier.containsKey(id); if(success) { try { cp = new ClientPutDir(this, message, buckets); } catch (IdentifierCollisionException e) { success = false; } if(!persistent) requestsByIdentifier.put(id, cp); } } if(!success) { Logger.normal(this, "Identifier collision on "+this); FCPMessage msg = new IdentifierCollisionMessage(id); outputHandler.queue(msg); return; } else { // Register before starting, because it may complete immediately, and if it does, // we may end up with it not being removable because it wasn't registered! if(cp.isPersistent()) { if(cp.isPersistentForever()) server.forceStorePersistentRequests(); } Logger.minor(this, "Starting "+cp); cp.start(); } } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/FCPConnectionHandler.java/clean/src/freenet/node/fcp/FCPConnectionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1227,
6426,
1621,
12,
1227,
6426,
1621,
1079,
883,
16,
4317,
9169,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1685,
2445,
6426,
1621,
8863,
202,
202,
780,
612,
273,
883,
18,
5644,
31,
202,
202,
1227,
6426,
1621,
3283,
273,
446,
31,
202,
202,
6494,
2216,
31,
202,
202,
6494,
9195,
273,
883,
18,
24854,
559,
480,
2445,
967,
18,
3194,
18732,
67,
15461,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
291,
7395,
13,
327,
31,
1082,
202,
759,
1660,
1608,
358,
3298,
1661,
17,
19393,
3285,
13466,
16,
1427,
732,
2026,
487,
5492,
866,
1082,
202,
430,
12,
19393,
13,
9506,
202,
4768,
273,
638,
31,
1082,
202,
12107,
9506,
202,
4768,
273,
401,
11420,
27498,
18,
12298,
653,
12,
350,
1769,
1082,
202,
430,
12,
4768,
13,
288,
9506,
202,
698,
288,
6862,
202,
4057,
273,
394,
2445,
6426,
1621,
12,
2211,
16,
883,
16,
9169,
1769,
9506,
202,
97,
1044,
261,
3004,
13535,
1951,
503,
425,
13,
288,
6862,
202,
4768,
273,
629,
31,
9506,
202,
97,
9506,
202,
430,
12,
5,
19393,
13,
6862,
202,
11420,
27498,
18,
458,
12,
350,
16,
3283,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
5,
4768,
13,
288,
1082,
202,
3328,
18,
6130,
12,
2211,
16,
315,
3004,
17740,
603,
13773,
2211,
1769,
1082,
202,
42,
4258,
1079,
1234,
273,
394,
10333,
13535,
1951,
1079,
12,
350,
1769,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1227,
6426,
1621,
12,
1227,
6426,
1621,
1079,
883,
16,
4317,
9169,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1685,
2445,
6426,
1621,
8863,
202,
202,
780,
612,
273,
883,
18,
5644,
31,
202,
202,
1227,
6426,
1621,
3283,
273,
446,
31,
202,
202,
6494,
2216,
31,
202,
202,
6494,
9195,
273,
883,
18,
24854,
559,
480,
2445,
967,
18,
3194,
18732,
67,
15461,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
291,
7395,
13,
327,
31,
1082,
202,
759,
1660,
1608,
358,
3298,
1661,
17,
19393,
3285,
13466,
16,
1427,
732,
2026,
487,
5492,
866,
1082,
202,
430,
12,
19393,
13,
9506,
202,
4768,
273,
2
] |
option(s, o); | RefUtils.modify(o,s); | public void SplitterOp(String s) { Object o = (Object)splitter; option(s, o); } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/b8343f34bb1c97fe81398f3f1083349dd496943c/CommandLineUtil.java/buggy/src/edu/cmu/minorthird/ui/CommandLineUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5385,
387,
3817,
12,
780,
272,
13,
288,
3196,
565,
1033,
320,
273,
261,
921,
13,
4939,
387,
31,
202,
565,
1456,
12,
87,
16,
320,
1769,
1082,
377,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
5385,
387,
3817,
12,
780,
272,
13,
288,
3196,
565,
1033,
320,
273,
261,
921,
13,
4939,
387,
31,
202,
565,
1456,
12,
87,
16,
320,
1769,
1082,
377,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public synchronized void add(String item) { | add(String item) { | public synchronized void add(String item) { if (item == null) throw new NullPointerException("item must be non-null"); pItems.addElement(item); int i = pItems.size() - 1; if (peer != null) { ChoicePeer cp = (ChoicePeer) peer; cp.add(item, i); } if (i == 0) select(0); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/Choice.java/buggy/core/src/classpath/java/java/awt/Choice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
527,
12,
780,
761,
13,
288,
202,
202,
430,
261,
1726,
422,
446,
13,
1082,
202,
12849,
394,
10108,
2932,
1726,
1297,
506,
1661,
17,
2011,
8863,
202,
202,
84,
3126,
18,
1289,
1046,
12,
1726,
1769,
202,
202,
474,
277,
273,
293,
3126,
18,
1467,
1435,
300,
404,
31,
202,
202,
430,
261,
12210,
480,
446,
13,
288,
1082,
202,
10538,
6813,
3283,
273,
261,
10538,
6813,
13,
4261,
31,
1082,
202,
4057,
18,
1289,
12,
1726,
16,
277,
1769,
202,
202,
97,
202,
202,
430,
261,
77,
422,
374,
13,
1082,
202,
4025,
12,
20,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
918,
527,
12,
780,
761,
13,
288,
202,
202,
430,
261,
1726,
422,
446,
13,
1082,
202,
12849,
394,
10108,
2932,
1726,
1297,
506,
1661,
17,
2011,
8863,
202,
202,
84,
3126,
18,
1289,
1046,
12,
1726,
1769,
202,
202,
474,
277,
273,
293,
3126,
18,
1467,
1435,
300,
404,
31,
202,
202,
430,
261,
12210,
480,
446,
13,
288,
1082,
202,
10538,
6813,
3283,
273,
261,
10538,
6813,
13,
4261,
31,
1082,
202,
4057,
18,
1289,
12,
1726,
16,
277,
1769,
202,
202,
97,
202,
202,
430,
261,
77,
422,
374,
13,
1082,
202,
4025,
12,
20,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static DavResource getResourceFromMailItem(String target, MailItem item) throws DavException { | public static DavResource getResourceFromMailItem(MailItem item) throws DavException { | public static DavResource getResourceFromMailItem(String target, MailItem item) throws DavException { DavResource resource = null; byte itemType = item.getType(); try { Account acct = item.getAccount(); switch (itemType) { case (MailItem.TYPE_FOLDER) : case (MailItem.TYPE_MOUNTPOINT) : resource = new Collection((Folder)item, acct); break; case (MailItem.TYPE_WIKI) : case (MailItem.TYPE_DOCUMENT) : resource = new Notebook((Document)item, acct); break; } } catch (ServiceException e) { resource = null; ZimbraLog.dav.info("cannot create DavResource", e); } return resource; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7afc0c334624d2a0dc2d0041df1090cb7f910c8f/UrlNamespace.java/buggy/ZimbraServer/src/java/com/zimbra/cs/dav/resource/UrlNamespace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
463,
842,
1420,
5070,
1265,
6759,
1180,
12,
780,
1018,
16,
11542,
1180,
761,
13,
1216,
463,
842,
503,
288,
202,
202,
40,
842,
1420,
1058,
273,
446,
31,
202,
202,
7229,
23080,
273,
761,
18,
588,
559,
5621,
9506,
202,
698,
288,
1082,
202,
3032,
20774,
273,
761,
18,
588,
3032,
5621,
1082,
202,
9610,
261,
1726,
559,
13,
288,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
17357,
13,
294,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
5980,
5321,
8941,
13,
294,
9506,
202,
3146,
273,
394,
2200,
12443,
3899,
13,
1726,
16,
20774,
1769,
1082,
202,
8820,
31,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
23109,
47,
45,
13,
294,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
18450,
13,
294,
9506,
202,
3146,
273,
394,
3609,
3618,
12443,
2519,
13,
1726,
16,
20774,
1769,
1082,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
1044,
261,
15133,
425,
13,
288,
1082,
202,
3146,
273,
446,
31,
1082,
202,
62,
381,
15397,
1343,
18,
20752,
18,
1376,
2932,
12892,
752,
463,
842,
1420,
3113,
425,
1769,
202,
202,
97,
202,
202,
2463,
1058,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
463,
842,
1420,
5070,
1265,
6759,
1180,
12,
780,
1018,
16,
11542,
1180,
761,
13,
1216,
463,
842,
503,
288,
202,
202,
40,
842,
1420,
1058,
273,
446,
31,
202,
202,
7229,
23080,
273,
761,
18,
588,
559,
5621,
9506,
202,
698,
288,
1082,
202,
3032,
20774,
273,
761,
18,
588,
3032,
5621,
1082,
202,
9610,
261,
1726,
559,
13,
288,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
17357,
13,
294,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
5980,
5321,
8941,
13,
294,
9506,
202,
3146,
273,
394,
2200,
12443,
3899,
13,
1726,
16,
20774,
1769,
1082,
202,
8820,
31,
1082,
202,
3593,
261,
6759,
1180,
18,
2399,
67,
23109,
47,
2
] |
match(input,LPAREN,FOLLOW_LPAREN_in_postfixExpression2674); | match(input,LPAREN,FOLLOW_LPAREN_in_postfixExpression2674); | public void postfixExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:640:13: ( primaryExpression ( DOT IDENT ( LPAREN argList RPAREN )? | DOT 'this' | DOT 'super' ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? ) | DOT newExpression | LBRACK expression RBRACK )* ( (INC|DEC))? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:640:13: primaryExpression ( DOT IDENT ( LPAREN argList RPAREN )? | DOT 'this' | DOT 'super' ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? ) | DOT newExpression | LBRACK expression RBRACK )* ( (INC|DEC))? { following.push(FOLLOW_primaryExpression_in_postfixExpression2586); primaryExpression(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:641:17: ( DOT IDENT ( LPAREN argList RPAREN )? | DOT 'this' | DOT 'super' ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? ) | DOT newExpression | LBRACK expression RBRACK )* loop69: do { int alt69=6; int LA69_0 = input.LA(1); if ( LA69_0==DOT ) { switch ( input.LA(2) ) { case 93: alt69=2; break; case IDENT: alt69=1; break; case 94: alt69=3; break; case 115: alt69=4; break; } } else if ( LA69_0==LBRACK ) { alt69=5; } switch (alt69) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:641:21: DOT IDENT ( LPAREN argList RPAREN )? { match(input,DOT,FOLLOW_DOT_in_postfixExpression2594); match(input,IDENT,FOLLOW_IDENT_in_postfixExpression2596); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:642:25: ( LPAREN argList RPAREN )? int alt66=2; int LA66_0 = input.LA(1); if ( LA66_0==LPAREN ) { alt66=1; } else if ( (LA66_0>=LBRACK && LA66_0<=RBRACK)||(LA66_0>=DOT && LA66_0<=STAR)||(LA66_0>=SEMI && LA66_0<=COMMA)||(LA66_0>=RPAREN && LA66_0<=DEC)||LA66_0==111 ) { alt66=2; } else { NoViableAltException nvae = new NoViableAltException("642:25: ( LPAREN argList RPAREN )?", 66, 0, input); throw nvae; } switch (alt66) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:642:33: LPAREN argList RPAREN { match(input,LPAREN,FOLLOW_LPAREN_in_postfixExpression2603); following.push(FOLLOW_argList_in_postfixExpression2610); argList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_postfixExpression2616); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:646:25: DOT 'this' { match(input,DOT,FOLLOW_DOT_in_postfixExpression2628); match(input,93,FOLLOW_93_in_postfixExpression2630); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:648:25: DOT 'super' ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? ) { match(input,DOT,FOLLOW_DOT_in_postfixExpression2637); match(input,94,FOLLOW_94_in_postfixExpression2639); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:649:13: ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? ) int alt68=2; int LA68_0 = input.LA(1); if ( LA68_0==LPAREN ) { alt68=1; } else if ( LA68_0==DOT ) { alt68=2; } else { NoViableAltException nvae = new NoViableAltException("649:13: ( LPAREN argList RPAREN | DOT IDENT ( LPAREN argList RPAREN )? )", 68, 0, input); throw nvae; } switch (alt68) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:650:17: LPAREN argList RPAREN { match(input,LPAREN,FOLLOW_LPAREN_in_postfixExpression2674); following.push(FOLLOW_argList_in_postfixExpression2676); argList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_postfixExpression2678); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:652:29: DOT IDENT ( LPAREN argList RPAREN )? { match(input,DOT,FOLLOW_DOT_in_postfixExpression2704); match(input,IDENT,FOLLOW_IDENT_in_postfixExpression2706); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:653:17: ( LPAREN argList RPAREN )? int alt67=2; int LA67_0 = input.LA(1); if ( LA67_0==LPAREN ) { alt67=1; } else if ( (LA67_0>=LBRACK && LA67_0<=RBRACK)||(LA67_0>=DOT && LA67_0<=STAR)||(LA67_0>=SEMI && LA67_0<=COMMA)||(LA67_0>=RPAREN && LA67_0<=DEC)||LA67_0==111 ) { alt67=2; } else { NoViableAltException nvae = new NoViableAltException("653:17: ( LPAREN argList RPAREN )?", 67, 0, input); throw nvae; } switch (alt67) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:653:25: LPAREN argList RPAREN { match(input,LPAREN,FOLLOW_LPAREN_in_postfixExpression2726); following.push(FOLLOW_argList_in_postfixExpression2749); argList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_postfixExpression2771); } break; } } break; } } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:658:25: DOT newExpression { match(input,DOT,FOLLOW_DOT_in_postfixExpression2810); following.push(FOLLOW_newExpression_in_postfixExpression2812); newExpression(); following.pop(); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:659:25: LBRACK expression RBRACK { match(input,LBRACK,FOLLOW_LBRACK_in_postfixExpression2818); following.push(FOLLOW_expression_in_postfixExpression2821); expression(); following.pop(); match(input,RBRACK,FOLLOW_RBRACK_in_postfixExpression2823); } break; default : break loop69; } } while (true); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:662:17: ( (INC|DEC))? int alt70=2; int LA70_0 = input.LA(1); if ( (LA70_0>=INC && LA70_0<=DEC) ) { alt70=1; } else if ( LA70_0==RBRACK||LA70_0==STAR||(LA70_0>=SEMI && LA70_0<=COMMA)||(LA70_0>=RPAREN && LA70_0<=MOD)||LA70_0==111 ) { alt70=2; } else { NoViableAltException nvae = new NoViableAltException("662:17: ( (INC|DEC))?", 70, 0, input); throw nvae; } switch (alt70) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:664:25: (INC|DEC) { if ( (input.LA(1)>=INC && input.LA(1)<=DEC) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_postfixExpression2854); throw mse; } } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18923,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
1105,
20,
30,
3437,
30,
261,
3354,
2300,
261,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
571,
15772,
296,
2211,
11,
571,
15772,
296,
9565,
11,
261,
511,
15111,
1501,
682,
534,
15111,
571,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
262,
571,
15772,
394,
2300,
571,
511,
7192,
3649,
2652,
534,
7192,
3649,
8618,
261,
261,
23213,
96,
1639,
39,
24783,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
1105,
20,
30,
3437,
30,
3354,
2300,
261,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
571,
15772,
296,
2211,
11,
571,
15772,
296,
9565,
11,
261,
511,
15111,
1501,
682,
534,
15111,
571,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
262,
571,
15772,
394,
2300,
571,
511,
7192,
3649,
2652,
534,
7192,
3649,
8618,
261,
261,
23213,
96,
1639,
39,
24783,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
8258,
2300,
67,
267,
67,
2767,
904,
2300,
2947,
5292,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18923,
2300,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
1105,
20,
30,
3437,
30,
261,
3354,
2300,
261,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
571,
15772,
296,
2211,
11,
571,
15772,
296,
9565,
11,
261,
511,
15111,
1501,
682,
534,
15111,
571,
15772,
19768,
261,
511,
15111,
1501,
682,
534,
15111,
7851,
262,
571,
15772,
394,
2300,
571,
511,
7192,
3649,
2652,
534,
7192,
3649,
8618,
261,
261,
23213,
96,
1639,
39,
2
] |
} | } | public synchronized void setEditable(boolean editable) { this.editable = editable; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setEditable(editable); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextComponent.java/buggy/core/src/classpath/java/java/awt/TextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
444,
15470,
12,
6494,
13754,
13,
288,
202,
202,
2211,
18,
19653,
273,
13754,
31,
202,
202,
1528,
1841,
6813,
9658,
273,
261,
1528,
1841,
6813,
13,
29875,
5621,
202,
202,
430,
261,
14832,
480,
446,
13,
1082,
202,
14832,
18,
542,
15470,
12,
19653,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
918,
444,
15470,
12,
6494,
13754,
13,
288,
202,
202,
2211,
18,
19653,
273,
13754,
31,
202,
202,
1528,
1841,
6813,
9658,
273,
261,
1528,
1841,
6813,
13,
29875,
5621,
202,
202,
430,
261,
14832,
480,
446,
13,
1082,
202,
14832,
18,
542,
15470,
12,
19653,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
File file = new File(scriptFileName); | File file = new File(getScriptFileName()); | public Reader getScriptSource() { if (hasInlineScript()) { return new StringReader(inlineScript()); } else if (isSourceFromStdin()) { return new InputStreamReader(System.in); } else { File file = new File(scriptFileName); try { return new BufferedReader(new FileReader(file)); } catch (IOException e) { System.err.println("Error opening script file: " + e.getMessage()); System.exit(1); } } assert false; return null; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/buggy/src/org/jruby/util/CommandlineParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5393,
22611,
1830,
1435,
288,
3639,
309,
261,
5332,
10870,
3651,
10756,
288,
5411,
327,
394,
26227,
12,
10047,
3651,
10663,
3639,
289,
469,
309,
261,
291,
1830,
1265,
10436,
267,
10756,
288,
5411,
327,
394,
15322,
12,
3163,
18,
267,
1769,
3639,
289,
469,
288,
5411,
1387,
585,
273,
394,
1387,
12,
588,
3651,
4771,
10663,
5411,
775,
288,
7734,
327,
394,
10633,
12,
2704,
23010,
12,
768,
10019,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
668,
10890,
2728,
585,
30,
315,
397,
425,
18,
24906,
10663,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
3639,
289,
3639,
1815,
629,
31,
3639,
327,
446,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5393,
22611,
1830,
1435,
288,
3639,
309,
261,
5332,
10870,
3651,
10756,
288,
5411,
327,
394,
26227,
12,
10047,
3651,
10663,
3639,
289,
469,
309,
261,
291,
1830,
1265,
10436,
267,
10756,
288,
5411,
327,
394,
15322,
12,
3163,
18,
267,
1769,
3639,
289,
469,
288,
5411,
1387,
585,
273,
394,
1387,
12,
588,
3651,
4771,
10663,
5411,
775,
288,
7734,
327,
394,
10633,
12,
2704,
23010,
12,
768,
10019,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
668,
10890,
2728,
585,
30,
315,
397,
425,
18,
24906,
10663,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
3639,
289,
3639,
1815,
629,
31,
3639,
327,
446,
31,
565,
289,
2
] |
return this; } | return this; } | public RubyModule remove_method(RubyObject name) { removeMethod(name.toId()); return this; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
3120,
1206,
67,
2039,
12,
54,
10340,
921,
508,
13,
288,
202,
202,
4479,
1305,
12,
529,
18,
869,
548,
10663,
202,
202,
2463,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
3120,
1206,
67,
2039,
12,
54,
10340,
921,
508,
13,
288,
202,
202,
4479,
1305,
12,
529,
18,
869,
548,
10663,
202,
202,
2463,
333,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (sb.toString()); } | for (int i=0; i<value.length(); i++){ char c = value.charAt(i); if (c=='"'){ sb.append("\\\""); } else if (c=='\n'){ sb.append("\\n"); } else if (c=='\r'){ sb.append("\\r"); } else { sb.append(c); } } sb.append('"'); return (sb.toString()); } | private static String escapeAndQuote(String value){ StringBuffer sb = new StringBuffer(value.length()+10); sb.append('"'); for (int i=0; i<value.length(); i++){ char c = value.charAt(i); if (c=='"'){ sb.append("\\\""); } else if (c=='\n'){ sb.append("\\n"); } else if (c=='\r'){ sb.append("\\r"); } else { sb.append(c); } } sb.append('"'); return (sb.toString()); } | 14437 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14437/0eb4181c61c62e0824a29a6577f8b7816856b35a/CSVPrinter.java/buggy/CSVPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
4114,
1876,
10257,
12,
780,
460,
15329,
3639,
6674,
2393,
273,
394,
6674,
12,
1132,
18,
2469,
1435,
15,
2163,
1769,
3639,
2393,
18,
6923,
2668,
5187,
1769,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1132,
18,
2469,
5621,
277,
27245,
95,
5411,
1149,
276,
273,
460,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
71,
631,
4970,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
8530,
1769,
5411,
289,
469,
309,
261,
71,
631,
8314,
82,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
82,
8863,
5411,
289,
469,
309,
261,
71,
631,
8314,
86,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
86,
8863,
5411,
289,
469,
288,
2398,
202,
18366,
18,
6923,
12,
71,
1769,
5411,
289,
3639,
289,
202,
202,
18366,
18,
6923,
2668,
5187,
1769,
3639,
327,
261,
18366,
18,
10492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
760,
514,
4114,
1876,
10257,
12,
780,
460,
15329,
3639,
6674,
2393,
273,
394,
6674,
12,
1132,
18,
2469,
1435,
15,
2163,
1769,
3639,
2393,
18,
6923,
2668,
5187,
1769,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1132,
18,
2469,
5621,
277,
27245,
95,
5411,
1149,
276,
273,
460,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
71,
631,
4970,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
8530,
1769,
5411,
289,
469,
309,
261,
71,
631,
8314,
82,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
82,
8863,
5411,
289,
469,
309,
261,
71,
631,
8314,
86,
6134,
95,
7734,
2393,
18,
6923,
2932,
1695,
86,
8863,
5411,
289,
469,
288,
2398,
2
] |
setAttributes(atts); | length = 0; data = null; | public AttributesImpl (Attributes atts) { setAttributes(atts); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7767afef56adc125469337a048d68e1d52b4eeff/AttributesImpl.java/buggy/src/org/xml/sax/helpers/AttributesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9055,
2828,
261,
2498,
15687,
13,
565,
288,
202,
2469,
273,
374,
31,
501,
273,
446,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9055,
2828,
261,
2498,
15687,
13,
565,
288,
202,
2469,
273,
374,
31,
501,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (((String)fragment).matches("\\-?[0-9]*\\.?[0-9]*([0-9]+[e|E]\\-?([0-9]+\\.)?[0-9]*)?")) return null; | if (((String)fragment).matches("\\-?[0-9]*\\.?[0-9]*([0-9]+[e|E]\\-?([0-9]+\\.)?[0-9]*)?")) { return null; } | public String isPartiallyValid(Object fragment) { if (((String)fragment).matches("\\-?[0-9]*\\.?[0-9]*([0-9]+[e|E]\\-?([0-9]+\\.)?[0-9]*)?")) //$NON-NLS-1$ return null; return getHint(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9d125503204eb791fd5d7ba10d10960ac0bbffba/String2BigDecimalValidator.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/provisional/databinding/validators/String2BigDecimalValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
353,
1988,
6261,
1556,
12,
921,
5481,
13,
288,
202,
202,
430,
261,
12443,
780,
13,
11956,
2934,
8436,
2932,
1695,
17,
18428,
20,
17,
29,
5772,
19978,
18428,
20,
17,
29,
5772,
3816,
20,
17,
29,
3737,
63,
73,
96,
41,
65,
1695,
17,
35,
3816,
20,
17,
29,
3737,
19978,
9945,
63,
20,
17,
29,
15471,
7225,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
446,
31,
3639,
327,
336,
7002,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
1988,
6261,
1556,
12,
921,
5481,
13,
288,
202,
202,
430,
261,
12443,
780,
13,
11956,
2934,
8436,
2932,
1695,
17,
18428,
20,
17,
29,
5772,
19978,
18428,
20,
17,
29,
5772,
3816,
20,
17,
29,
3737,
63,
73,
96,
41,
65,
1695,
17,
35,
3816,
20,
17,
29,
3737,
19978,
9945,
63,
20,
17,
29,
15471,
7225,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
446,
31,
3639,
327,
336,
7002,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Context cx = Context.enter(); try { Object fun = ScriptableObject.getProperty(object,methodId); if (fun == Scriptable.NOT_FOUND) { return Undefined.instance; | if (f == null) { return Undefined.instance; } scope = ScriptableObject.getTopLevelScope(scope); Context cx = Context.getCurrentContext(); if (cx != null) { return doCall(cx, scope, thisObj, f, args, argsToWrap); } else { cx = Context.enter(); try { return doCall(cx, scope, thisObj, f, args, argsToWrap); } finally { Context.exit(); | public static Object callMethod(Scriptable object, Object thisObj, String methodId, Object[] args) { Context cx = Context.enter(); try { Object fun = ScriptableObject.getProperty(object,methodId); if (fun == Scriptable.NOT_FOUND) { // This method used to swallow the exception from calling // an undefined method. People have come to depend on this // somewhat dubious behavior. It allows people to avoid // implementing listener methods that they don't care about, // for instance. return Undefined.instance; } return ScriptRuntime.call(cx, fun, thisObj, args, object); } catch (JavaScriptException ex) { throw ScriptRuntime.throwAsUncheckedException(ex); } finally { Context.exit(); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/a80d67208db8029f3323f99ef005d09358bde48f/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
1305,
12,
3651,
429,
733,
16,
1033,
15261,
16,
4766,
565,
514,
707,
548,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1033,
9831,
273,
22780,
921,
18,
588,
1396,
12,
1612,
16,
2039,
548,
1769,
5411,
309,
261,
12125,
422,
22780,
18,
4400,
67,
9294,
13,
288,
7734,
368,
1220,
707,
1399,
358,
1352,
5965,
326,
1520,
628,
4440,
7734,
368,
392,
3109,
707,
18,
19622,
11763,
1240,
12404,
358,
2447,
603,
333,
7734,
368,
18016,
11304,
302,
373,
22774,
6885,
18,
2597,
5360,
16951,
358,
4543,
7734,
368,
19981,
2991,
2590,
716,
2898,
2727,
1404,
7671,
2973,
16,
7734,
368,
364,
791,
18,
7734,
327,
22243,
18,
1336,
31,
5411,
289,
5411,
327,
7739,
5576,
18,
1991,
12,
71,
92,
16,
9831,
16,
15261,
16,
833,
16,
733,
1769,
3639,
289,
1044,
261,
16634,
503,
431,
13,
288,
5411,
604,
7739,
5576,
18,
12849,
1463,
984,
4532,
503,
12,
338,
1769,
3639,
289,
3095,
288,
5411,
1772,
18,
8593,
5621,
3639,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
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,
1033,
745,
1305,
12,
3651,
429,
733,
16,
1033,
15261,
16,
4766,
565,
514,
707,
548,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1033,
9831,
273,
22780,
921,
18,
588,
1396,
12,
1612,
16,
2039,
548,
1769,
5411,
309,
261,
12125,
422,
22780,
18,
4400,
67,
9294,
13,
288,
7734,
368,
1220,
707,
1399,
358,
1352,
5965,
326,
1520,
628,
4440,
7734,
368,
392,
3109,
707,
18,
19622,
11763,
1240,
12404,
358,
2447,
603,
333,
7734,
368,
18016,
11304,
302,
373,
22774,
6885,
18,
2597,
5360,
16951,
358,
4543,
7734,
368,
19981,
2991,
2590,
716,
2898,
2727,
1404,
7671,
2973,
16,
7734,
368,
364,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.