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
|
|---|---|---|---|---|---|---|
Shell shell = e.widget.getDisplay().getActiveShell();
|
Shell shell = composite.getShell();
|
private void createFileAssociations(Composite composite) { { Label label = new Label(composite, SWT.NONE); label.setFont(composite.getFont()); label .setText(WorkbenchMessages.ContentTypes_fileAssociationsLabel); GridData data = new GridData(); data.horizontalSpan = 2; label.setLayoutData(data); } { fileAssociationViewer = new ListViewer(composite); fileAssociationViewer.setComparator(new FileSpecComparator()); fileAssociationViewer.getControl().setFont(composite.getFont()); fileAssociationViewer .setContentProvider(new FileSpecContentProvider()); fileAssociationViewer.setLabelProvider(new FileSpecLabelProvider()); GridData data = new GridData(GridData.FILL_BOTH); data.horizontalSpan = 1; fileAssociationViewer.getControl().setLayoutData(data); fileAssociationViewer .addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) event .getSelection(); if (selection.isEmpty()) { removeButton.setEnabled(false); return; } boolean enabled = true; List elements = selection.toList(); for (Iterator i = elements.iterator(); i.hasNext();) { Spec spec = (Spec) i.next(); if (spec.isPredefined) { enabled = false; } } removeButton.setEnabled(enabled); } }); } { Composite buttonArea = new Composite(composite, SWT.NONE); GridLayout layout = new GridLayout(1, false); layout.marginHeight = layout.marginWidth = 0; buttonArea.setLayout(layout); GridData data = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); buttonArea.setLayoutData(data); addButton = new Button(buttonArea, SWT.PUSH); addButton.setFont(composite.getFont()); setButtonLayoutData(addButton); addButton .setText(WorkbenchMessages.ContentTypes_fileAssociationsAddLabel); addButton.setEnabled(false); addButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { Shell shell = e.widget.getDisplay().getActiveShell(); IContentType selectedContentType = getSelectedContentType(); FileExtensionDialog dialog = new FileExtensionDialog(shell); if (dialog.open() == Window.OK) { String name = dialog.getName(); String extension = dialog.getExtension(); try { if (name.equals("*")) { //$NON-NLS-1$ selectedContentType.addFileSpec(extension, IContentType.FILE_EXTENSION_SPEC); } else { selectedContentType.addFileSpec(name + (extension.length() > 0 ? ('.' + extension) : ""), //$NON-NLS-1$ IContentType.FILE_NAME_SPEC); } } catch (CoreException ex) { ErrorDialog.openError(shell, null, null, ex.getStatus()); WorkbenchPlugin.log(ex.getStatus()); } finally { fileAssociationViewer.setInput(selectedContentType); } } } }); removeButton = new Button(buttonArea, SWT.PUSH); removeButton.setFont(composite.getFont()); setButtonLayoutData(removeButton); removeButton.setEnabled(false); removeButton .setText(WorkbenchMessages.ContentTypes_fileAssociationsRemoveLabel); removeButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent event) { IContentType contentType = getSelectedContentType(); Spec[] specs = getSelectedSpecs(); MultiStatus result = new MultiStatus( PlatformUI.PLUGIN_ID, 0, new IStatus[0], WorkbenchMessages.ContentTypes_errorDialogMessage, null); for (int i = 0; i < specs.length; i++) { Spec spec = specs[i]; try { if (spec.name != null) { contentType.removeFileSpec(spec.name, IContentType.FILE_NAME_SPEC); } else if (spec.ext != null) { contentType.removeFileSpec(spec.ext, IContentType.FILE_EXTENSION_SPEC); } } catch (CoreException e) { result.add(e.getStatus()); } } if (!result.isOK()) { ErrorDialog.openError(event.widget.getDisplay() .getActiveShell(), null, null, result); } fileAssociationViewer.setInput(contentType); } }); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/aee6d98d390d6db6df6a92653b442ae8ed513537/ContentTypesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ContentTypesPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21266,
15143,
12,
9400,
9635,
13,
288,
3639,
288,
5411,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
5411,
1433,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
5411,
1433,
10792,
263,
542,
1528,
12,
2421,
22144,
5058,
18,
27446,
67,
768,
15143,
2224,
1769,
5411,
7145,
751,
501,
273,
394,
7145,
751,
5621,
5411,
501,
18,
18396,
6952,
273,
576,
31,
5411,
1433,
18,
542,
3744,
751,
12,
892,
1769,
3639,
289,
3639,
288,
5411,
585,
7174,
18415,
273,
394,
987,
18415,
12,
27676,
1769,
5411,
585,
7174,
18415,
18,
542,
5559,
12,
2704,
1387,
1990,
5559,
10663,
5411,
585,
7174,
18415,
18,
588,
3367,
7675,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
5411,
585,
7174,
18415,
10792,
263,
542,
1350,
2249,
12,
2704,
1387,
1990,
1350,
2249,
10663,
5411,
585,
7174,
18415,
18,
542,
2224,
2249,
12,
2704,
1387,
1990,
2224,
2249,
10663,
5411,
7145,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
5411,
501,
18,
18396,
6952,
273,
404,
31,
5411,
585,
7174,
18415,
18,
588,
3367,
7675,
542,
3744,
751,
12,
892,
1769,
5411,
585,
7174,
18415,
10792,
263,
1289,
6233,
5033,
2223,
12,
2704,
467,
6233,
5033,
2223,
1435,
288,
13491,
1071,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
18701,
467,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
871,
4766,
565,
263,
588,
6233,
5621,
18701,
309,
261,
10705,
18,
291,
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,
21266,
15143,
12,
9400,
9635,
13,
288,
3639,
288,
5411,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
5411,
1433,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
5411,
1433,
10792,
263,
542,
1528,
12,
2421,
22144,
5058,
18,
27446,
67,
768,
15143,
2224,
1769,
5411,
7145,
751,
501,
273,
394,
7145,
751,
5621,
5411,
501,
18,
18396,
6952,
273,
576,
31,
5411,
1433,
18,
542,
3744,
751,
12,
892,
1769,
3639,
289,
3639,
288,
5411,
585,
7174,
18415,
273,
394,
987,
18415,
12,
27676,
1769,
5411,
585,
7174,
18415,
18,
542,
5559,
12,
2704,
1387,
1990,
5559,
10663,
5411,
585,
7174,
18415,
18,
588,
3367,
7675,
542,
5711,
12,
2
] |
public List constraints() throws RecognitionException { List constraints = null; constraints = new ArrayList(); try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:956:4: ( ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt31=2; int LA31_0 = input.LA(1); if ( (LA31_0==ID) ) { int LA31_1 = input.LA(2); if ( (LA31_1==39) ) { int LA31_2 = input.LA(3); if ( (LA31_2==ID) ) { int LA31_4 = input.LA(4); if ( (LA31_4==67) ) { alt31=2; } else if ( (LA31_4==EOF||LA31_4==RIGHT_PAREN||LA31_4==36||(LA31_4>=57 && LA31_4<=65)) ) { alt31=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 2, input); throw nvae; } } else if ( (LA31_1==EOF||LA31_1==RIGHT_PAREN||LA31_1==36||(LA31_1>=57 && LA31_1<=65)) ) { alt31=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("956:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:956:5: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1963); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:956:29: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1966); predicate(constraints); _fsp--; if (failed) return constraints; } break; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:957:3: ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* loop33: do { int alt33=2; int LA33_0 = input.LA(1); if ( (LA33_0==36) ) { alt33=1; } switch (alt33) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:957:5: ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) { match(input,36,FOLLOW_36_in_constraints1974); if (failed) return constraints; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:957:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt32=2; int LA32_0 = input.LA(1); if ( (LA32_0==ID) ) { int LA32_1 = input.LA(2); if ( (LA32_1==39) ) { int LA32_2 = input.LA(3); if ( (LA32_2==ID) ) { int LA32_4 = input.LA(4); if ( (LA32_4==67) ) { alt32=2; } else if ( (LA32_4==EOF||LA32_4==RIGHT_PAREN||LA32_4==36||(LA32_4>=57 && LA32_4<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("957:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("957:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input); throw nvae; } } else if ( (LA32_1==EOF||LA32_1==RIGHT_PAREN||LA32_1==36||(LA32_1>=57 && LA32_1<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("957:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("957:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:957:10: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1977); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:957:34: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1980); predicate(constraints); _fsp--; if (failed) return constraints; } break; } } break; default : break loop33; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
4313,
30,
24,
30,
261,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
4313,
30,
24,
30,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
8618,
5411,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
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,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
4313,
30,
24,
30,
261,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
261,
261,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
11967,
65,
262,
13216,
3316,
261,
261,
4954,
63,
11967,
65,
13216,
4954,
63,
11967,
65,
571,
5641,
63,
2
] |
||
xsp = jj_scanpos; if (jj_3R_283()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(IDENTIFIER)) return true;
|
while (true) { xsp = jj_scanpos; if (jj_3R_286()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_3R_59()) return true;
|
final private boolean jj_3R_269() { Token xsp; xsp = jj_scanpos; if (jj_3R_283()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(IDENTIFIER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_284()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_285()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_286()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_287()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5558,
29,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
23,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
5193,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
25,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5558,
29,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
23,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
2
] |
if (foundRule) { tuple[2] = rs.getBytes(2); tuple[6] = rs.getBytes(1);
|
if(foundRule) tuples.addElement(tuple);
|
private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT c.relname,c2.relname," + "t.tgconstrname,ic.relname," + "t.tgdeferrable,t.tginitdeferred," + "t.tgnargs,t.tgargs,p.proname " + "FROM pg_trigger t,pg_class c,pg_class c2," + "pg_class ic,pg_proc p, pg_index i " + "WHERE t.tgrelid=c.oid AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p.oid AND tgisconstraint " + ((primaryTable != null) ? "AND c2.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid AND i.indisprimary " + "ORDER BY c.relname,c2.relname" ); Vector tuples = new Vector(); short seq = 0; if (rs.next()) { boolean hasMore; do { byte tuple[][] = new byte[14][0]; for (int k = 0;k < 14;k++) tuple[k] = null; String fKeyName = rs.getString(3); boolean foundRule = false; do { String proname = rs.getString(9); if (proname != null && proname.startsWith("RI_FKey_")) { int col = -1; if (proname.endsWith("_upd")) col = 9; // UPDATE_RULE else if (proname.endsWith("_del")) col = 10; // DELETE_RULE if (col > -1) { String rule = proname.substring(8, proname.length() - 4); int action = importedKeyNoAction; if ("cascade".equals(rule)) action = importedKeyCascade; else if ("setnull".equals(rule)) action = importedKeySetNull; else if ("setdefault".equals(rule)) action = importedKeySetDefault; tuple[col] = Integer.toString(action).getBytes(); foundRule = true; } } } while ((hasMore = rs.next()) && fKeyName.equals(rs.getString(3))); if (foundRule) { tuple[2] = rs.getBytes(2); //PKTABLE_NAME tuple[6] = rs.getBytes(1); //FKTABLE_NAME // Parse the tgargs data StringBuffer fkeyColumns = new StringBuffer(); StringBuffer pkeyColumns = new StringBuffer(); int numColumns = (rs.getInt(7) >> 1) - 2; String s = rs.getString(8); int pos = s.lastIndexOf("\\000"); for (int c = 0;c < numColumns;c++) { if (pos > -1) { int pos2 = s.lastIndexOf("\\000", pos - 1); if (pos2 > -1) { if (fkeyColumns.length() > 0) fkeyColumns.insert(0, ','); fkeyColumns.insert(0, s.substring(pos2 + 4, pos)); //FKCOLUMN_NAME pos = s.lastIndexOf("\\000", pos2 - 1); if (pos > -1) { if (pkeyColumns.length() > 0) pkeyColumns.insert(0, ','); pkeyColumns.insert(0, s.substring(pos + 4, pos2)); //PKCOLUMN_NAME } } } } tuple[7] = fkeyColumns.toString().getBytes(); //FKCOLUMN_NAME tuple[3] = pkeyColumns.toString().getBytes(); //PKCOLUMN_NAME tuple[8] = Integer.toString(seq++).getBytes(); //KEY_SEQ tuple[11] = fKeyName.getBytes(); //FK_NAME tuple[12] = rs.getBytes(4); //PK_NAME // DEFERRABILITY int deferrability = importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(5); boolean initiallyDeferred = rs.getBoolean(6); if (deferrable) { if (initiallyDeferred) deferrability = importedKeyInitiallyDeferred; else deferrability = importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } } while (hasMore); } return new ResultSet(connection, f, tuples, "OK", 1); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/83b5ae65a0b5a2dc34acac84116a456777698bf0/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
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,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
2
] |
form.setPrefix("Bug "); form.setPostfix1(" posted"); form.setPostfix2(" Submitted");
|
form.setPrefix(BugPost.FORM_PREFIX_BUG_218); form.setPrefix(BugPost.FORM_PREFIX_BUG_220); form.setPostfix(BugPost.FORM_POSTFIX_216); form.setPostfix2(BugPost.FORM_POSTFIX_218);
|
protected void execute(final IProgressMonitor monitor) throws CoreException { PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){ public void run() { BugPost form = new BugPost(); form.setPrefix("Bug "); form.setPostfix1(" posted"); form.setPostfix2(" Submitted"); try { setURL(form, "post_bug.cgi"); // go through all of the attributes and add them to the bug post Iterator<Attribute> itr = model.getAttributes().iterator(); while (itr.hasNext()) { Attribute a = itr.next(); if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && !a.isHidden()) { String key = a.getName(); String value = null; // get the values from the attribute if (key.equalsIgnoreCase("OS")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Version")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Severity")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Platform")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Component")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Priority")) { value = a.getValue(); } else if (key.equalsIgnoreCase("URL")) { value = a.getValue(); } else if (key.equalsIgnoreCase("Assign To") || key.equalsIgnoreCase("Assigned To")) { value = a.getValue(); } // add the attribute to the bug post if (value == null) value = ""; form.add(a.getParameterName(), value); } else if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && a.isHidden()) { // we have a hidden attribute, add it to the posting form.add(a.getParameterName(), a.getValue()); } } // set the summary, and description // add the summary to the bug post form.add("short_desc", model.getSummary()); // dummy target milestone form.add("target_milestone", "---"); // format the description of the bug so that it is roughly in 80 // character lines formatDescription(); if (model.getDescription().length() != 0) { // add the new comment to the bug post if there is some text in // it form.add("comment", model.getDescription()); } // update the bug on the server try { id = form.post(); if (id != null) { sentSuccessfully = true; } } catch (BugzillaException e) { MessageDialog .openError( null, "I/O Error", "Bugzilla could not post your bug."); BugzillaPlugin.log(e); } catch (PossibleBugzillaFailureException e) { WebBrowserDialog .openAcceptAgreement( null, "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); } catch (LoginException e) { // if we had an error with logging in, display an error MessageDialog .openError( null, "Posting Error", "Bugzilla could not post your bug since your login name or password is incorrect." + "\nPlease check your settings in the bugzilla preferences. "); sentSuccessfully = false; } } catch (MalformedURLException e) { MessageDialog .openError( null, "Unsupported Protocol", "The server that was specified for Bugzilla is not supported by your JVM." + "\nPlease make sure that you are using a JDK that supports SSL."); BugzillaPlugin.log(e); sentSuccessfully = false; } } }); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6fb68947197db5962c91e7e86c96babb01a0209c/AbstractBugWizard.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
95,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
19865,
3349,
646,
273,
394,
16907,
3349,
5621,
25083,
202,
687,
18,
542,
2244,
2932,
19865,
315,
1769,
25083,
202,
687,
18,
542,
24505,
21,
2932,
23082,
8863,
25083,
202,
687,
18,
542,
24505,
22,
2932,
2592,
7948,
8863,
25083,
202,
698,
288,
6862,
1082,
202,
542,
1785,
12,
687,
16,
315,
2767,
67,
925,
18,
19062,
8863,
6862,
1082,
202,
759,
1960,
3059,
777,
434,
326,
1677,
471,
527,
2182,
358,
326,
7934,
1603,
6862,
1082,
202,
3198,
32,
1499,
34,
11176,
273,
938,
18,
588,
2498,
7675,
9838,
5621,
6862,
1082,
202,
17523,
261,
305,
86,
18,
5332,
2134,
10756,
288,
6862,
9506,
202,
1499,
279,
273,
11176,
18,
4285,
5621,
6862,
9506,
202,
430,
261,
69,
480,
446,
597,
279,
18,
588,
24586,
1435,
480,
446,
6862,
25083,
202,
10,
10,
279,
18,
588,
24586,
7675,
9877,
774,
2932,
7923,
480,
374,
6862,
25083,
202,
10,
10,
401,
69,
18,
291,
9345,
10756,
288,
6862,
6862,
202,
780,
498,
273,
279,
18,
17994,
5621,
6862,
6862,
202,
780,
460,
273,
446,
31,
6862,
6862,
202,
759,
336,
326,
924,
628,
326,
1566,
6862,
6862,
202,
430,
261,
856,
18,
14963,
5556,
2932,
4618,
6,
3719,
288,
6862,
25083,
202,
1132,
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,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
95,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
19865,
3349,
646,
273,
394,
16907,
3349,
5621,
25083,
202,
687,
18,
542,
2244,
2932,
19865,
315,
1769,
25083,
202,
687,
18,
542,
24505,
21,
2932,
23082,
8863,
25083,
202,
687,
18,
542,
24505,
22,
2932,
2592,
7948,
8863,
25083,
202,
698,
288,
6862,
1082,
202,
542,
1785,
12,
687,
16,
315,
2767,
67,
925,
18,
19062,
8863,
6862,
1082,
202,
759,
1960,
3059,
777,
434,
326,
1677,
471,
527,
2182,
358,
326,
7934,
1603,
6862,
2
] |
wChefInput.setSelection(in.getGetFileFromChef());
|
wAccFilenames.setSelection(in.isAcceptingFilenames());
|
public void getData(TextFileInputMeta meta) { final TextFileInputMeta in = meta; if (in.getFileName() !=null) { wFilenameList.removeAll(); for (int i=0;i<in.getFileName().length;i++) { wFilenameList.add(new String[] { in.getFileName()[i], in.getFileMask()[i], in.getFileRequired()[i] } ); } wFilenameList.removeEmptyRows(); wFilenameList.setRowNums(); wFilenameList.optWidth(true); } if (in.getFileType() !=null) wFiletype.setText(in.getFileType()); if (in.getSeparator()!=null) wSeparator.setText(in.getSeparator()); if (in.getEnclosure()!=null) wEnclosure.setText(in.getEnclosure()); if (in.getEscapeCharacter()!=null) wEscape.setText(in.getEscapeCharacter()); wChefInput.setSelection(in.getGetFileFromChef()); wHeader.setSelection(in.hasHeader()); wNrHeader.setText( ""+in.getNrHeaderLines() ); wFooter.setSelection(in.hasFooter()); wNrFooter.setText( ""+in.getNrFooterLines() ); wWraps.setSelection(in.isLineWrapped()); wNrWraps.setText( ""+in.getNrWraps() ); wLayoutPaged.setSelection(in.isLayoutPaged()); wNrLinesPerPage.setText( ""+in.getNrLinesPerPage() ); wNrLinesDocHeader.setText( ""+in.getNrLinesDocHeader() ); wZipped.setSelection(in.isZipped()); wNoempty.setSelection(in.noEmptyLines()); wInclFilename.setSelection(in.includeFilename()); wInclRownum.setSelection(in.includeRowNumber()); wDateLenient.setSelection(in.isDateFormatLenient()); if (in.getFilenameField()!=null) wInclFilenameField.setText(in.getFilenameField()); if (in.getRowNumberField()!=null) wInclRownumField.setText(in.getRowNumberField()); if (in.getFileFormat() !=null) wFormat.setText(in.getFileFormat()); wLimit.setText(""+in.getRowLimit()); log.logDebug(toString(), "getting fields info..."); for (int i=0;i<in.getInputFields().length;i++) { TextFileInputField field = in.getInputFields()[i]; TableItem item = wFields.table.getItem(i); item.setText(1, field.getName()); String type = field.getTypeDesc(); String format = field.getFormat(); String position = ""+field.getPosition(); String length = ""+field.getLength(); String prec = ""+field.getPrecision(); String curr = field.getCurrencySymbol(); String group = field.getGroupSymbol(); String decim = field.getDecimalSymbol(); String def = field.getNullString(); String ifNull = field.getIfNullValue(); String trim = field.getTrimTypeDesc(); String rep = field.isRepeated()?Messages.getString("System.Combo.Yes"):Messages.getString("System.Button.No"); if (type !=null) item.setText( 2, type ); if (format !=null) item.setText( 3, format ); if (position!=null && !"-1".equals(position)) item.setText( 4, position); if (length !=null && !"-1".equals(length )) item.setText( 5, length ); if (prec !=null && !"-1".equals(prec )) item.setText( 6, prec ); if (curr !=null) item.setText( 7, curr ); if (decim !=null) item.setText( 8, decim ); if (group !=null) item.setText( 9, group ); if (def !=null) item.setText(10, def ); if (ifNull !=null) item.setText(11, ifNull ); if (trim !=null) item.setText(12, trim ); if (rep !=null) item.setText(13, rep ); } if ( in.getEncoding()!=null ) wEncoding.setText( in.getEncoding() ); // Error handling fields... wErrorIgnored.setSelection( in.isErrorIgnored() ); wSkipErrorLines.setSelection( in.isErrorLineSkipped() ); if (in.getErrorCountField()!=null) wErrorCount.setText( in.getErrorCountField() ); if (in.getErrorFieldsField()!=null) wErrorFields.setText( in.getErrorFieldsField() ); if (in.getErrorTextField()!=null) wErrorText.setText( in.getErrorTextField() ); if (in.getWarningFilesDestinationDirectory()!=null) wWarnDestDir.setText(in.getWarningFilesDestinationDirectory()); if (in.getWarningFilesExtension()!=null) wWarnExt.setText(in.getWarningFilesExtension()); if (in.getErrorFilesDestinationDirectory()!=null) wErrorDestDir.setText(in.getErrorFilesDestinationDirectory()); if (in.getErrorLineFilesExtension()!=null) wErrorExt.setText(in.getErrorLineFilesExtension()); if (in.getLineNumberFilesDestinationDirectory()!=null) wLineNrDestDir.setText(in.getLineNumberFilesDestinationDirectory()); if (in.getLineNumberFilesExtension()!=null) wLineNrExt.setText(in.getLineNumberFilesExtension()); for (int i=0;i<in.getFilter().length;i++) { TableItem item = wFilter.table.getItem(i); TextFileFilter filter = in.getFilter()[i]; if (filter.getFilterString() !=null) item.setText(1, filter.getFilterString()); if (filter.getFilterPosition()>=0 ) item.setText(2, ""+filter.getFilterPosition()); item.setText(3, filter.isFilterLastLine()?Messages.getString("System.Button.Yes"):Messages.getString("System.Button.No")); } // Date locale wDateLocale.setText(in.getDateFormatLocale().toString()); wFields.removeEmptyRows(); wFields.setRowNums(); wFields.optWidth(true); wFilter.removeEmptyRows(); wFilter.setRowNums(); wFilter.optWidth(true); setFlags(); wStepname.selectAll(); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dec476e31491451da3a8cd348e87c60e7e36c715/TextFileInputDialog.java/buggy/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4303,
12,
1528,
812,
1210,
2781,
2191,
13,
202,
95,
3639,
727,
3867,
812,
1210,
2781,
316,
273,
2191,
31,
540,
202,
202,
430,
261,
267,
18,
588,
4771,
1435,
480,
2011,
13,
3196,
202,
95,
1082,
202,
91,
5359,
682,
18,
4479,
1595,
5621,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
267,
18,
588,
4771,
7675,
2469,
31,
77,
27245,
1875,
202,
95,
9506,
202,
91,
5359,
682,
18,
1289,
12,
2704,
514,
8526,
288,
316,
18,
588,
4771,
1435,
63,
77,
6487,
316,
18,
29925,
5796,
1435,
63,
77,
6487,
316,
18,
29925,
3705,
1435,
63,
77,
65,
289,
11272,
1082,
202,
97,
1082,
202,
91,
5359,
682,
18,
4479,
1921,
4300,
5621,
1082,
202,
91,
5359,
682,
18,
542,
1999,
25532,
5621,
1082,
202,
91,
5359,
682,
18,
3838,
2384,
12,
3767,
1769,
202,
202,
97,
202,
202,
430,
261,
267,
18,
588,
28941,
1435,
480,
2011,
13,
341,
25579,
5872,
18,
542,
1528,
12,
267,
18,
588,
28941,
10663,
202,
202,
430,
261,
267,
18,
588,
6581,
1435,
5,
33,
2011,
13,
341,
6581,
18,
542,
1528,
12,
267,
18,
588,
6581,
10663,
202,
202,
430,
261,
267,
18,
588,
4280,
5919,
1435,
5,
33,
2011,
13,
341,
4280,
5919,
18,
542,
1528,
12,
267,
18,
588,
4280,
5919,
10663,
3639,
309,
261,
267,
18,
588,
8448,
7069,
1435,
5,
33,
2011,
13,
341,
8448,
18,
542,
1528,
12,
267,
18,
588,
8448,
7069,
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,
4303,
12,
1528,
812,
1210,
2781,
2191,
13,
202,
95,
3639,
727,
3867,
812,
1210,
2781,
316,
273,
2191,
31,
540,
202,
202,
430,
261,
267,
18,
588,
4771,
1435,
480,
2011,
13,
3196,
202,
95,
1082,
202,
91,
5359,
682,
18,
4479,
1595,
5621,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
267,
18,
588,
4771,
7675,
2469,
31,
77,
27245,
1875,
202,
95,
9506,
202,
91,
5359,
682,
18,
1289,
12,
2704,
514,
8526,
288,
316,
18,
588,
4771,
1435,
63,
77,
6487,
316,
18,
29925,
5796,
1435,
63,
77,
6487,
316,
18,
29925,
3705,
1435,
63,
77,
65,
289,
11272,
1082,
202,
97,
1082,
202,
91,
5359,
682,
18,
2
] |
private final int jjStartNfaWithStates_11(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { return pos + 1; } return jjMoveNfa_11(state, pos + 1); }
|
private final int jjStartNfaWithStates_11(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_11(state, pos + 1); }
|
private final int jjStartNfaWithStates_11(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { return pos + 1; } return jjMoveNfa_11(state, pos + 1); }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/bad9201cffeb6c6da295101be65bfa4924caa39e/JspParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
509,
10684,
1685,
50,
507,
1190,
7629,
67,
2499,
12,
474,
949,
16,
509,
3846,
16,
509,
919,
13,
288,
3639,
10684,
11073,
5677,
273,
3846,
31,
3639,
10684,
11073,
1616,
273,
949,
31,
3639,
775,
288,
5411,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
3639,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
425,
13,
288,
5411,
327,
949,
397,
404,
31,
3639,
289,
3639,
327,
10684,
7607,
50,
507,
67,
2499,
12,
2019,
16,
949,
397,
404,
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,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
0,
0,
0,
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,
727,
509,
10684,
1685,
50,
507,
1190,
7629,
67,
2499,
12,
474,
949,
16,
509,
3846,
16,
509,
919,
13,
288,
3639,
10684,
11073,
5677,
273,
3846,
31,
3639,
10684,
11073,
1616,
273,
949,
31,
3639,
775,
288,
5411,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
3639,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
425,
13,
288,
5411,
327,
949,
397,
404,
31,
3639,
289,
3639,
327,
10684,
7607,
50,
507,
67,
2499,
12,
2019,
16,
949,
397,
404,
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
] |
catch (Exception e) { needLegacy = true; return legacy.openBytes(id, no);
|
catch (ReflectException r) { throw new FormatException(r);
|
public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } if (needLegacy) return legacy.openBytes(id, no); // read image header data try { byte[] imageHead = (byte[]) headerData.get(new Integer(no)); if (imageHead != null) { int pointer = 14; int numBytes = DataTools.bytesToInt(imageHead, pointer, 2, true); pointer += 2 + numBytes; pointer += 2; width = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; height = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 4 + 2; pixelFormat = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 6; // count field is always 0 int validBPP = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; // read image bytes and convert to floats pointer = 0; bitsPerSample = validBPP; if ((width > imageWidth) && (imageWidth > 0)) { width = imageWidth; height = imageHeight; bitsPerSample = bytesPerPixel * 8; } } else { width = imageWidth; height = imageHeight; bitsPerSample = bytesPerPixel * 8; } byte[] px = (byte[]) pixelData.get(new Integer(no)); byte[] tempPx = new byte[px.length]; if (bitsPerSample > 64) { bitsPerSample = 8; } int bpp = bitsPerSample / 8; // chop any extra bytes off of the pixel array if (px.length > (width * height * bpp)) { int check = 0; int chop = 0; while (check != imageWidth && chop < 4000) { check = DataTools.bytesToInt(px, chop, 4, true); chop++; } chop += 23; if (bpp == 2 && (chop % 2 != 0)) chop++; if (check != imageWidth) chop = 0; if (chop > 0) { byte[] tmp = new byte[px.length - chop]; System.arraycopy(px, px.length - tmp.length, tmp, 0, tmp.length); px = tmp; } } if (bpp == 3) { // reverse the channels int off = 0; int length = width * 3; for (int i=0; i<height; i++) { for (int j=0; j<width; j++) { tempPx[off + j*3] = px[off + j*3 + 2]; tempPx[off + j*3 + 1] = px[off + j*3 + 1]; tempPx[off + j*3 + 2] = px[off + j*3]; } off += length; } } else if (bpp != 6) tempPx = px; else { int mul = (int) (0.32 * imageWidth * bpp); for (int i=0; i<imageHeight; i++) { System.arraycopy(px, i*width*bpp, tempPx, (i+1)*width*bpp - mul, mul); System.arraycopy(px, i*width*bpp + mul, tempPx, i*width*bpp, width*bpp - mul); } px = tempPx; tempPx = new byte[px.length]; // reverse the channels int off = 0; int length = width * bpp; for (int i=0; i<height; i++) { for (int j=0; j<width; j++) { tempPx[off + j*6] = px[off + j*6 + 4]; tempPx[off + j*6 + 1] = px[off + j*6 + 5]; tempPx[off + j*6 + 2] = px[off + j*6 + 2]; tempPx[off + j*6 + 3] = px[off + j*6 + 3]; tempPx[off + j*6 + 4] = px[off + j*6]; tempPx[off + j*6 + 5] = px[off + j*6 + 1]; } off += length; } } // reverse row order if ((bitsPerSample / 8) % 3 != 0 && (bitsPerSample != 8)) { px = new byte[tempPx.length]; int off = (height - 1) * width * bpp; int newOff = 0; int length = width * bpp; for (int i=0; i<height; i++) { System.arraycopy(tempPx, off, px, newOff, length); off -= length; newOff += length; } tempPx = px; } return tempPx; } catch (Exception e) { needLegacy = true; return legacy.openBytes(id, no); } }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/05c616aac453ef88a5b085f1c7bb89e0fc08f28b/ZeissZVIReader.java/buggy/loci/formats/in/ZeissZVIReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
309,
261,
14891,
12235,
13,
327,
8866,
18,
3190,
2160,
12,
350,
16,
1158,
1769,
565,
368,
855,
1316,
1446,
501,
565,
775,
288,
1377,
1160,
8526,
1316,
1414,
273,
261,
7229,
63,
5717,
1446,
751,
18,
588,
12,
2704,
2144,
12,
2135,
10019,
1377,
309,
261,
2730,
1414,
480,
446,
13,
288,
3639,
509,
4407,
273,
5045,
31,
3639,
509,
18633,
273,
1910,
10348,
18,
3890,
17864,
12,
2730,
1414,
16,
4407,
16,
576,
16,
638,
1769,
3639,
4407,
1011,
576,
397,
18633,
31,
3639,
4407,
1011,
576,
31,
3639,
1835,
273,
1910,
10348,
18,
3890,
17864,
12,
2730,
1414,
16,
4407,
16,
1059,
16,
638,
1769,
3639,
4407,
1011,
1059,
397,
576,
31,
3639,
2072,
273,
1910,
10348,
18,
3890,
17864,
12,
2730,
1414,
16,
4407,
16,
1059,
16,
638,
1769,
3639,
4407,
1011,
1059,
397,
576,
31,
3639,
4407,
1011,
1059,
397,
576,
31,
3639,
4957,
1630,
273,
1910,
10348,
18,
3890,
17864,
12,
2730,
1414,
16,
4407,
16,
1059,
16,
638,
1769,
3639,
4407,
1011,
1059,
397,
576,
31,
3639,
4407,
1011,
1666,
31,
368,
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,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
309,
261,
14891,
12235,
13,
327,
8866,
18,
3190,
2160,
12,
350,
16,
1158,
1769,
565,
368,
855,
1316,
1446,
501,
565,
775,
288,
1377,
1160,
8526,
1316,
1414,
273,
261,
7229,
63,
5717,
1446,
751,
18,
588,
12,
2704,
2144,
12,
2135,
10019,
1377,
309,
261,
2730,
1414,
480,
446,
2
] |
runQueryCheckResult(
|
assertQueryReturns(
|
public void _testDc4dtp2() { runQueryCheckResult( "WITH MEMBER [Product].[Drink Forecast - Standard] AS" + nl + " '[Product].[All Products].[Drink] * 2'" + nl + "MEMBER [Product].[Drink Forecast - Dynamic] AS " + nl + " '[Product].[All Products].[Drink] * " + nl + " [Time].CURRENTMEMBER.PROPERTIES(\"Dynamic Forecast Multiplier\")'" + nl + "SELECT DESCENDANTS(Time.[1997], [Month], SELF) ON COLUMNS, " + nl + " {[Product].CHILDREN, [Drink Forecast - Standard], [Drink Forecast - Dynamic]} ON ROWS" + nl + "FROM Warehouse", ""); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
389,
3813,
40,
71,
24,
72,
6834,
22,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
18990,
6271,
306,
4133,
8009,
63,
8956,
754,
17605,
4155,
300,
8263,
65,
5355,
6,
397,
7741,
397,
7734,
315,
225,
5271,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
8956,
754,
65,
380,
576,
4970,
397,
7741,
397,
7734,
315,
19630,
306,
4133,
8009,
63,
8956,
754,
17605,
4155,
300,
12208,
65,
5355,
315,
397,
7741,
397,
7734,
315,
225,
5271,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
8956,
754,
65,
380,
315,
397,
7741,
397,
7734,
315,
282,
306,
950,
8009,
15487,
19630,
18,
17421,
23031,
9791,
17605,
4155,
5991,
5742,
2412,
2506,
6,
397,
7741,
397,
7734,
315,
4803,
14326,
4415,
6856,
55,
12,
950,
18,
63,
19818,
27,
6487,
306,
5445,
6487,
29918,
13,
6229,
5597,
19639,
16,
315,
397,
7741,
397,
7734,
315,
225,
288,
63,
4133,
8009,
27043,
24296,
16,
306,
8956,
754,
17605,
4155,
300,
8263,
6487,
306,
8956,
754,
17605,
4155,
300,
12208,
18322,
6229,
6525,
2651,
6,
397,
7741,
397,
7734,
315,
11249,
678,
14630,
3113,
1408,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
389,
3813,
40,
71,
24,
72,
6834,
22,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
18990,
6271,
306,
4133,
8009,
63,
8956,
754,
17605,
4155,
300,
8263,
65,
5355,
6,
397,
7741,
397,
7734,
315,
225,
5271,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
8956,
754,
65,
380,
576,
4970,
397,
7741,
397,
7734,
315,
19630,
306,
4133,
8009,
63,
8956,
754,
17605,
4155,
300,
12208,
65,
5355,
315,
397,
7741,
397,
7734,
315,
225,
5271,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
8956,
754,
65,
380,
315,
397,
7741,
397,
7734,
315,
282,
306,
950,
8009,
15487,
19630,
18,
17421,
23031,
9791,
17605,
4155,
5991,
5742,
2412,
2506,
6,
397,
2
] |
esiProviderCommand.setEnabled(!useDefaultESIProviderCmd());
|
defESIProviderCommandButton.setEnabled(isProviderCommandEnabled()); esiProviderCommand.setEnabled(isProviderCommandEnabled() && !useDefaultESIProviderCmd()); esiProviderParserComboBox.setEnabled(isProviderCommandEnabled());
|
public void widgetSelected(SelectionEvent e) { esiProviderCommand.setEnabled(!useDefaultESIProviderCmd()); getContainer().updateContainer(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e5c605c11d12e06ca6008ccaf7fb505ea2b10fa8/DiscoveryOptionsBlock.java/clean/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/DiscoveryOptionsBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
281,
77,
2249,
2189,
18,
542,
1526,
12,
5,
1202,
1868,
41,
2320,
2249,
5931,
10663,
9506,
202,
588,
2170,
7675,
2725,
2170,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
281,
77,
2249,
2189,
18,
542,
1526,
12,
5,
1202,
1868,
41,
2320,
2249,
5931,
10663,
9506,
202,
588,
2170,
7675,
2725,
2170,
5621,
1082,
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
] |
pw.println(theVariables.get(i).getName() + " is used before def'd");
|
pw.println(theVariables.getVariable(i).getName() + " is used before def'd");
|
public void printLiveOnEntrySet(PrintWriter pw, VariableTable theVariables) { for (int i = 0; i < theVariables.size(); i++) { if (itsUseBeforeDefSet.test(i)) pw.println(theVariables.get(i).getName() + " is used before def'd"); if (itsNotDefSet.test(i)) pw.println(theVariables.get(i).getName() + " is not def'd"); if (itsLiveOnEntrySet.test(i)) pw.println(theVariables.get(i).getName() + " is live on entry"); if (itsLiveOnExitSet.test(i)) pw.println(theVariables.get(i).getName() + " is live on exit"); } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/3eb542db2c80d7521ea272c802d999a32072bfb6/Block.java/clean/org/mozilla/javascript/optimizer/Block.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
12328,
1398,
1622,
694,
12,
5108,
2289,
8772,
16,
7110,
1388,
326,
6158,
13,
565,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
326,
6158,
18,
1467,
5621,
277,
27245,
288,
5411,
309,
261,
1282,
3727,
4649,
3262,
694,
18,
3813,
12,
77,
3719,
7734,
8772,
18,
8222,
12,
5787,
6158,
18,
588,
3092,
12,
77,
2934,
17994,
1435,
397,
315,
353,
1399,
1865,
1652,
14271,
8863,
5411,
309,
261,
1282,
1248,
3262,
694,
18,
3813,
12,
77,
3719,
7734,
8772,
18,
8222,
12,
5787,
6158,
18,
588,
12,
77,
2934,
17994,
1435,
397,
315,
353,
486,
1652,
14271,
8863,
5411,
309,
261,
1282,
12328,
1398,
1622,
694,
18,
3813,
12,
77,
3719,
7734,
8772,
18,
8222,
12,
5787,
6158,
18,
588,
12,
77,
2934,
17994,
1435,
397,
315,
353,
8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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1172,
12328,
1398,
1622,
694,
12,
5108,
2289,
8772,
16,
7110,
1388,
326,
6158,
13,
565,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
326,
6158,
18,
1467,
5621,
277,
27245,
288,
5411,
309,
261,
1282,
3727,
4649,
3262,
694,
18,
3813,
12,
77,
3719,
7734,
8772,
18,
8222,
12,
5787,
6158,
18,
588,
3092,
12,
77,
2934,
17994,
1435,
397,
315,
353,
1399,
1865,
1652,
14271,
8863,
5411,
309,
261,
1282,
1248,
3262,
694,
18,
3813,
12,
77,
3719,
7734,
8772,
18,
8222,
12,
5787,
6158,
18,
588,
12,
77,
2934,
17994,
1435,
397,
315,
353,
486,
1652,
14271,
8863,
5411,
309,
261,
1282,
12328,
1398,
1622,
694,
18,
3813,
12,
77,
2
] |
protected List getProvides(Endpoint endpoint) { List providesList = new ArrayList(); if (endpoint.getRole().equals(MessageExchange.Role.PROVIDER)) { Provides newProvide = new Provides(); newProvide.setEndpointName(endpoint.getEndpoint()); newProvide.setInterfaceName(endpoint.getInterfaceName()); newProvide.setServiceName(endpoint.getService()); providesList.add(newProvide); } return providesList;
|
public List getProvides() { return provides;
|
protected List getProvides(Endpoint endpoint) { List providesList = new ArrayList(); if (endpoint.getRole().equals(MessageExchange.Role.PROVIDER)) { Provides newProvide = new Provides(); newProvide.setEndpointName(endpoint.getEndpoint()); newProvide.setInterfaceName(endpoint.getInterfaceName()); newProvide.setServiceName(endpoint.getService()); providesList.add(newProvide); } return providesList; }
|
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/11f3f8563c0499ced40f578c96f0b7407b311e4f/AbstractXBeanServiceUnitAnalyzer.java/buggy/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
3570,
13427,
12,
3293,
2494,
13,
288,
202,
202,
682,
8121,
682,
273,
394,
2407,
5621,
202,
202,
430,
261,
8003,
18,
588,
2996,
7675,
14963,
12,
1079,
11688,
18,
2996,
18,
26413,
3719,
288,
1082,
202,
17727,
394,
20632,
273,
394,
28805,
5621,
1082,
202,
2704,
20632,
18,
542,
3293,
461,
12,
8003,
18,
588,
3293,
10663,
1082,
202,
2704,
20632,
18,
542,
24730,
12,
8003,
18,
588,
24730,
10663,
1082,
202,
2704,
20632,
18,
542,
16789,
12,
8003,
18,
588,
1179,
10663,
1082,
202,
685,
13427,
682,
18,
1289,
12,
2704,
20632,
1769,
202,
202,
97,
202,
202,
2463,
8121,
682,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
3570,
13427,
12,
3293,
2494,
13,
288,
202,
202,
682,
8121,
682,
273,
394,
2407,
5621,
202,
202,
430,
261,
8003,
18,
588,
2996,
7675,
14963,
12,
1079,
11688,
18,
2996,
18,
26413,
3719,
288,
1082,
202,
17727,
394,
20632,
273,
394,
28805,
5621,
1082,
202,
2704,
20632,
18,
542,
3293,
461,
12,
8003,
18,
588,
3293,
10663,
1082,
202,
2704,
20632,
18,
542,
24730,
12,
8003,
18,
588,
24730,
10663,
1082,
202,
2704,
20632,
18,
542,
16789,
12,
8003,
18,
588,
1179,
10663,
1082,
202,
685,
13427,
682,
18,
1289,
12,
2704,
20632,
1769,
202,
202,
97,
202,
202,
2463,
8121,
682,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
initializeDataSource();
|
if(bds == null) { initializeDataSource(); }
|
protected Connection getDataSourceConnection() throws SQLException { initializeDataSource(); return bds.getConnection(); }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/f4162f4021ff7ab4eb0fc27aa93d473741c5eca5/BaseDataSourceTest.java/clean/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4050,
29130,
1952,
1435,
1216,
6483,
202,
95,
202,
202,
11160,
8597,
5621,
202,
202,
2463,
324,
2377,
18,
588,
1952,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4050,
29130,
1952,
1435,
1216,
6483,
202,
95,
202,
202,
11160,
8597,
5621,
202,
202,
2463,
324,
2377,
18,
588,
1952,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 dragOver(DragSourceDragEvent e) { System.out.println("over"); }
|
public void dragOver(DragSourceDragEvent e) { System.out.println("over"); }
|
public void dragOver(DragSourceDragEvent e) { System.out.println("over"); }
|
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/09f97dfa7810dd1f01b1143cd3302419d7f2c1cc/mainTable.java/clean/gui/main/mainTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8823,
4851,
12,
11728,
1830,
11728,
1133,
425,
13,
288,
2332,
18,
659,
18,
8222,
2932,
1643,
8863,
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,
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728,
1133,
425,
13,
288,
2332,
18,
659,
18,
8222,
2932,
1643,
8863,
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
] |
Set commandIds = (Set) entry5.getValue(); Iterator iterator6 = commandIds.iterator();
|
Map commandIdMap = (Map) entry5.getValue(); Iterator iterator6 = commandIdMap.entrySet().iterator();
|
static void getKeySequenceBindingDefinitions( Map keyStrokeNodeByKeyStrokeMap, KeySequence prefix, int rank, List keySequenceBindingDefinitions) { Iterator iterator = keyStrokeNodeByKeyStrokeMap.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); KeyStroke keyStroke = (KeyStroke) entry.getKey(); KeySequenceBindingNode keySequenceBindingNode = (KeySequenceBindingNode) entry.getValue(); List keyStrokes = new ArrayList(prefix.getKeyStrokes()); keyStrokes.add(keyStroke); KeySequence keySequence = KeySequence.getInstance(keyStrokes); Map contextMap = keySequenceBindingNode.contextMap; Iterator iterator2 = contextMap.entrySet().iterator(); while (iterator2.hasNext()) { Map.Entry entry2 = (Map.Entry) iterator2.next(); String contextId = (String) entry2.getKey(); Map keyConfigurationMap = (Map) entry2.getValue(); Iterator iterator3 = keyConfigurationMap.entrySet().iterator(); while (iterator3.hasNext()) { Map.Entry entry3 = (Map.Entry) iterator3.next(); String keyConfigurationId = (String) entry3.getKey(); Map rankMap = (Map) entry3.getValue(); Map platformMap = (Map) rankMap.get(new Integer(rank)); if (platformMap != null) { Iterator iterator4 = platformMap.entrySet().iterator(); while (iterator4.hasNext()) { Map.Entry entry4 = (Map.Entry) iterator4.next(); String platform = (String) entry4.getKey(); Map localeMap = (Map) entry4.getValue(); Iterator iterator5 = localeMap.entrySet().iterator(); while (iterator5.hasNext()) { Map.Entry entry5 = (Map.Entry) iterator5.next(); String locale = (String) entry5.getKey(); Set commandIds = (Set) entry5.getValue(); Iterator iterator6 = commandIds.iterator(); while (iterator6.hasNext()) { String commandId = (String) iterator6.next(); keySequenceBindingDefinitions.add( new KeySequenceBindingDefinition( contextId, commandId, keyConfigurationId, keySequence, locale, platform, null)); } } } } } } getKeySequenceBindingDefinitions( keySequenceBindingNode.childKeyStrokeNodeByKeyStrokeMap, keySequence, rank, keySequenceBindingDefinitions); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7519248a2a56aea7cb9f3f77a427f926eff7ef7e/KeySequenceBindingNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeySequenceBindingNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
3579,
4021,
5250,
7130,
12,
202,
202,
863,
498,
14602,
907,
14560,
14602,
863,
16,
202,
202,
653,
4021,
1633,
16,
202,
202,
474,
6171,
16,
202,
202,
682,
498,
4021,
5250,
7130,
13,
288,
202,
202,
3198,
2775,
273,
498,
14602,
907,
14560,
14602,
863,
18,
4099,
694,
7675,
9838,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
202,
863,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
2775,
18,
4285,
5621,
1082,
202,
653,
14602,
498,
14602,
273,
261,
653,
14602,
13,
1241,
18,
588,
653,
5621,
1082,
202,
653,
4021,
5250,
907,
498,
4021,
5250,
907,
273,
9506,
202,
12,
653,
4021,
5250,
907,
13,
1241,
18,
24805,
5621,
1082,
202,
682,
498,
510,
3250,
281,
273,
394,
2407,
12,
3239,
18,
588,
653,
510,
3250,
281,
10663,
1082,
202,
856,
510,
3250,
281,
18,
1289,
12,
856,
14602,
1769,
1082,
202,
653,
4021,
498,
4021,
273,
1929,
4021,
18,
588,
1442,
12,
856,
510,
3250,
281,
1769,
1082,
202,
863,
819,
863,
273,
498,
4021,
5250,
907,
18,
2472,
863,
31,
1082,
202,
3198,
2775,
22,
273,
819,
863,
18,
4099,
694,
7675,
9838,
5621,
1082,
202,
17523,
261,
9838,
22,
18,
5332,
2134,
10756,
288,
9506,
202,
863,
18,
1622,
1241,
22,
273,
261,
863,
18,
1622,
13,
2775,
22,
18,
4285,
5621,
9506,
202,
780,
819,
548,
273,
261,
780,
13,
1241,
22,
18,
588,
653,
5621,
9506,
202,
863,
498,
1750,
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,
3845,
918,
3579,
4021,
5250,
7130,
12,
202,
202,
863,
498,
14602,
907,
14560,
14602,
863,
16,
202,
202,
653,
4021,
1633,
16,
202,
202,
474,
6171,
16,
202,
202,
682,
498,
4021,
5250,
7130,
13,
288,
202,
202,
3198,
2775,
273,
498,
14602,
907,
14560,
14602,
863,
18,
4099,
694,
7675,
9838,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
202,
863,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
2775,
18,
4285,
5621,
1082,
202,
653,
14602,
498,
14602,
273,
261,
653,
14602,
13,
1241,
18,
588,
653,
5621,
1082,
202,
653,
4021,
5250,
907,
498,
4021,
5250,
907,
273,
9506,
202,
12,
653,
4021,
5250,
907,
13,
1241,
18,
2
] |
public <T> T[] toArray(T[] a)
|
public Object[] toArray()
|
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/ArrayList.java/buggy/core/src/classpath/5.0/java/util/ArrayList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
8526,
4434,
1435,
225,
288,
565,
309,
261,
69,
18,
2469,
411,
963,
13,
1377,
279,
273,
261,
56,
63,
5717,
1510,
18,
2704,
1442,
12,
69,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
8526,
4434,
1435,
225,
288,
565,
309,
261,
69,
18,
2469,
411,
963,
13,
1377,
279,
273,
261,
56,
63,
5717,
1510,
18,
2704,
1442,
12,
69,
18,
588,
797,
7675,
588,
28116,
9334,
963,
1769,
565,
469,
309,
261,
69,
18,
2469,
405,
963,
13,
1377,
279,
63,
1467,
65,
273,
446,
31,
565,
2332,
18,
1126,
3530,
12,
892,
16,
374,
16,
279,
16,
374,
16,
963,
1769,
565,
327,
279,
31,
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
] |
addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);
|
addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);
|
protected void addSizeItems(Menu sizeMenu) { Sashes sashes = findSashes(); addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);}
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/80cfecc0fb5392981e25acee0f567feb8ed55185/PartPane.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PartPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
527,
1225,
3126,
12,
4599,
963,
4599,
13,
288,
202,
55,
7690,
272,
7690,
273,
1104,
55,
7690,
5621,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
3910,
3113,
87,
7690,
18,
4482,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
4726,
3113,
87,
7690,
18,
4083,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
3401,
3113,
87,
7690,
18,
3669,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
10393,
3113,
87,
7690,
18,
9176,
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,
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
918,
527,
1225,
3126,
12,
4599,
963,
4599,
13,
288,
202,
55,
7690,
272,
7690,
273,
1104,
55,
7690,
5621,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
3910,
3113,
87,
7690,
18,
4482,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
4726,
3113,
87,
7690,
18,
4083,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
3401,
3113,
87,
7690,
18,
3669,
1769,
202,
1289,
1225,
1180,
12,
1467,
4599,
10837,
1988,
8485,
18,
1467,
10393,
3113,
87,
7690,
18,
9176,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (XSAttributeDecl)fGlobalAttrDecls.get(declName);
|
return(XSAttributeDecl)fGlobalAttrDecls.get(declName);
|
public final XSAttributeDecl getGlobalAttributeDecl(String declName) { return (XSAttributeDecl)fGlobalAttrDecls.get(declName); }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8973a4e0a87c8b8fcad9e9b1f2a9f9b642609e45/SchemaGrammar.java/buggy/src/org/apache/xerces/impl/v2/SchemaGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1139,
55,
1499,
3456,
20591,
1499,
3456,
12,
780,
3496,
461,
13,
288,
3639,
327,
12,
60,
55,
1499,
3456,
13,
74,
5160,
3843,
1799,
3251,
18,
588,
12,
8840,
461,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1139,
55,
1499,
3456,
20591,
1499,
3456,
12,
780,
3496,
461,
13,
288,
3639,
327,
12,
60,
55,
1499,
3456,
13,
74,
5160,
3843,
1799,
3251,
18,
588,
12,
8840,
461,
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
] |
listners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listener ); final ExcelParser parser = new ExcelParser( listners );
|
listeners.add(listener); sheetListeners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listeners ); final ExcelParser parser = new ExcelParser( sheetListeners );
|
public static RuleSheetListener getRuleSheetListener(final InputStream stream) throws IOException { final Map listners = new HashMap(); final RuleSheetListener listener = new DefaultRuleSheetListener(); listners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listener ); final ExcelParser parser = new ExcelParser( listners ); parser.parseFile( stream ); stream.close(); return listener; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/4933a63c9cb0873638ea044d626b890c5e2da4e2/RulesheetUtil.java/buggy/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6781,
8229,
2223,
19048,
8229,
2223,
12,
6385,
5037,
1407,
13,
1216,
1860,
288,
3639,
727,
1635,
666,
9646,
273,
394,
4317,
5621,
3639,
727,
6781,
8229,
2223,
2991,
273,
394,
2989,
2175,
8229,
2223,
5621,
3639,
666,
9646,
18,
458,
12,
17674,
2678,
18,
5280,
67,
14920,
2664,
41,
1584,
67,
1985,
16,
8227,
2991,
11272,
3639,
727,
17674,
2678,
2082,
273,
394,
17674,
2678,
12,
666,
9646,
11272,
3639,
2082,
18,
2670,
812,
12,
1407,
11272,
3639,
1407,
18,
4412,
5621,
3639,
327,
2991,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
6781,
8229,
2223,
19048,
8229,
2223,
12,
6385,
5037,
1407,
13,
1216,
1860,
288,
3639,
727,
1635,
666,
9646,
273,
394,
4317,
5621,
3639,
727,
6781,
8229,
2223,
2991,
273,
394,
2989,
2175,
8229,
2223,
5621,
3639,
666,
9646,
18,
458,
12,
17674,
2678,
18,
5280,
67,
14920,
2664,
41,
1584,
67,
1985,
16,
8227,
2991,
11272,
3639,
727,
17674,
2678,
2082,
273,
394,
17674,
2678,
12,
666,
9646,
11272,
3639,
2082,
18,
2670,
812,
12,
1407,
11272,
3639,
1407,
18,
4412,
5621,
3639,
327,
2991,
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
] |
TableColumn column = new TableColumn(table, SWT.RIGHT, i);
|
TableColumn column = new TableColumn(table, (getColumnDataIndex(elements[i]) <= 2) ? SWT.LEFT : SWT.RIGHT, i);
|
public void propertyChange(PropertyChangeEvent event) { String property = event.getProperty(); // Property changed for the Trader plugin if (property.equalsIgnoreCase("net.sourceforge.eclipsetrader.dataProvider") == true) //$NON-NLS-1$ { if (TraderPlugin.getDataProvider() != null) TraderPlugin.getDataProvider().addDataListener(this); } // Property changed for the Views plugin if (property.equalsIgnoreCase("portfolio.text_color") == true) //$NON-NLS-1$ textForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.text_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.even_row_background") == true) //$NON-NLS-1$ evenBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.even_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.odd_row_background") == true) //$NON-NLS-1$ oddBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.odd_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.total_row_background") == true) //$NON-NLS-1$ totalBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.total_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.negative_value_color") == true) //$NON-NLS-1$ negativeForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.negative_value_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.positive_value_color") == true) //$NON-NLS-1$ positiveForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.positive_value_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.display") == true) //$NON-NLS-1$ { table.setRedraw(false); for (int column = table.getColumnCount() - 1; column >= 0; column--) table.getColumn(column).dispose(); String preferenceValue = ViewsPlugin.getDefault().getPreferenceStore().getString("portfolio.display"); //$NON-NLS-1$ StringTokenizer tokenizer = new StringTokenizer(preferenceValue, ","); //$NON-NLS-1$ int tokenCount = tokenizer.countTokens(); String[] elements = new String[tokenCount]; for (int i = 0; i < tokenCount; i++) { elements[i] = tokenizer.nextToken(); TableColumn column = new TableColumn(table, SWT.RIGHT, i); for (int m = 0; m < columnNames.length; m++) { if (elements[i].equalsIgnoreCase(columnNames[m]) == true) { column.setText(columnLabels[m]); column.setWidth(columnWidth[m]); break; } } column.setData(elements[i]); if (getColumnDataIndex(i) <= 2) column.setAlignment(SWT.LEFT); } for (int i = 0; i < table.getItemCount(); i++) { PortfolioTableItem tableItem = (PortfolioTableItem)table.getItem(i).getData(); tableItem.update(); } table.setRedraw(true); } if (property.equalsIgnoreCase("portfolio") == true || property.startsWith("portfolio.") == true) //$NON-NLS-1$ updateView(); }
|
12846 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12846/8f711ad68cd624c745976f9a2cdc554527304f71/PortfolioView.java/clean/net.sourceforge.eclipsetrader.ui.views/src/net/sourceforge/eclipsetrader/ui/views/portfolio/PortfolioView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
225,
288,
565,
514,
1272,
273,
871,
18,
588,
1396,
5621,
565,
368,
4276,
3550,
364,
326,
2197,
765,
1909,
565,
309,
261,
4468,
18,
14963,
5556,
2932,
2758,
18,
3168,
1884,
908,
18,
557,
3169,
542,
354,
765,
18,
892,
2249,
7923,
422,
638,
13,
4329,
3993,
17,
5106,
17,
21,
8,
565,
288,
1377,
309,
261,
1609,
765,
3773,
18,
588,
20757,
1435,
480,
446,
13,
3639,
2197,
765,
3773,
18,
588,
20757,
7675,
1289,
751,
2223,
12,
2211,
1769,
565,
289,
565,
368,
4276,
3550,
364,
326,
31117,
1909,
565,
309,
261,
4468,
18,
14963,
5556,
2932,
28962,
18,
955,
67,
3266,
7923,
422,
638,
13,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
977,
23206,
273,
394,
5563,
12,
4236,
18,
588,
3935,
9334,
29125,
5072,
18,
588,
2957,
12,
9959,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
9334,
315,
28962,
18,
955,
67,
3266,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
469,
309,
261,
4468,
18,
14963,
5556,
2932,
28962,
18,
16728,
67,
492,
67,
9342,
7923,
422,
638,
13,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
5456,
8199,
273,
394,
5563,
12,
4236,
18,
588,
3935,
9334,
29125,
5072,
18,
588,
2957,
12,
9959,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
9334,
315,
28962,
18,
16728,
67,
492,
67,
9342,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
469,
309,
261,
4468,
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,
282,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
225,
288,
565,
514,
1272,
273,
871,
18,
588,
1396,
5621,
565,
368,
4276,
3550,
364,
326,
2197,
765,
1909,
565,
309,
261,
4468,
18,
14963,
5556,
2932,
2758,
18,
3168,
1884,
908,
18,
557,
3169,
542,
354,
765,
18,
892,
2249,
7923,
422,
638,
13,
4329,
3993,
17,
5106,
17,
21,
8,
565,
288,
1377,
309,
261,
1609,
765,
3773,
18,
588,
20757,
1435,
480,
446,
13,
3639,
2197,
765,
3773,
18,
588,
20757,
7675,
1289,
751,
2223,
12,
2211,
1769,
565,
289,
565,
368,
4276,
3550,
364,
326,
31117,
1909,
565,
309,
261,
4468,
18,
14963,
5556,
2932,
28962,
18,
955,
67,
3266,
7923,
422,
638,
13,
2
] |
cv.visitVarInsn(ASTORE, ++idx);
|
cv.visitVarInsn(ASTORE, iteratorIdx);
|
public void visitForLoop(ForLoop loop) { onLineNumber(loop); loop.getCollectionExpression().visit(this); asIteratorMethod.call(cv); cv.visitVarInsn(ASTORE, ++idx); Label label1 = new Label(); cv.visitJumpInsn(GOTO, label1); Label label2 = new Label(); cv.visitLabel(label2); cv.visitVarInsn(ALOAD, idx); iteratorNextMethod.call(cv); cv.visitVarInsn(ASTORE, ++idx); loop.getLoopBlock().visit(this); cv.visitLabel(label1); cv.visitVarInsn(ALOAD, --idx); iteratorHasNextMethod.call(cv); cv.visitJumpInsn(IFNE, label2); }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5a787ab2b618731249d84b9fe612924d27d5edfb/ClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/ClassGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31451,
12,
31451,
2798,
13,
288,
3639,
603,
31063,
12,
6498,
1769,
3639,
2798,
18,
588,
2532,
2300,
7675,
11658,
12,
2211,
1769,
3639,
487,
3198,
1305,
18,
1991,
12,
19774,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
9053,
8607,
16,
2775,
4223,
1769,
3639,
5287,
1433,
21,
273,
394,
5287,
5621,
3639,
8951,
18,
11658,
26743,
11796,
12,
43,
27019,
16,
1433,
21,
1769,
3639,
5287,
1433,
22,
273,
394,
5287,
5621,
3639,
8951,
18,
11658,
2224,
12,
1925,
22,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
1013,
51,
1880,
16,
2067,
1769,
3639,
2775,
2134,
1305,
18,
1991,
12,
19774,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
9053,
8607,
16,
2775,
4223,
1769,
3639,
2798,
18,
588,
6452,
1768,
7675,
11658,
12,
2211,
1769,
3639,
8951,
18,
11658,
2224,
12,
1925,
21,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
1013,
51,
1880,
16,
1493,
3465,
1769,
3639,
2775,
5582,
2134,
1305,
18,
1991,
12,
19774,
1769,
3639,
8951,
18,
11658,
26743,
11796,
12,
5501,
5407,
16,
1433,
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,
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
1769,
3639,
487,
3198,
1305,
18,
1991,
12,
19774,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
9053,
8607,
16,
2775,
4223,
1769,
3639,
5287,
1433,
21,
273,
394,
5287,
5621,
3639,
8951,
18,
11658,
26743,
11796,
12,
43,
27019,
16,
1433,
21,
1769,
3639,
5287,
1433,
22,
273,
394,
5287,
5621,
3639,
8951,
18,
11658,
2224,
12,
1925,
22,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
1013,
51,
1880,
16,
2067,
1769,
3639,
2775,
2134,
1305,
18,
1991,
12,
19774,
1769,
3639,
8951,
18,
11658,
1537,
11796,
12,
9053,
8607,
16,
2
] |
public Component getTreeCellRendererComponent( JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent( tree, value, sel, expanded, leaf, row, hasFocus); if (value instanceof Step) { PlayerID player = ((Step) value).getPlayerID(); if(player != null) { icon.setImage(FlagIconImageFactory.instance().getSmallFlag(player)); setIcon(icon); } } return this; }
|
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/42eb305ea1a957f1a4f2ef87bb9153c7a28ede18/HistoryPanel.java/clean/triplea/src/games/strategy/triplea/ui/history/HistoryPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1841,
588,
2471,
4020,
6747,
1841,
12,
46,
56,
9015,
992,
16,
921,
1132,
16,
1075,
29510,
292,
16,
6494,
17336,
16,
6494,
12070,
16,
474,
492,
16,
6494,
5332,
9233,
15329,
9565,
18,
588,
2471,
4020,
6747,
1841,
12,
3413,
16,
1132,
16,
1786,
16,
17336,
16,
12070,
16,
492,
16,
5332,
9233,
1769,
430,
12,
1132,
1336,
792,
4160,
15329,
12148,
734,
14872,
33,
12443,
4160,
13,
1132,
2934,
588,
12148,
734,
5621,
430,
12,
14872,
5,
33,
2011,
15329,
3950,
18,
542,
2040,
12,
4678,
5554,
2040,
1733,
18,
1336,
7675,
588,
19187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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1841,
588,
2471,
4020,
6747,
1841,
12,
46,
56,
9015,
992,
16,
921,
1132,
16,
1075,
29510,
292,
16,
6494,
17336,
16,
6494,
12070,
16,
474,
492,
16,
6494,
5332,
9233,
15329,
9565,
18,
588,
2471,
4020,
6747,
1841,
12,
3413,
16,
1132,
16,
1786,
16,
17336,
16,
12070,
16,
492,
16,
5332,
9233,
1769,
430,
12,
1132,
1336,
792,
4160,
15329,
12148,
734,
14872,
33,
12443,
4160,
13,
1132,
2934,
588,
12148,
734,
5621,
430,
12,
14872,
5,
33,
2011,
15329,
3950,
18,
542,
2040,
12,
4678,
5554,
2040,
1733,
18,
1336,
7675,
588,
19187,
4678,
12,
14872,
10019,
542,
5554,
12,
3950,
1769,
9090,
2463,
2211,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
private ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) {
|
private static ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) {
|
private ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) { String message = InspectionsBundle.message("inspection.javadoc.problem.missing.tag", "<code>@" + tag + "</code>"); return createDescriptor(elementToHighlight, message,new AddMissingTagFix(tag)); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0975c4db4a60aef8a1ae423267ef8f7fc2874e96/JavaDocLocalInspection.java/clean/inspections/impl/com/intellij/codeInspection/javaDoc/JavaDocLocalInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
21685,
3187,
752,
4841,
1805,
3187,
12,
52,
7722,
1046,
930,
774,
16205,
16,
632,
3989,
50,
3251,
514,
1047,
13,
288,
565,
514,
883,
273,
22085,
7017,
87,
3405,
18,
2150,
2932,
2679,
7017,
18,
78,
4805,
18,
18968,
18,
7337,
18,
2692,
3113,
3532,
710,
34,
27614,
397,
1047,
397,
6823,
710,
2984,
1769,
565,
327,
752,
3187,
12,
2956,
774,
16205,
16,
883,
16,
2704,
1436,
4841,
1805,
8585,
12,
2692,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
21685,
3187,
752,
4841,
1805,
3187,
12,
52,
7722,
1046,
930,
774,
16205,
16,
632,
3989,
50,
3251,
514,
1047,
13,
288,
565,
514,
883,
273,
22085,
7017,
87,
3405,
18,
2150,
2932,
2679,
7017,
18,
78,
4805,
18,
18968,
18,
7337,
18,
2692,
3113,
3532,
710,
34,
27614,
397,
1047,
397,
6823,
710,
2984,
1769,
565,
327,
752,
3187,
12,
2956,
774,
16205,
16,
883,
16,
2704,
1436,
4841,
1805,
8585,
12,
2692,
10019,
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
] |
EditPart editPart = (EditPart) editparts.get(0);
|
if (primaryEP[0] == null) { primaryEP[0] = (EditPart) editparts.get(0); }
|
protected void selectAddedObject(EditPartViewer viewer, Collection objects) { final List editparts = new ArrayList(); for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof IAdaptable) { Object editPart = viewer.getEditPartRegistry().get( ((IAdaptable) object).getAdapter(View.class)); if (editPart instanceof AbstractConnectionEditPart) { editparts.add(editPart); } // if (editPart != null) // editparts.add(editPart); } } if (!editparts.isEmpty()) { viewer.setSelection(new StructuredSelection(editparts)); // automatically put the first shape into edit-mode Display.getCurrent().asyncExec(new Runnable() { public void run() { EditPart editPart = (EditPart) editparts.get(0); // // add active test since test scripts are failing on this // basically, the editpart has been deleted when this // code is being executed. (see RATLC00527114) if (editPart.isActive()) { editPart.performRequest(new Request( RequestConstants.REQ_DIRECT_EDIT)); } } }); } }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/067b316659bc3b5a283bebb87587307559e76a75/ConnectionCreationTool.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/tools/ConnectionCreationTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2027,
8602,
921,
12,
4666,
1988,
18415,
14157,
16,
2200,
2184,
13,
288,
202,
202,
6385,
987,
3874,
6019,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
277,
273,
2184,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
921,
733,
273,
277,
18,
4285,
5621,
1082,
202,
430,
261,
1612,
1276,
467,
13716,
429,
13,
288,
9506,
202,
921,
3874,
1988,
273,
14157,
18,
588,
4666,
1988,
4243,
7675,
588,
12,
6862,
202,
12443,
45,
13716,
429,
13,
733,
2934,
588,
4216,
12,
1767,
18,
1106,
10019,
9506,
202,
430,
261,
4619,
1988,
1276,
4115,
1952,
4666,
1988,
13,
288,
6862,
202,
4619,
6019,
18,
1289,
12,
4619,
1988,
1769,
9506,
202,
97,
9506,
202,
759,
309,
261,
4619,
1988,
480,
446,
13,
9506,
202,
759,
3874,
6019,
18,
1289,
12,
4619,
1988,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
16051,
4619,
6019,
18,
291,
1921,
10756,
288,
1082,
202,
25256,
18,
542,
6233,
12,
2704,
7362,
2862,
6233,
12,
4619,
6019,
10019,
1082,
202,
759,
6635,
1378,
326,
1122,
2179,
1368,
3874,
17,
3188,
1082,
202,
4236,
18,
588,
3935,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
4666,
1988,
3874,
1988,
273,
261,
4666,
1988,
13,
3874,
6019,
18,
588,
12,
20,
1769,
6862,
202,
759,
6862,
202,
759,
527,
2695,
1842,
3241,
1842,
8873,
854,
21311,
603,
333,
6862,
202,
759,
23772,
16,
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,
2027,
8602,
921,
12,
4666,
1988,
18415,
14157,
16,
2200,
2184,
13,
288,
202,
202,
6385,
987,
3874,
6019,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
277,
273,
2184,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
921,
733,
273,
277,
18,
4285,
5621,
1082,
202,
430,
261,
1612,
1276,
467,
13716,
429,
13,
288,
9506,
202,
921,
3874,
1988,
273,
14157,
18,
588,
4666,
1988,
4243,
7675,
588,
12,
6862,
202,
12443,
45,
13716,
429,
13,
733,
2934,
588,
4216,
12,
1767,
18,
1106,
10019,
9506,
202,
430,
261,
4619,
1988,
1276,
4115,
1952,
4666,
1988,
13,
288,
6862,
202,
4619,
6019,
18,
1289,
12,
4619,
1988,
1769,
2
] |
for (String function : new String[] { "getIfServiceId", "getIpInterfaceId", "getSnmpInterfaceId"} ) { assertTrue("Function '" + function + "' does not exist", m_installer.functionExists(function, "", "trigger")); }
|
m_installer.addStoredProcedures(); verifyTriggers(true);
|
public void testAddStoredProceduresTwice() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.createTables(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); m_installer.addStoredProcedures(); for (String function : new String[] { "getIfServiceId", "getIpInterfaceId", "getSnmpInterfaceId"} ) { assertTrue("Function '" + function + "' does not exist", m_installer.functionExists(function, "", "trigger")); } }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/28ec8d0f53c305460681fe922d064c060141774d/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
18005,
626,
23382,
23539,
1812,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
312,
67,
20163,
18,
2640,
21710,
5621,
3639,
312,
67,
20163,
18,
2640,
6905,
5621,
3639,
312,
67,
20163,
18,
2725,
1749,
52,
30175,
5621,
3639,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
3639,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
3639,
364,
261,
780,
445,
294,
394,
514,
8526,
288,
315,
588,
2047,
29177,
3113,
7734,
315,
588,
5273,
1358,
548,
3113,
315,
588,
10461,
1291,
1358,
548,
6,
97,
262,
288,
5411,
1815,
5510,
2932,
2083,
2119,
397,
445,
397,
2491,
1552,
486,
1005,
3113,
15604,
312,
67,
20163,
18,
915,
4002,
12,
915,
16,
23453,
315,
10668,
7923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
18005,
626,
23382,
23539,
1812,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
312,
67,
20163,
18,
2640,
21710,
5621,
3639,
312,
67,
20163,
18,
2640,
6905,
5621,
3639,
312,
67,
20163,
18,
2725,
1749,
52,
30175,
5621,
3639,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
3639,
312,
67,
20163,
18,
1289,
18005,
626,
23382,
5621,
3639,
364,
261,
780,
445,
294,
394,
514,
8526,
288,
315,
588,
2047,
29177,
3113,
7734,
315,
588,
5273,
1358,
548,
3113,
315,
588,
10461,
1291,
1358,
548,
6,
97,
262,
288,
5411,
1815,
5510,
2932,
2083,
2119,
397,
445,
397,
2491,
1552,
486,
1005,
2
] |
org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1];
|
IMethodInfo methodInfo = methodInfos[1];
|
public void test033() { try { String sourceA = "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" + "}"; compileAndDeploy(sourceA, "A"); org.eclipse.jdt.core.util.IClassFileReader classFileReader = org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", org.eclipse.jdt.core.util.IClassFileReader.ALL); org.eclipse.jdt.core.util.IMethodInfo[] methodInfos = classFileReader.getMethodInfos(); assertEquals("wrong size", 2, methodInfos.length); org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1]; assertEquals("wrong name", "main", new String(methodInfo.getName())); org.eclipse.jdt.core.util.ICodeAttribute codeAttribute = methodInfo.getCodeAttribute(); assertNotNull("No code attribute", codeAttribute); org.eclipse.jdt.core.util.ILineNumberAttribute lineNumberAttribute = codeAttribute.getLineNumberAttribute(); assertNotNull("No code line number attribute", lineNumberAttribute); int[][] lineNumberTable = lineNumberAttribute.getLineNumberTable(); assertEquals("wrong size", 6, lineNumberTable.length); assertEquals("wrong pc[0]", 0, lineNumberTable[0][0]); assertEquals("wrong line[0]", 3, lineNumberTable[0][1]); assertEquals("wrong pc[1]", 2, lineNumberTable[1][0]); assertEquals("wrong line[1]", 4, lineNumberTable[1][1]); assertEquals("wrong pc[2]", 5, lineNumberTable[2][0]); assertEquals("wrong line[2]", 5, lineNumberTable[2][1]); assertEquals("wrong pc[3]", 16, lineNumberTable[3][0]); assertEquals("wrong line[3]", 6, lineNumberTable[3][1]); assertEquals("wrong pc[4]", 29, lineNumberTable[4][0]); assertEquals("wrong line[4]", 7, lineNumberTable[4][1]); assertEquals("wrong pc[5]", 36, lineNumberTable[5][0]); assertEquals("wrong line[5]", 9, lineNumberTable[5][1]); } finally { removeTempClass("A"); } }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3826deb7274f8b670a1e803be5c591bc377a58f3/ClassFileReaderTest.java/buggy/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,
15265,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
1084,
37,
273,
9506,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
9506,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
9506,
202,
6,
202,
202,
6494,
324,
273,
629,
9747,
82,
6,
397,
9506,
202,
6,
202,
202,
474,
277,
273,
1666,
9747,
82,
6,
397,
9506,
202,
6,
202,
202,
430,
14015,
77,
422,
1666,
13,
521,
82,
6,
397,
9506,
202,
6,
1082,
282,
473,
401,
70,
13,
288,
565,
202,
64,
82,
6,
397,
9506,
202,
6,
1082,
565,
202,
3163,
18,
659,
18,
8222,
12,
77,
20472,
82,
6,
397,
9506,
202,
6,
1082,
282,
289,
64,
82,
6,
397,
9506,
202,
6,
202,
6280,
82,
6,
397,
9506,
202,
6,
1532,
31,
1082,
202,
11100,
1876,
10015,
12,
3168,
37,
16,
315,
37,
8863,
1082,
202,
3341,
18,
20416,
18,
78,
7510,
18,
3644,
18,
1367,
18,
45,
797,
812,
2514,
29728,
2514,
273,
2358,
18,
20416,
18,
78,
7510,
18,
3644,
18,
6364,
1733,
18,
2640,
1868,
797,
812,
2514,
12,
41,
2669,
67,
17229,
397,
1387,
18,
11287,
397,
315,
37,
18,
1106,
3113,
2358,
18,
20416,
18,
78,
7510,
18,
3644,
18,
1367,
18,
45,
797,
812,
2514,
18,
4685,
1769,
1082,
202,
3341,
18,
20416,
18,
78,
7510,
18,
3644,
18,
1367,
18,
45,
1305,
966,
8526,
707,
7655,
273,
29728,
2514,
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,
225,
202,
482,
918,
1842,
15265,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
1084,
37,
273,
9506,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
9506,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
9506,
202,
6,
202,
202,
6494,
324,
273,
629,
9747,
82,
6,
397,
9506,
202,
6,
202,
202,
474,
277,
273,
1666,
9747,
82,
6,
397,
9506,
202,
6,
202,
202,
430,
14015,
77,
422,
1666,
13,
521,
82,
6,
397,
9506,
202,
6,
1082,
282,
473,
401,
70,
13,
288,
565,
202,
64,
82,
6,
397,
9506,
202,
6,
1082,
565,
202,
3163,
18,
659,
18,
8222,
12,
77,
20472,
82,
6,
397,
2
] |
ReportDesign.BODY_SLOT );
|
IReportDesignModel.BODY_SLOT );
|
public AbstractParseState startElement( String tagName ) { if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TEXT_TAG ) ) return new TextItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.GRID_TAG ) ) return new GridItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.FREE_FORM_TAG ) ) return new FreeFormState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LIST_TAG ) ) return new ListItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TABLE_TAG ) ) return new TableItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LABEL_TAG ) ) return new LabelState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.IMAGE_TAG ) ) return new ImageState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.DATA_TAG ) ) return new DataItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.INCLUDE_TAG ) ) return new AnyElementState( handler ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TOC_TAG ) ) return new AnyElementState( handler ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.EXTENDED_ITEM_TAG ) ) return new ExtendedItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.MULTI_LINE_DATA_TAG ) || tagName .equalsIgnoreCase( DesignSchemaConstants.TEXT_DATA_TAG ) ) return new TextDataItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TEMPLATE_REPORT_ITEM_TAG ) ) return new TemplateReportItemState( handler, module, ReportDesign.BODY_SLOT ); return super.startElement( tagName ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ReportState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ReportState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4115,
3201,
1119,
13591,
12,
514,
7196,
262,
202,
202,
95,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
5151,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3867,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
6997,
734,
67,
7927,
262,
262,
9506,
202,
2463,
394,
7145,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
28104,
67,
4983,
67,
7927,
262,
262,
9506,
202,
2463,
394,
15217,
1204,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
7085,
67,
7927,
262,
262,
9506,
202,
2463,
394,
987,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
7775,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3555,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
13545,
67,
7927,
262,
262,
9506,
202,
2463,
394,
5287,
1119,
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,
3196,
202,
482,
4115,
3201,
1119,
13591,
12,
514,
7196,
262,
202,
202,
95,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
5151,
67,
7927,
262,
262,
9506,
202,
2463,
394,
3867,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
6997,
734,
67,
7927,
262,
262,
9506,
202,
2463,
394,
7145,
1180,
1119,
12,
1838,
16,
1605,
16,
25083,
202,
4820,
15478,
18,
16691,
67,
55,
1502,
56,
11272,
1082,
202,
430,
261,
7196,
18,
14963,
5556,
12,
29703,
3078,
2918,
18,
28104,
67,
4983,
67,
7927,
262,
262,
9506,
202,
2
] |
return mod;
|
return mod; } return callCoerced("remainder", other);
|
public RubyNumeric remainder(RubyNumeric other) { RubyNumeric mod = modulo(other); final RubyNumeric zero = RubyFixnum.zero(getRuntime()); if (callMethod("<", zero).isTrue() && other.callMethod(">", zero).isTrue() || callMethod(">", zero).isTrue() && other.callMethod("<", zero).isTrue()) { return (RubyNumeric) mod.callMethod("-", other); } return mod; }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
10022,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
19817,
9902,
681,
273,
26109,
12,
3011,
1769,
3639,
727,
19817,
9902,
3634,
273,
19817,
8585,
2107,
18,
7124,
12,
588,
5576,
10663,
3639,
309,
261,
1991,
1305,
2932,
32,
3113,
3634,
2934,
291,
5510,
1435,
597,
1308,
18,
1991,
1305,
2932,
2984,
16,
3634,
2934,
291,
5510,
1435,
747,
2398,
745,
1305,
2932,
2984,
16,
3634,
2934,
291,
5510,
1435,
597,
1308,
18,
1991,
1305,
2932,
32,
3113,
3634,
2934,
291,
5510,
10756,
288,
5411,
327,
261,
54,
10340,
9902,
13,
681,
18,
1991,
1305,
2932,
17,
3113,
1308,
1769,
3639,
289,
3639,
327,
681,
31,
289,
225,
327,
745,
4249,
2765,
72,
2932,
2764,
25407,
3113,
1308,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
19817,
9902,
10022,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
19817,
9902,
681,
273,
26109,
12,
3011,
1769,
3639,
727,
19817,
9902,
3634,
273,
19817,
8585,
2107,
18,
7124,
12,
588,
5576,
10663,
3639,
309,
261,
1991,
1305,
2932,
32,
3113,
3634,
2934,
291,
5510,
1435,
597,
1308,
18,
1991,
1305,
2932,
2984,
16,
3634,
2934,
291,
5510,
1435,
747,
2398,
745,
1305,
2932,
2984,
16,
3634,
2934,
291,
5510,
1435,
597,
1308,
18,
1991,
1305,
2932,
32,
3113,
3634,
2934,
291,
5510,
10756,
288,
5411,
327,
261,
54,
10340,
9902,
13,
681,
18,
1991,
1305,
2932,
17,
3113,
1308,
1769,
3639,
289,
3639,
327,
681,
31,
289,
225,
327,
745,
4249,
2765,
72,
2932,
2764,
2
] |
toString1 = new BigDecimal(-1.455E-20);
|
toString1 = new BigDecimal("-1.455E-20");
|
public void test_toString() { BigDecimal toString1 = new BigDecimal("1234.000"); assertTrue("the toString representation of 1234.000 is wrong", toString1.toString().equals("1234.000")); toString1 = new BigDecimal(-123.4E-5); assertTrue("the toString representation of -123.4E-5 is wrong: " + toString1, toString1.toString().equals("-0.001234")); toString1 = new BigDecimal(-1.455E-20); assertTrue("the toString representation of -1.455E-20 is wrong", toString1.toString().equals("-0.00000000000000000001455")); toString1 = new BigDecimal(value2, 4); assertTrue("the toString representation of 1233456.0000 is wrong", toString1.toString().equals("1233456.0000")); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e4c6ccd004bd3025b002e62ce3d78294c55f76ef/BigDecimalTest.java/buggy/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
10492,
1435,
288,
202,
202,
29436,
1762,
21,
273,
394,
8150,
2932,
28462,
18,
3784,
8863,
202,
202,
11231,
5510,
2932,
5787,
1762,
4335,
434,
30011,
18,
3784,
353,
7194,
3113,
9506,
202,
10492,
21,
18,
10492,
7675,
14963,
2932,
28462,
18,
3784,
7923,
1769,
202,
202,
10492,
21,
273,
394,
8150,
19236,
12936,
18,
24,
41,
17,
25,
1769,
202,
202,
11231,
5510,
2932,
5787,
1762,
4335,
434,
300,
12936,
18,
24,
41,
17,
25,
353,
7194,
30,
315,
9506,
202,
15,
1762,
21,
16,
1762,
21,
18,
10492,
7675,
14963,
2932,
17,
20,
18,
713,
28462,
7923,
1769,
202,
202,
10492,
21,
273,
394,
8150,
19236,
21,
18,
24,
2539,
41,
17,
3462,
1769,
202,
202,
11231,
5510,
2932,
5787,
1762,
4335,
434,
300,
21,
18,
24,
2539,
41,
17,
3462,
353,
7194,
3113,
9506,
202,
10492,
21,
18,
10492,
7675,
14963,
2932,
17,
20,
18,
12648,
2787,
9449,
1611,
24,
2539,
7923,
1769,
202,
202,
10492,
21,
273,
394,
8150,
12,
1132,
22,
16,
1059,
1769,
202,
202,
11231,
5510,
2932,
5787,
1762,
4335,
434,
2593,
3707,
24,
4313,
18,
2787,
353,
7194,
3113,
9506,
202,
10492,
21,
18,
10492,
7675,
14963,
2932,
2138,
3707,
24,
4313,
18,
2787,
7923,
1769,
202,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011,
18,
3784,
353,
7194,
3113,
9506,
202,
10492,
21,
18,
10492,
7675,
14963,
2932,
28462,
18,
3784,
7923,
1769,
202,
202,
10492,
21,
273,
394,
8150,
19236,
12936,
18,
24,
41,
17,
25,
1769,
202,
202,
11231,
5510,
2932,
5787,
1762,
4335,
434,
300,
12936,
18,
24,
41,
17,
25,
353,
7194,
30,
315,
9506,
202,
15,
1762,
21,
16,
1762,
21,
18,
10492,
7675,
14963,
2932,
17,
20,
18,
713,
28462,
7923,
1769,
202,
202,
10492,
21,
273,
394,
8150,
19236,
21,
18,
24,
2539,
41,
2
] |
assertTrue(compare(retEle,"/interopt/whitemesa/round4/res/resStringFault.xml"));
|
assertTrue(compare(retEle,"interopt/whitemesa/round4/res/resStringFault.xml"));
|
public void testEchoStringFault() throws Exception{ //echoStringFault util=new EchoStringFaultClientUtil(); retEle =client.sendMsg(util,soapAction); assertTrue(compare(retEle,"/interopt/whitemesa/round4/res/resStringFault.xml")); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/73a31ddbdf98b3dc2e5187b8b75037beee5b8ccb/WhitemesaR4SimpleTest.java/buggy/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round4/simple/WhitemesaR4SimpleTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19704,
780,
7083,
1435,
1216,
1185,
95,
3639,
368,
12946,
780,
7083,
3639,
1709,
33,
2704,
28995,
780,
7083,
1227,
1304,
5621,
3639,
325,
17274,
273,
2625,
18,
4661,
3332,
12,
1367,
16,
19215,
1803,
1769,
3639,
1815,
5510,
12,
9877,
12,
1349,
17274,
10837,
2761,
3838,
19,
3350,
1726,
281,
69,
19,
2260,
24,
19,
455,
19,
455,
780,
7083,
18,
2902,
7923,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19704,
780,
7083,
1435,
1216,
1185,
95,
3639,
368,
12946,
780,
7083,
3639,
1709,
33,
2704,
28995,
780,
7083,
1227,
1304,
5621,
3639,
325,
17274,
273,
2625,
18,
4661,
3332,
12,
1367,
16,
19215,
1803,
1769,
3639,
1815,
5510,
12,
9877,
12,
1349,
17274,
10837,
2761,
3838,
19,
3350,
1726,
281,
69,
19,
2260,
24,
19,
455,
19,
455,
780,
7083,
18,
2902,
7923,
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
] |
public m3() {
|
public void m3() {
|
public m3() { int b = 0; int c = 0; int d = 0; }
|
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/12049fbf436a7830b9211b349de3e993a800e988/Overlapping.java/buggy/src/testinputs/com/puppycrawl/tools/checkstyle/duplicates/Overlapping.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
23,
1435,
288,
3639,
509,
324,
273,
374,
31,
3639,
509,
276,
273,
374,
31,
3639,
509,
302,
273,
374,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
23,
1435,
288,
3639,
509,
324,
273,
374,
31,
3639,
509,
276,
273,
374,
31,
3639,
509,
302,
273,
374,
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
] |
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) {
|
public static IRubyObject[] setupArgs(Ruby runtime, ThreadContext context, EvaluateVisitor visitor, INode node) {
|
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((ArrayNode) node).size(); final ArrayList list = new ArrayList(size); final Iterator iterator = ((ArrayNode) node).iterator(); for (int i = 0; i < size; i++) { final INode next = (INode) iterator.next(); if (next instanceof ExpandArrayNode) { list.addAll(((RubyArray) visitor.eval(next)).getList()); } else { list.add(visitor.eval(next)); } } context.setPosition(position); return (IRubyObject[]) list.toArray(new IRubyObject[list.size()]); } IRubyObject args = visitor.eval(node); context.setPosition(position); if (args instanceof RubyArray) { return ((RubyArray) args).toJavaArray(); } else { return new IRubyObject[] { args }; } }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
8526,
3875,
2615,
12,
54,
10340,
3099,
16,
4884,
1042,
819,
16,
18176,
7413,
8000,
16,
21176,
756,
13,
288,
3639,
309,
261,
2159,
422,
446,
13,
288,
5411,
327,
15908,
10340,
921,
18,
8560,
67,
8552,
31,
3639,
289,
3639,
727,
467,
1830,
2555,
1754,
273,
819,
18,
588,
2555,
5621,
3639,
309,
261,
2159,
1276,
1510,
907,
13,
288,
5411,
727,
509,
963,
273,
14015,
1076,
907,
13,
756,
2934,
1467,
5621,
5411,
727,
2407,
666,
273,
394,
2407,
12,
1467,
1769,
5411,
727,
4498,
2775,
273,
14015,
1076,
907,
13,
756,
2934,
9838,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
7734,
727,
21176,
1024,
273,
261,
23184,
13,
2775,
18,
4285,
5621,
7734,
309,
261,
4285,
1276,
16429,
1076,
907,
13,
288,
10792,
666,
18,
1289,
1595,
12443,
12,
54,
10340,
1076,
13,
8000,
18,
8622,
12,
4285,
13,
2934,
588,
682,
10663,
7734,
289,
469,
288,
10792,
666,
18,
1289,
12,
3516,
1811,
18,
8622,
12,
4285,
10019,
7734,
289,
5411,
289,
5411,
819,
18,
542,
2555,
12,
3276,
1769,
5411,
327,
261,
7937,
10340,
921,
63,
5717,
666,
18,
31447,
12,
2704,
15908,
10340,
921,
63,
1098,
18,
1467,
1435,
19226,
3639,
289,
3639,
15908,
10340,
921,
833,
273,
8000,
18,
8622,
12,
2159,
1769,
3639,
819,
18,
542,
2555,
12,
3276,
1769,
3639,
309,
261,
1968,
1276,
19817,
1076,
13,
288,
5411,
327,
14015,
54,
10340,
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,
760,
15908,
10340,
921,
8526,
3875,
2615,
12,
54,
10340,
3099,
16,
4884,
1042,
819,
16,
18176,
7413,
8000,
16,
21176,
756,
13,
288,
3639,
309,
261,
2159,
422,
446,
13,
288,
5411,
327,
15908,
10340,
921,
18,
8560,
67,
8552,
31,
3639,
289,
3639,
727,
467,
1830,
2555,
1754,
273,
819,
18,
588,
2555,
5621,
3639,
309,
261,
2159,
1276,
1510,
907,
13,
288,
5411,
727,
509,
963,
273,
14015,
1076,
907,
13,
756,
2934,
1467,
5621,
5411,
727,
2407,
666,
273,
394,
2407,
12,
1467,
1769,
5411,
727,
4498,
2775,
273,
14015,
1076,
907,
13,
756,
2934,
9838,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
7734,
2
] |
return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")";
|
return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+ ')';
|
public String shouldRejectRequest(boolean canAcceptAnyway, boolean isInsert, boolean isSSK) { if(logMINOR) dumpByteCostAverages(); if(isInsert) { if(getNumInserts() > MAX_RUNNING_INSERTS) return "Too many running inserts"; } else { if(getNumRequests() > MAX_RUNNING_REQUESTS) return "Too many running requests"; } double bwlimitDelayTime = throttledPacketSendAverage.currentValue(); // If no recent reports, no packets have been sent; correct the average downwards. long now = System.currentTimeMillis(); boolean checkUncontended = false; synchronized(this) { if(now - lastCheckedUncontended > 1000) { checkUncontended = true; lastCheckedUncontended = now; } } if(checkUncontended && throttledPacketSendAverage.lastReportTime() < now - 5000) { // if last report more than 5 seconds ago // shouldn't take long outputThrottle.blockingGrab(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); outputThrottle.recycle(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); long after = System.currentTimeMillis(); // Report time it takes to grab the bytes. throttledPacketSendAverage.report(after - now); now = after; // will have changed, use new value synchronized(this) { bwlimitDelayTime = throttledPacketSendAverage.currentValue(); } } double pingTime = nodePinger.averagePingTime(); synchronized(this) { // Round trip time if(pingTime > MAX_PING_TIME) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } else if(pingTime > SUB_MAX_PING_TIME) { double x = ((double)(pingTime - SUB_MAX_PING_TIME)) / (MAX_PING_TIME - SUB_MAX_PING_TIME); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } // Bandwidth limited packets if(bwlimitDelayTime > MAX_THROTTLE_DELAY) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } else if(bwlimitDelayTime > SUB_MAX_THROTTLE_DELAY) { double x = ((double)(bwlimitDelayTime - SUB_MAX_THROTTLE_DELAY)) / (MAX_THROTTLE_DELAY - SUB_MAX_THROTTLE_DELAY); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } } // Do we have the bandwidth? double expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesSentAverage : this.remoteChkInsertBytesSentAverage) : (isSSK ? this.remoteSskFetchBytesSentAverage : this.remoteChkFetchBytesSentAverage)).currentValue(); int expectedSent = (int)Math.max(expected, 0); if(!requestOutputThrottle.instantGrab(expectedSent)) { pInstantRejectIncoming.report(1.0); return "Insufficient output bandwidth"; } expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesReceivedAverage : this.remoteChkInsertBytesReceivedAverage) : (isSSK ? this.remoteSskFetchBytesReceivedAverage : this.remoteChkFetchBytesReceivedAverage)).currentValue(); int expectedReceived = (int)Math.max(expected, 0); if(!requestInputThrottle.instantGrab(expectedReceived)) { requestOutputThrottle.recycle(expectedSent); pInstantRejectIncoming.report(1.0); return "Insufficient input bandwidth"; } synchronized(this) { if(logMINOR) Logger.minor(this, "Accepting request?"); lastAcceptedRequest = now; } pInstantRejectIncoming.report(0.0); // Accept return null; }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1410,
21705,
691,
12,
6494,
848,
5933,
2961,
1888,
16,
1250,
353,
4600,
16,
1250,
353,
1260,
47,
13,
288,
202,
202,
430,
12,
1330,
6236,
916,
13,
4657,
3216,
8018,
37,
502,
1023,
5621,
9506,
202,
430,
12,
291,
4600,
13,
288,
1082,
202,
430,
12,
588,
2578,
14214,
1435,
405,
4552,
67,
29358,
67,
706,
2123,
8047,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
15607,
14432,
202,
202,
97,
469,
288,
1082,
202,
430,
12,
588,
2578,
6421,
1435,
405,
4552,
67,
29358,
67,
5519,
55,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
3285,
14432,
202,
202,
97,
9506,
202,
9056,
12986,
3595,
6763,
950,
273,
27335,
6667,
3826,
17115,
18,
2972,
620,
5621,
9506,
202,
759,
971,
1158,
8399,
10557,
16,
1158,
12640,
1240,
2118,
3271,
31,
3434,
326,
8164,
2588,
6397,
18,
202,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
6494,
866,
984,
1213,
3934,
273,
629,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
3338,
300,
1142,
11454,
984,
1213,
3934,
405,
4336,
13,
288,
9506,
202,
1893,
984,
1213,
3934,
273,
638,
31,
9506,
202,
2722,
11454,
984,
1213,
3934,
273,
2037,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
1893,
984,
1213,
3934,
597,
27335,
6667,
3826,
17115,
18,
2722,
4820,
950,
1435,
411,
2037,
300,
20190,
13,
288,
225,
368,
309,
1142,
2605,
1898,
2353,
1381,
3974,
20325,
1082,
202,
759,
12044,
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,
514,
1410,
21705,
691,
12,
6494,
848,
5933,
2961,
1888,
16,
1250,
353,
4600,
16,
1250,
353,
1260,
47,
13,
288,
202,
202,
430,
12,
1330,
6236,
916,
13,
4657,
3216,
8018,
37,
502,
1023,
5621,
9506,
202,
430,
12,
291,
4600,
13,
288,
1082,
202,
430,
12,
588,
2578,
14214,
1435,
405,
4552,
67,
29358,
67,
706,
2123,
8047,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
15607,
14432,
202,
202,
97,
469,
288,
1082,
202,
430,
12,
588,
2578,
6421,
1435,
405,
4552,
67,
29358,
67,
5519,
55,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
3285,
14432,
202,
202,
97,
9506,
202,
9056,
12986,
3595,
6763,
950,
273,
27335,
6667,
3826,
17115,
18,
2
] |
case ParserTreeConstants.JJTWORD :
|
case ParserTreeConstants.JJTFLOATINGPOINTLITERAL : { constant = true; staticObject = new Double(callerReference); break; } case ParserTreeConstants.JJTWORD :
|
private void setup() { switch( type ) { case ParserTreeConstants.JJTINTEGERRANGE : case ParserTreeConstants.JJTREFERENCE : case ParserTreeConstants.JJTOBJECTARRAY : case ParserTreeConstants.JJTMAP : case ParserTreeConstants.JJTSTRINGLITERAL : case ParserTreeConstants.JJTTEXT : { /* * dynamic types, just render */ constant = false; try { /* * fakie : wrap in directive to get the parser to treat our args as args * it doesn't matter that #include() can't take all these types, because we * just want the parser to consider our arg as a Directive/VM arg rather than * as if inline in schmoo */ String buff ="#include(" + callerReference + " ) "; //ByteArrayInputStream inStream = new ByteArrayInputStream( buff.getBytes() ); BufferedReader br = new BufferedReader( new StringReader( buff ) ); nodeTree = rsvc.parse(br, "VMProxyArg:" + callerReference, true); /* * now, our tree really is the first DirectiveArg(), and only one */ nodeTree = (SimpleNode) nodeTree.jjtGetChild(0).jjtGetChild(0); /* * sanity check */ if ( nodeTree != null && nodeTree.getType() != type ) { rsvc.error( "VMProxyArg.setup() : programmer error : type doesn't match node type."); } /* * init. be a good citizen and give it an ICA */ InternalContextAdapter ica = new InternalContextAdapterImpl(new VelocityContext()); ica.pushCurrentTemplateName("VMProxyArg : " + ParserTreeConstants.jjtNodeName[type]); nodeTree.init(ica, rsvc); } catch ( Exception e ) { rsvc.error("VMProxyArg.setup() : exception " + callerReference + " : " + StringUtils.stackTrace(e)); } break; } case ParserTreeConstants.JJTTRUE : { constant = true; staticObject = new Boolean(true); break; } case ParserTreeConstants.JJTFALSE : { constant = true; staticObject = new Boolean(false); break; } case ParserTreeConstants.JJTNUMBERLITERAL : { constant = true; staticObject = new Integer(callerReference); break; } case ParserTreeConstants.JJTWORD : { /* * this is technically an error... */ rsvc.error("Unsupported arg type : " + callerReference + " You most likely intended to call a VM with a string literal, so enclose with ' or \" characters. (VMProxyArg.setup())"); constant = true; staticObject = new String( callerReference ); break; } default : { rsvc.error(" VMProxyArg.setup() : unsupported type : " + callerReference ); } } }
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/VMProxyArg.java/clean/src/java/org/apache/velocity/runtime/directive/VMProxyArg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1435,
565,
288,
3639,
1620,
12,
618,
262,
288,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
14217,
15928,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
14617,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
4296,
38,
5304,
8552,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
8352,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
5804,
23225,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
5151,
294,
5411,
288,
7734,
1748,
1171,
380,
225,
5976,
1953,
16,
2537,
1743,
1171,
1195,
27573,
5381,
273,
629,
31,
7734,
775,
7734,
288,
10792,
1748,
5397,
380,
225,
284,
581,
1385,
294,
2193,
316,
225,
8655,
358,
336,
326,
2082,
358,
10116,
3134,
833,
487,
833,
5397,
380,
282,
518,
3302,
1404,
15177,
716,
468,
6702,
1435,
848,
1404,
4862,
777,
4259,
1953,
16,
2724,
732,
8227,
380,
282,
2537,
2545,
326,
2082,
358,
5260,
3134,
1501,
487,
279,
31081,
19,
7397,
1501,
9178,
2353,
5397,
380,
282,
487,
309,
6370,
316,
18551,
81,
5161,
5397,
1195,
10792,
514,
6139,
273,
6,
7,
6702,
2932,
397,
4894,
2404,
397,
315,
262,
13636,
10792,
368,
8826,
4348,
28987,
273,
394,
16180,
12,
6139,
18,
588,
2160,
1435,
11272,
10792,
10633,
5186,
273,
394,
10633,
12,
394,
26227,
12,
6139,
262,
11272,
10792,
756,
2471,
273,
3597,
4227,
18,
2670,
12,
2848,
16,
315,
7397,
3886,
4117,
2773,
397,
4894,
2404,
16,
638,
1769,
10792,
1748,
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,
3875,
1435,
565,
288,
3639,
1620,
12,
618,
262,
288,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
14217,
15928,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
14617,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
4296,
38,
5304,
8552,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
8352,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
5804,
23225,
294,
3639,
648,
6783,
2471,
2918,
18,
46,
46,
56,
5151,
294,
5411,
288,
7734,
1748,
1171,
380,
225,
5976,
1953,
16,
2537,
1743,
1171,
1195,
27573,
5381,
273,
629,
31,
7734,
775,
7734,
288,
10792,
1748,
5397,
380,
225,
284,
581,
1385,
294,
2193,
316,
225,
8655,
2
] |
public void actionPerformed(ActionEvent evt) { DefaultPortletAction _action = evt.getAction(); PortletRequest req = evt.getPortletRequest(); FormEvent form = new FormEventImpl(evt); String button = form.getPressedSubmitButton(); if (_action.getName().equals("rss_edit")) { if (button.equals("show")) { String temp_url = req.getParameter("rss_url"); if (!temp_url.equals(_url)) { _lastFetched = 0; _url=temp_url; } req.setMode(Portlet.Mode.VIEW); } if (button.equals("cancel")) { req.setMode(Portlet.Mode.VIEW); } if (button.equals("check")) { //@TODO need to put the RSS feed into a bean! req.setMode(Portlet.Mode.EDIT); Document doc = getRSSFeed(req.getParameter("rss_url")); Element root = doc.getRootElement(); String version = root.getAttributeValue("version"); if (version.equals("2.0")) { req.setAttribute("rss_support","yes");} else {req.setAttribute("rss_support","no");} } } if (_action.getName().equals("rss_configure")) { if (button.equals("cancel")) { req.setMode(Portlet.Mode.VIEW); } if (button.equals("delete")) { String[] result = form.getSelectedListBoxValues("Labeltest"); for (int i=0;i<result.length;i++) { model.removeItem(result[i]); } } if (button.equals("ok")) { String[] result = form.getSelectedListBoxValues("Labeltest"); req.setMode(Portlet.Mode.VIEW); } if (button.equals("add")) { String name = req.getParameter("rss_name"); String url = req.getParameter("rss_url"); model.addItem(new ListSelectItem(name, url, true)); model.unselectAll(); String result[] = form.getSelectedCheckBoxValues(cbmodel.getName()); selectedcheckboxes = ""; for (int i=0;i<result.length;i++) { selectedcheckboxes = selectedcheckboxes+" "+result[i]; } model = form.adjustListBoxModel(model);/* cbmodel.unselectAll(); for (int i=0;i<result.length;i++) { ((CheckBoxItem)cbmodel.getItem(result[i])).setSelected(true); }*/ } } }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/b7465ff52409f23642db1195f574b8e548a3cb16/RSSPortlet.java/buggy/src/org/gridlab/gridsphere/portlets/core/RSSPortlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1128,
13889,
12,
1803,
1133,
73,
11734,
15329,
1868,
18566,
1803,
67,
1128,
33,
73,
11734,
18,
588,
1803,
5621,
18566,
691,
3658,
33,
73,
11734,
18,
588,
18566,
691,
5621,
1204,
1133,
687,
33,
2704,
1204,
1133,
2828,
12,
73,
11734,
1769,
780,
5391,
33,
687,
18,
588,
24624,
11620,
3616,
5621,
430,
24899,
1128,
18,
17994,
7675,
14963,
2932,
25151,
67,
4619,
6,
3719,
95,
430,
12,
5391,
18,
14963,
2932,
4500,
6,
3719,
95,
780,
5814,
67,
718,
33,
3658,
18,
588,
1662,
2932,
25151,
67,
718,
8863,
430,
12,
5,
5814,
67,
718,
18,
14963,
24899,
718,
3719,
95,
67,
2722,
30771,
33,
20,
31,
67,
718,
33,
5814,
67,
718,
31,
97,
3658,
18,
542,
2309,
12,
18566,
18,
2309,
18,
12145,
1769,
97,
430,
12,
5391,
18,
14963,
2932,
10996,
6,
3719,
95,
3658,
18,
542,
2309,
12,
18566,
18,
2309,
18,
12145,
1769,
97,
430,
12,
5391,
18,
14963,
2932,
1893,
6,
3719,
95,
759,
36,
56,
1212,
3335,
329,
869,
458,
5787,
31211,
7848,
18591,
378,
73,
304,
5,
3658,
18,
542,
2309,
12,
18566,
18,
2309,
18,
10776,
1769,
2519,
2434,
33,
588,
31211,
8141,
12,
3658,
18,
588,
1662,
2932,
25151,
67,
718,
7923,
1769,
1046,
3085,
33,
2434,
18,
588,
2375,
1046,
5621,
780,
1589,
33,
3085,
18,
588,
14942,
2932,
1589,
8863,
430,
12,
1589,
18,
14963,
2932,
22,
18,
20,
6,
3719,
95,
3658,
18,
542,
1499,
2932,
25151,
67,
13261,
15937,
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,
1128,
13889,
12,
1803,
1133,
73,
11734,
15329,
1868,
18566,
1803,
67,
1128,
33,
73,
11734,
18,
588,
1803,
5621,
18566,
691,
3658,
33,
73,
11734,
18,
588,
18566,
691,
5621,
1204,
1133,
687,
33,
2704,
1204,
1133,
2828,
12,
73,
11734,
1769,
780,
5391,
33,
687,
18,
588,
24624,
11620,
3616,
5621,
430,
24899,
1128,
18,
17994,
7675,
14963,
2932,
25151,
67,
4619,
6,
3719,
95,
430,
12,
5391,
18,
14963,
2932,
4500,
6,
3719,
95,
780,
5814,
67,
718,
33,
3658,
18,
588,
1662,
2932,
25151,
67,
718,
8863,
430,
12,
5,
5814,
67,
718,
18,
14963,
24899,
718,
3719,
95,
67,
2722,
30771,
33,
20,
31,
67,
718,
33,
5814,
67,
718,
31,
97,
2
] |
||
Projection proj = ProjectionFactory.makeProjection(CADRG.class, 42.0f, -72.0f, 5000000f, 500, 500);
|
public GeneratorTester(String[] args) { props = System.getProperties(); Debug.init(props); parseArgs(args); try { URL propsURL = new URL(propertiesURLString); Environment.init(props); loadProperties(propsURL, props); } catch (MalformedURLException mul) { System.out.println("GeneratorTester: Malformed URL"); return; } Projection proj = ProjectionFactory.makeProjection(CADRG.class, 42.0f, -72.0f, 5000000f, 500, 500); server = new ImageServer(props); // server.createImage(proj, this); }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/22d1965e37c33827a0f0ebf37de303c8349f6911/GeneratorTester.java/clean/src/openmap/com/bbn/openmap/image/GeneratorTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10159,
56,
7654,
12,
780,
8526,
833,
13,
288,
3639,
3458,
273,
2332,
18,
588,
2297,
5621,
3639,
4015,
18,
2738,
12,
9693,
1769,
3639,
1109,
2615,
12,
1968,
1769,
3639,
775,
288,
5411,
1976,
3458,
1785,
273,
394,
1976,
12,
4738,
1785,
780,
1769,
5411,
7518,
18,
2738,
12,
9693,
1769,
5411,
1262,
2297,
12,
9693,
1785,
16,
3458,
1769,
3639,
289,
1044,
261,
18695,
20160,
14064,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3908,
56,
7654,
30,
13311,
1976,
8863,
5411,
327,
31,
3639,
289,
3639,
21288,
10296,
273,
21288,
1733,
18,
6540,
14789,
12,
39,
1880,
19380,
18,
1106,
16,
7734,
14856,
18,
20,
74,
16,
7734,
300,
9060,
18,
20,
74,
16,
7734,
1381,
9449,
74,
16,
7734,
6604,
16,
7734,
6604,
1769,
3639,
1438,
273,
394,
3421,
2081,
12,
9693,
1769,
3639,
368,
1377,
1438,
18,
2640,
2040,
12,
17995,
16,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10159,
56,
7654,
12,
780,
8526,
833,
13,
288,
3639,
3458,
273,
2332,
18,
588,
2297,
5621,
3639,
4015,
18,
2738,
12,
9693,
1769,
3639,
1109,
2615,
12,
1968,
1769,
3639,
775,
288,
5411,
1976,
3458,
1785,
273,
394,
1976,
12,
4738,
1785,
780,
1769,
5411,
7518,
18,
2738,
12,
9693,
1769,
5411,
1262,
2297,
12,
9693,
1785,
16,
3458,
1769,
3639,
289,
1044,
261,
18695,
20160,
14064,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3908,
56,
7654,
30,
13311,
1976,
8863,
5411,
327,
31,
3639,
289,
3639,
21288,
10296,
273,
21288,
1733,
18,
6540,
14789,
12,
39,
1880,
19380,
18,
1106,
16,
7734,
14856,
18,
20,
74,
16,
7734,
300,
9060,
18,
20,
74,
2
] |
|
public synchronized ResultSet ExecSQL(String sql) throws SQLException
|
public ResultSet ExecSQL(String sql) throws SQLException
|
public synchronized ResultSet ExecSQL(String sql) throws SQLException { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = new byte[sql.length()]; int fqp = 0; boolean hfr = false; String recv_status = null, msg; SQLException final_error = null; if (sql.length() > 8192) throw new SQLException("SQL Statement too long: " + sql); try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new SQLException("I/O Error: " + e.toString()); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new SQLException("Tuple received before MetaData"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new SQLException("I/O Error: " + e.toString()); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new SQLException("Tuple received before MetaData"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new SQLException("Garbled Data"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new SQLException("Cannot handle multiple result groups"); fields = ReceiveFields(); break; default: throw new SQLException("Unknown Response Type: " + (char)c); } } if (final_error != null) throw final_error; return new ResultSet(this, fields, tuples, recv_status, 1); }
|
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/25b5faa7cdcb6c7cefc438bd5cd5e0141c7df0b4/Connection.java/buggy/src/interfaces/jdbc/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10842,
3889,
3997,
12,
780,
1847,
13,
1216,
6483,
225,
288,
565,
2286,
8526,
1466,
273,
446,
31,
565,
5589,
10384,
273,
394,
5589,
5621,
565,
1160,
8526,
1681,
273,
394,
1160,
63,
4669,
18,
2469,
1435,
15533,
565,
509,
8508,
84,
273,
374,
31,
565,
1250,
366,
4840,
273,
629,
31,
565,
514,
10665,
67,
2327,
273,
446,
16,
1234,
31,
565,
6483,
727,
67,
1636,
273,
446,
31,
3639,
309,
261,
4669,
18,
2469,
1435,
405,
26730,
13,
1377,
604,
394,
6483,
2932,
3997,
8056,
4885,
1525,
30,
315,
397,
1847,
1769,
565,
775,
1377,
288,
202,
8365,
67,
3256,
18,
3826,
2156,
2668,
53,
8284,
202,
4385,
273,
1847,
18,
588,
2160,
5621,
202,
8365,
67,
3256,
18,
3826,
12,
4385,
1769,
202,
8365,
67,
3256,
18,
3826,
2156,
12,
20,
1769,
202,
8365,
67,
3256,
18,
11330,
5621,
1377,
289,
1044,
261,
14106,
425,
13,
288,
202,
12849,
394,
6483,
2932,
45,
19,
51,
1068,
30,
315,
397,
425,
18,
10492,
10663,
1377,
289,
5411,
1323,
16051,
76,
4840,
747,
8508,
84,
405,
374,
13,
202,
95,
202,
225,
1033,
15822,
33,
2011,
31,
202,
759,
14798,
2595,
487,
2898,
854,
1950,
1385,
2155,
202,
21114,
225,
509,
276,
273,
7184,
67,
3256,
18,
11323,
2156,
5621,
202,
21114,
225,
1620,
261,
71,
13,
202,
565,
288,
202,
565,
648,
296,
37,
4278,
202,
759,
2970,
7121,
10918,
202,
1377,
509,
4231,
273,
7184,
67,
3256,
18,
11323,
4522,
12,
24,
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,
10842,
3889,
3997,
12,
780,
1847,
13,
1216,
6483,
225,
288,
565,
2286,
8526,
1466,
273,
446,
31,
565,
5589,
10384,
273,
394,
5589,
5621,
565,
1160,
8526,
1681,
273,
394,
1160,
63,
4669,
18,
2469,
1435,
15533,
565,
509,
8508,
84,
273,
374,
31,
565,
1250,
366,
4840,
273,
629,
31,
565,
514,
10665,
67,
2327,
273,
446,
16,
1234,
31,
565,
6483,
727,
67,
1636,
273,
446,
31,
3639,
309,
261,
4669,
18,
2469,
1435,
405,
26730,
13,
1377,
604,
394,
6483,
2932,
3997,
8056,
4885,
1525,
30,
315,
397,
1847,
1769,
565,
775,
1377,
288,
202,
8365,
67,
3256,
18,
3826,
2156,
2668,
53,
8284,
202,
4385,
273,
1847,
18,
588,
2160,
5621,
202,
2
] |
contentProvider.setProgressMessage(getMessage());
|
if (!isCanceled()) contentProvider.setProgressMessage(getMessage());
|
public void internalWorked(double work) { worked = worked + work; if ((((int) (((worked - work) * 10) / totalWork)) < ((int) ((worked * 10) / totalWork))) || (((int) ((worked * 10) / totalWork)) == 0)) contentProvider.setProgressMessage(getMessage()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7771ecca6b526e14ab62730f7f842aafab029250/FilteredItemsSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2713,
2421,
329,
12,
9056,
1440,
13,
288,
1082,
202,
1252,
329,
273,
28613,
397,
1440,
31,
1082,
202,
430,
261,
12443,
12,
474,
13,
261,
12443,
1252,
329,
300,
1440,
13,
380,
1728,
13,
342,
2078,
2421,
3719,
411,
14015,
474,
13,
14015,
1252,
329,
380,
1728,
13,
342,
2078,
2421,
20349,
6862,
202,
20081,
261,
12443,
474,
13,
14015,
1252,
329,
380,
1728,
13,
342,
2078,
2421,
3719,
422,
374,
3719,
9506,
202,
1745,
2249,
18,
542,
5491,
1079,
12,
24906,
10663,
202,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2713,
2421,
329,
12,
9056,
1440,
13,
288,
1082,
202,
1252,
329,
273,
28613,
397,
1440,
31,
1082,
202,
430,
261,
12443,
12,
474,
13,
261,
12443,
1252,
329,
300,
1440,
13,
380,
1728,
13,
342,
2078,
2421,
3719,
411,
14015,
474,
13,
14015,
1252,
329,
380,
1728,
13,
342,
2078,
2421,
20349,
6862,
202,
20081,
261,
12443,
474,
13,
14015,
1252,
329,
380,
1728,
13,
342,
2078,
2421,
3719,
422,
374,
3719,
9506,
202,
1745,
2249,
18,
542,
5491,
1079,
12,
24906,
10663,
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
] |
float startTime = ((float) startFeature.getFirstSampleNumber()/
|
float startTime = startFeature==null ? -1 :((float) startFeature.getFirstSampleNumber()/
|
private void addWord(StringBuffer sb, Word word, FloatData startFeature, FloatData endFeature) { float startTime = ((float) startFeature.getFirstSampleNumber()/ startFeature.getSampleRate()); float endTime = ((float) endFeature.getFirstSampleNumber()/ endFeature.getSampleRate()); if (sb.length() > 0) { sb.insert(0, " "); } sb.insert(0, (word.getSpelling() + "(" + startTime + "," + endTime + ")")); }
|
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/53aba2966df0a604658ae1e0c7a34ebc924b2624/Result.java/clean/src/sphinx4/edu/cmu/sphinx/result/Result.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
3944,
12,
780,
1892,
2393,
16,
9926,
2076,
16,
7682,
5450,
751,
787,
4595,
16,
5450,
751,
679,
4595,
13,
288,
3639,
1431,
8657,
273,
14015,
5659,
13,
787,
4595,
18,
588,
3759,
8504,
1854,
1435,
19,
9506,
282,
787,
4595,
18,
588,
8504,
4727,
10663,
3639,
1431,
13859,
273,
14015,
5659,
13,
679,
4595,
18,
588,
3759,
8504,
1854,
1435,
19,
9506,
679,
4595,
18,
588,
8504,
4727,
10663,
3639,
309,
261,
18366,
18,
2469,
1435,
405,
374,
13,
288,
5411,
2393,
18,
6387,
12,
20,
16,
315,
315,
1769,
3639,
289,
3639,
2393,
18,
6387,
12,
20,
16,
261,
1095,
18,
588,
3389,
1165,
310,
1435,
397,
12452,
397,
8657,
397,
5753,
397,
15604,
13859,
397,
7310,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
3944,
12,
780,
1892,
2393,
16,
9926,
2076,
16,
7682,
5450,
751,
787,
4595,
16,
5450,
751,
679,
4595,
13,
288,
3639,
1431,
8657,
273,
14015,
5659,
13,
787,
4595,
18,
588,
3759,
8504,
1854,
1435,
19,
9506,
282,
787,
4595,
18,
588,
8504,
4727,
10663,
3639,
1431,
13859,
273,
14015,
5659,
13,
679,
4595,
18,
588,
3759,
8504,
1854,
1435,
19,
9506,
679,
4595,
18,
588,
8504,
4727,
10663,
3639,
309,
261,
18366,
18,
2469,
1435,
405,
374,
13,
288,
5411,
2393,
18,
6387,
12,
20,
16,
315,
315,
1769,
3639,
289,
3639,
2393,
18,
6387,
12,
20,
16,
261,
1095,
18,
588,
3389,
1165,
310,
1435,
397,
12452,
397,
8657,
397,
5753,
397,
2
] |
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID();
|
public quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { quickfix.field.NoSecurityAltID value = new quickfix.field.NoSecurityAltID();
|
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AssignmentReport.java/buggy/src/java/src/quickfix/fix44/AssignmentReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
4368,
10655,
734,
336,
2279,
4368,
10655,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
4368,
10655,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
4368,
10655,
734,
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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
4368,
10655,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
4368,
10655,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
4368,
10655,
734,
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
] |
ObjectName objectName = new ObjectName( brokerObjectName.getDomain()+":"+ "BrokerName="+map.get("BrokerName")+","+ "Type="+JMXSupport.encodeObjectNamePart(destName.getDestinationTypeAsString())+","+ "Destination="+JMXSupport.encodeObjectNamePart(destName.getPhysicalName()) );
|
ObjectName objectName = createObjectName(destName);
|
public void register(ActiveMQDestination destName,Destination destination){ // Build the object name for the destination Hashtable map=brokerObjectName.getKeyPropertyList(); try{ ObjectName objectName = new ObjectName( brokerObjectName.getDomain()+":"+ "BrokerName="+map.get("BrokerName")+","+ "Type="+JMXSupport.encodeObjectNamePart(destName.getDestinationTypeAsString())+","+ "Destination="+JMXSupport.encodeObjectNamePart(destName.getPhysicalName()) ); DestinationView view; if(destination instanceof Queue){ view=new QueueView(this, (Queue) destination); }else{ view=new TopicView(this, (Topic) destination); } registerDestination(objectName,destName,view); }catch(Exception e){ log.error("Failed to register destination "+destName,e); } }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/3cd3fd364e90595c59b33c3466bf9559fdc9a051/ManagedRegionBroker.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagedRegionBroker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
12,
3896,
9682,
5683,
1570,
461,
16,
5683,
2929,
15329,
3639,
368,
3998,
326,
733,
508,
364,
326,
2929,
3639,
18559,
852,
33,
21722,
16707,
18,
588,
653,
1396,
682,
5621,
3639,
775,
95,
540,
202,
16707,
12282,
273,
394,
21013,
12,
540,
1082,
202,
21722,
16707,
18,
588,
3748,
1435,
9078,
2773,
15,
2398,
202,
202,
6,
11194,
461,
1546,
15,
1458,
18,
588,
2932,
11194,
461,
7923,
15,
15937,
15,
2398,
202,
202,
6,
559,
1546,
15,
46,
13874,
6289,
18,
3015,
16707,
1988,
12,
10488,
461,
18,
588,
5683,
559,
8092,
10756,
15,
15937,
15,
10792,
315,
5683,
1546,
15,
46,
13874,
6289,
18,
3015,
16707,
1988,
12,
10488,
461,
18,
588,
18136,
461,
10756,
2398,
202,
202,
1769,
5411,
10691,
1767,
1476,
31,
5411,
309,
12,
10590,
1276,
7530,
15329,
7734,
1476,
33,
2704,
7530,
1767,
12,
2211,
16,
261,
3183,
13,
2929,
1769,
5411,
289,
12107,
95,
7734,
1476,
33,
2704,
11789,
1767,
12,
2211,
16,
261,
6657,
13,
2929,
1769,
5411,
289,
5411,
1744,
5683,
12,
1612,
461,
16,
10488,
461,
16,
1945,
1769,
3639,
289,
14683,
12,
503,
425,
15329,
5411,
613,
18,
1636,
2932,
2925,
358,
1744,
2929,
13773,
10488,
461,
16,
73,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
12,
3896,
9682,
5683,
1570,
461,
16,
5683,
2929,
15329,
3639,
368,
3998,
326,
733,
508,
364,
326,
2929,
3639,
18559,
852,
33,
21722,
16707,
18,
588,
653,
1396,
682,
5621,
3639,
775,
95,
540,
202,
16707,
12282,
273,
394,
21013,
12,
540,
1082,
202,
21722,
16707,
18,
588,
3748,
1435,
9078,
2773,
15,
2398,
202,
202,
6,
11194,
461,
1546,
15,
1458,
18,
588,
2932,
11194,
461,
7923,
15,
15937,
15,
2398,
202,
202,
6,
559,
1546,
15,
46,
13874,
6289,
18,
3015,
16707,
1988,
12,
10488,
461,
18,
588,
5683,
559,
8092,
10756,
15,
15937,
15,
10792,
315,
5683,
1546,
15,
46,
13874,
6289,
18,
3015,
16707,
1988,
12,
10488,
461,
18,
588,
2
] |
public UdpEventReceiver(int port)
|
public UdpEventReceiver()
|
public UdpEventReceiver(int port) { m_dgSock = null; m_dgPort = port; m_eventsIn = new LinkedList(); m_eventUuidsOut = new LinkedList(); m_handlers = new ArrayList(3); m_status = START_PENDING; m_dgSock = null; m_receiver = null; m_processor= null; m_output = null; m_logPrefix = null; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b3612967cb053036bdb295ee74cb2e369c6ca18d/UdpEventReceiver.java/buggy/src/services/org/opennms/netmgt/eventd/adaptors/udp/UdpEventReceiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
587,
9295,
1133,
12952,
12,
474,
1756,
13,
202,
95,
202,
202,
81,
67,
72,
75,
55,
975,
225,
273,
446,
31,
202,
202,
81,
67,
72,
75,
2617,
225,
273,
1756,
31,
202,
202,
81,
67,
5989,
382,
273,
394,
10688,
5621,
202,
202,
81,
67,
2575,
5897,
87,
1182,
273,
394,
10688,
5621,
202,
202,
81,
67,
11046,
273,
394,
2407,
12,
23,
1769,
202,
202,
81,
67,
2327,
282,
273,
10485,
67,
25691,
31,
3196,
202,
81,
67,
72,
75,
55,
975,
273,
446,
31,
202,
202,
81,
67,
24454,
273,
446,
31,
202,
202,
81,
67,
8700,
33,
446,
31,
202,
202,
81,
67,
2844,
282,
273,
446,
31,
202,
202,
81,
67,
1330,
2244,
273,
446,
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,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,
382,
273,
394,
10688,
5621,
202,
202,
81,
67,
2575,
5897,
87,
1182,
273,
394,
10688,
5621,
202,
202,
81,
67,
11046,
273,
394,
2407,
12,
23,
1769,
202,
202,
81,
67,
2327,
282,
273,
10485,
67,
25691,
31,
3196,
202,
81,
67,
72,
75,
55,
975,
273,
446,
31,
202,
202,
81,
67,
24454,
273,
446,
31,
202,
202,
81,
67,
8700,
33,
446,
31,
202,
202,
81,
67,
2844,
282,
273,
446,
31,
202,
202,
81,
2
] |
public boolean overwrite(){
|
public boolean overwrite() {
|
public boolean overwrite(){ return overwriteCheckBox.getSelection(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d521af257a07fb9dabe2dcd3820e458458d5b5f9/TaskDataExportWizardPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/TaskDataExportWizardPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6156,
1435,
95,
202,
202,
2463,
6156,
19174,
18,
588,
6233,
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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,
202,
482,
1250,
6156,
1435,
95,
202,
202,
2463,
6156,
19174,
18,
588,
6233,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 testStructureTagScoping_1() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); //$NON-NLS-1$ buffer.append("void f(){ \n"); //$NON-NLS-1$ buffer.append(" struct A; \n"); //$NON-NLS-1$ buffer.append(" struct A * a; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); //struct A; IASTSimpleDeclaration decl1 = (IASTSimpleDeclaration) tu .getDeclarations()[0]; IASTElaboratedTypeSpecifier compTypeSpec = (IASTElaboratedTypeSpecifier) decl1 .getDeclSpecifier(); assertEquals(0, decl1.getDeclarators().length); IASTName nameA1 = compTypeSpec.getName(); //void f() { IASTFunctionDefinition fndef = (IASTFunctionDefinition) tu .getDeclarations()[1]; IASTCompoundStatement compoundStatement = (IASTCompoundStatement) fndef .getBody(); assertEquals(2, compoundStatement.getStatements().length); // struct A; IASTDeclarationStatement declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[0]; IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl2.getDeclSpecifier(); assertEquals(0, decl2.getDeclarators().length); IASTName nameA2 = compTypeSpec.getName(); // struct A * a; declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[1]; IASTSimpleDeclaration decl3 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl3.getDeclSpecifier(); IASTName nameA3 = compTypeSpec.getName(); IASTDeclarator dtor = decl3.getDeclarators()[0]; IASTName namea = dtor.getName(); assertEquals(1, dtor.getPointerOperators().length); assertTrue(dtor.getPointerOperators()[0] instanceof ICASTPointer); //bindings ICompositeType str1 = (ICompositeType) nameA1.resolveBinding(); ICompositeType str2 = (ICompositeType) nameA2.resolveBinding(); IVariable var = (IVariable) namea.resolveBinding(); IType str3pointer = var.getType(); assertTrue(str3pointer instanceof IPointerType); ICompositeType str3 = (ICompositeType) ((IPointerType) str3pointer) .getType(); ICompositeType str4 = (ICompositeType) nameA3.resolveBinding(); assertNotNull(str1); assertNotNull(str2); assertNotSame(str1, str2); assertSame(str2, str3); assertSame(str3, str4); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(nameA1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA1); decls = tu.getDeclarations(fndef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fndef.getDeclarator().getName()); decls = tu.getDeclarations(nameA2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA2); decls = tu.getDeclarations(nameA3.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA2); decls = tu.getDeclarations(namea.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], namea); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/78f1bf90544259bc8541128f8a50137b3f49f862/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6999,
1805,
1541,
22384,
67,
21,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
1697,
432,
31,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
6459,
284,
1435,
95,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
282,
1958,
432,
31,
1850,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
282,
1958,
432,
380,
279,
31,
1377,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
5397,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
3639,
368,
1697,
432,
31,
3639,
467,
9053,
5784,
6094,
3496,
21,
273,
261,
45,
9053,
5784,
6094,
13,
28325,
7734,
263,
588,
21408,
1435,
63,
20,
15533,
3639,
467,
9053,
4958,
378,
280,
690,
559,
21416,
1161,
559,
1990,
273,
261,
45,
9053,
4958,
378,
280,
690,
559,
21416,
13,
3496,
21,
7734,
263,
588,
3456,
21416,
5621,
3639,
1815,
8867,
12,
20,
16,
3496,
21,
18,
588,
3456,
297,
3062,
7675,
2469,
1769,
3639,
467,
9053,
461,
508,
37,
21,
273,
1161,
559,
1990,
18,
17994,
5621,
3639,
368,
6459,
284,
1435,
288,
3639,
467,
9053,
2083,
1852,
2295,
536,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
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,
6999,
1805,
1541,
22384,
67,
21,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
1697,
432,
31,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
6459,
284,
1435,
95,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
282,
1958,
432,
31,
1850,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
282,
1958,
432,
380,
279,
31,
1377,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
5397,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
2
] |
||
/***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; }
|
} else { ch = -1;
|
public boolean scanExpr(StringPool stringPool, XPath.Tokens tokens, String data, int currentOffset, int endOffset) throws XPathException { int nameOffset; int nameHandle, prefixHandle; boolean starIsMultiplyOperator = false; int ch; /*** if (XPath.Tokens.DUMP_TOKENS) { System.out.println(" <test>"); System.out.println(" <expression>"); System.out.println(" " + encoding.createString(data, currentOffset, endOffset - currentOffset)); System.out.println(" </expression>"); } /***/ while (true) { if (currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ // // [39] ExprWhitespace ::= S // while (ch == ' ' || ch == 0x0A || ch == 0x09 || ch == 0x0D) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } if (currentOffset == endOffset) { break; } // // [28] ExprToken ::= '(' | ')' | '[' | ']' | '.' | '..' | '@' | ',' | '::' // | NameTest | NodeType | Operator | FunctionName // | AxisName | Literal | Number | VariableReference // byte chartype = (ch >= 0x80) ? CHARTYPE_NONASCII : fASCIICharMap[ch]; switch (chartype) { case CHARTYPE_OPEN_PAREN: // '(' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_PAREN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_CLOSE_PAREN: // ')' addToken(tokens, XPath.Tokens.EXPRTOKEN_CLOSE_PAREN); starIsMultiplyOperator = true; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_OPEN_BRACKET: // '[' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_BRACKET); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_CLOSE_BRACKET: // ']' addToken(tokens, XPath.Tokens.EXPRTOKEN_CLOSE_BRACKET); starIsMultiplyOperator = true; if (++currentOffset == endOffset) { break; } break; // // [30] Number ::= Digits ('.' Digits?)? | '.' Digits // ^^^^^^^^^^ // case CHARTYPE_PERIOD: // '.', '..' or '.' Digits if (currentOffset + 1 == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_PERIOD); starIsMultiplyOperator = true; currentOffset++; break; } /*** ch = (data[currentOffset + 1] & 0xFF); /***/ ch = data.charAt(currentOffset + 1); /***/ if (ch == '.') { // '..' addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_PERIOD); starIsMultiplyOperator = true; currentOffset += 2; } else if (ch >= '0' && ch <= '9') { addToken(tokens, XPath.Tokens.EXPRTOKEN_NUMBER); starIsMultiplyOperator = true; currentOffset = scanNumber(tokens, data, endOffset, currentOffset/*, encoding*/); } else { // '.' addToken(tokens, XPath.Tokens.EXPRTOKEN_PERIOD); starIsMultiplyOperator = true; currentOffset++; } if (currentOffset == endOffset) { break; } break; case CHARTYPE_ATSIGN: // '@' addToken(tokens, XPath.Tokens.EXPRTOKEN_ATSIGN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_COMMA: // ',' addToken(tokens, XPath.Tokens.EXPRTOKEN_COMMA); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_COLON: // '::' if (++currentOffset == endOffset) { System.out.println("abort 1a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch != ':') { System.out.println("abort 1b"); return false; // REVISIT } addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_COLON); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_SLASH: // '/' and '//' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_SLASH); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '/') { // '//' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_DOUBLE_SLASH); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_SLASH); starIsMultiplyOperator = false; } break; case CHARTYPE_UNION: // '|' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_UNION); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_PLUS: // '+' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_PLUS); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_MINUS: // '-' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MINUS); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_EQUAL: // '=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_EXCLAMATION: // '!=' if (++currentOffset == endOffset) { System.out.println("abort 2a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch != '=') { System.out.println("abort 2b"); return false; // REVISIT } addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_NOT_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_LESS: // '<' and '<=' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '=') { // '<=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS); starIsMultiplyOperator = false; } break; case CHARTYPE_GREATER: // '>' and '>=' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '=') { // '>=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER); starIsMultiplyOperator = false; } break; // // [29] Literal ::= '"' [^"]* '"' | "'" [^']* "'" // case CHARTYPE_QUOTE: // '\"' or '\'' int qchar = ch; if (++currentOffset == endOffset) { System.out.println("abort 2c"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ int litOffset = currentOffset; while (ch != qchar) { if (++currentOffset == endOffset) { System.out.println("abort 2d"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } int litLength = currentOffset - litOffset; addToken(tokens, XPath.Tokens.EXPRTOKEN_LITERAL); starIsMultiplyOperator = true; /*** addToken(tokens, tokens.addSymbol(data, litOffset, litLength, encoding)); /***/ tokens.addToken(stringPool.addSymbol(data.substring(litOffset, litOffset + litLength))); /***/ if (++currentOffset == endOffset) { break; } break; // // [30] Number ::= Digits ('.' Digits?)? | '.' Digits // [31] Digits ::= [0-9]+ // case CHARTYPE_DIGIT: addToken(tokens, XPath.Tokens.EXPRTOKEN_NUMBER); starIsMultiplyOperator = true; currentOffset = scanNumber(tokens, data, endOffset, currentOffset/*, encoding*/); break; // // [36] VariableReference ::= '$' QName // case CHARTYPE_DOLLAR: if (++currentOffset == endOffset) { System.out.println("abort 3a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 3b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ if (ch != ':') { prefixHandle = -1; } else { prefixHandle = nameHandle; if (++currentOffset == endOffset) { System.out.println("abort 4a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 4b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ } addToken(tokens, XPath.Tokens.EXPRTOKEN_VARIABLE_REFERENCE); starIsMultiplyOperator = true; tokens.addToken(prefixHandle); tokens.addToken(nameHandle); break; // // [37] NameTest ::= '*' | NCName ':' '*' | QName // [34] MultiplyOperator ::= '*' // case CHARTYPE_STAR: // '*' // // 3.7 Lexical Structure // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then a * must be recognized as a MultiplyOperator. // // Otherwise, the token must not be recognized as a MultiplyOperator. // if (starIsMultiplyOperator) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MULT); starIsMultiplyOperator = false; } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_ANY); starIsMultiplyOperator = true; } if (++currentOffset == endOffset) { break; } break; // // NCName, QName and non-terminals // case CHARTYPE_NONASCII: // possibly a valid non-ascii 'Letter' (BaseChar | Ideographic) throw new RuntimeException("need encoding support"); case CHARTYPE_LETTER: case CHARTYPE_UNDERSCORE: // // 3.7 Lexical Structure // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then an NCName must be recognized as an OperatorName. // // If the character following an NCName (possibly after intervening ExprWhitespace) is (, // then the token must be recognized as a NodeType or a FunctionName. // // If the two characters following an NCName (possibly after intervening ExprWhitespace) // are ::, then the token must be recognized as an AxisName. // // Otherwise, the token must not be recognized as an OperatorName, a NodeType, a // FunctionName, or an AxisName. // // [33] OperatorName ::= 'and' | 'or' | 'mod' | 'div' // [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node' // [35] FunctionName ::= QName - NodeType // [6] AxisName ::= (see above) // // [37] NameTest ::= '*' | NCName ':' '*' | QName // [5] NCName ::= (Letter | '_') (NCNameChar)* // [?] NCNameChar ::= Letter | Digit | '.' | '-' | '_' (ascii subset of 'NCNameChar') // [?] QName ::= (NCName ':')? NCName // [?] Letter ::= [A-Za-z] (ascii subset of 'Letter') // [?] Digit ::= [0-9] (ascii subset of 'Digit') // nameOffset = currentOffset; while (true) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ boolean isNameTestNCName = false; boolean isAxisName = false; prefixHandle = -1; if (ch == ':') { if (++currentOffset == endOffset) { System.out.println("abort 5"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '*') { if (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } isNameTestNCName = true; } else if (ch == ':') { if (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } isAxisName = true; } else { prefixHandle = nameHandle; nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 5b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ } } // // [39] ExprWhitespace ::= S // while (ch == ' ' || ch == 0x0A || ch == 0x09 || ch == 0x0D) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then an NCName must be recognized as an OperatorName. // if (starIsMultiplyOperator) { if (nameHandle == fAndSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_AND); starIsMultiplyOperator = false; } else if (nameHandle == fOrSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_OR); starIsMultiplyOperator = false; } else if (nameHandle == fModSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MOD); starIsMultiplyOperator = false; } else if (nameHandle == fDivSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_DIV); starIsMultiplyOperator = false; } else { System.out.println("abort 6"); return false; // REVISIT } if (isNameTestNCName) { System.out.println("abort 7"); return false; // REVISIT - NCName:* where an OperatorName is required } else if (isAxisName) { System.out.println("abort 8"); return false; // REVISIT - AxisName:: where an OperatorName is required } break; } // // If the character following an NCName (possibly after intervening ExprWhitespace) is (, // then the token must be recognized as a NodeType or a FunctionName. // if (ch == '(' && !isNameTestNCName && !isAxisName) { if (nameHandle == fCommentSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_COMMENT); } else if (nameHandle == fTextSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_TEXT); } else if (nameHandle == fPISymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_PI); } else if (nameHandle == fNodeSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_NODE); } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_FUNCTION_NAME); tokens.addToken(prefixHandle); tokens.addToken(nameHandle); } addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_PAREN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; } // // If the two characters following an NCName (possibly after intervening ExprWhitespace) // are ::, then the token must be recognized as an AxisName. // if (isAxisName || (ch == ':' && currentOffset + 1 < endOffset && /*** (data[currentOffset + 1] & 0xFF) == ':')) { /***/ data.charAt(currentOffset + 1) == ':')) { /***/ if (nameHandle == fAncestorSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ANCESTOR); } else if (nameHandle == fAncestorOrSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ANCESTOR_OR_SELF); } else if (nameHandle == fAttributeSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ATTRIBUTE); } else if (nameHandle == fChildSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_CHILD); } else if (nameHandle == fDescendantSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_DESCENDANT); } else if (nameHandle == fDescendantOrSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_DESCENDANT_OR_SELF); } else if (nameHandle == fFollowingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_FOLLOWING); } else if (nameHandle == fFollowingSiblingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_FOLLOWING_SIBLING); } else if (nameHandle == fNamespaceSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_NAMESPACE); } else if (nameHandle == fParentSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PARENT); } else if (nameHandle == fPrecedingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PRECEDING); } else if (nameHandle == fPrecedingSiblingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PRECEDING_SIBLING); } else if (nameHandle == fSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_SELF); } else { System.out.println("abort 9"); return false; // REVISIT } if (isNameTestNCName) { System.out.println("abort 10"); return false; // REVISIT - "NCName:* ::" where "AxisName ::" is required } addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_COLON); starIsMultiplyOperator = false; if (!isAxisName) { currentOffset++; if (++currentOffset == endOffset) { break; } } break; } // // Otherwise, the token must not be recognized as an OperatorName, a NodeType, a // FunctionName, or an AxisName. // if (isNameTestNCName) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_NAMESPACE); starIsMultiplyOperator = true; tokens.addToken(nameHandle); } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_QNAME); starIsMultiplyOperator = true; tokens.addToken(prefixHandle); tokens.addToken(nameHandle); } break; } } if (XPath.Tokens.DUMP_TOKENS) { tokens.dumpTokens(); } return true; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/aa99989e376e02ed6ccd94324e53925c6dc3094b/XPath.java/clean/src/org/apache/xerces/validators/schema/identity/XPath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
4135,
4742,
12,
780,
2864,
533,
2864,
16,
27573,
10172,
18,
5157,
2430,
16,
514,
501,
16,
4766,
509,
783,
2335,
16,
509,
25507,
13,
5411,
1216,
10172,
503,
288,
13491,
509,
508,
2335,
31,
5411,
509,
508,
3259,
16,
1633,
3259,
31,
5411,
1250,
10443,
2520,
26040,
5592,
273,
629,
31,
5411,
509,
462,
31,
7734,
1783,
14,
5411,
309,
261,
14124,
18,
5157,
18,
40,
23942,
67,
8412,
55,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
225,
411,
3813,
2984,
1769,
7734,
2332,
18,
659,
18,
8222,
2932,
565,
411,
8692,
2984,
1769,
7734,
2332,
18,
659,
18,
8222,
2932,
1377,
315,
397,
2688,
18,
2640,
780,
12,
892,
16,
783,
2335,
16,
25507,
300,
783,
2335,
10019,
7734,
2332,
18,
659,
18,
8222,
2932,
565,
7765,
8692,
2984,
1769,
5411,
289,
5411,
29624,
5411,
1323,
261,
3767,
13,
288,
7734,
309,
261,
2972,
2335,
422,
25507,
13,
288,
10792,
898,
31,
7734,
289,
7734,
1783,
14,
7734,
462,
273,
261,
892,
63,
2972,
2335,
65,
473,
374,
6356,
1769,
7734,
29624,
7734,
462,
273,
501,
18,
3001,
861,
12,
2972,
2335,
1769,
7734,
29624,
7734,
368,
7734,
368,
306,
5520,
65,
8074,
9431,
493,
33,
348,
7734,
368,
7734,
1323,
261,
343,
422,
296,
296,
747,
462,
422,
374,
92,
20,
37,
747,
462,
422,
374,
92,
5908,
747,
462,
422,
374,
92,
20,
40,
13,
288,
10792,
309,
261,
9904,
2972,
2335,
422,
25507,
13,
288,
13491,
898,
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,
540,
1071,
1250,
4135,
4742,
12,
780,
2864,
533,
2864,
16,
27573,
10172,
18,
5157,
2430,
16,
514,
501,
16,
4766,
509,
783,
2335,
16,
509,
25507,
13,
5411,
1216,
10172,
503,
288,
13491,
509,
508,
2335,
31,
5411,
509,
508,
3259,
16,
1633,
3259,
31,
5411,
1250,
10443,
2520,
26040,
5592,
273,
629,
31,
5411,
509,
462,
31,
7734,
1783,
14,
5411,
309,
261,
14124,
18,
5157,
18,
40,
23942,
67,
8412,
55,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
225,
411,
3813,
2984,
1769,
7734,
2332,
18,
659,
18,
8222,
2932,
565,
411,
8692,
2984,
1769,
7734,
2332,
18,
659,
18,
8222,
2932,
1377,
315,
397,
2688,
18,
2640,
780,
12,
892,
16,
783,
2335,
2
] |
throw new BMPException("Invalid number of bits per pixel: "+ bitcount);
|
throw new BMPException("Invalid number of bits per pixel: " + bitcount);
|
public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/clean/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5775,
1380,
12,
6620,
2831,
1883,
13,
1216,
605,
4566,
503,
288,
202,
9610,
12,
3682,
1883,
15329,
202,
3593,
404,
30,
202,
3593,
1059,
30,
202,
3593,
1725,
30,
202,
3593,
2872,
30,
202,
3593,
4248,
30,
202,
3593,
3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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
5775,
1380,
12,
6620,
2831,
1883,
13,
1216,
605,
4566,
503,
288,
202,
9610,
12,
3682,
1883,
15329,
202,
3593,
404,
30,
202,
3593,
1059,
30,
202,
3593,
1725,
30,
202,
3593,
2872,
30,
202,
3593,
4248,
30,
202,
3593,
3847,
30,
202,
565,
10054,
5775,
1380,
273,
2831,
1883,
31,
202,
565,
898,
31,
202,
1886,
30,
202,
565,
604,
394,
605,
4566,
503,
2932,
1941,
1300,
434,
4125,
1534,
4957,
30,
13773,
6862,
282,
2831,
1883,
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
] |
if (start != null) { return lexer.getPosition(start.getPosition()); } return lexer.getPosition(null);
|
return getPosition(start, false);
|
private ISourcePosition getPosition(ISourcePositionHolder start) { if (start != null) { return lexer.getPosition(start.getPosition()); } return lexer.getPosition(null); }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/b1293eda8454686e846e2a9837b348e2983bb423/DefaultRubyParser.java/buggy/src/org/jruby/parser/DefaultRubyParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1830,
2555,
14441,
12,
45,
1830,
2555,
6064,
787,
13,
288,
3639,
309,
261,
1937,
480,
446,
13,
288,
5411,
327,
8512,
18,
588,
2555,
12,
1937,
18,
588,
2555,
10663,
202,
97,
3196,
202,
2463,
8512,
18,
588,
2555,
12,
2011,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1830,
2555,
14441,
12,
45,
1830,
2555,
6064,
787,
13,
288,
3639,
309,
261,
1937,
480,
446,
13,
288,
5411,
327,
8512,
18,
588,
2555,
12,
1937,
18,
588,
2555,
10663,
202,
97,
3196,
202,
2463,
8512,
18,
588,
2555,
12,
2011,
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
] |
static public double max(Context cx, Scriptable thisObj, Object[] args, Function funObj)
|
public static double max(Context cx, Scriptable thisObj, Object[] args, Function funObj)
|
static public double max(Context cx, Scriptable thisObj, Object[] args, Function funObj) { double result = Double.NEGATIVE_INFINITY; if (args.length == 0) return result; for (int i = 0; i < args.length; i++) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) return d; result = Math.max(result, d); } return result; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3ef540f70dc64e503df2b7ca56d6cf65647fcf42/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
1645,
943,
12,
1042,
9494,
16,
22780,
15261,
16,
19694,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
377,
288,
7734,
1645,
563,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
5411,
327,
563,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
1645,
302,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
77,
19226,
5411,
309,
261,
72,
480,
302,
13,
327,
302,
31,
5411,
563,
273,
2361,
18,
1896,
12,
2088,
16,
302,
1769,
3639,
289,
3639,
327,
563,
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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,
288,
7734,
1645,
563,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
5411,
327,
563,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
1645,
302,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
77,
19226,
5411,
309,
261,
72,
480,
302,
13,
327,
302,
31,
5411,
563,
273,
2361,
18,
1896,
12,
2088,
16,
302,
1769,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return ListUtil.list(getBaseUrl().toString());
|
return ListUtil.list(makeStartUrl(base, volume));
|
public List getNewContentCrawlUrls() { return ListUtil.list(getBaseUrl().toString()); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1aef85c1aeea39e969980e508f9c5ec464fa9541/HighWireArchivalUnit.java/clean/src/org/lockss/plugin/highwire/HighWireArchivalUnit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
987,
12654,
1350,
39,
15161,
10509,
1435,
288,
565,
327,
987,
1304,
18,
1098,
12,
6540,
1685,
1489,
12,
1969,
16,
3940,
10019,
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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,
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,
987,
12654,
1350,
39,
15161,
10509,
1435,
288,
565,
327,
987,
1304,
18,
1098,
12,
6540,
1685,
1489,
12,
1969,
16,
3940,
10019,
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
] |
nature.getStore().setProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath);
|
nature.getStore().setPathProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath);
|
public void setProjectSourcePath(String newSourcePath) throws CoreException { synchronized(project){ projectSourcePathSet = null; PythonNature nature = PythonNature.getPythonNature(project); nature.getStore().setProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath); } }
|
50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/52a03aad305d349dcdfa27447374c4e31448d78e/PythonPathNature.java/clean/org.python.pydev/src/org/python/pydev/plugin/nature/PythonPathNature.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25323,
1830,
743,
12,
780,
394,
1830,
743,
13,
1216,
30015,
288,
3639,
3852,
12,
4406,
15329,
5411,
1984,
1830,
743,
694,
273,
446,
31,
5411,
6600,
50,
1231,
28700,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25323,
1830,
743,
12,
780,
394,
1830,
743,
13,
1216,
30015,
288,
3639,
3852,
12,
4406,
15329,
5411,
1984,
1830,
743,
694,
273,
446,
31,
5411,
6600,
50,
1231,
28700,
273,
6600,
50,
1231,
18,
588,
15774,
50,
1231,
12,
4406,
1769,
5411,
28700,
18,
588,
2257,
7675,
542,
743,
1396,
12,
15774,
743,
50,
1231,
18,
588,
4109,
1830,
743,
12345,
9334,
394,
1830,
743,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (userApplicationMainAreaStateId != null)
|
if (userApplicationMainAreaStateId != null){
|
public void main(IWContext iwc) throws Exception { this.empty(); iwb = getBundle(iwc); iwrb = getResourceBundle(iwc); boolean useDropdown = iwb.getBooleanProperty("use_dropdown_in_toolbar", false); Table controlTable = new Table(1, 3); controlTable.setCellpadding(0); controlTable.setCellspacing(0); controlTable.setWidth(Table.HUNDRED_PERCENT); controlTable.setHeight(29); controlTable.setColor(1, 1, "#FFFFFF"); controlTable.setColor(1, 3, "#D0D0D0"); Table toolbarTable = new Table(4, 1); toolbarTable.setCellpadding(0); toolbarTable.setCellspacing(0); toolbarTable.setBorder(0); toolbarTable.setHeight(27); toolbarTable.setStyleClass(menuTableStyle); toolbarTable.setWidth(Table.HUNDRED_PERCENT); toolbarTable.setWidth(4, Table.HUNDRED_PERCENT); toolbarTable.setHeight(1, Table.HUNDRED_PERCENT); toolbarTable.setAlignment(4, 1, Table.HORIZONTAL_ALIGN_RIGHT); controlTable.add(toolbarTable, 1, 2); add(controlTable); Table toolbar1 = new Table(); toolbar1.setCellpadding(0); toolbar1.setCellspacing(0); toolbar1.setBorder(0); toolbarTable.add(toolbar1, 1, 1); int toolbarColumn = 1; //User Image iconCrUser = iwb.getImage("new_user.gif"); Link tLink11 = getToolbarLink(new Text(iwrb.getLocalizedString("new.member", "New member")), CreateUser.class, null); tLink11.setStyleClass(styledLink); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 12); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconCrUser, CreateUser.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink11, toolbarColumn++, 1); //Group Image iconCrGroup = iwb.getImage("new_group.gif"); Link tLink12 = getToolbarLink(new Text(iwrb.getLocalizedString("new.group", "New group")), CreateGroupWindow.class, null); tLink12.setStyleClass(styledLink); if (selectedGroupProviderStateId != null) tLink12.addParameter(CreateGroupWindow.SELECTED_GROUP_PROVIDER_PRESENTATION_STATE_ID_KEY, selectedGroupProviderStateId); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconCrGroup, CreateGroupWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink12, toolbarColumn++, 1); if (iwc.isSuperAdmin()) { Image iconRoleMasters = iwb.getImage("key_icon.gif"); Link tLink14 = getToolbarLink(new Text(iwrb.getLocalizedString("button.role_masters", "Role Masters")), RoleMastersWindow.class, null); tLink14.setStyleClass(styledLink); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconRoleMasters, RoleMastersWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink14, toolbarColumn++, 1); } //Search temp Image iconSearch = iwb.getImage("search.gif"); Link tLink13 = getToolbarLink(new Text(iwrb.getLocalizedString("button.search", "Search")), SearchWindow.class, null); tLink13.setStyleClass(styledLink); if (userApplicationMainAreaStateId != null) tLink13.addParameter(UserApplicationMainArea.USER_APPLICATION_MAIN_AREA_PS_KEY, userApplicationMainAreaStateId); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconSearch, SearchWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink13, toolbarColumn++, 1); // adding all plugins that implement the interface ToolbarElement List toolbarElements = new ArrayList(); User user = iwc.getCurrentUser(); Collection plugins = getGroupBusiness(iwc).getUserGroupPluginsForUser(user); Iterator iter = plugins.iterator(); while (iter.hasNext()) { UserGroupPlugInBusiness pluginBiz = (UserGroupPlugInBusiness) iter.next(); List list = pluginBiz.getMainToolbarElements(); if (list != null) { toolbarElements.addAll(list); } } // adding some toolbar elements that belong to this bundle toolbarElements.add(new MassMovingWindowPlugin()); boolean addPlugins = false; if (!toolbarElements.isEmpty()) { Table toolbar2 = new Table(); toolbar2.setCellpadding(0); toolbar2.setCellspacing(0); toolbar2.setBorder(0); toolbarTable.add(toolbar2, 3, 1); toolbarColumn = 1; DropdownMenu menu = new DropdownMenu("other_choices"); final IWContext finalIwc = iwc; Comparator priorityComparator = new Comparator() { public int compare(Object toolbarElementA, Object toolbarElementB) { int priorityA = ((ToolbarElement) toolbarElementA).getPriority(finalIwc); int priorityB = ((ToolbarElement) toolbarElementB).getPriority(finalIwc); if (priorityA == -1 && priorityB == -1) { return 0; } else if (priorityA == -1) { return 1; } else if (priorityB == -1) { return -1; } return priorityA - priorityB; } }; Collections.sort(toolbarElements, priorityComparator); Iterator toolbarElementsIterator = toolbarElements.iterator(); while (toolbarElementsIterator.hasNext()) { ToolbarElement toolbarElement = (ToolbarElement) toolbarElementsIterator.next(); if (toolbarElement.isValid(iwc)) { addPlugins = true; Class toolPresentationClass = toolbarElement.getPresentationObjectClass(iwc); Map parameterMap = toolbarElement.getParameterMap(iwc); // a special parameter, very few plugins are using it if (selectedGroupProviderStateId != null) { if (parameterMap == null) { parameterMap = new HashMap(); } parameterMap.put(SELECTED_GROUP_PROVIDER_PRESENTATION_STATE_ID_KEY, selectedGroupProviderStateId ); } String toolName = toolbarElement.getName(iwc); if (useDropdown && (! toolbarElement.isButton(iwc))) { SelectOption toolOption = new SelectOption(toolName, "1"); toolOption.setWindowToOpenOnSelect(toolPresentationClass, parameterMap); menu.addOption(toolOption); } else { Image toolImage = toolbarElement.getButtonImage(finalIwc); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); if (toolImage != null) { toolbar2.setCellpaddingRight(toolbarColumn, 1, 3); toolbar2.add(getToolbarLink(toolImage, toolPresentationClass, parameterMap), toolbarColumn++, 1); } Link toolLink = getToolbarLink(new Text(toolName), toolPresentationClass, parameterMap); toolLink.setStyleClass(styledLink); toolbar2.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar2.setCellpaddingTop(toolbarColumn, 1, 3); toolbar2.add(toolLink, toolbarColumn++, 1); } } } if (addPlugins) { Image dottedImage = iwb.getImage("dotted.gif"); toolbarTable.setCellpaddingLeft(2, 1, 10); toolbarTable.setCellpaddingRight(2, 1, 3); toolbarTable.add(dottedImage, 2, 1); if (useDropdown) { Form form = new Form(); menu.addMenuElementFirst("", ""); form.add(menu); int handbookFileID = Integer.parseInt(iwb.getProperty("handbook_file_id", "-1")); if (handbookFileID != -1) { SelectOption option = new SelectOption(iwrb.getLocalizedString("toolbar.handbook", "Handbook")); option.setFileToOpenOnSelect(handbookFileID); menu.add(option); } Image iconOtherChanges = iwb.getImage("other_choises.gif"); Text menuText = new Text(iwrb.getLocalizedString("button.other_choices", "Other choices")); menuText.setStyleClass(styledText); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar2.setCellpaddingRight(toolbarColumn, 1, 3); toolbar2.add(iconOtherChanges, toolbarColumn++, 1); toolbar2.add(menuText, toolbarColumn++, 1); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar2.add(form, toolbarColumn++, 1); } } } //search Table button9 = new Table(2, 1); Text text9 = new Text(iwrb.getLocalizedString("fast_search", "Fast search")); button9.add(text9, 1, 1); button9.setHorizontalAlignment("right"); IWLocation location = (IWLocation) this.getLocation().clone(); location.setSubID(1); searchForm.setLocation(location, iwc); searchForm.setArtificialCompoundId(getCompoundId(), iwc); searchForm.setHorizontalAlignment("right"); searchForm.setTextInputValue(iwrb.getLocalizedString("insert_search_string", "Insert a search string")); toolbarTable.setCellpaddingRight(4, 1, 6); toolbarTable.add(searchForm, 4, 1); }
|
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/266f557f1de7378fdc3e75472885ac8249d923d4/Toolbar.java/clean/src/java/com/idega/user/app/Toolbar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2774,
12,
45,
59,
1042,
25522,
71,
13,
1216,
1185,
288,
202,
202,
2211,
18,
5531,
5621,
202,
202,
77,
9464,
273,
10946,
12,
22315,
71,
1769,
202,
202,
22315,
6731,
273,
5070,
3405,
12,
22315,
71,
1769,
202,
202,
6494,
999,
23947,
273,
277,
9464,
18,
588,
5507,
1396,
2932,
1202,
67,
18787,
67,
267,
67,
18849,
3113,
629,
1769,
9506,
202,
1388,
3325,
1388,
273,
394,
3555,
12,
21,
16,
890,
1769,
202,
202,
7098,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
202,
202,
7098,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
202,
202,
7098,
1388,
18,
542,
2384,
12,
1388,
18,
44,
5240,
5879,
67,
3194,
19666,
1769,
202,
202,
7098,
1388,
18,
542,
2686,
12,
5540,
1769,
202,
202,
7098,
1388,
18,
542,
2957,
12,
21,
16,
404,
16,
6619,
18343,
8863,
202,
202,
7098,
1388,
18,
542,
2957,
12,
21,
16,
890,
16,
6619,
40,
20,
40,
20,
40,
20,
8863,
202,
202,
1388,
12748,
1388,
273,
394,
3555,
12,
24,
16,
404,
1769,
202,
202,
18849,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
202,
202,
18849,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
202,
202,
18849,
1388,
18,
542,
8107,
12,
20,
1769,
202,
202,
18849,
1388,
18,
542,
2686,
12,
5324,
1769,
202,
202,
18849,
1388,
18,
542,
2885,
797,
12,
5414,
1388,
2885,
1769,
202,
202,
18849,
1388,
18,
542,
2384,
12,
1388,
18,
44,
5240,
5879,
67,
3194,
19666,
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,
482,
918,
2774,
12,
45,
59,
1042,
25522,
71,
13,
1216,
1185,
288,
202,
202,
2211,
18,
5531,
5621,
202,
202,
77,
9464,
273,
10946,
12,
22315,
71,
1769,
202,
202,
22315,
6731,
273,
5070,
3405,
12,
22315,
71,
1769,
202,
202,
6494,
999,
23947,
273,
277,
9464,
18,
588,
5507,
1396,
2932,
1202,
67,
18787,
67,
267,
67,
18849,
3113,
629,
1769,
9506,
202,
1388,
3325,
1388,
273,
394,
3555,
12,
21,
16,
890,
1769,
202,
202,
7098,
1388,
18,
542,
4020,
9598,
12,
20,
1769,
202,
202,
7098,
1388,
18,
542,
4020,
14080,
12,
20,
1769,
202,
202,
7098,
1388,
18,
542,
2384,
12,
1388,
18,
44,
5240,
5879,
67,
3194,
19666,
1769,
202,
202,
2
] |
private void addErrorTab() { ////////////////////////// // START OF ERROR TAB /// /// wErrorTab=new CTabItem(wTabFolder, SWT.NONE); wErrorTab.setText(Messages.getString("TextFileInputDialog.ErrorTab.TabTitle")); wErrorSComp = new ScrolledComposite(wTabFolder, SWT.V_SCROLL | SWT.H_SCROLL ); wErrorSComp.setLayout(new FillLayout()); FormLayout errorLayout = new FormLayout (); errorLayout.marginWidth = 3; errorLayout.marginHeight = 3; wErrorComp = new Composite(wErrorSComp, SWT.NONE); props.setLook(wErrorComp); wErrorComp.setLayout(errorLayout); // ERROR HANDLING... // ErrorIgnored? wlErrorIgnored = new Label(wErrorComp, SWT.RIGHT); wlErrorIgnored.setText(Messages.getString("TextFileInputDialog.ErrorIgnored.Label")); props.setLook(wlErrorIgnored); fdlErrorIgnored = new FormData(); fdlErrorIgnored.left = new FormAttachment(0, 0); fdlErrorIgnored.top = new FormAttachment(0, margin); fdlErrorIgnored.right = new FormAttachment(middle, -margin); wlErrorIgnored.setLayoutData(fdlErrorIgnored); wErrorIgnored = new Button(wErrorComp, SWT.CHECK); props.setLook(wErrorIgnored); wErrorIgnored.setToolTipText(Messages.getString("TextFileInputDialog.ErrorIgnored.Tooltip")); fdErrorIgnored = new FormData(); fdErrorIgnored.left = new FormAttachment(middle, 0); fdErrorIgnored.top = new FormAttachment(0, margin); wErrorIgnored.setLayoutData(fdErrorIgnored); // Skip error lines? wlSkipErrorLines = new Label(wErrorComp, SWT.RIGHT); wlSkipErrorLines.setText(Messages.getString("TextFileInputDialog.SkipErrorLines.Label")); props.setLook(wlSkipErrorLines); fdlSkipErrorLines = new FormData(); fdlSkipErrorLines.left = new FormAttachment(0, 0); fdlSkipErrorLines.top = new FormAttachment(wErrorIgnored, margin); fdlSkipErrorLines.right = new FormAttachment(middle, -margin); wlSkipErrorLines.setLayoutData(fdlSkipErrorLines); wSkipErrorLines = new Button(wErrorComp, SWT.CHECK); props.setLook(wSkipErrorLines); wSkipErrorLines.setToolTipText(Messages.getString("TextFileInputDialog.SkipErrorLines.Tooltip")); fdSkipErrorLines = new FormData(); fdSkipErrorLines.left = new FormAttachment(middle, 0); fdSkipErrorLines.top = new FormAttachment(wErrorIgnored, margin); wSkipErrorLines.setLayoutData(fdSkipErrorLines); wlErrorCount=new Label(wErrorComp, SWT.RIGHT); wlErrorCount.setText(Messages.getString("TextFileInputDialog.ErrorCount.Label")); props.setLook(wlErrorCount); fdlErrorCount=new FormData(); fdlErrorCount.left = new FormAttachment(0, 0); fdlErrorCount.top = new FormAttachment(wSkipErrorLines, margin); fdlErrorCount.right= new FormAttachment(middle, -margin); wlErrorCount.setLayoutData(fdlErrorCount); wErrorCount=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorCount); wErrorCount.addModifyListener(lsMod); fdErrorCount=new FormData(); fdErrorCount.left = new FormAttachment(middle, 0); fdErrorCount.top = new FormAttachment(wSkipErrorLines, margin); fdErrorCount.right= new FormAttachment(100, 0); wErrorCount.setLayoutData(fdErrorCount); wlErrorFields=new Label(wErrorComp, SWT.RIGHT); wlErrorFields.setText(Messages.getString("TextFileInputDialog.ErrorFields.Label")); props.setLook(wlErrorFields); fdlErrorFields=new FormData(); fdlErrorFields.left = new FormAttachment(0, 0); fdlErrorFields.top = new FormAttachment(wErrorCount, margin); fdlErrorFields.right= new FormAttachment(middle, -margin); wlErrorFields.setLayoutData(fdlErrorFields); wErrorFields=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorFields); wErrorFields.addModifyListener(lsMod); fdErrorFields=new FormData(); fdErrorFields.left = new FormAttachment(middle, 0); fdErrorFields.top = new FormAttachment(wErrorCount, margin); fdErrorFields.right= new FormAttachment(100, 0); wErrorFields.setLayoutData(fdErrorFields); wlErrorText=new Label(wErrorComp, SWT.RIGHT); wlErrorText.setText(Messages.getString("TextFileInputDialog.ErrorText.Label")); props.setLook(wlErrorText); fdlErrorText=new FormData(); fdlErrorText.left = new FormAttachment(0, 0); fdlErrorText.top = new FormAttachment(wErrorFields, margin); fdlErrorText.right= new FormAttachment(middle, -margin); wlErrorText.setLayoutData(fdlErrorText); wErrorText=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorText); wErrorText.addModifyListener(lsMod); fdErrorText=new FormData(); fdErrorText.left = new FormAttachment(middle, 0); fdErrorText.top = new FormAttachment(wErrorFields, margin); fdErrorText.right= new FormAttachment(100, 0); wErrorText.setLayoutData(fdErrorText); // Bad lines files directory + extention Control previous = wErrorText; // BadDestDir line wlWarnDestDir=new Label(wErrorComp, SWT.RIGHT); wlWarnDestDir.setText(Messages.getString("TextFileInputDialog.WarnDestDir.Label")); props.setLook(wlWarnDestDir); fdlWarnDestDir=new FormData(); fdlWarnDestDir.left = new FormAttachment(0, 0); fdlWarnDestDir.top = new FormAttachment(previous, margin*4); fdlWarnDestDir.right= new FormAttachment(middle, -margin); wlWarnDestDir.setLayoutData(fdlWarnDestDir); wbbWarnDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbWarnDestDir); wbbWarnDestDir.setText(Messages.getString("System.Button.Browse")); wbbWarnDestDir.setToolTipText(Messages.getString("System.Tooltip.BrowseForDir")); fdbBadDestDir=new FormData(); fdbBadDestDir.right= new FormAttachment(100, 0); fdbBadDestDir.top = new FormAttachment(previous, margin*4); wbbWarnDestDir.setLayoutData(fdbBadDestDir); wbvWarnDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvWarnDestDir); wbvWarnDestDir.setText(Messages.getString("System.Button.Variable")); wbvWarnDestDir.setToolTipText(Messages.getString("System.Tooltip.VariableToDir")); fdbvWarnDestDir=new FormData(); fdbvWarnDestDir.right= new FormAttachment(wbbWarnDestDir, -margin); fdbvWarnDestDir.top = new FormAttachment(previous, margin*4); wbvWarnDestDir.setLayoutData(fdbvWarnDestDir); wWarnExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wWarnExt); wWarnExt.addModifyListener(lsMod); fdWarnDestExt=new FormData(); fdWarnDestExt.left = new FormAttachment(wbvWarnDestDir, -150); fdWarnDestExt.right= new FormAttachment(wbvWarnDestDir, -margin); fdWarnDestExt.top = new FormAttachment(previous, margin*4); wWarnExt.setLayoutData(fdWarnDestExt); wlWarnExt=new Label(wErrorComp, SWT.RIGHT); wlWarnExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlWarnExt); fdlWarnDestExt=new FormData(); fdlWarnDestExt.top = new FormAttachment(previous, margin*4); fdlWarnDestExt.right= new FormAttachment(wWarnExt, -margin); wlWarnExt.setLayoutData(fdlWarnDestExt); wWarnDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wWarnDestDir); wWarnDestDir.addModifyListener(lsMod); fdBadDestDir=new FormData(); fdBadDestDir.left = new FormAttachment(middle, 0); fdBadDestDir.right= new FormAttachment(wlWarnExt, -margin); fdBadDestDir.top = new FormAttachment(previous, margin*4); wWarnDestDir.setLayoutData(fdBadDestDir); // Listen to the Browse... button wbbWarnDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wWarnDestDir)); // Listen to the Variable... button wbvWarnDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wWarnDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wWarnDestDir.addModifyListener(getModifyListenerTooltipText(wWarnDestDir)); // Error lines files directory + extention previous = wWarnDestDir; // ErrorDestDir line wlErrorDestDir=new Label(wErrorComp, SWT.RIGHT); wlErrorDestDir.setText(Messages.getString("TextFileInputDialog.ErrorDestDir.Label")); props.setLook(wlErrorDestDir); fdlErrorDestDir=new FormData(); fdlErrorDestDir.left = new FormAttachment(0, 0); fdlErrorDestDir.top = new FormAttachment(previous, margin); fdlErrorDestDir.right= new FormAttachment(middle, -margin); wlErrorDestDir.setLayoutData(fdlErrorDestDir); wbbErrorDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbErrorDestDir); wbbErrorDestDir.setText(Messages.getString("System.Button.Browse")); wbbErrorDestDir.setToolTipText(Messages.getString("System.Tooltip.BrowseForDir")); fdbErrorDestDir=new FormData(); fdbErrorDestDir.right= new FormAttachment(100, 0); fdbErrorDestDir.top = new FormAttachment(previous, margin); wbbErrorDestDir.setLayoutData(fdbErrorDestDir); wbvErrorDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvErrorDestDir); wbvErrorDestDir.setText(Messages.getString("System.Button.Variable")); wbvErrorDestDir.setToolTipText(Messages.getString("System.Tooltip.VariableToDir")); fdbvErrorDestDir=new FormData(); fdbvErrorDestDir.right= new FormAttachment(wbbErrorDestDir, -margin); fdbvErrorDestDir.top = new FormAttachment(previous, margin); wbvErrorDestDir.setLayoutData(fdbvErrorDestDir); wErrorExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorExt); wErrorExt.addModifyListener(lsMod); fdErrorDestExt=new FormData(); fdErrorDestExt.left = new FormAttachment(wbvErrorDestDir, -150); fdErrorDestExt.right= new FormAttachment(wbvErrorDestDir, -margin); fdErrorDestExt.top = new FormAttachment(previous, margin); wErrorExt.setLayoutData(fdErrorDestExt); wlErrorExt=new Label(wErrorComp, SWT.RIGHT); wlErrorExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlErrorExt); fdlErrorDestExt=new FormData(); fdlErrorDestExt.top = new FormAttachment(previous, margin); fdlErrorDestExt.right= new FormAttachment(wErrorExt, -margin); wlErrorExt.setLayoutData(fdlErrorDestExt); wErrorDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorDestDir); wErrorDestDir.addModifyListener(lsMod); fdErrorDestDir=new FormData(); fdErrorDestDir.left = new FormAttachment(middle, 0); fdErrorDestDir.right= new FormAttachment(wlErrorExt, -margin); fdErrorDestDir.top = new FormAttachment(previous, margin); wErrorDestDir.setLayoutData(fdErrorDestDir); // Listen to the Browse... button wbbErrorDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wErrorDestDir)); // Listen to the Variable... button wbvErrorDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wErrorDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wErrorDestDir.addModifyListener(getModifyListenerTooltipText(wErrorDestDir)); // Data Error lines files directory + extention previous = wErrorDestDir; // LineNrDestDir line wlLineNrDestDir=new Label(wErrorComp, SWT.RIGHT); wlLineNrDestDir.setText(Messages.getString("TextFileInputDialog.LineNrDestDir.Label")); props.setLook(wlLineNrDestDir); fdlLineNrDestDir=new FormData(); fdlLineNrDestDir.left = new FormAttachment(0, 0); fdlLineNrDestDir.top = new FormAttachment(previous, margin); fdlLineNrDestDir.right= new FormAttachment(middle, -margin); wlLineNrDestDir.setLayoutData(fdlLineNrDestDir); wbbLineNrDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbLineNrDestDir); wbbLineNrDestDir.setText(Messages.getString("System.Button.Browse")); wbbLineNrDestDir.setToolTipText(Messages.getString("System.Tooltip.Browse")); fdbLineNrDestDir=new FormData(); fdbLineNrDestDir.right= new FormAttachment(100, 0); fdbLineNrDestDir.top = new FormAttachment(previous, margin); wbbLineNrDestDir.setLayoutData(fdbLineNrDestDir); wbvLineNrDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvLineNrDestDir); wbvLineNrDestDir.setText("&Variable"); wbvLineNrDestDir.setToolTipText("System.Tooltip.VariableToDir"); fdbvLineNrDestDir=new FormData(); fdbvLineNrDestDir.right= new FormAttachment(wbbLineNrDestDir, -margin); fdbvLineNrDestDir.top = new FormAttachment(previous, margin); wbvLineNrDestDir.setLayoutData(fdbvLineNrDestDir); wLineNrExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wLineNrExt); wLineNrExt.addModifyListener(lsMod); fdLineNrDestExt=new FormData(); fdLineNrDestExt.left = new FormAttachment(wbvLineNrDestDir, -150); fdLineNrDestExt.right= new FormAttachment(wbvLineNrDestDir, -margin); fdLineNrDestExt.top = new FormAttachment(previous, margin); wLineNrExt.setLayoutData(fdLineNrDestExt); wlLineNrExt=new Label(wErrorComp, SWT.RIGHT); wlLineNrExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlLineNrExt); fdlLineNrDestExt=new FormData(); fdlLineNrDestExt.top = new FormAttachment(previous, margin); fdlLineNrDestExt.right= new FormAttachment(wLineNrExt, -margin); wlLineNrExt.setLayoutData(fdlLineNrDestExt); wLineNrDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wLineNrDestDir); wLineNrDestDir.addModifyListener(lsMod); fdLineNrDestDir=new FormData(); fdLineNrDestDir.left = new FormAttachment(middle, 0); fdLineNrDestDir.right= new FormAttachment(wlLineNrExt, -margin); fdLineNrDestDir.top = new FormAttachment(previous, margin); wLineNrDestDir.setLayoutData(fdLineNrDestDir); // Listen to the Browse... button wbbLineNrDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wLineNrDestDir)); // Listen to the Variable... button wbvLineNrDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wLineNrDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wLineNrDestDir.addModifyListener(getModifyListenerTooltipText(wLineNrDestDir)); fdErrorComp = new FormData(); fdErrorComp.left = new FormAttachment(0, 0); fdErrorComp.top = new FormAttachment(0, 0); fdErrorComp.right = new FormAttachment(100, 0); fdErrorComp.bottom= new FormAttachment(100, 0); wErrorComp.setLayoutData(fdErrorComp); wErrorComp.pack(); // What's the size: Rectangle bounds = wErrorComp.getBounds(); wErrorSComp.setContent(wErrorComp); wErrorSComp.setExpandHorizontal(true); wErrorSComp.setExpandVertical(true); wErrorSComp.setMinWidth(bounds.width); wErrorSComp.setMinHeight(bounds.height); wErrorTab.setControl(wErrorSComp); ///////////////////////////////////////////////////////////// /// END OF CONTENT TAB ///////////////////////////////////////////////////////////// }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/26388f6e336b8e6cb9f361dee0dd78bae00fe76b/TextFileInputDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
9501,
5661,
1435,
565,
288,
3639,
368,
25494,
3639,
368,
10485,
15932,
5475,
26158,
225,
18378,
3639,
18378,
3639,
341,
668,
5661,
33,
2704,
385,
5661,
1180,
12,
91,
5661,
3899,
16,
348,
8588,
18,
9826,
1769,
3639,
341,
668,
5661,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
668,
5661,
18,
5661,
4247,
7923,
1769,
3639,
341,
668,
55,
2945,
273,
394,
2850,
25054,
9400,
12,
91,
5661,
3899,
16,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
44,
67,
2312,
14555,
11272,
3639,
341,
668,
55,
2945,
18,
542,
3744,
12,
2704,
14192,
3744,
10663,
3639,
2748,
3744,
555,
3744,
273,
394,
2748,
3744,
261,
1769,
3639,
555,
3744,
18,
10107,
2384,
225,
273,
890,
31,
3639,
555,
3744,
18,
10107,
2686,
273,
890,
31,
3639,
341,
668,
2945,
273,
394,
14728,
12,
91,
668,
55,
2945,
16,
348,
8588,
18,
9826,
1769,
3639,
3458,
18,
542,
9794,
12,
91,
668,
2945,
1769,
3639,
341,
668,
2945,
18,
542,
3744,
12,
1636,
3744,
1769,
7734,
368,
5475,
24166,
26789,
2777,
3639,
368,
1068,
15596,
35,
3639,
19564,
668,
15596,
273,
394,
5287,
12,
91,
668,
2945,
16,
348,
8588,
18,
11847,
1769,
3639,
19564,
668,
15596,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
668,
15596,
18,
2224,
7923,
1769,
3639,
3458,
18,
542,
9794,
12,
21504,
668,
15596,
1769,
3639,
5194,
80,
668,
15596,
273,
394,
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,
9501,
5661,
1435,
565,
288,
3639,
368,
25494,
3639,
368,
10485,
15932,
5475,
26158,
225,
18378,
3639,
18378,
3639,
341,
668,
5661,
33,
2704,
385,
5661,
1180,
12,
91,
5661,
3899,
16,
348,
8588,
18,
9826,
1769,
3639,
341,
668,
5661,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
1528,
812,
1210,
6353,
18,
668,
5661,
18,
5661,
4247,
7923,
1769,
3639,
341,
668,
55,
2945,
273,
394,
2850,
25054,
9400,
12,
91,
5661,
3899,
16,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
44,
67,
2312,
14555,
11272,
3639,
341,
668,
55,
2945,
18,
542,
3744,
12,
2704,
14192,
3744,
10663,
3639,
2748,
3744,
555,
3744,
273,
394,
2748,
3744,
261,
2
] |
||
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_271()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
|
if (jj_3R_230()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
|
final private boolean jj_3R_247() { if (jj_3R_252()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_271()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
22,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
27,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
22,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
21,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
1377,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
2
] |
final Node root = parse( "class MyClass { bool operator==( const MyClass& ); };" ); final Node node = assertIsBranch( root, AstClassDefinition.class ); assertNoChildOf( node, AstFunctionDefinition.class );
|
tree.add( "TranslationUnit" ); tree.add( " Declaration" ); tree.add( " ClassDefinition" ); tree.add( " FunctionDeclaration" ); tree.add( " FunctionName" ); tree.add( " FunctionParameters" ); tree.add( " Parameter" ); tree.add( " ParameterType" ); tree.add( " FunctionParameterTypeQualifier" ); assertEquals( tree.toString(), parse( "class MyClass { bool operator==( const MyClass& ); };" ) );
|
public void testEqualityOperatorDeclaration() throws ParseException { final Node root = parse( "class MyClass { bool operator==( const MyClass& ); };" ); final Node node = assertIsBranch( root, AstClassDefinition.class ); assertNoChildOf( node, AstFunctionDefinition.class ); // FIXME check FunctionDeclaration }
|
47917 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47917/0fb5400407e5b1c31b6afdeee1fb00ec381af173/AstTest.java/buggy/src/test/java/cppast/AstTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
20273,
5592,
6094,
1435,
1216,
10616,
565,
288,
3639,
727,
2029,
1365,
273,
1109,
12,
315,
1106,
8005,
797,
288,
1426,
3726,
631,
12,
1866,
8005,
797,
10,
11272,
289,
4868,
11272,
3639,
727,
2029,
756,
273,
1815,
2520,
7108,
12,
1365,
16,
16614,
797,
1852,
18,
1106,
11272,
3639,
1815,
2279,
1763,
951,
12,
756,
16,
16614,
2083,
1852,
18,
1106,
11272,
368,
9852,
866,
4284,
6094,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
20273,
5592,
6094,
1435,
1216,
10616,
565,
288,
3639,
727,
2029,
1365,
273,
1109,
12,
315,
1106,
8005,
797,
288,
1426,
3726,
631,
12,
1866,
8005,
797,
10,
11272,
289,
4868,
11272,
3639,
727,
2029,
756,
273,
1815,
2520,
7108,
12,
1365,
16,
16614,
797,
1852,
18,
1106,
11272,
3639,
1815,
2279,
1763,
951,
12,
756,
16,
16614,
2083,
1852,
18,
1106,
11272,
368,
9852,
866,
4284,
6094,
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
] |
showOther(); }
|
showOther(); }
|
public void run() { showOther(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e20e950fad87c9434ea5cb423007f610e35ee559/ShowViewMenu.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowViewMenu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
4500,
8290,
5621,
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,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
|
public TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
|
public TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/332c90d112012ba128ec6af227095aceabc7965a/TCPSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/tcp/TCPSocketImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9911,
4534,
2828,
12,
13891,
5752,
1771,
13,
288,
202,
202,
2211,
18,
8373,
273,
1771,
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,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
0,
0,
0,
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,
9911,
4534,
2828,
12,
13891,
5752,
1771,
13,
288,
202,
202,
2211,
18,
8373,
273,
1771,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void mouseReleased(MouseEvent event) { logger.debug("MouseReleased Event Props: mode=" + c2dm.getDrawModeString() + ", trigger=" + event.isPopupTrigger() + ", Button number: " + event.getButton() + ", Click count: " + event.getClickCount()); if (event.getButton() == MouseEvent.BUTTON1) { int[] screenCoords = { event.getX(), event.getY() }; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; /************************************************************************* * SYMBOL MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { int index = commonElements.indexOf(atomInRange.getSymbol()); if ((index < (commonElements.size()-1)) && (index != -1)) { // pick next atom in list of common Elements index++; } else { index = 0; } String symbol = (String)commonElements.get(index); atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // also adjust the new draw elem c2dm.setDrawElement(symbol); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } /************************************************************************* * CHARGE MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } /************************************************************************* * DRAWBONDMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange, newAtom1, newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX,startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX,endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); Point2d center2D = atomCon.get2DCenter(); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2D()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); AtomContainer placedAtoms = new AtomContainer(); for (int i=0; i<connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); } } r2dm.fireChange(); fireChange(); } /************************************************************************* * UP BOND MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } /************************************************************************* * DOWN BOND MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } /************************************************************************* * SELECTMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff "+ selectedPart); } /************************************************************************* * ERASERMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: " + container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: " + container.getAtomCount()); } else if (highlightedBond != null) { ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } /************************************************************************* * RINGMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX, pointerMarkY; double ringRadius, angle, xDiff, yDiff, distance1 = 0, distance2 = 0; Atom firstAtom, secondAtom, spiroAtom; Point2d conAtomsCenter = null, newPoint1, newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); /******************** NO ATTACHMENT ************************************/ if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) /Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2D(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } /*********************** SPIRO *****************************************/ else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = sharedAtoms.get2DCenter(); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2D())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } /*********************** FUSED *****************************************/ else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = sharedAtoms.get2DCenter(); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2D() - firstAtom.getX2D(); yDiff = secondAtom.getY2D() - firstAtom.getY2D(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } r2dm.fireChange(); fireChange(); } /************************************************************************* * LASSOMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point)lassoPoints.elementAt(0))); int number = lassoPoints.size(); int[] xPoints = new int[number]; int[] yPoints = new int[number]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point)lassoPoints.elementAt(i); xPoints[i] = currentPoint.x; yPoints[i] = currentPoint.y; } /* Convert points to world coordinates as they are in screen coordinates in the vector */ xPoints = getWorldCoordinates(xPoints); yPoints = getWorldCoordinates(yPoints); Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } fireChange(); } /************************************************************************* * MOVE MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom draggingSelected = true; r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } } }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/1daf1ebebe9e0b817e1bd60c1181b92c7be848fd/Controller2D.java/buggy/src/org/openscience/cdk/controller/Controller2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
26363,
12,
9186,
1133,
871,
13,
288,
13491,
1194,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
12900,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
7682,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
15604,
309,
261,
2575,
18,
588,
3616,
1435,
422,
17013,
1133,
18,
20068,
21,
13,
288,
7734,
509,
8526,
5518,
13089,
273,
288,
871,
18,
588,
60,
9334,
871,
18,
588,
61,
1435,
289,
31,
7734,
509,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
13089,
1769,
7734,
509,
7644,
60,
273,
7644,
13089,
63,
20,
15533,
7734,
509,
7644,
61,
273,
7644,
13089,
63,
21,
15533,
7734,
342,
11125,
1644,
14,
1171,
380,
15604,
26059,
11741,
19694,
380,
1171,
19756,
1644,
19,
7734,
309,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
22093,
13,
288,
10792,
7149,
3179,
25277,
273,
436,
22,
10956,
18,
588,
16205,
329,
3641,
5621,
10792,
309,
261,
7466,
25277,
480,
446,
13,
288,
13491,
509,
770,
273,
2975,
3471,
18,
31806,
12,
7466,
25277,
18,
588,
5335,
10663,
13491,
309,
14015,
1615,
411,
261,
6054,
3471,
18,
1467,
1435,
17,
21,
3719,
597,
261,
1615,
480,
300,
21,
3719,
288,
18701,
368,
6002,
1024,
3179,
316,
666,
434,
2975,
17219,
18701,
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,
540,
1071,
918,
7644,
26363,
12,
9186,
1133,
871,
13,
288,
13491,
1194,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
1435,
397,
12900,
3104,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
7682,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
15604,
309,
261,
2575,
18,
588,
3616,
1435,
422,
17013,
1133,
18,
20068,
21,
13,
288,
7734,
509,
8526,
5518,
13089,
273,
288,
871,
18,
588,
60,
9334,
871,
18,
588,
61,
1435,
289,
31,
7734,
509,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
2
] |
||
protected void runEventLoop(Window.IExceptionHandler handler) {
|
protected void runEventLoop() {
|
protected void runEventLoop(Window.IExceptionHandler handler) { Display display = Display.getCurrent(); runEventLoop = true; while (runEventLoop) { try { if (!display.readAndDispatch()) display.sleep(); } catch (Throwable t) { handler.handleException(t); } }}
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cc1dd36ef8eed1b981584e282a291179a2bd2fa4/Workbench.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1086,
1133,
6452,
12,
3829,
18,
45,
18894,
1838,
13,
288,
202,
4236,
2562,
273,
9311,
18,
588,
3935,
5621,
202,
2681,
1133,
6452,
273,
638,
31,
202,
17523,
261,
2681,
1133,
6452,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
5417,
18,
896,
1876,
5325,
10756,
9506,
202,
5417,
18,
19607,
5621,
202,
202,
97,
1044,
261,
15155,
268,
13,
288,
1082,
202,
4176,
18,
4110,
503,
12,
88,
1769,
202,
202,
97,
202,
9090,
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,
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
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1086,
1133,
6452,
12,
3829,
18,
45,
18894,
1838,
13,
288,
202,
4236,
2562,
273,
9311,
18,
588,
3935,
5621,
202,
2681,
1133,
6452,
273,
638,
31,
202,
17523,
261,
2681,
1133,
6452,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
5417,
18,
896,
1876,
5325,
10756,
9506,
202,
5417,
18,
19607,
5621,
202,
202,
97,
1044,
261,
15155,
268,
13,
288,
1082,
202,
4176,
18,
4110,
503,
12,
88,
1769,
202,
202,
97,
202,
9090,
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
] |
String _source; if(source == null) { _source = Thread.currentThread().getName(); if(_source == null) { _source = Thread.currentThread().getClass().getName(); } } else if(source instanceof Class) _source = ((Class)source).getName(); else _source = source.getClass().getName(); int index = _source.lastIndexOf('.'); if(index != -1) _source = _source.substring(index+1); if(message instanceof Throwable) { _logException(urgency,source,(Throwable)message); } else { String _message = String.valueOf(message); synchronized(LOCK) { StringTokenizer st = new StringTokenizer( _message,"\r\n"); int lineCount = 0; boolean oldWrap = wrap; while(st.hasMoreTokens()) { lineCount++; _log(urgency,_source,st.nextToken() .replace('\t',' ')); } listModel.update(lineCount,oldWrap); } }
|
log(urgency,source,message); log(urgency,source,exception);
|
public static void log(int urgency, Object source, Object message) { String _source; if(source == null) { _source = Thread.currentThread().getName(); if(_source == null) { _source = Thread.currentThread().getClass().getName(); } } else if(source instanceof Class) _source = ((Class)source).getName(); else _source = source.getClass().getName(); int index = _source.lastIndexOf('.'); if(index != -1) _source = _source.substring(index+1); if(message instanceof Throwable) { _logException(urgency,source,(Throwable)message); } else { String _message = String.valueOf(message); // If multiple threads log stuff, we don't want // the output to get mixed up synchronized(LOCK) { StringTokenizer st = new StringTokenizer( _message,"\r\n"); int lineCount = 0; boolean oldWrap = wrap; while(st.hasMoreTokens()) { lineCount++; _log(urgency,_source,st.nextToken() .replace('\t',' ')); } listModel.update(lineCount,oldWrap); } } } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/025b35bddb21caca6e4112a6f33405fce3b8258a/Log.java/buggy/org/gjt/sp/util/Log.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
613,
12,
474,
8896,
75,
2075,
16,
1033,
1084,
16,
1033,
883,
13,
202,
95,
202,
202,
780,
389,
3168,
31,
202,
202,
430,
12,
3168,
422,
446,
13,
202,
202,
95,
1082,
202,
67,
3168,
273,
4884,
18,
2972,
3830,
7675,
17994,
5621,
1082,
202,
430,
24899,
3168,
422,
446,
13,
1082,
202,
95,
9506,
202,
67,
3168,
273,
4884,
18,
2972,
3830,
7675,
588,
797,
7675,
17994,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
309,
12,
3168,
1276,
1659,
13,
1082,
202,
67,
3168,
273,
14015,
797,
13,
3168,
2934,
17994,
5621,
202,
202,
12107,
1082,
202,
67,
3168,
273,
1084,
18,
588,
797,
7675,
17994,
5621,
202,
202,
474,
770,
273,
389,
3168,
18,
2722,
31985,
2668,
1093,
1769,
202,
202,
430,
12,
1615,
480,
300,
21,
13,
1082,
202,
67,
3168,
273,
389,
3168,
18,
28023,
12,
1615,
15,
21,
1769,
202,
202,
430,
12,
2150,
1276,
4206,
13,
202,
202,
95,
1082,
202,
67,
1330,
503,
12,
295,
75,
2075,
16,
3168,
16,
12,
15155,
13,
2150,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
780,
389,
2150,
273,
514,
18,
1132,
951,
12,
2150,
1769,
1082,
202,
759,
971,
3229,
7403,
613,
10769,
16,
732,
2727,
1404,
2545,
1082,
202,
759,
326,
876,
358,
336,
7826,
731,
1082,
202,
22043,
12,
6589,
13,
1082,
202,
95,
9506,
202,
780,
10524,
384,
273,
394,
16370,
12,
6862,
202,
67,
2150,
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,
613,
12,
474,
8896,
75,
2075,
16,
1033,
1084,
16,
1033,
883,
13,
202,
95,
202,
202,
780,
389,
3168,
31,
202,
202,
430,
12,
3168,
422,
446,
13,
202,
202,
95,
1082,
202,
67,
3168,
273,
4884,
18,
2972,
3830,
7675,
17994,
5621,
1082,
202,
430,
24899,
3168,
422,
446,
13,
1082,
202,
95,
9506,
202,
67,
3168,
273,
4884,
18,
2972,
3830,
7675,
588,
797,
7675,
17994,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
309,
12,
3168,
1276,
1659,
13,
1082,
202,
67,
3168,
273,
14015,
797,
13,
3168,
2934,
17994,
5621,
202,
202,
12107,
1082,
202,
67,
3168,
273,
1084,
18,
588,
797,
7675,
17994,
5621,
202,
202,
2
] |
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
|
throw new DOMException(DOMException.TYPE_MISMATCH_ERR, msg);
|
public void setParameter(String name, Object value) throws DOMException { // REVISIT: Recognizes DOM L3 default features only. // Does not yet recognize Xerces features. if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue(); if (name.equalsIgnoreCase(Constants.DOM_COMMENTS)) { features = (short) (state ? features | COMMENTS : features & ~COMMENTS); } else if (name.equalsIgnoreCase(Constants.DOM_DATATYPE_NORMALIZATION)) { setFeature(NORMALIZE_DATA, state); features = (short) (state ? features | DTNORMALIZATION : features & ~DTNORMALIZATION); if (state) { features = (short) (features | VALIDATE); } } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACES)) { features = (short) (state ? features | NAMESPACES : features & ~NAMESPACES); } else if (name.equalsIgnoreCase(Constants.DOM_CDATA_SECTIONS)) { features = (short) (state ? features | CDATA : features & ~CDATA); } else if (name.equalsIgnoreCase(Constants.DOM_ENTITIES)) { features = (short) (state ? features | ENTITIES : features & ~ENTITIES); } else if (name.equalsIgnoreCase(Constants.DOM_SPLIT_CDATA)) { features = (short) (state ? features | SPLITCDATA : features & ~SPLITCDATA); } else if (name.equalsIgnoreCase(Constants.DOM_VALIDATE)) { features = (short) (state ? features | VALIDATE : features & ~VALIDATE); } else if (name.equalsIgnoreCase(Constants.DOM_WELLFORMED)) { features = (short) (state ? features | WELLFORMED : features & ~WELLFORMED ); } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACE_DECLARATIONS)) { features = (short) (state ? features | NSDECL : features & ~NSDECL); } else if (name.equalsIgnoreCase(Constants.DOM_INFOSET)) { // Setting to false has no effect. if (state) { features = (short) (features | INFOSET_TRUE_PARAMS); features = (short) (features & ~INFOSET_FALSE_PARAMS); setFeature(NORMALIZE_DATA, false); } } else if (name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CANONICAL_FORM) || name.equalsIgnoreCase(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION) ) { if (state) { // true is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if ( name.equalsIgnoreCase(Constants.DOM_ELEMENT_CONTENT_WHITESPACE)) { if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SEND_PSVI) ){ // REVISIT: turning augmentation of PSVI is not support, // because in this case we won't be able to retrieve element // default value. if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_PSVI)){ features = (short) (state ? features | PSVI : features & ~PSVI); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } else { // set properties if (name.equalsIgnoreCase(Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { fErrorHandlerWrapper.setErrorHandler((DOMErrorHandler)value); setErrorHandler(fErrorHandlerWrapper); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { try { setEntityResolver(new DOMEntityResolverWrapper((LSResourceResolver) value)); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) { try { // map DOM schema-location to JAXP schemaSource property setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, value); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_TYPE)) { if (value instanceof String || value == null) { try { if (value == null) { setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, null); } else if (value.equals(Constants.NS_XMLSCHEMA)) { // REVISIT: when add support to DTD validation setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_XMLSCHEMA); } else if (value.equals(Constants.NS_DTD)) { // Added support for revalidation against DTDs setProperty(Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_DTD); } } catch (XMLConfigurationException e) {} } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SYMBOL_TABLE)){ // Xerces Symbol Table if (value instanceof SymbolTable){ setProperty(SYMBOL_TABLE, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (GRAMMAR_POOL)){ if (value instanceof XMLGrammarPool){ setProperty(GRAMMAR_POOL, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else { // REVISIT: check if this is a boolean parameter -- type mismatch should be thrown. //parameter is not recognized String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/315a1d388e7248c487145a5c1193e31a2573319b/DOMConfigurationImpl.java/buggy/src/org/apache/xerces/dom/DOMConfigurationImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6690,
12,
780,
508,
16,
1033,
460,
13,
1216,
4703,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
7776,
4198,
3128,
4703,
511,
23,
805,
4467,
1338,
18,
3639,
368,
1850,
9637,
486,
4671,
21431,
1139,
264,
764,
4467,
18,
202,
202,
430,
12,
1132,
1276,
3411,
15329,
202,
565,
202,
202,
6494,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
5411,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
12200,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
19400,
55,
294,
4467,
473,
4871,
12200,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11102,
789,
1738,
67,
15480,
25084,
3719,
288,
7734,
28669,
12,
15480,
15641,
67,
4883,
16,
919,
1769,
7734,
4467,
273,
10792,
261,
6620,
13,
261,
2019,
692,
4467,
571,
10696,
15480,
25084,
294,
4467,
473,
4871,
9081,
15480,
25084,
1769,
7734,
309,
261,
2019,
13,
288,
10792,
4467,
273,
261,
6620,
13,
261,
7139,
571,
15093,
1777,
1769,
7734,
289,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11368,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
18494,
55,
294,
4467,
473,
4871,
11368,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
18375,
67,
19082,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
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,
6690,
12,
780,
508,
16,
1033,
460,
13,
1216,
4703,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
7776,
4198,
3128,
4703,
511,
23,
805,
4467,
1338,
18,
3639,
368,
1850,
9637,
486,
4671,
21431,
1139,
264,
764,
4467,
18,
202,
202,
430,
12,
1132,
1276,
3411,
15329,
202,
565,
202,
202,
6494,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
5621,
5411,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
12200,
55,
3719,
288,
7734,
4467,
273,
261,
6620,
13,
261,
2019,
692,
4467,
571,
19400,
55,
294,
4467,
473,
4871,
12200,
55,
1769,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
11102,
789,
2
] |
if(((AdminGroup) iter.next()).getAdminGroupId().intValue() == admingroupid){
|
if(((AdminGroup) iter.next()).getAdminGroupId() == admingroupid){
|
public void addHardTokenIssuer(String alias, int admingroupid) throws HardTokenIssuerExistsException, RemoteException{ Iterator iter = this.informationmemory.getHardTokenIssuingAdminGroups().iterator(); while(iter.hasNext()){ if(((AdminGroup) iter.next()).getAdminGroupId().intValue() == admingroupid){ if(!hardtokensession.addHardTokenIssuer(admin, alias, admingroupid, new HardTokenIssuer())) throw new HardTokenIssuerExistsException(); informationmemory.hardTokenDataEdited(); } } }
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/bb62231e17421cfa18c652bbd5d3bd5322552d70/HardTokenInterfaceBean.java/buggy/src/java/se/anatom/ejbca/webdist/hardtokeninterface/HardTokenInterfaceBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
29601,
1345,
16667,
12,
780,
2308,
16,
509,
1261,
11987,
656,
350,
13,
1216,
670,
1060,
1345,
16667,
4002,
503,
16,
18361,
95,
1377,
4498,
1400,
273,
333,
18,
13117,
7858,
18,
588,
29601,
1345,
7568,
22370,
4446,
3621,
7675,
9838,
5621,
1377,
1323,
12,
2165,
18,
5332,
2134,
10756,
95,
4202,
202,
430,
12443,
12,
4446,
1114,
13,
1400,
18,
4285,
1435,
2934,
588,
4446,
8722,
7675,
474,
620,
1435,
422,
1261,
11987,
656,
350,
15329,
1082,
202,
430,
12,
5,
20379,
7860,
893,
18,
1289,
29601,
1345,
16667,
12,
3666,
16,
2308,
16,
1261,
11987,
656,
350,
16,
394,
670,
1060,
1345,
16667,
1435,
3719,
9506,
225,
604,
394,
670,
1060,
1345,
16667,
4002,
503,
5621,
1082,
202,
13117,
7858,
18,
20379,
1345,
751,
4666,
329,
5621,
4202,
1082,
4202,
202,
97,
1377,
289,
1850,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
29601,
1345,
16667,
12,
780,
2308,
16,
509,
1261,
11987,
656,
350,
13,
1216,
670,
1060,
1345,
16667,
4002,
503,
16,
18361,
95,
1377,
4498,
1400,
273,
333,
18,
13117,
7858,
18,
588,
29601,
1345,
7568,
22370,
4446,
3621,
7675,
9838,
5621,
1377,
1323,
12,
2165,
18,
5332,
2134,
10756,
95,
4202,
202,
430,
12443,
12,
4446,
1114,
13,
1400,
18,
4285,
1435,
2934,
588,
4446,
8722,
7675,
474,
620,
1435,
422,
1261,
11987,
656,
350,
15329,
1082,
202,
430,
12,
5,
20379,
7860,
893,
18,
1289,
29601,
1345,
16667,
12,
3666,
16,
2308,
16,
1261,
11987,
656,
350,
16,
394,
670,
1060,
1345,
16667,
1435,
3719,
9506,
225,
604,
394,
670,
1060,
1345,
16667,
2
] |
AST tmp1963_AST_in = (AST)_t;
|
AST tmp1966_AST_in = (AST)_t;
|
public final void exprt(AST _t) throws RecognitionException { AST exprt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST __t496 = _t; AST tmp1955_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp1956_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t496; _t = _t.getNextSibling(); break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { constant(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case USER_FUNC: { AST __t497 = _t; AST tmp1957_AST_in = (AST)_t; match(_t,USER_FUNC); _t = _t.getFirstChild(); parameterlist_noroot(_t); _t = _retTree; _t = __t497; _t = _t.getNextSibling(); break; } case LOCAL_METHOD_REF: { AST __t498 = _t; AST tmp1958_AST_in = (AST)_t; match(_t,LOCAL_METHOD_REF); _t = _t.getFirstChild(); parameterlist_noroot(_t); _t = _retTree; _t = __t498; _t = _t.getNextSibling(); break; } case Field_ref: { field(_t); _t = _retTree; break; } case Entered_func: { AST __t504 = _t; AST tmp1959_AST_in = (AST)_t; match(_t,Entered_func); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1960_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case ENTERED: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1961_AST_in = (AST)_t; match(_t,ENTERED); _t = _t.getNextSibling(); _t = __t504; _t = _t.getNextSibling(); break; } case RECORD_NAME: { AST tmp1962_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); break; } default: boolean synPredMatched501 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==NEW))) { AST __t501 = _t; synPredMatched501 = true; inputState.guessing++; try { { AST __t500 = _t; AST tmp1963_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); AST tmp1964_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); _t = __t500; _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched501 = false; } _t = __t501;inputState.guessing--; } if ( synPredMatched501 ) { AST __t502 = _t; AST tmp1965_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); AST tmp1966_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); parameterlist(_t); _t = _retTree; _t = __t502; _t = _t.getNextSibling(); } else if ((_tokenSet_32.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; if ((_tokenSet_33.member(_t.getType()))) { functioncall(_t); _t = _retTree; } else if ((_tokenSet_34.member(_t.getType()))) { systemhandlename(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } } else { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
88,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3065,
88,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
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,
9686,
15111,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
7616,
26,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3657,
2539,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
10066,
15111,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
8692,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
9053,
1853,
3657,
4313,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
11847,
15111,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
67,
88,
273,
1001,
88,
7616,
26,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
2294,
4594,
30,
202,
202,
3593,
15532,
30,
202,
202,
3593,
2238,
5804,
30,
202,
202,
3593,
18855,
30597,
30,
202,
202,
3593,
5675,
11686,
24870,
6589,
30,
202,
202,
3593,
4934,
67,
30134,
30,
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,
3065,
88,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3065,
88,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
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,
9686,
15111,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
7616,
26,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3657,
2539,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
10066,
15111,
1769,
1082,
202,
67,
88,
273,
389,
2
] |
client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) );
|
if ( IStyledElementModel.STYLE_PROP.equalsIgnoreCase( ref.propName ) ) client.broadcast( new StyleEvent( client ) ); else client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) );
|
public void updateClientReferences( ReferenceableElement referred ) { List clients = referred.getClientList( ); Iterator iter = clients.iterator( ); while ( iter.hasNext( ) ) { BackRef ref = (BackRef) iter.next( ); DesignElement client = ref.element; ElementRefValue value = (ElementRefValue) client.getLocalProperty( this, ref.propName ); value.unresolved( value.getName( ) ); referred.dropClient( client ); client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) ); } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d068c0c772b71f3d7f620599eb41d9764c8baad9/Module.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/Module.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1227,
8221,
12,
6268,
429,
1046,
29230,
262,
202,
95,
202,
202,
682,
7712,
273,
29230,
18,
588,
1227,
682,
12,
11272,
202,
202,
3198,
1400,
273,
7712,
18,
9838,
12,
11272,
202,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
2711,
1957,
1278,
273,
261,
2711,
1957,
13,
1400,
18,
4285,
12,
11272,
1082,
202,
15478,
1046,
1004,
273,
1278,
18,
2956,
31,
1082,
202,
1046,
30556,
460,
273,
261,
1046,
30556,
13,
1004,
18,
588,
2042,
1396,
12,
6862,
202,
2211,
16,
1278,
18,
5986,
461,
11272,
1082,
202,
1132,
18,
318,
11792,
12,
460,
18,
17994,
12,
262,
11272,
1082,
202,
266,
4193,
18,
7285,
1227,
12,
1004,
11272,
1082,
202,
2625,
18,
10828,
1046,
2404,
12,
333,
16,
1004,
6862,
202,
18,
588,
1396,
3262,
82,
12,
1278,
18,
5986,
461,
262,
11272,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1227,
8221,
12,
6268,
429,
1046,
29230,
262,
202,
95,
202,
202,
682,
7712,
273,
29230,
18,
588,
1227,
682,
12,
11272,
202,
202,
3198,
1400,
273,
7712,
18,
9838,
12,
11272,
202,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
2711,
1957,
1278,
273,
261,
2711,
1957,
13,
1400,
18,
4285,
12,
11272,
1082,
202,
15478,
1046,
1004,
273,
1278,
18,
2956,
31,
1082,
202,
1046,
30556,
460,
273,
261,
1046,
30556,
13,
1004,
18,
588,
2042,
1396,
12,
6862,
202,
2211,
16,
1278,
18,
5986,
461,
11272,
1082,
202,
1132,
18,
318,
11792,
12,
460,
18,
17994,
12,
262,
11272,
1082,
202,
266,
4193,
18,
2
] |
for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); }
|
for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); }
|
public DataStructure createDataStructure() throws DataFormatException { RouterInfo info = new RouterInfo(); HashSet addresses = new HashSet(); DataStructure structure = (new RouterAddressTest()).createDataStructure(); addresses.add(structure); info.setAddresses(addresses); PublicKey pubKey = null; SigningPublicKey signingPubKey = null; PrivateKey privKey = null; SigningPrivateKey signingPrivKey = null; Object obj[] = KeyGenerator.getInstance().generatePKIKeypair(); pubKey = (PublicKey)obj[0]; privKey = (PrivateKey)obj[1]; obj = KeyGenerator.getInstance().generateSigningKeypair(); signingPubKey = (SigningPublicKey)obj[0]; signingPrivKey = (SigningPrivateKey)obj[1]; _log.debug("SigningPublicKey: " + signingPubKey); _log.debug("SigningPrivateKey: " + signingPrivKey); RouterIdentity ident = new RouterIdentity(); ident.setCertificate(new Certificate(Certificate.CERTIFICATE_TYPE_NULL, null)); ident.setPublicKey(pubKey); ident.setSigningPublicKey(signingPubKey); info.setIdentity(ident); Properties options = new Properties(); for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); } options.setProperty("netConnectionSpeed", "OC12"); info.setOptions(options); HashSet peers = new HashSet(); structure = (new HashTest()).createDataStructure(); peers.add(structure); info.setPeers(peers); info.setPublished(System.currentTimeMillis()); //info.setVersion(69); info.sign(signingPrivKey); return info; }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/440cf2c983ceb0ff188b530cda4530213fab0e7e/RouterInfoTest.java/buggy/core/java/test/net/i2p/data/RouterInfoTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1910,
6999,
752,
751,
6999,
1435,
1216,
1910,
9291,
288,
3639,
9703,
966,
1123,
273,
394,
9703,
966,
5621,
3639,
6847,
6138,
273,
394,
6847,
5621,
3639,
1910,
6999,
3695,
273,
261,
2704,
9703,
1887,
4709,
1435,
2934,
2640,
751,
6999,
5621,
3639,
6138,
18,
1289,
12,
7627,
1769,
3639,
1123,
18,
542,
7148,
12,
13277,
1769,
540,
202,
9632,
18659,
273,
446,
31,
202,
12322,
9632,
10611,
17924,
273,
446,
31,
202,
10824,
22849,
273,
446,
31,
202,
12322,
10824,
10611,
15475,
653,
273,
446,
31,
202,
202,
921,
1081,
8526,
273,
1929,
3908,
18,
588,
1442,
7675,
7163,
8784,
45,
653,
6017,
5621,
202,
10174,
653,
273,
261,
9632,
13,
2603,
63,
20,
15533,
202,
11365,
653,
273,
261,
10824,
13,
2603,
63,
21,
15533,
202,
2603,
273,
1929,
3908,
18,
588,
1442,
7675,
7163,
12322,
653,
6017,
5621,
202,
26907,
17924,
273,
261,
12322,
9632,
13,
2603,
63,
20,
15533,
202,
26907,
15475,
653,
273,
261,
12322,
10824,
13,
2603,
63,
21,
15533,
202,
202,
67,
1330,
18,
4148,
2932,
12322,
9632,
30,
315,
397,
10611,
17924,
1769,
202,
67,
1330,
18,
4148,
2932,
12322,
10824,
30,
315,
397,
10611,
15475,
653,
1769,
202,
202,
8259,
4334,
3390,
273,
394,
9703,
4334,
5621,
202,
6392,
18,
542,
4719,
12,
2704,
6660,
12,
4719,
18,
22367,
26649,
67,
2399,
67,
8560,
16,
446,
10019,
202,
6392,
18,
542,
9632,
12,
10174,
653,
1769,
202,
6392,
18,
542,
12322,
9632,
12,
26907,
17924,
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,
377,
1071,
1910,
6999,
752,
751,
6999,
1435,
1216,
1910,
9291,
288,
3639,
9703,
966,
1123,
273,
394,
9703,
966,
5621,
3639,
6847,
6138,
273,
394,
6847,
5621,
3639,
1910,
6999,
3695,
273,
261,
2704,
9703,
1887,
4709,
1435,
2934,
2640,
751,
6999,
5621,
3639,
6138,
18,
1289,
12,
7627,
1769,
3639,
1123,
18,
542,
7148,
12,
13277,
1769,
540,
202,
9632,
18659,
273,
446,
31,
202,
12322,
9632,
10611,
17924,
273,
446,
31,
202,
10824,
22849,
273,
446,
31,
202,
12322,
10824,
10611,
15475,
653,
273,
446,
31,
202,
202,
921,
1081,
8526,
273,
1929,
3908,
18,
588,
1442,
7675,
7163,
8784,
45,
653,
6017,
5621,
202,
10174,
653,
273,
261,
9632,
13,
2603,
63,
20,
15533,
202,
2
] |
buff.append(" <li><em>Data format: </em>" + StringUtil.quoteHtmlContent( ds.getDataFormatType().toString()) + "\n");
|
buff.append( " <li><em>Data format: </em>" ).append( StringUtil.quoteHtmlContent( ds.getDataFormatType().toString() ) ).append( "</li>\n" );
|
static public void writeHtmlDescription(StringBuffer buff, InvDatasetImpl ds, boolean complete, boolean isServer, boolean datasetEvents, boolean catrefEvents) { if (ds == null) return; if (complete) { buff.append("<html>"); buff.append("<head>"); buff.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"); buff.append("</head>"); buff.append("<body>\n"); } buff.append("<h2>Dataset: " + ds.getFullName() + "</h2>\n<ul>\n"); if ((ds.getDataFormatType() != null) && (ds.getDataFormatType() != DataFormatType.NONE)) buff.append(" <li><em>Data format: </em>" + StringUtil.quoteHtmlContent( ds.getDataFormatType().toString()) + "\n"); if ((ds.getDataSize() != 0.0) && !Double.isNaN( ds.getDataSize())) buff.append(" <li><em>Data size: </em>" + Format.formatByteSize(ds.getDataSize()) + "\n"); if ((ds.getDataType() != null) && (ds.getDataType() != DataType.NONE)) buff.append(" <li><em>Data type: </em>" + StringUtil.quoteHtmlContent( ds.getDataType().toString()) + "\n"); if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) buff.append(" <li><em>Collection type: </em>" + StringUtil.quoteHtmlContent( ds.getCollectionType().toString()) + "\n"); if (ds.isHarvest()) buff.append(" <li><em>Harvest: </em>" + ds.isHarvest() + "\n"); if (ds.getAuthority() != null) buff.append(" <li><em>Naming Authority: </em>" + StringUtil.quoteHtmlContent( ds.getAuthority()) + "\n"); if (ds.getID() != null) buff.append(" <li><em>ID: </em>" + StringUtil.quoteHtmlContent( ds.getID()) + "\n"); if (ds.getResourceControl() != null) buff.append(" <li><em>ResourceControl: </em>" + StringUtil.quoteHtmlContent( ds.getResourceControl()) + "\n"); if (ds instanceof InvCatalogRef) { InvCatalogRef catref = (InvCatalogRef) ds; String href = resolve(ds, catref.getXlinkHref()); if (catrefEvents) href = "catref:" + href; buff.append(" <li><em>CatalogRef: </em>" + makeHref(href, null) + "\n"); } buff.append("</ul>\n"); java.util.List docs = ds.getDocumentation(); if (docs.size() > 0) { buff.append("<h3>Documentation:</h3>\n<ul>\n"); for (int i = 0; i < docs.size(); i++) { InvDocumentation doc = (InvDocumentation) docs.get(i); String type = (doc.getType() == null) ? "" : "<strong>" + StringUtil.quoteHtmlContent( doc.getType()) + ":</strong> "; String inline = doc.getInlineContent(); if ((inline != null) && (inline.length() > 0)) buff.append(" <li>" + type + StringUtil.quoteHtmlContent( inline) + "\n"); if (doc.hasXlink()) { // buff.append(" <li>" + type + makeHrefResolve(ds, uri.toString(), doc.getXlinkTitle()) + "</a>\n"); buff.append(" <li>" + type + makeHref(doc.getXlinkHref(), doc.getXlinkTitle()) + "</a>\n"); } } buff.append("</ul>"); } java.util.List access = ds.getAccess(); if (access.size() > 0) { buff.append("<h3>Access:</h3>\n<ol>\n"); for (int i = 0; i < access.size(); i++) { InvAccess a = (InvAccess) access.get(i); InvService s = a.getService(); String urlString = a.getStandardUrlName(); if (datasetEvents) urlString = "dataset:" + urlString; if (isServer) { ServiceType stype = s.getServiceType(); if ((stype == ServiceType.OPENDAP) || (stype == ServiceType.DODS)) urlString = urlString + ".html"; else if (stype == ServiceType.WCS) urlString = urlString + "?request=GetCapabilities&version=1.0.0&service=WCS"; else if (stype == ServiceType.NetcdfServer) urlString = urlString + "?showForm"; } buff.append(" <li> <b>" + StringUtil.quoteHtmlContent( s.getServiceType().toString())); buff.append(":</b> " + makeHref(urlString, a.getStandardUrlName()) + "\n"); } buff.append("</ol>\n"); } java.util.List list = ds.getContributors(); if (list.size() > 0) { buff.append("<h3>Contributors:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Contributor t = (ThreddsMetadata.Contributor) list.get(i); String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil.quoteHtmlContent( t.getRole()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getName()) + role + "\n"); } buff.append("</ul>"); } list = ds.getKeywords(); if (list.size() > 0) { buff.append("<h3>Keywords:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Vocab t = (ThreddsMetadata.Vocab) list.get(i); String vocab = (t.getVocabulary() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( t.getVocabulary()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getText()) + vocab + "\n"); } buff.append("</ul>"); } list = ds.getDates(); if (list.size() > 0) { buff.append("<h3>Dates:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { DateType d = (DateType) list.get(i); String type = (d.getType() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( d.getType()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( d.getText()) + type + "\n"); } buff.append("</ul>"); } list = ds.getProjects(); if (list.size() > 0) { buff.append("<h3>Projects:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Vocab t = (ThreddsMetadata.Vocab) list.get(i); String vocab = (t.getVocabulary() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( t.getVocabulary()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getText()) + vocab + "\n"); } buff.append("</ul>"); } list = ds.getCreators(); if (list.size() > 0) { buff.append("<h3>Creators:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Source t = (ThreddsMetadata.Source) list.get(i); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( t.getName()) + "</strong><ul>\n"); buff.append(" <li><em>email: </em>" + StringUtil.quoteHtmlContent( t.getEmail()) + "\n"); if (t.getUrl() != null) { buff.append(" <li> <em>" + makeHrefResolve(ds, t.getUrl(), null) + "</em>\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } list = ds.getPublishers(); if (list.size() > 0) { buff.append("<h3>Publishers:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Source t = (ThreddsMetadata.Source) list.get(i); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( t.getName()) + "</strong><ul>\n"); buff.append(" <li><em>email: </em>" + StringUtil.quoteHtmlContent( t.getEmail()) + "\n"); if (t.getUrl() != null) { buff.append(" <li> <em>" + makeHrefResolve(ds, t.getUrl(), null) + "</em>\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } list = ds.getVariables(); if (list.size() > 0) { buff.append("<h3>Variables:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Variables t = (ThreddsMetadata.Variables) list.get(i); if (t.getVocabUri() != null) { URI uri = t.getVocabUri(); buff.append(" <li>" + makeHrefResolve(ds, uri.toString(), t.getVocabulary()) + "</a>"); } else { buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getVocabulary())); } buff.append(" <em>vocabulary:</em> <ul>\n"); java.util.List vlist = t.getVariableList(); if (vlist.size() > 0) { for (int j = 0; j < vlist.size(); j++) { ThreddsMetadata.Variable v = (ThreddsMetadata.Variable) vlist.get(j); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( v.getName()) + "</strong> = "); String desc = (v.getDescription() == null) ? "" : " <i>" +StringUtil.quoteHtmlContent( v.getDescription())+"</i> = "; buff.append(desc); String units = (v.getUnits() == null || v.getUnits().length() == 0) ? "" : " (" + v.getUnits() + ") "; buff.append(StringUtil.quoteHtmlContent( v.getVocabularyName() + units) + "\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } buff.append("</ul>"); } ThreddsMetadata.GeospatialCoverage gc = ds.getGeospatialCoverage(); if ((gc != null) && !gc.isEmpty()) { buff.append("<h3>GeospatialCoverage:</h3>\n<ul>\n"); if (gc.isGlobal()) buff.append(" <li><em> Global </em></ul>\n"); else { buff.append(" <li><em> Longitude: </em> " + rangeString(gc.getEastWestRange()) + "\n"); buff.append(" <li><em> Latitude: </em> " + rangeString(gc.getNorthSouthRange()) + "\n"); if (gc.getUpDownRange() != null) buff.append(" <li><em> Altitude: </em> " + rangeString(gc.getUpDownRange()) + " (positive is <strong>" + StringUtil.quoteHtmlContent( gc.getZPositive()) + ")</strong>\n"); java.util.List nlist = gc.getNames(); if ((nlist != null) && (nlist.size() > 0)) { buff.append(" <li><em> Names: </em> <ul>\n"); for (int i = 0; i < nlist.size(); i++) { ThreddsMetadata.Vocab elem = (ThreddsMetadata.Vocab) nlist.get(i); buff.append(" <li>" + StringUtil.quoteHtmlContent( elem.getText()) + "\n"); } buff.append(" </ul>\n"); } buff.append(" </ul>\n"); } } DateRange tc = ds.getTimeCoverage(); if (tc != null) { buff.append("<h3>TimeCoverage:</h3>\n<ul>\n"); DateType start = tc.getStart(); if ((start != null) && !start.isBlank()) buff.append(" <li><em> Start: </em> " + start.toDateTimeString() + "\n"); DateType end = tc.getEnd(); if ((end != null) && !end.isBlank()) buff.append(" <li><em> End: </em> " + end.toDateTimeString() + "\n"); TimeDuration duration = tc.getDuration(); if ((duration != null) && !duration.isBlank()) buff.append(" <li><em> Duration: </em> " + StringUtil.quoteHtmlContent( duration.toString()) + "\n"); TimeDuration resolution = tc.getResolution(); if (tc.useResolution() && (resolution != null) && !resolution.isBlank()) buff.append(" <li><em> Resolution: </em> " + StringUtil.quoteHtmlContent( resolution.toString()) + "\n"); buff.append(" </ul>\n"); } java.util.List metadata = ds.getMetadata(); boolean gotSomeMetadata = false; for (int i = 0; i < metadata.size(); i++) { InvMetadata m = (InvMetadata) metadata.get(i); if (m.hasXlink()) gotSomeMetadata = true; } if (gotSomeMetadata) { buff.append("<h3>Metadata:</h3>\n<ul>\n"); for (int i = 0; i < metadata.size(); i++) { InvMetadata m = (InvMetadata) metadata.get(i); String type = (m.getMetadataType() == null) ? "" : m.getMetadataType(); if (m.hasXlink()) { String title = (m.getXlinkTitle() == null) ? "Type " + type : m.getXlinkTitle(); buff.append(" <li> " + makeHrefResolve(ds, m.getXlinkHref(), title) + "\n"); } //else { //buff.append(" <li> <pre>"+m.getMetadataType()+" "+m.getContentObject()+"</pre>\n"); //} } buff.append("</ul>"); } java.util.List props = ds.getProperties(); if (props.size() > 0) { buff.append("<h3>Properties:</h3>\n<ul>\n"); for (int i = 0; i < props.size(); i++) { InvProperty p = (InvProperty) props.get(i); if (p.getName().equals("attachments")) // LOOK whats this ? buff.append(" <li>" + makeHrefResolve(ds, p.getValue(), p.getName()) + "\n"); else buff.append(" <li>" + StringUtil.quoteHtmlContent( p.getName() + " = \"" + p.getValue()) + "\"\n"); } buff.append("</ul>"); } if (complete) buff.append("</body></html>"); }
|
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/8d328489b477401000f85ec2fb7b56fccdbc0caa/InvDatasetImpl.java/buggy/cdm/src/main/java/thredds/catalog/InvDatasetImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
918,
1045,
4353,
3291,
12,
780,
1892,
6139,
16,
5454,
10656,
2828,
3780,
16,
1377,
1250,
3912,
16,
1250,
353,
2081,
16,
1250,
3709,
3783,
16,
1250,
6573,
1734,
3783,
13,
288,
565,
309,
261,
2377,
422,
446,
13,
327,
31,
565,
309,
261,
6226,
13,
288,
1377,
6139,
18,
6923,
2932,
32,
2620,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
1978,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
3901,
1062,
17,
14298,
427,
5189,
1350,
17,
559,
2412,
913,
5189,
955,
19,
2620,
31,
4856,
33,
9699,
17,
17258,
17,
21,
21121,
1769,
1377,
6139,
18,
6923,
2932,
1757,
1978,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
3432,
5333,
82,
8863,
565,
289,
565,
6139,
18,
6923,
2932,
32,
76,
22,
34,
10656,
30,
315,
397,
3780,
18,
588,
19223,
1435,
397,
6823,
76,
22,
5333,
82,
32,
332,
5333,
82,
8863,
565,
309,
14015,
2377,
18,
588,
751,
1630,
559,
1435,
480,
446,
13,
597,
261,
2377,
18,
588,
751,
1630,
559,
1435,
480,
1910,
1630,
559,
18,
9826,
3719,
1377,
6139,
18,
6923,
12,
315,
411,
549,
4438,
351,
34,
751,
740,
30,
7765,
351,
2984,
262,
18,
6923,
12,
14205,
18,
6889,
4353,
1350,
12,
3780,
18,
588,
751,
1630,
559,
7675,
10492,
1435,
262,
262,
18,
6923,
12,
6823,
549,
5333,
82,
6,
11272,
565,
309,
14015,
2377,
18,
588,
29414,
1435,
480,
374,
18,
20,
13,
597,
401,
5265,
18,
291,
21172,
12,
3780,
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,
282,
760,
1071,
918,
1045,
4353,
3291,
12,
780,
1892,
6139,
16,
5454,
10656,
2828,
3780,
16,
1377,
1250,
3912,
16,
1250,
353,
2081,
16,
1250,
3709,
3783,
16,
1250,
6573,
1734,
3783,
13,
288,
565,
309,
261,
2377,
422,
446,
13,
327,
31,
565,
309,
261,
6226,
13,
288,
1377,
6139,
18,
6923,
2932,
32,
2620,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
1978,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
3901,
1062,
17,
14298,
427,
5189,
1350,
17,
559,
2412,
913,
5189,
955,
19,
2620,
31,
4856,
33,
9699,
17,
17258,
17,
21,
21121,
1769,
1377,
6139,
18,
6923,
2932,
1757,
1978,
2984,
1769,
1377,
6139,
18,
6923,
2932,
32,
3432,
5333,
82,
8863,
565,
2
] |
Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) {
|
NativeJavaMethod njmSet = null; MemberBox setter = null; String setterName = "set".concat(nameComponent); if (ht.containsKey(setterName)) {
|
private void makeBeanProperties(Scriptable scope, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Hashtable toAdd = new Hashtable(); // Now, For each member, make "bean" properties. for (Enumeration e = ht.keys(); e.hasMoreElements(); ) { // Is this a getter? String name = (String) e.nextElement(); boolean memberIsGetMethod = name.startsWith("get"); boolean memberIsIsMethod = name.startsWith("is"); if (memberIsGetMethod || memberIsIsMethod) { // Double check name component. String nameComponent = name.substring(memberIsGetMethod ? 3 : 2); if (nameComponent.length() == 0) continue; // Make the bean property name. String beanPropertyName = nameComponent; char ch0 = nameComponent.charAt(0); if (Character.isUpperCase(ch0)) { if (nameComponent.length() == 1) { beanPropertyName = nameComponent.toLowerCase(); } else { char ch1 = nameComponent.charAt(1); if (!Character.isUpperCase(ch1)) { beanPropertyName = Character.toLowerCase(ch0) +nameComponent.substring(1); } } } // If we already have a member by this name, don't do this // property. if (ht.containsKey(beanPropertyName)) continue; // Get the method by this name. Object method = ht.get(name); if (!(method instanceof NativeJavaMethod)) continue; NativeJavaMethod getJavaMethod = (NativeJavaMethod) method; Method getMethod = extractGetMethod(getJavaMethod, isStatic); if (getMethod != null) { // We have a getter. Now, do we have a setter? Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) { // Is this value a method? method = ht.get(setter); if (method instanceof NativeJavaMethod) { NativeJavaMethod njm = (NativeJavaMethod) method; Class type = getMethod.getReturnType(); setMethod = extractSetMethod(type, njm, isStatic); } } // Make the property. BeanProperty bp = new BeanProperty(getMethod, setMethod); toAdd.put(beanPropertyName, bp); } } } // Add the new bean properties. for (Enumeration e = toAdd.keys(); e.hasMoreElements();) { String key = (String) e.nextElement(); Object value = toAdd.get(key); ht.put(key, value); } }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/clean/js/rhino/src/org/mozilla/javascript/JavaMembers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
3381,
2297,
12,
3651,
429,
2146,
16,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
18559,
25607,
273,
394,
18559,
5621,
3639,
368,
4494,
16,
2457,
1517,
3140,
16,
1221,
315,
14496,
6,
1790,
18,
3639,
364,
261,
21847,
425,
273,
14049,
18,
2452,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
368,
2585,
333,
279,
7060,
35,
5411,
514,
508,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
5411,
1250,
3140,
2520,
967,
1305,
273,
508,
18,
17514,
1190,
2932,
588,
8863,
5411,
1250,
3140,
2520,
2520,
1305,
273,
508,
18,
17514,
1190,
2932,
291,
8863,
5411,
309,
261,
5990,
2520,
967,
1305,
747,
3140,
2520,
2520,
1305,
13,
288,
7734,
368,
3698,
866,
508,
1794,
18,
7734,
514,
508,
1841,
273,
508,
18,
28023,
12,
5990,
2520,
967,
1305,
692,
890,
294,
576,
1769,
7734,
309,
261,
529,
1841,
18,
2469,
1435,
422,
374,
13,
10792,
1324,
31,
7734,
368,
4344,
326,
3931,
1272,
508,
18,
7734,
514,
3931,
13073,
273,
508,
1841,
31,
7734,
1149,
462,
20,
273,
508,
1841,
18,
3001,
861,
12,
20,
1769,
7734,
309,
261,
7069,
18,
291,
8915,
12,
343,
20,
3719,
288,
10792,
309,
261,
529,
1841,
18,
2469,
1435,
422,
404,
13,
288,
13491,
3931,
13073,
273,
508,
1841,
18,
869,
5630,
5621,
10792,
289,
469,
288,
13491,
1149,
462,
21,
273,
508,
1841,
18,
3001,
861,
12,
21,
1769,
13491,
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,
1221,
3381,
2297,
12,
3651,
429,
2146,
16,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
18559,
25607,
273,
394,
18559,
5621,
3639,
368,
4494,
16,
2457,
1517,
3140,
16,
1221,
315,
14496,
6,
1790,
18,
3639,
364,
261,
21847,
425,
273,
14049,
18,
2452,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
368,
2585,
333,
279,
7060,
35,
5411,
514,
508,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
5411,
1250,
3140,
2520,
967,
1305,
273,
508,
18,
17514,
1190,
2932,
588,
8863,
5411,
1250,
3140,
2520,
2520,
1305,
273,
508,
18,
17514,
1190,
2932,
291,
8863,
5411,
309,
261,
5990,
2520,
967,
2
] |
List data = dbc.executeProcedure(procedure,params);
|
List data = dbc.executeProcedure( procedure, params );
|
public static Map sqlProcedureHash( ConnectionPool conPool, String procedure, String[] params ) { procedure = trimAndCheckNoWhitespace(procedure) ; DBConnect dbc = new DBConnect( conPool ); List data = dbc.executeProcedure(procedure,params); String[] meta = dbc.getColumnLabels(); return createHashtableOfStringArrayFromSqlResults( data, meta ); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1ad33c9099b6999235d960a1be2d0fd723408b1c/SqlHelpers.java/buggy/server/src/imcode/server/db/SqlHelpers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
1847,
17213,
2310,
12,
4050,
2864,
356,
2864,
16,
514,
12131,
16,
514,
8526,
859,
262,
288,
3639,
12131,
273,
2209,
31151,
2279,
9431,
12,
685,
8153,
13,
274,
3639,
2383,
5215,
9881,
273,
394,
2383,
5215,
12,
356,
2864,
11272,
3639,
987,
501,
273,
9881,
18,
8837,
17213,
12,
12131,
16,
859,
11272,
3639,
514,
8526,
2191,
273,
9881,
18,
588,
1494,
5888,
5621,
3639,
327,
752,
5582,
14544,
951,
28547,
1265,
5101,
3447,
12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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1635,
1847,
17213,
2310,
12,
4050,
2864,
356,
2864,
16,
514,
12131,
16,
514,
8526,
859,
262,
288,
3639,
12131,
273,
2209,
31151,
2279,
9431,
12,
685,
8153,
13,
274,
3639,
2383,
5215,
9881,
273,
394,
2383,
5215,
12,
356,
2864,
11272,
3639,
987,
501,
273,
9881,
18,
8837,
17213,
12,
12131,
16,
859,
11272,
3639,
514,
8526,
2191,
273,
9881,
18,
588,
1494,
5888,
5621,
3639,
327,
752,
5582,
14544,
951,
28547,
1265,
5101,
3447,
12,
501,
16,
2191,
11272,
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
] |
myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit");
|
myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit");
|
public void loadFromMap(EOModelMap _map) throws EOModelException { myFetchSpecMap = _map; // "entityName" = myEntity myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit"); Map qualifierMap = _map.getMap("qualifier"); if (qualifierMap != null) { myQualifier = EOQualifierFactory.qualifierForMap(new EOModelMap(qualifierMap)); } myRawRowKeyPaths = _map.getList("rawRowKeyPaths", true); myRefreshesRefetchedObjects = _map.getBoolean("refreshesRefetchedObjects"); myRequiresAllQualifierBindingVariables = _map.getBoolean("requiresAllQualifierBindingVariables"); myUsesDistinct = _map.getBoolean("usesDistinct"); List sortOrderings = _map.getList("sortOrderings"); if (sortOrderings != null) { Iterator sortOrderingsIter = sortOrderings.iterator(); while (sortOrderingsIter.hasNext()) { EOModelMap sortOrderingMap = new EOModelMap((Map) sortOrderingsIter.next()); EOSortOrdering sortOrdering = new EOSortOrdering(); sortOrdering.loadFromMap(sortOrderingMap); addSortOrdering(sortOrdering); } } }
|
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/d39ae6aad0341c8bf84f634fb6d078b5ba63e8f8/EOFetchSpecification.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
24935,
863,
12,
41,
51,
1488,
863,
389,
1458,
13,
1216,
512,
51,
1488,
503,
288,
565,
3399,
5005,
1990,
863,
273,
389,
1458,
31,
565,
368,
315,
1096,
461,
6,
273,
3399,
1943,
565,
3399,
797,
273,
389,
1458,
18,
588,
780,
2932,
1106,
3113,
638,
1769,
565,
3399,
5005,
3039,
273,
389,
1458,
18,
588,
4522,
2932,
5754,
3039,
8863,
565,
3399,
13980,
273,
389,
1458,
18,
588,
5507,
2932,
291,
13980,
8863,
565,
3399,
19159,
4710,
273,
389,
1458,
18,
588,
5507,
2932,
23581,
4710,
8863,
565,
3399,
25591,
310,
8180,
653,
4466,
273,
389,
1458,
18,
588,
682,
2932,
1484,
5754,
310,
8180,
653,
4466,
3113,
638,
1769,
565,
3399,
13224,
1092,
4436,
5005,
3039,
273,
389,
1458,
18,
588,
5507,
2932,
17401,
1121,
4436,
5005,
3039,
8863,
565,
1635,
12327,
863,
273,
389,
1458,
18,
588,
863,
2932,
28157,
8863,
565,
309,
261,
28157,
863,
480,
446,
13,
288,
1377,
3399,
16185,
273,
512,
51,
16185,
1733,
18,
28157,
1290,
863,
12,
2704,
512,
51,
1488,
863,
12,
28157,
863,
10019,
565,
289,
565,
3399,
4809,
1999,
653,
4466,
273,
389,
1458,
18,
588,
682,
2932,
1899,
1999,
653,
4466,
3113,
638,
1769,
565,
3399,
8323,
281,
1957,
1593,
329,
4710,
273,
389,
1458,
18,
588,
5507,
2932,
9144,
281,
1957,
1593,
329,
4710,
8863,
565,
3399,
21671,
1595,
16185,
5250,
6158,
273,
389,
1458,
18,
588,
5507,
2932,
18942,
1595,
16185,
5250,
6158,
8863,
565,
3399,
15128,
23402,
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,
24935,
863,
12,
41,
51,
1488,
863,
389,
1458,
13,
1216,
512,
51,
1488,
503,
288,
565,
3399,
5005,
1990,
863,
273,
389,
1458,
31,
565,
368,
315,
1096,
461,
6,
273,
3399,
1943,
565,
3399,
797,
273,
389,
1458,
18,
588,
780,
2932,
1106,
3113,
638,
1769,
565,
3399,
5005,
3039,
273,
389,
1458,
18,
588,
4522,
2932,
5754,
3039,
8863,
565,
3399,
13980,
273,
389,
1458,
18,
588,
5507,
2932,
291,
13980,
8863,
565,
3399,
19159,
4710,
273,
389,
1458,
18,
588,
5507,
2932,
23581,
4710,
8863,
565,
3399,
25591,
310,
8180,
653,
4466,
273,
389,
1458,
18,
588,
682,
2932,
1484,
5754,
310,
8180,
653,
4466,
3113,
638,
1769,
565,
3399,
13224,
1092,
2
] |
Map criteria);
|
CalendarFilter filter);
|
public Set<CalendarEventItem> findEvents(CalendarCollectionItem calendar, Map criteria);
|
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/9aa23e64f4789c81954f3edca5bc3549ccb46ffe/CalendarDao.java/clean/src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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
32,
7335,
1133,
1180,
34,
1104,
3783,
12,
7335,
2532,
1180,
5686,
16,
4766,
2398,
1635,
3582,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
manager.add(createBugzillaTask); manager.add(createBugzillaQueryCategory); manager.add(refresh); manager.add(new Separator());
|
private void fillLocalToolBar(IToolBarManager manager) { manager.add(createTask); manager.add(createCategory); manager.add(new Separator()); manager.add(createBugzillaTask); manager.add(createBugzillaQueryCategory); manager.add(refresh); manager.add(new Separator()); manager.add(filterCompleteTask);// manager.add(filterInCompleteTask); manager.add(filterOnPriority); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/23c8cbf0c6d069ce144d0844eb6071420662b796/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3636,
2042,
6364,
5190,
12,
45,
6364,
5190,
1318,
3301,
13,
288,
3639,
3301,
18,
1289,
12,
2640,
2174,
1769,
3639,
3301,
18,
1289,
12,
2640,
4457,
1769,
3639,
3301,
18,
1289,
12,
2704,
27519,
10663,
3639,
3301,
18,
1289,
12,
2640,
19865,
15990,
2174,
1769,
2398,
202,
4181,
18,
1289,
12,
2640,
19865,
15990,
1138,
4457,
1769,
377,
202,
4181,
18,
1289,
12,
9144,
1769,
3639,
3301,
18,
1289,
12,
2704,
27519,
10663,
3639,
3301,
18,
1289,
12,
2188,
6322,
2174,
1769,
759,
3639,
3301,
18,
1289,
12,
2188,
382,
6322,
2174,
1769,
3639,
3301,
18,
1289,
12,
2188,
1398,
8183,
1769,
5411,
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,
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042,
6364,
5190,
12,
45,
6364,
5190,
1318,
3301,
13,
288,
3639,
3301,
18,
1289,
12,
2640,
2174,
1769,
3639,
3301,
18,
1289,
12,
2640,
4457,
1769,
3639,
3301,
18,
1289,
12,
2704,
27519,
10663,
3639,
3301,
18,
1289,
12,
2640,
19865,
15990,
2174,
1769,
2398,
202,
4181,
18,
1289,
12,
2640,
19865,
15990,
1138,
4457,
1769,
377,
202,
4181,
18,
1289,
12,
9144,
1769,
3639,
3301,
18,
1289,
12,
2704,
27519,
10663,
3639,
3301,
18,
1289,
12,
2188,
6322,
2174,
1769,
759,
3639,
3301,
18,
1289,
12,
2188,
382,
6322,
2174,
1769,
3639,
3301,
18,
1289,
12,
2188,
1398,
8183,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public boolean equals(Object obj) { if (obj instanceof UID) { UID uid = (UID)obj; if (this.unique == uid.unique && this.time == uid.time && this.count == uid.count) { return (true); } } return (false); }
|
public boolean equals(Object other) { if (other instanceof UID) { UID ui = (UID) other; return unique == ui.unique && time == ui.time && count == ui.count; } else return false; }
|
public boolean equals(Object obj) { if (obj instanceof UID) { UID uid = (UID)obj; if (this.unique == uid.unique && this.time == uid.time && this.count == uid.count) { return (true); } } return (false);}
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/UID.java/clean/core/src/classpath/java/java/rmi/server/UID.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1606,
12,
921,
1081,
13,
288,
202,
430,
261,
2603,
1276,
10034,
13,
288,
202,
202,
3060,
4555,
273,
261,
3060,
13,
2603,
31,
202,
202,
430,
261,
2211,
18,
6270,
422,
4555,
18,
6270,
597,
1082,
565,
333,
18,
957,
422,
4555,
18,
957,
597,
1082,
565,
333,
18,
1883,
422,
4555,
18,
1883,
13,
288,
1082,
202,
2463,
261,
3767,
1769,
202,
202,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1606,
12,
921,
1081,
13,
288,
202,
430,
261,
2603,
1276,
10034,
13,
288,
202,
202,
3060,
4555,
273,
261,
3060,
13,
2603,
31,
202,
202,
430,
261,
2211,
18,
6270,
422,
4555,
18,
6270,
597,
1082,
565,
333,
18,
957,
422,
4555,
18,
957,
597,
1082,
565,
333,
18,
1883,
422,
4555,
18,
1883,
13,
288,
1082,
202,
2463,
261,
3767,
1769,
202,
202,
97,
202,
97,
202,
2463,
261,
5743,
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
] |
int sensorHits = attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD ); if (sensorHits > 0) { mods.addModifier(2, "attacker sensors damaged"); } return mods; }
|
public static ToHitData getDamageWeaponMods(Entity attacker, Mounted weapon) { ToHitData mods = new ToHitData(); if ( attacker instanceof Protomech ) { // Head criticals add to target number of all weapons. int hits = ((Protomech)attacker).getCritsHit(Protomech.LOC_HEAD); if( hits > 0 ) { mods.addModifier( hits, hits + " head critical(s)" ); } // Arm mounted (and main gun) weapons get DRMs from arm crits. switch ( weapon.getLocation() ) { case Protomech.LOC_LARM: case Protomech.LOC_RARM: hits = ((Protomech)attacker).getCritsHit( weapon.getLocation() ); if ( hits > 0 ) { mods.addModifier( hits, hits + " arm critical(s)" ); } break; case Protomech.LOC_MAINGUN: // Main gun is affected by crits in *both* arms. hits = ((Protomech)attacker).getCritsHit( Protomech.LOC_LARM ); hits += ((Protomech)attacker).getCritsHit( Protomech.LOC_RARM ); if ( 4 == hits ) { mods.addModifier( ToHitData.IMPOSSIBLE, "Cannot fire main gun with no arms." ); } else if ( hits > 0 ) { mods.addModifier( hits, hits + " arm critical(s)" ); } break; } } // End attacker-is-Protomech // Is the shoulder destroyed? else if ( attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_SHOULDER, weapon.getLocation() ) > 0 ) { mods.addModifier(4, "shoulder actuator destroyed"); } else { // no shoulder hits, add other arm hits int actuatorHits = 0; if ( attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_ARM, weapon.getLocation() ) > 0 ) { actuatorHits++; } if ( attacker.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_ARM, weapon.getLocation() ) > 0 ) { actuatorHits++; } if (actuatorHits > 0) { mods.addModifier( actuatorHits, actuatorHits + " destroyed arm actuators" ); } } // sensors critical hit to attacker int sensorHits = attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD ); if (sensorHits > 0) { mods.addModifier(2, "attacker sensors damaged"); } return mods; }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9f7045be1eb4cb1b7c1b0e6be8f7c2d9c877cd43/Compute.java/buggy/megamek/src/megamek/common/Compute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2974,
13616,
751,
2343,
301,
410,
3218,
28629,
1739,
87,
12,
1943,
13843,
264,
16,
13076,
329,
732,
28629,
13,
225,
288,
1377,
2974,
13616,
751,
15546,
273,
394,
2974,
13616,
751,
5621,
1377,
309,
261,
13843,
264,
1276,
1186,
88,
1742,
343,
262,
288,
1850,
368,
3667,
7921,
335,
1031,
527,
358,
1018,
1300,
434,
777,
732,
438,
7008,
18,
1850,
509,
11076,
273,
14015,
21189,
1742,
343,
13,
4558,
484,
264,
2934,
588,
39,
583,
87,
13616,
12,
21189,
1742,
343,
18,
29450,
67,
12458,
1769,
1850,
309,
12,
11076,
405,
374,
262,
288,
2868,
15546,
18,
1289,
9829,
12,
11076,
16,
11076,
397,
315,
910,
11239,
12,
87,
2225,
11272,
1850,
289,
1850,
368,
1201,
81,
20919,
261,
464,
2774,
31475,
13,
732,
438,
7008,
336,
16801,
6947,
628,
23563,
7921,
87,
18,
1850,
1620,
261,
732,
28629,
18,
588,
2735,
1435,
262,
288,
1850,
648,
1186,
88,
1742,
343,
18,
29450,
67,
48,
26120,
30,
1850,
648,
1186,
88,
1742,
343,
18,
29450,
67,
54,
26120,
30,
2868,
11076,
273,
14015,
21189,
1742,
343,
13,
4558,
484,
264,
2934,
588,
39,
583,
87,
13616,
12,
732,
28629,
18,
588,
2735,
1435,
11272,
2868,
309,
261,
11076,
405,
374,
262,
288,
5375,
15546,
18,
1289,
9829,
12,
11076,
16,
11076,
397,
315,
23563,
11239,
12,
87,
2225,
11272,
2868,
289,
2868,
898,
31,
1850,
648,
1186,
88,
1742,
343,
18,
29450,
67,
5535,
1360,
2124,
30,
2868,
368,
12740,
31475,
353,
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,
760,
2974,
13616,
751,
2343,
301,
410,
3218,
28629,
1739,
87,
12,
1943,
13843,
264,
16,
13076,
329,
732,
28629,
13,
225,
288,
1377,
2974,
13616,
751,
15546,
273,
394,
2974,
13616,
751,
5621,
1377,
309,
261,
13843,
264,
1276,
1186,
88,
1742,
343,
262,
288,
1850,
368,
3667,
7921,
335,
1031,
527,
358,
1018,
1300,
434,
777,
732,
438,
7008,
18,
1850,
509,
11076,
273,
14015,
21189,
1742,
343,
13,
4558,
484,
264,
2934,
588,
39,
583,
87,
13616,
12,
21189,
1742,
343,
18,
29450,
67,
12458,
1769,
1850,
309,
12,
11076,
405,
374,
262,
288,
2868,
15546,
18,
1289,
9829,
12,
11076,
16,
11076,
397,
315,
910,
11239,
12,
87,
2225,
11272,
1850,
289,
1850,
2
] |
|
public void paint(RenderingContext c) {
|
public void paint(RenderingContext c, int originX, int originY) {
|
public void paint(RenderingContext c) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } updateAbsoluteLocations(); List blocks = new ArrayList(); List lines = new ArrayList(); collectBoxes(c, getMaster(), blocks, lines); // TODO root layer needs to be handled correctly paintLayerBackgroundAndBorder(c); paintLayers(c, getSortedLayers(NEGATIVE)); paintBackgroundsAndBorders(c, blocks); paintFloats(c); paintInlineContent(c, lines); //without great thought, just doing this as close to what it was as possible paintListStyles(c, blocks); // TODO z-index: 0 layers should be painted atomically paintLayers(c, getSortedLayers(AUTO_AND_ZERO)); paintLayers(c, getSortedLayers(POSITIVE)); }
|
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/2aa2be70fd65b9008f7db1dc1250cb01f13cf049/Layer.java/buggy/src/java/org/xhtmlrenderer/layout/Layer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
14261,
1042,
276,
16,
509,
4026,
60,
16,
509,
4026,
61,
13,
288,
3639,
309,
261,
588,
7786,
7675,
588,
2885,
7675,
291,
7505,
10756,
288,
5411,
1754,
7505,
4576,
12,
71,
1769,
3639,
289,
3639,
1089,
10368,
10985,
5621,
3639,
987,
4398,
273,
394,
2407,
5621,
3639,
987,
2362,
273,
394,
2407,
5621,
3639,
3274,
29521,
12,
71,
16,
27607,
9334,
4398,
16,
2362,
1769,
3639,
368,
2660,
1365,
3018,
4260,
358,
506,
7681,
8783,
3639,
12574,
4576,
8199,
1876,
8107,
12,
71,
1769,
7734,
12574,
9282,
12,
71,
16,
15175,
329,
9282,
12,
5407,
22421,
10019,
3639,
12574,
8199,
87,
1876,
21621,
12,
71,
16,
4398,
1769,
3639,
12574,
4723,
87,
12,
71,
1769,
3639,
12574,
10870,
1350,
12,
71,
16,
2362,
1769,
3639,
368,
13299,
18825,
286,
83,
9540,
16,
2537,
9957,
333,
487,
1746,
358,
4121,
518,
1703,
487,
3323,
3639,
12574,
682,
9725,
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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,
12574,
12,
14261,
1042,
276,
16,
509,
4026,
60,
16,
509,
4026,
61,
13,
288,
3639,
309,
261,
588,
7786,
7675,
588,
2885,
7675,
291,
7505,
10756,
288,
5411,
1754,
7505,
4576,
12,
71,
1769,
3639,
289,
3639,
1089,
10368,
10985,
5621,
3639,
987,
4398,
273,
394,
2407,
5621,
3639,
987,
2362,
273,
394,
2407,
5621,
3639,
3274,
29521,
12,
71,
16,
27607,
9334,
4398,
16,
2362,
1769,
3639,
368,
2660,
1365,
3018,
4260,
358,
506,
7681,
8783,
3639,
12574,
4576,
8199,
1876,
8107,
12,
71,
1769,
7734,
12574,
9282,
12,
71,
16,
15175,
329,
9282,
12,
5407,
22421,
10019,
3639,
12574,
8199,
87,
1876,
21621,
12,
71,
16,
4398,
1769,
3639,
12574,
4723,
87,
12,
2
] |
public IRubyObject evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { /* if (ruby_safe_level >= 4) { Check_Type(src, T_STRING); } else { Check_SafeStr(src); } */ return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; // FIXME: lineNumber is not supported //IRubyObject lineNumber = args[3]; return args[0].evalSimple(source.getRuntime().getCurrentContext(), source, ((RubyString) filename).toString()); } public Arity getArity() { return Arity.optional(); } }, new IRubyObject[] { this, src, file, line }); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5302,
14655,
12,
54,
10340,
3120,
3613,
16,
15908,
10340,
921,
1705,
16,
15908,
10340,
921,
585,
16,
15908,
10340,
921,
980,
13,
288,
3639,
1748,
3639,
309,
261,
27768,
67,
4626,
67,
2815,
1545,
1059,
13,
288,
540,
202,
1564,
67,
559,
12,
4816,
16,
399,
67,
5804,
1769,
3639,
289,
469,
288,
540,
202,
1564,
67,
9890,
1585,
12,
4816,
1769,
540,
202,
97,
3639,
1195,
3639,
327,
3613,
18,
8837,
14655,
12,
2704,
8444,
1435,
288,
5411,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
7734,
15908,
10340,
921,
1084,
273,
833,
63,
21,
15533,
7734,
15908,
10340,
921,
1544,
273,
833,
63,
22,
15533,
7734,
368,
9852,
30,
13629,
353,
486,
3260,
7734,
368,
7937,
10340,
921,
13629,
273,
833,
63,
23,
15533,
27573,
327,
833,
63,
20,
8009,
8622,
5784,
12,
3168,
18,
588,
5576,
7675,
588,
3935,
1042,
9334,
21394,
1084,
16,
14015,
54,
10340,
780,
13,
1544,
2934,
10492,
10663,
5411,
289,
5411,
1071,
1201,
560,
336,
686,
560,
1435,
288,
7734,
327,
1201,
560,
18,
10444,
5621,
5411,
289,
3639,
19879,
394,
15908,
10340,
921,
8526,
288,
333,
16,
1705,
16,
585,
16,
980,
15549,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5302,
14655,
12,
54,
10340,
3120,
3613,
16,
15908,
10340,
921,
1705,
16,
15908,
10340,
921,
585,
16,
15908,
10340,
921,
980,
13,
288,
3639,
1748,
3639,
309,
261,
27768,
67,
4626,
67,
2815,
1545,
1059,
13,
288,
540,
202,
1564,
67,
559,
12,
4816,
16,
399,
67,
5804,
1769,
3639,
289,
469,
288,
540,
202,
1564,
67,
9890,
1585,
12,
4816,
1769,
540,
202,
97,
3639,
1195,
3639,
327,
3613,
18,
8837,
14655,
12,
2704,
8444,
1435,
288,
5411,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
7734,
15908,
10340,
921,
1084,
273,
833,
63,
21,
15533,
7734,
15908,
10340,
921,
1544,
273,
2
] |
||
protected void renderSVGDocument(Document doc, int x, int y, FontState fs) { SVGSVGElement svg = ((SVGDocument)doc).getRootElement(); int w = (int)(svg.getWidth().getBaseVal().getValue() * 1000); int h = (int)(svg.getHeight().getBaseVal().getValue() * 1000); float sx = 1, sy = -1; int xOffset = x, yOffset = y; /* * Clip to the svg area. * Note: To have the svg overlay (under) a text area then use * an fo:block-container */ currentStream.add("q\n"); if (w != 0 && h != 0) { currentStream.add(x / 1000f + " " + y / 1000f + " m\n"); currentStream.add((x + w) / 1000f + " " + y / 1000f + " l\n"); currentStream.add((x + w) / 1000f + " " + (y - h) / 1000f + " l\n"); currentStream.add(x / 1000f + " " + (y - h) / 1000f + " l\n"); currentStream.add("h\n"); currentStream.add("W\n"); currentStream.add("n\n"); } // transform so that the coordinates (0,0) is from the top left // and positive is down and to the right. (0,0) is where the // viewBox puts it. currentStream.add(sx + " 0 0 " + sy + " " + xOffset / 1000f + " " + yOffset / 1000f + " cm\n"); UserAgent userAgent = new MUserAgent(new AffineTransform()); GVTBuilder builder = new GVTBuilder(); GraphicsNodeRenderContext rc = getRenderContext(); BridgeContext ctx = new BridgeContext(userAgent, rc); GraphicsNode root; //System.out.println("creating PDFGraphics2D"); PDFGraphics2D graphics = new PDFGraphics2D(true, fs, pdfDoc, currentFontName, currentFontSize, currentXPosition, currentYPosition); graphics.setGraphicContext( new org.apache.batik.ext.awt.g2d.GraphicContext()); graphics.setRenderingHints(rc.getRenderingHints()); try { root = builder.build(ctx, doc); root.paint(graphics, rc); currentStream.add(graphics.getString()); } catch (Exception e) { e.printStackTrace(); } currentStream.add("Q\n"); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2ffd90c4212588df663d36e7afbc00796716cab0/PDFRenderer.java/buggy/src/org/apache/fop/render/pdf/PDFRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
5902,
26531,
2519,
12,
2519,
2434,
16,
474,
92,
16,
474,
93,
16,
5711,
1119,
2556,
15329,
26531,
26531,
3471,
20105,
33,
12443,
26531,
2519,
13,
2434,
2934,
588,
2375,
1046,
5621,
474,
91,
28657,
474,
21433,
11451,
18,
588,
2384,
7675,
588,
2171,
3053,
7675,
24805,
1435,
14,
18088,
1769,
267,
451,
28657,
474,
21433,
11451,
18,
588,
2686,
7675,
588,
2171,
3053,
7675,
24805,
1435,
14,
18088,
1769,
5659,
30319,
33,
21,
16,
9009,
29711,
21,
31,
474,
92,
2335,
33,
92,
16,
93,
2335,
33,
93,
31,
26873,
12265,
337,
10370,
281,
20105,
5036,
4509,
8067,
30,
774,
76,
842,
546,
281,
20105,
17312,
12,
9341,
13,
270,
408,
834,
421,
275,
1202,
14,
304,
617,
30,
2629,
17,
3782,
5549,
2972,
1228,
18,
1289,
2932,
85,
64,
82,
8863,
430,
12,
91,
5,
33,
20,
10,
10,
76,
5,
33,
20,
15329,
2972,
1228,
18,
1289,
12,
92,
19,
18088,
74,
15,
3660,
15,
93,
19,
18088,
74,
9078,
81,
64,
82,
8863,
2972,
1228,
18,
1289,
12443,
92,
15,
91,
13176,
18088,
74,
15,
3660,
15,
93,
19,
18088,
74,
9078,
80,
64,
82,
8863,
2972,
1228,
18,
1289,
12443,
92,
15,
91,
13176,
18088,
74,
15,
3660,
15,
12,
93,
17,
76,
13176,
18088,
74,
9078,
80,
64,
82,
8863,
2972,
1228,
18,
1289,
12,
92,
19,
18088,
74,
15,
3660,
15,
12,
93,
17,
76,
13176,
18088,
74,
9078,
80,
64,
82,
8863,
2972,
1228,
18,
1289,
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,
4750,
6459,
5902,
26531,
2519,
12,
2519,
2434,
16,
474,
92,
16,
474,
93,
16,
5711,
1119,
2556,
15329,
26531,
26531,
3471,
20105,
33,
12443,
26531,
2519,
13,
2434,
2934,
588,
2375,
1046,
5621,
474,
91,
28657,
474,
21433,
11451,
18,
588,
2384,
7675,
588,
2171,
3053,
7675,
24805,
1435,
14,
18088,
1769,
267,
451,
28657,
474,
21433,
11451,
18,
588,
2686,
7675,
588,
2171,
3053,
7675,
24805,
1435,
14,
18088,
1769,
5659,
30319,
33,
21,
16,
9009,
29711,
21,
31,
474,
92,
2335,
33,
92,
16,
93,
2335,
33,
93,
31,
26873,
12265,
337,
10370,
281,
20105,
5036,
4509,
8067,
30,
774,
76,
842,
546,
281,
20105,
17312,
12,
9341,
13,
270,
408,
834,
421,
275,
1202,
14,
2
] |
||
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType();
|
public quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { quickfix.field.UnderlyingSecurityType value = new quickfix.field.UnderlyingSecurityType();
|
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequestAck.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequestAck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
10833,
765,
6291,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
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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
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
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
] |
public OutputStream textDeltaChunk(SVNDiffWindow diffWindow)
|
public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow)
|
public OutputStream textDeltaChunk(SVNDiffWindow diffWindow) throws SVNException { if (myDiffWindows == null) { /* * this is the collection for all diffWindows (if any) * which will be supplied */ myDiffWindows = new LinkedList(); } myDiffWindows.add(diffWindow); try { return myMediator.createTemporaryLocation(myCurrentPath, diffWindow); } catch (IOException ioe) { throw new SVNException(ioe); } }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/Export.java/clean/doc/examples/src/org/tmatesoft/svn/examples/repository/Export.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8962,
977,
9242,
5579,
12,
780,
589,
16,
29537,
2908,
3048,
3829,
3122,
3829,
13,
7734,
1216,
29537,
50,
503,
288,
5411,
309,
261,
4811,
5938,
10399,
422,
446,
13,
288,
7734,
1748,
1171,
380,
333,
353,
326,
1849,
364,
777,
3122,
10399,
261,
430,
1281,
13,
1171,
380,
1492,
903,
506,
4580,
1171,
1195,
7734,
3399,
5938,
10399,
273,
394,
10688,
5621,
5411,
289,
5411,
3399,
5938,
10399,
18,
1289,
12,
5413,
3829,
1769,
5411,
775,
288,
7734,
327,
3399,
13265,
10620,
18,
2640,
11685,
2735,
12,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8962,
977,
9242,
5579,
12,
780,
589,
16,
29537,
2908,
3048,
3829,
3122,
3829,
13,
7734,
1216,
29537,
50,
503,
288,
5411,
309,
261,
4811,
5938,
10399,
422,
446,
13,
288,
7734,
1748,
1171,
380,
333,
353,
326,
1849,
364,
777,
3122,
10399,
261,
430,
1281,
13,
1171,
380,
1492,
903,
506,
4580,
1171,
1195,
7734,
3399,
5938,
10399,
273,
394,
10688,
5621,
5411,
289,
5411,
3399,
5938,
10399,
18,
1289,
12,
5413,
3829,
1769,
5411,
775,
288,
7734,
327,
3399,
13265,
10620,
18,
2640,
11685,
2735,
12,
4811,
3935,
743,
16,
13491,
3122,
3829,
1769,
5411,
289,
1044,
261,
14106,
10847,
13,
288,
7734,
604,
394,
29537,
50,
503,
12,
1594,
73,
1769,
5411,
289,
3639,
2
] |
if (end>0) {
|
if (end > 0) {
|
private void addNode(String path, Vector v) { String name=null; int start = 0, end = 0, depth = 1; Enumeration el; Node n, nn; boolean vacant=false; el = v.elements(); n = (Node)el.nextElement(); do { end = path.indexOf('/', start); if (end>0) { name = path.substring(start, end); start = end+1; } else name = path.substring(start); for(int i=1;i<=depth;i++) { if(!el.hasMoreElements()) { addElement(name, v); break; } else { n = (Node)el.nextElement(); if(n.name.toString().equals(name)) { break; } else { replaceElement(name, v, depth); break; } } } depth++; } while (end!=-1 && start<path.length()); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/buggy/java/plugins/examples/zip/ZipView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
23063,
12,
780,
589,
16,
5589,
331,
13,
288,
202,
780,
508,
33,
2011,
31,
202,
474,
787,
273,
374,
16,
679,
273,
374,
16,
3598,
273,
404,
31,
202,
21847,
415,
31,
202,
907,
290,
16,
7761,
31,
202,
6494,
30602,
970,
33,
5743,
31,
202,
565,
415,
273,
331,
18,
6274,
5621,
202,
565,
290,
273,
261,
907,
13,
292,
18,
4285,
1046,
5621,
202,
2896,
288,
202,
565,
679,
273,
589,
18,
31806,
2668,
19,
2187,
787,
1769,
202,
565,
309,
261,
409,
34,
20,
13,
288,
202,
202,
529,
273,
589,
18,
28023,
12,
1937,
16,
679,
1769,
202,
202,
1937,
273,
679,
15,
21,
31,
202,
565,
289,
202,
565,
469,
202,
202,
529,
273,
589,
18,
28023,
12,
1937,
1769,
3196,
565,
364,
12,
474,
277,
33,
21,
31,
77,
32,
33,
5979,
31,
77,
27245,
288,
202,
202,
430,
12,
5,
292,
18,
5332,
7417,
3471,
10756,
288,
1082,
565,
9335,
12,
529,
16,
331,
1769,
1082,
565,
898,
31,
202,
202,
97,
469,
288,
1082,
565,
290,
273,
261,
907,
13,
292,
18,
4285,
1046,
5621,
1082,
565,
309,
12,
82,
18,
529,
18,
10492,
7675,
14963,
12,
529,
3719,
288,
1082,
202,
8820,
31,
1082,
565,
289,
1082,
565,
469,
288,
1082,
202,
2079,
1046,
12,
529,
16,
331,
16,
3598,
1769,
1082,
202,
8820,
31,
1082,
565,
289,
202,
202,
97,
202,
565,
289,
202,
565,
3598,
9904,
31,
202,
97,
1323,
261,
409,
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,
23063,
12,
780,
589,
16,
5589,
331,
13,
288,
202,
780,
508,
33,
2011,
31,
202,
474,
787,
273,
374,
16,
679,
273,
374,
16,
3598,
273,
404,
31,
202,
21847,
415,
31,
202,
907,
290,
16,
7761,
31,
202,
6494,
30602,
970,
33,
5743,
31,
202,
565,
415,
273,
331,
18,
6274,
5621,
202,
565,
290,
273,
261,
907,
13,
292,
18,
4285,
1046,
5621,
202,
2896,
288,
202,
565,
679,
273,
589,
18,
31806,
2668,
19,
2187,
787,
1769,
202,
565,
309,
261,
409,
34,
20,
13,
288,
202,
202,
529,
273,
589,
18,
28023,
12,
1937,
16,
679,
1769,
202,
202,
1937,
273,
679,
15,
21,
31,
202,
565,
289,
202,
565,
469,
2
] |
setScope(null);
|
private void evaluateExpressions() throws JspException { try { setArg0((String) evalAttr("arg0", getArg0(), String.class)); } catch (NullAttributeException ex) { setArg0(null); } try { setArg1((String) evalAttr("arg1", getArg1(), String.class)); } catch (NullAttributeException ex) { setArg1(null); } try { setArg2((String) evalAttr("arg2", getArg2(), String.class)); } catch (NullAttributeException ex) { setArg2(null); } try { setArg3((String) evalAttr("arg3", getArg3(), String.class)); } catch (NullAttributeException ex) { setArg3(null); } try { setArg4((String) evalAttr("arg4", getArg4(), String.class)); } catch (NullAttributeException ex) { setArg4(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setKey((String) evalAttr("key", getKey(), String.class)); } catch (NullAttributeException ex) { setKey(null); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/8505d2daee76ab5fee7073c344e65065b694c149/ELMessageTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
4117,
20,
12443,
780,
13,
5302,
3843,
2932,
3175,
20,
3113,
336,
4117,
20,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
20,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
21,
12443,
780,
13,
5302,
3843,
2932,
3175,
21,
3113,
336,
4117,
21,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
21,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
22,
12443,
780,
13,
5302,
3843,
2932,
3175,
22,
3113,
336,
4117,
22,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
22,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
23,
12443,
780,
13,
5302,
3843,
2932,
3175,
23,
3113,
336,
4117,
23,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
23,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
24,
12443,
780,
13,
5302,
3843,
2932,
3175,
24,
3113,
336,
4117,
24,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
24,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
4117,
20,
12443,
780,
13,
5302,
3843,
2932,
3175,
20,
3113,
336,
4117,
20,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
20,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
21,
12443,
780,
13,
5302,
3843,
2932,
3175,
21,
3113,
336,
4117,
21,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
4117,
21,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
4117,
22,
12443,
780,
13,
5302,
3843,
2932,
3175,
22,
3113,
336,
4117,
22,
9334,
514,
18,
1106,
10019,
2
] |
|
DimIProxy(Dim dim, int type) {
|
private DimIProxy(Dim dim, int type) {
|
DimIProxy(Dim dim, int type) { this.dim = dim; this.type = type; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
|
[
1,
8585,
326,
22398,
316,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
463,
381,
45,
3886,
12,
5225,
2464,
16,
509,
618,
13,
3639,
288,
5411,
333,
18,
3509,
273,
2464,
31,
5411,
333,
18,
723,
273,
618,
31,
3639,
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
] |
public Iterator getAttributeNames() {
|
public Iterator getAttributeNames() {
|
public Iterator getAttributeNames() { Vector names = new Vector(); for ( Enumeration e = attributes.keys(); e.hasMoreElements(); ) { names.add( e.nextElement() ); } return names.iterator(); }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6dcdc5fb571f07235e76daa037e5cf6d34bc81a0/James.java/buggy/proposals/imap2/java/org/apache/james/James.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
4061,
1557,
1435,
565,
288,
3639,
5589,
1257,
273,
394,
5589,
5621,
3639,
364,
261,
13864,
425,
273,
1677,
18,
2452,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
1257,
18,
1289,
12,
425,
18,
4285,
1046,
1435,
11272,
3639,
289,
3639,
327,
1257,
18,
9838,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
4498,
4061,
1557,
1435,
565,
288,
3639,
5589,
1257,
273,
394,
5589,
5621,
3639,
364,
261,
13864,
425,
273,
1677,
18,
2452,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
1257,
18,
1289,
12,
425,
18,
4285,
1046,
1435,
11272,
3639,
289,
3639,
327,
1257,
18,
9838,
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
] |
public TA_RetCode ADX( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevPlusDM, prevTR; double tempReal, tempReal2, diffP, diffM; double minusDI, plusDI, sumDX, prevADX; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = (2*optInTimePeriod) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) - 1; else lookbackTotal = 2; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevPlusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } sumDX = 0.0; i = optInTimePeriod; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) sumDX += (100.0 * ( Math.abs (minusDI-plusDI)/tempReal)) ; } } prevADX = (sumDX / optInTimePeriod) ; i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) ; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } } outReal[0] = prevADX; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } outReal[outIdx++] = prevADX; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
|
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
11738,
60,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
10074,
16,
2324,
823,
5269,
16,
596,
4223,
31,
1645,
2807,
8573,
16,
2807,
10520,
16,
2807,
4605,
31,
1645,
2807,
18434,
16125,
16,
2807,
13207,
16125,
16,
2807,
4349,
31,
1645,
31497,
16,
31497,
22,
16,
3122,
52,
16,
3122,
49,
31,
1645,
12647,
2565,
16,
8737,
2565,
16,
2142,
28826,
16,
2807,
1880,
60,
31,
509,
277,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
309,
12,
261,
474,
13,
3838,
382,
26540,
422,
12,
2144,
18,
6236,
67,
4051,
8623,
2153,
382,
26540,
273,
5045,
31,
469,
309,
12,
14015,
474,
13,
3838,
382,
26540,
411,
576,
13,
747,
14015,
474,
13,
3838,
382,
26540,
405,
25259,
13,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
16234,
67,
8388,
31,
309,
12,
2153,
382,
26540,
405,
404,
262,
2324,
823,
5269,
273,
261,
22,
14,
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,
1071,
399,
37,
67,
7055,
1085,
11738,
60,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
10074,
16,
2324,
823,
5269,
16,
596,
4223,
31,
1645,
2807,
8573,
16,
2807,
10520,
16,
2807,
4605,
31,
1645,
2807,
18434,
16125,
16,
2807,
13207,
16125,
16,
2807,
4349,
31,
1645,
31497,
16,
31497,
22,
16,
3122,
52,
16,
3122,
49,
31,
1645,
12647,
2565,
16,
8737,
2565,
16,
2142,
28826,
16,
2807,
1880,
60,
31,
509,
277,
31,
309,
12,
27108,
411,
2
] |
||
final boolean isXmlAvailable()
|
public final boolean isXmlAvailable()
|
final boolean isXmlAvailable() { return true; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/1e0a67d7253f80f0671c2b5f969f8f86a836773c/CompilerEnvirons.java/buggy/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1250,
353,
4432,
5268,
1435,
565,
288,
3639,
327,
638,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 org.quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { org.quickfix.field.RegistRefID value = new org.quickfix.field.RegistRefID();
|
public quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { quickfix.field.RegistRefID value = new quickfix.field.RegistRefID();
|
public org.quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { org.quickfix.field.RegistRefID value = new org.quickfix.field.RegistRefID(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RegistrationInstructionsResponse.java/clean/src/java/src/quickfix/fix44/RegistrationInstructionsResponse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1617,
376,
1957,
734,
336,
1617,
376,
1957,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1617,
376,
1957,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1617,
376,
1957,
734,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1617,
376,
1957,
734,
336,
1617,
376,
1957,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1617,
376,
1957,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1617,
376,
1957,
734,
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
] |
c = in.read();
|
c = getChar();
|
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8d78476dde863807579dcd20202decfcfcc9f7f1/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
3639,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
3639,
741,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
2337,
82,
6134,
288,
7734,
2943,
12058,
4871,
8047,
42,
67,
4537,
5538,
5997,
31,
7734,
309,
14015,
7133,
473,
15508,
42,
67,
12917,
5997,
55,
13,
480,
374,
13,
10792,
898,
31,
5411,
289,
3639,
289,
1323,
261,
291,
46,
1260,
909,
12,
71,
13,
747,
276,
422,
2337,
82,
8284,
3639,
309,
261,
71,
422,
6431,
67,
7305,
13,
5411,
327,
6431,
31,
3639,
309,
261,
71,
480,
4014,
597,
276,
480,
2337,
82,
6134,
5411,
2943,
5626,
15508,
42,
67,
4537,
5538,
5997,
31,
3639,
368,
2756,
19,
11041,
19,
1336,
792,
35,
3639,
368,
4267,
596,
364,
5023,
598,
279,
411,
823,
12877,
34,
3639,
1250,
2756,
1685,
31,
3639,
1250,
353,
16532,
8448,
1685,
273,
629,
31,
3639,
309,
261,
71,
422,
5282,
13,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
296,
89,
6134,
288,
7734,
2756,
1685,
273,
638,
31,
7734,
353,
16532,
8448,
1685,
273,
638,
31,
7734,
533,
1892,
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,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
3639,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
3639,
741,
288,
5411,
276,
273,
23577,
5621,
5411,
309,
261,
71,
422,
2337,
82,
6134,
288,
7734,
2943,
12058,
4871,
8047,
42,
67,
4537,
5538,
5997,
31,
7734,
309,
14015,
7133,
473,
15508,
42,
67,
12917,
5997,
55,
13,
480,
374,
13,
10792,
898,
31,
2
] |
result[index++] = (char) firstChar;
|
result[index++] = (char)firstChar;
|
public java.lang.String read_wstring() { int size = read_long(); if (size == 0) { return ""; } read_align(2, size); int numChars = size / 2; boolean littleEndian = false; read_align(1, 2); int firstChar = (char) read_ushort_no_align_big_endian(); _offset += 2; char[] result; int index = 0; if (firstChar == 0xFEFF) { // big endian result = new char[--numChars]; } else if (firstChar == 0xFFFE) { // little endian result = new char[--numChars]; littleEndian = true; } else { // no BOM, big endian result = new char[numChars--]; result[index++] = (char) firstChar; } read_align(1, 2 * numChars); if (littleEndian) { for (int i = 0; i < numChars; i++) { result[index++] = (char) read_ushort_no_align_little_endian(); _offset += 2; } } else { for (int i = 0; i < numChars; i++) { result[index++] = (char) read_ushort_no_align_big_endian(); _offset += 2; } } return new String(result); }
|
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/CdrInputStream.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/CdrInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4936,
18,
780,
855,
67,
91,
1080,
1435,
288,
3639,
509,
963,
273,
855,
67,
5748,
5621,
3639,
309,
261,
1467,
422,
374,
13,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
855,
67,
7989,
12,
22,
16,
963,
1769,
3639,
509,
818,
7803,
273,
963,
342,
576,
31,
3639,
1250,
328,
10609,
273,
629,
31,
3639,
855,
67,
7989,
12,
21,
16,
576,
1769,
3639,
509,
27648,
273,
261,
3001,
13,
855,
67,
1218,
499,
67,
2135,
67,
7989,
67,
14002,
67,
22910,
5621,
3639,
389,
3348,
1011,
576,
31,
3639,
1149,
8526,
563,
31,
3639,
509,
770,
273,
374,
31,
3639,
309,
261,
3645,
2156,
422,
374,
92,
8090,
2246,
13,
288,
5411,
368,
5446,
14759,
5411,
563,
273,
394,
1149,
63,
413,
2107,
7803,
15533,
3639,
289,
469,
309,
261,
3645,
2156,
422,
374,
6356,
8090,
13,
288,
5411,
368,
12720,
14759,
5411,
563,
273,
394,
1149,
63,
413,
2107,
7803,
15533,
5411,
328,
10609,
273,
638,
31,
3639,
289,
469,
288,
5411,
368,
1158,
25408,
16,
5446,
14759,
5411,
563,
273,
394,
1149,
63,
2107,
7803,
413,
15533,
5411,
563,
63,
1615,
9904,
65,
273,
261,
3001,
13,
3645,
2156,
31,
3639,
289,
3639,
855,
67,
7989,
12,
21,
16,
576,
380,
818,
7803,
1769,
3639,
309,
261,
80,
10609,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
818,
7803,
31,
277,
27245,
288,
7734,
563,
63,
1615,
9904,
65,
273,
261,
3001,
13,
855,
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,
2252,
18,
4936,
18,
780,
855,
67,
91,
1080,
1435,
288,
3639,
509,
963,
273,
855,
67,
5748,
5621,
3639,
309,
261,
1467,
422,
374,
13,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
855,
67,
7989,
12,
22,
16,
963,
1769,
3639,
509,
818,
7803,
273,
963,
342,
576,
31,
3639,
1250,
328,
10609,
273,
629,
31,
3639,
855,
67,
7989,
12,
21,
16,
576,
1769,
3639,
509,
27648,
273,
261,
3001,
13,
855,
67,
1218,
499,
67,
2135,
67,
7989,
67,
14002,
67,
22910,
5621,
3639,
389,
3348,
1011,
576,
31,
3639,
1149,
8526,
563,
31,
3639,
509,
770,
273,
374,
31,
3639,
309,
261,
3645,
2156,
422,
374,
92,
8090,
2246,
13,
288,
5411,
2
] |
super("Hash", RubyHash.class, runtime.getClasses().getObjectClass());
|
super("Hash", RubyHash.class, runtime.getObject());
|
public HashMetaClass(Ruby runtime) { super("Hash", RubyHash.class, runtime.getClasses().getObjectClass()); }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/ca6b16e996ea9af83ce593594b9c69b9364a9924/HashMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/HashMetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2474,
2781,
797,
12,
54,
10340,
3099,
13,
288,
3639,
2240,
2932,
2310,
3113,
19817,
2310,
18,
1106,
16,
3099,
18,
588,
921,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2474,
2781,
797,
12,
54,
10340,
3099,
13,
288,
3639,
2240,
2932,
2310,
3113,
19817,
2310,
18,
1106,
16,
3099,
18,
588,
921,
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
] |
sdY.getQuery().setDefinition("MyExpression(Table.Column)");
|
sdY.getQuery().setDefinition("Expr(\"Column\")");
|
public Chart getModel(String sSubType, Orientation orientation, String sDimension) { if (newChart == null) { newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); } else { return newChart; } ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) newChart.getAxes().get(0)).getTitle().getCaption().setValue("Base Axis Title"); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue("Line Chart Title"); if (sSubType.equalsIgnoreCase("Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Overlay")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } return newChart; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
13,
565,
288,
3639,
309,
261,
2704,
7984,
422,
446,
13,
3639,
288,
5411,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
5411,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
5411,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
5411,
394,
7984,
18,
542,
14097,
12,
19235,
1769,
5411,
394,
7984,
18,
542,
8611,
12,
588,
8611,
1290,
12,
87,
8611,
10019,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
394,
7984,
31,
3639,
289,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
14097,
12,
14097,
18,
44,
20344,
67,
23225,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
559,
12,
6558,
559,
18,
5151,
67,
23225,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
588,
4247,
7675,
588,
21158,
7675,
542,
620,
2932,
2171,
15509,
10984,
8863,
3639,
9225,
1852,
8349,
60,
273,
9225,
1852,
2828,
18,
2640,
5621,
3639,
9225,
3150,
6485,
273,
9225,
2828,
18,
2640,
5621,
3639,
8349,
60,
18,
588,
6485,
7675,
1289,
12,
4743,
6485,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
588,
6485,
7130,
7675,
1289,
12,
6427,
60,
1769,
3639,
394,
7984,
18,
588,
4247,
7675,
588,
2224,
7675,
588,
21158,
7675,
542,
620,
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,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
13,
565,
288,
3639,
309,
261,
2704,
7984,
422,
446,
13,
3639,
288,
5411,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
5411,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
5411,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
5411,
394,
7984,
18,
542,
14097,
12,
19235,
1769,
5411,
394,
7984,
18,
542,
8611,
12,
588,
8611,
1290,
12,
87,
8611,
10019,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
394,
7984,
31,
3639,
289,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
14097,
12,
14097,
18,
44,
20344,
67,
2
] |
}
|
}
|
public int getRowCount() { return entries.size(); }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8e72809e7a6d1c2b4d00efd734b3907725856133/BrowserColorsOptionPane.java/buggy/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
11835,
1380,
1435,
202,
95,
202,
202,
2463,
3222,
18,
1467,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 String getOid( String name ) throws NamingException { if ( name == null ) { throw new NamingException( "name should not be null" ); } /* If name is an OID than we return it back since inherently the * OID is another name for the object referred to by OID and the * caller does not know that the argument is an OID String. */ if ( Character.isDigit( name.charAt( 0 ) ) ) { monitor.getOidWithOid( name ); return name; } // If name is mapped to a OID already return OID if ( byName.containsKey( name ) ) { String oid = ( String ) byName.get( name ); monitor.oidResolved( name, oid ); return oid; } if ( bootstrap.hasOid( name ) ) { String oid = bootstrap.getOid( name ); monitor.oidResolved( name, oid ); return oid; } /* * As a last resort we check if name is not normalized and if the * normalized version used as a key returns an OID. If the normalized * name works add the normalized name as a key with its OID to the * byName lookup. BTW these normalized versions of the key are not * returned on a getNameSet. */ String lowerCase = name.trim().toLowerCase(); if ( ! name.equals( lowerCase ) ) { if ( byName.containsKey( lowerCase ) ) { String oid = ( String ) byName.get( lowerCase ); monitor.oidResolved( name, lowerCase, oid ); // We expect to see this version of the key again so we add it byName.put( name, oid ); return oid; } /* * Some LDAP servers (MS Active Directory) tend to use some of the * bootstrap oid names as all caps, like OU. This should resolve that. * Lets stash this in the byName if we find it. */ if ( bootstrap.hasOid( lowerCase) ) { String oid = bootstrap.getOid( name ); monitor.oidResolved( name, oid ); // We expect to see this version of the key again so we add it byName.put( name, oid ); return oid; } } String msg = "OID for name '" + name + "' was not " + "found within the OID registry"; NamingException fault = new NamingException ( msg ); monitor.oidResolutionFailed( name, fault ); throw fault; }
|
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/286deb08f0be5b2c554753b7fe2969eb80706ce3/GlobalOidRegistry.java/clean/core/src/main/java/org/apache/ldap/server/schema/GlobalOidRegistry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
19105,
12,
780,
529,
13,
15069,
24102,
503,
95,
430,
12,
529,
631,
2011,
15329,
12849,
2704,
24102,
503,
2932,
1973,
76,
1006,
902,
19425,
420,
8863,
4004,
14,
2047,
529,
26925,
12945,
23483,
2051,
851,
305,
823,
9256,
267,
1614,
23351,
5787,
14,
12945,
26925,
3011,
529,
1884,
5787,
1612,
266,
4193,
869,
1637,
12945,
464,
5787,
14,
16140,
20657,
902,
79,
3338,
19056,
451,
2091,
811,
26925,
12945,
780,
4509,
19,
430,
12,
7069,
18,
291,
10907,
12,
529,
18,
3001,
861,
12,
20,
3719,
15329,
10259,
18,
588,
19105,
1190,
19105,
12,
529,
1769,
2463,
529,
31,
97,
759,
2047,
529,
291,
13654,
12799,
12945,
17583,
2463,
12945,
430,
12,
1637,
461,
18,
12298,
653,
12,
529,
3719,
95,
780,
839,
28657,
780,
13,
1637,
461,
18,
588,
12,
529,
1769,
10259,
18,
839,
12793,
12,
529,
16,
839,
1769,
2463,
839,
31,
97,
430,
12,
12722,
18,
5332,
19105,
12,
529,
3719,
95,
780,
839,
33,
12722,
18,
588,
19105,
12,
529,
1769,
10259,
18,
839,
12793,
12,
529,
16,
839,
1769,
2463,
839,
31,
4004,
636,
1463,
287,
689,
455,
499,
1814,
1893,
430,
529,
291,
902,
17762,
464,
430,
5787,
14,
17762,
1589,
3668,
345,
581,
402,
6154,
304,
12945,
18,
2047,
15991,
1687,
1235,
14,
529,
18597,
1289,
15991,
1687,
1235,
529,
345,
581,
402,
1918,
1282,
12945,
3307,
580,
14,
1637,
50,
9925,
4909,
18,
38,
18869,
7915,
275,
1687,
1235,
10169,
792,
5787,
856,
834,
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,
780,
588,
19105,
12,
780,
529,
13,
15069,
24102,
503,
95,
430,
12,
529,
631,
2011,
15329,
12849,
2704,
24102,
503,
2932,
1973,
76,
1006,
902,
19425,
420,
8863,
4004,
14,
2047,
529,
26925,
12945,
23483,
2051,
851,
305,
823,
9256,
267,
1614,
23351,
5787,
14,
12945,
26925,
3011,
529,
1884,
5787,
1612,
266,
4193,
869,
1637,
12945,
464,
5787,
14,
16140,
20657,
902,
79,
3338,
19056,
451,
2091,
811,
26925,
12945,
780,
4509,
19,
430,
12,
7069,
18,
291,
10907,
12,
529,
18,
3001,
861,
12,
20,
3719,
15329,
10259,
18,
588,
19105,
1190,
19105,
12,
529,
1769,
2463,
529,
31,
97,
759,
2047,
529,
291,
13654,
12799,
12945,
17583,
2463,
12945,
430,
12,
1637,
461,
18,
2
] |
||
return connection.createStatement().executeQuery("SELECT '' as TABLE_CAT");
|
Field f[] = new Field[1]; Vector v = new Vector(); byte[][] tuple = new byte[1][0]; f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); tuple[0] = "".getBytes(); v.addElement(tuple); return new ResultSet(connection,f,v,"OK",1);
|
public java.sql.ResultSet getCatalogs() throws SQLException { return connection.createStatement().executeQuery("SELECT '' as TABLE_CAT"); }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/dffaec556455fbc20f93512552a6658d0e5018ad/DatabaseMetaData.java/clean/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
1927,
21836,
1435,
1216,
6483,
225,
288,
377,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
5589,
331,
273,
394,
5589,
5621,
1160,
63,
6362,
65,
3193,
273,
394,
1160,
63,
21,
6362,
20,
15533,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
14130,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
3193,
63,
20,
65,
273,
1408,
18,
588,
2160,
5621,
331,
18,
1289,
1046,
12,
8052,
1769,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
1927,
21836,
1435,
1216,
6483,
225,
288,
377,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
5589,
331,
273,
394,
5589,
5621,
1160,
63,
6362,
65,
3193,
273,
394,
1160,
63,
21,
6362,
20,
15533,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
2704,
514,
2932,
7775,
67,
14130,
6,
3631,
77,
58,
22483,
19105,
16,
1578,
1769,
3193,
63,
20,
65,
273,
1408,
18,
588,
2160,
5621,
331,
18,
1289,
1046,
12,
8052,
1769,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SmilesGenerator sg = new SmilesGenerator();
|
public void testPartitioning() { SmilesGenerator sg = new SmilesGenerator(); String smiles = ""; Molecule molecule = new Molecule(); Atom sodium = new Atom("Na"); sodium.setFormalCharge(+1); Atom hydroxyl = new Atom("O"); hydroxyl.setHydrogenCount(1); hydroxyl.setFormalCharge(-1); molecule.addAtom(sodium); molecule.addAtom(hydroxyl); try { smiles = sg.createSMILES(molecule); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } if (standAlone) { System.err.println("SMILES: " + smiles); } assertTrue(smiles.indexOf(".") != -1); }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/99fe3519d35ad1fd276844ab16fa237c545a01fc/SmilesGeneratorTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7003,
310,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
29669,
13661,
273,
394,
490,
10545,
5621,
202,
202,
3641,
272,
29718,
273,
394,
7149,
2932,
24101,
8863,
202,
202,
87,
29718,
18,
542,
12183,
17649,
12,
15,
21,
1769,
202,
202,
3641,
4855,
9005,
1698,
80,
273,
394,
7149,
2932,
51,
8863,
202,
202,
18112,
9005,
1698,
80,
18,
542,
17507,
24096,
1380,
12,
21,
1769,
202,
202,
18112,
9005,
1698,
80,
18,
542,
12183,
17649,
19236,
21,
1769,
202,
202,
81,
10545,
18,
1289,
3641,
12,
87,
29718,
1769,
202,
202,
81,
10545,
18,
1289,
3641,
12,
18112,
9005,
1698,
80,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
4808,
1449,
273,
11150,
18,
2640,
7303,
45,
11386,
12,
81,
10545,
1769,
202,
202,
97,
1044,
261,
503,
3533,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
12,
10075,
1769,
1082,
202,
430,
16051,
10145,
1067,
476,
13,
1082,
202,
95,
9506,
202,
6870,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
10145,
1067,
476,
13,
202,
202,
95,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
7303,
45,
11386,
30,
315,
397,
3029,
1449,
1769,
202,
202,
97,
202,
202,
11231,
5510,
12,
4808,
1449,
18,
31806,
2932,
1199,
13,
480,
300,
21,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7003,
310,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
29669,
13661,
273,
394,
490,
10545,
5621,
202,
202,
3641,
272,
29718,
273,
394,
7149,
2932,
24101,
8863,
202,
202,
87,
29718,
18,
542,
12183,
17649,
12,
15,
21,
1769,
202,
202,
3641,
4855,
9005,
1698,
80,
273,
394,
7149,
2932,
51,
8863,
202,
202,
18112,
9005,
1698,
80,
18,
542,
17507,
24096,
1380,
12,
21,
1769,
202,
202,
18112,
9005,
1698,
80,
18,
542,
12183,
17649,
19236,
21,
1769,
202,
202,
81,
10545,
18,
1289,
3641,
12,
87,
29718,
1769,
202,
202,
81,
10545,
18,
1289,
2
] |
|
{ synchronized(m_mapsUnitDrawer.getLock())
|
public void paint(Graphics g) { synchronized(m_mapsUnitDrawer.getLock()) { super.paint(g); MapRouteDrawer.drawRoute( (Graphics2D) g, m_route, this); } }
|
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/21537a51289d82e87987677ccf782cf87e717121/MapPanel.java/clean/src/games/strategy/triplea/ui/MapPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
12,
17558,
314,
13,
225,
288,
565,
3852,
12,
81,
67,
10711,
2802,
21631,
18,
588,
2531,
10756,
565,
288,
1377,
2240,
18,
84,
1598,
12,
75,
1769,
1377,
1635,
3255,
21631,
18,
9446,
3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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12574,
12,
17558,
314,
13,
225,
288,
565,
3852,
12,
81,
67,
10711,
2802,
21631,
18,
588,
2531,
10756,
565,
288,
1377,
2240,
18,
84,
1598,
12,
75,
1769,
1377,
1635,
3255,
21631,
18,
9446,
3255,
12,
261,
17558,
22,
40,
13,
314,
16,
312,
67,
5547,
16,
333,
1769,
565,
289,
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
] |
|
loadSVGDocument(uri);
|
if (uri != null) { loadSVGDocument(uri); } else { DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); SVGDocument doc = (SVGDocument)impl.createDocument(SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_SVG_TAG, null); setSVGDocument(doc); }
|
public void setURI(String newURI) { String oldValue = uri; this.uri = newURI; loadSVGDocument(uri); pcs.firePropertyChange("URI", oldValue, uri); }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/f5b1f1aced344897051ad61a00174208e64594b8/JSVGCanvas.java/clean/sources/org/apache/batik/swing/JSVGCanvas.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3098,
12,
780,
394,
3098,
13,
288,
3639,
514,
11144,
273,
2003,
31,
3639,
333,
18,
1650,
273,
394,
3098,
31,
3639,
309,
261,
1650,
480,
446,
13,
288,
1262,
26531,
2519,
12,
1650,
1769,
289,
469,
288,
4703,
13621,
9380,
273,
11281,
8168,
13621,
18,
588,
8168,
13621,
5621,
11281,
2519,
997,
273,
261,
26531,
2519,
13,
11299,
18,
2640,
2519,
12,
26531,
2918,
18,
26531,
67,
11368,
67,
3098,
16,
11281,
2918,
18,
26531,
67,
26531,
67,
7927,
16,
446,
1769,
13928,
9266,
2519,
12,
2434,
1769,
289,
540,
31353,
18,
12179,
1396,
3043,
2932,
3098,
3113,
11144,
16,
2003,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3098,
12,
780,
394,
3098,
13,
288,
3639,
514,
11144,
273,
2003,
31,
3639,
333,
18,
1650,
273,
394,
3098,
31,
3639,
309,
261,
1650,
480,
446,
13,
288,
1262,
26531,
2519,
12,
1650,
1769,
289,
469,
288,
4703,
13621,
9380,
273,
11281,
8168,
13621,
18,
588,
8168,
13621,
5621,
11281,
2519,
997,
273,
261,
26531,
2519,
13,
11299,
18,
2640,
2519,
12,
26531,
2918,
18,
26531,
67,
11368,
67,
3098,
16,
11281,
2918,
18,
26531,
67,
26531,
67,
7927,
16,
446,
1769,
13928,
9266,
2519,
12,
2434,
1769,
289,
540,
31353,
18,
12179,
1396,
3043,
2932,
3098,
3113,
11144,
16,
2003,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_3R_273()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_274()) jj_scanpos = xsp;
|
if (jj_3R_67()) return true;
|
final private boolean jj_3R_260() { if (jj_3R_273()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_274()) jj_scanpos = xsp; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
4848,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
23,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
24,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
327,
629,
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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,
23,
54,
67,
22,
4848,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
23,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
24,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
327,
629,
31,
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
] |
Main.info("Loaded " + fixerClass);
|
Main.debug("Loaded " + fixerClass);
|
private synchronized void init() { if (initialized) { return; } try { URL [] urls = { new URL( "file", "", 0, System.getProperty("java.home") + System.getProperty("file.separator") + "lib" + System.getProperty("file.separator") + "javaplugin.jar") }; URLClassLoader loader = new URLClassLoader(urls); fixerClass = Class.forName(fixerClassName, true, loader); Main.info("Loaded " + fixerClass); final Class [] parameterTypes = { (new byte[1]).getClass(), Integer.TYPE, Integer.TYPE }; final Class [] noParameter = new Class[0]; _process = fixerClass.getMethod("process", parameterTypes); _getProcessedData = fixerClass.getMethod("getProcessedData", noParameter); _getProcessedDataOffset = fixerClass.getMethod("getProcessedDataOffset", noParameter); _getProcessedDataLength = fixerClass.getMethod("getProcessedDataLength", noParameter); } catch (Throwable e) { e.printStackTrace(); } finally { initialized = true; } }
|
1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/a137409e3317d53c487b0d554e9c19bf1bc3b5e0/KJASBrokenClassFixer.java/clean/khtml/java/org/kde/kjas/server/KJASBrokenClassFixer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1208,
1435,
288,
3639,
309,
261,
13227,
13,
288,
5411,
327,
31,
3639,
289,
3639,
775,
288,
5411,
1976,
5378,
6903,
273,
288,
394,
1976,
12,
7734,
315,
768,
3113,
23453,
374,
16,
7734,
2332,
18,
588,
1396,
2932,
6290,
18,
8712,
7923,
7734,
397,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
7734,
397,
315,
2941,
6,
7734,
397,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
7734,
397,
315,
6290,
4094,
18,
11930,
7923,
2398,
289,
31,
5411,
1976,
7805,
4088,
273,
394,
1976,
7805,
12,
10518,
1769,
5411,
16102,
797,
273,
1659,
18,
1884,
461,
12,
904,
264,
3834,
16,
638,
16,
4088,
1769,
5411,
12740,
18,
4148,
2932,
8835,
315,
397,
16102,
797,
1769,
5411,
727,
1659,
5378,
20173,
273,
288,
7734,
261,
2704,
1160,
63,
21,
65,
2934,
588,
797,
9334,
1171,
2144,
18,
2399,
16,
1171,
2144,
18,
2399,
5411,
289,
31,
5411,
727,
1659,
5378,
1158,
1662,
273,
394,
1659,
63,
20,
15533,
2398,
389,
2567,
273,
16102,
797,
18,
588,
1305,
2932,
2567,
3113,
20173,
1769,
2868,
389,
588,
13533,
751,
273,
16102,
797,
18,
588,
1305,
2932,
588,
13533,
751,
3113,
1158,
1662,
1769,
5411,
389,
588,
13533,
751,
2335,
273,
16102,
797,
18,
588,
1305,
2932,
588,
13533,
751,
2335,
3113,
1158,
1662,
1769,
5411,
389,
588,
13533,
751,
1782,
273,
16102,
797,
18,
588,
1305,
2932,
588,
13533,
751,
1782,
3113,
1158,
1662,
1769,
3639,
289,
1044,
261,
15155,
425,
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,
3852,
918,
1208,
1435,
288,
3639,
309,
261,
13227,
13,
288,
5411,
327,
31,
3639,
289,
3639,
775,
288,
5411,
1976,
5378,
6903,
273,
288,
394,
1976,
12,
7734,
315,
768,
3113,
23453,
374,
16,
7734,
2332,
18,
588,
1396,
2932,
6290,
18,
8712,
7923,
7734,
397,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
7734,
397,
315,
2941,
6,
7734,
397,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
7734,
397,
315,
6290,
4094,
18,
11930,
7923,
2398,
289,
31,
5411,
1976,
7805,
4088,
273,
394,
1976,
7805,
12,
10518,
1769,
5411,
16102,
797,
273,
1659,
18,
1884,
461,
12,
904,
264,
3834,
16,
638,
16,
4088,
1769,
5411,
12740,
18,
4148,
2932,
8835,
2
] |
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { // the template to be displayed String template = null; CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); String oldpwd = (String)parameters.get(C_PARA_OLDPWD); String newpwd = (String)parameters.get(C_PARA_NEWPWD); String newpwdrepeat = (String)parameters.get(C_PARA_NEWPWDREPEAT); // a password was given in the request so try to change it if((oldpwd != null) && (newpwd != null) && (newpwdrepeat != null)) { // check if the new password and its repetition are identical if(newpwd.equals(newpwdrepeat)) { // change the password try { cms.setPassword(cms.getRequestContext().currentUser().getName(), oldpwd, newpwd); // return to the parameter dialog try { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_PREFERENCES); } catch(Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_PREFERENCES, CmsException.C_UNKNOWN_EXCEPTION, e); } // an error was thrown while setting the new password } catch(CmsException exp) { // check if the old password was not correct if(exp.getType() == 1) { xmlTemplateDocument.setData("details", Utils.getStackTrace(exp)); template = "error2"; } else { throw exp; } } return null; } else { // the new passwords do not match xmlTemplateDocument.setData("details", "The new passwords do not match."); template = "error"; } } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/395903180698348932124ca49632cf1802d88491/CmsChpwd.java/clean/src/com/opencms/workplace/CmsChpwd.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
7734,
368,
326,
1542,
358,
506,
10453,
3639,
514,
1542,
273,
446,
31,
3639,
16084,
59,
84,
2283,
812,
2025,
2283,
2519,
273,
394,
16084,
59,
84,
2283,
812,
12,
6851,
16,
28215,
1769,
3639,
514,
1592,
27487,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
1741,
8640,
16006,
1769,
3639,
514,
394,
27487,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
12917,
31243,
1769,
3639,
514,
394,
27487,
9374,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
12917,
31243,
862,
31804,
1769,
7734,
368,
279,
225,
2201,
1703,
864,
316,
326,
590,
1427,
775,
358,
2549,
518,
3639,
309,
12443,
1673,
27487,
480,
446,
13,
597,
261,
2704,
27487,
480,
446,
13,
597,
261,
2704,
27487,
9374,
480,
446,
3719,
288,
13491,
368,
866,
309,
326,
394,
2201,
471,
2097,
31239,
854,
12529,
5411,
309,
12,
2704,
27487,
18,
14963,
12,
2704,
27487,
9374,
3719,
288,
27573,
368,
2549,
326,
2201,
7734,
775,
288,
10792,
6166,
18,
542,
3913,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
7675,
17994,
9334,
11794,
1592,
27487,
16,
394,
27487,
1769,
4766,
3639,
368,
327,
358,
326,
1569,
6176,
10792,
775,
288,
13491,
6166,
18,
588,
21426,
7675,
588,
1064,
7675,
4661,
4747,
5961,
12,
588,
13705,
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,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
7734,
368,
326,
1542,
358,
506,
10453,
3639,
514,
1542,
273,
446,
31,
3639,
16084,
59,
84,
2283,
812,
2025,
2283,
2519,
273,
394,
16084,
59,
84,
2283,
812,
12,
6851,
16,
28215,
1769,
3639,
514,
1592,
27487,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
1741,
8640,
16006,
1769,
3639,
514,
394,
27487,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
67,
12917,
31243,
1769,
3639,
514,
394,
27487,
9374,
273,
261,
780,
13,
3977,
18,
588,
12,
39,
67,
2778,
37,
2
] |
||
if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if (startIdx < 1) startIdx = 1;
|
public TA_RetCode TRANGE(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int today, outIdx; double val2, val3, greatest; double tempCY, tempLT, tempHT; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if (startIdx < 1) startIdx = 1; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; today = startIdx; while (today <= endIdx) { tempLT = inLow[today]; tempHT = inHigh[today]; tempCY = inClose[today - 1]; greatest = tempHT - tempLT; val2 = Math.abs(tempCY - tempHT); if (val2 > greatest) greatest = val2; val3 = Math.abs(tempCY - tempLT); if (val3 > greatest) greatest = val3; outReal[outIdx++] = greatest; today++; } outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
4235,
8357,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
490,
4522,
596,
24059,
4223,
16,
1082,
202,
49,
4522,
596,
22816,
1046,
16,
1645,
29205,
63,
5717,
288,
202,
202,
474,
10074,
16,
596,
4223,
31,
202,
202,
9056,
1244,
22,
16,
1244,
23,
16,
18825,
395,
31,
202,
202,
9056,
1906,
16068,
16,
1906,
12050,
16,
1906,
5062,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
261,
1937,
4223,
411,
404,
13,
1082,
202,
1937,
4223,
273,
404,
31,
202,
202,
430,
261,
1937,
4223,
405,
679,
4223,
13,
288,
1082,
202,
659,
24059,
4223,
18,
1132,
273,
374,
31,
1082,
202,
659,
22816,
1046,
18,
1132,
273,
374,
31,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
12778,
31,
202,
202,
97,
202,
202,
659,
4223,
273,
374,
31,
202,
202,
30064,
273,
27108,
31,
202,
202,
17523,
261,
30064,
1648,
679,
4223,
13,
288,
1082,
202,
5814,
12050,
273,
316,
10520,
63,
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,
399,
37,
67,
7055,
1085,
4235,
8357,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
490,
4522,
596,
24059,
4223,
16,
1082,
202,
49,
4522,
596,
22816,
1046,
16,
1645,
29205,
63,
5717,
288,
202,
202,
474,
10074,
16,
596,
4223,
31,
202,
202,
9056,
1244,
22,
16,
1244,
23,
16,
18825,
395,
31,
202,
202,
9056,
1906,
16068,
16,
1906,
12050,
16,
1906,
5062,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
2
] |
|
replace(0, getViewCount(), newChildren);
|
replace(0, 0, newChildren);
|
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); View[] newChildren = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); newChildren[i] = view; } replace(0, getViewCount(), newChildren); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/60332c05f79d8dac7c76a9d74bef8a638df1ad62/CompositeView.java/buggy/javax/swing/text/CompositeView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1262,
4212,
12,
1767,
1733,
284,
13,
225,
288,
565,
3010,
415,
273,
7426,
5621,
565,
509,
1056,
273,
415,
18,
21336,
1380,
5621,
565,
4441,
8526,
394,
4212,
273,
394,
4441,
63,
1883,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
965,
77,
13,
1377,
288,
3639,
3010,
1151,
273,
415,
18,
21336,
12,
77,
1769,
3639,
4441,
1476,
273,
284,
18,
2640,
12,
3624,
1769,
3639,
394,
4212,
63,
77,
65,
273,
1476,
31,
1377,
289,
4202,
1453,
12,
20,
16,
374,
16,
394,
4212,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1262,
4212,
12,
1767,
1733,
284,
13,
225,
288,
565,
3010,
415,
273,
7426,
5621,
565,
509,
1056,
273,
415,
18,
21336,
1380,
5621,
565,
4441,
8526,
394,
4212,
273,
394,
4441,
63,
1883,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
965,
77,
13,
1377,
288,
3639,
3010,
1151,
273,
415,
18,
21336,
12,
77,
1769,
3639,
4441,
1476,
273,
284,
18,
2640,
12,
3624,
1769,
3639,
394,
4212,
63,
77,
65,
273,
1476,
31,
1377,
289,
4202,
1453,
12,
20,
16,
374,
16,
394,
4212,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ary.append(name);
|
ary.append(name);
|
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { for (Iterator iter = p.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); if (method.getVisibility().is(visibility) && !method.isUndefined()) { RubyString name = getRuntime().newString( (String) entry.getKey()); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1076,
791,
67,
5163,
12,
7937,
10340,
921,
8526,
833,
16,
727,
27791,
9478,
13,
288,
3639,
1250,
2341,
8051,
273,
833,
18,
2469,
405,
374,
692,
833,
63,
20,
8009,
291,
5510,
1435,
294,
638,
31,
3639,
19817,
1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
10756,
288,
5411,
364,
261,
3198,
1400,
273,
293,
18,
588,
4712,
7675,
4099,
694,
7675,
9838,
5621,
2398,
202,
2165,
18,
5332,
2134,
5621,
13,
288,
7734,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
7734,
467,
11452,
707,
273,
261,
45,
11452,
13,
1241,
18,
24805,
5621,
7734,
309,
261,
2039,
18,
588,
10135,
7675,
291,
12,
14422,
13,
597,
13491,
401,
2039,
18,
291,
10317,
10756,
288,
10792,
19817,
780,
508,
273,
18814,
7675,
2704,
780,
12,
5397,
202,
12,
780,
13,
1241,
18,
588,
653,
10663,
10792,
309,
16051,
814,
18,
18499,
12,
529,
3719,
288,
5397,
202,
814,
18,
6923,
12,
529,
1769,
10792,
289,
7734,
289,
2398,
289,
5411,
309,
16051,
6702,
8051,
13,
288,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
327,
11841,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
364,
261,
54,
10340,
3120,
293,
273,
333,
31,
293,
480,
446,
31,
293,
273,
293,
18,
588,
8051,
797,
10756,
288,
5411,
364,
261,
3198,
1400,
273,
293,
18,
588,
4712,
7675,
4099,
694,
7675,
9838,
5621,
2398,
202,
2165,
18,
5332,
2134,
5621,
13,
288,
7734,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
7734,
467,
11452,
707,
273,
261,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.