rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
System.out.println("Usage: jruby [switches] [rubyfile.rb] [arguments]");
|
System.out.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]");
|
public static void printUsage() { if (!hasPrintedUsage) { System.out.println("Usage: jruby [switches] [rubyfile.rb] [arguments]"); System.out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); System.out.println(" -b benchmark mode, times the script execution"); System.out.println(" -Idirectory specify $LOAD_PATH directory (may be used more than once)"); hasPrintedUsage = true; } }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/16c7b13e57125972e8fd90d0bd5f43154e2c7c64/Main.java/clean/src/org/jruby/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
5357,
1435,
288,
3639,
309,
16051,
5332,
5108,
329,
5357,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
525,
27768,
306,
9610,
281,
65,
306,
413,
65,
306,
27768,
768,
18,
6731,
65,
306,
7099,
4279,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
73,
296,
3076,
11,
565,
1245,
980,
434,
2728,
18,
3265,
502,
287,
300,
73,
1807,
2935,
18,
531,
1938,
306,
12890,
768,
4279,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
70,
2868,
14128,
1965,
16,
4124,
326,
2728,
4588,
8863,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
548,
1292,
377,
4800,
271,
7783,
67,
4211,
1867,
261,
24877,
506,
1399,
1898,
2353,
3647,
2225,
1769,
5411,
711,
5108,
329,
5357,
273,
638,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
5357,
1435,
288,
3639,
309,
16051,
5332,
5108,
329,
5357,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
525,
27768,
306,
9610,
281,
65,
306,
413,
65,
306,
27768,
768,
18,
6731,
65,
306,
7099,
4279,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
73,
296,
3076,
11,
565,
1245,
980,
434,
2728,
18,
3265,
502,
287,
300,
73,
1807,
2935,
18,
531,
1938,
306,
12890,
768,
4279,
1769,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
70,
2868,
14128,
1965,
16,
4124,
326,
2728,
4588,
8863,
5411,
2332,
18,
659,
18,
8222,
2932,
565,
300,
548,
1292,
377,
4800,
271,
7783,
67,
4211,
1867,
261,
24877,
506,
2
] |
tableViewer.setSorter(new ViewerSorter());
|
tableViewer.setSorter(new EditorListViewerSorter());
|
protected TableViewer createTableViewer(Composite parent, int style) { Table table = new Table(parent, SWT.SINGLE | (style & ~SWT.MULTI)); table.setLayoutData(new GridData(GridData.FILL_BOTH)); TableViewer tableViewer = new TableViewer(table); tableViewer.addFilter(new NamePatternFilter()); tableViewer.setContentProvider(new EditorListContentProvider()); tableViewer.setSorter(new ViewerSorter()); tableViewer.setLabelProvider(new EditorListLabelProvider()); return tableViewer; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2e5201c20034ff409691272f9fb20d4f165eab27/EditorList.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/EditorList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
18415,
19565,
18415,
12,
9400,
982,
16,
509,
2154,
13,
288,
3639,
3555,
1014,
273,
394,
3555,
12,
2938,
16,
348,
8588,
18,
20184,
571,
261,
4060,
473,
4871,
55,
8588,
18,
26588,
10019,
3639,
1014,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
3639,
3555,
18415,
1014,
18415,
273,
394,
3555,
18415,
12,
2121,
1769,
3639,
1014,
18415,
18,
1289,
1586,
12,
2704,
1770,
3234,
1586,
10663,
3639,
1014,
18415,
18,
542,
1350,
2249,
12,
2704,
18451,
682,
1350,
2249,
10663,
3639,
1014,
18415,
18,
542,
24952,
12,
2704,
18451,
682,
18415,
24952,
10663,
3639,
1014,
18415,
18,
542,
2224,
2249,
12,
2704,
18451,
682,
2224,
2249,
10663,
3639,
327,
1014,
18415,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
18415,
19565,
18415,
12,
9400,
982,
16,
509,
2154,
13,
288,
3639,
3555,
1014,
273,
394,
3555,
12,
2938,
16,
348,
8588,
18,
20184,
571,
261,
4060,
473,
4871,
55,
8588,
18,
26588,
10019,
3639,
1014,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
3639,
3555,
18415,
1014,
18415,
273,
394,
3555,
18415,
12,
2121,
1769,
3639,
1014,
18415,
18,
1289,
1586,
12,
2704,
1770,
3234,
1586,
10663,
3639,
1014,
18415,
18,
542,
1350,
2249,
12,
2704,
18451,
682,
1350,
2249,
10663,
3639,
1014,
18415,
18,
542,
24952,
12,
2704,
18451,
682,
18415,
24952,
10663,
3639,
1014,
18415,
18,
542,
2224,
2249,
12,
2704,
18451,
682,
2224,
2
] |
viewer, Policy.DEBUG_SHOW_SYSTEM_JOBS);
|
viewer, true);
|
void handleDetailsButtonSelect() { Shell shell = getShell(); Point shellSize = shell.getSize(); Composite composite = (Composite) getDialogArea(); if (viewer != null) { viewer.getControl().dispose(); viewer = null; composite.layout(); shell.setSize(shellSize.x, shellSize.y - viewerHeight); detailsButton.setText(ProgressMessages.ProgressMonitorJobsDialog_DetailsTitle); } else { //Abort if there are no jobs visible if (ProgressManager.getInstance().getRootElements(Policy.DEBUG_SHOW_SYSTEM_JOBS).length == 0) { detailsButton.setEnabled(false); return; } viewer = new NewProgressViewer(viewerComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); ProgressTreeContentProvider provider = new ProgressTreeContentProvider( viewer, Policy.DEBUG_SHOW_SYSTEM_JOBS); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider()); GridData viewerData = new GridData(GridData.FILL_BOTH); viewer.getControl().setLayoutData(viewerData); GridData viewerCompositeData = (GridData) viewerComposite.getLayoutData(); viewerCompositeData.heightHint = convertHeightInCharsToPixels(10); viewerComposite.layout(true); viewer.getControl().setVisible(true); viewerHeight = viewerComposite.computeTrim(0, 0, 0, viewerCompositeData.heightHint).height; detailsButton.setText(ProgressMessages.ProgressMonitorJobsDialog_HideTitle); shell.setSize(shellSize.x, shellSize.y + viewerHeight); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c935d0c1299353ada803ae9daa1c803c560395ab/ProgressMonitorJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
3790,
3616,
3391,
1435,
288,
3639,
19433,
5972,
273,
7932,
1165,
5621,
3639,
4686,
5972,
1225,
273,
5972,
18,
588,
1225,
5621,
3639,
14728,
9635,
273,
261,
9400,
13,
31774,
5484,
5621,
3639,
309,
261,
25256,
480,
446,
13,
288,
5411,
14157,
18,
588,
3367,
7675,
2251,
4150,
5621,
5411,
14157,
273,
446,
31,
5411,
9635,
18,
6741,
5621,
5411,
5972,
18,
542,
1225,
12,
10304,
1225,
18,
92,
16,
5972,
1225,
18,
93,
300,
14157,
2686,
1769,
5411,
3189,
3616,
18,
542,
1528,
12,
5491,
5058,
18,
5491,
7187,
7276,
6353,
67,
3790,
4247,
1769,
3639,
289,
469,
288,
5411,
368,
13572,
309,
1915,
854,
1158,
6550,
6021,
5411,
309,
261,
5491,
1318,
18,
588,
1442,
7675,
588,
2375,
3471,
12,
2582,
18,
9394,
67,
16677,
67,
14318,
67,
18321,
55,
2934,
2469,
422,
374,
13,
288,
7734,
3189,
3616,
18,
542,
1526,
12,
5743,
1769,
7734,
327,
31,
5411,
289,
5411,
14157,
273,
394,
1166,
5491,
18415,
12,
25256,
9400,
16,
348,
8588,
18,
26588,
10792,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
38,
7954,
1769,
5411,
14157,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
5411,
14157,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
7734,
1748,
1171,
380,
261,
5836,
17,
24060,
13,
1171,
380,
5375,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
24952,
7,
9877,
12,
3341,
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,
918,
1640,
3790,
3616,
3391,
1435,
288,
3639,
19433,
5972,
273,
7932,
1165,
5621,
3639,
4686,
5972,
1225,
273,
5972,
18,
588,
1225,
5621,
3639,
14728,
9635,
273,
261,
9400,
13,
31774,
5484,
5621,
3639,
309,
261,
25256,
480,
446,
13,
288,
5411,
14157,
18,
588,
3367,
7675,
2251,
4150,
5621,
5411,
14157,
273,
446,
31,
5411,
9635,
18,
6741,
5621,
5411,
5972,
18,
542,
1225,
12,
10304,
1225,
18,
92,
16,
5972,
1225,
18,
93,
300,
14157,
2686,
1769,
5411,
3189,
3616,
18,
542,
1528,
12,
5491,
5058,
18,
5491,
7187,
7276,
6353,
67,
3790,
4247,
1769,
3639,
289,
469,
288,
5411,
368,
13572,
309,
1915,
854,
1158,
6550,
6021,
5411,
309,
261,
5491,
1318,
18,
588,
2
] |
}
|
}
|
public void cloneCertificateProfile(Admin admin, String originalcertificateprofilename, String newcertificateprofilename) throws CertificateProfileExistsException{ CertificateProfile certificateprofile = null; if(isCertificateProfileNameFixed(newcertificateprofilename)){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_CERTPROFILE,"Error adding certificaterprofile " + newcertificateprofilename + " using profile " + originalcertificateprofilename + " as template."); throw new CertificateProfileExistsException(); } try{ certificateprofile = (CertificateProfile) getCertificateProfile(admin, originalcertificateprofilename).clone(); boolean issuperadministrator= false; try{ issuperadministrator = getAuthorizationSession().isAuthorizedNoLog(admin, "/super_administrator"); }catch(AuthorizationDeniedException ade){} if(!issuperadministrator && certificateprofile.isApplicableToAnyCA()){ // Not superadministrator, do not use ANYCA; Collection authcas = getAuthorizationSession().getAuthorizedCAIds(admin); certificateprofile.setAvailableCAs(authcas); } try{ certprofilehome.findByCertificateProfileName(newcertificateprofilename); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_CERTPROFILE,"Error adding certificaterprofile " + newcertificateprofilename + " using profile " + originalcertificateprofilename + " as template."); throw new CertificateProfileExistsException(); }catch(FinderException e){ try{ certprofilehome.create(new Integer(findFreeCertificateProfileId()),newcertificateprofilename,certificateprofile); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_CERTPROFILE,"New certificateprofile " + newcertificateprofilename + " used profile " + originalcertificateprofilename + " as template."); }catch(CreateException f){} } }catch(CloneNotSupportedException f){} } // cloneCertificateProfile
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/6f27459e8db7a9efb8cf0588695ad6fd28539506/LocalCertificateStoreSessionBean.java/clean/src/java/se/anatom/ejbca/ca/store/LocalCertificateStoreSessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3236,
4719,
4029,
12,
4446,
3981,
16,
514,
2282,
14108,
685,
3459,
16,
514,
394,
14108,
685,
3459,
13,
1216,
6660,
4029,
4002,
503,
95,
4202,
6660,
4029,
4944,
5040,
273,
446,
31,
2868,
309,
12,
291,
4719,
4029,
461,
7505,
12,
2704,
14108,
685,
3459,
3719,
95,
540,
9189,
2157,
7675,
1330,
12,
3666,
16,
3981,
18,
588,
3587,
548,
9334,
30039,
18,
12194,
67,
3587,
16,
394,
2252,
18,
1367,
18,
1626,
9334,
2011,
16,
446,
16,
30039,
18,
10454,
67,
3589,
67,
22367,
22462,
10837,
668,
6534,
276,
2303,
2045,
5040,
315,
397,
394,
14108,
685,
3459,
397,
225,
315,
1450,
3042,
315,
397,
2282,
14108,
685,
3459,
397,
315,
487,
1542,
1199,
1769,
6647,
604,
394,
6660,
4029,
4002,
503,
5621,
540,
289,
4766,
282,
775,
95,
5375,
4944,
5040,
273,
261,
4719,
4029,
13,
225,
27653,
4029,
12,
3666,
16,
2282,
14108,
685,
3459,
2934,
14056,
5621,
10402,
1250,
353,
9565,
3666,
14207,
33,
629,
31,
6647,
775,
95,
5411,
353,
9565,
3666,
14207,
273,
28233,
2157,
7675,
291,
15341,
2279,
1343,
12,
3666,
16,
2206,
9565,
67,
3666,
14207,
8863,
1850,
289,
14683,
12,
6063,
15877,
279,
323,
13,
2916,
5375,
309,
12,
5,
1054,
416,
264,
3666,
14207,
597,
4944,
5040,
18,
291,
27873,
774,
2961,
3587,
10756,
95,
2398,
368,
2288,
2240,
3666,
14207,
16,
741,
486,
999,
16743,
3587,
31,
2398,
2200,
1357,
6349,
273,
28233,
2157,
7675,
588,
15341,
3587,
2673,
12,
3666,
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,
918,
3236,
4719,
4029,
12,
4446,
3981,
16,
514,
2282,
14108,
685,
3459,
16,
514,
394,
14108,
685,
3459,
13,
1216,
6660,
4029,
4002,
503,
95,
4202,
6660,
4029,
4944,
5040,
273,
446,
31,
2868,
309,
12,
291,
4719,
4029,
461,
7505,
12,
2704,
14108,
685,
3459,
3719,
95,
540,
9189,
2157,
7675,
1330,
12,
3666,
16,
3981,
18,
588,
3587,
548,
9334,
30039,
18,
12194,
67,
3587,
16,
394,
2252,
18,
1367,
18,
1626,
9334,
2011,
16,
446,
16,
30039,
18,
10454,
67,
3589,
67,
22367,
22462,
10837,
668,
6534,
276,
2303,
2045,
5040,
315,
397,
394,
14108,
685,
3459,
397,
225,
315,
1450,
3042,
315,
397,
2282,
14108,
685,
3459,
397,
315,
487,
1542,
1199,
2
] |
if (this.bEnableStyles) { lblStyle.setEnabled(bState & bEnableUI); cmbStyle.setEnabled(bState & bEnableUI);
|
if ( this.bEnableStyles ) { lblStyle.setEnabled( bState & bEnableUI ); cmbStyle.setEnabled( bState & bEnableUI );
|
public void setEnabled(boolean bState) { boolean bEnableUI = true; if (this.bEnableVisibility) { cbVisible.setEnabled(bState); bEnableUI = cbVisible.getSelection(); } if (this.bEnableStyles) { lblStyle.setEnabled(bState & bEnableUI); cmbStyle.setEnabled(bState & bEnableUI); } if (this.bEnableWidths) { lblWidth.setEnabled(bState & bEnableUI); cmbWidth.setEnabled(bState & bEnableUI); } if (this.bEnableColor) { lblColor.setEnabled(bState & bEnableUI); cmbColor.setEnabled(bState & bEnableUI); } this.bEnabled = bState; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/LineAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LineAttributesComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12888,
12,
6494,
324,
1119,
13,
288,
202,
202,
6494,
324,
8317,
5370,
273,
638,
31,
202,
202,
430,
261,
2211,
18,
70,
8317,
10135,
13,
288,
1082,
202,
7358,
6207,
18,
542,
1526,
12,
70,
1119,
1769,
1082,
202,
70,
8317,
5370,
273,
2875,
6207,
18,
588,
6233,
5621,
202,
202,
97,
202,
202,
430,
261,
2211,
18,
70,
8317,
9725,
13,
288,
1082,
202,
31885,
2885,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
1082,
202,
71,
1627,
2885,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
202,
202,
97,
202,
202,
430,
261,
2211,
18,
70,
8317,
22407,
13,
288,
1082,
202,
31885,
2384,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
1082,
202,
71,
1627,
2384,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
202,
202,
97,
202,
202,
430,
261,
2211,
18,
70,
8317,
2957,
13,
288,
202,
202,
31885,
2957,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
202,
202,
71,
1627,
2957,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
202,
202,
97,
202,
202,
2211,
18,
70,
1526,
273,
324,
1119,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12888,
12,
6494,
324,
1119,
13,
288,
202,
202,
6494,
324,
8317,
5370,
273,
638,
31,
202,
202,
430,
261,
2211,
18,
70,
8317,
10135,
13,
288,
1082,
202,
7358,
6207,
18,
542,
1526,
12,
70,
1119,
1769,
1082,
202,
70,
8317,
5370,
273,
2875,
6207,
18,
588,
6233,
5621,
202,
202,
97,
202,
202,
430,
261,
2211,
18,
70,
8317,
9725,
13,
288,
1082,
202,
31885,
2885,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
1082,
202,
71,
1627,
2885,
18,
542,
1526,
12,
70,
1119,
473,
324,
8317,
5370,
1769,
202,
202,
97,
202,
202,
430,
261,
2211,
18,
70,
8317,
22407,
13,
288,
1082,
202,
31885,
2384,
18,
542,
2
] |
if (psiManager.isDisposed()) { return;
|
try { myAlarm.cancelAllRequests(); if (psiManager.isDisposed()) { return; } PsiDocumentManager.getInstance(myProject).commitAllDocuments(); setFileEditor(myLastEvent.getNewEditor());
|
public void run() { if (psiManager.isDisposed()) { return; // project may have been closed } setFileEditor(newEditor); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/38863c3ffbeda1623941375e25d7f7bf85072111/StructureViewWrapperImpl.java/buggy/source/com/intellij/ide/impl/StructureViewWrapperImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2868,
309,
261,
24275,
1318,
18,
291,
1669,
7423,
10756,
288,
7734,
327,
31,
368,
1984,
2026,
1240,
2118,
4375,
2868,
289,
2868,
19658,
6946,
12,
2704,
6946,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2398,
1071,
918,
1086,
1435,
288,
2868,
309,
261,
24275,
1318,
18,
291,
1669,
7423,
10756,
288,
7734,
327,
31,
368,
1984,
2026,
1240,
2118,
4375,
2868,
289,
2868,
19658,
6946,
12,
2704,
6946,
1769,
5411,
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
] |
info.incr = new JExpressionStatement(null, Util.passThruParens(bin.getLeft()), null);
|
info.incr = Util.passThruParens(bin.getLeft());
|
private void getDLIncrExpression(JExpression incrExp, DoLoopInformation info) { if (Util.passThruParens(incrExp) instanceof JBinaryExpression) { if (Util.passThruParens(incrExp) instanceof JCompoundAssignmentExpression) { //compound assignment expression of the form left (op=) right JCompoundAssignmentExpression comp = (JCompoundAssignmentExpression)Util.passThruParens(incrExp); //make sure left is the induction variable if (Util.passThruParens(comp.getLeft()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(comp.getLeft())). getVariable().equals(info.induction)) { //return right if plus if (comp.getOperation() == OPE_PLUS) { info.incr = new JExpressionStatement(null, Util.passThruParens(comp.getRight()), null); } /*else if (comp.getOperation() == OPE_MINUS) { info.incr = new JExpressionStatement(null, new JUnaryMinusExpression(null, comp.getRight()), null); }*/ } } //if an assignment expression of the form i = i + x or i = x + i, i is induction else if (Util.passThruParens(incrExp) instanceof JAssignmentExpression && (Util.passThruParens(((JAssignmentExpression)Util.passThruParens(incrExp)).getLeft()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(((JAssignmentExpression)Util. passThruParens(incrExp)).getLeft())). getVariable().equals(info.induction))) { //normal assignment expression left = right JAssignmentExpression ass = (JAssignmentExpression)Util.passThruParens(incrExp); //only handle plus and minus if (Util.passThruParens(ass.getRight()) instanceof JAddExpression) { //Util.passThruParens(ass.getRight()) instanceof JMinusExpression) { JBinaryExpression bin = (JBinaryExpression)Util.passThruParens(ass.getRight()); //if left of binary is an access to the induction variable if (Util.passThruParens(bin.getLeft()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(bin.getLeft())). getVariable().equals(info.induction)) { //if plus return the right, if (Util.passThruParens(ass.getRight()) instanceof JAddExpression) info.incr = new JExpressionStatement(null, Util.passThruParens(bin.getRight()), null); /*if (ass.getRight() instanceof JMinusExpression) info.incr = new JExpressionStatement(null, new JUnaryMinusExpression(null, bin.getRight()), null);*/ } //analogue of above... if (Util.passThruParens(bin.getRight()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(bin.getRight())). getVariable().equals(info.induction)) { if (Util.passThruParens(ass.getRight()) instanceof JAddExpression) info.incr = new JExpressionStatement(null, Util.passThruParens(bin.getLeft()), null); /*if (Util.passThruParens(ass.getRight()) instanceof JMinusExpression) info.incr = new JExpressionStatement(null, new JUnaryMinusExpression (null, Util.passThruParens(bin.getLeft())), null);*/ } } } } else if (Util.passThruParens(incrExp) instanceof JPrefixExpression) { //prefix op expr JPrefixExpression pre = (JPrefixExpression)Util.passThruParens(incrExp); //check that we assigning the induction variable if (Util.passThruParens(pre.getExpr()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(pre.getExpr())). getVariable().equals(info.induction)) { if (pre.getOper() == OPE_PREINC) { info.incr = new JExpressionStatement(null, new JIntLiteral(1), null); } /*else { info.incr = new JExpressionStatement(null, new JIntLiteral(-1), null); } */ } } else if (Util.passThruParens(incrExp) instanceof JPostfixExpression) { //postfix expr op JPostfixExpression post = (JPostfixExpression)Util.passThruParens(incrExp); //check that we assigning the induction variable if (Util.passThruParens(post.getExpr()) instanceof JLocalVariableExpression && ((JLocalVariableExpression)Util.passThruParens(post.getExpr())). getVariable().equals(info.induction)) { if (post.getOper() == OPE_POSTINC) { info.incr = new JExpressionStatement(null, new JIntLiteral(1), null); } /*else { info.incr = new JExpressionStatement(null, new JIntLiteral(-1), null); } */ } } }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/b3230effe0f68ca491d2ecd1f1f80f0ae31060a8/IDDoLoops.java/clean/streams/src/at/dms/kjc/rstream/IDDoLoops.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2343,
48,
382,
3353,
2300,
12,
46,
2300,
17633,
2966,
16,
4405,
377,
2256,
6452,
5369,
1123,
13,
565,
288,
202,
430,
261,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
13,
1276,
804,
5905,
2300,
13,
288,
202,
565,
309,
261,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
13,
1276,
804,
16835,
7729,
2300,
13,
288,
202,
202,
759,
22585,
6661,
2652,
434,
326,
646,
2002,
261,
556,
33,
13,
2145,
3196,
202,
46,
16835,
7729,
2300,
1161,
273,
1875,
565,
261,
46,
16835,
7729,
2300,
13,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
1769,
202,
202,
759,
6540,
3071,
2002,
353,
326,
1547,
4062,
2190,
202,
202,
430,
261,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
2919,
18,
588,
3910,
10756,
1276,
804,
2042,
3092,
2300,
597,
1082,
565,
14015,
46,
2042,
3092,
2300,
13,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
2919,
18,
588,
3910,
10756,
2934,
1082,
565,
13522,
7675,
14963,
12,
1376,
18,
728,
4062,
3719,
288,
1082,
565,
368,
2463,
2145,
309,
8737,
1082,
565,
309,
261,
2919,
18,
588,
2988,
1435,
422,
531,
1423,
67,
6253,
3378,
13,
288,
1082,
202,
1376,
18,
267,
3353,
273,
394,
804,
2300,
3406,
12,
2011,
16,
3564,
18,
5466,
1315,
8653,
52,
21660,
12,
2919,
18,
588,
4726,
1435,
3631,
446,
1769,
1082,
565,
289,
1748,
12107,
309,
261,
2919,
18,
588,
2988,
1435,
422,
531,
1423,
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,
2343,
48,
382,
3353,
2300,
12,
46,
2300,
17633,
2966,
16,
4405,
377,
2256,
6452,
5369,
1123,
13,
565,
288,
202,
430,
261,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
13,
1276,
804,
5905,
2300,
13,
288,
202,
565,
309,
261,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
13,
1276,
804,
16835,
7729,
2300,
13,
288,
202,
202,
759,
22585,
6661,
2652,
434,
326,
646,
2002,
261,
556,
33,
13,
2145,
3196,
202,
46,
16835,
7729,
2300,
1161,
273,
1875,
565,
261,
46,
16835,
7729,
2300,
13,
1304,
18,
5466,
1315,
8653,
52,
21660,
12,
267,
3353,
2966,
1769,
202,
202,
759,
6540,
3071,
2002,
353,
326,
1547,
2
] |
code.append("chaser.setActionSpeed(" + camSpeedField.getText() + ");");
|
code.append("chaser.setActionSpeed(" + camSpeedField.getText() + "f);");
|
private void updateCode() { StringBuffer code = new StringBuffer(); code.append("HashMap handlerProps = new HashMap();\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_ROTATEONLY, \"" + rotateOnlyBox.isSelected() + "\");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_DOGRADUAL, \"" + gradualTurnsCheckBox.isSelected() + "\");\n"); if (gradualTurnsCheckBox.isSelected()) code.append("handlerProps.put(ThirdPersonHandler.PROP_TURNSPEED, \"" + turnSpeedField.getText() + "\");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_LOCKBACKWARDS, \"" + lockBackwardsCheckBox.isSelected() + "\");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_CAMERAALIGNEDMOVE, \"" + alignCameraRadio.isSelected() + "\");\n\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_ROTATEONLY, \"" + rotateOnlyBox.isSelected() + "\");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_STRAFETARGETALIGN, \"" + strafeAlignTargetBox.isSelected() + "\");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_FORWARD, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_FORWARD) + ");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_LEFT, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_LEFT) + ");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_BACKWARD, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_BACKWARD) + ");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_RIGHT, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_RIGHT) + ");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_STRAFELEFT, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_STRAFELEFT) + ");\n"); code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_STRAFERIGHT, KeyInput." + keys.get(ThirdPersonHandler.PROP_KEY_STRAFERIGHT) + ");\n"); code.append("input = new ThirdPersonHandler(m_character, cam, handlerProps);\n"); code.append("input.setActionSpeed(" + moveSpeedField.getText() + ");\n"); code.append("\nHashMap chaserProps = new HashMap();\n"); code.append("chaserProps.put(ChaseCamera.PROP_ENABLESPRING, \"" + enableSpringsCheckBox.isSelected() + "\");\n"); if (enableSpringsCheckBox.isSelected()) { code.append("chaserProps.put(ChaseCamera.PROP_DAMPINGK, \"" + dampingKField.getText() + "\");\n"); code.append("chaserProps.put(ChaseCamera.PROP_SPRINGK, \"" + springKField.getText() + "\");\n"); code.append("chaserProps.put(ChaseCamera.PROP_MAXDISTANCE, \"" + maxDistanceField.getText() + "\");\n"); code.append("chaserProps.put(ChaseCamera.PROP_MINDISTANCE, \"" + minDistanceField.getText() + "\");\n"); } code.append("chaserProps.put(ChaseCamera.PROP_INITIALSPHERECOORDS, new Vector3f(" + radiusField.getText() + ", 0, " + polarField.getText() + "));\n"); code.append("chaserProps.put(ChaseCamera.PROP_STAYBEHINDTARGET, \"" + stayBehindTargetBox.isSelected() + "\");\n"); if (offsetRelativeRadio.isSelected()) code.append("chaserProps.put(ChaseCamera.PROP_TARGETOFFSET, new Vector3f(0, ((BoundingBox) myTarget.getWorldBound()).yExtent * " + offsetRatioField.getText() + ", 0));\n"); else code.append("chaserProps.put(ChaseCamera.PROP_TARGETOFFSET, new Vector3f(" + offsetXField.getText() + ", " + offsetYField.getText() + ", " + offsetZField.getText() + "));\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_ENABLED, \"" + enableMouseLookBox.isSelected() + "\");\n"); if (enableMouseLookBox.isSelected()) { code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MAXASCENT, \"" + maxAscentSlider.getValue() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_INVERTEDY, \"" + invertControlCheckBox.isSelected() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MINROLLOUT, \"" + minZoomField.getText() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MAXROLLOUT, \"" + maxZoomField.getText() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEXMULT, \"" + accelHorizontalField.getText() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEYMULT, \"" + accelVerticalField.getText() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEROLLMULT, \"" + accelZoomField.getText() + "\");\n"); code.append("chaserProps.put(ThirdPersonMouseLook.PROP_LOCKASCENT, \"" + lockPolarBox.isSelected() + "\");\n"); } code.append("chaser = new ChaseCamera(cam, m_character, chaserProps);\n"); code.append("chaser.setActionSpeed(" + camSpeedField.getText() + ");"); codeArea.setText(code.toString()); codeArea.setCaretPosition(0); }
|
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/988a297be3243f74cde71818cb8b4b5e660c1eae/RenControlEditor.java/buggy/src/jmetest/input/RenControlEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1085,
1435,
288,
3639,
6674,
981,
273,
394,
6674,
5621,
3639,
981,
18,
6923,
2932,
8658,
1838,
5047,
273,
394,
4317,
5621,
64,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
1457,
56,
1777,
10857,
16,
11843,
7734,
397,
8534,
3386,
3514,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
3191,
6997,
1880,
14235,
16,
11843,
7734,
397,
6058,
1462,
31873,
19174,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
8863,
3639,
309,
261,
9974,
1462,
31873,
19174,
18,
291,
7416,
10756,
5411,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
56,
1099,
3156,
1423,
2056,
16,
11843,
18701,
397,
7005,
16562,
974,
18,
588,
1528,
1435,
397,
7023,
20472,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
6589,
8720,
16777,
3948,
16,
11843,
13491,
397,
2176,
2711,
6397,
19174,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
39,
2192,
654,
37,
26439,
2056,
16537,
16,
11843,
13491,
397,
5689,
16521,
19984,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
64,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
1457,
56,
1777,
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,
1089,
1085,
1435,
288,
3639,
6674,
981,
273,
394,
6674,
5621,
3639,
981,
18,
6923,
2932,
8658,
1838,
5047,
273,
394,
4317,
5621,
64,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
1457,
56,
1777,
10857,
16,
11843,
7734,
397,
8534,
3386,
3514,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
8863,
3639,
981,
18,
6923,
2932,
4176,
5047,
18,
458,
12,
24694,
8346,
1503,
18,
15811,
67,
3191,
6997,
1880,
14235,
16,
11843,
7734,
397,
6058,
1462,
31873,
19174,
18,
291,
7416,
1435,
397,
7023,
20472,
82,
8863,
3639,
309,
261,
9974,
1462,
31873,
19174,
18,
291,
7416,
10756,
5411,
981,
18,
6923,
2932,
4176,
2
] |
else return TokenNameIdentifier;
|
else if ((data[index] == 'n') && (data[++index] == 'u') && (data[++index] == 'm')) { if (this.sourceLevel >= ClassFileConstants.JDK1_5) { return TokenNameenum; } else { return TokenNameIdentifier; } } else { return TokenNameIdentifier; }
|
public int scanIdentifierOrKeyword() { //test keywords //first dispatch on the first char. //then the length. If there are several //keywors with the same length AND the same first char, then do another //dispatch on the second char this.useAssertAsAnIndentifier = false; while (getNextCharAsJavaIdentifierPart()){/*empty*/} int index, length; char[] data; char firstLetter; if (this.withoutUnicodePtr == 0) //quick test on length == 1 but not on length > 12 while most identifier //have a length which is <= 12...but there are lots of identifier with //only one char.... { if ((length = this.currentPosition - this.startPosition) == 1) return TokenNameIdentifier; data = this.source; index = this.startPosition; } else { if ((length = this.withoutUnicodePtr) == 1) return TokenNameIdentifier; data = this.withoutUnicodeBuffer; index = 1; } firstLetter = data[index]; switch (firstLetter) { case 'a' : switch(length) { case 8: //abstract if ((data[++index] == 'b') && (data[++index] == 's') && (data[++index] == 't') && (data[++index] == 'r') && (data[++index] == 'a') && (data[++index] == 'c') && (data[++index] == 't')) { return TokenNameabstract; } else { return TokenNameIdentifier; } case 6: // assert if ((data[++index] == 's') && (data[++index] == 's') && (data[++index] == 'e') && (data[++index] == 'r') && (data[++index] == 't')) { if (this.assertMode) { this.containsAssertKeyword = true; return TokenNameassert; } else { this.useAssertAsAnIndentifier = true; return TokenNameIdentifier; } } else { return TokenNameIdentifier; } default: return TokenNameIdentifier; } case 'b' : //boolean break byte switch (length) { case 4 : if ((data[++index] == 'y') && (data[++index] == 't') && (data[++index] == 'e')) return TokenNamebyte; else return TokenNameIdentifier; case 5 : if ((data[++index] == 'r') && (data[++index] == 'e') && (data[++index] == 'a') && (data[++index] == 'k')) return TokenNamebreak; else return TokenNameIdentifier; case 7 : if ((data[++index] == 'o') && (data[++index] == 'o') && (data[++index] == 'l') && (data[++index] == 'e') && (data[++index] == 'a') && (data[++index] == 'n')) return TokenNameboolean; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'c' : //case char catch const class continue switch (length) { case 4 : if (data[++index] == 'a') if ((data[++index] == 's') && (data[++index] == 'e')) return TokenNamecase; else return TokenNameIdentifier; else if ((data[index] == 'h') && (data[++index] == 'a') && (data[++index] == 'r')) return TokenNamechar; else return TokenNameIdentifier; case 5 : if (data[++index] == 'a') if ((data[++index] == 't') && (data[++index] == 'c') && (data[++index] == 'h')) return TokenNamecatch; else return TokenNameIdentifier; else if (data[index] == 'l') if ((data[++index] == 'a') && (data[++index] == 's') && (data[++index] == 's')) return TokenNameclass; else return TokenNameIdentifier; else if ((data[index] == 'o') && (data[++index] == 'n') && (data[++index] == 's') && (data[++index] == 't')) return TokenNameERROR; //const is not used in java ??????? else return TokenNameIdentifier; case 8 : if ((data[++index] == 'o') && (data[++index] == 'n') && (data[++index] == 't') && (data[++index] == 'i') && (data[++index] == 'n') && (data[++index] == 'u') && (data[++index] == 'e')) return TokenNamecontinue; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'd' : //default do double switch (length) { case 2 : if ((data[++index] == 'o')) return TokenNamedo; else return TokenNameIdentifier; case 6 : if ((data[++index] == 'o') && (data[++index] == 'u') && (data[++index] == 'b') && (data[++index] == 'l') && (data[++index] == 'e')) return TokenNamedouble; else return TokenNameIdentifier; case 7 : if ((data[++index] == 'e') && (data[++index] == 'f') && (data[++index] == 'a') && (data[++index] == 'u') && (data[++index] == 'l') && (data[++index] == 't')) return TokenNamedefault; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'e' : //else extends switch (length) { case 4 : if ((data[++index] == 'l') && (data[++index] == 's') && (data[++index] == 'e')) return TokenNameelse; else return TokenNameIdentifier; case 7 : if ((data[++index] == 'x') && (data[++index] == 't') && (data[++index] == 'e') && (data[++index] == 'n') && (data[++index] == 'd') && (data[++index] == 's')) return TokenNameextends; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'f' : //final finally float for false switch (length) { case 3 : if ((data[++index] == 'o') && (data[++index] == 'r')) return TokenNamefor; else return TokenNameIdentifier; case 5 : if (data[++index] == 'i') if ((data[++index] == 'n') && (data[++index] == 'a') && (data[++index] == 'l')) { return TokenNamefinal; } else return TokenNameIdentifier; else if (data[index] == 'l') if ((data[++index] == 'o') && (data[++index] == 'a') && (data[++index] == 't')) return TokenNamefloat; else return TokenNameIdentifier; else if ((data[index] == 'a') && (data[++index] == 'l') && (data[++index] == 's') && (data[++index] == 'e')) return TokenNamefalse; else return TokenNameIdentifier; case 7 : if ((data[++index] == 'i') && (data[++index] == 'n') && (data[++index] == 'a') && (data[++index] == 'l') && (data[++index] == 'l') && (data[++index] == 'y')) return TokenNamefinally; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'g' : //goto if (length == 4) { if ((data[++index] == 'o') && (data[++index] == 't') && (data[++index] == 'o')) { return TokenNameERROR; } } //no goto in java are allowed, so why java removes this keyword ??? return TokenNameIdentifier; case 'i' : //if implements import instanceof int interface switch (length) { case 2 : if (data[++index] == 'f') return TokenNameif; else return TokenNameIdentifier; case 3 : if ((data[++index] == 'n') && (data[++index] == 't')) return TokenNameint; else return TokenNameIdentifier; case 6 : if ((data[++index] == 'm') && (data[++index] == 'p') && (data[++index] == 'o') && (data[++index] == 'r') && (data[++index] == 't')) return TokenNameimport; else return TokenNameIdentifier; case 9 : if ((data[++index] == 'n') && (data[++index] == 't') && (data[++index] == 'e') && (data[++index] == 'r') && (data[++index] == 'f') && (data[++index] == 'a') && (data[++index] == 'c') && (data[++index] == 'e')) return TokenNameinterface; else return TokenNameIdentifier; case 10 : if (data[++index] == 'm') if ((data[++index] == 'p') && (data[++index] == 'l') && (data[++index] == 'e') && (data[++index] == 'm') && (data[++index] == 'e') && (data[++index] == 'n') && (data[++index] == 't') && (data[++index] == 's')) return TokenNameimplements; else return TokenNameIdentifier; else if ((data[index] == 'n') && (data[++index] == 's') && (data[++index] == 't') && (data[++index] == 'a') && (data[++index] == 'n') && (data[++index] == 'c') && (data[++index] == 'e') && (data[++index] == 'o') && (data[++index] == 'f')) return TokenNameinstanceof; else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'l' : //long if (length == 4) { if ((data[++index] == 'o') && (data[++index] == 'n') && (data[++index] == 'g')) { return TokenNamelong; } } return TokenNameIdentifier; case 'n' : //native new null switch (length) { case 3 : if ((data[++index] == 'e') && (data[++index] == 'w')) return TokenNamenew; else return TokenNameIdentifier; case 4 : if ((data[++index] == 'u') && (data[++index] == 'l') && (data[++index] == 'l')) return TokenNamenull; else return TokenNameIdentifier; case 6 : if ((data[++index] == 'a') && (data[++index] == 't') && (data[++index] == 'i') && (data[++index] == 'v') && (data[++index] == 'e')) { return TokenNamenative; } else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'p' : //package private protected public switch (length) { case 6 : if ((data[++index] == 'u') && (data[++index] == 'b') && (data[++index] == 'l') && (data[++index] == 'i') && (data[++index] == 'c')) { return TokenNamepublic; } else return TokenNameIdentifier; case 7 : if (data[++index] == 'a') if ((data[++index] == 'c') && (data[++index] == 'k') && (data[++index] == 'a') && (data[++index] == 'g') && (data[++index] == 'e')) return TokenNamepackage; else return TokenNameIdentifier; else if ((data[index] == 'r') && (data[++index] == 'i') && (data[++index] == 'v') && (data[++index] == 'a') && (data[++index] == 't') && (data[++index] == 'e')) { return TokenNameprivate; } else return TokenNameIdentifier; case 9 : if ((data[++index] == 'r') && (data[++index] == 'o') && (data[++index] == 't') && (data[++index] == 'e') && (data[++index] == 'c') && (data[++index] == 't') && (data[++index] == 'e') && (data[++index] == 'd')) { return TokenNameprotected; } else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'r' : //return if (length == 6) { if ((data[++index] == 'e') && (data[++index] == 't') && (data[++index] == 'u') && (data[++index] == 'r') && (data[++index] == 'n')) { return TokenNamereturn; } } return TokenNameIdentifier; case 's' : //short static super switch synchronized strictfp switch (length) { case 5 : if (data[++index] == 'h') if ((data[++index] == 'o') && (data[++index] == 'r') && (data[++index] == 't')) return TokenNameshort; else return TokenNameIdentifier; else if ((data[index] == 'u') && (data[++index] == 'p') && (data[++index] == 'e') && (data[++index] == 'r')) return TokenNamesuper; else return TokenNameIdentifier; case 6 : if (data[++index] == 't') if ((data[++index] == 'a') && (data[++index] == 't') && (data[++index] == 'i') && (data[++index] == 'c')) { return TokenNamestatic; } else return TokenNameIdentifier; else if ((data[index] == 'w') && (data[++index] == 'i') && (data[++index] == 't') && (data[++index] == 'c') && (data[++index] == 'h')) return TokenNameswitch; else return TokenNameIdentifier; case 8 : if ((data[++index] == 't') && (data[++index] == 'r') && (data[++index] == 'i') && (data[++index] == 'c') && (data[++index] == 't') && (data[++index] == 'f') && (data[++index] == 'p')) return TokenNamestrictfp; else return TokenNameIdentifier; case 12 : if ((data[++index] == 'y') && (data[++index] == 'n') && (data[++index] == 'c') && (data[++index] == 'h') && (data[++index] == 'r') && (data[++index] == 'o') && (data[++index] == 'n') && (data[++index] == 'i') && (data[++index] == 'z') && (data[++index] == 'e') && (data[++index] == 'd')) { return TokenNamesynchronized; } else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 't' : //try throw throws transient this true switch (length) { case 3 : if ((data[++index] == 'r') && (data[++index] == 'y')) return TokenNametry; else return TokenNameIdentifier; case 4 : if (data[++index] == 'h') if ((data[++index] == 'i') && (data[++index] == 's')) return TokenNamethis; else return TokenNameIdentifier; else if ((data[index] == 'r') && (data[++index] == 'u') && (data[++index] == 'e')) return TokenNametrue; else return TokenNameIdentifier; case 5 : if ((data[++index] == 'h') && (data[++index] == 'r') && (data[++index] == 'o') && (data[++index] == 'w')) return TokenNamethrow; else return TokenNameIdentifier; case 6 : if ((data[++index] == 'h') && (data[++index] == 'r') && (data[++index] == 'o') && (data[++index] == 'w') && (data[++index] == 's')) return TokenNamethrows; else return TokenNameIdentifier; case 9 : if ((data[++index] == 'r') && (data[++index] == 'a') && (data[++index] == 'n') && (data[++index] == 's') && (data[++index] == 'i') && (data[++index] == 'e') && (data[++index] == 'n') && (data[++index] == 't')) { return TokenNametransient; } else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'v' : //void volatile switch (length) { case 4 : if ((data[++index] == 'o') && (data[++index] == 'i') && (data[++index] == 'd')) return TokenNamevoid; else return TokenNameIdentifier; case 8 : if ((data[++index] == 'o') && (data[++index] == 'l') && (data[++index] == 'a') && (data[++index] == 't') && (data[++index] == 'i') && (data[++index] == 'l') && (data[++index] == 'e')) { return TokenNamevolatile; } else return TokenNameIdentifier; default : return TokenNameIdentifier; } case 'w' : //while widefp switch (length) { case 5 : if ((data[++index] == 'h') && (data[++index] == 'i') && (data[++index] == 'l') && (data[++index] == 'e')) return TokenNamewhile; else return TokenNameIdentifier; //case 6:if ( (data[++index] =='i') && (data[++index]=='d') && (data[++index]=='e') && (data[++index]=='f')&& (data[++index]=='p')) //return TokenNamewidefp ; //else //return TokenNameIdentifier; default : return TokenNameIdentifier; } default : return TokenNameIdentifier; }}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f63095af3c7deaeee47a62f089307467f872f35e/PublicScanner.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/PublicScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
509,
4135,
3004,
1162,
8736,
1435,
288,
202,
759,
3813,
7093,
202,
759,
3645,
3435,
603,
326,
1122,
1149,
18,
202,
759,
15991,
326,
769,
18,
971,
1915,
854,
11392,
202,
759,
856,
91,
1383,
598,
326,
1967,
769,
4116,
326,
1967,
1122,
1149,
16,
1508,
741,
4042,
202,
759,
10739,
603,
326,
2205,
1149,
225,
202,
2211,
18,
1202,
8213,
1463,
979,
3866,
1596,
273,
629,
31,
202,
17523,
261,
588,
2134,
2156,
1463,
5852,
3004,
1988,
10756,
95,
20308,
5531,
5549,
97,
202,
474,
770,
16,
769,
31,
202,
3001,
8526,
501,
31,
202,
3001,
1122,
13938,
31,
202,
430,
261,
2211,
18,
13299,
16532,
5263,
422,
374,
13,
202,
202,
759,
19525,
1842,
603,
769,
422,
404,
1496,
486,
603,
769,
405,
2593,
1323,
4486,
2756,
202,
202,
759,
21516,
279,
769,
1492,
353,
1648,
2593,
2777,
12885,
1915,
854,
328,
6968,
434,
2756,
598,
202,
202,
759,
3700,
1245,
1149,
6265,
202,
202,
95,
202,
202,
430,
14015,
2469,
273,
333,
18,
2972,
2555,
300,
333,
18,
1937,
2555,
13,
422,
404,
13,
1082,
202,
2463,
3155,
461,
3004,
31,
202,
202,
892,
273,
333,
18,
3168,
31,
202,
202,
1615,
273,
333,
18,
1937,
2555,
31,
202,
97,
469,
288,
202,
202,
430,
14015,
2469,
273,
333,
18,
13299,
16532,
5263,
13,
422,
404,
13,
1082,
202,
2463,
3155,
461,
3004,
31,
202,
202,
892,
273,
333,
18,
13299,
16532,
1892,
31,
202,
202,
1615,
273,
404,
31,
202,
97,
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,
1071,
509,
4135,
3004,
1162,
8736,
1435,
288,
202,
759,
3813,
7093,
202,
759,
3645,
3435,
603,
326,
1122,
1149,
18,
202,
759,
15991,
326,
769,
18,
971,
1915,
854,
11392,
202,
759,
856,
91,
1383,
598,
326,
1967,
769,
4116,
326,
1967,
1122,
1149,
16,
1508,
741,
4042,
202,
759,
10739,
603,
326,
2205,
1149,
225,
202,
2211,
18,
1202,
8213,
1463,
979,
3866,
1596,
273,
629,
31,
202,
17523,
261,
588,
2134,
2156,
1463,
5852,
3004,
1988,
10756,
95,
20308,
5531,
5549,
97,
202,
474,
770,
16,
769,
31,
202,
3001,
8526,
501,
31,
202,
3001,
1122,
13938,
31,
202,
430,
261,
2211,
18,
13299,
16532,
5263,
422,
374,
13,
202,
202,
759,
19525,
1842,
603,
769,
2
] |
if (block[0] == 1) {
|
if (block[0] == 1) {
|
protected void readNetscapeExt() { do { readBlock(); if (block[0] == 1) { // loop count sub-block int b1 = ((int) block[1]) & 0xff; int b2 = ((int) block[2]) & 0xff; loopCount = (b2 << 8) | b1; } } while ((blockSize > 0) && !err()); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/38deb5a3770dd936982e996839c13f192aaf5f29/GifDecoder.java/buggy/Ajax/src/com/zimbra/ajax/imagemerge/GifDecoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
7308,
12476,
2482,
1435,
288,
3639,
741,
288,
5411,
855,
1768,
5621,
5411,
309,
261,
2629,
63,
20,
65,
422,
404,
13,
288,
7734,
368,
2798,
1056,
720,
17,
2629,
7734,
509,
324,
21,
273,
14015,
474,
13,
1203,
63,
21,
5717,
473,
374,
5297,
31,
7734,
509,
324,
22,
273,
14015,
474,
13,
1203,
63,
22,
5717,
473,
374,
5297,
31,
7734,
2798,
1380,
273,
261,
70,
22,
2296,
1725,
13,
571,
324,
21,
31,
5411,
289,
3639,
289,
1323,
14015,
2629,
1225,
405,
374,
13,
597,
401,
370,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
7308,
12476,
2482,
1435,
288,
3639,
741,
288,
5411,
855,
1768,
5621,
5411,
309,
261,
2629,
63,
20,
65,
422,
404,
13,
288,
7734,
368,
2798,
1056,
720,
17,
2629,
7734,
509,
324,
21,
273,
14015,
474,
13,
1203,
63,
21,
5717,
473,
374,
5297,
31,
7734,
509,
324,
22,
273,
14015,
474,
13,
1203,
63,
22,
5717,
473,
374,
5297,
31,
7734,
2798,
1380,
273,
261,
70,
22,
2296,
1725,
13,
571,
324,
21,
31,
5411,
289,
3639,
289,
1323,
14015,
2629,
1225,
405,
374,
13,
597,
401,
370,
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
] |
DOMParser domParser = new DOMParser(); domParser.parse(PropertiesHandler.properties.getTablesUri()); tablesDoc = domParser.getDocument();
|
try { String tablesURI = UtilitiesBean.fixURI(PropertiesHandler.properties.getTablesUri()); DOMParser domParser = new DOMParser(); domParser.parse(tablesURI); tablesDoc = domParser.getDocument(); } catch(Exception e) { System.out.println("Could not open " + UtilitiesBean.fixURI(PropertiesHandler.properties.getTablesUri())); e.printStackTrace(); return; }
|
public static void main(String[] args) { try { setPortalBaseDir(); propertiesUri = UtilitiesBean.fixURI("properties" + File.separator + "dbloader.xml"); con = rdbmService.getConnection (); if (con != null) { long startTime = System.currentTimeMillis(); // Read in the properties XMLReader parser = getXMLReader(); printInfo(); readProperties(parser); // Read drop/create/populate table settings dropTables = Boolean.valueOf(PropertiesHandler.properties.getDropTables()).booleanValue(); createTables = Boolean.valueOf(PropertiesHandler.properties.getCreateTables()).booleanValue(); populateTables = Boolean.valueOf(PropertiesHandler.properties.getPopulateTables()).booleanValue(); // Set up script createScript = Boolean.valueOf(PropertiesHandler.properties.getCreateScript()).booleanValue(); if (createScript) initScript(); // Read tables.xml DOMParser domParser = new DOMParser(); // Eventually, write and validate against a DTD //domParser.setFeature ("http://xml.org/sax/features/validation", true); //domParser.setEntityResolver(new DTDResolver("tables.dtd")); domParser.parse(PropertiesHandler.properties.getTablesUri()); tablesDoc = domParser.getDocument(); // Hold on to tables xml with generic types tablesDocGeneric = (Document)tablesDoc.cloneNode(true); // Replace all generic data types with local data types replaceDataTypes(tablesDoc); // tables.xml + tables.xsl --> DROP TABLE and CREATE TABLE sql statements XSLTProcessor processor = XSLTProcessorFactory.getProcessor (new org.apache.xalan.xpath.xdom.XercesLiaison ()); XSLTInputSource tablesInputSource = new XSLTInputSource(tablesDoc); XSLTInputSource tablesXslInputSource = new XSLTInputSource(PropertiesHandler.properties.getTablesXslUri()); XSLTResultTarget tablesTarget = new XSLTResultTarget(new TableHandler()); processor.process (tablesInputSource, tablesXslInputSource, tablesTarget); // data.xml --> INSERT sql statements readData(parser); System.out.println("Done!"); long endTime = System.currentTimeMillis(); System.out.println("Elapsed time: " + ((endTime - startTime) / 1000f) + " seconds"); exit(); } else System.out.println("DbLoader couldn't obtain a database connection. See '" + portalBaseDir + "logs" + File.separator + "portal.log' for details."); } catch (Exception e) { e.printStackTrace(); } finally { exit(); } }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/93b3dfa77257ce086f02d4d8f7ab200bc2b1715c/DbLoader.java/clean/source/org/jasig/portal/tools/DbLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
225,
288,
565,
775,
565,
288,
1377,
444,
24395,
2171,
1621,
5621,
1377,
1790,
3006,
273,
26703,
3381,
18,
904,
3098,
2932,
4738,
6,
397,
1387,
18,
11287,
397,
315,
1966,
6714,
18,
2902,
8863,
1377,
356,
273,
436,
1966,
81,
1179,
18,
588,
1952,
261,
1769,
1377,
309,
261,
591,
480,
446,
13,
1377,
288,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
2720,
316,
326,
1790,
3639,
3167,
2514,
2082,
273,
336,
4201,
2514,
5621,
3639,
1172,
966,
5621,
3639,
855,
2297,
12,
4288,
1769,
3639,
368,
2720,
3640,
19,
2640,
19,
19936,
1014,
1947,
3639,
3640,
6905,
273,
3411,
18,
1132,
951,
12,
2297,
1503,
18,
4738,
18,
588,
7544,
6905,
1435,
2934,
6494,
620,
5621,
3639,
752,
6905,
273,
3411,
18,
1132,
951,
12,
2297,
1503,
18,
4738,
18,
588,
1684,
6905,
1435,
2934,
6494,
620,
5621,
3639,
6490,
6905,
273,
3411,
18,
1132,
951,
12,
2297,
1503,
18,
4738,
18,
588,
19097,
6905,
1435,
2934,
6494,
620,
5621,
3639,
368,
1000,
731,
2728,
3639,
752,
3651,
273,
3411,
18,
1132,
951,
12,
2297,
1503,
18,
4738,
18,
588,
1684,
3651,
1435,
2934,
6494,
620,
5621,
3639,
309,
261,
2640,
3651,
13,
1850,
1208,
3651,
5621,
3639,
368,
2720,
4606,
18,
2902,
3639,
4703,
2678,
4092,
2678,
273,
394,
4703,
2678,
5621,
3639,
368,
2587,
3452,
16,
1045,
471,
1954,
5314,
279,
10696,
40,
3639,
368,
9859,
2678,
18,
542,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
225,
288,
565,
775,
565,
288,
1377,
444,
24395,
2171,
1621,
5621,
1377,
1790,
3006,
273,
26703,
3381,
18,
904,
3098,
2932,
4738,
6,
397,
1387,
18,
11287,
397,
315,
1966,
6714,
18,
2902,
8863,
1377,
356,
273,
436,
1966,
81,
1179,
18,
588,
1952,
261,
1769,
1377,
309,
261,
591,
480,
446,
13,
1377,
288,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
2720,
316,
326,
1790,
3639,
3167,
2514,
2082,
273,
336,
4201,
2514,
5621,
3639,
1172,
966,
5621,
3639,
855,
2297,
12,
4288,
1769,
3639,
368,
2720,
3640,
19,
2640,
19,
19936,
1014,
1947,
3639,
3640,
6905,
273,
3411,
18,
1132,
951,
12,
2
] |
new ChooseWorkspaceDialog(shell, launchData, false, true).prompt(force);
|
new ChooseWorkspaceDialog(null, launchData, false, true).prompt(force);
|
private URL promptForWorkspace(Shell shell, ChooseWorkspaceData launchData, boolean force) { URL url = null; do { new ChooseWorkspaceDialog(shell, launchData, false, true).prompt(force); String instancePath = launchData.getSelection(); if (instancePath == null) return null; // the dialog is not forced on the first iteration, but is on every // subsequent one -- if there was an error then the user needs to be // allowed to fix it force = true; // 70576: don't accept empty input if (instancePath.length() <= 0) { MessageDialog .openError( shell, IDEWorkbenchMessages.IDEApplication_workspaceEmptyTitle, IDEWorkbenchMessages.IDEApplication_workspaceEmptyMessage); continue; } // create the workspace if it does not already exist File workspace = new File(instancePath); if (!workspace.exists()) workspace.mkdir(); try { // Don't use File.toURL() since it adds a leading slash that Platform does not // handle properly. See bug 54081 for more details. String path = workspace.getAbsolutePath().replace( File.separatorChar, '/'); url = new URL("file", null, path); //$NON-NLS-1$ } catch (MalformedURLException e) { MessageDialog .openError( shell, IDEWorkbenchMessages.IDEApplication_workspaceInvalidTitle, IDEWorkbenchMessages.IDEApplication_workspaceInvalidMessage); continue; } } while (!checkValidWorkspace(shell, url)); return url; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/91928a5992a0d4f94a8ea7a5a01b7df41e128681/IDEApplication.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1976,
6866,
1290,
8241,
12,
13220,
5972,
16,
25593,
8241,
751,
8037,
751,
16,
5411,
1250,
2944,
13,
288,
3639,
1976,
880,
273,
446,
31,
3639,
741,
288,
2868,
394,
25593,
8241,
6353,
12,
2011,
16,
8037,
751,
16,
629,
16,
638,
2934,
13325,
12,
5734,
1769,
5411,
514,
791,
743,
273,
8037,
751,
18,
588,
6233,
5621,
5411,
309,
261,
1336,
743,
422,
446,
13,
7734,
327,
446,
31,
5411,
368,
326,
6176,
353,
486,
13852,
603,
326,
1122,
6532,
16,
1496,
353,
603,
3614,
5411,
368,
10815,
1245,
1493,
309,
1915,
1703,
392,
555,
1508,
326,
729,
4260,
358,
506,
5411,
368,
2935,
358,
2917,
518,
5411,
2944,
273,
638,
31,
5411,
368,
2371,
6260,
6669,
30,
2727,
1404,
2791,
1008,
810,
5411,
309,
261,
1336,
743,
18,
2469,
1435,
1648,
374,
13,
288,
7734,
2350,
6353,
7734,
263,
3190,
668,
12,
13491,
5972,
16,
13491,
1599,
41,
2421,
22144,
5058,
18,
10385,
3208,
67,
14915,
1921,
4247,
16,
13491,
1599,
41,
2421,
22144,
5058,
18,
10385,
3208,
67,
14915,
1921,
1079,
1769,
7734,
1324,
31,
5411,
289,
5411,
368,
752,
326,
6003,
309,
518,
1552,
486,
1818,
1005,
5411,
1387,
6003,
273,
394,
1387,
12,
1336,
743,
1769,
5411,
309,
16051,
14915,
18,
1808,
10756,
7734,
6003,
18,
26686,
5621,
5411,
775,
288,
7734,
368,
7615,
1404,
999,
1387,
18,
869,
1785,
1435,
3241,
518,
4831,
279,
7676,
9026,
716,
11810,
1552,
486,
7734,
368,
1640,
8214,
18,
225,
2164,
7934,
22431,
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,
1976,
6866,
1290,
8241,
12,
13220,
5972,
16,
25593,
8241,
751,
8037,
751,
16,
5411,
1250,
2944,
13,
288,
3639,
1976,
880,
273,
446,
31,
3639,
741,
288,
2868,
394,
25593,
8241,
6353,
12,
2011,
16,
8037,
751,
16,
629,
16,
638,
2934,
13325,
12,
5734,
1769,
5411,
514,
791,
743,
273,
8037,
751,
18,
588,
6233,
5621,
5411,
309,
261,
1336,
743,
422,
446,
13,
7734,
327,
446,
31,
5411,
368,
326,
6176,
353,
486,
13852,
603,
326,
1122,
6532,
16,
1496,
353,
603,
3614,
5411,
368,
10815,
1245,
1493,
309,
1915,
1703,
392,
555,
1508,
326,
729,
4260,
358,
506,
5411,
368,
2935,
358,
2917,
518,
5411,
2944,
273,
638,
31,
5411,
368,
2371,
6260,
2
] |
public ActionErrors validate(ActionMapping mapping,
|
public ActionMessages validate(ActionMapping mapping,
|
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((username == null) || (username.length() < 1)) errors.add("username", new ActionError("error.username.required")); if ((password == null) || (password.length() < 1)) errors.add("password", new ActionError("error.password.required")); return errors; }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/462d9ebde854fb6c282d1fb1f04220ded387fb8f/LogonForm.java/buggy/apps/faces-example1/src/main/java/org/apache/struts/webapp/example/LogonForm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
5058,
1954,
12,
1803,
3233,
2874,
16,
4766,
9984,
590,
13,
288,
3639,
4382,
4229,
1334,
273,
394,
4382,
4229,
5621,
3639,
309,
14015,
5053,
422,
446,
13,
747,
261,
5053,
18,
2469,
1435,
411,
404,
3719,
5411,
1334,
18,
1289,
2932,
5053,
3113,
394,
4382,
668,
2932,
1636,
18,
5053,
18,
4718,
7923,
1769,
3639,
309,
14015,
3664,
422,
446,
13,
747,
261,
3664,
18,
2469,
1435,
411,
404,
3719,
5411,
1334,
18,
1289,
2932,
3664,
3113,
394,
4382,
668,
2932,
1636,
18,
3664,
18,
4718,
7923,
1769,
3639,
327,
1334,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
4382,
5058,
1954,
12,
1803,
3233,
2874,
16,
4766,
9984,
590,
13,
288,
3639,
4382,
4229,
1334,
273,
394,
4382,
4229,
5621,
3639,
309,
14015,
5053,
422,
446,
13,
747,
261,
5053,
18,
2469,
1435,
411,
404,
3719,
5411,
1334,
18,
1289,
2932,
5053,
3113,
394,
4382,
668,
2932,
1636,
18,
5053,
18,
4718,
7923,
1769,
3639,
309,
14015,
3664,
422,
446,
13,
747,
261,
3664,
18,
2469,
1435,
411,
404,
3719,
5411,
1334,
18,
1289,
2932,
3664,
3113,
394,
4382,
668,
2932,
1636,
18,
3664,
18,
4718,
7923,
1769,
3639,
327,
1334,
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
] |
((IContainer) resource).setDefaultCharset(newEncoding);
|
((IContainer) resource).setDefaultCharset(newEncoding,null);
|
public boolean performOk() { IResource resource = (IResource) getElement(); // set encoding if (isEncodingValid()) { String previousEncoding = null; if (!usesDefaultEncoding(resource)) previousEncoding = getEncoding(resource); String newEncoding = null; if (!defaultEncodingButton.getSelection()) newEncoding = encodingCombo.getText(); if ((previousEncoding == null && newEncoding != null) || (previousEncoding != null && newEncoding == null) || (previousEncoding != null && newEncoding != null && !previousEncoding .equals(newEncoding))) { try { if (resource instanceof IFile) ((IFile) resource).setCharset(newEncoding); else if (resource instanceof IContainer) ((IContainer) resource).setDefaultCharset(newEncoding); } catch (CoreException e) { ErrorDialog.openError(getShell(), IDEWorkbenchMessages .getString("InternalError"), //$NON-NLS-1$ e.getLocalizedMessage(), e.getStatus()); return false; } } IDEEncoding.addIDEEncoding(newEncoding); } //Nothing to update if we never made the box if (this.editableBox != null) { boolean localReadOnlyValue = editableBox.getSelection(); if (previousReadOnlyValue != localReadOnlyValue) { resource.setReadOnly(localReadOnlyValue); } } //Nothing to update if we never made the box if (this.derivedBox != null) { try { boolean localDerivedValue = derivedBox.getSelection(); if (previousDerivedValue != localDerivedValue) { resource.setDerived(localDerivedValue); } } catch (CoreException exception) { ErrorDialog.openError(getShell(), IDEWorkbenchMessages .getString("InternalError"), //$NON-NLS-1$ exception.getLocalizedMessage(), exception.getStatus()); return false; } } return true; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a19ba5822045b392d1242f05beba3deb20d2d798/ResourceInfoPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
5621,
202,
202,
759,
444,
2688,
202,
202,
430,
261,
291,
4705,
1556,
10756,
288,
1082,
202,
780,
2416,
4705,
273,
446,
31,
1082,
202,
430,
16051,
6117,
1868,
4705,
12,
3146,
3719,
9506,
202,
11515,
4705,
273,
29505,
12,
3146,
1769,
1082,
202,
780,
394,
4705,
273,
446,
31,
1082,
202,
430,
16051,
1886,
4705,
3616,
18,
588,
6233,
10756,
9506,
202,
2704,
4705,
273,
2688,
16156,
18,
588,
1528,
5621,
1082,
202,
430,
14015,
11515,
4705,
422,
446,
597,
394,
4705,
480,
446,
13,
6862,
202,
20081,
261,
11515,
4705,
480,
446,
597,
394,
4705,
422,
446,
13,
6862,
202,
20081,
261,
11515,
4705,
480,
446,
597,
394,
4705,
480,
446,
597,
401,
11515,
4705,
6862,
1082,
202,
18,
14963,
12,
2704,
4705,
20349,
288,
9506,
202,
698,
288,
6862,
202,
430,
261,
3146,
1276,
467,
812,
13,
25083,
202,
12443,
45,
812,
13,
1058,
2934,
542,
9652,
12,
2704,
4705,
1769,
6862,
202,
12107,
309,
261,
3146,
1276,
467,
2170,
13,
25083,
202,
12443,
45,
2170,
13,
1058,
2934,
542,
1868,
9652,
12,
2704,
4705,
1769,
9506,
202,
97,
1044,
261,
25341,
425,
13,
288,
6862,
202,
668,
6353,
18,
3190,
668,
12,
588,
13220,
9334,
1599,
41,
2421,
22144,
5058,
6862,
1082,
202,
18,
588,
780,
2932,
20980,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
73,
18,
588,
2042,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
5621,
202,
202,
759,
444,
2688,
202,
202,
430,
261,
291,
4705,
1556,
10756,
288,
1082,
202,
780,
2416,
4705,
273,
446,
31,
1082,
202,
430,
16051,
6117,
1868,
4705,
12,
3146,
3719,
9506,
202,
11515,
4705,
273,
29505,
12,
3146,
1769,
1082,
202,
780,
394,
4705,
273,
446,
31,
1082,
202,
430,
16051,
1886,
4705,
3616,
18,
588,
6233,
10756,
9506,
202,
2704,
4705,
273,
2688,
16156,
18,
588,
1528,
5621,
1082,
202,
430,
14015,
11515,
4705,
422,
446,
597,
394,
4705,
480,
446,
13,
6862,
202,
20081,
261,
11515,
4705,
480,
446,
597,
394,
4705,
422,
446,
13,
2
] |
updateStatement.setObject( i + 1, iterator.next() );
|
Object o = iterator.next(); if (o instanceof NullObject) updateStatement.setNull(i+1,java.sql.Types.NULL); else updateStatement.setObject( i + 1, o );
|
public synchronized void updateRow() throws SQLException { if ( !isUpdateable() ) { throw new PSQLException( "postgresql.updateable.notupdateable" ); } if (doingUpdates) { try { StringBuffer updateSQL = new StringBuffer("UPDATE " + tableName + " SET "); int numColumns = updateValues.size(); Enumeration columns = updateValues.keys(); for (int i = 0; columns.hasMoreElements(); i++ ) { String column = (String) columns.nextElement(); updateSQL.append( column + "= ?"); if ( i < numColumns - 1 ) { updateSQL.append(", "); } } updateSQL.append( " WHERE " ); int numKeys = primaryKeys.size(); for ( int i = 0; i < numKeys; i++ ) { PrimaryKey primaryKey = ((PrimaryKey) primaryKeys.get(i)); updateSQL.append(primaryKey.name).append("= ?"); if ( i < numKeys - 1 ) { updateSQL.append(" and "); } } if ( Driver.logDebug ) Driver.debug("updating " + updateSQL.toString()); updateStatement = ((java.sql.Connection) connection).prepareStatement(updateSQL.toString()); int i = 0; Iterator iterator = updateValues.values().iterator(); for (; iterator.hasNext(); i++) { updateStatement.setObject( i + 1, iterator.next() ); } for ( int j = 0; j < numKeys; j++, i++) { updateStatement.setObject( i + 1, ((PrimaryKey) primaryKeys.get(j)).getValue() ); } updateStatement.executeUpdate(); updateStatement.close(); updateStatement = null; updateRowBuffer(); if ( Driver.logDebug ) Driver.debug("copying data"); System.arraycopy(rowBuffer, 0, this_row, 0, rowBuffer.length); rows.setElementAt( rowBuffer, current_row ); if ( Driver.logDebug ) Driver.debug("done updates"); doingUpdates = false; } catch (Exception e) { if ( Driver.logDebug ) Driver.debug(e.getClass().getName() + e); throw new SQLException( e.getMessage() ); } } }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/289d9eea1298f2b85409b3e98857210fb69e8c9d/AbstractJdbc2ResultSet.java/clean/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
1999,
1435,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
12,
315,
2767,
24330,
18,
2725,
429,
18,
902,
2725,
429,
6,
11272,
202,
202,
97,
202,
202,
430,
261,
2896,
310,
5121,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
1892,
1089,
3997,
273,
394,
6674,
2932,
8217,
315,
397,
4775,
397,
315,
7855,
225,
315,
1769,
9506,
202,
474,
30109,
273,
1089,
1972,
18,
1467,
5621,
9506,
202,
21847,
2168,
273,
1089,
1972,
18,
2452,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
2168,
18,
5332,
7417,
3471,
5621,
277,
9904,
262,
9506,
202,
95,
6862,
202,
780,
1057,
273,
261,
780,
13,
2168,
18,
4285,
1046,
5621,
6862,
202,
2725,
3997,
18,
6923,
12,
1057,
397,
29199,
692,
8863,
6862,
202,
430,
261,
277,
411,
30109,
300,
404,
262,
6862,
202,
95,
25083,
202,
2725,
3997,
18,
6923,
2932,
16,
315,
1769,
6862,
202,
97,
9506,
202,
97,
9506,
202,
2725,
3997,
18,
6923,
12,
315,
4852,
315,
11272,
9506,
202,
474,
818,
2396,
273,
31629,
18,
1467,
5621,
9506,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
818,
2396,
31,
277,
9904,
262,
9506,
202,
95,
6862,
202,
11575,
8841,
273,
14015,
11575,
13,
31629,
18,
588,
12,
77,
10019,
6862,
202,
2725,
3997,
18,
6923,
12,
8258,
653,
18,
529,
2934,
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,
3852,
918,
1089,
1999,
1435,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
12,
315,
2767,
24330,
18,
2725,
429,
18,
902,
2725,
429,
6,
11272,
202,
202,
97,
202,
202,
430,
261,
2896,
310,
5121,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
1892,
1089,
3997,
273,
394,
6674,
2932,
8217,
315,
397,
4775,
397,
315,
7855,
225,
315,
1769,
9506,
202,
474,
30109,
273,
1089,
1972,
18,
1467,
5621,
9506,
202,
21847,
2168,
273,
1089,
1972,
18,
2452,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
2168,
18,
5332,
7417,
3471,
2
] |
if (!axisService.isWsdlfound()) {
|
if (!axisService.isWsdlFound()) {
|
private void isWSDLEnable(AxisService axisService) { if (!axisService.isWsdlfound()) { Iterator operatins = axisService.getOperations(); if (operatins.hasNext()) { while (operatins.hasNext()) { AxisOperation axisOperation = (AxisOperation) operatins .next(); if (axisOperation.getMessageReceiver() == null) { axisService.setWsdlfound(false); return; } String messageReceiverClass = axisOperation .getMessageReceiver().getClass().getName(); if (!("org.apache.axis2.rpc.receivers.RPCMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver" .equals(messageReceiverClass))) { axisService.setWsdlfound(false); return; } } axisService.setWsdlfound(true); } else { axisService.setWsdlfound(false); } } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/873bd2d0c2616be07bb9d40103d02d958010d887/AxisConfiguration.java/buggy/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
353,
2651,
8914,
8317,
12,
6558,
1179,
2654,
1179,
13,
288,
3639,
309,
16051,
4890,
1179,
18,
291,
15444,
5761,
2043,
10756,
288,
5411,
4498,
2255,
270,
2679,
273,
2654,
1179,
18,
588,
9343,
5621,
5411,
309,
261,
4063,
270,
2679,
18,
5332,
2134,
10756,
288,
7734,
1323,
261,
4063,
270,
2679,
18,
5332,
2134,
10756,
288,
10792,
15509,
2988,
2654,
2988,
273,
261,
6558,
2988,
13,
2255,
270,
2679,
18701,
263,
4285,
5621,
10792,
309,
261,
4890,
2988,
18,
24906,
12952,
1435,
422,
446,
13,
288,
13491,
2654,
1179,
18,
542,
15444,
5761,
7015,
12,
5743,
1769,
13491,
327,
31,
10792,
289,
10792,
514,
883,
12952,
797,
273,
2654,
2988,
18701,
263,
24906,
12952,
7675,
588,
797,
7675,
17994,
5621,
10792,
309,
16051,
2932,
3341,
18,
19211,
18,
4890,
22,
18,
7452,
18,
8606,
6760,
18,
8087,
1079,
12952,
6,
18701,
263,
14963,
12,
2150,
12952,
797,
13,
18701,
747,
315,
3341,
18,
19211,
18,
4890,
22,
18,
7452,
18,
8606,
6760,
18,
8087,
382,
3386,
1079,
12952,
6,
18701,
263,
14963,
12,
2150,
12952,
797,
13,
747,
315,
3341,
18,
19211,
18,
4890,
22,
18,
7452,
18,
8606,
6760,
18,
8087,
382,
1182,
2771,
1079,
12952,
6,
18701,
263,
14963,
12,
2150,
12952,
797,
20349,
288,
13491,
2654,
1179,
18,
542,
15444,
5761,
7015,
12,
5743,
1769,
13491,
327,
31,
10792,
289,
7734,
289,
7734,
2654,
1179,
18,
542,
15444,
5761,
7015,
12,
3767,
1769,
5411,
289,
469,
288,
7734,
2654,
1179,
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,
353,
2651,
8914,
8317,
12,
6558,
1179,
2654,
1179,
13,
288,
3639,
309,
16051,
4890,
1179,
18,
291,
15444,
5761,
2043,
10756,
288,
5411,
4498,
2255,
270,
2679,
273,
2654,
1179,
18,
588,
9343,
5621,
5411,
309,
261,
4063,
270,
2679,
18,
5332,
2134,
10756,
288,
7734,
1323,
261,
4063,
270,
2679,
18,
5332,
2134,
10756,
288,
10792,
15509,
2988,
2654,
2988,
273,
261,
6558,
2988,
13,
2255,
270,
2679,
18701,
263,
4285,
5621,
10792,
309,
261,
4890,
2988,
18,
24906,
12952,
1435,
422,
446,
13,
288,
13491,
2654,
1179,
18,
542,
15444,
5761,
7015,
12,
5743,
1769,
13491,
327,
31,
10792,
289,
10792,
514,
883,
12952,
797,
273,
2654,
2988,
18701,
263,
24906,
12952,
7675,
2
] |
Object funObj = getProperty(obj, methodName); if (!(funObj instanceof Function)) { throw ScriptRuntime.typeError1( "msg.isnt.function", ScriptRuntime.toString(obj)+'.'+methodName); } Function fun = (Function)funObj; return Context.call(fun, getTopLevelScope(obj), obj, args);
|
return callMethod(Context.getContext(), obj, methodName, args);
|
public static Object callMethod(Scriptable obj, String methodName, Object[] args) throws JavaScriptException { Object funObj = getProperty(obj, methodName); if (!(funObj instanceof Function)) { throw ScriptRuntime.typeError1( "msg.isnt.function", ScriptRuntime.toString(obj)+'.'+methodName); } Function fun = (Function)funObj; return Context.call(fun, getTopLevelScope(obj), obj, args); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/37d29a017a6038dd3a95ecea961c7097f7733631/ScriptableObject.java/clean/src/org/mozilla/javascript/ScriptableObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
1305,
12,
3651,
429,
1081,
16,
514,
4918,
16,
4766,
565,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
9831,
2675,
273,
3911,
12,
2603,
16,
4918,
1769,
3639,
309,
16051,
12,
12125,
2675,
1276,
4284,
3719,
288,
5411,
604,
7739,
5576,
18,
723,
668,
21,
12,
7734,
315,
3576,
18,
291,
496,
18,
915,
3113,
7734,
7739,
5576,
18,
10492,
12,
2603,
13,
6797,
1093,
15,
2039,
461,
1769,
3639,
289,
3639,
4284,
9831,
273,
261,
2083,
13,
12125,
2675,
31,
3639,
327,
1772,
18,
1991,
12,
12125,
16,
13729,
2355,
3876,
12,
2603,
3631,
1081,
16,
833,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
1305,
12,
3651,
429,
1081,
16,
514,
4918,
16,
4766,
565,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
9831,
2675,
273,
3911,
12,
2603,
16,
4918,
1769,
3639,
309,
16051,
12,
12125,
2675,
1276,
4284,
3719,
288,
5411,
604,
7739,
5576,
18,
723,
668,
21,
12,
7734,
315,
3576,
18,
291,
496,
18,
915,
3113,
7734,
7739,
5576,
18,
10492,
12,
2603,
13,
6797,
1093,
15,
2039,
461,
1769,
3639,
289,
3639,
4284,
9831,
273,
261,
2083,
13,
12125,
2675,
31,
3639,
327,
1772,
18,
1991,
12,
12125,
16,
13729,
2355,
3876,
12,
2603,
3631,
1081,
16,
833,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Object handleGetMessageListener(Invocation invocation) throws Throwable
|
public MessageListener handleGetMessageListener(Invocation invocation) throws Throwable
|
public Object handleGetMessageListener(Invocation invocation) throws Throwable { return getHandler(invocation).getMessageListener(); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/60912ca4dfe6a3b4ac833d1f3df470a757ce1107/ReceiverAspect.java/clean/src/main/org/jboss/jms/client/container/ReceiverAspect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2350,
2223,
1640,
967,
1079,
2223,
12,
9267,
9495,
13,
1216,
4206,
282,
288,
2398,
327,
18945,
12,
5768,
4431,
2934,
24906,
2223,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
2350,
2223,
1640,
967,
1079,
2223,
12,
9267,
9495,
13,
1216,
4206,
282,
288,
2398,
327,
18945,
12,
5768,
4431,
2934,
24906,
2223,
5621,
282,
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
] |
((ContentUI) content).fireSelected((Boolean) evt.getNewValue());
|
((BackContentUI) content).fireSelected((Boolean) evt.getNewValue());
|
protected void addUIForContent(Content content) { JInternalFrame internalFrame = new DesktopContentFrame(content.getTitle(), true, true, true, true); internalFrame.setFrameIcon(content.getIcon()); internalFrame.getContentPane().add(content.getComponent()); int contentX; int contentY; contentY = contentX = 10 + (contentIndex++ * 25); if (contentX > desktopPane.getWidth() - 320 || contentY > desktopPane.getHeight() - 200) { contentIndex = 0; contentY = contentX = 10; } internalFrame.setBounds(contentX, contentY, 320, 200); internalFrame.addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosed(InternalFrameEvent e) { contentManager.removeContent( contentManager.getContent(e.getInternalFrame().getContentPane().getComponent(0)) ); } }); internalFrame.addPropertyChangeListener(JInternalFrame.IS_SELECTED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { if (!valueAdjusting && !contentValueAdjusting) { Container container = ((JInternalFrame) evt.getSource()).getContentPane(); if (container.getComponentCount() > 0) { Component cmp = container.getComponent(0); for (Content content : contentManager.getContents()) { if (content.getComponent() == cmp) { boolean value = (Boolean) evt.getNewValue(); if (value) { if (lastSelected != null) { if (lastSelected.isDetached()) lastSelected.fireSelected(false); } lastSelected = (ContentUI) content; } ((ContentUI) content).fireSelected((Boolean) evt.getNewValue()); break; } } } } } }); desktopPane.add(internalFrame); internalFrame.show(); }
|
51282 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51282/2395710a25d5393598da6b723bbeecffbf6be9b5/MyDoggyDesktopContentManagerUI.java/buggy/mydoggy-plaf/src/main/java/org/noos/xing/mydoggy/plaf/ui/content/desktop/MyDoggyDesktopContentManagerUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
5370,
1290,
1350,
12,
1350,
913,
13,
288,
3639,
804,
3061,
3219,
2713,
3219,
273,
394,
10597,
11869,
1350,
3219,
12,
1745,
18,
588,
4247,
9334,
638,
16,
638,
16,
638,
16,
638,
1769,
3639,
2713,
3219,
18,
542,
3219,
5554,
12,
1745,
18,
588,
5554,
10663,
3639,
2713,
3219,
18,
588,
1350,
8485,
7675,
1289,
12,
1745,
18,
588,
1841,
10663,
3639,
509,
913,
60,
31,
3639,
509,
913,
61,
31,
3639,
913,
61,
273,
913,
60,
273,
1728,
397,
261,
1745,
1016,
9904,
380,
6969,
1769,
3639,
309,
261,
1745,
60,
405,
21304,
8485,
18,
588,
2384,
1435,
300,
890,
3462,
747,
913,
61,
405,
21304,
8485,
18,
588,
2686,
1435,
300,
4044,
13,
288,
5411,
913,
1016,
273,
374,
31,
5411,
913,
61,
273,
913,
60,
273,
1728,
31,
3639,
289,
3639,
2713,
3219,
18,
542,
5694,
12,
1745,
60,
16,
913,
61,
16,
890,
3462,
16,
4044,
1769,
3639,
2713,
3219,
18,
1289,
3061,
3219,
2223,
12,
2704,
3186,
3219,
4216,
1435,
288,
5411,
1071,
918,
2713,
3219,
7395,
12,
3061,
3219,
1133,
425,
13,
288,
7734,
913,
1318,
18,
4479,
1350,
12,
13491,
913,
1318,
18,
588,
1350,
12,
73,
18,
588,
3061,
3219,
7675,
588,
1350,
8485,
7675,
588,
1841,
12,
20,
3719,
7734,
11272,
5411,
289,
3639,
15549,
3639,
2713,
3219,
18,
1289,
1396,
15744,
12,
46,
3061,
3219,
18,
5127,
67,
4803,
2056,
67,
9900,
16,
394,
4276,
15744,
1435,
288,
5411,
1071,
918,
1272,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
5370,
1290,
1350,
12,
1350,
913,
13,
288,
3639,
804,
3061,
3219,
2713,
3219,
273,
394,
10597,
11869,
1350,
3219,
12,
1745,
18,
588,
4247,
9334,
638,
16,
638,
16,
638,
16,
638,
1769,
3639,
2713,
3219,
18,
542,
3219,
5554,
12,
1745,
18,
588,
5554,
10663,
3639,
2713,
3219,
18,
588,
1350,
8485,
7675,
1289,
12,
1745,
18,
588,
1841,
10663,
3639,
509,
913,
60,
31,
3639,
509,
913,
61,
31,
3639,
913,
61,
273,
913,
60,
273,
1728,
397,
261,
1745,
1016,
9904,
380,
6969,
1769,
3639,
309,
261,
1745,
60,
405,
21304,
8485,
18,
588,
2384,
1435,
300,
890,
3462,
747,
913,
61,
405,
21304,
8485,
18,
588,
2686,
1435,
300,
4044,
2
] |
log.error("error invoking check command", t);
|
log().error("error invoking check command", t);
|
private static void doCheckCommand() { Category log = ThreadCategory.getInstance(Manager.class); try { DatabaseChecker checker = new DatabaseChecker(); checker.check(); } catch (Throwable t) { log.error("error invoking check command", t); System.err.println(t); System.exit(1); } System.exit(0); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/ecd62ed236d13ba5e40cad90759a671d988ac804/Manager.java/clean/src/services/org/opennms/netmgt/vmmgr/Manager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
1564,
2189,
1435,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
1318,
18,
1106,
1769,
3639,
775,
288,
5411,
5130,
8847,
12489,
273,
394,
5130,
8847,
5621,
5411,
12489,
18,
1893,
5621,
3639,
289,
1044,
261,
15155,
268,
13,
288,
5411,
613,
7675,
1636,
2932,
1636,
15387,
866,
1296,
3113,
268,
1769,
5411,
2332,
18,
370,
18,
8222,
12,
88,
1769,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
3639,
2332,
18,
8593,
12,
20,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
1564,
2189,
1435,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
1318,
18,
1106,
1769,
3639,
775,
288,
5411,
5130,
8847,
12489,
273,
394,
5130,
8847,
5621,
5411,
12489,
18,
1893,
5621,
3639,
289,
1044,
261,
15155,
268,
13,
288,
5411,
613,
7675,
1636,
2932,
1636,
15387,
866,
1296,
3113,
268,
1769,
5411,
2332,
18,
370,
18,
8222,
12,
88,
1769,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
3639,
2332,
18,
8593,
12,
20,
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
] |
createdCellEditor = false;
|
createdCellEditor = true;
|
public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; cellEditor = createDefaultCellEditor(); createdCellEditor = false; TreeModel mod = tree.getModel(); setModel(mod); tree.setRootVisible(true); if (mod != null) tree.expandPath(new TreePath(mod.getRoot())); treeSelectionModel = tree.getSelectionModel(); installListeners(); installKeyboardActions(); completeUIInstall(); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ad9fe0128c253aaf223148f1f6216018924022e0/BasicTreeUI.java/buggy/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3799,
5370,
12,
46,
1841,
276,
13,
225,
288,
565,
2240,
18,
5425,
5370,
12,
71,
1769,
565,
3799,
7019,
12443,
46,
2471,
13,
276,
1769,
565,
2151,
273,
261,
46,
2471,
13,
276,
31,
3639,
783,
4020,
6747,
273,
27346,
4020,
6747,
5621,
565,
5690,
8485,
273,
752,
4020,
6747,
8485,
5621,
565,
2522,
6747,
273,
638,
31,
3639,
2484,
6946,
273,
27346,
4020,
6946,
5621,
565,
2522,
4020,
6946,
273,
638,
31,
3639,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
19027,
12,
1711,
1769,
565,
2151,
18,
542,
2375,
6207,
12,
3767,
1769,
565,
309,
261,
1711,
480,
446,
13,
1377,
2151,
18,
12320,
743,
12,
2704,
4902,
743,
12,
1711,
18,
588,
2375,
1435,
10019,
565,
2151,
6233,
1488,
273,
2151,
18,
588,
6233,
1488,
5621,
565,
3799,
5583,
5621,
565,
3799,
17872,
6100,
5621,
565,
3912,
5370,
6410,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3799,
5370,
12,
46,
1841,
276,
13,
225,
288,
565,
2240,
18,
5425,
5370,
12,
71,
1769,
565,
3799,
7019,
12443,
46,
2471,
13,
276,
1769,
565,
2151,
273,
261,
46,
2471,
13,
276,
31,
3639,
783,
4020,
6747,
273,
27346,
4020,
6747,
5621,
565,
5690,
8485,
273,
752,
4020,
6747,
8485,
5621,
565,
2522,
6747,
273,
638,
31,
3639,
2484,
6946,
273,
27346,
4020,
6946,
5621,
565,
2522,
4020,
6946,
273,
638,
31,
3639,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
19027,
12,
1711,
1769,
565,
2151,
18,
542,
2375,
6207,
12,
3767,
1769,
565,
309,
261,
1711,
480,
446,
13,
1377,
2151,
18,
12320,
743,
12,
2704,
4902,
743,
12,
1711,
2
] |
assertTrue("Should have an expectation", myExpectation.hasExpectations()); }
|
assertTrue("Should have an expectation", myExpectation.hasExpectations()); }
|
public void testExpectNothing() { myExpectation.setExpectNothing(); assertTrue("Should have an expectation", myExpectation.hasExpectations()); }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationSegmentTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationSegmentTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11988,
23814,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
11988,
23814,
5621,
202,
202,
11231,
5510,
2932,
14309,
1240,
392,
17733,
3113,
3399,
11988,
367,
18,
5332,
11988,
1012,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11988,
23814,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
11988,
23814,
5621,
202,
202,
11231,
5510,
2932,
14309,
1240,
392,
17733,
3113,
3399,
11988,
367,
18,
5332,
11988,
1012,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return RubyBoolean.newBoolean(runtime, Modifier.isPublic(javaClass.getModifiers()));
|
return getRuntime().newBoolean(Modifier.isPublic(javaClass.getModifiers()));
|
public RubyBoolean public_p() { return RubyBoolean.newBoolean(runtime, Modifier.isPublic(javaClass.getModifiers())); }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
1071,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
9829,
18,
291,
4782,
12,
6290,
797,
18,
588,
11948,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
1071,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
9829,
18,
291,
4782,
12,
6290,
797,
18,
588,
11948,
1435,
10019,
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
] |
NumberExpander.expandLetters(romanString, wordRelation);
|
NumberExpander.expandLetters(romanString, wordRelation,tokenItem);
|
private void romanToWords(WordRelation wordRelation, Item tokenItem, String romanString) { String punctuation = (String) tokenItem.findFeature("p.punc"); if (punctuation.equals("")) { /* no preceeding punctuation */ String n = String.valueOf(NumberExpander.expandRoman(romanString)); if (kingLike(tokenItem)) { wordRelation.addWord(tokenItem, "the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } }
|
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/460d07833503253a5c476790f8921bd1e3c702a9/TokenToWords.java/clean/java/de/dfki/lt/mary/modules/en/TokenToWords.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
24137,
304,
774,
7363,
12,
3944,
3963,
2076,
3963,
16,
4342,
1147,
1180,
16,
514,
24137,
304,
780,
13,
288,
3639,
514,
22472,
273,
261,
780,
13,
1147,
1180,
18,
4720,
4595,
2932,
84,
18,
84,
551,
8863,
3639,
309,
261,
84,
15726,
18,
14963,
2932,
6,
3719,
288,
5411,
1748,
1158,
675,
5288,
310,
22472,
1195,
5411,
514,
290,
273,
514,
18,
1132,
951,
12,
1854,
12271,
264,
18,
12320,
54,
362,
304,
12,
520,
304,
780,
10019,
5411,
309,
261,
79,
310,
8804,
12,
2316,
1180,
3719,
288,
7734,
2076,
3963,
18,
1289,
3944,
12,
2316,
1180,
16,
315,
5787,
8863,
7734,
3588,
12271,
264,
18,
12320,
22830,
12,
82,
16,
2076,
3963,
1769,
5411,
289,
469,
309,
261,
3464,
8804,
12,
2316,
1180,
3719,
288,
7734,
3588,
12271,
264,
18,
12320,
1854,
12,
82,
16,
2076,
3963,
1769,
5411,
289,
469,
288,
7734,
3588,
12271,
264,
18,
12320,
24181,
5432,
12,
520,
304,
780,
16,
2076,
3963,
16,
2316,
1180,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
3588,
12271,
264,
18,
12320,
24181,
5432,
12,
520,
304,
780,
16,
2076,
3963,
16,
2316,
1180,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
24137,
304,
774,
7363,
12,
3944,
3963,
2076,
3963,
16,
4342,
1147,
1180,
16,
514,
24137,
304,
780,
13,
288,
3639,
514,
22472,
273,
261,
780,
13,
1147,
1180,
18,
4720,
4595,
2932,
84,
18,
84,
551,
8863,
3639,
309,
261,
84,
15726,
18,
14963,
2932,
6,
3719,
288,
5411,
1748,
1158,
675,
5288,
310,
22472,
1195,
5411,
514,
290,
273,
514,
18,
1132,
951,
12,
1854,
12271,
264,
18,
12320,
54,
362,
304,
12,
520,
304,
780,
10019,
5411,
309,
261,
79,
310,
8804,
12,
2316,
1180,
3719,
288,
7734,
2076,
3963,
18,
1289,
3944,
12,
2316,
1180,
16,
315,
5787,
8863,
7734,
3588,
12271,
264,
18,
12320,
22830,
12,
82,
16,
2076,
3963,
1769,
2
] |
Node componentNode = (Node) components.get(name); if (componentNode == null) { throw new ConfigError("Component not found"); }
|
Node componentNode = (Node) components.get(name); if (componentNode == null) { throw new ConfigError("Component not found"); }
|
private int addXMLComponentFields(Document document, Node node, String msgtype, DataDictionary dd, boolean componentRequired) throws ConfigError { int firstField = 0; String name = getAttribute(node, "name"); if (name == null) { throw new ConfigError("No name given to component"); } Node componentNode = (Node) components.get(name); if (componentNode == null) { throw new ConfigError("Component not found"); } NodeList componentFieldNodes = componentNode.getChildNodes(); for (int i = 0; i < componentFieldNodes.getLength(); i++) { Node componentFieldNode = componentFieldNodes.item(i); if (componentFieldNode.getNodeName().equals("field") || componentFieldNode.getNodeName().equals("group")) { name = getAttribute(componentFieldNode, "name"); if (name == null) { throw new ConfigError("No name given to field"); } int field = lookupXMLFieldNumber(document, name); if (firstField == 0) { firstField = field; } String required = getAttribute(componentFieldNode, "required"); if (required.equalsIgnoreCase("Y") && componentRequired) { addRequiredField(msgtype, field); } dd.addField(field); dd.addMsgField(msgtype, field); } if (componentFieldNode.getNodeName().equals("group")) { String required = getAttribute(componentFieldNode, "required"); boolean isRequired = required.equalsIgnoreCase("Y"); addXMLGroup(document, componentFieldNode, msgtype, dd, isRequired); } } return firstField; }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/f89d9cc48710a8f8d3611f93c5b99eae17788636/DataDictionary.java/buggy/src/quickfix/DataDictionary.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
527,
4201,
1841,
2314,
12,
2519,
1668,
16,
2029,
756,
16,
1082,
202,
780,
1234,
723,
16,
1910,
10905,
6957,
16,
1250,
1794,
3705,
13,
1082,
202,
15069,
1903,
668,
288,
202,
202,
474,
1122,
974,
273,
374,
31,
202,
202,
780,
508,
273,
4061,
12,
2159,
16,
315,
529,
8863,
202,
202,
430,
261,
529,
422,
446,
13,
288,
1082,
202,
12849,
394,
1903,
668,
2932,
2279,
508,
864,
358,
1794,
8863,
202,
202,
97,
202,
202,
907,
1794,
907,
273,
261,
907,
13,
4085,
18,
588,
12,
529,
1769,
202,
202,
430,
261,
4652,
907,
422,
446,
13,
288,
1082,
202,
12849,
394,
1903,
668,
2932,
1841,
486,
1392,
8863,
202,
202,
97,
202,
202,
19914,
1794,
974,
3205,
273,
1794,
907,
18,
588,
22460,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1794,
974,
3205,
18,
588,
1782,
5621,
277,
27245,
288,
1082,
202,
907,
1794,
974,
907,
273,
1794,
974,
3205,
18,
1726,
12,
77,
1769,
1082,
202,
430,
261,
4652,
974,
907,
18,
588,
18948,
7675,
14963,
2932,
1518,
7923,
6862,
202,
20081,
1794,
974,
907,
18,
588,
18948,
7675,
14963,
2932,
1655,
6,
3719,
288,
9506,
202,
529,
273,
4061,
12,
4652,
974,
907,
16,
315,
529,
8863,
9506,
202,
430,
261,
529,
422,
446,
13,
288,
6862,
202,
12849,
394,
1903,
668,
2932,
2279,
508,
864,
358,
652,
8863,
9506,
202,
97,
9506,
202,
474,
652,
273,
3689,
4201,
974,
1854,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
527,
4201,
1841,
2314,
12,
2519,
1668,
16,
2029,
756,
16,
1082,
202,
780,
1234,
723,
16,
1910,
10905,
6957,
16,
1250,
1794,
3705,
13,
1082,
202,
15069,
1903,
668,
288,
202,
202,
474,
1122,
974,
273,
374,
31,
202,
202,
780,
508,
273,
4061,
12,
2159,
16,
315,
529,
8863,
202,
202,
430,
261,
529,
422,
446,
13,
288,
1082,
202,
12849,
394,
1903,
668,
2932,
2279,
508,
864,
358,
1794,
8863,
202,
202,
97,
202,
202,
907,
1794,
907,
273,
261,
907,
13,
4085,
18,
588,
12,
529,
1769,
202,
202,
430,
261,
4652,
907,
422,
446,
13,
288,
1082,
202,
12849,
394,
1903,
668,
2932,
1841,
486,
1392,
8863,
202,
202,
97,
2
] |
public static void clearMark(ObjectReference object) throws InlinePragma {
|
public static void clearMark(ObjectReference object) throws InlinePragma {
|
public static void clearMark(ObjectReference object) throws InlinePragma { Word oldValue = ObjectModel.readAvailableBitsWord(object); ObjectModel.writeAvailableBitsWord(object, oldValue.and(GC_MARK_BIT_MASK.not())); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/MarkCompactSpace.java/clean/MMTk/src/org/mmtk/policy/MarkCompactSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2424,
3882,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
273,
1033,
1488,
18,
896,
5268,
6495,
3944,
12,
1612,
1769,
565,
1033,
1488,
18,
2626,
5268,
6495,
3944,
12,
1612,
16,
11144,
18,
464,
12,
15396,
67,
12693,
67,
15650,
67,
11704,
18,
902,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2424,
3882,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
273,
1033,
1488,
18,
896,
5268,
6495,
3944,
12,
1612,
1769,
565,
1033,
1488,
18,
2626,
5268,
6495,
3944,
12,
1612,
16,
11144,
18,
464,
12,
15396,
67,
12693,
67,
15650,
67,
11704,
18,
902,
1435,
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
] |
textAnimPal = titleScreens[1].getAnimPalette(i);
|
textAnimPal = titleScreens[1].getAnimPalette(frame); System.arraycopy(textAnimPal, 0, out, 128, TitleScreen .getAnimPaletteSize());
|
public static Color[] getAnimatedPalette(int num, int i) { if (i >= 0 && i < TitleScreen.NUM_CHAR_ANIM_PALETTES + TitleScreen.NUM_ANIM_PALETTES) { if (num == 0) { /* * Overwrite the "normal" colors with the correct animated * palettes. */ Color[] textAnimPal, out; if (i < TitleScreen.NUM_CHAR_ANIM_PALETTES) { out = new Color[titleScreens[0].getSubPaletteSize()]; for (int j = 0; j < out.length; j++) { out[j] = new Color(0, 0, 0); } textAnimPal = titleScreens[1].getAnimPalette(i); } else { out = titleScreens[num].getSubPal(0); textAnimPal = titleScreens[1] .getAnimPalette(TitleScreen.NUM_CHAR_ANIM_PALETTES - 1); Color[] highlightAnimPal = titleScreens[0].getAnimPalette(i - TitleScreen.NUM_CHAR_ANIM_PALETTES); System.arraycopy(highlightAnimPal, 0, out, 112, TitleScreen .getAnimPaletteSize()); } System.arraycopy(textAnimPal, 0, out, 128, TitleScreen .getAnimPaletteSize()); return out; } else { return titleScreens[num].getAnimPalette(Math.min(i, TitleScreen.NUM_CHAR_ANIM_PALETTES - 1)); } } /* * Else: A animated palette was not selected. The original Color[] is * fine. */ return titleScreens[num].getSubPal(0); }
|
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/0c3b7d0a635e2cacac816f95bc178d80232d0584/TitleScreenEditor.java/clean/src/net/starmen/pkhack/eb/TitleScreenEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5563,
8526,
336,
979,
17275,
25863,
12,
474,
818,
16,
509,
277,
13,
565,
288,
3639,
309,
261,
77,
1545,
374,
5411,
597,
277,
411,
10984,
7956,
18,
6069,
67,
7305,
67,
1258,
3445,
67,
4066,
15146,
7296,
7734,
397,
10984,
7956,
18,
6069,
67,
1258,
3445,
67,
4066,
15146,
7296,
13,
3639,
288,
5411,
309,
261,
2107,
422,
374,
13,
5411,
288,
7734,
1748,
1171,
380,
29747,
326,
315,
6130,
6,
5740,
598,
326,
3434,
29990,
1171,
380,
25995,
278,
1078,
18,
1171,
1195,
7734,
5563,
8526,
977,
20892,
14320,
16,
596,
31,
7734,
309,
261,
77,
411,
10984,
7956,
18,
6069,
67,
7305,
67,
1258,
3445,
67,
4066,
15146,
7296,
13,
7734,
288,
10792,
596,
273,
394,
5563,
63,
2649,
1541,
266,
773,
63,
20,
8009,
588,
1676,
25863,
1225,
1435,
15533,
10792,
364,
261,
474,
525,
273,
374,
31,
525,
411,
596,
18,
2469,
31,
525,
27245,
10792,
288,
13491,
596,
63,
78,
65,
273,
394,
5563,
12,
20,
16,
374,
16,
374,
1769,
10792,
289,
10792,
977,
20892,
14320,
273,
2077,
1541,
266,
773,
63,
21,
8009,
588,
20892,
25863,
12,
3789,
1769,
2332,
18,
1126,
3530,
12,
955,
20892,
14320,
16,
374,
16,
596,
16,
8038,
16,
10984,
7956,
263,
588,
20892,
25863,
1225,
10663,
7734,
289,
7734,
469,
7734,
288,
10792,
596,
273,
2077,
1541,
266,
773,
63,
2107,
8009,
588,
1676,
14320,
12,
20,
1769,
10792,
977,
20892,
14320,
273,
2077,
1541,
266,
773,
63,
21,
65,
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,
5563,
8526,
336,
979,
17275,
25863,
12,
474,
818,
16,
509,
277,
13,
565,
288,
3639,
309,
261,
77,
1545,
374,
5411,
597,
277,
411,
10984,
7956,
18,
6069,
67,
7305,
67,
1258,
3445,
67,
4066,
15146,
7296,
7734,
397,
10984,
7956,
18,
6069,
67,
1258,
3445,
67,
4066,
15146,
7296,
13,
3639,
288,
5411,
309,
261,
2107,
422,
374,
13,
5411,
288,
7734,
1748,
1171,
380,
29747,
326,
315,
6130,
6,
5740,
598,
326,
3434,
29990,
1171,
380,
25995,
278,
1078,
18,
1171,
1195,
7734,
5563,
8526,
977,
20892,
14320,
16,
596,
31,
7734,
309,
261,
77,
411,
10984,
7956,
18,
6069,
67,
7305,
67,
1258,
3445,
67,
4066,
15146,
7296,
13,
7734,
288,
10792,
2
] |
setupLex(Parser.PARENCLOSE);
|
setupLex(Parser.BRACECLOSE);
|
public void testMethodThrowingTwoExceptions() throws Exception { // setup values setupLex(Parser.CLASS); setupLex(Parser.IDENTIFIER, "MyClass"); setupLex(Parser.PARENOPEN); setupLex(Parser.IDENTIFIER, "void"); setupLex(Parser.IDENTIFIER, "doSomething"); setupLex(Parser.BRACKETOPEN); setupLex(Parser.BRACKETCLOSE); setupLex(Parser.THROWS); setupLex(Parser.IDENTIFIER, "IOException"); setupLex(Parser.COMMA); setupLex(Parser.IDENTIFIER, "MyException"); setupLex(Parser.CODEBLOCK); setupLex(Parser.PARENCLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; mth.exceptions.add("IOException"); mth.exceptions.add("MyException"); builder.addExpectedAddMethodValues(mth); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
|
2045 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2045/fd346fe372b0364733fc6120d6524638208a5181/ParserTest.java/clean/qdox/src/test/com/thoughtworks/qdox/parser/ParserTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1305,
8282,
310,
11710,
11416,
1435,
1216,
1185,
288,
202,
202,
759,
3875,
924,
202,
202,
8401,
14756,
12,
2678,
18,
5237,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
12062,
797,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
11713,
3417,
52,
1157,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
6459,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
2896,
24332,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
21217,
11437,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
21217,
13384,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
2455,
28402,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
14106,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
4208,
5535,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
12062,
503,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
5572,
11403,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
11713,
10346,
9320,
1769,
202,
202,
8401,
14756,
12,
20,
1769,
202,
202,
759,
26305,
202,
202,
1305,
3262,
312,
451,
273,
394,
2985,
3262,
5621,
202,
202,
81,
451,
18,
529,
273,
315,
2896,
24332,
14432,
202,
202,
81,
451,
18,
6154,
273,
315,
6459,
14432,
202,
202,
81,
451,
18,
11855,
18,
1289,
2932,
14106,
8863,
202,
202,
81,
451,
18,
11855,
18,
1289,
2932,
12062,
503,
8863,
202,
202,
9574,
18,
1289,
6861,
986,
1305,
1972,
12,
81,
451,
1769,
202,
202,
759,
1836,
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,
1305,
8282,
310,
11710,
11416,
1435,
1216,
1185,
288,
202,
202,
759,
3875,
924,
202,
202,
8401,
14756,
12,
2678,
18,
5237,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
12062,
797,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
11713,
3417,
52,
1157,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
6459,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
2896,
24332,
8863,
202,
202,
8401,
14756,
12,
2678,
18,
21217,
11437,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
21217,
13384,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
2455,
28402,
1769,
202,
202,
8401,
14756,
12,
2678,
18,
16606,
16,
315,
14106,
2
] |
public String getNewURL() {
|
public SVNURL getNewURL() {
|
public String getNewURL() { return myNewExternalURL; }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/28381179e464d7990498164d52693487f9dddb79/SVNExternalInfo.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNExternalInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
1785,
12654,
1785,
1435,
288,
3639,
327,
3399,
1908,
6841,
1785,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
1785,
12654,
1785,
1435,
288,
3639,
327,
3399,
1908,
6841,
1785,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int offset = 0; int c = -1; int newlines = 0;
|
public boolean scanData(String delimiter, XMLStringBuffer buffer) throws IOException { boolean done = false; int delimLen = delimiter.length(); char charAt0 = delimiter.charAt(0); int offset = 0; int c = -1; int newlines = 0; boolean external = fCurrentEntity.isExternal(); do { if (DEBUG_BUFFER) { System.out.print("(scanData: "); print(); System.out.println(); } // load more characters, if needed if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } else if (fCurrentEntity.position >= fCurrentEntity.count - delimLen) { System.arraycopy(fCurrentEntity.ch, fCurrentEntity.position, fCurrentEntity.ch, 0, fCurrentEntity.count - fCurrentEntity.position); load(fCurrentEntity.count - fCurrentEntity.position, false); fCurrentEntity.position = 0; } if (fCurrentEntity.position >= fCurrentEntity.count - delimLen) { // something must be wrong with the input: e.g., file ends an unterminated comment int length = fCurrentEntity.count - fCurrentEntity.position; buffer.append (fCurrentEntity.ch, fCurrentEntity.position, length); fCurrentEntity.columnNumber += fCurrentEntity.count; fCurrentEntity.position = fCurrentEntity.count; load(0,true); return false; } // normalize newlines offset = fCurrentEntity.position; c = fCurrentEntity.ch[offset]; newlines = 0; if (c == '\n' || (c == '\r' && external)) { if (DEBUG_BUFFER) { System.out.print("[newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } do { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == '\r' && external) { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; if (load(newlines, false)) { break; } } if (fCurrentEntity.ch[fCurrentEntity.position] == '\n') { fCurrentEntity.position++; offset++; } /*** NEWLINE NORMALIZATION ***/ else { newlines++; } } else if (c == '\n') { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; fCurrentEntity.count = newlines; if (load(newlines, false)) { break; } } } else { fCurrentEntity.position--; break; } } while (fCurrentEntity.position < fCurrentEntity.count - 1); for (int i = offset; i < fCurrentEntity.position; i++) { fCurrentEntity.ch[i] = '\n'; } int length = fCurrentEntity.position - offset; if (fCurrentEntity.position == fCurrentEntity.count - 1) { buffer.append(fCurrentEntity.ch, offset, length); if (DEBUG_BUFFER) { System.out.print("]newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } return true; } if (DEBUG_BUFFER) { System.out.print("]newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } } // iterate over buffer looking for delimiter OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { // looks like we just hit the delimiter int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER; } c = fCurrentEntity.ch[fCurrentEntity.position++]; if (delimiter.charAt(i) != c) { fCurrentEntity.position--; break; } } if (fCurrentEntity.position == delimOffset + delimLen) { done = true; break; } } else if (c == '\n' || (external && c == '\r')) { fCurrentEntity.position--; break; } else if (XMLChar.isInvalid(c)) { fCurrentEntity.position--; int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; buffer.append(fCurrentEntity.ch, offset, length); return true; } } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; if (done) { length -= delimLen; } buffer.append (fCurrentEntity.ch, offset, length); // return true if string was skipped if (DEBUG_BUFFER) { System.out.print(")scanData: "); print(); System.out.println(" -> " + done); } } while (!done); return !done; } // scanData(String,XMLString)
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/55e61cb970d3185f57b952da1966e726977ca26a/XMLEntityManager.java/buggy/src/org/apache/xerces/impl/XMLEntityManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
4135,
751,
12,
780,
5654,
16,
3167,
780,
1892,
1613,
13,
5411,
1216,
1860,
288,
5411,
1250,
2731,
273,
629,
31,
5411,
509,
10508,
2891,
273,
5654,
18,
2469,
5621,
5411,
1149,
4459,
20,
273,
5654,
18,
3001,
861,
12,
20,
1769,
5411,
509,
1384,
273,
374,
31,
5411,
509,
276,
273,
300,
21,
31,
5411,
509,
19181,
273,
374,
31,
5411,
1250,
3903,
273,
284,
3935,
1943,
18,
291,
6841,
5621,
5411,
741,
288,
7734,
309,
261,
9394,
67,
11302,
13,
288,
10792,
2332,
18,
659,
18,
1188,
2932,
12,
9871,
751,
30,
315,
1769,
10792,
1172,
5621,
10792,
2332,
18,
659,
18,
8222,
5621,
7734,
289,
10792,
368,
1262,
1898,
3949,
16,
309,
3577,
10792,
309,
261,
74,
3935,
1943,
18,
3276,
422,
284,
3935,
1943,
18,
1883,
13,
288,
10792,
1262,
12,
20,
16,
638,
1769,
7734,
289,
7734,
469,
309,
261,
74,
3935,
1943,
18,
3276,
1545,
284,
3935,
1943,
18,
1883,
300,
10508,
2891,
13,
288,
10792,
2332,
18,
1126,
3530,
12,
74,
3935,
1943,
18,
343,
16,
284,
3935,
1943,
18,
3276,
16,
19694,
284,
3935,
1943,
18,
343,
16,
374,
16,
284,
3935,
1943,
18,
1883,
300,
284,
3935,
1943,
18,
3276,
1769,
10792,
1262,
12,
74,
3935,
1943,
18,
1883,
300,
284,
3935,
1943,
18,
3276,
16,
629,
1769,
10792,
284,
3935,
1943,
18,
3276,
273,
374,
31,
7734,
289,
1171,
309,
261,
74,
3935,
1943,
18,
3276,
1545,
284,
3935,
1943,
18,
1883,
300,
10508,
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,
751,
12,
780,
5654,
16,
3167,
780,
1892,
1613,
13,
5411,
1216,
1860,
288,
5411,
1250,
2731,
273,
629,
31,
5411,
509,
10508,
2891,
273,
5654,
18,
2469,
5621,
5411,
1149,
4459,
20,
273,
5654,
18,
3001,
861,
12,
20,
1769,
5411,
509,
1384,
273,
374,
31,
5411,
509,
276,
273,
300,
21,
31,
5411,
509,
19181,
273,
374,
31,
5411,
1250,
3903,
273,
284,
3935,
1943,
18,
291,
6841,
5621,
5411,
741,
288,
7734,
309,
261,
9394,
67,
11302,
13,
288,
10792,
2332,
18,
659,
18,
1188,
2932,
12,
9871,
751,
30,
315,
1769,
10792,
1172,
5621,
10792,
2332,
18,
659,
18,
8222,
5621,
7734,
289,
10792,
368,
1262,
1898,
3949,
16,
309,
3577,
2
] |
|
Isotope isotope = new Isotope(currentElement);
|
Isotope isotope = builder.newIsotope(currentElement);
|
private Isotope createIsotopeOfElement(String currentElement, Attributes atts) { Isotope isotope = new Isotope(currentElement); for (int i = 0; i < atts.getLength(); i++) { try { if ("id".equals(atts.getQName(i))) { isotope.setID(atts.getValue(i)); } else if ("isotopeNumber".equals(atts.getQName(i))) { isotope.setMassNumber(Integer.parseInt(atts.getValue(i))); } else if ("elementType".equals(atts.getQName(i))) { isotope.setSymbol(atts.getValue(i)); } } catch (NumberFormatException exception) { logger.error("Value of isotope@", atts.getQName(i), " is not as expected."); logger.debug(exception); } } return isotope; }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/99fe3519d35ad1fd276844ab16fa237c545a01fc/IsotopeHandler.java/clean/src/org/openscience/cdk/config/isotopes/IsotopeHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2585,
18946,
752,
2520,
18946,
951,
1046,
12,
780,
22993,
16,
9055,
15687,
13,
288,
3639,
2585,
18946,
27835,
273,
2089,
18,
2704,
2520,
18946,
12,
2972,
1046,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15687,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
775,
288,
7734,
309,
7566,
350,
9654,
14963,
12,
270,
3428,
18,
588,
13688,
12,
77,
20349,
288,
10792,
27835,
18,
542,
734,
12,
270,
3428,
18,
24805,
12,
77,
10019,
7734,
289,
469,
309,
7566,
17693,
1306,
1854,
9654,
14963,
12,
270,
3428,
18,
588,
13688,
12,
77,
20349,
288,
10792,
27835,
18,
542,
18060,
1854,
12,
4522,
18,
2670,
1702,
12,
270,
3428,
18,
24805,
12,
77,
3719,
1769,
7734,
289,
469,
309,
7566,
2956,
559,
9654,
14963,
12,
270,
3428,
18,
588,
13688,
12,
77,
20349,
288,
10792,
27835,
18,
542,
5335,
12,
270,
3428,
18,
24805,
12,
77,
10019,
7734,
289,
5411,
289,
1044,
261,
1854,
9291,
1520,
13,
288,
7734,
1194,
18,
1636,
2932,
620,
434,
27835,
36,
3113,
15687,
18,
588,
13688,
12,
77,
3631,
315,
353,
486,
487,
2665,
1199,
1769,
7734,
1194,
18,
4148,
12,
4064,
1769,
5411,
289,
3639,
289,
3639,
327,
27835,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2585,
18946,
752,
2520,
18946,
951,
1046,
12,
780,
22993,
16,
9055,
15687,
13,
288,
3639,
2585,
18946,
27835,
273,
2089,
18,
2704,
2520,
18946,
12,
2972,
1046,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15687,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
775,
288,
7734,
309,
7566,
350,
9654,
14963,
12,
270,
3428,
18,
588,
13688,
12,
77,
20349,
288,
10792,
27835,
18,
542,
734,
12,
270,
3428,
18,
24805,
12,
77,
10019,
7734,
289,
469,
309,
7566,
17693,
1306,
1854,
9654,
14963,
12,
270,
3428,
18,
588,
13688,
12,
77,
20349,
288,
10792,
27835,
18,
542,
18060,
1854,
12,
4522,
18,
2670,
1702,
12,
270,
3428,
18,
24805,
12,
77,
2
] |
final ReteTuple tuple = (ReteTuple) this.memory.getTupleMemory().iterator( ).next(); assertEquals( tuple0, tuple ); assertEquals( tuple1, tuple.getNext() );
|
assertTrue( this.memory.getTupleMemory().contains( tuple0 )); assertTrue( this.memory.getTupleMemory().contains( tuple1 ));
|
public void testAssertTuple() { final DefaultFactHandle f0 = (DefaultFactHandle) this.workingMemory.getFactHandleFactory().newFactHandle( "cheese" ); final ReteTuple tuple0 = new ReteTuple( f0 ); // assert tuple, should add one to left memory this.node.assertTuple( tuple0, this.context, this.workingMemory ); // check memories assertEquals( 1, this.memory.getTupleMemory().size() ); assertEquals( 0, this.memory.getFactHandleMemory().size() ); Assert.assertTrue( "An empty collection should be propagated", ((Collection) ((DefaultFactHandle) ((Tuple) ((Object[]) this.sink.getAsserted().get( 0 ))[0]).get( 1 )).getObject()).isEmpty() ); // assert tuple, should add left memory final DefaultFactHandle f1 = (DefaultFactHandle) this.workingMemory.getFactHandleFactory().newFactHandle( "other cheese" ); final ReteTuple tuple1 = new ReteTuple( f1 ); this.node.assertTuple( tuple1, this.context, this.workingMemory ); assertEquals( 2, this.memory.getTupleMemory().size() ); Assert.assertTrue( "An empty collection should be propagated", ((Collection) ((DefaultFactHandle) ((Tuple) ((Object[]) this.sink.getAsserted().get( 1 ))[0]).get( 1 )).getObject()).isEmpty() ); final ReteTuple tuple = (ReteTuple) this.memory.getTupleMemory().iterator( ).next(); assertEquals( tuple0, tuple ); assertEquals( tuple1, tuple.getNext() ); Assert.assertEquals( "Two tuples should have been propagated", 2, this.sink.getAsserted().size() ); }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/bb3b37a32ee8885caf989363d622839eccaf39d1/CollectNodeTest.java/buggy/drools-core/src/test/java/org/drools/reteoo/CollectNodeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8213,
9038,
1435,
288,
3639,
727,
2989,
9766,
3259,
284,
20,
273,
261,
1868,
9766,
3259,
13,
333,
18,
20478,
6031,
18,
588,
9766,
3259,
1733,
7675,
2704,
9766,
3259,
12,
315,
18706,
3392,
6,
11272,
3639,
727,
534,
12865,
9038,
3193,
20,
273,
394,
534,
12865,
9038,
12,
284,
20,
11272,
3639,
368,
1815,
3193,
16,
1410,
527,
1245,
358,
2002,
3778,
3639,
333,
18,
2159,
18,
11231,
9038,
12,
3193,
20,
16,
1171,
9079,
333,
18,
2472,
16,
1171,
9079,
333,
18,
20478,
6031,
11272,
3639,
368,
866,
1663,
2401,
540,
1815,
8867,
12,
404,
16,
8227,
333,
18,
7858,
18,
588,
9038,
6031,
7675,
1467,
1435,
11272,
3639,
1815,
8867,
12,
374,
16,
8227,
333,
18,
7858,
18,
588,
9766,
3259,
6031,
7675,
1467,
1435,
11272,
3639,
5452,
18,
11231,
5510,
12,
315,
979,
1008,
1849,
1410,
506,
29786,
3113,
21821,
14015,
2532,
13,
14015,
1868,
9766,
3259,
13,
14015,
9038,
13,
14015,
921,
63,
5717,
333,
18,
17074,
18,
588,
8213,
329,
7675,
588,
12,
374,
8623,
63,
20,
65,
2934,
588,
12,
404,
262,
2934,
588,
921,
1435,
2934,
291,
1921,
1435,
11272,
3639,
368,
1815,
3193,
16,
1410,
527,
2002,
3778,
540,
727,
2989,
9766,
3259,
284,
21,
273,
261,
1868,
9766,
3259,
13,
333,
18,
20478,
6031,
18,
588,
9766,
3259,
1733,
7675,
2704,
9766,
3259,
12,
315,
3011,
19315,
3392,
6,
11272,
3639,
727,
534,
12865,
9038,
3193,
21,
273,
394,
534,
12865,
9038,
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,
918,
1842,
8213,
9038,
1435,
288,
3639,
727,
2989,
9766,
3259,
284,
20,
273,
261,
1868,
9766,
3259,
13,
333,
18,
20478,
6031,
18,
588,
9766,
3259,
1733,
7675,
2704,
9766,
3259,
12,
315,
18706,
3392,
6,
11272,
3639,
727,
534,
12865,
9038,
3193,
20,
273,
394,
534,
12865,
9038,
12,
284,
20,
11272,
3639,
368,
1815,
3193,
16,
1410,
527,
1245,
358,
2002,
3778,
3639,
333,
18,
2159,
18,
11231,
9038,
12,
3193,
20,
16,
1171,
9079,
333,
18,
2472,
16,
1171,
9079,
333,
18,
20478,
6031,
11272,
3639,
368,
866,
1663,
2401,
540,
1815,
8867,
12,
404,
16,
8227,
333,
18,
7858,
18,
588,
9038,
6031,
7675,
1467,
1435,
11272,
3639,
1815,
8867,
12,
374,
2
] |
if (!initializer.hasModifierProperty(PsiModifier.STATIC)) {
|
if(!initializer.hasModifierProperty(PsiModifier.STATIC)){
|
public void visitClassInitializer(PsiClassInitializer initializer) { boolean wasInConstructor = false; if (!initializer.hasModifierProperty(PsiModifier.STATIC)) { inConstruction = true; wasInConstructor = inConstruction; } super.visitClassInitializer(initializer); if (!initializer.hasModifierProperty(PsiModifier.STATIC)) { inConstruction = wasInConstructor; } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ThreadStartInConstructionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/threading/ThreadStartInConstructionInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
14729,
12,
52,
7722,
797,
14729,
12562,
13,
288,
5411,
1250,
1703,
382,
6293,
273,
629,
31,
5411,
309,
12,
5,
22181,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
95,
7734,
316,
25485,
273,
638,
31,
7734,
1703,
382,
6293,
273,
316,
25485,
31,
5411,
289,
5411,
2240,
18,
11658,
797,
14729,
12,
22181,
1769,
5411,
309,
12,
5,
22181,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
95,
7734,
316,
25485,
273,
1703,
382,
6293,
31,
5411,
289,
3639,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
14729,
12,
52,
7722,
797,
14729,
12562,
13,
288,
5411,
1250,
1703,
382,
6293,
273,
629,
31,
5411,
309,
12,
5,
22181,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
95,
7734,
316,
25485,
273,
638,
31,
7734,
1703,
382,
6293,
273,
316,
25485,
31,
5411,
289,
5411,
2240,
18,
11658,
797,
14729,
12,
22181,
1769,
5411,
309,
12,
5,
22181,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
95,
7734,
316,
25485,
273,
1703,
382,
6293,
31,
5411,
289,
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
] |
} else if (option.equals("add")) {
|
} else {
|
public void setCr(String option) { if (option.equals("remove")) { addcr = -1; } else if (option.equals("asis")) { addcr = 0; } else if (option.equals("add")) { addcr = +1; } else { throw new BuildException("Invalid option: " + option ); } }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/084609e5ef285ee28ab65f11f0ec423a1526f1d6/FixCRLF.java/clean/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11440,
86,
12,
780,
1456,
13,
288,
3639,
309,
261,
3482,
18,
14963,
2932,
4479,
6,
3719,
288,
5411,
527,
3353,
273,
300,
21,
31,
3639,
289,
469,
309,
261,
3482,
18,
14963,
2932,
17247,
6,
3719,
288,
5411,
527,
3353,
273,
374,
31,
3639,
289,
469,
288,
2398,
527,
3353,
273,
397,
21,
31,
3639,
289,
469,
288,
5411,
604,
394,
18463,
2932,
1941,
1456,
30,
315,
397,
1456,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11440,
86,
12,
780,
1456,
13,
288,
3639,
309,
261,
3482,
18,
14963,
2932,
4479,
6,
3719,
288,
5411,
527,
3353,
273,
300,
21,
31,
3639,
289,
469,
309,
261,
3482,
18,
14963,
2932,
17247,
6,
3719,
288,
5411,
527,
3353,
273,
374,
31,
3639,
289,
469,
288,
2398,
527,
3353,
273,
397,
21,
31,
3639,
289,
469,
288,
5411,
604,
394,
18463,
2932,
1941,
1456,
30,
315,
397,
1456,
11272,
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
] |
private void addContainerReference(String propName, String containerRef, Object object, boolean required) { containerReferences.add(new ContainerReference(propName, containerRef, object, required));
|
private void addContainerReference(String propName, String containerRef, Object object, boolean required, String container) { containerReferences.add(new ContainerReference(propName, containerRef, object, required, container));
|
private void addContainerReference(String propName, String containerRef, Object object, boolean required) { containerReferences.add(new ContainerReference(propName, containerRef, object, required)); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/eacac824b36b602137ce5d1d4e6dff563ab730f0/MuleXmlConfigurationBuilder.java/clean/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
2170,
2404,
12,
780,
9994,
16,
514,
1478,
1957,
16,
1033,
733,
16,
1250,
1931,
13,
288,
3639,
1478,
8221,
18,
1289,
12,
2704,
4039,
2404,
12,
5986,
461,
16,
1478,
1957,
16,
733,
16,
1931,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2170,
2404,
12,
780,
9994,
16,
514,
1478,
1957,
16,
1033,
733,
16,
1250,
1931,
13,
288,
3639,
1478,
8221,
18,
1289,
12,
2704,
4039,
2404,
12,
5986,
461,
16,
1478,
1957,
16,
733,
16,
1931,
10019,
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
] |
Map.Entry existingPageRecordEntry = null;
|
boolean increasingCacheSize = true;
|
public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null))) { String pageCacheKey = response.headerForKey(ERXSession.PAGE_REPLACEMENT_CACHE_LOOKUP_KEY); if (pageCacheKey != null) { String originalContextID = context.request().headerForKey(ERXSession.ORIGINAL_CONTEXT_ID_KEY); pageCacheKey = originalContextID + "_" + pageCacheKey; //System.out.println("Session.savePage: page cache key = " + pageCacheKey); LinkedHashMap pageReplacementCache = (LinkedHashMap) objectForKey(ERXSession.PAGE_REPLACEMENT_CACHE_KEY); if (pageReplacementCache == null) { pageReplacementCache = new LinkedHashMap(); setObjectForKey(pageReplacementCache, ERXSession.PAGE_REPLACEMENT_CACHE_KEY); } Map.Entry existingPageRecordEntry = null; Iterator transactionRecordsEnum = pageReplacementCache.entrySet().iterator(); while (existingPageRecordEntry == null && transactionRecordsEnum.hasNext()) { Map.Entry pageRecordEntry = (Map.Entry)transactionRecordsEnum.next(); TransactionRecord tempPageRecord = (TransactionRecord)pageRecordEntry.getValue(); String transactionRecordKey = tempPageRecord.key(); if (pageCacheKey.equals(transactionRecordKey)) { existingPageRecordEntry = pageRecordEntry; //System.out.println("Session.savePage: replacing old page for " + pageCacheKey); transactionRecordsEnum.remove(); } } if (existingPageRecordEntry == null && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE) { Iterator entryIterator = pageReplacementCache.entrySet().iterator(); Map.Entry oldestEntry = (Map.Entry) entryIterator.next(); entryIterator.remove(); //System.out.println("Session.savePage: removing oldest entry: " + ((ERTransactionRecord)oldestEntry.getValue()).key()); } //System.out.println("Session.savePage: adding page for key " + pageCacheKey); TransactionRecord pageRecord = new TransactionRecord(page, context, pageCacheKey); pageReplacementCache.put(context.contextID(), pageRecord); } } else { super.savePage(page); } }
|
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/fd19ee62082faf17439c0d31dc82b3bb877f4800/ERXSession.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXSession.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1964,
12,
59,
51,
1841,
1363,
13,
288,
1377,
678,
51,
1042,
819,
273,
819,
5621,
1377,
678,
51,
1064,
766,
273,
819,
18,
2740,
5621,
1377,
309,
261,
2740,
480,
446,
597,
261,
2740,
18,
3374,
19759,
12,
654,
60,
2157,
18,
40,
10079,
67,
13651,
67,
11219,
13,
480,
446,
747,
261,
2740,
18,
1355,
966,
1435,
480,
446,
597,
766,
18,
1355,
966,
7675,
1612,
19759,
12,
654,
60,
2157,
18,
40,
10079,
67,
13651,
67,
11219,
13,
480,
446,
20349,
288,
3639,
514,
1363,
15554,
273,
766,
18,
3374,
19759,
12,
654,
60,
2157,
18,
11219,
67,
21726,
3212,
67,
8495,
67,
1502,
31581,
67,
3297,
1769,
3639,
309,
261,
2433,
15554,
480,
446,
13,
288,
1850,
514,
2282,
1042,
734,
273,
819,
18,
2293,
7675,
3374,
19759,
12,
654,
60,
2157,
18,
24685,
1013,
67,
13181,
67,
734,
67,
3297,
1769,
1850,
1363,
15554,
273,
2282,
1042,
734,
397,
8802,
397,
1363,
15554,
31,
1850,
368,
3163,
18,
659,
18,
8222,
2932,
2157,
18,
5688,
1964,
30,
1363,
1247,
498,
273,
315,
397,
1363,
15554,
1769,
1850,
13589,
1363,
15201,
1649,
273,
261,
13174,
8658,
13,
733,
19759,
12,
654,
60,
2157,
18,
11219,
67,
21726,
3212,
67,
8495,
67,
3297,
1769,
1850,
309,
261,
2433,
15201,
1649,
422,
446,
13,
288,
5411,
1363,
15201,
1649,
273,
394,
13589,
5621,
5411,
20530,
19759,
12,
2433,
15201,
1649,
16,
4232,
60,
2157,
18,
11219,
67,
21726,
3212,
67,
8495,
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,
1923,
1964,
12,
59,
51,
1841,
1363,
13,
288,
1377,
678,
51,
1042,
819,
273,
819,
5621,
1377,
678,
51,
1064,
766,
273,
819,
18,
2740,
5621,
1377,
309,
261,
2740,
480,
446,
597,
261,
2740,
18,
3374,
19759,
12,
654,
60,
2157,
18,
40,
10079,
67,
13651,
67,
11219,
13,
480,
446,
747,
261,
2740,
18,
1355,
966,
1435,
480,
446,
597,
766,
18,
1355,
966,
7675,
1612,
19759,
12,
654,
60,
2157,
18,
40,
10079,
67,
13651,
67,
11219,
13,
480,
446,
20349,
288,
3639,
514,
1363,
15554,
273,
766,
18,
3374,
19759,
12,
654,
60,
2157,
18,
11219,
67,
21726,
3212,
67,
8495,
67,
1502,
31581,
67,
3297,
1769,
3639,
309,
261,
2433,
2
] |
Object[] args = { evaluation.getFullName(), date, beginDate.getHourOfDay(), minutes, evaluation.getAssociatedRoomsAsString(), beanWithVigilants.getVigilantsAsString(), beanWithVigilants.getSelectedVigilantGroup().getRulesLink() };
|
Object[] args = { evaluation.getFullName(), date, beginDate.getHourOfDay(), minutes, beanWithVigilants.getRoomsAsString(), teachersVigilancies, convokedVigilants, beanWithVigilants.getSelectedVigilantGroup().getRulesLink() };
|
public ActionForward confirmConvokes(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ConvokeBean beanWithTeachers = (ConvokeBean) RenderUtils.getViewState( "selectVigilantsThatAreTeachers").getMetaObject().getObject(); ConvokeBean beanWithVigilants = (ConvokeBean) RenderUtils.getViewState( "selectVigilants").getMetaObject().getObject(); ConvokeBean beanWithUnavailables = (ConvokeBean) RenderUtils .getViewState("selectVigilantsThatAreUnavailable") .getMetaObject().getObject(); List<Vigilant> teachers, vigilants, unavailables; teachers = beanWithTeachers.getSelectedTeachers(); vigilants = beanWithVigilants.getVigilants(); unavailables = beanWithUnavailables.getSelectedUnavailableVigilants(); vigilants.addAll(teachers); vigilants.addAll(unavailables); beanWithVigilants.setVigilants(vigilants); String email = RenderUtils.getResourceString("VIGILANCY_RESOURCES", "label.vigilancy.emailConvoke"); MessageFormat format = new MessageFormat(email); WrittenEvaluation evaluation = beanWithVigilants.getWrittenEvaluation(); DateTime beginDate = evaluation.getBeginningDateTime(); String date = beginDate.getDayOfMonth() + "/" + beginDate.getMonthOfYear() + "/" + beginDate.getYear(); String minutes = String.format("%02d", new Object[]{beginDate.getMinuteOfHour()}); Object[] args = { evaluation.getFullName(), date, beginDate.getHourOfDay(), minutes, evaluation.getAssociatedRoomsAsString(), beanWithVigilants.getVigilantsAsString(), beanWithVigilants.getSelectedVigilantGroup().getRulesLink() }; beanWithVigilants.setEmailMessage(format.format(args)); request.setAttribute("bean", beanWithVigilants); return mapping.findForward("confirmConvokes"); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b5880bb91c8445f8ab1d0e37226d86d279a9c900/ConvokeManagement.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/vigilancy/ConvokeManagement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
6932,
17467,
601,
281,
12,
1803,
3233,
2874,
16,
1082,
202,
1803,
1204,
646,
16,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
202,
202,
17467,
3056,
3381,
3931,
1190,
56,
13798,
414,
273,
261,
17467,
3056,
3381,
13,
6987,
1989,
18,
588,
1767,
1119,
12,
9506,
202,
6,
4025,
58,
360,
330,
4388,
18163,
4704,
56,
13798,
414,
20387,
588,
2781,
921,
7675,
588,
921,
5621,
9506,
202,
17467,
3056,
3381,
3931,
1190,
58,
360,
330,
4388,
273,
261,
17467,
3056,
3381,
13,
6987,
1989,
18,
588,
1767,
1119,
12,
9506,
202,
6,
4025,
58,
360,
330,
4388,
20387,
588,
2781,
921,
7675,
588,
921,
5621,
202,
202,
17467,
3056,
3381,
3931,
1190,
984,
842,
671,
1538,
273,
261,
17467,
3056,
3381,
13,
6987,
1989,
9506,
202,
18,
588,
1767,
1119,
2932,
4025,
58,
360,
330,
4388,
18163,
4704,
11333,
7923,
9506,
202,
18,
588,
2781,
921,
7675,
588,
921,
5621,
202,
202,
682,
32,
58,
360,
330,
970,
34,
6489,
497,
414,
16,
331,
360,
330,
4388,
16,
640,
842,
671,
1538,
31,
202,
202,
736,
497,
414,
273,
3931,
1190,
56,
13798,
414,
18,
588,
7416,
56,
13798,
414,
5621,
202,
202,
90,
360,
330,
4388,
273,
3931,
1190,
58,
360,
330,
4388,
18,
588,
58,
360,
330,
4388,
5621,
202,
202,
318,
842,
671,
1538,
273,
3931,
1190,
984,
842,
671,
1538,
18,
588,
7416,
11333,
58,
360,
330,
4388,
5621,
202,
202,
90,
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,
4382,
8514,
6932,
17467,
601,
281,
12,
1803,
3233,
2874,
16,
1082,
202,
1803,
1204,
646,
16,
9984,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
202,
202,
17467,
3056,
3381,
3931,
1190,
56,
13798,
414,
273,
261,
17467,
3056,
3381,
13,
6987,
1989,
18,
588,
1767,
1119,
12,
9506,
202,
6,
4025,
58,
360,
330,
4388,
18163,
4704,
56,
13798,
414,
20387,
588,
2781,
921,
7675,
588,
921,
5621,
9506,
202,
17467,
3056,
3381,
3931,
1190,
58,
360,
330,
4388,
273,
261,
17467,
3056,
3381,
13,
6987,
1989,
18,
588,
1767,
1119,
12,
9506,
202,
6,
4025,
58,
360,
330,
4388,
20387,
588,
2781,
921,
7675,
588,
921,
5621,
202,
202,
17467,
2
] |
((ISingleDriver) driver).play(this);
|
driver.play(this);
|
public final void play() { ((ISingleDriver) driver).play(this); }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/f88d36ca46d603e9af822c7d7876f4fb3de50e74/Patch.java/clean/JSynthLib/core/Patch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
6599,
1435,
288,
3639,
3419,
18,
1601,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
6599,
1435,
288,
3639,
3419,
18,
1601,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 123: jj_consume_token(123);
|
case 124: jj_consume_token(124);
|
final public ASTCompilationUnit CompilationUnit() throws ParseException { /*@bgen(jjtree) CompilationUnit */ ASTCompilationUnit jjtn000 = new ASTCompilationUnit(this, JJTCOMPILATIONUNIT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch (jj_nt.kind) { case PACKAGE: PackageDeclaration(); break; default: jj_la1[0] = jj_gen; ; } label_1: while (true) { switch (jj_nt.kind) { case IMPORT: ; break; default: jj_la1[1] = jj_gen; break label_1; } ImportDeclaration(); } label_2: while (true) { switch (jj_nt.kind) { case ABSTRACT: case CLASS: case FINAL: case INTERFACE: case NATIVE: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case SYNCHRONIZED: case TRANSIENT: case VOLATILE: case STRICTFP: case IDENTIFIER: case SEMICOLON: case AT: ; break; default: jj_la1[2] = jj_gen; break label_2; } TypeDeclaration(); } switch (jj_nt.kind) { case 122: jj_consume_token(122); break; default: jj_la1[3] = jj_gen; ; } switch (jj_nt.kind) { case 123: jj_consume_token(123); break; default: jj_la1[4] = jj_gen; ; } jj_consume_token(0); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; {if (true) return jjtn000;} } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } throw new RuntimeException("Missing return statement in function"); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
9183,
19184,
2802,
22416,
2802,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
22416,
2802,
1195,
225,
9183,
19184,
2802,
10684,
5088,
3784,
273,
394,
9183,
19184,
2802,
12,
2211,
16,
804,
46,
56,
31075,
48,
2689,
15736,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
1620,
261,
78,
78,
67,
496,
18,
9224,
13,
288,
1377,
648,
23599,
30,
3639,
7508,
6094,
5621,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
21,
63,
20,
65,
273,
10684,
67,
4507,
31,
3639,
274,
1377,
289,
1377,
1433,
67,
21,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
261,
78,
78,
67,
496,
18,
9224,
13,
288,
3639,
648,
21840,
30,
1850,
274,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
21,
65,
273,
10684,
67,
4507,
31,
1850,
898,
1433,
67,
21,
31,
3639,
289,
3639,
6164,
6094,
5621,
1377,
289,
1377,
1433,
67,
22,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
261,
78,
78,
67,
496,
18,
9224,
13,
288,
3639,
648,
10336,
21398,
30,
3639,
648,
7383,
30,
3639,
648,
17563,
1013,
30,
3639,
648,
11391,
11300,
30,
3639,
648,
423,
12992,
30,
3639,
648,
23685,
30,
3639,
648,
4629,
26729,
30,
3639,
648,
17187,
30,
3639,
648,
19980,
30,
3639,
648,
7068,
50,
1792,
19359,
24131,
30,
3639,
648,
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,
1071,
9183,
19184,
2802,
22416,
2802,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
22416,
2802,
1195,
225,
9183,
19184,
2802,
10684,
5088,
3784,
273,
394,
9183,
19184,
2802,
12,
2211,
16,
804,
46,
56,
31075,
48,
2689,
15736,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
1620,
261,
78,
78,
67,
496,
18,
9224,
13,
288,
1377,
648,
23599,
30,
3639,
7508,
6094,
5621,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
21,
63,
20,
65,
273,
10684,
67,
4507,
31,
3639,
274,
1377,
289,
1377,
1433,
67,
21,
30,
1377,
2
] |
ipw = new ImagePlusWrapper(absname, true);
|
ipw = new ImagePlusWrapper(absname, reader.getReader(name), true);
|
public void run(String arg) { String version = System.getProperty("java.version"); double ver = Double.parseDouble(version.substring(0, 3)); if (ver < 1.4) { IJ.showMessage("Sorry, the 4D Data Browser requires\n" + "Java 1.4 or later. You can download ImageJ\n" + "with JRE 5.0 from the ImageJ web site."); return; } LociOpener lociOpener = new LociOpener(); boolean done2 = false; String directory = ""; String name = ""; boolean quiet = false; // get file name and virtual stack option stack = null; while (!done2) { try { lociOpener.show(); directory = lociOpener.getDirectory(); name = lociOpener.getAbsolutePath(); virtual = lociOpener.getVirtual(); if (name == null || lociOpener.isCanceled()) return; if (DEBUG) { IJ.log("directory = " + directory); IJ.log("name = " + name); IJ.log("virtual = " + virtual); } ImagePlusWrapper ipw = null; // process input lengths = new int[3]; String absname = name; filename = absname; name = FilePattern.findPattern(new File(name)); name = name.substring(name.lastIndexOf(File.separatorChar)+1); if (DEBUG) System.err.println("name = "+name); if (virtual) { FormatReader fr = (FormatReader) reader.getReader(absname); fr.setMetadataStore(new OMEXMLMetadataStore()); fr.getMetadataStore(absname).createRoot(); FileStitcher fs = new FileStitcher(fr); ChannelMerger cm = new ChannelMerger(fs); setSeries(cm.getSeriesCount(absname)); cm.setSeries(absname, series); int num = cm.getImageCount(absname); int size = 20; if (num < size) size = num; String ord = cm.getDimensionOrder(absname); ord = ord.substring(2); int minor, major; if (ord.charAt(0) == 'Z') { minor = reader.getSizeZ(filename); major = reader.getSizeT(filename); } else if (ord.charAt(0) == 'T') { major = reader.getSizeZ(filename); minor = reader.getSizeT(filename); } else { if (ord.charAt(1) == 'Z') { minor = reader.getSizeZ(filename); major = reader.getSizeT(filename); } else { major = reader.getSizeZ(filename); minor = reader.getSizeT(filename); } } //manager = new CacheManager(size, minor, major, cm, absname); manager = new CacheManager(size, cm, absname); manager.init(); try { numZ = cm.getSizeZ(absname); numC = cm.getSizeC(absname); if (cm.isRGB(absname)) { if (numC <= 3) numC = 1; else numC /= 3; } numT = cm.getSizeT(absname); hasZ = numZ > 1; hasC = numC > 1; hasT = numT > 1; String order = cm.getDimensionOrder(absname); zIndex = order.indexOf("Z") - 2; cIndex = order.indexOf("C") - 2; tIndex = order.indexOf("T") - 2; lengths[zIndex] = numZ; lengths[tIndex] = numT; lengths[cIndex] = numC; stack = new ImageStack(cm.getSizeX(absname), cm.getSizeY(absname)); for (int i=0; i<size; i++) { stack.addSlice(absname + " : " + (i+1), manager.getSlice(i)); } if (stack == null || stack.getSize() == 0) { IJ.showMessage("No valid files found."); return; } } catch (OutOfMemoryError e) { IJ.outOfMemory("LociDataBrowser"); if (stack != null) stack.trim(); } ImagePlus ip = new ImagePlus(absname, stack); FileInfo fi = new FileInfo(); try { fi.description = ((OMEXMLMetadataStore) fr.getMetadataStore(absname)).dumpXML(); } catch (Exception e) { } ip.setFileInfo(fi); show(ip); } else { ipw = new ImagePlusWrapper(absname, true); numZ = ipw.sizeZ; numT = ipw.sizeT; numC = ipw.sizeC; zIndex = ipw.dim.indexOf('Z') - 2; tIndex = ipw.dim.indexOf('T') - 2; cIndex = ipw.dim.indexOf('C') - 2; if (ipw.getImagePlus().getStackSize() != numZ * numT * numC) { numC = 1; } lengths[zIndex] = numZ; lengths[tIndex] = numT; lengths[cIndex] = numC; hasZ = numZ > 1; hasT = numT > 1; hasC = numC > 1; FileInfo fi = ipw.getImagePlus().getOriginalFileInfo(); if (fi == null) fi = new FileInfo(); try { fi.description = ((OMEXMLMetadataStore) ipw.store).dumpXML(); } catch (Exception e) { } ipw.getImagePlus().setFileInfo(fi); show(ipw.getImagePlus()); } done2 = true; } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.showMessage("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (": " + msg))); } if (DEBUG) System.err.println("Read error"); done2 = false; } } }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/5351c96fc172e06b5ff0928a3f20121bc7c8c81d/LociDataBrowser.java/clean/loci/plugins/browser/LociDataBrowser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
12,
780,
1501,
13,
288,
565,
514,
1177,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
1589,
8863,
565,
1645,
1924,
273,
3698,
18,
2670,
5265,
12,
1589,
18,
28023,
12,
20,
16,
890,
10019,
565,
309,
261,
502,
411,
404,
18,
24,
13,
288,
1377,
467,
46,
18,
4500,
1079,
2932,
28898,
16,
326,
1059,
40,
1910,
15408,
4991,
64,
82,
6,
397,
3639,
315,
5852,
404,
18,
24,
578,
5137,
18,
4554,
848,
4224,
3421,
46,
64,
82,
6,
397,
3639,
315,
1918,
804,
862,
1381,
18,
20,
628,
326,
3421,
46,
3311,
2834,
1199,
1769,
1377,
327,
31,
565,
289,
565,
511,
1882,
3817,
708,
1515,
77,
3817,
708,
273,
394,
511,
1882,
3817,
708,
5621,
565,
1250,
2731,
22,
273,
629,
31,
565,
514,
1867,
273,
1408,
31,
565,
514,
508,
273,
1408,
31,
565,
1250,
10902,
273,
629,
31,
565,
368,
336,
585,
508,
471,
5024,
2110,
1456,
565,
2110,
273,
446,
31,
565,
1323,
16051,
8734,
22,
13,
288,
1377,
775,
288,
3639,
1515,
77,
3817,
708,
18,
4500,
5621,
3639,
1867,
273,
1515,
77,
3817,
708,
18,
588,
2853,
5621,
3639,
508,
273,
1515,
77,
3817,
708,
18,
588,
10368,
743,
5621,
3639,
5024,
273,
1515,
77,
3817,
708,
18,
588,
6466,
5621,
3639,
309,
261,
529,
422,
446,
747,
1515,
77,
3817,
708,
18,
291,
23163,
10756,
327,
31,
3639,
309,
261,
9394,
13,
288,
1850,
467,
46,
18,
1330,
2932,
5149,
273,
315,
397,
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,
1086,
12,
780,
1501,
13,
288,
565,
514,
1177,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
1589,
8863,
565,
1645,
1924,
273,
3698,
18,
2670,
5265,
12,
1589,
18,
28023,
12,
20,
16,
890,
10019,
565,
309,
261,
502,
411,
404,
18,
24,
13,
288,
1377,
467,
46,
18,
4500,
1079,
2932,
28898,
16,
326,
1059,
40,
1910,
15408,
4991,
64,
82,
6,
397,
3639,
315,
5852,
404,
18,
24,
578,
5137,
18,
4554,
848,
4224,
3421,
46,
64,
82,
6,
397,
3639,
315,
1918,
804,
862,
1381,
18,
20,
628,
326,
3421,
46,
3311,
2834,
1199,
1769,
1377,
327,
31,
565,
289,
565,
511,
1882,
3817,
708,
1515,
77,
3817,
708,
273,
394,
511,
2
] |
Sequence seq = expr.eval(context, docs, null, null);
|
Sequence seq = expr.eval(docs, null, null);
|
protected void processXInclude(Attributes atts) throws SAXException { // save some settings DocumentImpl prevDoc = document; boolean createContainerElements = serializer.createContainerElements; serializer.createContainerElements = false; // parse the href attribute String href = atts.getValue("href"); if (href != null) { LOG.debug("found href=\"" + href + "\""); String xpointer = null; String docName = href; // try to find xpointer part int p = href.indexOf('#'); if (-1 < p) { docName = href.substring(0, p); xpointer = XMLUtil.decodeAttrMarkup(href.substring(p + 1)); LOG.debug("found xpointer: " + xpointer); } // if docName has no collection specified, assume // current collection p = docName.lastIndexOf('/'); if (p < 0) docName = document.getCollection().getName() + '/' + docName; // retrieve the document LOG.debug("loading " + docName); DocumentImpl doc = null; try { doc = (DocumentImpl) serializer.broker.getDocument(docName); } catch (PermissionDeniedException e) { LOG.warn("permission denied", e); throw new SAXException(e); } /* if document has not been found and xpointer is * null, throw an exception. If xpointer != null * we retry below and interpret docName as * a collection. */ if (doc == null && xpointer == null) throw new SAXException("document " + docName + " not found"); if (xpointer == null) // no xpointer found - just serialize the doc serializer.serializeToSAX(doc, false); else { // process the xpointer try { // build input document set DocumentSet docs = null; if (doc == null) { // try to read documents from the collection // specified by docName docs = serializer.broker.getDocumentsByCollection(docName); // give up if (docs == null) throw new SAXException( "no document or collection " + "called " + docName); } else { docs = new DocumentSet(); docs.add(doc); } StaticContext context = new StaticContext(serializer.broker); xpointer = checkNamespaces(context, xpointer); Map.Entry entry; for(Iterator i = namespaces.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); context.declareNamespace((String)entry.getKey(), (String)entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(xpointer)); XPathParser2 parser = new XPathParser2(lexer); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpointer(); if (parser.foundErrors()) { throw new SAXException(parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringTree()); PathExpr expr = new PathExpr(); treeParser.xpointer(ast, expr); if (treeParser.foundErrors()) { throw new SAXException(treeParser.getErrorMessage()); } LOG.info("xpointer query: " + expr.pprint()); long start = System.currentTimeMillis(); docs = expr.preselect(docs, context); if (docs.getLength() == 0) return; Sequence seq = expr.eval(context, docs, null, null); switch (seq.getItemType()) { case Type.NODE : NodeSet set = (NodeSet) seq; LOG.info("xpointer found: " + set.getLength()); NodeProxy proxy; for (Iterator i = set.iterator(); i.hasNext();) { proxy = (NodeProxy) i.next(); serializer.serializeToSAX(proxy, false); } break; default : String val; for (int i = 0; i < seq.getLength(); i++) { val = seq.itemAt(i).getStringValue(); characters(val.toCharArray(), 0, val.length()); } break; } } catch (RecognitionException e) { LOG.warn("xpointer error", e); throw new SAXException(e); } catch (TokenStreamException e) { LOG.warn("xpointer error", e); throw new SAXException(e); } catch (PermissionDeniedException e) { LOG.warn("xpointer error", e); throw new SAXException(e); } catch (XPathException e) { throw new SAXException(e); } } } // restore settings document = prevDoc; serializer.createContainerElements = createContainerElements; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XIncludeFilter.java/clean/src/org/exist/storage/serializers/XIncludeFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
60,
8752,
12,
2498,
15687,
13,
1216,
14366,
288,
202,
202,
759,
1923,
2690,
1947,
202,
202,
2519,
2828,
2807,
1759,
273,
1668,
31,
202,
202,
6494,
752,
2170,
3471,
273,
6340,
18,
2640,
2170,
3471,
31,
202,
202,
15663,
18,
2640,
2170,
3471,
273,
629,
31,
202,
202,
759,
1109,
326,
3897,
1566,
202,
202,
780,
3897,
273,
15687,
18,
24805,
2932,
7547,
8863,
202,
202,
430,
261,
7547,
480,
446,
13,
288,
1082,
202,
4842,
18,
4148,
2932,
7015,
3897,
13186,
397,
3897,
397,
11143,
1769,
1082,
202,
780,
619,
10437,
273,
446,
31,
1082,
202,
780,
997,
461,
273,
3897,
31,
1082,
202,
759,
775,
358,
1104,
619,
10437,
1087,
1082,
202,
474,
293,
273,
3897,
18,
31806,
2668,
7,
8284,
1082,
202,
430,
24927,
21,
411,
293,
13,
288,
9506,
202,
2434,
461,
273,
3897,
18,
28023,
12,
20,
16,
293,
1769,
9506,
202,
92,
10437,
273,
3167,
1304,
18,
3922,
3843,
13111,
12,
7547,
18,
28023,
12,
84,
397,
404,
10019,
9506,
202,
4842,
18,
4148,
2932,
7015,
619,
10437,
30,
315,
397,
619,
10437,
1769,
1082,
202,
97,
1082,
202,
759,
309,
997,
461,
711,
1158,
1849,
1269,
16,
6750,
1082,
202,
759,
783,
1849,
1875,
202,
84,
273,
997,
461,
18,
2722,
31985,
2668,
2473,
1769,
1082,
202,
430,
261,
84,
411,
374,
13,
9506,
202,
2434,
461,
273,
1668,
18,
588,
2532,
7675,
17994,
1435,
397,
2023,
397,
997,
461,
31,
1082,
202,
759,
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,
1207,
60,
8752,
12,
2498,
15687,
13,
1216,
14366,
288,
202,
202,
759,
1923,
2690,
1947,
202,
202,
2519,
2828,
2807,
1759,
273,
1668,
31,
202,
202,
6494,
752,
2170,
3471,
273,
6340,
18,
2640,
2170,
3471,
31,
202,
202,
15663,
18,
2640,
2170,
3471,
273,
629,
31,
202,
202,
759,
1109,
326,
3897,
1566,
202,
202,
780,
3897,
273,
15687,
18,
24805,
2932,
7547,
8863,
202,
202,
430,
261,
7547,
480,
446,
13,
288,
1082,
202,
4842,
18,
4148,
2932,
7015,
3897,
13186,
397,
3897,
397,
11143,
1769,
1082,
202,
780,
619,
10437,
273,
446,
31,
1082,
202,
780,
997,
461,
273,
3897,
31,
1082,
202,
759,
775,
358,
1104,
619,
10437,
1087,
1082,
2
] |
private void mergePageFile(String resourcename) throws CmsXmlException, CmsImportExportException { try { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_START_MERGING_1, resourcename)); } // in OpenCms versions <5 node names have not been case sensitive. thus, nodes are read both in upper // and lower case letters, or have to be tested for equality ignoring upper/lower case... // get the header file CmsFile pagefile = m_cms.readFile(resourcename, CmsResourceFilter.ALL); Document contentXml = CmsXmlUtils.unmarshalHelper(pagefile.getContents(), null); // get the <masterTemplate> node to check the content. this node contains the name of the template file. String masterTemplateNodeName = "//masterTemplate"; Node masterTemplateNode = contentXml.selectSingleNode(masterTemplateNodeName); if (masterTemplateNode == null) { masterTemplateNode = contentXml.selectSingleNode(masterTemplateNodeName.toLowerCase()); } if (masterTemplateNode == null) { masterTemplateNode = contentXml.selectSingleNode(masterTemplateNodeName.toUpperCase()); } // there is only one <masterTemplate> allowed String mastertemplate = null; if (masterTemplateNode != null) { // get the name of the mastertemplate mastertemplate = masterTemplateNode.getText().trim(); } // get the <ELEMENTDEF> nodes to check the content. // this node contains the information for the body element. String elementDefNodeName = "//ELEMENTDEF"; Node bodyNode = contentXml.selectSingleNode(elementDefNodeName); if (bodyNode == null) { bodyNode = contentXml.selectSingleNode(elementDefNodeName.toLowerCase()); } // there is only one <ELEMENTDEF> allowed if (bodyNode != null) { String bodyclass = null; String bodyname = null; Map bodyparams = null; List nodes = ((Element)bodyNode).elements(); for (int i = 0, n = nodes.size(); i < n; i++) { Node node = (Node)nodes.get(i); if ("CLASS".equalsIgnoreCase(node.getName())) { bodyclass = node.getText().trim(); } else if ("TEMPLATE".equalsIgnoreCase(node.getName())) { bodyname = node.getText().trim(); if (!bodyname.startsWith("/")) { bodyname = CmsResource.getFolderPath(resourcename) + bodyname; } } else if ("PARAMETER".equalsIgnoreCase(node.getName())) { Element paramElement = (Element)node; if (bodyparams == null) { bodyparams = new HashMap(); } bodyparams.put((paramElement.attribute("name")).getText(), paramElement.getTextTrim()); } } if (mastertemplate == null || bodyname == null) { CmsMessageContainer message = Messages.get().container(Messages.ERR_IMPORTEXPORT_ERROR_CANNOT_MERGE_PAGE_FILE_3, resourcename, mastertemplate, bodyname); if (LOG.isDebugEnabled()) { LOG.debug(message.key()); } throw new CmsImportExportException(message); } // lock the resource, so that it can be manipulated m_cms.lockResource(resourcename); // get all properties List properties = m_cms.readPropertyObjects(resourcename, false); // now get the content of the bodyfile and insert it into the control file CmsFile bodyfile = m_cms.readFile(bodyname, CmsResourceFilter.IGNORE_EXPIRATION); //get the encoding String encoding = CmsProperty.get(CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, properties).getValue(); if (encoding == null) { encoding = OpenCms.getSystemInfo().getDefaultEncoding(); } if (m_convertToXmlPage) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_START_CONVERTING_TO_XML_0)); } CmsXmlPage xmlPage = CmsXmlPageConverter.convertToXmlPage(m_cms, bodyfile.getContents(), getLocale( resourcename, properties), encoding); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_END_CONVERTING_TO_XML_0)); } if (xmlPage != null) { pagefile.setContents(xmlPage.marshal()); // set the type to xml page pagefile.setType(CmsResourceTypeXmlPage.getStaticTypeId()); } } // add the template and other required properties CmsProperty newProperty = new CmsProperty(CmsPropertyDefinition.PROPERTY_TEMPLATE, mastertemplate, null); // property lists must not contain equal properties properties.remove(newProperty); properties.add(newProperty); // if set, add the bodyclass as property if (bodyclass != null && !"".equals(bodyclass)) { newProperty = new CmsProperty(CmsPropertyDefinition.PROPERTY_TEMPLATE, mastertemplate, null); newProperty.setAutoCreatePropertyDefinition(true); properties.remove(newProperty); properties.add(newProperty); } // if set, add bodyparams as properties if (bodyparams != null) { for (Iterator p = bodyparams.keySet().iterator(); p.hasNext();) { String key = (String)p.next(); newProperty = new CmsProperty(key, (String)bodyparams.get(key), null); newProperty.setAutoCreatePropertyDefinition(true); properties.remove(newProperty); properties.add(newProperty); } } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_START_IMPORTING_XML_PAGE_0)); } // now import the resource m_cms.importResource(resourcename, pagefile, pagefile.getContents(), properties); // finally delete the old body file, it is not needed anymore m_cms.lockResource(bodyname); m_cms.deleteResource(bodyname, I_CmsConstants.C_DELETE_OPTION_PRESERVE_SIBLINGS); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_END_IMPORTING_XML_PAGE_0)); } m_report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_OK_0), I_CmsReport.C_FORMAT_OK); } else { // there are more than one template nodes in this control file // convert the resource into a plain text file // lock the resource, so that it can be manipulated m_cms.lockResource(resourcename); // set the type to plain pagefile.setType(CmsResourceTypePlain.getStaticTypeId()); // write all changes m_cms.writeFile(pagefile); // done, unlock the resource m_cms.unlockResource(resourcename); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_CANNOT_CONVERT_XML_STRUCTURE_1, resourcename)); } m_report.println( Messages.get().container(Messages.RPT_NOT_CONVERTED_0), I_CmsReport.C_FORMAT_OK); } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_IMPORTEXPORT_END_MERGING_1, resourcename)); } } catch (CmsXmlException e) { throw e; } catch (CmsException e) { m_report.println(e); CmsMessageContainer message = Messages.get().container(Messages.ERR_IMPORTEXPORT_ERROR_MERGING_PAGE_FILE_1, resourcename); if (LOG.isDebugEnabled()) { LOG.debug(message.key(), e); } throw new CmsImportExportException(message, e); } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c7083871cfaaede3aa187a175b34be606d8431f2/CmsImportVersion2.java/buggy/src/org/opencms/importexport/CmsImportVersion2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
1964,
812,
12,
780,
31174,
1069,
13,
1216,
16084,
503,
16,
2149,
5010,
6144,
503,
288,
3639,
775,
288,
13491,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
7734,
2018,
18,
4148,
12,
5058,
18,
588,
7675,
856,
12,
5058,
18,
4842,
67,
9883,
916,
13439,
6354,
67,
7570,
67,
20969,
19066,
67,
21,
16,
31174,
1069,
10019,
5411,
289,
1171,
368,
316,
10319,
5244,
411,
25,
756,
1257,
1240,
486,
2118,
648,
16692,
18,
12493,
16,
2199,
854,
855,
3937,
316,
3854,
5411,
368,
471,
2612,
648,
13768,
16,
578,
1240,
358,
506,
18432,
364,
14958,
14398,
3854,
19,
8167,
648,
2777,
7734,
368,
336,
326,
1446,
585,
5411,
28118,
1363,
768,
273,
312,
67,
6851,
18,
896,
812,
12,
455,
20989,
1069,
16,
21082,
18,
4685,
1769,
5411,
4319,
913,
4432,
273,
16084,
1989,
18,
318,
3108,
2276,
12,
2433,
768,
18,
588,
6323,
9334,
446,
1769,
7734,
368,
336,
326,
411,
7525,
2283,
34,
756,
358,
866,
326,
913,
18,
333,
756,
1914,
326,
508,
434,
326,
1542,
585,
18,
5411,
514,
4171,
2283,
18948,
273,
16177,
7525,
2283,
14432,
5411,
2029,
4171,
2283,
907,
273,
913,
4432,
18,
4025,
5281,
907,
12,
7525,
2283,
18948,
1769,
5411,
309,
261,
7525,
2283,
907,
422,
446,
13,
288,
7734,
4171,
2283,
907,
273,
913,
4432,
18,
4025,
5281,
907,
12,
7525,
2283,
18948,
18,
869,
5630,
10663,
5411,
289,
5411,
309,
261,
7525,
2283,
907,
422,
446,
13,
288,
7734,
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,
2691,
1964,
812,
12,
780,
31174,
1069,
13,
1216,
16084,
503,
16,
2149,
5010,
6144,
503,
288,
3639,
775,
288,
13491,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
7734,
2018,
18,
4148,
12,
5058,
18,
588,
7675,
856,
12,
5058,
18,
4842,
67,
9883,
916,
13439,
6354,
67,
7570,
67,
20969,
19066,
67,
21,
16,
31174,
1069,
10019,
5411,
289,
1171,
368,
316,
10319,
5244,
411,
25,
756,
1257,
1240,
486,
2118,
648,
16692,
18,
12493,
16,
2199,
854,
855,
3937,
316,
3854,
5411,
368,
471,
2612,
648,
13768,
16,
578,
1240,
358,
506,
18432,
364,
14958,
14398,
3854,
19,
8167,
648,
2777,
7734,
368,
336,
326,
1446,
585,
5411,
28118,
1363,
768,
273,
2
] |
||
ErrorLogger.log(ex, "couldn't open summary editor");
|
MylarStatusHandler.log(ex, "couldn't open summary editor");
|
public void run() { try { List<IUsageCollector> delegates = new ArrayList<IUsageCollector>(); delegates.add(new ViewUsageCollector()); delegates.add(new PerspectiveUsageCollector()); delegates.add(new CommandUsageCollector());// delegates.add(new CsvOutputCollector()); delegates.add(new SummaryCollector()); DelegatingUsageCollector collector = new DelegatingUsageCollector(); collector.setReportTitle("Usage Summary"); collector.setDelegates(delegates); ReportGenerator generator = new ReportGenerator(MylarMonitorPlugin.getDefault().getInteractionLogger(), collector); IWorkbenchPage page = MylarReportsPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); if (page == null) return; IEditorInput input = new UsageStatsEditorInput(files, generator); page.openEditor(input, MylarReportsPlugin.REPORT_SUMMARY_ID); } catch (PartInitException ex) { ErrorLogger.log(ex, "couldn't open summary editor"); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5fee268477d34fc0e1b9e54dd641c0715fae348c/UsageSummaryAction.java/clean/sandbox/org.eclipse.mylyn.monitor.reports/src/org/eclipse/mylyn/monitor/reports/ui/actions/UsageSummaryAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1082,
202,
482,
918,
1086,
1435,
288,
377,
9506,
202,
698,
225,
288,
377,
6862,
202,
682,
32,
45,
5357,
7134,
34,
22310,
273,
394,
2407,
32,
45,
5357,
7134,
34,
5621,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
4441,
5357,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
453,
414,
16772,
5357,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
3498,
5357,
7134,
10663,
759,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
21532,
1447,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
17967,
7134,
10663,
377,
25083,
377,
6862,
202,
15608,
1776,
5357,
7134,
8543,
273,
394,
24117,
1776,
5357,
7134,
5621,
377,
6862,
202,
21356,
18,
542,
4820,
4247,
2932,
5357,
17967,
8863,
1377,
6862,
202,
21356,
18,
542,
15608,
815,
12,
3771,
1332,
815,
1769,
377,
6862,
202,
4820,
3908,
4456,
273,
394,
8706,
3908,
12,
12062,
7901,
7187,
3773,
18,
588,
1868,
7675,
588,
17419,
3328,
9334,
8543,
1769,
377,
25083,
377,
25083,
377,
6862,
202,
45,
2421,
22144,
1964,
1363,
273,
8005,
7901,
18631,
3773,
18,
588,
1868,
7675,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
377,
6862,
202,
430,
261,
2433,
422,
446,
13,
327,
31,
377,
6862,
202,
45,
6946,
1210,
810,
273,
394,
10858,
4195,
6946,
1210,
12,
2354,
16,
4456,
1769,
377,
6862,
202,
2433,
18,
3190,
6946,
12,
2630,
16,
8005,
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,
1377,
1082,
202,
482,
918,
1086,
1435,
288,
377,
9506,
202,
698,
225,
288,
377,
6862,
202,
682,
32,
45,
5357,
7134,
34,
22310,
273,
394,
2407,
32,
45,
5357,
7134,
34,
5621,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
4441,
5357,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
453,
414,
16772,
5357,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
3498,
5357,
7134,
10663,
759,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
21532,
1447,
7134,
10663,
377,
6862,
202,
3771,
1332,
815,
18,
1289,
12,
2704,
17967,
7134,
10663,
377,
25083,
377,
6862,
202,
15608,
1776,
5357,
7134,
8543,
273,
394,
24117,
1776,
2
] |
addTableColumn( tableColumnModel, 1, C1_MW, false, false, false, false, Integer.class, null, sc.TITLE_INDEX ); addTableColumn( tableColumnModel, 2, C2_MW, false, true, false, false, Boolean.class, "false", sc.bold("block")); addTableColumn( tableColumnModel, 3, C3_MW, false, true, false, false, Boolean.class, "false", sc.bold("log")); addTableColumn( tableColumnModel, 4, C4_MW, true, true, false, false, String.class, sc.EMPTY_CATEGORY, sc.TITLE_CATEGORY ); addTableColumn( tableColumnModel, 5, C5_MW, true, true, false, false, String.class, "unclassified", "class"); addTableColumn( tableColumnModel, 6, C7_MW, true, true, false, true, String.class, sc.EMPTY_DESCRIPTION, sc.TITLE_DESCRIPTION ); addTableColumn( tableColumnModel, 7, C6_MW, true, true, false, false, String.class, "http: addTableColumn( tableColumnModel, 8, C8_MW, true, true, false, false, String.class, sc.empty("no signature"), "signature"); addTableColumn( tableColumnModel, 9, 10, false, false, true, false, IDSRule.class, null, "");
|
addTableColumn( tableColumnModel, 1, C1_MW, false, false, true, false, Integer.class, null, sc.TITLE_INDEX ); addTableColumn( tableColumnModel, 2, C2_MW, false, false, false, false, Integer.class, null, "SID" ); addTableColumn( tableColumnModel, 3, C3_MW, false, true, false, false, Boolean.class, "false", sc.bold("block")); addTableColumn( tableColumnModel, 4, C4_MW, false, true, false, false, Boolean.class, "false", sc.bold("log")); addTableColumn( tableColumnModel, 5, C5_MW, true, true, false, false, String.class, sc.EMPTY_CATEGORY, sc.TITLE_CATEGORY ); addTableColumn( tableColumnModel, 6, C6_MW, true, false, false, false, String.class, "unclassified", "class"); addTableColumn( tableColumnModel, 7, C7_MW, true, false, false, true, String.class, sc.EMPTY_DESCRIPTION, sc.TITLE_DESCRIPTION ); addTableColumn( tableColumnModel, 8, C8_MW, true, false, false, false, String.class, "http: addTableColumn( tableColumnModel, 9, C9_MW, true, true, false, false, String.class, sc.empty("no signature"), "signature"); addTableColumn( tableColumnModel, 10, 10, false, false, true, false, IDSRule.class, null, "");
|
public TableColumnModel getTableColumnModel(){ DefaultTableColumnModel tableColumnModel = new DefaultTableColumnModel(); // # min rsz edit remv desc typ def addTableColumn( tableColumnModel, 0, C0_MW, false, false, false, false, String.class, null, sc.TITLE_STATUS ); addTableColumn( tableColumnModel, 1, C1_MW, false, false, false, false, Integer.class, null, sc.TITLE_INDEX ); addTableColumn( tableColumnModel, 2, C2_MW, false, true, false, false, Boolean.class, "false", sc.bold("block")); addTableColumn( tableColumnModel, 3, C3_MW, false, true, false, false, Boolean.class, "false", sc.bold("log")); addTableColumn( tableColumnModel, 4, C4_MW, true, true, false, false, String.class, sc.EMPTY_CATEGORY, sc.TITLE_CATEGORY ); addTableColumn( tableColumnModel, 5, C5_MW, true, true, false, false, String.class, "unclassified", "class"); addTableColumn( tableColumnModel, 6, C7_MW, true, true, false, true, String.class, sc.EMPTY_DESCRIPTION, sc.TITLE_DESCRIPTION ); addTableColumn( tableColumnModel, 7, C6_MW, true, true, false, false, String.class, "http://", "info url"); addTableColumn( tableColumnModel, 8, C8_MW, true, true, false, false, String.class, sc.empty("no signature"), "signature"); addTableColumn( tableColumnModel, 9, 10, false, false, true, false, IDSRule.class, null, ""); return tableColumnModel; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/825264dc69339f0b05fcc5a26c2024938e173d18/IDSConfigJPanel.java/buggy/tran/ids/main/com/metavize/tran/ids/gui/IDSConfigJPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3555,
1494,
1488,
5638,
1494,
1488,
1435,
95,
3639,
2989,
1388,
1494,
1488,
1014,
1494,
1488,
273,
394,
2989,
1388,
1494,
1488,
5621,
3639,
368,
4766,
468,
225,
1131,
565,
3597,
94,
565,
3874,
282,
849,
90,
282,
3044,
282,
3815,
5411,
1652,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
374,
16,
385,
20,
67,
49,
59,
16,
629,
16,
629,
16,
629,
16,
629,
16,
514,
18,
1106,
16,
225,
446,
16,
888,
18,
14123,
67,
8608,
11272,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
404,
16,
385,
21,
67,
49,
59,
16,
629,
16,
629,
16,
629,
16,
629,
16,
2144,
18,
1106,
16,
446,
16,
888,
18,
14123,
67,
9199,
11272,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
576,
16,
385,
22,
67,
49,
59,
16,
629,
16,
638,
16,
225,
629,
16,
629,
16,
3411,
18,
1106,
16,
315,
5743,
3113,
888,
18,
16390,
2932,
2629,
7923,
1769,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
890,
16,
385,
23,
67,
49,
59,
16,
629,
16,
638,
16,
225,
629,
16,
629,
16,
3411,
18,
1106,
16,
315,
5743,
3113,
888,
18,
16390,
2932,
1330,
7923,
1769,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
1059,
16,
385,
24,
67,
49,
59,
16,
638,
16,
225,
638,
16,
225,
629,
16,
629,
16,
514,
18,
1106,
16,
225,
888,
18,
13625,
67,
24847,
16,
888,
18,
14123,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3555,
1494,
1488,
5638,
1494,
1488,
1435,
95,
3639,
2989,
1388,
1494,
1488,
1014,
1494,
1488,
273,
394,
2989,
1388,
1494,
1488,
5621,
3639,
368,
4766,
468,
225,
1131,
565,
3597,
94,
565,
3874,
282,
849,
90,
282,
3044,
282,
3815,
5411,
1652,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
374,
16,
385,
20,
67,
49,
59,
16,
629,
16,
629,
16,
629,
16,
629,
16,
514,
18,
1106,
16,
225,
446,
16,
888,
18,
14123,
67,
8608,
11272,
3639,
527,
1388,
1494,
12,
1014,
1494,
1488,
16,
225,
404,
16,
385,
21,
67,
49,
59,
16,
629,
16,
629,
16,
629,
16,
629,
16,
2144,
18,
1106,
16,
446,
16,
888,
18,
14123,
2
] |
originalUninstalledMackages);
|
originalUninstalledMackages); System.out.println("purchased: " + purchasedMackageDescs.size());
|
private void purchase(final MTransformJButton mTransformJButton) throws InterruptedException { try{ //// MAKE SURE NOT PREVIOUSLY INSTALLED AS PART OF A BUNDLE MackageDesc[] originalUninstalledMackages = Util.getToolboxManager().uninstalled(); boolean installed = true; for( MackageDesc mackageDesc : originalUninstalledMackages ){ if(mTransformJButton.getName().equals(mackageDesc.getName())){ installed = false; break; } } if( installed ) return; //// DO THE DOWNLOAD MackageDesc[] originalInstalledMackages = Util.getToolboxManager().installed(); // for use later long key = Util.getToolboxManager().install(mTransformJButton.getName()); com.untangle.gui.util.Visitor visitor = new com.untangle.gui.util.Visitor(mTransformJButton); while (true) { java.util.List<InstallProgress> lip = Util.getToolboxManager().getProgress(key); for (InstallProgress ip : lip) { ip.accept(visitor); if( visitor.isDone() ) break; } if( visitor.isDone() ) break; if (0 == lip.size()) { Thread.currentThread().sleep(DOWNLOAD_CHECK_SLEEP_MILLIS); } } if( !visitor.isSuccessful() ) throw new Exception(); Thread.currentThread().sleep(DOWNLOAD_FINAL_PAUSE_MILLIS); // DO THE INSTALL long installStartTime = System.currentTimeMillis(); SwingUtilities.invokeAndWait( new Runnable(){ public void run(){ mTransformJButton.setProgress("Installing...", 101); }}); boolean mackageInstalled = false; MackageDesc[] currentInstalledMackages = null; while( !mackageInstalled && ((System.currentTimeMillis() - installStartTime) < INSTALL_CHECK_TIMEOUT_MILLIS) ){ currentInstalledMackages = Util.getToolboxManager().installed(); for( MackageDesc mackageDesc : currentInstalledMackages ){ if(mackageDesc.getName().equals(mTransformJButton.getName())){ mackageInstalled = true; SwingUtilities.invokeAndWait( new Runnable(){ public void run(){ mTransformJButton.setProgress("Success", 100); }}); break; } } if( !mackageInstalled ) Thread.currentThread().sleep(INSTALL_CHECK_SLEEP_MILLIS); } if( !mackageInstalled ) throw new Exception(); Thread.currentThread().sleep(INSTALL_FINAL_PAUSE_MILLIS); // REMOVE FROM STORE MackageDesc[] currentUninstalledMackages = Util.getToolboxManager().uninstalled(); List<MackageDesc> purchasedMackageDescs = computeNewMackageDescs(currentUninstalledMackages, originalUninstalledMackages); for( MackageDesc purchasedMackageDesc : purchasedMackageDescs ){ if( isMackageTrial(purchasedMackageDesc) ){ SwingUtilities.invokeAndWait( new Runnable(){ public void run(){ mTransformJButton.setProgress("", -1); }}); } else if( isMackageStoreItem(purchasedMackageDesc) ){ removeFromStore(purchasedMackageDesc); } } // BRING MAIN WINDOW TO FRONT SwingUtilities.invokeAndWait( new Runnable(){ public void run(){ Util.getMMainJFrame().setVisible(true); Util.getMMainJFrame().toFront(); }}); // ADD TO TOOLBOX List<MackageDesc> newMackageDescs = computeNewMackageDescs(originalInstalledMackages, currentInstalledMackages); Policy currentPolicy = (Policy) viewSelector.getSelectedItem(); for( MackageDesc newMackageDesc : newMackageDescs ){ if( !isMackageStoreItem(newMackageDesc) && isMackageVisible(newMackageDesc) ){ MTransformJButton newMTransformJButton = null; //new MTransformJButton(newMackageDesc); if( newMackageDesc.isUtil() || newMackageDesc.isService()){ newMTransformJButton = addToToolbox(null,newMackageDesc,false,false); } else if(newMackageDesc.isSecurity()){ for( Policy policy : policyToolboxMap.keySet() ){ MTransformJButton tempMTransformJButton = addToToolbox(policy,newMackageDesc,false,false); if( policy.equals(currentPolicy) ){ newMTransformJButton = tempMTransformJButton; } } } else if( newMackageDesc.isCore() ){ newMTransformJButton = addToToolbox(null,newMackageDesc,false,false); } if( isMackageTrial(newMackageDesc) ){ newMTransformJButton.setIsTrial(true); System.out.println("added trial: " + newMTransformJButton.getName()); } else{ System.out.println("added regular: " + newMTransformJButton.getName()); } revalidateToolboxes(); focusInToolbox(newMTransformJButton, true); // focus and highlight in current toolbox } } // REFRESH STATE OF ALL EXISTING APPLIANCES for(Policy policy : policyRackMap.keySet()){ for(MTransformJPanel mTransformJPanel : policyRackMap.get(policy).values()){ mTransformJPanel.doRefreshState(); } } for(MTransformJPanel mTransformJPanel : utilRackMap.values()){ mTransformJPanel.doRefreshState(); } for(MTransformJPanel mTransformJPanel : coreRackMap.values()){ mTransformJPanel.doRefreshState(); } } catch(InterruptedException e){ throw e; } catch(Exception e){ if( !isInterrupted() ){ try{ Util.handleExceptionWithRestart("Error purchasing: " + mTransformJButton.getName(), e); } catch(Exception f){ Util.handleExceptionNoRestart("Error purchasing:", f); mTransformJButton.setFailedProcureView(); SwingUtilities.invokeLater( new Runnable(){ public void run(){ MOneButtonJDialog.factory(Util.getMMainJFrame(), "", "A problem occurred while purchasing:<br>" + mTransformJButton.getDisplayName() + "<br>Please try again or contact Untangle Networks for assistance.", mTransformJButton.getDisplayName() + " Warning", ""); }}); } } } finally{ //mTransformJButton.setIsTrial(false); dont need this shite } }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/a63967a13e15b9fb68b7c6728ea91a7feb69ffcc/PolicyStateMachine.java/clean/gui/api/com/untangle/gui/main/PolicyStateMachine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
23701,
12,
6385,
490,
4059,
46,
3616,
312,
4059,
46,
3616,
13,
1216,
7558,
288,
5411,
775,
95,
7734,
368,
759,
19316,
6859,
348,
4830,
4269,
7071,
4136,
21667,
7076,
22880,
27751,
5355,
20814,
15932,
432,
605,
21371,
7734,
490,
1270,
4217,
8526,
2282,
984,
13435,
49,
484,
1023,
273,
3564,
18,
588,
6364,
2147,
1318,
7675,
318,
13435,
5621,
7734,
1250,
5876,
273,
638,
31,
7734,
364,
12,
490,
1270,
4217,
312,
1270,
4217,
294,
2282,
984,
13435,
49,
484,
1023,
262,
95,
10792,
309,
12,
81,
4059,
46,
3616,
18,
17994,
7675,
14963,
12,
81,
1270,
4217,
18,
17994,
1435,
3719,
95,
13491,
5876,
273,
629,
31,
13491,
898,
31,
10792,
289,
7734,
289,
7734,
309,
12,
5876,
262,
10792,
327,
31,
202,
202,
1307,
5467,
12786,
21595,
7783,
7734,
490,
1270,
4217,
8526,
2282,
16747,
49,
484,
1023,
273,
3564,
18,
588,
6364,
2147,
1318,
7675,
13435,
5621,
368,
364,
999,
5137,
7734,
1525,
498,
273,
3564,
18,
588,
6364,
2147,
1318,
7675,
5425,
12,
81,
4059,
46,
3616,
18,
17994,
10663,
7734,
532,
18,
10032,
4341,
18,
20292,
18,
1367,
18,
7413,
8000,
273,
394,
532,
18,
10032,
4341,
18,
20292,
18,
1367,
18,
7413,
12,
81,
4059,
46,
3616,
1769,
7734,
1323,
261,
3767,
13,
288,
10792,
2252,
18,
1367,
18,
682,
32,
6410,
5491,
34,
328,
625,
273,
3564,
18,
588,
6364,
2147,
1318,
7675,
588,
5491,
12,
856,
1769,
10792,
364,
261,
6410,
5491,
2359,
294,
328,
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,
3238,
918,
23701,
12,
6385,
490,
4059,
46,
3616,
312,
4059,
46,
3616,
13,
1216,
7558,
288,
5411,
775,
95,
7734,
368,
759,
19316,
6859,
348,
4830,
4269,
7071,
4136,
21667,
7076,
22880,
27751,
5355,
20814,
15932,
432,
605,
21371,
7734,
490,
1270,
4217,
8526,
2282,
984,
13435,
49,
484,
1023,
273,
3564,
18,
588,
6364,
2147,
1318,
7675,
318,
13435,
5621,
7734,
1250,
5876,
273,
638,
31,
7734,
364,
12,
490,
1270,
4217,
312,
1270,
4217,
294,
2282,
984,
13435,
49,
484,
1023,
262,
95,
10792,
309,
12,
81,
4059,
46,
3616,
18,
17994,
7675,
14963,
12,
81,
1270,
4217,
18,
17994,
1435,
3719,
95,
13491,
5876,
273,
629,
31,
13491,
898,
31,
10792,
289,
7734,
289,
2
] |
int featureID, Class baseClass, NotificationChain msgs )
|
int featureID, NotificationChain msgs )
|
public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case AttributePackage.DATA_POINT_COMPONENT__FORMAT_SPECIFIER : return basicSetFormatSpecifier( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/DataPointComponentImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/DataPointComponentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
202,
95,
1082,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
6966,
16,
23955,
262,
262,
1082,
202,
95,
9506,
202,
3593,
3601,
2261,
18,
4883,
67,
8941,
67,
22922,
972,
7254,
67,
13847,
10591,
294,
6862,
202,
2463,
5337,
694,
1630,
21416,
12,
446,
16,
8733,
11272,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
16376,
3288,
12,
1308,
1638,
16,
6862,
1082,
202,
7238,
734,
16,
6862,
1082,
202,
1969,
797,
16,
6862,
1082,
202,
27439,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
425,
8252,
694,
2170,
12,
446,
16,
6966,
16,
8733,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
202,
95,
1082,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
6966,
16,
23955,
262,
262,
1082,
202,
95,
9506,
202,
3593,
3601,
2261,
18,
4883,
67,
8941,
67,
22922,
972,
7254,
67,
13847,
10591,
294,
6862,
202,
2463,
5337,
694,
1630,
21416,
12,
446,
16,
8733,
11272,
9506,
202,
1886,
294,
6862,
202,
2463,
425,
9791,
16376,
3288,
12,
1308,
1638,
16,
6862,
1082,
202,
7238,
734,
16,
6862,
1082,
202,
1969,
797,
16,
6862,
1082,
202,
27439,
11272,
1082,
202,
97,
2
] |
super.initialize(context, languageModel, grammar, models);
|
super.initialize(context, languageModel, dictionary, grammar, models); this.acousticModels = models;
|
public void initialize(String context, LanguageModel languageModel, Grammar grammar, AcousticModel[] models) { SphinxProperties props = SphinxProperties.getSphinxProperties(context); this.tokenStackCapacity = props.getInt (PROP_STACK_CAPACITY, PROP_STACK_CAPACITY_DEFAULT); this.tieLevel = props.getString (PROP_TIE_LEVEL, PROP_TIE_LEVEL_DEFAULT); super.initialize(context, languageModel, grammar, models); System.out.println("Finished ParallelSimpleLinguist initialize()"); }
|
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/0a65ad4ce324d8b267621453836c1faa0a5f0132/ParallelSimpleLinguist.java/buggy/edu/cmu/sphinx/research/parallel/ParallelSimpleLinguist.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
780,
819,
16,
9889,
1488,
2653,
1488,
16,
13491,
27809,
6473,
16,
432,
2894,
641,
335,
1488,
8526,
3679,
13,
288,
7734,
348,
15922,
2297,
3458,
273,
348,
15922,
2297,
18,
588,
55,
15922,
2297,
12,
2472,
1769,
3639,
333,
18,
2316,
2624,
7437,
273,
3458,
18,
588,
1702,
5411,
261,
15811,
67,
21971,
67,
17296,
30041,
16,
16258,
67,
21971,
67,
17296,
30041,
67,
5280,
1769,
3639,
333,
18,
30858,
2355,
273,
3458,
18,
588,
780,
5411,
261,
15811,
67,
56,
8732,
67,
10398,
16,
16258,
67,
56,
8732,
67,
10398,
67,
5280,
1769,
3639,
2240,
18,
11160,
12,
2472,
16,
2653,
1488,
16,
3880,
16,
6473,
16,
3679,
1769,
333,
18,
24363,
641,
335,
8430,
273,
3679,
31,
3639,
2332,
18,
659,
18,
8222,
2932,
10577,
20203,
5784,
48,
14344,
376,
4046,
1435,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
780,
819,
16,
9889,
1488,
2653,
1488,
16,
13491,
27809,
6473,
16,
432,
2894,
641,
335,
1488,
8526,
3679,
13,
288,
7734,
348,
15922,
2297,
3458,
273,
348,
15922,
2297,
18,
588,
55,
15922,
2297,
12,
2472,
1769,
3639,
333,
18,
2316,
2624,
7437,
273,
3458,
18,
588,
1702,
5411,
261,
15811,
67,
21971,
67,
17296,
30041,
16,
16258,
67,
21971,
67,
17296,
30041,
67,
5280,
1769,
3639,
333,
18,
30858,
2355,
273,
3458,
18,
588,
780,
5411,
261,
15811,
67,
56,
8732,
67,
10398,
16,
16258,
67,
56,
8732,
67,
10398,
67,
5280,
1769,
3639,
2240,
18,
11160,
12,
2472,
16,
2653,
1488,
16,
3880,
16,
6473,
16,
3679,
1769,
333,
18,
24363,
2
] |
out.write(newline);
|
if(out != null) out.close(); else _out.close();
|
private void write(Buffer buffer, OutputStream _out) throws IOException { String encoding = buffer.getStringProperty(Buffer.ENCODING); if(encoding.equals(MiscUtilities.UTF_8_Y)) { // not supported by Java... _out.write(UTF8_MAGIC_1); _out.write(UTF8_MAGIC_2); _out.write(UTF8_MAGIC_3); _out.flush(); encoding = "UTF-8"; } BufferedWriter out = new BufferedWriter( new OutputStreamWriter(_out,encoding), IOBUFSIZE); Segment lineSegment = new Segment(); String newline = buffer.getStringProperty(Buffer.LINESEP); if(newline == null) newline = System.getProperty("line.separator"); setProgressMaximum(buffer.getLineCount() / PROGRESS_INTERVAL); setProgressValue(0); int i = 0; while(i < buffer.getLineCount()) { buffer.getLineText(i,lineSegment); out.write(lineSegment.array,lineSegment.offset, lineSegment.count); if(i != buffer.getLineCount() - 1) { out.write(newline); } if(++i % PROGRESS_INTERVAL == 0) setProgressValue(i / PROGRESS_INTERVAL); } if(jEdit.getBooleanProperty("stripTrailingEOL") && buffer.getBooleanProperty(Buffer.TRAILING_EOL)) { out.write(newline); } out.close(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/98049c0a782b8a9b881808eee0dbe7cca03d9fa0/BufferIORequest.java/clean/org/gjt/sp/jedit/buffer/BufferIORequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
12,
1892,
1613,
16,
8962,
389,
659,
13,
202,
202,
15069,
1860,
202,
95,
202,
202,
780,
2688,
273,
1613,
18,
588,
780,
1396,
12,
1892,
18,
14672,
1769,
202,
202,
430,
12,
5999,
18,
14963,
12,
11729,
71,
11864,
18,
5159,
67,
28,
67,
61,
3719,
202,
202,
95,
1082,
202,
759,
486,
3260,
635,
5110,
2777,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
21,
1769,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
22,
1769,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
23,
1769,
1082,
202,
67,
659,
18,
11330,
5621,
1082,
202,
5999,
273,
315,
5159,
17,
28,
14432,
202,
202,
97,
202,
202,
17947,
2289,
596,
273,
394,
22490,
12,
1082,
202,
2704,
24248,
24899,
659,
16,
5999,
3631,
1082,
202,
4294,
3000,
42,
4574,
1769,
202,
202,
4131,
980,
4131,
273,
394,
10807,
5621,
202,
202,
780,
9472,
273,
1613,
18,
588,
780,
1396,
12,
1892,
18,
5997,
28610,
1769,
202,
202,
430,
12,
22861,
422,
446,
13,
1082,
202,
22861,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
202,
202,
542,
5491,
13528,
12,
4106,
18,
588,
1670,
1380,
1435,
342,
4629,
19126,
67,
16435,
1769,
202,
202,
542,
5491,
620,
12,
20,
1769,
202,
202,
474,
277,
273,
374,
31,
202,
202,
17523,
12,
77,
411,
1613,
18,
588,
1670,
1380,
10756,
202,
202,
95,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
12,
1892,
1613,
16,
8962,
389,
659,
13,
202,
202,
15069,
1860,
202,
95,
202,
202,
780,
2688,
273,
1613,
18,
588,
780,
1396,
12,
1892,
18,
14672,
1769,
202,
202,
430,
12,
5999,
18,
14963,
12,
11729,
71,
11864,
18,
5159,
67,
28,
67,
61,
3719,
202,
202,
95,
1082,
202,
759,
486,
3260,
635,
5110,
2777,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
21,
1769,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
22,
1769,
1082,
202,
67,
659,
18,
2626,
12,
5159,
28,
67,
49,
22247,
67,
23,
1769,
1082,
202,
67,
659,
18,
11330,
5621,
1082,
202,
5999,
273,
2
] |
else if(range.getFrom().compareTo( propertyValue ) == -1) {
|
else if(range.getFrom().compareTo( propertyValue ) == 1) {
|
protected void processValidate(Object propertyValue, Errors errors) { if(!this.range.contains(propertyValue)) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, range.getFrom(), range.getTo() }; if(propertyValue == null) { super.rejectValue(errors,RANGE_CONSTRAINT + INVALID_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_RANGE_MESSAGE, args )); } else if(range.getFrom().compareTo( propertyValue ) == -1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOSMALL_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } else if(range.getFrom().compareTo(propertyValue) == 1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOBIG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } } }
|
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/1db9771587982d3c4e7d8b077a7c3357d6207c4c/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1207,
4270,
12,
921,
12337,
16,
9372,
1334,
13,
288,
5411,
309,
12,
5,
2211,
18,
3676,
18,
12298,
12,
4468,
620,
3719,
288,
7734,
1033,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
16,
1048,
18,
588,
1265,
9334,
1048,
18,
588,
774,
1435,
225,
289,
31,
7734,
309,
12,
4468,
620,
422,
446,
13,
288,
10792,
2240,
18,
24163,
620,
12,
4324,
16,
15928,
67,
15199,
397,
10071,
67,
14964,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
15928,
67,
8723,
16,
833,
262,
1769,
7734,
289,
7734,
469,
309,
12,
3676,
18,
588,
1265,
7675,
9877,
774,
12,
12337,
262,
422,
404,
13,
288,
10792,
2240,
18,
24163,
620,
12,
4324,
16,
4574,
67,
15199,
397,
8493,
4618,
49,
4685,
67,
14964,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
4574,
67,
8723,
16,
833,
262,
1769,
7734,
289,
7734,
469,
309,
12,
3676,
18,
588,
1265,
7675,
9877,
774,
12,
4468,
620,
13,
422,
404,
13,
288,
10792,
2240,
18,
24163,
620,
12,
4324,
16,
4574,
67,
15199,
397,
8493,
5704,
3047,
67,
14964,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
4574,
67,
8723,
16,
833,
262,
1769,
7734,
289,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1207,
4270,
12,
921,
12337,
16,
9372,
1334,
13,
288,
5411,
309,
12,
5,
2211,
18,
3676,
18,
12298,
12,
4468,
620,
3719,
288,
7734,
1033,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
16,
1048,
18,
588,
1265,
9334,
1048,
18,
588,
774,
1435,
225,
289,
31,
7734,
309,
12,
4468,
620,
422,
446,
13,
288,
10792,
2240,
18,
24163,
620,
12,
4324,
16,
15928,
67,
15199,
397,
10071,
67,
14964,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
15928,
67,
8723,
16,
833,
262,
1769,
7734,
289,
7734,
469,
309,
12,
3676,
18,
588,
1265,
7675,
9877,
774,
12,
12337,
262,
422,
2
] |
Map arguments,
|
String arg,
|
public IProblem createProblem( int id, int start, int end, int line, char[] file, Map arguments, boolean warn, boolean error) { if( checkBitmask( id, IProblem.INTERNAL_RELATED ) ) return createInternalProblem( id, start, end, line, file, arguments, warn, error ); if ( checkBitmask( id, IProblem.SCANNER_RELATED ) || checkBitmask( id, IProblem.PREPROCESSOR_RELATED ) ) return super.createProblem( id, start, end, line, file, createMessage(id, arguments, line, file), arguments, warn, error); return null; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/024eca49581fcf338305dc1610be52c9bbb44581/ScannerProblemFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ScannerProblemFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
13719,
752,
13719,
12,
202,
202,
474,
612,
16,
202,
202,
474,
787,
16,
202,
202,
474,
679,
16,
202,
202,
474,
980,
16,
202,
202,
3001,
8526,
585,
16,
202,
202,
863,
1775,
16,
202,
202,
6494,
1894,
16,
202,
202,
6494,
555,
13,
202,
95,
202,
202,
430,
12,
866,
5775,
4455,
12,
612,
16,
467,
13719,
18,
14005,
67,
15868,
6344,
262,
262,
26924,
202,
2463,
752,
3061,
13719,
12,
612,
16,
787,
16,
679,
16,
980,
16,
585,
16,
1775,
16,
1894,
16,
555,
11272,
25083,
202,
430,
261,
225,
202,
1893,
5775,
4455,
12,
612,
16,
467,
13719,
18,
2312,
11489,
654,
67,
15868,
6344,
262,
747,
4697,
202,
1893,
5775,
4455,
12,
612,
16,
467,
13719,
18,
3670,
16560,
916,
67,
15868,
6344,
262,
262,
1082,
202,
2463,
2240,
18,
2640,
13719,
12,
9506,
202,
350,
16,
9506,
202,
1937,
16,
9506,
202,
409,
16,
9506,
202,
1369,
16,
9506,
202,
768,
16,
9506,
202,
2640,
1079,
12,
350,
16,
1775,
16,
980,
16,
585,
3631,
9506,
202,
7099,
16,
9506,
202,
8935,
16,
9506,
202,
1636,
1769,
25083,
202,
2463,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
13719,
752,
13719,
12,
202,
202,
474,
612,
16,
202,
202,
474,
787,
16,
202,
202,
474,
679,
16,
202,
202,
474,
980,
16,
202,
202,
3001,
8526,
585,
16,
202,
202,
863,
1775,
16,
202,
202,
6494,
1894,
16,
202,
202,
6494,
555,
13,
202,
95,
202,
202,
430,
12,
866,
5775,
4455,
12,
612,
16,
467,
13719,
18,
14005,
67,
15868,
6344,
262,
262,
26924,
202,
2463,
752,
3061,
13719,
12,
612,
16,
787,
16,
679,
16,
980,
16,
585,
16,
1775,
16,
1894,
16,
555,
11272,
25083,
202,
430,
261,
225,
202,
1893,
5775,
4455,
12,
612,
16,
467,
13719,
18,
2312,
11489,
654,
67,
15868,
6344,
262,
747,
4697,
202,
1893,
2
] |
return this; }
|
return this; }
|
public Component getComponentIdentity() { return this; }
|
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/466c325df727388912d7efbc91a624f8a1e015c8/ProActiveComponentImpl.java/buggy/src/org/objectweb/proactive/core/component/identity/ProActiveComponentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
10322,
4334,
1435,
288,
202,
202,
2463,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
10322,
4334,
1435,
288,
202,
202,
2463,
333,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
LOG.debug("document stored."); if (getName().equals(DBBroker.SYSTEM_COLLECTION) && document.getFileName().equals(SecurityManager.ACL_FILE) && privileged == false) { LOG.debug("users.xml changed"); broker.getBrokerPool().reloadSecurityManager(broker); } } finally { document.getUpdateLock().release(Lock.WRITE_LOCK); releaseReader(broker, info.getReader()); }
|
LOG.debug("document stored."); if (getName().equals(DBBroker.SYSTEM_COLLECTION) && document.getFileName().equals(SecurityManager.ACL_FILE) && privileged == false) { LOG.debug("users.xml changed"); broker.getBrokerPool().reloadSecurityManager(broker); } } finally { document.getUpdateLock().release(Lock.WRITE_LOCK); releaseReader(broker, info.getReader()); }
|
private void storeInternal(Txn transaction, DBBroker broker, IndexInfo info, boolean privileged, StoreBlock doParse) throws EXistException, SAXException { DocumentImpl document = info.getIndexer().getDocument(); LOG.debug("storing document " + document.getDocId() + " ..."); try { doParse.run(); broker.storeDocument(transaction, document); broker.closeDocument(); broker.flush();// broker.checkTree(document); LOG.debug("document stored."); // if we are running in privileged mode (e.g. backup/restore), notify the SecurityManager about changes if (getName().equals(DBBroker.SYSTEM_COLLECTION) && document.getFileName().equals(SecurityManager.ACL_FILE) && privileged == false) { // inform the security manager that system data has changed LOG.debug("users.xml changed"); broker.getBrokerPool().reloadSecurityManager(broker); } } finally { document.getUpdateLock().release(Lock.WRITE_LOCK); releaseReader(broker, info.getReader()); } collectionConfEnabled = true; broker.deleteObservers(); info.finishTrigger(broker, transaction, document); broker.getBrokerPool().getNotificationService().notifyUpdate(document, (info.getEvent() == Trigger.UPDATE_DOCUMENT_EVENT ? UpdateListener.UPDATE : UpdateListener.ADD)); //Is it a collection configuration file ? if (getName().startsWith(CollectionConfigurationManager.CONFIG_COLLECTION)) { if (getConfiguration(broker).getDocName() == null || getConfiguration(broker).getDocName().equals(document.getFileName())) { broker.sync(Sync.MAJOR_SYNC); //TODO : ugly construct since we should re-read the configuration getConfiguration(broker).setDocName(document.getFileName()); } } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/5c28ec462ac6a54a5cc87ba38ba7b625b01992e2/Collection.java/clean/src/org/exist/collections/Collection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1707,
3061,
12,
13789,
2492,
16,
2383,
11194,
8625,
16,
3340,
966,
1123,
16,
1250,
11334,
2423,
16,
4994,
1768,
741,
3201,
13,
1216,
5675,
376,
503,
16,
14366,
288,
202,
202,
2519,
2828,
1668,
273,
1123,
18,
588,
20877,
7675,
588,
2519,
5621,
202,
202,
4842,
18,
4148,
2932,
334,
6053,
1668,
315,
397,
1668,
18,
588,
1759,
548,
1435,
397,
315,
1372,
8863,
202,
202,
698,
288,
1082,
202,
2896,
3201,
18,
2681,
5621,
2398,
1082,
202,
21722,
18,
2233,
2519,
12,
7958,
16,
1668,
1769,
1082,
202,
21722,
18,
4412,
2519,
5621,
1082,
202,
21722,
18,
11330,
5621,
759,
1082,
202,
21722,
18,
1893,
2471,
12,
5457,
1769,
1082,
202,
4842,
18,
4148,
2932,
5457,
4041,
1199,
1769,
1082,
202,
759,
309,
732,
854,
3549,
316,
11334,
2423,
1965,
261,
73,
18,
75,
18,
5114,
19,
13991,
3631,
5066,
326,
6036,
1318,
2973,
3478,
1082,
202,
430,
261,
17994,
7675,
14963,
12,
2290,
11194,
18,
14318,
67,
25964,
13,
597,
1668,
18,
588,
4771,
7675,
14963,
12,
4368,
1318,
18,
9486,
67,
3776,
13,
9506,
3639,
597,
11334,
2423,
422,
629,
13,
288,
9506,
565,
368,
13235,
326,
4373,
3301,
716,
2619,
501,
711,
3550,
9506,
565,
2018,
18,
4148,
2932,
5577,
18,
2902,
3550,
8863,
9506,
565,
8625,
18,
588,
11194,
2864,
7675,
17517,
4368,
1318,
12,
21722,
1769,
1082,
202,
97,
202,
202,
97,
3095,
288,
1082,
202,
5457,
18,
588,
1891,
2531,
7675,
9340,
12,
2531,
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,
1152,
918,
1707,
3061,
12,
13789,
2492,
16,
2383,
11194,
8625,
16,
3340,
966,
1123,
16,
1250,
11334,
2423,
16,
4994,
1768,
741,
3201,
13,
1216,
5675,
376,
503,
16,
14366,
288,
202,
202,
2519,
2828,
1668,
273,
1123,
18,
588,
20877,
7675,
588,
2519,
5621,
202,
202,
4842,
18,
4148,
2932,
334,
6053,
1668,
315,
397,
1668,
18,
588,
1759,
548,
1435,
397,
315,
1372,
8863,
202,
202,
698,
288,
1082,
202,
2896,
3201,
18,
2681,
5621,
2398,
1082,
202,
21722,
18,
2233,
2519,
12,
7958,
16,
1668,
1769,
1082,
202,
21722,
18,
4412,
2519,
5621,
1082,
202,
21722,
18,
11330,
5621,
759,
1082,
202,
21722,
18,
1893,
2471,
12,
5457,
1769,
1082,
202,
4842,
18,
2
] |
for(int i = 0; i < debugItems.length; ++i) {
|
for (int i = 0; i < debugItems.length; ++i) {
|
Menubar(Main db) { super(); this.db = db; String[] fileItems = {"Open...", "Run...", "", "Exit"}; String[] fileCmds = {"Open", "Load", "", "Exit"}; char[] fileShortCuts = {'0', 'N', '\0', 'X'}; int[] fileAccelerators = {KeyEvent.VK_O, KeyEvent.VK_N, 0, KeyEvent.VK_Q}; String[] editItems = {"Cut", "Copy", "Paste", "Go to function..."}; char[] editShortCuts = {'T', 'C', 'P', 'F'}; String[] debugItems = {"Break", "Go", "Step Into", "Step Over", "Step Out"}; char[] debugShortCuts = {'B', 'G', 'I', 'O', 'T'}; String[] plafItems = {"Metal", "Windows", "Motif"}; char [] plafShortCuts = {'M', 'W', 'F'}; int[] debugAccelerators = {KeyEvent.VK_PAUSE, KeyEvent.VK_F5, KeyEvent.VK_F11, KeyEvent.VK_F7, KeyEvent.VK_F8, 0, 0}; JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('F'); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('E'); JMenu plafMenu = new JMenu("Platform"); plafMenu.setMnemonic('P'); JMenu debugMenu = new JMenu("Debug"); debugMenu.setMnemonic('D'); windowMenu = new JMenu("Window"); windowMenu.setMnemonic('W'); for(int i = 0; i < fileItems.length; ++i) { if(fileItems[i].length() == 0) { fileMenu.addSeparator(); } else { JMenuItem item = new JMenuItem(fileItems[i], fileShortCuts[i]); item.setActionCommand(fileCmds[i]); item.addActionListener(this); fileMenu.add(item); if(fileAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(fileAccelerators[i], Event.CTRL_MASK); item.setAccelerator(k); } } } for(int i = 0; i < editItems.length; ++i) { JMenuItem item = new JMenuItem(editItems[i], editShortCuts[i]); item.addActionListener(this); editMenu.add(item); } for(int i = 0; i < plafItems.length; ++i) { JMenuItem item = new JMenuItem(plafItems[i], plafShortCuts[i]); item.addActionListener(this); plafMenu.add(item); } for(int i = 0; i < debugItems.length; ++i) { JMenuItem item = new JMenuItem(debugItems[i], debugShortCuts[i]); item.addActionListener(this); if(debugAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(debugAccelerators[i], 0); item.setAccelerator(k); } if(i != 0) { item.setEnabled(false); } debugMenu.add(item); } breakOnExceptions = new JCheckBoxMenuItem("Break on Exceptions"); breakOnExceptions.setMnemonic('X'); breakOnExceptions.addActionListener(this); breakOnExceptions.setSelected(false); debugMenu.add(breakOnExceptions); add(fileMenu); add(editMenu); //add(plafMenu); add(debugMenu); JMenuItem item; windowMenu.add(item = new JMenuItem("Cascade", 'A')); item.addActionListener(this); windowMenu.add(item = new JMenuItem("Tile", 'T')); item.addActionListener(this); windowMenu.addSeparator(); windowMenu.add(item = new JMenuItem("Console", 'C')); item.addActionListener(this); add(windowMenu); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
490,
275,
373,
297,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
514,
8526,
585,
3126,
225,
273,
12528,
3678,
7070,
16,
315,
1997,
7070,
16,
23453,
315,
6767,
6,
20451,
3639,
514,
8526,
585,
5931,
87,
225,
273,
12528,
3678,
3113,
315,
2563,
3113,
23453,
315,
6767,
6,
20451,
3639,
1149,
8526,
585,
4897,
39,
12940,
273,
13666,
20,
2187,
296,
50,
2187,
2337,
20,
2187,
296,
60,
11,
20451,
3639,
509,
8526,
585,
18019,
264,
3062,
273,
288,
653,
1133,
18,
58,
47,
67,
51,
16,
21394,
23737,
18,
58,
47,
67,
50,
16,
21394,
374,
16,
21394,
23737,
18,
58,
47,
67,
53,
20451,
3639,
514,
8526,
3874,
3126,
273,
12528,
15812,
3113,
315,
2951,
3113,
315,
52,
14725,
3113,
315,
5741,
358,
445,
7070,
20451,
3639,
1149,
8526,
3874,
4897,
39,
12940,
273,
13666,
56,
2187,
296,
39,
2187,
296,
52,
2187,
296,
42,
11,
20451,
3639,
514,
8526,
1198,
3126,
273,
12528,
7634,
3113,
315,
5741,
3113,
315,
4160,
657,
869,
3113,
315,
4160,
10752,
3113,
315,
4160,
2976,
6,
20451,
3639,
1149,
8526,
1198,
4897,
39,
12940,
273,
13666,
38,
2187,
296,
43,
2187,
296,
45,
2187,
296,
51,
2187,
296,
56,
11,
20451,
3639,
514,
8526,
886,
1727,
3126,
273,
12528,
26365,
3113,
315,
10399,
3113,
315,
24749,
430,
6,
20451,
3639,
1149,
5378,
886,
1727,
4897,
39,
12940,
273,
13666,
49,
2187,
296,
59,
2187,
296,
42,
11,
20451,
3639,
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,
490,
275,
373,
297,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
514,
8526,
585,
3126,
225,
273,
12528,
3678,
7070,
16,
315,
1997,
7070,
16,
23453,
315,
6767,
6,
20451,
3639,
514,
8526,
585,
5931,
87,
225,
273,
12528,
3678,
3113,
315,
2563,
3113,
23453,
315,
6767,
6,
20451,
3639,
1149,
8526,
585,
4897,
39,
12940,
273,
13666,
20,
2187,
296,
50,
2187,
2337,
20,
2187,
296,
60,
11,
20451,
3639,
509,
8526,
585,
18019,
264,
3062,
273,
288,
653,
1133,
18,
58,
47,
67,
51,
16,
21394,
23737,
18,
58,
47,
67,
50,
16,
21394,
374,
16,
21394,
23737,
18,
58,
47,
67,
53,
20451,
3639,
514,
8526,
2
] |
if (textControl == null) return;
|
if (textControl == null) { return; }
|
public void addText(Text textControl) { if (textControl == null) return; activeTextControl = textControl; textControl.addListener(SWT.Activate, textControlListener); textControl.addListener(SWT.Deactivate, textControlListener); // We really want a selection listener but it is not supported so we // use a key listener and a mouse listener to know when selection changes // may have occured textControl.addKeyListener(keyAdapter); textControl.addMouseListener(mouseAdapter); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a23c3b9bac4db696a0452560047155775a707b7/TextActionHandler.java/clean/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/TextActionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25796,
12,
1528,
977,
3367,
13,
288,
3639,
309,
261,
955,
3367,
422,
446,
13,
5411,
327,
31,
3639,
2695,
1528,
3367,
273,
977,
3367,
31,
3639,
977,
3367,
18,
1289,
2223,
12,
55,
8588,
18,
21370,
16,
977,
3367,
2223,
1769,
3639,
977,
3367,
18,
1289,
2223,
12,
55,
8588,
18,
758,
10014,
16,
977,
3367,
2223,
1769,
3639,
368,
1660,
8654,
2545,
279,
4421,
2991,
1496,
518,
353,
486,
3260,
1427,
732,
3639,
368,
999,
279,
498,
2991,
471,
279,
7644,
2991,
358,
5055,
1347,
4421,
3478,
3639,
368,
2026,
1240,
16206,
3639,
977,
3367,
18,
1289,
653,
2223,
12,
856,
4216,
1769,
3639,
977,
3367,
18,
1289,
9186,
2223,
12,
11697,
4216,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
25796,
12,
1528,
977,
3367,
13,
288,
3639,
309,
261,
955,
3367,
422,
446,
13,
5411,
327,
31,
3639,
2695,
1528,
3367,
273,
977,
3367,
31,
3639,
977,
3367,
18,
1289,
2223,
12,
55,
8588,
18,
21370,
16,
977,
3367,
2223,
1769,
3639,
977,
3367,
18,
1289,
2223,
12,
55,
8588,
18,
758,
10014,
16,
977,
3367,
2223,
1769,
3639,
368,
1660,
8654,
2545,
279,
4421,
2991,
1496,
518,
353,
486,
3260,
1427,
732,
3639,
368,
999,
279,
498,
2991,
471,
279,
7644,
2991,
358,
5055,
1347,
4421,
3478,
3639,
368,
2026,
1240,
16206,
3639,
977,
3367,
18,
1289,
653,
2223,
12,
856,
4216,
1769,
3639,
977,
3367,
18,
1289,
9186,
2223,
12,
11697,
4216,
1769,
2
] |
String handleCommon(Map context, Element request, String opAttr, byte type) throws ServiceException, SoapFaultException {
|
String handleCommon(Map<String,Object> context, Element request, String opAttr, byte type) throws ServiceException, SoapFaultException {
|
String handleCommon(Map context, Element request, String opAttr, byte type) throws ServiceException, SoapFaultException { Element action = request.getElement(MailService.E_ACTION); ZimbraContext lc = getZimbraContext(context); Mailbox mbox = getRequestedMailbox(lc); // determine the requested operation String op; boolean flagValue = true; if (opAttr.length() > 1 && opAttr.startsWith("!")) { flagValue = false; op = opAttr.substring(1); } else op = opAttr; // figure out which items are local and which ones are remote, and proxy accordingly ArrayList<Integer> local = new ArrayList<Integer>(); HashMap<String, StringBuffer> remote = new HashMap<String, StringBuffer>(); partitionItems(lc, action.getAttribute(MailService.A_ID), local, remote); // we don't yet support moving from a remote mailbox if (op.equals(OP_MOVE) && !remote.isEmpty()) throw ServiceException.INVALID_REQUEST("cannot move item between mailboxes", null); StringBuffer successes = proxyRemoteItems(action, remote, request, context); if (local.isEmpty()) return successes.toString(); OperationContext octxt = lc.getOperationContext(); String constraint = action.getAttribute(MailService.A_TARGET_CONSTRAINT, null); TargetConstraint tcon = TargetConstraint.parseConstraint(mbox, constraint); // iterate over the local items and perform the requested operation for (int id: local) { if (op.equals(OP_FLAG)) mbox.alterTag(octxt, id, type, Flag.ID_FLAG_FLAGGED, flagValue, tcon); else if (op.equals(OP_READ)) mbox.alterTag(octxt, id, type, Flag.ID_FLAG_UNREAD, !flagValue, tcon); else if (op.equals(OP_TAG)) { int tagId = (int) action.getAttributeLong(MailService.A_TAG); mbox.alterTag(octxt, id, type, tagId, flagValue, tcon); } else if (op.equals(OP_COLOR)) { byte color = (byte) action.getAttributeLong(MailService.A_COLOR); mbox.setColor(octxt, id, type, color); } else if (op.equals(OP_HARD_DELETE)) mbox.delete(octxt, id, type, tcon); else if (op.equals(OP_MOVE)) { ItemId iidFolder = new ItemId(action.getAttribute(MailService.A_FOLDER), lc); mbox.move(octxt, id, type, iidFolder.getId(), tcon); } else if (op.equals(OP_SPAM)) { int defaultFolder = flagValue ? Mailbox.ID_FOLDER_SPAM : Mailbox.ID_FOLDER_INBOX; int folderId = (int) action.getAttributeLong(MailService.A_FOLDER, defaultFolder); mbox.move(octxt, id, type, folderId, tcon); SpamHandler.getInstance().handle(mbox, id, type, flagValue); } else if (op.equals(OP_UPDATE)) { ItemId iidFolder = new ItemId(action.getAttribute(MailService.A_FOLDER, "-1"), lc); if (!iidFolder.belongsTo(mbox)) throw ServiceException.INVALID_REQUEST("cannot move item between mailboxes", null); String flags = action.getAttribute(MailService.A_FLAGS, null); String tags = action.getAttribute(MailService.A_TAGS, null); byte color = (byte) action.getAttributeLong(MailService.A_COLOR, -1); if (iidFolder.getId() > 0) mbox.move(octxt, id, type, iidFolder.getId(), tcon); if (tags != null || flags != null) mbox.setTags(octxt, id, type, flags, tags, tcon); if (color >= 0) mbox.setColor(octxt, id, type, color); } else throw ServiceException.INVALID_REQUEST("unknown operation: " + op, null); successes.append(successes.length() > 0 ? "," : "").append(lc.formatItemId(id)); } return successes.toString(); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2f28aedf0891e4a964b841e943abc74d736c864c/ItemAction.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ItemAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
1640,
6517,
12,
863,
32,
780,
16,
921,
34,
819,
16,
3010,
590,
16,
514,
1061,
3843,
16,
1160,
618,
13,
1216,
16489,
16,
21789,
7083,
503,
288,
3639,
3010,
1301,
273,
590,
18,
21336,
12,
6759,
1179,
18,
41,
67,
12249,
1769,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
11542,
2147,
312,
2147,
273,
4328,
329,
30239,
12,
17704,
1769,
3639,
368,
4199,
326,
3764,
1674,
3639,
514,
1061,
31,
3639,
1250,
2982,
620,
273,
638,
31,
3639,
309,
261,
556,
3843,
18,
2469,
1435,
405,
404,
597,
1061,
3843,
18,
17514,
1190,
2932,
4442,
3719,
288,
5411,
2982,
620,
273,
629,
31,
5411,
1061,
273,
1061,
3843,
18,
28023,
12,
21,
1769,
3639,
289,
469,
5411,
1061,
273,
1061,
3843,
31,
3639,
368,
7837,
596,
1492,
1516,
854,
1191,
471,
1492,
5945,
854,
2632,
16,
471,
2889,
15905,
3639,
2407,
32,
4522,
34,
1191,
273,
394,
2407,
32,
4522,
34,
5621,
3639,
4317,
32,
780,
16,
6674,
34,
2632,
273,
394,
4317,
32,
780,
16,
6674,
34,
5621,
3639,
3590,
3126,
12,
17704,
16,
1301,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
734,
3631,
1191,
16,
2632,
1769,
3639,
368,
732,
2727,
1404,
4671,
2865,
12499,
628,
279,
2632,
14187,
3639,
309,
261,
556,
18,
14963,
12,
3665,
67,
16537,
13,
597,
401,
7222,
18,
291,
1921,
10756,
5411,
604,
16489,
18,
9347,
67,
5519,
2932,
12892,
3635,
761,
3086,
14187,
281,
3113,
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,
514,
1640,
6517,
12,
863,
32,
780,
16,
921,
34,
819,
16,
3010,
590,
16,
514,
1061,
3843,
16,
1160,
618,
13,
1216,
16489,
16,
21789,
7083,
503,
288,
3639,
3010,
1301,
273,
590,
18,
21336,
12,
6759,
1179,
18,
41,
67,
12249,
1769,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
11542,
2147,
312,
2147,
273,
4328,
329,
30239,
12,
17704,
1769,
3639,
368,
4199,
326,
3764,
1674,
3639,
514,
1061,
31,
3639,
1250,
2982,
620,
273,
638,
31,
3639,
309,
261,
556,
3843,
18,
2469,
1435,
405,
404,
597,
1061,
3843,
18,
17514,
1190,
2932,
4442,
3719,
288,
5411,
2982,
620,
273,
629,
31,
5411,
1061,
273,
1061,
3843,
2
] |
int len = listeners.length; PropertyChangeListener[] newArray = new PropertyChangeListener[len + 1]; for (int i = 0; i < len; ++i) { newArray[i] = listeners[i]; if (listener.equals(listeners[i])) return;
|
int len = listeners.length; PropertyChangeListener[] newArray = new PropertyChangeListener[len + 1]; for (int i = 0; i < len; ++i) { newArray[i] = listeners[i]; if (listener.equals(listeners[i])) return; } newArray[len] = listener; listeners = newArray;
|
public synchronized void addPropertyChangeListenerIfAbsent(PropertyChangeListener listener) { if (listener == null) throw new NullPointerException(); // Copy while checking if already present. int len = listeners.length; PropertyChangeListener[] newArray = new PropertyChangeListener[len + 1]; for (int i = 0; i < len; ++i) { newArray[i] = listeners[i]; if (listener.equals(listeners[i])) return; // already present -- throw away copy } newArray[len] = listener; listeners = newArray; }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/PropertyChangeMulticaster.java/buggy/src/java/org/logicalcobwebs/concurrent/PropertyChangeMulticaster.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
14324,
15744,
14711,
12,
1396,
15744,
2991,
13,
288,
565,
309,
261,
12757,
422,
446,
13,
604,
394,
10108,
5621,
565,
368,
5631,
1323,
6728,
309,
1818,
3430,
18,
565,
509,
562,
273,
4679,
18,
2469,
31,
377,
4276,
15744,
8526,
11653,
273,
394,
4276,
15744,
63,
1897,
397,
404,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
965,
77,
13,
288,
1377,
11653,
63,
77,
65,
273,
4679,
63,
77,
15533,
1377,
309,
261,
12757,
18,
14963,
12,
16072,
63,
77,
22643,
202,
2463,
31,
368,
1818,
3430,
1493,
604,
10804,
1610,
565,
289,
565,
11653,
63,
1897,
65,
273,
2991,
31,
565,
4679,
273,
11653,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
14324,
15744,
14711,
12,
1396,
15744,
2991,
13,
288,
565,
309,
261,
12757,
422,
446,
13,
604,
394,
10108,
5621,
565,
368,
5631,
1323,
6728,
309,
1818,
3430,
18,
565,
509,
562,
273,
4679,
18,
2469,
31,
377,
4276,
15744,
8526,
11653,
273,
394,
4276,
15744,
63,
1897,
397,
404,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
965,
77,
13,
288,
1377,
11653,
63,
77,
65,
273,
4679,
63,
77,
15533,
1377,
309,
261,
12757,
18,
14963,
12,
16072,
63,
77,
22643,
202,
2463,
31,
368,
1818,
3430,
1493,
604,
10804,
1610,
565,
289,
565,
11653,
63,
1897,
65,
273,
2991,
31,
565,
4679,
273,
11653,
31,
225,
289,
2
] |
private void processMovement(Entity entity, MovePath md) { // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " flees the battlefield.\n"); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. phaseReport.append( " It carries " ) .append( passenger.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( passenger.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), Entity.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = Entity.REMOVE_IN_RETREAT; String leavingText = "carries "; if (mw.isCaptured()) { condition = Entity.REMOVE_CAPTURED; leavingText = "takes "; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); phaseReport.append( " It " ) .append( leavingText ) .append( mw.getDisplayName() ) .append( " with it.\n" ); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( " It takes " ) .append( swarmer.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( swarmerId, Entity.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, Entity.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), Entity.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { phaseReport.append("\n" ); if (entity instanceof Mech) { phaseReport.append( entity.getDisplayName()).append( " ejects.\n"); } else if (entity instanceof Tank) { phaseReport.append( entity.getDisplayName()).append( " is abandoned by its crew.\n"); } phaseReport.append(ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int distance = 0; int mpUsed = 0; int moveType = Entity.MOVE_NONE; int overallMoveType = Entity.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = Entity.MOVE_WALK; overallMoveType = Entity.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = Entity.MOVE_RUN; overallMoveType = Entity.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { if (((Mech)entity).checkForMASCFailure(phaseReport,md)) { // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); // stop for illegal movement if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); wasProne = false; game.resetPSRs(entity); doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (!wasProne && entity.isProne()) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // set last step parameters curPos = step.getPosition(); curFacing = step.getFacing(); final Hex curHex = game.board.getHex(curPos); // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; Hex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = Entity.MOVE_SKID; // What is the first hex in the skid? nextPos = curPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); // Move the entity a number hexes from curPos in the // prevFacing direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.board.contains(nextPos) ) { // Can the entity skid off the map? if ( game.getOptions().booleanOption("push_off_board") ) { // Yup. One dead entity. game.removeEntity(entity.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("*** " ) .append( entity.getDisplayName() ) .append( " has skidded off the field. ***\n"); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. phaseReport.append( " Can't skid off the field.\n" ); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. phaseReport.append( " Can't skid into hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER ) { Terrain land = curHex. getTerrain(Terrain.WATER); if ( land != null ) { curElevation += land.getLevel(); } land = nextHex.getTerrain(Terrain.WATER); if ( land != null ) { nextElevation += land.getLevel(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { phaseReport.append ( " Can not skid uphill into hex " + nextPos.getBoardNum() ).append( ".\n" ); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.board.getBuildingAt(nextPos); boolean bldgSuffered = false; boolean stopTheSkid = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. targets = game.getEntities( nextPos ); if ( targets.hasMoreElements()) { boolean skidChargeHit = false; while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged, // but need to make a to-hit roll if ( !(target instanceof Infantry) ) { ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true); // Calculate hit location. if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER && 0 < nextHex.levelOf(Terrain.WATER) ) { if ( 2 <= nextHex.levelOf(Terrain.WATER) || target.isProne() ) { // Hovercraft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } toHit.setSideTable (Compute.targetSideTable(entity, target)); // roll int roll = Compute.d6(2); // Update report. phaseReport.append( " Skids into " + target.getShortName() + " in hex " + nextPos.getBoardNum() ); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; phaseReport.append(", but the charge is impossible (" ).append( toHit.getDesc() ).append( ") : "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the charge is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); roll = Integer.MAX_VALUE; } else { // report the roll phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); phaseReport.append("rolls " ).append( roll ).append( " : "); } // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. if (roll < toHit.getValue()) { phaseReport.append("misses.\n"); } else { // Resolve the charge. resolveChargeDamage (entity, target, toHit, prevFacing); // HACK: set the entity's location // to the original hex again, for the other targets if (targets.hasMoreElements()) { entity.setPosition(curPos); } bldgSuffered = true; skidChargeHit = true; } // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. if (!target.isDone()) { resolvePilotingRolls(target); game.resetPSRs(target); target.applyDamage(); phaseReport.append("\n"); } } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( bldg != null ) { // Update report. phaseReport.append( " Skids through " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. phaseReport.append( damageEntity(target, hit, (int)Math.round(entity.getWeight()/5)) ); phaseReport.append( "\n" ); } // End handle-infantry // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // if we missed all the entities in the hex, // move attacker to side hex if (!skidChargeHit) { Coords src = entity.getPosition(); Coords dest = Compute.getMissedChargeDisplacement (game, entity.getId(), src, prevFacing); doEntityDisplacement(entity, src, dest, null); } else { // HACK: otherwise, set the entities position to that // hex's coords, because we had to move the entity // back earlier for the other targets entity.setPosition(nextPos); } } // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. phaseReport.append( " Skids into " ) .append( bldg.getName() ) .append( " in hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { phaseReport.append( " " ) .append( damageBuilding( bldg, chargeDamage ) ); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(curPos, nextPos, entity.getFacing(), false) ); phaseReport.append( this.damageEntity( entity, hit, toAttacker ) ) .append( "\n" ); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; phaseReport.append( " Skids into hex " ).append( curPos.getBoardNum() ).append( ".\n" ); // Get the next hex in the skid? nextPos = nextPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), prevFacing); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } phaseReport.append( " " ); // indent displacement doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage phaseReport.append(" " ).append( entity.getDisplayName() ).append( " suffers " ).append( damage ).append( " damage from the skid."); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(entity, hit, cluster)); damage -= cluster; } phaseReport.append( "\n" ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. phaseReport.append( " Skid ends.\n" ); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); break; } } // check to see if we are a mech and we've moved OUT of fire if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && game.board.getHex(lastPos).contains(Terrain.FIRE) && ( step.getMovementType() != Entity.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { entity.heatBuildup+=2; phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " passes through a fire. It will generate 2 more heat this round.\n"); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.board.getHex(curPos).contains(Terrain.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP ) { doFlamingDeath(entity); } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != Entity.MOVE_JUMP)) || ((overallMoveType == Entity.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); switch (mf.getType()) { case (Minefield.TYPE_CONVENTIONAL) : case (Minefield.TYPE_THUNDER) : case (Minefield.TYPE_THUNDER_INFERNO) : case (Minefield.TYPE_COMMAND_DETONATED) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); break; case (Minefield.TYPE_THUNDER_ACTIVE) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); else enterMinefield(entity, mf, curPos, curPos, true, 2); break; } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { phaseReport.append(entity.getShortName() + " discovers a minefield.\n"); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); if (curHex.levelOf(Terrain.WATER) > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, isPavementStep, step.getMovementType() == Entity.MOVE_JUMP); // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. if (entity.checkMovementInBuilding(lastPos, curPos, step, curHex, prevHex)) { // Get the building being exited. // TODO: allow units to climb on top of buildings. Building bldgExited = game.board.getBuildingAt( lastPos ); // Get the building being entered. // TODO: allow units to climb on top of buildings. Building bldgEntered = game.board.getBuildingAt( curPos ); // If we're not leaving a building, just handle the "entered". boolean collapsed = false; if ( bldgExited == null ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } movePath.addElement(new Integer(curPos.hashCode() ^ (curFacing << 16))); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == Entity.MOVE_JUMP && !entity.isMakingDfa()) { // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = game.board.getHex(curPos).levelOf(Terrain.WATER); rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } // jumped into swamp? maybe stuck! if (game.board.getHex(curPos).contains(Terrain.SWAMP)) { if (entity instanceof Mech) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " jumps into the swamp and gets stuck.\n"); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info phaseReport.append("\n") .append( entity.getDisplayName() ) .append( " tries to dislodge swarming infantry.\n" ); // roll final int diceRoll = Compute.d6(2); phaseReport.append("Needs " ).append( roll.getValueAsString() ).append( " [" ).append( roll.getDesc() ).append( "]" ).append( ", rolls " ).append( diceRoll ).append( " : "); if (diceRoll < roll.getValue()) { phaseReport.append("fails.\n"); } else { phaseReport.append("succeeds.\n"); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? final Hex curHex = game.board.getHex(curPos); if ( curHex.levelOf(Terrain.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and drowns!") .append(destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and suffers 11 damage.") .append( damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11) ) .append( "\n" ); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.board.getHex(curPos), game.board.getHex(curPos).surface() <= entity.getElevation(), false); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened roundReport.append(phaseReport.toString()); game.resetPhaseReport(); phaseReport = game.getPhaseReport(); //HACK send(createReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.board.getHex(curPos).contains(Terrain.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( "\n " ) .append( swarmer.getShortName() ) .append( " can't stand the fire's heat and drops off.\n" ); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } else { entityUpdate( entity.getId(), movePath ); }; }; // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, true)); } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/e8d7b6b4c6765f78abbf89929ea8b03c1aa7f896/Server.java/buggy/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
6855,
4820,
18,
6923,
31458,
82,
6,
262,
18,
6923,
12,
1522,
18,
588,
20524,
1435,
5411,
262,
18,
6923,
12,
315,
284,
298,
281,
326,
324,
4558,
298,
1518,
8403,
82,
8863,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
7537,
5621,
5411,
309,
261,
401,
5466,
275,
6215,
18,
291,
1921,
1435,
262,
288,
7734,
727,
13864,
1400,
273,
1342,
275,
6215,
18,
6274,
5621,
7734,
1323,
261,
1400,
18,
5332,
7417,
3471,
1435,
262,
288,
10792,
727,
3887,
1342,
14348,
273,
261,
1943,
13,
1400,
18,
4285,
1046,
5621,
10792,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
10792,
6855,
4820,
18,
6923,
12,
315,
282,
2597,
5926,
566,
281,
315,
262,
13491,
263,
6923,
12,
1342,
14348,
18,
588,
20524,
1435,
262,
13491,
263,
6923,
12,
315,
598,
518,
8403,
82,
6,
11272,
10792,
7920,
18,
4479,
1943,
12,
1342,
14348,
18,
26321,
9334,
4766,
4202,
3887,
18,
22122,
67,
706,
67,
10238,
862,
789,
11272,
10792,
1366,
12,
752,
3288,
1943,
6667,
12,
5466,
14348,
18,
26321,
9334,
4766,
10402,
3887,
18,
22122,
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,
1207,
49,
26140,
12,
1943,
1522,
16,
9933,
743,
3481,
13,
288,
3639,
368,
866,
364,
284,
11182,
310,
3639,
309,
261,
1264,
18,
12298,
12,
7607,
743,
18,
26951,
67,
42,
900,
41,
3719,
288,
5411,
368,
8380,
711,
284,
1259,
326,
324,
4558,
298,
1518,
18,
5411,
6855,
4820,
18,
6923,
31458,
82,
6,
262,
18,
6923,
12,
1522,
18,
588,
20524,
1435,
5411,
262,
18,
6923,
12,
315,
284,
298,
281,
326,
324,
4558,
298,
1518,
8403,
82,
8863,
5411,
368,
2585,
326,
2836,
9331,
310,
1342,
275,
6215,
35,
5411,
727,
5589,
1342,
275,
6215,
273,
1522,
18,
588,
8835,
7537,
5621,
5411,
309,
261,
401,
5466,
275,
6215,
18,
291,
1921,
2
] |
||
System.out.println("Connecting " + loop.getName()+ " to "+ joiner.getName());
|
public GEStreamNode construct(GraphStructure graphStruct, int lvel) { System.out.println("Constructing the feedback loop " +this.getName()); /**Set the level of this and add this to list of containers at this level **/ this.level = lvel; graphStruct.containerNodes.addContainerToLevel(level, this); lvel++; // Contained elements of this will be at a higher level this.localGraphStruct = graphStruct; joiner.construct(graphStruct, lvel); GEStreamNode lastBody = body.construct(graphStruct, level); System.out.println("Connecting " + joiner.getName()+ " to "+ body.getName()); graphStruct.connectDraw(joiner, lastBody ); // Had an error in the construction of the feedback loop. // Error Fixed but now Sugiyama Layout algorithm does not work since it // can't operate on a DAG //TODO //Possible Solution: Perform Layout Algorithm first. Then make connection // that would result in the DAG splitter.construct(graphStruct, level); System.out.println("Connecting " + body.getName()+ " to "+ splitter.getName()); graphStruct.connectDraw(body, splitter); GEStreamNode lastLoop = loop.construct(graphStruct, level); System.out.println("Connecting " + splitter.getName()+ " to "+ loop.getName()); graphStruct.connectDraw(splitter, loop); System.out.println("Connecting " + loop.getName()+ " to "+ joiner.getName()); graphStruct.connectDraw(loop, joiner); // 1/18/04 graphStruct.getGraphModel().insert(graphStruct.getCells().toArray(),graphStruct.getAttributes(), graphStruct.getConnectionSet(), null, null); graphStruct.getGraphModel().edit(graphStruct.getAttributes(), graphStruct.getConnectionSet(), null, null); this.initDrawAttributes(graphStruct, new Rectangle(new Point(100,100))); return this.splitter; }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/cd7dcb64a154e0cc7cf3ea899ae15e74a2c6d9d1/GEFeedbackLoop.java/buggy/streams/src/streamit/eclipse/grapheditor/graph/GEFeedbackLoop.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
17788,
1228,
907,
4872,
12,
4137,
6999,
2667,
3823,
16,
509,
328,
941,
13,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
7249,
310,
326,
10762,
2798,
315,
397,
2211,
18,
17994,
10663,
9506,
202,
26873,
694,
326,
1801,
434,
333,
471,
527,
333,
358,
666,
434,
8475,
622,
333,
1801,
26013,
202,
202,
2211,
18,
2815,
273,
328,
941,
31,
202,
202,
4660,
3823,
18,
3782,
3205,
18,
1289,
2170,
774,
2355,
12,
2815,
16,
333,
1769,
202,
202,
80,
941,
9904,
31,
368,
1816,
8707,
2186,
434,
333,
903,
506,
622,
279,
10478,
1801,
6862,
1082,
202,
2211,
18,
3729,
4137,
3823,
273,
2667,
3823,
31,
6862,
9506,
202,
5701,
264,
18,
10062,
12,
4660,
3823,
16,
328,
941,
1769,
202,
202,
7113,
1228,
907,
1142,
2250,
273,
1417,
18,
10062,
12,
4660,
3823,
16,
1801,
1769,
25083,
202,
3163,
18,
659,
18,
8222,
2932,
30049,
315,
397,
29620,
18,
17994,
1435,
15,
225,
315,
358,
13773,
1417,
18,
17994,
10663,
9506,
202,
4660,
3823,
18,
3612,
6493,
12,
5701,
264,
16,
1142,
2250,
11272,
1082,
202,
759,
670,
361,
392,
555,
316,
326,
16171,
434,
326,
10762,
2798,
18,
202,
202,
759,
1068,
15038,
1496,
2037,
348,
637,
77,
93,
20789,
9995,
4886,
1552,
486,
1440,
3241,
518,
3196,
202,
759,
848,
1404,
20829,
603,
279,
463,
1781,
202,
202,
759,
6241,
202,
202,
759,
13576,
29172,
30,
11217,
9995,
15067,
1122,
18,
9697,
1221,
1459,
202,
202,
759,
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,
17788,
1228,
907,
4872,
12,
4137,
6999,
2667,
3823,
16,
509,
328,
941,
13,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
7249,
310,
326,
10762,
2798,
315,
397,
2211,
18,
17994,
10663,
9506,
202,
26873,
694,
326,
1801,
434,
333,
471,
527,
333,
358,
666,
434,
8475,
622,
333,
1801,
26013,
202,
202,
2211,
18,
2815,
273,
328,
941,
31,
202,
202,
4660,
3823,
18,
3782,
3205,
18,
1289,
2170,
774,
2355,
12,
2815,
16,
333,
1769,
202,
202,
80,
941,
9904,
31,
368,
1816,
8707,
2186,
434,
333,
903,
506,
622,
279,
10478,
1801,
6862,
1082,
202,
2211,
18,
3729,
4137,
3823,
273,
2667,
3823,
31,
6862,
9506,
202,
5701,
264,
18,
2
] |
|
urisList.add(SLASH + DefaultGrailsScaffolder.ACTION_NAMES[i]);
|
public DefaultGrailsControllerClass(Class clazz) { super(clazz, CONTROLLER); String uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName()); String defaultClosureName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, String.class); Boolean tmp = (Boolean)getPropertyValue(SCAFFOLDING_PROPERTY, Boolean.class); if(tmp != null) { this.scaffolding = tmp.booleanValue(); } Collection closureNames = new ArrayList(); Collection urisList = new ArrayList(); this.uri2viewMap = new HashMap(); this.uri2closureMap = new HashMap(); this.viewNames = new HashMap(); if(this.scaffolding) { for(int i = 0; i < DefaultGrailsScaffolder.ACTION_NAMES.length;i++) { closureNames.add(DefaultGrailsScaffolder.ACTION_NAMES[i]); String viewName = (String)getPropertyValue(DefaultGrailsScaffolder.ACTION_NAMES[i] + VIEW, String.class); // if no explicity view name is specified just use action name if(viewName == null) { viewName =DefaultGrailsScaffolder.ACTION_NAMES[i]; } urisList.add(SLASH + DefaultGrailsScaffolder.ACTION_NAMES[i]); String tmpUri = uri + SLASH + DefaultGrailsScaffolder.ACTION_NAMES[i]; String viewUri = uri + SLASH + viewName; if (StringUtils.isNotBlank(viewName)) { this.uri2viewMap.put(tmpUri, viewUri); this.viewNames.put( DefaultGrailsScaffolder.ACTION_NAMES[i], viewUri ); } this.uri2closureMap.put(tmpUri, DefaultGrailsScaffolder.ACTION_NAMES[i]); } } PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); for (int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor propertyDescriptor = propertyDescriptors[i]; if (propertyDescriptor.getPropertyType().isAssignableFrom(Closure.class)) { closureNames.add(propertyDescriptor.getName()); String closureName = propertyDescriptor.getName(); String viewName = (String)getPropertyValue(propertyDescriptor.getName() + VIEW, String.class); // if no explicity view name is specified just use property name if(viewName == null) { viewName = propertyDescriptor.getName(); } Map typedViews = (Map)getPropertyValue(propertyDescriptor.getName() + TYPED_VIEWS, Map.class); urisList.add(SLASH + propertyDescriptor.getName()); String tmpUri = uri + SLASH + propertyDescriptor.getName(); String viewUri = uri + SLASH + viewName; if (StringUtils.isNotBlank(viewName)) { this.uri2viewMap.put(tmpUri, viewUri); this.viewNames.put( closureName, viewUri ); } Closure closure = (Closure)getPropertyValue(propertyDescriptor.getName(), Closure.class); if (closure != null) { this.uri2closureMap.put(tmpUri, propertyDescriptor.getName()); // TODO: This code is likely broken and needs re-thinking as there may be a better way to // handle typed views if (typedViews != null) { for (Iterator iter = typedViews.keySet().iterator(); iter.hasNext();) { String viewType = (String)iter.next(); String typedViewName = (String)typedViews.get(viewType); String typedUri = tmpUri + SLASH + viewType; this.uri2viewMap.put(typedUri, typedViewName); this.uri2closureMap.put(typedUri, propertyDescriptor.getName()); if (defaultClosureName != null && defaultClosureName.equals(propertyDescriptor.getName())) { this.uri2closureMap.put(uri + SLASH + viewType, propertyDescriptor.getName()); this.uri2viewMap.put(uri + SLASH + viewType, typedViewName); } } } } } } if (defaultClosureName != null) { this.uri2closureMap.put(uri + SLASH, defaultClosureName); this.uri2viewMap.put(uri + SLASH + defaultClosureName, defaultClosureName); this.viewNames.put( defaultClosureName, uri + SLASH + defaultClosureName ); } if (closureNames.size() == 1) { String closureName = ((String)closureNames.iterator().next()); this.uri2closureMap.put(uri, this.uri2closureMap.values().iterator().next()); if (!this.uri2viewMap.isEmpty()) { this.uri2viewMap.put(uri, this.uri2viewMap.values().iterator().next()); } Map typedViews = (Map)getPropertyValue(closureName + TYPED_VIEWS, Map.class); if (typedViews != null) { for (Iterator iter = typedViews.keySet().iterator(); iter.hasNext();) { String viewType = (String)iter.next(); String typedViewName = (String)typedViews.get(viewType); this.uri2closureMap.put(uri + SLASH + viewType, this.uri2closureMap.values().iterator().next()); this.uri2viewMap.put(uri + SLASH + viewType, typedViewName); } } } this.uris = (String[])urisList.toArray(new String[urisList.size()]); this.internalUris = (String[])this.uri2closureMap.keySet().toArray(new String[this.uri2closureMap.keySet().size()]); }
|
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/46100d612c4818cf685c501bcddab3c1266b0642/DefaultGrailsControllerClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
2933,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
8020,
25353,
1769,
202,
202,
780,
2003,
273,
348,
16504,
397,
261,
780,
1989,
18,
291,
1248,
7796,
12,
588,
18308,
10756,
692,
28951,
7675,
2079,
2668,
1093,
16,
2023,
13,
225,
397,
348,
16504,
294,
1408,
262,
397,
9926,
1989,
18,
551,
438,
7053,
554,
12,
17994,
10663,
202,
202,
780,
805,
10573,
461,
273,
261,
780,
13,
588,
16107,
12,
5280,
67,
22693,
55,
4830,
67,
9900,
16,
514,
18,
1106,
1769,
202,
202,
5507,
1853,
273,
261,
5507,
13,
588,
16107,
12,
8754,
2246,
11846,
1360,
67,
9900,
16,
3411,
18,
1106,
1769,
202,
202,
430,
12,
5645,
480,
446,
13,
288,
1082,
202,
2211,
18,
31105,
310,
273,
1853,
18,
6494,
620,
5621,
202,
202,
97,
202,
202,
2532,
7213,
1557,
273,
394,
2407,
5621,
202,
202,
2532,
21476,
682,
273,
394,
2407,
5621,
202,
202,
2211,
18,
1650,
22,
1945,
863,
273,
394,
4317,
5621,
202,
202,
2211,
18,
1650,
22,
20823,
863,
273,
394,
4317,
5621,
202,
202,
2211,
18,
1945,
1557,
273,
394,
4317,
5621,
9506,
202,
430,
12,
2211,
18,
31105,
310,
13,
288,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
2989,
14571,
14573,
1541,
7329,
1498,
18,
12249,
67,
16257,
18,
2469,
31,
77,
27245,
288,
9506,
202,
20823,
1557,
18,
1289,
12,
1868,
14571,
14573,
1541,
7329,
1498,
18,
12249,
67,
16257,
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,
2989,
14571,
14573,
2933,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
8020,
25353,
1769,
202,
202,
780,
2003,
273,
348,
16504,
397,
261,
780,
1989,
18,
291,
1248,
7796,
12,
588,
18308,
10756,
692,
28951,
7675,
2079,
2668,
1093,
16,
2023,
13,
225,
397,
348,
16504,
294,
1408,
262,
397,
9926,
1989,
18,
551,
438,
7053,
554,
12,
17994,
10663,
202,
202,
780,
805,
10573,
461,
273,
261,
780,
13,
588,
16107,
12,
5280,
67,
22693,
55,
4830,
67,
9900,
16,
514,
18,
1106,
1769,
202,
202,
5507,
1853,
273,
261,
5507,
13,
588,
16107,
12,
8754,
2246,
11846,
1360,
67,
9900,
16,
3411,
18,
1106,
1769,
202,
202,
430,
2
] |
|
private static HClass is_typecast(CJMP q, Temp t) { if(q.prevLength() == 1) { Quad prev = q.prev(0); if(prev instanceof INSTANCEOF) { INSTANCEOF inst = (INSTANCEOF) prev; Temp tb = inst.dst(); if(tb.equals(q.test())) { Temp tested = inst.src(); int i = getSigmaForTemp(q, tested); if(i == -1) return null; //assert (i != -1) : tested + " is not defined by " + q; Temp dst[] = q.dst(i); if(t.equals(dst[1])) { // this is actually a typecast ! return inst.hclass(); } } } } // not a typecast return null; }
|
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/f4722a5e71f2ffbac4c40dd2a40dc6af79760005/MetaCallGraphImpl.java/buggy/Analysis/MetaMethods/MetaCallGraphImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
44,
797,
291,
67,
723,
4155,
12,
39,
46,
4566,
85,
16,
1837,
337,
15329,
202,
430,
12,
85,
18,
10001,
1782,
1435,
631,
21,
15329,
202,
24483,
10001,
33,
85,
18,
10001,
12,
20,
1769,
202,
430,
12,
10001,
1336,
792,
13341,
3932,
15329,
202,
202,
13341,
3932,
8591,
28657,
13341,
3932,
13,
10001,
31,
202,
202,
1837,
337,
70,
33,
8591,
18,
11057,
5621,
202,
202,
430,
12,
18587,
18,
14963,
12,
85,
18,
3813,
1435,
3719,
95,
202,
202,
1837,
337,
3149,
33,
8591,
18,
4816,
5621,
202,
202,
474,
77,
33,
588,
24491,
1290,
7185,
12,
85,
16,
88,
3149,
1769,
202,
202,
430,
12,
77,
631,
17,
21,
13,
2463,
2011,
31,
202,
202,
759,
11231,
12,
77,
5,
29711,
21,
4672,
88,
3149,
9078,
291,
902,
2178,
1637,
6,
15,
85,
31,
202,
202,
7185,
11057,
8526,
33,
85,
18,
11057,
12,
77,
1769,
202,
202,
430,
12,
88,
18,
14963,
12,
11057,
63,
21,
22643,
95,
1082,
202,
759,
2211,
291,
621,
3452,
6361,
4155,
5,
1082,
202,
2463,
8591,
18,
76,
1106,
5621,
202,
202,
97,
202,
202,
97,
202,
97,
202,
97,
202,
759,
902,
6361,
4155,
202,
2463,
2011,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6015,
270,
395,
2126,
44,
797,
291,
67,
723,
4155,
12,
39,
46,
4566,
85,
16,
1837,
337,
15329,
202,
430,
12,
85,
18,
10001,
1782,
1435,
631,
21,
15329,
202,
24483,
10001,
33,
85,
18,
10001,
12,
20,
1769,
202,
430,
12,
10001,
1336,
792,
13341,
3932,
15329,
202,
202,
13341,
3932,
8591,
28657,
13341,
3932,
13,
10001,
31,
202,
202,
1837,
337,
70,
33,
8591,
18,
11057,
5621,
202,
202,
430,
12,
18587,
18,
14963,
12,
85,
18,
3813,
1435,
3719,
95,
202,
202,
1837,
337,
3149,
33,
8591,
18,
4816,
5621,
202,
202,
474,
77,
33,
588,
24491,
1290,
7185,
12,
85,
16,
88,
3149,
1769,
202,
202,
430,
12,
77,
631,
17,
21,
13,
2463,
2
] |
||
IUpdatableTable accountTable = new TableViewerUpdatableTable( tableViewer);
|
public void testScenario01() throws IntrospectionException { // Factory JavaBeans javaBeans = new JavaBeans(); // Show that a TableViewer with three columns renders the accounts IReadableSet accountSet = javaBeans.createReadableSet(catalog, new PropertyDescriptor("accounts", Catalog.class, "getAccounts", null), Account.class); IUpdatableCellProvider accountCellProvider = javaBeans.createUpdatableCellProvider( accountSet, new String[] { "firstName", "lastName", "state" }); IUpdatableTable accountTable = new TableViewerUpdatableTable( tableViewer); getDbc().bind(accountTable, accountCellProvider, null); //interact(); // Verify the data in the table columns matches the accounts Account[] accounts = catalog.getAccounts(); for (int i = 0; i < accounts.length; i++) { Account account = accounts[i]; String col_0 = ((ITableLabelProvider) tableViewer .getLabelProvider()).getColumnText(account, 0); assertEquals(getValue(account.getFirstName()), col_0); String col_1 = ((ITableLabelProvider) tableViewer .getLabelProvider()).getColumnText(account, 1); assertEquals(getValue(account.getLastName()), col_1); String col_2 = ((ITableLabelProvider) tableViewer .getLabelProvider()).getColumnText(account, 2); assertEquals(getValue(account.getState()), col_2); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f4faf2c3f21b4a76d5244c6fea3ae2843d4cf8d2/NewTableScenarios.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/NewTableScenarios.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21390,
1611,
1435,
1216,
3094,
26362,
503,
288,
202,
202,
759,
7822,
202,
202,
5852,
14495,
2252,
14495,
273,
394,
5110,
14495,
5621,
202,
202,
759,
9674,
716,
279,
3555,
18415,
598,
8925,
2168,
19567,
326,
9484,
202,
202,
45,
14151,
694,
2236,
694,
273,
2252,
14495,
18,
2640,
14151,
694,
12,
7199,
16,
9506,
202,
2704,
26761,
2932,
13739,
3113,
14953,
18,
1106,
16,
315,
588,
13971,
3113,
446,
3631,
9506,
202,
3032,
18,
1106,
1769,
202,
202,
45,
1211,
3404,
429,
4020,
2249,
2236,
4020,
2249,
273,
2252,
14495,
18,
2640,
1211,
3404,
429,
4020,
2249,
12,
9506,
202,
4631,
694,
16,
394,
514,
8526,
288,
315,
3645,
461,
3113,
315,
2722,
461,
3113,
315,
2019,
6,
15549,
202,
202,
45,
1211,
3404,
429,
1388,
2236,
1388,
273,
394,
3555,
18415,
1211,
3404,
429,
1388,
12,
9506,
202,
2121,
18415,
1769,
202,
202,
588,
4331,
71,
7675,
4376,
12,
4631,
1388,
16,
2236,
4020,
2249,
16,
446,
1769,
202,
202,
759,
2761,
621,
5621,
202,
202,
759,
8553,
326,
501,
316,
326,
1014,
2168,
1885,
326,
9484,
202,
202,
3032,
8526,
9484,
273,
6222,
18,
588,
13971,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9484,
18,
2469,
31,
277,
27245,
288,
1082,
202,
3032,
2236,
273,
9484,
63,
77,
15533,
1082,
202,
780,
645,
67,
20,
273,
14015,
1285,
429,
2224,
2249,
13,
1014,
18415,
6862,
202,
18,
588,
2224,
2249,
1435,
2934,
588,
1494,
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,
21390,
1611,
1435,
1216,
3094,
26362,
503,
288,
202,
202,
759,
7822,
202,
202,
5852,
14495,
2252,
14495,
273,
394,
5110,
14495,
5621,
202,
202,
759,
9674,
716,
279,
3555,
18415,
598,
8925,
2168,
19567,
326,
9484,
202,
202,
45,
14151,
694,
2236,
694,
273,
2252,
14495,
18,
2640,
14151,
694,
12,
7199,
16,
9506,
202,
2704,
26761,
2932,
13739,
3113,
14953,
18,
1106,
16,
315,
588,
13971,
3113,
446,
3631,
9506,
202,
3032,
18,
1106,
1769,
202,
202,
45,
1211,
3404,
429,
4020,
2249,
2236,
4020,
2249,
273,
2252,
14495,
18,
2640,
1211,
3404,
429,
4020,
2249,
12,
9506,
202,
4631,
694,
16,
394,
514,
8526,
288,
315,
3645,
461,
3113,
315,
2722,
2
] |
|
if ( dH > dMaxH )
|
if ( isAxisLabelStaggered( ) && i % 2 == 1 ) { dMaxH2 = Math.max( dH, dMaxH2 ); } else if ( dH > dMaxH ) {
|
final double computeAxisLabelThickness( IDisplayServer xs, Label la, int iOrientation ) throws ChartException { if ( !la.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.unset.label.visibility", //$NON-NLS-1$ new Object[]{ la.getCaption( ).getValue( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } if ( !la.isVisible( ) ) { return 0; } String sText; double[] da = getTickCordinates( ); if ( iOrientation == VERTICAL ) { double dW, dMaxW = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); dW = computeWidth( xs, la ); if ( dW > dMaxW ) dMaxW = dW; } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( dW > dMaxW ) dMaxW = dW; dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( dW > dMaxW ) dMaxW = dW; dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); int iStep = asInteger( getStep( ) ); int iUnit = asInteger( getUnit( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( dW > dMaxW ) dMaxW = dW; cdtAxisValue = cdtAxisValue.forward( iUnit, iStep ); } } return dMaxW; } else if ( iOrientation == HORIZONTAL ) { double dH, dMaxH = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); dH = computeHeight( xs, la ); if ( dH > dMaxH ) { dMaxH = dH; } } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( dH > dMaxH ) dMaxH = dH; dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( dH > dMaxH ) dMaxH = dH; dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); final int iStep = asInteger( getStep( ) ); final int iUnit = asInteger( getUnit( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( dH > dMaxH ) dMaxH = dH; cdtAxisValue.forward( iUnit, iStep ); } } return dMaxH; } return 0; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/80924662e5927eac5b3e28e6cc9516f0ee88c721/AutoScale.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
1645,
3671,
6558,
2224,
1315,
19517,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
16,
1082,
202,
474,
277,
14097,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
11821,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
18579,
18,
1925,
18,
14422,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
25083,
202,
11821,
18,
588,
21158,
12,
262,
18,
24805,
12,
262,
6862,
202,
5779,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
436,
5111,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
401,
11821,
18,
291,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
780,
272,
1528,
31,
202,
202,
9056,
8526,
5248,
273,
3181,
1200,
39,
27934,
12,
11272,
202,
202,
430,
261,
277,
14097,
422,
29109,
262,
202,
202,
95,
1082,
202,
9056,
302,
59,
16,
302,
2747,
59,
273,
374,
31,
1082,
202,
430,
261,
261,
3130,
12,
262,
473,
9204,
262,
422,
9204,
747,
324,
4457,
5587,
262,
1082,
202,
95,
9506,
202,
6385,
14065,
3198,
3780,
77,
273,
4303,
12,
11272,
9506,
202,
6385,
509,
277,
5096,
2802,
273,
261,
3130,
12,
262,
422,
467,
2918,
18,
4594,
67,
4684,
262,
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,
225,
202,
6385,
1645,
3671,
6558,
2224,
1315,
19517,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
16,
1082,
202,
474,
277,
14097,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
11821,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
18579,
18,
1925,
18,
14422,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
25083,
202,
11821,
18,
588,
21158,
12,
262,
18,
24805,
12,
262,
6862,
202,
5779,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
436,
5111,
2
] |
case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF);
|
} case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF);
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
typeNamer.nameIt(final_type) );
|
typeNamer.nameIt(final_type) );
|
public DynAny current_component() throws TypeMismatch { throw new TypeMismatch("Not applicable for " + typeNamer.nameIt(final_type) ); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0c6db14fe37c570414a6f9d9ea41538675363ecc/gnuDynAny.java/clean/gnu/CORBA/DynAn/gnuDynAny.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
878,
2961,
783,
67,
4652,
1435,
21821,
1216,
1412,
16901,
225,
288,
565,
604,
394,
1412,
16901,
2932,
1248,
12008,
364,
315,
397,
21821,
618,
50,
24458,
18,
529,
7193,
12,
6385,
67,
723,
13,
12900,
11272,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
878,
2961,
783,
67,
4652,
1435,
21821,
1216,
1412,
16901,
225,
288,
565,
604,
394,
1412,
16901,
2932,
1248,
12008,
364,
315,
397,
21821,
618,
50,
24458,
18,
529,
7193,
12,
6385,
67,
723,
13,
12900,
11272,
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
] |
npc=npcs.add("Hayunn Naratha",new SpeakerNPC()
|
npc=npcs.add(new SpeakerNPC("Hayunn Naratha")
|
private void buildSemosCityArea(StendhalRPZone zone) { Portal portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(42); portal.sety(37); portal.setNumber(0); portal.setDestination("int_semos_tavern_0",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(53); portal.sety(37); portal.setNumber(1); portal.setDestination("int_semos_temple",2); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(15); portal.sety(41); portal.setNumber(2); portal.setDestination("int_semos_blacksmith",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(6); portal.sety(22); portal.setNumber(3); portal.setDestination("int_semos_library",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(11); portal.sety(22); portal.setNumber(4); portal.setDestination("int_semos_library",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(52); portal.sety(19); portal.setNumber(5); portal.setDestination("int_semos_storage_0",0); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(18); portal.sety(22); portal.setNumber(6); portal.setDestination("int_semos_bank",0); zone.addPortal(portal); for(int i=0;i<3;i++) { portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(29+i); portal.sety(13); portal.setNumber(7+i); portal.setDestination("int_semos_townhall",2); zone.addPortal(portal); } portal=new OneWayPortal(); zone.assignRPObjectID(portal); portal.setx(12); portal.sety(49); portal.setNumber(60); zone.addPortal(portal); Sign sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(4); sign.sety(41); sign.setText("You are about to leave this area to move to the village.|You can buy a new sheep there."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(8); sign.sety(47); sign.setText("Welcome to Stendhal!| Please report any problems and issues at our webpage."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(26); sign.sety(40); sign.setText("You are about to enter the Dungeons.|But Beware! This area is infested with rats and legend has |it that many Adventurers have died down there..."); zone.add(sign); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(44); sign.sety(62); sign.setText("You are about to leave this area and move to the plains.|You may fatten up your sheep there on the wild berries.|Be careful though, wolves roam these plains."); zone.add(sign); Chest chest=new Chest(); zone.assignRPObjectID(chest); chest.setx(44); chest.sety(60); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("knife")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("wooden_shield")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("leather_armor")); chest.add(zone.getWorld().getRuleManager().getEntityManager().getItem("money")); zone.add(chest); SpeakerNPC npc=npcs.add("Nomyr Ahba",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(46,19)); nodes.add(new Path.Node(46,20)); nodes.add(new Path.Node(50,20)); nodes.add(new Path.Node(50,19)); nodes.add(new Path.Node(50,20)); nodes.add(new Path.Node(46,20)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Nomyr")) { engine.say("I've heard cries inside and I was just... but you look disoriented, foreigner. Do you want to know what has been happening around here lately?"); player.setQuest("Nomyr","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"I'm a... hmmm... observer. I can help you by sharing my information about rumours with you... Do you want to know what has been happening around here lately?"); Behaviours.addJob(this,"I am committed to peek every curious fact about Semos. I know any rumor that has ever existed in Semos and I have invented most of them. Well, except that about Hackim smuggling Deniran's army weapons to wandering adventurer's like you"); add(1,new String[]{"quest","task"},null,1,"I do not have any task for you right now. If you need anything from me just say it.",null); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","thiefnpc"); npc.set(46,19); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Monogenes",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); setPath(nodes,false); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Monogenes")) { engine.say("Hi foreigner, don't be surprised if people here are reserved: the fear of the advances of Blordrough's dark legion has affected everybody, including me. Do you want to know how to socialize with Semos' people?"); player.setQuest("Monogenes","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"I'm diogenes' older brother and I don't remember what I did before I retired. Anyway, I can help you by telling you how to treat Semos' people... Do you want to know how to socialize with them?"); Behaviours.addJob(this,"I am committed to give directions to foreigners and show them how to talk to people here. However, when I'm in a bad mood I give them misleading directions hehehe... What is not necessarily bad because I can give wrong directions unwillingly anyway and they can result in being the right directions"); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","oldmannpc"); npc.set(26,21); npc.setDirection(Direction.DOWN); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Hayunn Naratha",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(27,37)); nodes.add(new Path.Node(27,38)); nodes.add(new Path.Node(29,38)); nodes.add(new Path.Node(29,37)); nodes.add(new Path.Node(29,38)); nodes.add(new Path.Node(27,38)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Hayunn")) { engine.say("Hi. I am Hayunn Naratha, a retired adventurer. Do you want me to tell you how I used to kill creatures?"); player.setQuest("Hayunn","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time?"); } } }); Behaviours.addHelp(this,"Well, I'm a retired adventurer as I've told you before. I only can help you by sharing my experience with you... Do you want me to tell you how I used to kill creatures?"); Behaviours.addJob(this,"I've sworn defending with my life the people of Semos from any creature that dares to get out of this dungeon. With all our young people battling Blordrough's dark legion at south, monsters are getting more and more confident to go to the surface."); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","oldheronpc"); npc.set(27,37); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Diogenes",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(22,42)); nodes.add(new Path.Node(26,42)); nodes.add(new Path.Node(26,44)); nodes.add(new Path.Node(31,44)); nodes.add(new Path.Node(31,42)); nodes.add(new Path.Node(35,42)); nodes.add(new Path.Node(35,28)); nodes.add(new Path.Node(22,28)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this,"Hehehe! Job! hehehe! Muahahaha!."); Behaviours.addHelp(this,"I can't help you, but you can help Stendhal: tell your friends about Stendhal and help us to create maps."); Behaviours.addGoodbye(this); add(1, "quest", null, 1, null, new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { switch(Rand.rand(2)) { case 0: say("Ah, quests... just like the old days when I was young! I remember one quest that was about... Oh look, a bird!hmm, what?! Oh, Oops! I forgot it! :("); break; case 1: say("I have been told that on the deepest place of the dungeon under this city someone also buy sheeps, but *it* pays better!."); break; } } }); add(1, "cleanme!", null, 1, "What?", new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { if(player.isAdmin()) { for(String quest: player.getQuests()) { player.removeQuest(quest); } } else { say("Ummm! No, you clean me! begin with my back!"); player.setHP(player.getHP()-5); world.modify(player); } } }); } }); zone.assignRPObjectID(npc); npc.put("class","beggarnpc"); npc.set(24,42); npc.initHP(100); zone.addNPC(npc); npc=npcs.add("Carmen",new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(5,45)); nodes.add(new Path.Node(18,45)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this, "I have healing abilities and I heal wounded players. I also sell potions and antidotes."); Behaviours.addHelp(this, "Ask me to heal you and I will help you or ask me offer and I will show my shop's stuff."); Behaviours.addSeller(this,new Behaviours.SellerBehaviour(shops.get("healing"))); Behaviours.addHealer(this, 0); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","welcomernpc"); npc.set(5,45); npc.initHP(100); zone.addNPC(npc); }
|
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/ecfe586cc023f057c38e81b5ae8082477344f44b/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
13185,
538,
22236,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
9452,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
20,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
2351,
502,
82,
67,
20,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
8643,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
21,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
874,
1802,
3113,
22,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
3600,
1769,
565,
11899,
18,
542,
93,
12,
9803,
1769,
565,
11899,
18,
542,
1854,
12,
22,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
11223,
4808,
483,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
26,
1769,
565,
11899,
18,
542,
93,
12,
3787,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
13185,
538,
22236,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
9452,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
565,
11899,
18,
542,
1854,
12,
20,
1769,
565,
11899,
18,
542,
5683,
2932,
474,
67,
12000,
538,
67,
2351,
502,
82,
67,
20,
3113,
20,
1769,
565,
4157,
18,
1289,
24395,
12,
24386,
1769,
565,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
24386,
1769,
565,
11899,
18,
542,
92,
12,
8643,
1769,
565,
11899,
18,
542,
93,
12,
6418,
1769,
2
] |
model1.setBlockOffset(0); model1.getCursor().prev(); model1.getCursor().prev(); assertEquals("#0.0", 2, model1.getCursor().current().getSize()); assertEquals("#0.1", "/", model1.getCursor().nextItem().getType()); assertEquals("#0.2", 1, model1.getCursor().nextItem().getSize());
|
model1.move(0); model1.move(-3); assertEquals("#0.0", 2, model1.currentToken().getSize());
|
public void testCrazyCase2() { model1.insertSlash(); model1.insertGap(4); model1.getCursor().prev(); model1.setBlockOffset(2); model1.insertSlash(); model1.setBlockOffset(0); model1.getCursor().prev(); model1.getCursor().prev(); //System.out.println("SHOULD BE: /#__/__ \n"+model1.simpleString()); assertEquals("#0.0", 2, model1.getCursor().current().getSize()); assertEquals("#0.1", "/", model1.getCursor().nextItem().getType()); assertEquals("#0.2", 1, model1.getCursor().nextItem().getSize()); assertEquals("#0.3",ReducedToken.FREE, model1.getStateAtCurrent()); model1.insertSlash(); //System.out.println(model1.simpleString()); assertEquals("#1.1", "//", model1.getCursor().prevItem().getType()); assertEquals("#1.2",ReducedToken.INSIDE_LINE_COMMENT, model1.getStateAtCurrent()); assertEquals("#1.3",ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("1.4",ReducedToken.INSIDE_LINE_COMMENT, model1.getCursor().current().getState()); assertEquals("1.5",ReducedToken.INSIDE_LINE_COMMENT, model1.getCursor().nextItem().getState()); // //#__/__ //break line comment simultaneously forming a new line comment model1.getCursor().prev(); model1.setBlockOffset(1); model1.insertSlash(); model1.setBlockOffset(0); // //#/__/__ //System.out.println(model1.simpleString()); assertEquals("#2.0", "//", model1.getCursor().prevItem().getType()); assertEquals("#2.1", "/", model1.getCursor().current().getType()); assertEquals("#2.2",ReducedToken.INSIDE_LINE_COMMENT, model1.getStateAtCurrent()); assertEquals("#2.3",ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("2.4",ReducedToken.INSIDE_LINE_COMMENT, model1.getCursor().current().getState()); assertEquals("2.5",ReducedToken.INSIDE_LINE_COMMENT, model1.getCursor().nextItem().getState()); //break line comment forming a block comment model1.getCursor().prev(); model1.setBlockOffset(1); model1.insertStar(); model1.setBlockOffset(0); // /*#//__/__ assertEquals("#3.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#3.1", "/", model1.getCursor().current().getType()); assertEquals("#3.2", "/", model1.getCursor().nextItem().getType()); assertEquals("#3.3",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); assertEquals("#3.3",ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("3.4",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().current().getState()); assertEquals("3.5",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().nextItem().getState()); //break block comment start with a star. model1.getCursor().prev(); model1.setBlockOffset(1); model1.insertStar(); model1.setBlockOffset(0); // /*#*//__/__ assertEquals("#4.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#4.1", "*/", model1.getCursor().current().getType()); assertEquals("#4.2", "/", model1.getCursor().nextItem().getType()); assertEquals("#4.3",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); assertEquals("#4.3",ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("4.4",ReducedToken.FREE, model1.getCursor().current().getState()); assertEquals("4.5",ReducedToken.FREE, model1.getCursor().nextItem().getState()); model1.setBlockOffset(1); model1.insertGap(3); // /**___#//__/__ assertEquals("#5.0", true, model1.getCursor().prevItem().isGap()); assertEquals("#5.1",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); assertEquals("#5.2", "/", model1.getCursor().current().getType()); assertEquals("#5.3", "/", model1.getCursor().nextItem().getType()); assertEquals("#5.4",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().prevItem().getState()); assertEquals("5.5",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().current().getState()); assertEquals("5.6",ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().nextItem().getState()); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/ReducedModelTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/ReducedModelTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
39,
354,
21832,
2449,
22,
1435,
202,
202,
95,
1082,
202,
2284,
21,
18,
6387,
11033,
5621,
1082,
202,
2284,
21,
18,
6387,
14001,
12,
24,
1769,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
2284,
21,
18,
542,
1768,
2335,
12,
22,
1769,
1082,
202,
2284,
21,
18,
6387,
11033,
5621,
1082,
202,
2284,
21,
18,
542,
1768,
2335,
12,
20,
1769,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
759,
3163,
18,
659,
18,
8222,
2932,
2664,
31090,
9722,
30,
225,
342,
30598,
19,
972,
225,
521,
82,
6,
15,
2284,
21,
18,
9647,
780,
10663,
1082,
202,
11231,
8867,
2932,
7,
20,
18,
20,
3113,
576,
16,
938,
21,
18,
588,
6688,
7675,
2972,
7675,
588,
1225,
10663,
25083,
202,
11231,
8867,
2932,
7,
20,
18,
21,
3113,
2206,
3113,
938,
21,
18,
588,
6688,
7675,
4285,
1180,
7675,
588,
559,
10663,
1082,
202,
11231,
8867,
2932,
7,
20,
18,
22,
3113,
404,
16,
938,
21,
18,
588,
6688,
7675,
4285,
1180,
7675,
588,
1225,
10663,
1082,
202,
11231,
8867,
2932,
7,
20,
18,
23,
3113,
16911,
3263,
1345,
18,
28104,
16,
938,
21,
18,
588,
1119,
861,
3935,
10663,
1082,
202,
2284,
21,
18,
6387,
11033,
5621,
1082,
202,
759,
3163,
18,
659,
18,
8222,
12,
2284,
21,
18,
9647,
780,
10663,
1082,
202,
11231,
8867,
2932,
7,
21,
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,
39,
354,
21832,
2449,
22,
1435,
202,
202,
95,
1082,
202,
2284,
21,
18,
6387,
11033,
5621,
1082,
202,
2284,
21,
18,
6387,
14001,
12,
24,
1769,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
2284,
21,
18,
542,
1768,
2335,
12,
22,
1769,
1082,
202,
2284,
21,
18,
6387,
11033,
5621,
1082,
202,
2284,
21,
18,
542,
1768,
2335,
12,
20,
1769,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
2284,
21,
18,
588,
6688,
7675,
10001,
5621,
1082,
202,
759,
3163,
18,
659,
18,
8222,
2932,
2664,
31090,
9722,
30,
225,
342,
30598,
19,
972,
225,
521,
82,
6,
15,
2284,
21,
18,
9647,
2
] |
private void experimentFinished() { trialProgressBar.setValue(experiment.getTrialCount() + 1); updateExperimentControls(experiment, false); // runButton.setEnabled(false); runButton.setSelected(false); // allow user to run experiment again runButton.setEnabled(true); // reset trial counter currentTrial = -1; experimentTimer.stop(); }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/11903fbfe9ced7218d9a28db3cd6327518b244a9/CSMARTConsole.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/console/CSMARTConsole.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
90,
11359,
561,
6409,
10577,
1435,
95,
17493,
31547,
18,
542,
620,
12,
18142,
18,
588,
6251,
287,
1380,
1435,
15,
21,
1769,
2725,
22338,
16795,
12,
18142,
16,
5743,
1769,
759,
2681,
3616,
18,
542,
1526,
12,
5743,
1769,
2681,
3616,
18,
542,
7416,
12,
5743,
1769,
759,
5965,
407,
1051,
280,
318,
18142,
23095,
2681,
3616,
18,
542,
1526,
12,
3767,
1769,
759,
6208,
17493,
7476,
2972,
6251,
287,
29711,
21,
31,
18142,
6777,
18,
5681,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
90,
11359,
561,
6409,
10577,
1435,
95,
17493,
31547,
18,
542,
620,
12,
18142,
18,
588,
6251,
287,
1380,
1435,
15,
21,
1769,
2725,
22338,
16795,
12,
18142,
16,
5743,
1769,
759,
2681,
3616,
18,
542,
1526,
12,
5743,
1769,
2681,
3616,
18,
542,
7416,
12,
5743,
1769,
759,
5965,
407,
1051,
280,
318,
18142,
23095,
2681,
3616,
18,
542,
1526,
12,
3767,
1769,
759,
6208,
17493,
7476,
2972,
6251,
287,
29711,
21,
31,
18142,
6777,
18,
5681,
5621,
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
] |
||
(Stack)threadContext.getClassStack().clone());
|
threadContext.getRubyClass());
|
public void visitDefsNode(DefsNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw new SecurityError(runtime, "Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw new FrozenError(runtime, "object"); } if (! receiver.singletonMethodsAllowed()) { throw new TypeError(runtime, "can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass(); if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw new SecurityError(runtime, "Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, (Stack)threadContext.getClassStack().clone()); iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod("singleton_method_added", runtime.newSymbol(iVisited.getName())); result = runtime.getNil(); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/abfe85d15f992ecf4447b155d177050fe2239c3b/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
24454,
18,
291,
29048,
10756,
288,
5411,
604,
394,
6036,
668,
12,
9448,
16,
315,
382,
8869,
31,
848,
1404,
4426,
6396,
707,
1199,
1769,
3639,
289,
3639,
309,
261,
24454,
18,
291,
42,
9808,
10756,
288,
5411,
604,
394,
478,
9808,
668,
12,
9448,
16,
315,
1612,
8863,
3639,
289,
3639,
309,
16051,
5971,
18,
24487,
4712,
5042,
10756,
288,
5411,
604,
394,
3580,
12,
9448,
16,
27573,
315,
4169,
1404,
4426,
6396,
707,
11843,
397,
27573,
277,
30019,
18,
17994,
1435,
397,
27573,
7023,
364,
315,
397,
27573,
5971,
18,
588,
559,
10663,
3639,
289,
3639,
19817,
797,
22155,
797,
273,
5971,
18,
588,
19571,
797,
5621,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
5411,
467,
11452,
707,
273,
261,
45,
11452,
13,
22155,
797,
18,
588,
4712,
7675,
588,
12,
77,
30019,
18,
17994,
10663,
5411,
309,
261,
2039,
480,
446,
13,
288,
7734,
604,
394,
6036,
668,
12,
9448,
16,
315,
426,
5649,
310,
707,
450,
29993,
1199,
1769,
5411,
289,
3639,
289,
3639,
2989,
1305,
394,
1305,
273,
394,
2989,
1305,
12,
77,
30019,
18,
588,
2250,
907,
9334,
4766,
10792,
261,
2615,
907,
13,
277,
30019,
18,
588,
2615,
907,
9334,
4766,
10792,
27791,
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,
3757,
14554,
907,
12,
14554,
907,
277,
30019,
13,
288,
3639,
15908,
10340,
921,
5971,
273,
5302,
12,
77,
30019,
18,
588,
12952,
907,
10663,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
24454,
18,
291,
29048,
10756,
288,
5411,
604,
394,
6036,
668,
12,
9448,
16,
315,
382,
8869,
31,
848,
1404,
4426,
6396,
707,
1199,
1769,
3639,
289,
3639,
309,
261,
24454,
18,
291,
42,
9808,
10756,
288,
5411,
604,
394,
478,
9808,
668,
12,
9448,
16,
315,
1612,
8863,
3639,
289,
3639,
309,
16051,
5971,
18,
24487,
4712,
5042,
10756,
288,
5411,
604,
394,
3580,
12,
9448,
16,
27573,
315,
4169,
1404,
4426,
6396,
707,
11843,
397,
27573,
2
] |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
|
_call .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
|
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { try { org.apache.axis.client.Call _call = super._createCall(); if (super.maintainSessionSet) { _call.setMaintainSession(super.maintainSession); } if (super.cachedUsername != null) { _call.setUsername(super.cachedUsername); } if (super.cachedPassword != null) { _call.setPassword(super.cachedPassword); } if (super.cachedEndpoint != null) { _call.setTargetEndpointAddress(super.cachedEndpoint); } if (super.cachedTimeout != null) { _call.setTimeout(super.cachedTimeout); } if (super.cachedPortName != null) { _call.setPortName(super.cachedPortName); } java.util.Enumeration keys = super.cachedProperties.keys(); while (keys.hasMoreElements()) { java.lang.String key = (java.lang.String) keys.nextElement(); _call.setProperty(key, super.cachedProperties.get(key)); } // All the type mapping information is registered // when the first call is made. // The type mapping information is actually registered in // the TypeMappingRegistry of the service, which // is the reason why registration is only needed for the first call. synchronized (this) { if (firstCall()) { // must set encoding style before registering serializers _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC); for (int i = 0; i < cachedSerFactories.size(); ++i) { java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames.get(i); java.lang.Object x = cachedSerFactories.get(i); if (x instanceof Class) { java.lang.Class sf = (java.lang.Class) cachedSerFactories.get(i); java.lang.Class df = (java.lang.Class) cachedDeserFactories.get(i); _call.registerTypeMapping(cls, qName, sf, df, false); } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) { org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories.get(i); org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories.get(i); _call.registerTypeMapping(cls, qName, sf, df, false); } } } } return _call; } catch (java.lang.Throwable _t) { throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); } }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/4a820be38a9edc1276f2a21752f65f71b51690d6/TaskIntegratorSoapBindingStub.java/clean/src/org/genepattern/webservice/TaskIntegratorSoapBindingStub.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2358,
18,
19211,
18,
4890,
18,
2625,
18,
1477,
752,
1477,
1435,
1216,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
775,
288,
5411,
2358,
18,
19211,
18,
4890,
18,
2625,
18,
1477,
389,
1991,
273,
2240,
6315,
2640,
1477,
5621,
5411,
309,
261,
9565,
18,
81,
1598,
530,
2157,
694,
13,
288,
7734,
389,
1991,
18,
542,
49,
1598,
530,
2157,
12,
9565,
18,
81,
1598,
530,
2157,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
8575,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
8575,
12,
9565,
18,
7097,
8575,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
3913,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
3913,
12,
9565,
18,
7097,
3913,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
3293,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
2326,
3293,
1887,
12,
9565,
18,
7097,
3293,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
2694,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
2694,
12,
9565,
18,
7097,
2694,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
2617,
461,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
2617,
461,
12,
9565,
18,
7097,
2617,
461,
1769,
5411,
289,
5411,
2252,
18,
1367,
18,
21847,
1311,
273,
2240,
18,
7097,
2297,
18,
2452,
5621,
5411,
1323,
261,
2452,
18,
5332,
7417,
3471,
10756,
288,
7734,
2252,
18,
4936,
18,
780,
498,
273,
261,
6290,
18,
4936,
18,
780,
13,
1311,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2358,
18,
19211,
18,
4890,
18,
2625,
18,
1477,
752,
1477,
1435,
1216,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
775,
288,
5411,
2358,
18,
19211,
18,
4890,
18,
2625,
18,
1477,
389,
1991,
273,
2240,
6315,
2640,
1477,
5621,
5411,
309,
261,
9565,
18,
81,
1598,
530,
2157,
694,
13,
288,
7734,
389,
1991,
18,
542,
49,
1598,
530,
2157,
12,
9565,
18,
81,
1598,
530,
2157,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
8575,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
8575,
12,
9565,
18,
7097,
8575,
1769,
5411,
289,
5411,
309,
261,
9565,
18,
7097,
3913,
480,
446,
13,
288,
7734,
389,
1991,
18,
542,
3913,
12,
9565,
2
] |
GLDrawableFactory.getFactory().createGLJPanel(caps);
|
new GLJPanel(caps);
|
private JInternalFrame addWindow(int which) { // FIXME: workaround for problem in 1.6 where ALL Components, // including Swing components, are Finalizable, requiring two full // GC cycles (and running of finalizers) to reclaim System.gc(); // Try to get finalizers run try { Thread.sleep(1); } catch (InterruptedException e) { } System.gc(); String str = ""; switch (which) { case GEARS: str = "Gears Demo"; break; case HDR: str = "High Dynamic Range Rendering Demo"; break; case HWSHADOWS: str = "ARB_shadow Shadows"; break; case INFINITE: str = "Infinite Shadow Volumes"; break; case REFRACT: str = "Refraction Using Vertex Programs"; break; case VBO: str = "Very Simple vertex_buffer_object demo"; break; case WATER: str = "Procedural Texture Waves"; break; } final JInternalFrame inner = new JInternalFrame(str); inner.setResizable(true); inner.setClosable(true); inner.setVisible(true); GLCapabilities caps = new GLCapabilities(); if (which == INFINITE) { caps.setStencilBits(16); } final GLJPanel canvas = (which == GEARS) ? new JGears() : GLDrawableFactory.getFactory().createGLJPanel(caps); final DemoListener demoListener = new DemoListener() { public void shutdownDemo() { removeJPanel(canvas); SwingUtilities.invokeLater(new Runnable() { public void run() { inner.doDefaultCloseAction(); } }); } public void repaint() { canvas.repaint(); } }; Demo demo = null; switch (which) { case GEARS: { // GLEventListener already added break; } case HDR: { demo = new HDR(); ((HDR) demo).setup(null); inner.setSize(((HDR) demo).getPreferredWidth(), ((HDR) demo).getPreferredHeight()); break; } case HWSHADOWS: { demo = new HWShadowmapsSimple(); break; } case INFINITE: { demo = new InfiniteShadowVolumes(); break; } case REFRACT: { demo = new VertexProgRefract(); break; } case VBO: { demo = new VertexBufferObject(); break; } case WARP: { demo = new VertexProgWarp(); ((VertexProgWarp) demo).setTitleSetter(new VertexProgWarp.TitleSetter() { public void setTitle(final String title) { SwingUtilities.invokeLater(new Runnable() { public void run() { inner.setTitle(title); } }); } }); break; } case WATER: { demo = new ProceduralTexturePhysics(); break; } } if (which != GEARS) { demo.setDemoListener(demoListener); canvas.addGLEventListener(demo); } canvas.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { canvas.requestFocus(); } }); addJPanel(canvas); final Demo fDemo = demo; inner.addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosed(InternalFrameEvent e) { if (fDemo != null) { fDemo.shutdownDemo(); } } }); inner.getContentPane().setLayout(new BorderLayout()); /* if (which == REFRACT) { // Testing scrolling canvas.setSize(512, 512); canvas.setPreferredSize(new Dimension(512, 512)); JScrollPane scroller = new JScrollPane(canvas); inner.getContentPane().add(scroller); } else */ if (which == GEARS) { // Provide control over transparency of gears background canvas.setOpaque(false); JPanel gradientPanel = JGears.createGradientPanel(); inner.getContentPane().add(gradientPanel, BorderLayout.CENTER); gradientPanel.add(canvas, BorderLayout.CENTER); final JCheckBox checkBox = new JCheckBox("Transparent", true); checkBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { canvas.setOpaque(!checkBox.isSelected()); } }); inner.getContentPane().add(checkBox, BorderLayout.SOUTH); } else { inner.getContentPane().add(canvas, BorderLayout.CENTER); } if (which != HDR) { inner.setSize(512, 512); } desktop.add(inner); return inner; }
|
6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/c01ade1249ca5175510a4d6a699ac0772c6b11d9/JRefract.java/clean/src/demos/jrefract/JRefract.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
804,
3061,
3219,
527,
3829,
12,
474,
1492,
13,
288,
565,
368,
9852,
30,
18975,
364,
6199,
316,
404,
18,
26,
1625,
8061,
25286,
16,
565,
368,
6508,
26145,
4085,
16,
854,
16269,
6934,
16,
29468,
2795,
1983,
565,
368,
15085,
15139,
261,
464,
3549,
434,
727,
8426,
13,
358,
283,
14784,
565,
2332,
18,
13241,
5621,
565,
368,
6161,
358,
336,
727,
8426,
1086,
565,
775,
288,
1377,
4884,
18,
19607,
12,
21,
1769,
565,
289,
1044,
261,
24485,
503,
425,
13,
288,
565,
289,
565,
2332,
18,
13241,
5621,
565,
514,
609,
273,
1408,
31,
565,
1620,
261,
12784,
13,
288,
565,
648,
611,
9250,
55,
30,
377,
609,
273,
315,
43,
2091,
87,
27744,
83,
14432,
898,
31,
565,
648,
670,
6331,
30,
4202,
609,
273,
315,
8573,
12208,
8086,
18018,
27744,
83,
14432,
898,
31,
565,
648,
670,
2651,
44,
1880,
22973,
30,
609,
273,
315,
20926,
67,
19119,
24915,
87,
14432,
898,
31,
565,
648,
2120,
7263,
5398,
30,
225,
609,
273,
315,
382,
9551,
24915,
26027,
14432,
898,
31,
565,
648,
20557,
2849,
1268,
30,
282,
609,
273,
315,
1957,
5738,
11637,
12541,
13586,
87,
14432,
898,
31,
565,
648,
776,
5315,
30,
4202,
609,
273,
315,
58,
627,
4477,
5253,
67,
4106,
67,
1612,
21477,
14432,
898,
31,
565,
648,
678,
13641,
30,
377,
609,
273,
315,
626,
3263,
3766,
28582,
678,
6606,
14432,
898,
31,
565,
289,
565,
727,
804,
3061,
3219,
3443,
273,
394,
804,
3061,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
804,
3061,
3219,
527,
3829,
12,
474,
1492,
13,
288,
565,
368,
9852,
30,
18975,
364,
6199,
316,
404,
18,
26,
1625,
8061,
25286,
16,
565,
368,
6508,
26145,
4085,
16,
854,
16269,
6934,
16,
29468,
2795,
1983,
565,
368,
15085,
15139,
261,
464,
3549,
434,
727,
8426,
13,
358,
283,
14784,
565,
2332,
18,
13241,
5621,
565,
368,
6161,
358,
336,
727,
8426,
1086,
565,
775,
288,
1377,
4884,
18,
19607,
12,
21,
1769,
565,
289,
1044,
261,
24485,
503,
425,
13,
288,
565,
289,
565,
2332,
18,
13241,
5621,
565,
514,
609,
273,
1408,
31,
565,
1620,
261,
12784,
13,
288,
565,
648,
611,
9250,
55,
30,
377,
609,
273,
315,
43,
2091,
87,
27744,
2
] |
static void runScripts(Context cx) throws JavaScriptException { // Initialize the standard objects (Object, Function, etc.) // This must be done before scripts can be executed. The call // returns a new scope that we will share. ScriptableObject scope = cx.initStandardObjects(null, true); // Now we can evaluate a script and functions will be compiled to // use dynamic scope if the Context is so initialized. String source = "var x = 'sharedScope';" + "function f() { return x; }"; cx.evaluateString(scope, source, "MySource", 1, null); // Now we spawn some threads that execute a script that calls the // function 'f'. The scope chain looks like this: // <pre> // ------------------ // | shared scope | // ------------------ // ^ // | // ------------------ // | per-thread scope | // ------------------ // ^ // | // ------------------ // | f's activation | // ------------------ // </pre> // Both the shared scope and the per-thread scope have variables 'x' // defined in them. If 'f' is compiled with dynamic scope enabled, // the 'x' from the per-thread scope will be used. Otherwise, the 'x' // from the shared scope will be used. The 'x' defined in 'g' (which // calls 'f') should not be seen by 'f'. final int threadCount = 3; Thread[] t = new Thread[threadCount]; for (int i=0; i < threadCount; i++) { String script = "function g() { var x = 'local'; return f(); }" + "java.lang.System.out.println(g());"; t[i] = new Thread(new PerThread(scope, script, "thread" + i)); } for (int i=0; i < threadCount; i++) t[i].start(); // Don't return in this thread until all the spawned threads have // completed. for (int i=0; i < threadCount; i++) { try { t[i].join(); } catch (InterruptedException e) { } } }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8f793c397ef394e598a4b771d5b4396a8355dfd4/DynamicScopes.java/clean/js/rhino/examples/DynamicScopes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
1086,
15041,
12,
1042,
9494,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
9190,
326,
4529,
2184,
261,
921,
16,
4284,
16,
5527,
12998,
3639,
368,
1220,
1297,
506,
2731,
1865,
8873,
848,
506,
7120,
18,
1021,
745,
3639,
368,
1135,
279,
394,
2146,
716,
732,
903,
7433,
18,
3639,
22780,
921,
2146,
273,
9494,
18,
2738,
8336,
4710,
12,
2011,
16,
638,
1769,
3639,
368,
4494,
732,
848,
5956,
279,
2728,
471,
4186,
903,
506,
7743,
358,
3639,
368,
999,
5976,
2146,
309,
326,
1772,
353,
1427,
6454,
18,
3639,
514,
1084,
273,
315,
1401,
619,
273,
296,
11574,
3876,
11,
4868,
397,
13491,
315,
915,
284,
1435,
288,
327,
619,
31,
289,
14432,
3639,
9494,
18,
21024,
780,
12,
4887,
16,
1084,
16,
315,
12062,
1830,
3113,
404,
16,
446,
1769,
3639,
368,
4494,
732,
12560,
2690,
7403,
716,
1836,
279,
2728,
716,
4097,
326,
3639,
368,
445,
296,
74,
10332,
1021,
2146,
2687,
10192,
3007,
333,
30,
3639,
368,
411,
1484,
34,
3639,
368,
5411,
12146,
17,
3639,
368,
6647,
571,
282,
5116,
2146,
282,
571,
3639,
368,
5411,
12146,
17,
3639,
368,
10792,
3602,
3639,
368,
10792,
571,
3639,
368,
5411,
12146,
17,
3639,
368,
6647,
571,
1534,
17,
5930,
2146,
571,
3639,
368,
5411,
12146,
17,
3639,
368,
10792,
3602,
3639,
368,
10792,
571,
3639,
368,
5411,
12146,
17,
3639,
368,
6647,
571,
284,
1807,
10027,
282,
571,
3639,
368,
5411,
12146,
17,
3639,
368,
7765,
1484,
34,
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,
760,
918,
1086,
15041,
12,
1042,
9494,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
9190,
326,
4529,
2184,
261,
921,
16,
4284,
16,
5527,
12998,
3639,
368,
1220,
1297,
506,
2731,
1865,
8873,
848,
506,
7120,
18,
1021,
745,
3639,
368,
1135,
279,
394,
2146,
716,
732,
903,
7433,
18,
3639,
22780,
921,
2146,
273,
9494,
18,
2738,
8336,
4710,
12,
2011,
16,
638,
1769,
3639,
368,
4494,
732,
848,
5956,
279,
2728,
471,
4186,
903,
506,
7743,
358,
3639,
368,
999,
5976,
2146,
309,
326,
1772,
353,
1427,
6454,
18,
3639,
514,
1084,
273,
315,
1401,
619,
273,
296,
11574,
3876,
11,
4868,
397,
13491,
315,
915,
284,
1435,
288,
327,
619,
31,
289,
14432,
2
] |
||
public void setDefaultEnableCommentPreference(){ getPreferenceStore( ).setDefault(ENABLE_COMMENT_PREFERENCE,true);
|
public void setDefaultEnableCommentPreference( ) { getPreferenceStore( ).setDefault( ENABLE_COMMENT_PREFERENCE, true );
|
public void setDefaultEnableCommentPreference(){ getPreferenceStore( ).setDefault(ENABLE_COMMENT_PREFERENCE,true); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/fdee5ff6e49704a6be97e36cc62463f0d1c1e5b5/ReportPlugin.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
8317,
4469,
9624,
1435,
95,
202,
565,
336,
9624,
2257,
12,
262,
18,
542,
1868,
12,
29377,
67,
12200,
67,
3670,
10830,
16,
3767,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
8317,
4469,
9624,
1435,
95,
202,
565,
336,
9624,
2257,
12,
262,
18,
542,
1868,
12,
29377,
67,
12200,
67,
3670,
10830,
16,
3767,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (container == null) return null;
|
if (container == null) { return null; }
|
public Shell getShell() { if (container == null) return null; return container.getShell(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/391f2606b4ea2c1fb5052d938ca90877ee7631f6/Wizard.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/Wizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19433,
7932,
1165,
1435,
288,
3639,
309,
261,
3782,
422,
446,
13,
5411,
327,
446,
31,
3639,
327,
1478,
18,
588,
13220,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
19433,
7932,
1165,
1435,
288,
3639,
309,
261,
3782,
422,
446,
13,
5411,
327,
446,
31,
3639,
327,
1478,
18,
588,
13220,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
results = compare(retEnv, tempPath); assertTrue(results);
|
compareXML(retEnv, tempPath);
|
public void testR2GCEchoStructArray() throws AxisFault { url = "http://soapinterop.java.sun.com:80/round2/groupc"; soapAction = "http://soapinterop.org/"; util = new GroupcStructArrayUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "GroupcStructArrayRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/SunRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/SunRound2InteropTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
43,
1441,
2599,
3823,
1076,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
6290,
18,
16924,
18,
832,
30,
3672,
19,
2260,
22,
19,
1655,
71,
14432,
3639,
9930,
1803,
273,
315,
2505,
2207,
19215,
30376,
18,
3341,
4898,
31,
3639,
1709,
273,
394,
3756,
71,
3823,
1076,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
1114,
71,
3823,
1076,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
43,
1441,
2599,
3823,
1076,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
6290,
18,
16924,
18,
832,
30,
3672,
19,
2260,
22,
19,
1655,
71,
14432,
3639,
9930,
1803,
273,
315,
2505,
2207,
19215,
30376,
18,
3341,
4898,
31,
3639,
1709,
273,
394,
3756,
71,
3823,
1076,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
1114,
71,
3823,
1076,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
1769,
565,
289,
2,
-100,
-100,
-100
] |
public void TestCompositionExclusion() throws Exception{ // This list is generated from CompositionExclusion.txt. // Update whenever the normalizer tables are updated. Note // that we test all characters listed, even those that can be // derived from the Unicode DB and are therefore commented // out. String EXCLUDED = "\u0340\u0341\u0343\u0344\u0374\u037E\u0387\u0958" + "\u0959\u095A\u095B\u095C\u095D\u095E\u095F\u09DC" + "\u09DD\u09DF\u0A33\u0A36\u0A59\u0A5A\u0A5B\u0A5E" + "\u0B5C\u0B5D\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69" + "\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2" + "\u0FA7\u0FAC\u0FB9\u1F71\u1F73\u1F75\u1F77\u1F79" + "\u1F7B\u1F7D\u1FBB\u1FBE\u1FC9\u1FCB\u1FD3\u1FDB" + "\u1FE3\u1FEB\u1FEE\u1FEF\u1FF9\u1FFB\u1FFD\u2000" + "\u2001\u2126\u212A\u212B\u2329\u232A\uF900\uFA10" + "\uFA12\uFA15\uFA20\uFA22\uFA25\uFA26\uFA2A\uFB1F" + "\uFB2A\uFB2B\uFB2C\uFB2D\uFB2E\uFB2F\uFB30\uFB31" + "\uFB32\uFB33\uFB34\uFB35\uFB36\uFB38\uFB39\uFB3A" + "\uFB3B\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46" + "\uFB47\uFB48\uFB49\uFB4A\uFB4B\uFB4C\uFB4D\uFB4E"; for (int i=0; i<EXCLUDED.length(); ++i) { String a = String.valueOf(EXCLUDED.charAt(i)); String b = Normalizer.normalize(a, Normalizer.NFKD); String c = Normalizer.normalize(b, Normalizer.NFC); if (c.equals(a)) { errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + hex(b) + " x COMPOSE => " + hex(c)); } else if (isVerbose()) { logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + hex(b) + " x COMPOSE => " + hex(c)); } } // The following method works too, but it is somewhat // incestuous. It uses UInfo, which is the same database that // NormalizerBuilder uses, so if something is wrong with // UInfo, the following test won't show it. All it will show // is that NormalizerBuilder has been run with whatever the // current UInfo is. // // We comment this out in favor of the test above, which // provides independent verification (but also requires // independent updating).// logln("---");// UInfo uinfo = new UInfo();// for (int i=0; i<=0xFFFF; ++i) {// if (!uinfo.isExcludedComposition((char)i) ||// (!uinfo.hasCanonicalDecomposition((char)i) &&// !uinfo.hasCompatibilityDecomposition((char)i))) continue;// String a = String.valueOf((char)i);// String b = NewNormalizer.normalize(a,NewNormalizer.DECOMP_COMPAT,0);// String c = NewNormalizer.normalize(b,NewNormalizer.COMPOSE,0);// if (c.equals(a)) {// errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " +// hex(b) + " x COMPOSE => " +// hex(c));// } else if (isVerbose()) {// logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " +// hex(b) + " x COMPOSE => " +// hex(c));// }// } }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/8eda2a2927df7c9fb008630877248928611b5ffd/BasicTest.java/buggy/icu4j/src/com/ibm/icu/dev/test/normalizer/BasicTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7766,
28940,
424,
15335,
1435,
7734,
1216,
1185,
95,
3639,
368,
1220,
666,
353,
4374,
628,
1286,
3276,
424,
15335,
18,
5830,
18,
3639,
368,
2315,
17334,
326,
19839,
4606,
854,
3526,
18,
225,
3609,
3639,
368,
716,
732,
1842,
777,
3949,
12889,
16,
5456,
5348,
716,
848,
506,
3639,
368,
10379,
628,
326,
9633,
2383,
471,
854,
13526,
31813,
3639,
368,
596,
18,
3639,
514,
5675,
11686,
7660,
273,
5411,
1548,
89,
4630,
7132,
64,
89,
4630,
9803,
64,
89,
4630,
8942,
64,
89,
4630,
6334,
64,
89,
4630,
5608,
64,
89,
4630,
27,
41,
64,
89,
4630,
11035,
64,
89,
5908,
8204,
6,
397,
5411,
1548,
89,
5908,
6162,
64,
89,
5908,
25,
37,
64,
89,
5908,
25,
38,
64,
89,
5908,
25,
39,
64,
89,
5908,
25,
40,
64,
89,
5908,
25,
41,
64,
89,
5908,
25,
42,
64,
89,
5908,
5528,
6,
397,
5411,
1548,
89,
5908,
5698,
64,
89,
5908,
4577,
64,
89,
20,
37,
3707,
64,
89,
20,
37,
5718,
64,
89,
20,
37,
6162,
64,
89,
20,
37,
25,
37,
64,
89,
20,
37,
25,
38,
64,
89,
20,
37,
25,
41,
6,
397,
5411,
1548,
89,
20,
38,
25,
39,
64,
89,
20,
38,
25,
40,
64,
89,
20,
42,
8942,
64,
89,
20,
42,
24,
40,
64,
89,
20,
42,
9401,
64,
89,
20,
42,
10321,
64,
89,
20,
42,
25,
39,
64,
89,
20,
42,
8148,
6,
397,
5411,
1548,
89,
20,
42,
9036,
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,
7766,
28940,
424,
15335,
1435,
7734,
1216,
1185,
95,
3639,
368,
1220,
666,
353,
4374,
628,
1286,
3276,
424,
15335,
18,
5830,
18,
3639,
368,
2315,
17334,
326,
19839,
4606,
854,
3526,
18,
225,
3609,
3639,
368,
716,
732,
1842,
777,
3949,
12889,
16,
5456,
5348,
716,
848,
506,
3639,
368,
10379,
628,
326,
9633,
2383,
471,
854,
13526,
31813,
3639,
368,
596,
18,
3639,
514,
5675,
11686,
7660,
273,
5411,
1548,
89,
4630,
7132,
64,
89,
4630,
9803,
64,
89,
4630,
8942,
64,
89,
4630,
6334,
64,
89,
4630,
5608,
64,
89,
4630,
27,
41,
64,
89,
4630,
11035,
64,
89,
5908,
8204,
6,
397,
5411,
1548,
89,
5908,
6162,
64,
89,
5908,
25,
37,
2
] |
||
logger.error("Exception adding soaplab service:"+categoryBase,e);
|
logger.debug("Missing category: "+categoryBase);
|
boolean loadCategories(String categoryBase) { boolean foundSome = false; String[] categories; try { categories = (String[]) Soap.callWebService(categoryBase, "getAvailableCategories"); } catch (Exception e) { logger.error("Exception adding soaplab service:"+categoryBase,e); return false; } // Iterate over all the categories, creating new child nodes for (int i = 0; i < categories.length; i++) { String[] services; try { services = (String[]) Soap.callWebService(categoryBase, "getAvailableAnalysesInCategory", categories[i]); } catch (Exception e) { logger.info("Skipping categort "+categories[i]); continue; } if (services.length == 0) { // Avoid creating empty treenodes continue; } DefaultMutableTreeNode category = new DefaultMutableTreeNode( categories[i]); foundSome = true; // Iterate over the services for (int j = 0; j < services.length; j++) { SoaplabProcessorFactory f = new SoaplabProcessorFactory(base, services[j]); category.add(new DefaultMutableTreeNode(f)); } this.add(category); } return foundSome; }
|
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/82fbf314ae98550da5f2b4bac458537556317b59/SoaplabScavenger.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflworkers/soaplab/SoaplabScavenger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
1262,
10487,
12,
780,
3150,
2171,
13,
288,
202,
202,
6494,
1392,
17358,
273,
629,
31,
202,
202,
780,
8526,
6477,
31,
202,
202,
698,
288,
1082,
202,
8995,
273,
261,
780,
63,
5717,
21789,
18,
1991,
31946,
12,
4743,
2171,
16,
6862,
202,
6,
588,
5268,
10487,
8863,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
4901,
18,
1636,
2932,
503,
6534,
1427,
69,
412,
378,
1156,
2773,
15,
4743,
2171,
16,
73,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
11436,
1879,
777,
326,
6477,
16,
4979,
394,
1151,
2199,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6477,
18,
2469,
31,
277,
27245,
288,
25083,
202,
780,
8526,
4028,
31,
1082,
202,
698,
288,
9506,
202,
8387,
273,
261,
780,
63,
5717,
21789,
18,
1991,
31946,
12,
4743,
2171,
16,
25083,
202,
6,
588,
5268,
979,
23723,
382,
4457,
3113,
6477,
63,
77,
19226,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
4901,
18,
1376,
2932,
16877,
276,
1287,
499,
13773,
8995,
63,
77,
19226,
9506,
202,
17143,
31,
1082,
202,
97,
25083,
202,
430,
261,
8387,
18,
2469,
422,
374,
13,
288,
9506,
202,
759,
17843,
4979,
1008,
268,
2842,
1145,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
1868,
19536,
12513,
3150,
273,
394,
2989,
19536,
12513,
12,
6862,
202,
8995,
63,
77,
19226,
25083,
202,
7015,
17358,
273,
638,
31,
1082,
202,
759,
11436,
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,
6494,
1262,
10487,
12,
780,
3150,
2171,
13,
288,
202,
202,
6494,
1392,
17358,
273,
629,
31,
202,
202,
780,
8526,
6477,
31,
202,
202,
698,
288,
1082,
202,
8995,
273,
261,
780,
63,
5717,
21789,
18,
1991,
31946,
12,
4743,
2171,
16,
6862,
202,
6,
588,
5268,
10487,
8863,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
4901,
18,
1636,
2932,
503,
6534,
1427,
69,
412,
378,
1156,
2773,
15,
4743,
2171,
16,
73,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
11436,
1879,
777,
326,
6477,
16,
4979,
394,
1151,
2199,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6477,
18,
2469,
31,
277,
27245,
2
] |
TasksUiPlugin.getDefault().getProxySettings(), repository.getUserName(), repository.getPassword(), repository.getCharacterEncoding()).getKeywords();
|
TasksUiPlugin.getDefault().getProxySettings(), repository.getUserName(), repository.getPassword(), repository.getCharacterEncoding()).getKeywords();
|
protected void addKeywordsList(FormToolkit toolkit, String keywords, Composite attributesComposite) throws IOException { // newLayout(attributesComposite, 1, "Keywords:", PROPERTY); toolkit.createLabel(attributesComposite, "Keywords:"); keywordsText = toolkit.createText(attributesComposite, keywords); keywordsText.setFont(TEXT_FONT); keywordsText.setEditable(false); // keywordsText.setForeground(foreground); // keywordsText.setBackground(JFaceColors.getErrorBackground(display)); GridData keywordsData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); keywordsData.horizontalSpan = 2; keywordsData.widthHint = 200; keywordsText.setLayoutData(keywordsData); // keywordsText.setText(keywords); keywordsText.addListener(SWT.FocusIn, new GenericListener()); keyWordsList = new List(attributesComposite, SWT.MULTI | SWT.V_SCROLL); keyWordsList.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); keyWordsList.setFont(TEXT_FONT); GridData keyWordsTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); keyWordsTextData.horizontalSpan = 1; keyWordsTextData.widthHint = 125; keyWordsTextData.heightHint = 40; keyWordsList.setLayoutData(keyWordsTextData); // initialize the keywords list with valid values java.util.List<String> validKeywords = new ArrayList<String>(); try { validKeywords = BugzillaPlugin.getRepositoryConfiguration(false, repository.getUrl(), TasksUiPlugin.getDefault().getProxySettings(), repository.getUserName(), repository.getPassword(), repository.getCharacterEncoding()).getKeywords(); } catch (Exception e) { // ignore } if (validKeywords != null) { for (Iterator<String> it = validKeywords.iterator(); it.hasNext();) { String keyword = it.next(); keyWordsList.add(keyword); } // get the selected keywords for the bug StringTokenizer st = new StringTokenizer(keywords, ",", false); ArrayList<Integer> indicies = new ArrayList<Integer>(); while (st.hasMoreTokens()) { String s = st.nextToken().trim(); int index = keyWordsList.indexOf(s); if (index != -1) indicies.add(new Integer(index)); } // select the keywords that were selected for the bug int length = indicies.size(); int[] sel = new int[length]; for (int i = 0; i < length; i++) { sel[i] = indicies.get(i).intValue(); } keyWordsList.select(sel); } keyWordsList.addSelectionListener(new KeywordListener()); keyWordsList.addListener(SWT.FocusIn, new GenericListener()); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7e276a0fd44b35e55aca19278c22cade6d03adf3/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
14149,
682,
12,
1204,
6364,
8691,
5226,
8691,
16,
514,
7093,
16,
14728,
1677,
9400,
13,
1082,
202,
15069,
1860,
288,
202,
202,
759,
394,
3744,
12,
4350,
9400,
16,
404,
16,
315,
14149,
2773,
16,
9759,
1769,
202,
202,
6738,
8691,
18,
2640,
2224,
12,
4350,
9400,
16,
315,
14149,
2773,
1769,
202,
202,
11771,
1528,
273,
5226,
8691,
18,
2640,
1528,
12,
4350,
9400,
16,
7093,
1769,
202,
202,
11771,
1528,
18,
542,
5711,
12,
5151,
67,
25221,
1769,
202,
202,
11771,
1528,
18,
542,
15470,
12,
5743,
1769,
202,
202,
759,
7093,
1528,
18,
542,
23206,
12,
1405,
2915,
1769,
202,
202,
759,
7093,
1528,
18,
542,
8199,
12,
46,
11824,
12570,
18,
588,
668,
8199,
12,
5417,
10019,
202,
202,
6313,
751,
7093,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
29818,
1769,
202,
202,
11771,
751,
18,
18396,
6952,
273,
576,
31,
202,
202,
11771,
751,
18,
2819,
7002,
273,
4044,
31,
202,
202,
11771,
1528,
18,
542,
3744,
751,
12,
11771,
751,
1769,
202,
202,
759,
7093,
1528,
18,
542,
1528,
12,
11771,
1769,
202,
202,
11771,
1528,
18,
1289,
2223,
12,
55,
8588,
18,
9233,
382,
16,
394,
7928,
2223,
10663,
202,
202,
856,
7363,
682,
273,
394,
987,
12,
4350,
9400,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
856,
7363,
682,
18,
542,
751,
12,
1204,
6364,
8691,
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,
1117,
918,
527,
14149,
682,
12,
1204,
6364,
8691,
5226,
8691,
16,
514,
7093,
16,
14728,
1677,
9400,
13,
1082,
202,
15069,
1860,
288,
202,
202,
759,
394,
3744,
12,
4350,
9400,
16,
404,
16,
315,
14149,
2773,
16,
9759,
1769,
202,
202,
6738,
8691,
18,
2640,
2224,
12,
4350,
9400,
16,
315,
14149,
2773,
1769,
202,
202,
11771,
1528,
273,
5226,
8691,
18,
2640,
1528,
12,
4350,
9400,
16,
7093,
1769,
202,
202,
11771,
1528,
18,
542,
5711,
12,
5151,
67,
25221,
1769,
202,
202,
11771,
1528,
18,
542,
15470,
12,
5743,
1769,
202,
202,
759,
7093,
1528,
18,
542,
23206,
12,
1405,
2915,
1769,
202,
202,
759,
7093,
1528,
18,
542,
8199,
12,
46,
11824,
2
] |
AbstractQueryHitCollector collector = new AbstractQueryHitCollector() {
|
AbstractQueryHitCollector collector = new AbstractQueryHitCollector(TasksUiPlugin.getTaskListManager().getTaskList()) {
|
private List<AbstractQueryHit> runQuery(String repositoryURL, String SearchString) throws Exception { final ArrayList<AbstractQueryHit> results = new ArrayList<AbstractQueryHit>(); TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(BugzillaCorePlugin.REPOSITORY_KIND, repositoryURL); assertNotNull(repository); final BugzillaRepositoryQuery repositoryQuery = new BugzillaRepositoryQuery( repository.getUrl(), repository.getUrl() + BUG_DESC_SUBSTRING_SEARCH+SearchString, QUERY_NAME, MAX_HITS, TasksUiPlugin.getTaskListManager().getTaskList()); AbstractRepositoryConnector connector = (AbstractRepositoryConnector) TasksUiPlugin.getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); AbstractQueryHitCollector collector = new AbstractQueryHitCollector() { @Override public void addMatch(AbstractQueryHit hit) { results.add(hit); } }; connector.performQuery(repositoryQuery, new NullProgressMonitor(), collector); //results.addAll(connector.performQuery(repositoryQuery, new NullProgressMonitor(), new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null))); return results; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8a5cc10d3de6a3f3ce3842e0248504054ac47e89/BugzillaSearchEngineTest.java/clean/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
32,
7469,
1138,
13616,
34,
1086,
1138,
12,
780,
3352,
1785,
16,
514,
5167,
780,
13,
1216,
1185,
288,
202,
202,
6385,
2407,
32,
7469,
1138,
13616,
34,
1686,
273,
394,
2407,
32,
7469,
1138,
13616,
34,
5621,
202,
202,
2174,
3305,
3352,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
19865,
15990,
4670,
3773,
18,
862,
30986,
67,
47,
2356,
16,
3352,
1785,
1769,
202,
202,
11231,
5962,
12,
9071,
1769,
25083,
202,
6385,
16907,
15990,
3305,
1138,
3352,
1138,
273,
394,
16907,
15990,
3305,
1138,
12,
9506,
202,
9071,
18,
588,
1489,
9334,
4697,
202,
9071,
18,
588,
1489,
1435,
397,
10937,
43,
67,
10964,
67,
8362,
5804,
67,
17251,
15,
2979,
780,
16,
4697,
202,
10753,
67,
1985,
16,
4697,
202,
6694,
67,
44,
10158,
16,
20350,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
10663,
9506,
202,
7469,
3305,
7487,
8703,
273,
261,
7469,
3305,
7487,
13,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
7487,
12,
19865,
15990,
4670,
3773,
18,
862,
30986,
67,
47,
2356,
1769,
9506,
202,
7469,
1138,
13616,
7134,
8543,
273,
394,
4115,
1138,
13616,
7134,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
527,
2060,
12,
7469,
1138,
13616,
6800,
13,
288,
9506,
202,
4717,
18,
1289,
12,
15989,
1769,
1082,
202,
97,
6862,
202,
20451,
9506,
202,
23159,
18,
16092,
1138,
12,
9071,
1138,
16,
394,
4112,
5491,
7187,
9334,
8543,
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,
987,
32,
7469,
1138,
13616,
34,
1086,
1138,
12,
780,
3352,
1785,
16,
514,
5167,
780,
13,
1216,
1185,
288,
202,
202,
6385,
2407,
32,
7469,
1138,
13616,
34,
1686,
273,
394,
2407,
32,
7469,
1138,
13616,
34,
5621,
202,
202,
2174,
3305,
3352,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12,
19865,
15990,
4670,
3773,
18,
862,
30986,
67,
47,
2356,
16,
3352,
1785,
1769,
202,
202,
11231,
5962,
12,
9071,
1769,
25083,
202,
6385,
16907,
15990,
3305,
1138,
3352,
1138,
273,
394,
16907,
15990,
3305,
1138,
12,
9506,
202,
9071,
18,
588,
1489,
9334,
4697,
202,
9071,
18,
588,
1489,
1435,
397,
10937,
43,
67,
10964,
67,
8362,
5804,
67,
2
] |
try { if(server!=null) { server.stop(); } } catch (InterruptedException ie) { if (sfLog().isErrorEnabled()){ sfLog().error(" Interrupted on server termination " , ie);
|
try { if (server != null) { server.stop();
|
public void sfTerminateWith(TerminationRecord status) { try { if(server!=null) { server.stop(); } } catch (InterruptedException ie) { if (sfLog().isErrorEnabled()){ sfLog().error(" Interrupted on server termination " , ie); } } super.sfTerminateWith(status); }
|
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/bd84493b318ded314c6b8f689fb68a51db82e2e7/SFJetty.java/clean/core/components/jetty/src/org/smartfrog/services/jetty/SFJetty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9033,
26106,
1190,
12,
16516,
2115,
1267,
13,
288,
1377,
775,
288,
1850,
309,
12,
3567,
5,
33,
2011,
13,
288,
5411,
1438,
18,
5681,
5621,
1850,
289,
1377,
289,
1044,
261,
24485,
503,
9228,
13,
288,
5411,
309,
261,
21668,
1343,
7675,
291,
668,
1526,
10756,
95,
2868,
9033,
1343,
7675,
1636,
2932,
7350,
603,
1438,
19650,
315,
269,
9228,
1769,
5411,
289,
1377,
289,
1377,
2240,
18,
21668,
26106,
1190,
12,
2327,
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,
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,
1071,
918,
9033,
26106,
1190,
12,
16516,
2115,
1267,
13,
288,
1377,
775,
288,
1850,
309,
12,
3567,
5,
33,
2011,
13,
288,
5411,
1438,
18,
5681,
5621,
1850,
289,
1377,
289,
1044,
261,
24485,
503,
9228,
13,
288,
5411,
309,
261,
21668,
1343,
7675,
291,
668,
1526,
10756,
95,
2868,
9033,
1343,
7675,
1636,
2932,
7350,
603,
1438,
19650,
315,
269,
9228,
1769,
5411,
289,
1377,
289,
1377,
2240,
18,
21668,
26106,
1190,
12,
2327,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
removeChildrenAndAdjustWhiteSpaces(first, last, parent, parent.getPsi().getContainingFile());
|
removeChildrenAndAdjustWhiteSpaces(first, last, parent, getTreeElementContainingFile(parent));
|
public static void removeChildren(CompositeElement parent, ASTNode first, ASTNode last) { if (FormatterEx.getInstanceEx().isDisabled()) { parent.removeRange(first, findLastChild(last)); } else { checkAllWhiteSpaces(parent); removeChildrenAndAdjustWhiteSpaces(first, last, parent, parent.getPsi().getContainingFile()); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/96735ca7ff93fd7888903ef0019b76e8c47ac172/CodeEditUtil.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1206,
4212,
12,
9400,
1046,
982,
16,
9183,
907,
1122,
16,
9183,
907,
1142,
13,
288,
565,
309,
261,
5074,
424,
18,
588,
1442,
424,
7675,
291,
8853,
10756,
288,
1377,
982,
18,
4479,
2655,
12,
3645,
16,
1104,
3024,
1763,
12,
2722,
10019,
565,
289,
469,
288,
1377,
866,
1595,
13407,
12077,
12,
2938,
1769,
1377,
1206,
4212,
1876,
10952,
13407,
12077,
12,
3645,
16,
1142,
16,
982,
16,
15867,
1046,
24344,
812,
12,
2938,
10019,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1206,
4212,
12,
9400,
1046,
982,
16,
9183,
907,
1122,
16,
9183,
907,
1142,
13,
288,
565,
309,
261,
5074,
424,
18,
588,
1442,
424,
7675,
291,
8853,
10756,
288,
1377,
982,
18,
4479,
2655,
12,
3645,
16,
1104,
3024,
1763,
12,
2722,
10019,
565,
289,
469,
288,
1377,
866,
1595,
13407,
12077,
12,
2938,
1769,
1377,
1206,
4212,
1876,
10952,
13407,
12077,
12,
3645,
16,
1142,
16,
982,
16,
15867,
1046,
24344,
812,
12,
2938,
10019,
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
] |
String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; } } for (; pos > 0; pos--) { try { d = Double.parseDouble(str.substring(0, pos)); } catch (NumberFormatException ex) { continue; } break; } return new RubyFloat(ruby, d); }
|
String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; } } for (; pos > 0; pos--) { try { d = Double.parseDouble(str.substring(0, pos)); } catch (NumberFormatException ex) { continue; } break; } return new RubyFloat(ruby, d); }
|
public static RubyFloat str2fnum(Ruby ruby, RubyString arg) { String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; } } for (; pos > 0; pos--) { try { d = Double.parseDouble(str.substring(0, pos)); } catch (NumberFormatException ex) { continue; } break; } return new RubyFloat(ruby, d); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/clean/org/jruby/RubyNumeric.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
4723,
609,
22,
74,
2107,
12,
54,
10340,
22155,
16,
19817,
780,
1501,
13,
288,
3639,
514,
609,
273,
1501,
18,
24805,
7675,
5290,
5621,
3639,
1645,
302,
273,
374,
18,
20,
31,
3639,
509,
949,
273,
609,
18,
2469,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
949,
31,
277,
27245,
288,
5411,
309,
7566,
26684,
73,
41,
18549,
1199,
18,
31806,
12,
701,
18,
3001,
861,
12,
77,
3719,
422,
300,
21,
13,
288,
7734,
949,
273,
277,
397,
404,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
364,
261,
31,
949,
405,
374,
31,
949,
413,
13,
288,
5411,
775,
288,
7734,
302,
273,
3698,
18,
2670,
5265,
12,
701,
18,
28023,
12,
20,
16,
949,
10019,
5411,
289,
1044,
261,
1854,
9291,
431,
13,
288,
7734,
1324,
31,
5411,
289,
5411,
898,
31,
3639,
289,
3639,
327,
394,
19817,
4723,
12,
27768,
16,
302,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
4723,
609,
22,
74,
2107,
12,
54,
10340,
22155,
16,
19817,
780,
1501,
13,
288,
3639,
514,
609,
273,
1501,
18,
24805,
7675,
5290,
5621,
3639,
1645,
302,
273,
374,
18,
20,
31,
3639,
509,
949,
273,
609,
18,
2469,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
949,
31,
277,
27245,
288,
5411,
309,
7566,
26684,
73,
41,
18549,
1199,
18,
31806,
12,
701,
18,
3001,
861,
12,
77,
3719,
422,
300,
21,
13,
288,
7734,
949,
273,
277,
397,
404,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
364,
261,
31,
949,
405,
374,
31,
949,
413,
13,
288,
5411,
775,
288,
7734,
302,
273,
3698,
18,
2670,
5265,
2
] |
isInversed = false;
|
isReverted = false;
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { final HTTPRequest request = new HTTPRequest(uri); String path = uri.getPath(); if(path.endsWith("myref.fref")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); final boolean fProxyJavascriptEnabled = node.isFProxyJavascriptEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { int result = 0; boolean isSet = true; PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; if(request.isParameterSet("sortBy")){ final String sortBy = request.getParam("sortBy"); if(sortBy.equals("name")){ result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); }else if(sortBy.equals("address")){ result = firstNode.getPeerAddress().compareToIgnoreCase(secondNode.getPeerAddress()); }else if(sortBy.equals("location")){ double diff = firstNode.getLocation() - secondNode.getLocation(); result = diff > 0 ? -1 : 1; // It shouldn't ever be equal anyway }else if(sortBy.equals("version")){ result = firstNode.getVersion().compareTo(secondNode.getVersion()); }else if(sortBy.equals("privnote")){ result = firstNode.getPrivateDarknetCommentNote().compareTo(secondNode.getPrivateDarknetCommentNote()); }else isSet=false; } if(!isSet){ int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference == 0) result = statusDifference; else result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); } if(request.isParameterSet("inverse")){ isInversed = true; return (result == 0 ? 0 : (result == 1 ? -1 : 1)); }else{ isInversed = false; return result; } } }); int numberOfConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + '/' + numberOfRoutingBackedOff + '/' + numberOfTooNew + '/' + numberOfTooOld + '/' + numberOfNotConnected + ')'; } else { titleCountString = (numberOfNotConnected + numberOfSimpleConnected)>0 ? String.valueOf(numberOfSimpleConnected) : ""; } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); if(peerNodeStatuses.length>0){ /* node status values */ long nodeUptimeSeconds = (now - node.startupTime) / 1000; int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimateSession = node.getNetworkSizeEstimate(-1); int networkSizeEstimateRecent = 0; if(nodeUptimeSeconds > (48*60*60)) { // 48 hours networkSizeEstimateRecent = node.getNetworkSizeEstimate(now - (48*60*60*1000)); // 48 hours } DecimalFormat fix4 = new DecimalFormat("0.0000"); double routingMissDistance = node.routingMissDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedOffPercent = node.backedOffPercent.currentValue(); String nodeUptimeString = TimeUtil.formatTime(nodeUptimeSeconds * 1000); // *1000 to convert to milliseconds // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimateSession:\u00a0" + networkSizeEstimateSession + "\u00a0nodes"); if(nodeUptimeSeconds > (48*60*60)) { // 48 hours overviewList.addChild("li", "networkSizeEstimateRecent:\u00a0" + networkSizeEstimateRecent + "\u00a0nodes"); } overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "routingMissDistance:\u00a0" + fix4.format(routingMissDistance)); overviewList.addChild("li", "backedOffPercent:\u00a0" + fix1.format(backedOffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } long[] total = IOStatisticCollector.getTotalIO(); long total_output_rate = (total[0]) / nodeUptimeSeconds; long total_input_rate = (total[1]) / nodeUptimeSeconds; long totalPayload = node.getTotalPayloadSent(); long total_payload_rate = totalPayload / nodeUptimeSeconds; int percent = (int) (100 * totalPayload / total[0]); activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0], true) + "\u00a0(" + SizeUtil.formatSize(total_output_rate, true) + "ps)"); activityList.addChild("li", "Payload Output:\u00a0" + SizeUtil.formatSize(totalPayload, true) + "\u00a0(" + SizeUtil.formatSize(total_payload_rate, true) + "ps) ("+percent+"%)"); activityList.addChild("li", "Total Input:\u00a0" + SizeUtil.formatSize(total[1], true) + "\u00a0(" + SizeUtil.formatSize(total_input_rate, true) + "ps)"); long[] rate = node.getNodeIOStats(); long delta = (rate[5] - rate[2]) / 1000; long output_rate = (rate[3] - rate[0]) / delta; long input_rate = (rate[4] - rate[1]) / delta; SubConfig nodeConfig = node.config.get("node"); int outputBandwidthLimit = nodeConfig.getInt("outputBandwidthLimit"); int inputBandwidthLimit = nodeConfig.getInt("inputBandwidthLimit"); if(inputBandwidthLimit == -1) { inputBandwidthLimit = outputBandwidthLimit * 4; } activityList.addChild("li", "Output Rate:\u00a0" + SizeUtil.formatSize(output_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(outputBandwidthLimit, true)+"ps)"); activityList.addChild("li", "Input Rate:\u00a0" + SizeUtil.formatSize(input_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(inputBandwidthLimit, true)+"ps)"); } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { HTMLNode peerStatsConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_connected", "Connected: We're successfully connected to these nodes", "border-bottom: 1px dotted; cursor: help;" }, "Connected"); peerStatsConnectedListItem.addChild("span", ":\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { HTMLNode peerStatsRoutingBackedOffListItem = peerStatsList.addChild("li").addChild("span"); peerStatsRoutingBackedOffListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_backed_off", (advancedEnabled ? "Connected but backed off: These peers are connected but we're backed off of them" : "Busy: These peers are connected but they're busy") + ", so the node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, advancedEnabled ? "Backed off" : "Busy"); peerStatsRoutingBackedOffListItem.addChild("span", ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { HTMLNode peerStatsTooNewListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooNewListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_new", "Connected but too new: These peers' minimum mandatory build is higher than this node's build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too New"); peerStatsTooNewListItem.addChild("span", ":\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { HTMLNode peerStatsTooOldListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooOldListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_old", "Connected but too old: This node's minimum mandatory build is higher than these peers' build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too Old"); peerStatsTooOldListItem.addChild("span", ":\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { HTMLNode peerStatsDisconnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisconnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disconnected", "Not connected: No connection so far but this node is continuously trying to connect", "border-bottom: 1px dotted; cursor: help;" }, "Disconnected"); peerStatsDisconnectedListItem.addChild("span", ":\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { HTMLNode peerStatsNeverConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsNeverConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Never Connected: The node has never connected with these peers", "border-bottom: 1px dotted; cursor: help;" }, "Never Connected"); peerStatsNeverConnectedListItem.addChild("span", ":\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { HTMLNode peerStatsDisabledListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisabledListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disabled", "Not connected and disabled: because the user has instructed to not connect to peers ", "border-bottom: 1px dotted; cursor: help;" }, "Disabled"); peerStatsDisabledListItem.addChild("span", ":\u00a0" + numberOfDisabled); } if (numberOfBursting > 0) { HTMLNode peerStatsBurstingListItem = peerStatsList.addChild("li").addChild("span"); peerStatsBurstingListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_bursting", "Not connected and bursting: this node is, for a short period, trying to connect to these peers because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Bursting"); peerStatsBurstingListItem.addChild("span", ":\u00a0" + numberOfBursting); } if (numberOfListening > 0) { HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listening", "Not connected but listening: this node won't try to connect to these peers very often because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening); } if (numberOfListenOnly > 0) { HTMLNode peerStatsListenOnlyListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListenOnlyListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listen_only", "Not connected and listen only: this node won't try to connect to these peers at all because the user has set ListenOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listen Only"); peerStatsListenOnlyListItem.addChild("span", ":\u00a0" + numberOfListenOnly); } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE if(fProxyJavascriptEnabled) { StringBuffer jsBuf = new StringBuffer(); // FIXME: There's probably some icky Javascript in here (this is the first thing that worked for me); feel free to fix up to Javascript guru standards jsBuf.append( " function peerNoteChange() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); //jsBuf.append( " document.getElementById( \"peersForm\" ).submit();\n" ); jsBuf.append( " document.getElementById( \"peersForm\" ).doAction.click();\n" ); jsBuf.append( " }\n" ); jsBuf.append( " function peerNoteBlur() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); jsBuf.append( " }\n" ); contentNode.addChild("script", "type", "text/javascript").addChild("%", jsBuf.toString()); } HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = ctx.addFormChild(peerTableInfoboxContent, ".", "peersForm"); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=status&inversed=true" : "?sortBy=status")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=name&inversed=true" : "?sortBy=name")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=address&inversed=true" : "?sortBy=address")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's network address as IP:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=version&inversed=true" : "?sortBy=version")).addChild("#", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=location&inversed=true" : "?sortBy=location")).addChild("#", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Other node busy? Display: Percentage of time the node is overloaded, Current wait time remaining (0=not overloaded)/total/last overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node was connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); peerTableHeaderRow.addChild("th").addChild("a", "href", (!isInversed ? "?sortBy=privnote&inversed=true" : "?sortBy=privnote")).addChild("span", new String[] { "title", "style" }, new String[] { "A private note concerning this peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note"); if(advancedEnabled) { peerTableHeaderRow.addChild("th", "%\u00a0Time Routable"); peerTableHeaderRow.addChild("th", "Total\u00a0Traffic\u00a0(in/out)"); } for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", ' ' + String.valueOf(backoff / 1000) + '/' + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ('/' + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } if(!peerNodeStatus.isConnected() && (now - idle) > (2 * 7 * 24 * 60 * 60 * (long) 1000)) { // 2 weeks peerRow.addChild("td", "class", "peer-idle").addChild("span", "class", "peer_idle_old", idleToString(now, idle)); } else { peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); } // private darknet node comment note column if(fProxyJavascriptEnabled) { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "onBlur", "onChange", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", "peerNoteBlur();", "peerNoteChange();", peerNodeStatus.getPrivateDarknetCommentNote() }); } else { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", peerNodeStatus.getPrivateDarknetCommentNote() }); } if(advancedEnabled) { // percent of time connected column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", fix1.format(peerNodeStatus.getPercentTimeRoutableConnection())); // total traffic column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputBytes())+" / "+SizeUtil.formatSize(peerNodeStatus.getTotalOutputBytes())); } if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 9 : 5)); // = total table row width - 2 from above colspan HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } HTMLNode actionSelect = peerForm.addChild("select", new String[] { "id", "name" }, new String[] { "action", "action" }); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "send_n2ntm", "Send N2NTM to selected peers"); actionSelect.addChild("option", "value", "update_notes", "Update changed private notes"); if(advancedEnabled) { actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly (only set this if you have a static IP and are not NATed and neither is the peer)"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly (not recommended)"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "set_allow_local", "On selected peers, set allowLocalAddresses (useful if you are connecting to another node on the same LAN)"); actionSelect.addChild("option", "value", "clear_allow_local", "On selected peers, clear allowLocalAddresses"); actionSelect.addChild("option", "value", "set_ignore_source_port", "On selected peers, set ignoreSourcePort (try this if behind an evil corporate firewall; otherwise not recommended)"); actionSelect.addChild("option", "value", "clear_ignore_source_port", "On selected peers, clear ignoreSourcePort"); } actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "doAction", "Go" }); } // END PEER TABLE } // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = ctx.addFormChild(peerAdditionContent, ".", "addPeerForm"); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter a node description: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name", "size", "maxlength", "value" }, new String[] { "peerPrivateNote", "text", "peerPrivateNote", "16", "250", "" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.fref", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); // our ports HTMLNode portInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); portInfobox.addChild("div", "class", "infobox-header", "Node's Ports"); HTMLNode portInfoboxContent = portInfobox.addChild("div", "class", "infobox-content"); HTMLNode portInfoList = portInfoboxContent.addChild("ul"); SimpleFieldSet fproxyConfig = node.config.get("fproxy").exportFieldSet(true); SimpleFieldSet fcpConfig = node.config.get("fcp").exportFieldSet(true); SimpleFieldSet tmciConfig = node.config.get("console").exportFieldSet(true); portInfoList.addChild("li", "FNP:\u00a0" + node.getFNPPort() + "/udp\u00a0\u00a0\u00a0(between nodes; this is usually the only port that you might want to port forward)"); try { if(fproxyConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FProxy:\u00a0" + fproxyConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(this web interface)"); } else { portInfoList.addChild("li", "FProxy:\u00a0disabled/tcp\u00a0\u00a0\u00a0(this web interface)"); } if(fcpConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FCP:\u00a0" + fcpConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } else { portInfoList.addChild("li", "FCP:\u00a0disabled/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } if(tmciConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "TMCI:\u00a0" + tmciConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } else { portInfoList.addChild("li", "TMCI:\u00a0disabled/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } } catch (FSParseException e) { // ignore } StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/c0ace656fce78eb9788046a23b7c72f8de626007/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
6385,
25238,
590,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
74,
1734,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
18,
10492,
10663,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
1250,
16111,
1526,
273,
756,
18,
291,
23618,
40,
1313,
2758,
1526,
5621,
202,
202,
6385,
1250,
284,
3886,
27129,
1526,
273,
756,
18,
291,
42,
3886,
27129,
1526,
5621,
9506,
202,
20308,
11090,
1459,
7691,
1195,
202,
202,
6813,
907,
1482,
8526,
4261,
907,
15220,
273,
756,
18,
588,
6813,
907,
15220,
5621,
202,
202,
12726,
18,
3804,
12,
12210,
907,
15220,
16,
394,
13359,
1435,
288,
1082,
202,
482,
509,
3400,
12,
921,
1122,
16,
1033,
2205,
13,
288,
9506,
202,
474,
563,
273,
374,
31,
9506,
202,
6494,
13532,
273,
638,
31,
9506,
202,
6813,
907,
1482,
1122,
907,
273,
261,
6813,
907,
1482,
13,
1122,
31,
9506,
202,
6813,
907,
1482,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
6385,
25238,
590,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
780,
589,
273,
2003,
18,
588,
743,
5621,
202,
202,
430,
12,
803,
18,
5839,
1190,
2932,
4811,
1734,
18,
74,
1734,
6,
3719,
288,
1082,
202,
5784,
974,
694,
2662,
273,
756,
18,
6530,
4782,
974,
694,
5621,
1082,
202,
780,
2289,
1352,
273,
394,
17436,
5621,
1082,
202,
2556,
18,
2626,
774,
12,
5328,
1769,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
4044,
16,
315,
955,
19,
7446,
3113,
315,
3141,
3113,
1352,
2
] |
public static Message[] createFileListMessages(Folder folder) { List<FileInfo> infos = folder.getFilesAsList(); //filter files that are ignored folder.getBlacklist().applyIgnore(infos); FileInfo[] infosArray = new FileInfo[infos.size()]; return createFileListMessages(folder.getInfo(), infos.toArray(infosArray)); }
|
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ec858d625f4f686b517266653ac1acab8ed74248/FileList.java/buggy/src/main/de/dal33t/powerfolder/message/FileList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2350,
8526,
21266,
682,
5058,
12,
3899,
3009,
13,
288,
3639,
987,
32,
11995,
34,
10626,
273,
3009,
18,
588,
2697,
1463,
682,
5621,
3639,
368,
2188,
1390,
716,
854,
5455,
3639,
3009,
18,
588,
25811,
7675,
9010,
3777,
12,
18227,
1769,
3639,
14236,
8526,
10626,
1076,
273,
394,
14236,
63,
18227,
18,
1467,
1435,
15533,
3639,
327,
21266,
682,
5058,
12,
5609,
18,
588,
966,
9334,
10626,
18,
31447,
12,
18227,
1076,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2350,
8526,
21266,
682,
5058,
12,
3899,
3009,
13,
288,
3639,
987,
32,
11995,
34,
10626,
273,
3009,
18,
588,
2697,
1463,
682,
5621,
3639,
368,
2188,
1390,
716,
854,
5455,
3639,
3009,
18,
588,
25811,
7675,
9010,
3777,
12,
18227,
1769,
3639,
14236,
8526,
10626,
1076,
273,
394,
14236,
63,
18227,
18,
1467,
1435,
15533,
3639,
327,
21266,
682,
5058,
12,
5609,
18,
588,
966,
9334,
10626,
18,
31447,
12,
18227,
1076,
10019,
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
] |
||
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } org.tn5250j.tools.system.OperatingSystem.displayURL(eb .toString()); // take out the log statement when we are sure it is // working log.info("Send to external Browser: " + eb.toString()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x, aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option. // if (gui.rubberband.isAreaSelected()) { // gui.rubberband.reset(); // gui.repaint(); // } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true; // } } } return false; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6494,
8501,
6688,
12,
9186,
1133,
73,
16,
474,
917,
15329,
202,
202,
430,
12,
5,
83,
1155,
18,
291,
653,
22233,
8966,
10756,
95,
1082,
202,
430,
12,
917,
32,
20,
13,
9506,
202,
2463,
5743,
31,
1082,
202,
759,
26274,
588,
1999,
914,
1265,
2148,
6154,
3348,
792,
21,
16,
21,
91,
4009,
329,
869,
1082,
202,
759,
2338,
4801,
11453,
3348,
20,
16,
20,
1082,
202,
759,
917,
17,
28657,
2107,
8011,
15,
21,
1769,
1082,
202,
474,
75,
33,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
917,
1769,
1082,
202,
759,
17307,
1893,
1884,
15224,
1752,
6968,
1082,
202,
430,
12,
75,
34,
33,
20068,
67,
10066,
10,
10,
75,
32,
33,
20068,
67,
14378,
15329,
9506,
202,
780,
1892,
20736,
33,
2704,
780,
1892,
5621,
9506,
202,
6494,
20736,
4678,
33,
3767,
31,
9506,
202,
9610,
12,
75,
15329,
9506,
202,
3593,
20068,
67,
11847,
30,
9506,
202,
3593,
20068,
67,
49,
25578,
30,
6862,
202,
17523,
12,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
413,
917,
13,
5,
33,
20068,
67,
10066,
15329,
6862,
202,
97,
9506,
202,
3593,
20068,
67,
10066,
30,
6862,
202,
430,
12,
7088,
281,
18,
588,
2156,
12,
917,
13,
18920,
42,
6134,
95,
25083,
202,
917,
9904,
31,
6862,
202,
97,
12107,
25083,
202,
20736,
4678,
33,
5743,
31,
6862,
202,
430,
12,
7088,
281,
18,
588,
2156,
12,
917,
15,
21,
13,
5,
2218,
2218,
6862,
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,
6494,
8501,
6688,
12,
9186,
1133,
73,
16,
474,
917,
15329,
202,
202,
430,
12,
5,
83,
1155,
18,
291,
653,
22233,
8966,
10756,
95,
1082,
202,
430,
12,
917,
32,
20,
13,
9506,
202,
2463,
5743,
31,
1082,
202,
759,
26274,
588,
1999,
914,
1265,
2148,
6154,
3348,
792,
21,
16,
21,
91,
4009,
329,
869,
1082,
202,
759,
2338,
4801,
11453,
3348,
20,
16,
20,
1082,
202,
759,
917,
17,
28657,
2107,
8011,
15,
21,
1769,
1082,
202,
474,
75,
33,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
917,
1769,
1082,
202,
759,
17307,
1893,
1884,
15224,
1752,
6968,
1082,
202,
430,
12,
75,
34,
33,
20068,
67,
10066,
10,
10,
75,
2
] |
||
descr.setDescription(cpd.getDescription() + " (Path)"); descr.setDisplayName(cpd.getDisplayName() + " (Path)"); descr.setKey(key);
|
descr.setDescription(cpd.getDescription() + " (path only)"); descr.setDisplayName(cpd.getDisplayName() + " (path only)"); descr.setKey(mod_key);
|
public HashMap getPrintfDescrs() { Collection pcd_set = getConfigParamDescrs(); HashMap pd_map = new HashMap(pcd_set.size()); for(Iterator it = pcd_set.iterator(); it.hasNext();) { ConfigParamDescr cpd = (ConfigParamDescr) it.next(); String key = cpd.getKey(); int type = cpd.getType(); pd_map.put(key, cpd); if (type == ConfigParamDescr.TYPE_YEAR) { key = DefinableArchivalUnit.AU_SHORT_YEAR_PREFIX + key; ConfigParamDescr descr = copyDescr(cpd); descr.setDescription(cpd.getDescription() + " (2 digit)"); descr.setDisplayName(cpd.getDisplayName() + " (2 digit)"); descr.setKey(key); pd_map.put(key, descr); } else if (type == ConfigParamDescr.TYPE_URL) { String mod_key = key + DefinableArchivalUnit.AU_HOST_SUFFIX; ConfigParamDescr descr = copyDescr(cpd); descr.setDescription(cpd.getDescription() + " (Host)"); descr.setDisplayName(cpd.getDisplayName() + " (Host)"); descr.setKey(key); pd_map.put(mod_key, descr); mod_key = key + DefinableArchivalUnit.AU_PATH_SUFFIX; descr = copyDescr(cpd); descr.setDescription(cpd.getDescription() + " (Path)"); descr.setDisplayName(cpd.getDisplayName() + " (Path)"); descr.setKey(key); pd_map.put(mod_key, descr); } } return pd_map; }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/8e2e3b088ffad8da62c22c9b9862507283aaae3c/EditableDefinablePlugin.java/clean/tools/src/org/lockss/devtools/plugindef/EditableDefinablePlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4317,
8248,
17655,
4217,
5453,
1435,
288,
565,
2200,
293,
4315,
67,
542,
273,
23497,
4217,
5453,
5621,
565,
4317,
4863,
67,
1458,
273,
394,
4317,
12,
2436,
72,
67,
542,
18,
1467,
10663,
565,
364,
12,
3198,
518,
273,
293,
4315,
67,
542,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1377,
1903,
786,
16198,
29660,
273,
261,
809,
786,
16198,
13,
518,
18,
4285,
5621,
1377,
514,
498,
273,
29660,
18,
588,
653,
5621,
1377,
509,
618,
273,
29660,
18,
588,
559,
5621,
1377,
4863,
67,
1458,
18,
458,
12,
856,
16,
29660,
1769,
1377,
309,
261,
723,
422,
1903,
786,
16198,
18,
2399,
67,
15137,
13,
288,
202,
856,
273,
18003,
429,
12269,
5162,
2802,
18,
14237,
67,
15993,
67,
15137,
67,
6307,
397,
498,
31,
202,
809,
786,
16198,
18426,
273,
1610,
16198,
12,
4057,
72,
1769,
202,
28313,
18,
542,
3291,
12,
4057,
72,
18,
588,
3291,
1435,
397,
315,
261,
22,
8035,
2225,
1769,
202,
28313,
18,
542,
20524,
12,
4057,
72,
18,
588,
20524,
1435,
397,
315,
261,
22,
8035,
2225,
1769,
202,
28313,
18,
542,
653,
12,
856,
1769,
202,
22353,
67,
1458,
18,
458,
12,
856,
16,
18426,
1769,
1377,
289,
1377,
469,
309,
261,
723,
422,
1903,
786,
16198,
18,
2399,
67,
1785,
13,
288,
202,
780,
681,
67,
856,
273,
498,
397,
18003,
429,
12269,
5162,
2802,
18,
14237,
67,
8908,
67,
14964,
31,
202,
809,
786,
16198,
18426,
273,
1610,
16198,
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,
4317,
8248,
17655,
4217,
5453,
1435,
288,
565,
2200,
293,
4315,
67,
542,
273,
23497,
4217,
5453,
5621,
565,
4317,
4863,
67,
1458,
273,
394,
4317,
12,
2436,
72,
67,
542,
18,
1467,
10663,
565,
364,
12,
3198,
518,
273,
293,
4315,
67,
542,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1377,
1903,
786,
16198,
29660,
273,
261,
809,
786,
16198,
13,
518,
18,
4285,
5621,
1377,
514,
498,
273,
29660,
18,
588,
653,
5621,
1377,
509,
618,
273,
29660,
18,
588,
559,
5621,
1377,
4863,
67,
1458,
18,
458,
12,
856,
16,
29660,
1769,
1377,
309,
261,
723,
422,
1903,
786,
16198,
18,
2399,
67,
15137,
13,
288,
202,
856,
273,
18003,
429,
2
] |
Word loword, hiword; hiword = addr.loadWord();
|
long hiword; hiword = addr.loadLong(); int hiword; hiword = addr.loadInt();
|
static Object[] packageParameterFromVarArg(VM_Method targetMethod, Address argAddress) { VM_TypeReference[] argTypes = targetMethod.getParameterTypes(); int argCount = argTypes.length; Object[] argObjectArray = new Object[argCount]; // get the VM_JNIEnvironment for this thread in case we need to dereference any object arg VM_JNIEnvironment env = VM_Thread.getCurrentThread().getJNIEnv(); // VM.sysWrite("JNI packageParameterFromVarArg: packaging " + argCount + " arguments\n"); Address addr = argAddress; for (int i=0; i<argCount; i++) { Word loword, hiword; hiword = addr.loadWord(); // VM.sysWrite("JNI packageParameterFromVarArg: arg " + i + " = " + hiword + // " or " + VM.intAsHexString(hiword) + "\n"); addr = addr.add(BYTES_IN_ADDRESS); // convert and wrap the argument according to the expected type if (argTypes[i].isFloatType()) { // NOTE: in VarArg convention, C compiler will expand a float to a double that occupy 2 words // so we have to extract it as a double and convert it back to a float if (VM.BuildFor32Addr) { loword = addr.loadWord(); addr = addr.add(BYTES_IN_ADDRESS); long doubleBits = (((long) hiword.toInt()) << BITS_IN_INT) | (loword.toInt() & 0xFFFFFFFFL); argObjectArray[i] = VM_Reflection.wrapFloat((float) (Double.longBitsToDouble(doubleBits))); } else { argObjectArray[i] = VM_Reflection.wrapFloat((float) (Double.longBitsToDouble(hiword.toLong()))); } } else if (argTypes[i].isDoubleType()) { if (VM.BuildFor32Addr) { loword = addr.loadWord(); addr = addr.add(BYTES_IN_ADDRESS); long doubleBits = (((long) hiword.toInt()) << BITS_IN_INT) | (loword.toInt() & 0xFFFFFFFFL); argObjectArray[i] = VM_Reflection.wrapDouble(Double.longBitsToDouble(doubleBits)); } else { argObjectArray[i] = VM_Reflection.wrapDouble(Double.longBitsToDouble(hiword.toLong())); } } else if (argTypes[i].isLongType()) { if (VM.BuildFor32Addr) { loword = addr.loadWord(); addr = addr.add(BYTES_IN_ADDRESS); long longValue = (((long) hiword.toInt()) << BITS_IN_INT) | (loword.toInt() & 0xFFFFFFFFL); argObjectArray[i] = VM_Reflection.wrapLong(longValue); } else { argObjectArray[i] = VM_Reflection.wrapLong(hiword.toLong()); } } else if (argTypes[i].isBooleanType()) { // the 0/1 bit is stored in the high byte argObjectArray[i] = VM_Reflection.wrapBoolean(hiword.toInt()); } else if (argTypes[i].isByteType()) { // the target byte is stored in the high byte argObjectArray[i] = VM_Reflection.wrapByte((byte) hiword.toInt()); } else if (argTypes[i].isCharType()) { // char is stored in the high 2 bytes argObjectArray[i] = VM_Reflection.wrapChar((char) hiword.toInt()); } else if (argTypes[i].isShortType()) { // short is stored in the high 2 bytes argObjectArray[i] = VM_Reflection.wrapShort((short) hiword.toInt()); } else if (argTypes[i].isReferenceType()) { // for object, the arg is a JREF index, dereference to get the real object argObjectArray[i] = env.getJNIRef(hiword.toInt()); } else if (argTypes[i].isIntType()) { argObjectArray[i] = VM_Reflection.wrapInt(hiword.toInt()); } else { return null; } } return argObjectArray; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/511bde1d92a455acafb864be1f3383b0a2d5c0e0/VM_JNIHelpers.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNIHelpers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1033,
8526,
2181,
1662,
1265,
1537,
4117,
12,
7397,
67,
1305,
1018,
1305,
16,
5267,
1501,
1887,
13,
288,
565,
8251,
67,
7534,
8526,
30973,
273,
1018,
1305,
18,
588,
1662,
2016,
5621,
565,
509,
1501,
1380,
273,
30973,
18,
2469,
31,
565,
1033,
8526,
1501,
921,
1076,
273,
394,
1033,
63,
3175,
1380,
15533,
565,
368,
336,
326,
8251,
67,
46,
50,
45,
5494,
364,
333,
2650,
316,
648,
732,
1608,
358,
27794,
1281,
733,
1501,
565,
8251,
67,
46,
50,
45,
5494,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
565,
368,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2181,
1662,
1265,
1537,
4117,
30,
2298,
5755,
315,
397,
1501,
1380,
397,
315,
1775,
64,
82,
8863,
565,
5267,
3091,
273,
1501,
1887,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3175,
1380,
31,
277,
27245,
288,
1377,
9926,
437,
1095,
16,
10118,
1095,
31,
1377,
10118,
1095,
273,
3091,
18,
945,
3944,
5621,
1377,
368,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2181,
1662,
1265,
1537,
4117,
30,
225,
1501,
315,
397,
277,
397,
315,
273,
315,
397,
10118,
1095,
397,
4202,
368,
315,
578,
315,
397,
8251,
18,
474,
1463,
14866,
12,
12266,
1095,
13,
397,
1548,
82,
8863,
1377,
3091,
273,
3091,
18,
1289,
12,
13718,
67,
706,
67,
15140,
1769,
1377,
368,
1765,
471,
2193,
326,
1237,
4888,
358,
326,
2665,
618,
1377,
309,
261,
3175,
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,
1033,
8526,
2181,
1662,
1265,
1537,
4117,
12,
7397,
67,
1305,
1018,
1305,
16,
5267,
1501,
1887,
13,
288,
565,
8251,
67,
7534,
8526,
30973,
273,
1018,
1305,
18,
588,
1662,
2016,
5621,
565,
509,
1501,
1380,
273,
30973,
18,
2469,
31,
565,
1033,
8526,
1501,
921,
1076,
273,
394,
1033,
63,
3175,
1380,
15533,
565,
368,
336,
326,
8251,
67,
46,
50,
45,
5494,
364,
333,
2650,
316,
648,
732,
1608,
358,
27794,
1281,
733,
1501,
565,
8251,
67,
46,
50,
45,
5494,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
565,
368,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2181,
1662,
1265,
1537,
4117,
30,
2298,
2
] |
public String retval_constraint() throws RecognitionException { String text = null; String c = null; text = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1150:3: (c= paren_chunk ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1150:3: c= paren_chunk { pushFollow(FOLLOW_paren_chunk_in_retval_constraint2707); c=paren_chunk(); _fsp--; if (failed) return text; if ( backtracking==0 ) { text = c.substring(1, c.length()-1); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
|
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,
514,
5221,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
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,
2499,
3361,
30,
23,
30,
261,
71,
33,
22146,
67,
6551,
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,
2499,
3361,
30,
23,
30,
276,
33,
22146,
67,
6551,
5411,
288,
5411,
10881,
12,
29890,
67,
13012,
67,
6551,
67,
267,
67,
18341,
67,
13364,
5324,
8642,
1769,
5411,
276,
33,
13012,
67,
6551,
5621,
5411,
389,
10749,
413,
31,
5411,
309,
261,
7307,
13,
327,
977,
31,
5411,
309,
261,
6888,
631,
20,
262,
288,
9079,
977,
273,
276,
18,
28023,
12,
21,
16,
276,
18,
2469,
1435,
17,
21,
1769,
2398,
289,
5411,
289,
3639,
289,
3639,
1044,
261,
5650,
7909,
503,
283,
13,
288,
5411,
17887,
12,
266,
1769,
5411,
5910,
12,
2630,
16,
266,
1769,
3639,
289,
3639,
3095,
288,
4202,
289,
3639,
327,
977,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
5221,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
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,
2499,
3361,
30,
23,
30,
261,
71,
33,
22146,
67,
6551,
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,
2499,
3361,
30,
23,
30,
276,
33,
2
] |
||
registry.register(PROP_FRONTENDS, PropertyType.COMPONENT_LIST);
|
public void register(String name, Registry registry) throws PropertyException { this.name = name; registry.register(PROP_FRONTENDS, PropertyType.COMPONENT_LIST); }
|
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/3c8b327408f3f3bcffc8822233e3a91278e629dc/ParallelAcousticScorer.java/clean/edu/cmu/sphinx/research/parallel/ParallelAcousticScorer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
12,
780,
508,
16,
5438,
4023,
13,
3639,
1216,
4276,
503,
288,
3639,
333,
18,
529,
273,
508,
31,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
780,
508,
16,
5438,
4023,
13,
3639,
1216,
4276,
503,
288,
3639,
333,
18,
529,
273,
508,
31,
6647,
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
] |
|
if (style == null || style.length() == 0)
|
if ((style == null) || (style.length() == 0))
|
void processTag(Vector splitTag, Writer w, HTMLParseContext pc) throws IOException, DataFilterException { // First, check that it is a recognized tag for(int i=0;i<splitTag.size();i++) Logger.minor(this, "Tag["+i+"]="+splitTag.get(i)); ParsedTag t = new ParsedTag(splitTag); if (!pc.killTag) { t = t.sanitize(pc); if (t != null) { boolean deletedStyle = false; if (pc.writeStyleScriptWithTag) { pc.writeStyleScriptWithTag = false; String style = pc.currentStyleScriptChunk; if (style == null || style.length() == 0) pc.writeAfterTag += "<!-- deleted unknown style -->"; else w.write(style); pc.currentStyleScriptChunk = ""; } t.write(w); if (pc.writeAfterTag.length() > 0) { w.write(pc.writeAfterTag); pc.writeAfterTag = ""; } } else pc.writeStyleScriptWithTag = false; } else { pc.killTag = false; pc.writeStyleScriptWithTag = false; } }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTMLFilter.java/buggy/src/freenet/clients/http/filter/HTMLFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1207,
1805,
12,
5018,
1416,
1805,
16,
5497,
341,
16,
3982,
3201,
1042,
6125,
13,
202,
202,
15069,
1860,
16,
1910,
1586,
503,
288,
202,
202,
759,
5783,
16,
866,
716,
518,
353,
279,
16332,
1047,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
4939,
1805,
18,
1467,
5621,
77,
27245,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1805,
9614,
15,
77,
9078,
65,
1546,
15,
4939,
1805,
18,
588,
12,
77,
10019,
202,
202,
11257,
1805,
268,
273,
394,
19244,
1805,
12,
4939,
1805,
1769,
202,
202,
430,
16051,
2436,
18,
16418,
1805,
13,
288,
1082,
202,
88,
273,
268,
18,
20266,
12,
2436,
1769,
1082,
202,
430,
261,
88,
480,
446,
13,
288,
9506,
202,
6494,
4282,
2885,
273,
629,
31,
9506,
202,
430,
261,
2436,
18,
2626,
2885,
3651,
1190,
1805,
13,
288,
6862,
202,
2436,
18,
2626,
2885,
3651,
1190,
1805,
273,
629,
31,
6862,
202,
780,
2154,
273,
6125,
18,
2972,
2885,
3651,
5579,
31,
6862,
202,
430,
261,
4060,
422,
446,
747,
2154,
18,
2469,
1435,
422,
374,
13,
25083,
202,
2436,
18,
2626,
4436,
1805,
1011,
3532,
22772,
4282,
5917,
2154,
1493,
2984,
31,
6862,
202,
12107,
25083,
202,
91,
18,
2626,
12,
4060,
1769,
6862,
202,
2436,
18,
2972,
2885,
3651,
5579,
273,
1408,
31,
9506,
202,
97,
9506,
202,
88,
18,
2626,
12,
91,
1769,
9506,
202,
430,
261,
2436,
18,
2626,
4436,
1805,
18,
2469,
1435,
405,
374,
13,
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,
6459,
1207,
1805,
12,
5018,
1416,
1805,
16,
5497,
341,
16,
3982,
3201,
1042,
6125,
13,
202,
202,
15069,
1860,
16,
1910,
1586,
503,
288,
202,
202,
759,
5783,
16,
866,
716,
518,
353,
279,
16332,
1047,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
4939,
1805,
18,
1467,
5621,
77,
27245,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1805,
9614,
15,
77,
9078,
65,
1546,
15,
4939,
1805,
18,
588,
12,
77,
10019,
202,
202,
11257,
1805,
268,
273,
394,
19244,
1805,
12,
4939,
1805,
1769,
202,
202,
430,
16051,
2436,
18,
16418,
1805,
13,
288,
1082,
202,
88,
273,
268,
18,
20266,
12,
2436,
1769,
1082,
202,
430,
261,
88,
2
] |
_dialog.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { cancel(); } });
|
_dialog.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { cancel(); } });
|
public int showDialog(Component parent) { Frame frame = parent instanceof Frame ? (Frame) parent : (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent); // String title = getUI().getDialogTitle(this); _dialog = new JDialog(frame, _title, true); Container contentPane = _dialog.getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(this, BorderLayout.CENTER); _dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE); _dialog.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { cancel(); } }); _dialog.pack(); _dialog.setLocationRelativeTo(parent); _dialog.show(); return _returnValue; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/bd2bc14bd41d6e4018fc6ac64fd5de3812c4e21f/UMLAddDialog.java/clean/src_new/org/argouml/uml/ui/UMLAddDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2405,
6353,
12,
1841,
982,
13,
288,
202,
3219,
2623,
273,
982,
1276,
8058,
692,
261,
3219,
13,
982,
202,
565,
294,
261,
3219,
13,
26145,
11864,
18,
588,
15637,
951,
797,
12,
3219,
18,
1106,
16,
982,
1769,
202,
759,
514,
2077,
273,
336,
5370,
7675,
588,
6353,
4247,
12,
2211,
1769,
3639,
389,
12730,
273,
394,
804,
6353,
12,
3789,
16,
389,
2649,
16,
638,
1769,
3639,
4039,
913,
8485,
273,
389,
12730,
18,
588,
1350,
8485,
5621,
3639,
913,
8485,
18,
542,
3744,
12,
2704,
30814,
10663,
3639,
913,
8485,
18,
1289,
12,
2211,
16,
30814,
18,
19835,
1769,
225,
202,
67,
12730,
18,
542,
1868,
4605,
2988,
12,
46,
6353,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
67,
12730,
18,
1289,
3829,
2223,
12,
2704,
6076,
4216,
1435,
3196,
565,
288,
377,
202,
202,
482,
918,
2742,
15745,
12,
3829,
1133,
732,
13,
288,
1082,
565,
3755,
5621,
377,
202,
202,
97,
202,
565,
15549,
3639,
389,
12730,
18,
2920,
5621,
3639,
389,
12730,
18,
542,
2735,
8574,
774,
12,
2938,
1769,
540,
389,
12730,
18,
4500,
5621,
202,
2463,
389,
2463,
620,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2405,
6353,
12,
1841,
982,
13,
288,
202,
3219,
2623,
273,
982,
1276,
8058,
692,
261,
3219,
13,
982,
202,
565,
294,
261,
3219,
13,
26145,
11864,
18,
588,
15637,
951,
797,
12,
3219,
18,
1106,
16,
982,
1769,
202,
759,
514,
2077,
273,
336,
5370,
7675,
588,
6353,
4247,
12,
2211,
1769,
3639,
389,
12730,
273,
394,
804,
6353,
12,
3789,
16,
389,
2649,
16,
638,
1769,
3639,
4039,
913,
8485,
273,
389,
12730,
18,
588,
1350,
8485,
5621,
3639,
913,
8485,
18,
542,
3744,
12,
2704,
30814,
10663,
3639,
913,
8485,
18,
1289,
12,
2211,
16,
30814,
18,
19835,
1769,
225,
202,
67,
12730,
18,
542,
1868,
4605,
2988,
12,
46,
6353,
18,
3191,
2
] |
Object ho = selectedDisplay.getUserObject(); setEnabled((ho instanceof ImageData) || (ho instanceof DatasetData));
|
setValuesFor(selectedDisplay.getUserObject());
|
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { Object ho = selectedDisplay.getUserObject(); setEnabled((ho instanceof ImageData) || (ho instanceof DatasetData)); return; } } Object ho = selectedDisplay.getUserObject(); setEnabled((ho instanceof ImageData) || (ho instanceof DatasetData)); }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/AnnotateAction.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/actions/AnnotateAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
4236,
3043,
12,
2471,
2040,
4236,
3170,
4236,
13,
565,
288,
3639,
309,
261,
8109,
4236,
422,
446,
13,
288,
5411,
12888,
12,
5743,
1769,
5411,
327,
31,
3639,
289,
3639,
15408,
4748,
273,
938,
18,
588,
7416,
9132,
5621,
3639,
309,
261,
11213,
480,
446,
13,
288,
5411,
309,
261,
11213,
18,
588,
7416,
16900,
7675,
2469,
405,
404,
13,
288,
2398,
202,
921,
26025,
273,
3170,
4236,
18,
588,
1299,
921,
5621,
7734,
12888,
12443,
15008,
1276,
3421,
751,
13,
747,
1171,
1875,
202,
12,
15008,
1276,
10778,
751,
10019,
7734,
327,
31,
5411,
289,
3639,
289,
3639,
1033,
26025,
273,
3170,
4236,
18,
588,
1299,
921,
5621,
3639,
12888,
12443,
15008,
1276,
3421,
751,
13,
747,
261,
15008,
1276,
10778,
751,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
4236,
3043,
12,
2471,
2040,
4236,
3170,
4236,
13,
565,
288,
3639,
309,
261,
8109,
4236,
422,
446,
13,
288,
5411,
12888,
12,
5743,
1769,
5411,
327,
31,
3639,
289,
3639,
15408,
4748,
273,
938,
18,
588,
7416,
9132,
5621,
3639,
309,
261,
11213,
480,
446,
13,
288,
5411,
309,
261,
11213,
18,
588,
7416,
16900,
7675,
2469,
405,
404,
13,
288,
2398,
202,
921,
26025,
273,
3170,
4236,
18,
588,
1299,
921,
5621,
7734,
12888,
12443,
15008,
1276,
3421,
751,
13,
747,
1171,
1875,
202,
12,
15008,
1276,
10778,
751,
10019,
7734,
327,
31,
5411,
289,
3639,
289,
3639,
1033,
26025,
273,
3170,
4236,
18,
588,
1299,
921,
5621,
3639,
12888,
12443,
15008,
1276,
2
] |
+ "insert into #t0040 values ( " + "'" + blong + "', " + "'" + blong + "')"); assertTrue(count == 1);
|
+ "insert into #t0040 values ( " + "'" + blong + "', " + "'" + blong + "')"); assertEquals(count, 1);
|
public void testPreparedStatement0040() throws Exception { Connection cx = getConnection(); dropTable("#t0040"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0040 (" + " c255 char(255) not null, " + " v255 varchar(255) not null) "); PreparedStatement pStmt = cx.prepareStatement("insert into #t0040 values (?, ?)"); String along = getLongString('a'); String blong = getLongString('b'); pStmt.setString(1, along); pStmt.setString(2, along); int count = pStmt.executeUpdate(); assertTrue(count == 1); pStmt.close(); count = stmt.executeUpdate("" + "insert into #t0040 values ( " + "'" + blong + "', " + "'" + blong + "')"); assertTrue(count == 1); pStmt = cx.prepareStatement("select c255, v255 from #t0040 order by c255"); ResultSet rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); pStmt.close(); rs = stmt.executeQuery("select c255, v255 from #t0040 order by c255"); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); stmt.close(); cx.close(); }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/711d47f475f1fc9d77fbce64a70d11606c38d145/TimestampTest.java/buggy/src/test/net/sourceforge/jtds/test/TimestampTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
29325,
713,
7132,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
713,
7132,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
7132,
7566,
21821,
397,
315,
276,
10395,
1149,
12,
10395,
13,
377,
486,
446,
16,
315,
21821,
397,
315,
331,
10395,
30871,
12,
10395,
13,
225,
486,
446,
13,
315,
1769,
3639,
16913,
293,
8952,
273,
9494,
18,
9366,
3406,
2932,
6387,
1368,
468,
88,
713,
7132,
924,
13590,
16,
692,
2225,
1769,
3639,
514,
7563,
273,
11105,
780,
2668,
69,
8284,
3639,
514,
2811,
932,
273,
11105,
780,
2668,
70,
8284,
3639,
293,
8952,
18,
542,
780,
12,
21,
16,
7563,
1769,
3639,
293,
8952,
18,
542,
780,
12,
22,
16,
7563,
1769,
3639,
509,
1056,
273,
293,
8952,
18,
8837,
1891,
5621,
3639,
1815,
5510,
12,
1883,
422,
404,
1769,
3639,
293,
8952,
18,
4412,
5621,
3639,
1056,
273,
3480,
18,
8837,
1891,
2932,
6,
4766,
282,
397,
315,
6387,
1368,
468,
88,
713,
7132,
924,
261,
315,
4766,
282,
397,
5862,
397,
2811,
932,
397,
14912,
315,
4766,
282,
397,
5862,
397,
2811,
932,
397,
2491,
2225,
1769,
3639,
1815,
5510,
12,
1883,
422,
404,
1769,
3639,
293,
8952,
273,
9494,
18,
9366,
3406,
2932,
4025,
276,
10395,
16,
331,
10395,
628,
468,
88,
713,
7132,
1353,
635,
276,
10395,
8863,
3639,
10842,
3597,
273,
293,
8952,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
29325,
713,
7132,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
713,
7132,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
2640,
1014,
468,
88,
713,
7132,
7566,
21821,
397,
315,
276,
10395,
1149,
12,
10395,
13,
377,
486,
446,
16,
315,
21821,
397,
315,
331,
10395,
30871,
12,
10395,
13,
225,
486,
446,
13,
315,
1769,
3639,
16913,
293,
8952,
273,
9494,
18,
9366,
3406,
2932,
6387,
1368,
468,
88,
713,
7132,
924,
13590,
16,
692,
2225,
1769,
3639,
514,
7563,
273,
11105,
780,
2668,
69,
8284,
3639,
514,
2811,
932,
273,
11105,
780,
2668,
70,
8284,
3639,
2
] |
jMenuItemSaveAs.setEnabled(false);
|
jMenuItemSaveAs.setEnabled(false);*/
|
private void jbInit() throws Exception {//{{{ setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); getContentPane().setLayout(new GridBagLayout()); jTopPanel.setLayout(new GridBagLayout()); jBottomPanel.setLayout(gridLayout1); gridLayout1.setHgap(5); jAlbumPanel.setLayout(new BorderLayout()); jLabel1.setText(GRI18n.getString(MODULE, "Gallery_URL")); jLoginButton.setText(GRI18n.getString(MODULE, "Log_in")); jLoginButton.setToolTipText(GRI18n.getString(MODULE, "loginButtonTip")); jLoginButton.setActionCommand("Fetch"); jLoginButton.setIcon(GalleryRemote.iLogin); jNewAlbumButton.setText(GRI18n.getString(MODULE, "newAlbmBtnTxt")); jNewAlbumButton.setToolTipText(GRI18n.getString(MODULE, "newAlbmBtnTip")); jNewAlbumButton.setActionCommand("NewAlbum"); jNewAlbumButton.setIcon(GalleryRemote.iNewAlbum); jUploadButton.setText(GRI18n.getString(MODULE, "upldBtnTxt")); jUploadButton.setActionCommand("Upload"); jUploadButton.setToolTipText(GRI18n.getString(MODULE, "upldBtnTip")); jInspectorDivider.setOrientation(JSplitPane.HORIZONTAL_SPLIT); jInspectorDivider.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "inspDvdr"))); jInspectorDivider.setOneTouchExpandable(true); jInspectorDivider.setResizeWeight(.66); jAlbumPictureDivider.setOneTouchExpandable(true); jAlbumPictureDivider.setResizeWeight(.5); jTopPanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "panel1"))); jBrowseButton.setText(GRI18n.getString(MODULE, "brwsBtnTxt")); jBrowseButton.setActionCommand("Browse"); jBrowseButton.setToolTipText(GRI18n.getString(MODULE, "brwsBtnTip")); jSortButton.setText(GRI18n.getString(MODULE, "sortBtnTxt")); jSortButton.setActionCommand("Sort"); jSortButton.setToolTipText(GRI18n.getString(MODULE, "sortBtnTip")); jGalleryCombo.setActionCommand("Url"); jGalleryCombo.setToolTipText(GRI18n.getString(MODULE, "gllryCombo")); jMenuFile.setText(GRI18n.getString(MODULE, "menuFile")); /*jMenuItemNew.setText(GRI18n.getString(MODULE, "menuNew")); jMenuItemNew.setActionCommand("File.New"); jMenuItemNew.setIcon(GalleryRemote.iNew); jMenuItemNew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, GalleryRemote.ACCELERATOR_MASK));*/ jMenuItemOpen.setText(GRI18n.getString(MODULE, "menuOpen")); jMenuItemOpen.setActionCommand("File.Open"); jMenuItemOpen.setIcon(GalleryRemote.iOpen); jMenuItemOpen.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, GalleryRemote.ACCELERATOR_MASK)); jMenuItemSave.setText(GRI18n.getString(MODULE, "menuSave")); jMenuItemSave.setActionCommand("File.Save"); jMenuItemSave.setIcon(GalleryRemote.iSave); jMenuItemSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, GalleryRemote.ACCELERATOR_MASK)); jMenuItemSaveAs.setText(GRI18n.getString(MODULE, "menuSaveAs")); jMenuItemSaveAs.setActionCommand("File.SaveAs"); // todo: saving disabled, since JSX doesn't work with new class structure jMenuItemOpen.setEnabled(false); jMenuItemSave.setEnabled(false); jMenuItemSaveAs.setEnabled(false); /*jMenuItemClose.setText(GRI18n.getString(MODULE, "menuClose")); jMenuItemClose.setActionCommand("File.Close"); if (GalleryRemote.IS_MAC_OS_X) { jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W, GalleryRemote.ACCELERATOR_MASK)); } else { jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, GalleryRemote.ACCELERATOR_MASK)); }*/ jMenuItemQuit.setText(GRI18n.getString(MODULE, "menuQuit")); jMenuItemQuit.setActionCommand("File.Quit"); jMenuItemQuit.setIcon(GalleryRemote.iQuit); jMenuItemQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, GalleryRemote.ACCELERATOR_MASK)); jMenuEdit.setText(GRI18n.getString(MODULE, "menuEdit")); jMenuItemCut.setText(GRI18n.getString(MODULE, "menuCut")); jMenuItemCut.setActionCommand("Edit.Cut"); jMenuItemCut.setIcon(GalleryRemote.iCut); jMenuItemCut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, GalleryRemote.ACCELERATOR_MASK)); jMenuItemCopy.setText(GRI18n.getString(MODULE, "menuCopy")); jMenuItemCopy.setActionCommand("Edit.Copy"); jMenuItemCopy.setIcon(GalleryRemote.iCopy); jMenuItemCopy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, GalleryRemote.ACCELERATOR_MASK)); jMenuItemPaste.setText(GRI18n.getString(MODULE, "menuPaste")); jMenuItemPaste.setActionCommand("Edit.Paste"); jMenuItemPaste.setIcon(GalleryRemote.iPaste); jMenuItemPaste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, GalleryRemote.ACCELERATOR_MASK)); jMenuOptions.setText(GRI18n.getString(MODULE, "menuOptions")); jCheckBoxMenuThumbnails.setActionCommand("Options.Thumbnails"); jCheckBoxMenuThumbnails.setText(GRI18n.getString(MODULE, "cbmenuThumb")); jCheckBoxMenuPreview.setActionCommand("Options.Preview"); jCheckBoxMenuPreview.setText(GRI18n.getString(MODULE, "cbmenuPreview")); jCheckBoxMenuPath.setActionCommand("Options.Path"); jCheckBoxMenuPath.setText(GRI18n.getString(MODULE, "cbmenuPath")); jMenuItemPrefs.setText(GRI18n.getString(MODULE, "menuPref")); jMenuItemPrefs.setActionCommand("Options.Prefs"); jMenuItemPrefs.setIcon(GalleryRemote.iPreferences); jMenuItemClearCache.setText(GRI18n.getString(MODULE, "menuClearCache")); jMenuItemClearCache.setActionCommand("Options.ClearCache"); jMenuHelp.setText(GRI18n.getString(MODULE, "menuHelp")); jMenuItemAbout.setActionCommand("Help.About"); jMenuItemAbout.setText(GRI18n.getString(MODULE, "menuAbout")); jMenuItemAbout.setIcon(GalleryRemote.iAbout); //jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); jNewGalleryButton.setText(GRI18n.getString(MODULE, "newGalleryBtn")); jNewGalleryButton.setActionCommand("NewGallery"); jNewGalleryButton.setIcon(GalleryRemote.iNewGallery); jInspectorPanel.setLayout(jInspectorCardLayout); jPictureScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); jPictureScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "pictures"))); jAlbumScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "albums"))); jAlbumScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); setupKeyboardHandling(jPictureScroll); setupKeyboardHandling(jAlbumScroll); if (! GalleryRemote._().isAppletMode()) { this.getContentPane().add(jTopPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0 , GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 0, 0)); } jTopPanel.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); this.getContentPane().add(jInspectorDivider, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0 , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 2, 2, 2), 0, 0)); jInspectorDivider.add(jInspectorPanel, JSplitPane.RIGHT); jInspectorDivider.add(jAlbumPictureDivider, JSplitPane.LEFT); jInspectorPanel.add(new JScrollPane(jPictureInspector), CARD_PICTURE); jInspectorPanel.add(new JScrollPane(jAlbumInspector), CARD_ALBUM); jAlbumPictureDivider.add(jPictureScroll, JSplitPane.RIGHT); jAlbumPictureDivider.add(jAlbumPanel, JSplitPane.LEFT); jAlbumPanel.add(jAlbumScroll, BorderLayout.CENTER); jAlbumPanel.add(jNewAlbumButton, BorderLayout.SOUTH); jAlbumScroll.getViewport().add(jAlbumTree, null); jPictureScroll.getViewport().add(jPicturesList, null); this.getContentPane().add(jBottomPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); jBottomPanel.add(jBrowseButton, null); jBottomPanel.add(jSortButton, null); jBottomPanel.add(jUploadButton, null); this.getContentPane().add(jStatusBar, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); jTopPanel.add(jGalleryCombo, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); jTopPanel.add(jNewGalleryButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0)); jTopPanel.add(jLoginButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 0), 0, 0)); jMenuBar1.add(jMenuFile); jMenuBar1.add(jMenuEdit); jMenuBar1.add(jMenuOptions); if (!GalleryRemote.IS_MAC_OS_X) { jMenuBar1.add(jMenuHelp); } //jMenuFile.add(jMenuItemNew); jMenuFile.add(jMenuItemOpen); jMenuFile.add(jMenuItemSave); jMenuFile.add(jMenuItemSaveAs); //jMenuFile.add(jMenuItemClose); jMenuFile.addSeparator(); // Remember where we are so we can build the dynamic MRU list here. m_MRUMenuIndex = jMenuFile.getItemCount(); if (!GalleryRemote.IS_MAC_OS_X) { jMenuFile.addSeparator(); jMenuFile.add(jMenuItemQuit); jMenuHelp.add(jMenuItemAbout); } updateMRUItemList(); jMenuEdit.add(jMenuItemCut); jMenuEdit.add(jMenuItemCopy); jMenuEdit.add(jMenuItemPaste); jMenuOptions.add(jCheckBoxMenuThumbnails); jMenuOptions.add(jCheckBoxMenuPreview); jMenuOptions.add(jCheckBoxMenuPath); jMenuOptions.addSeparator(); jMenuOptions.add(jMenuItemClearCache); if (!GalleryRemote.IS_MAC_OS_X) { jMenuOptions.addSeparator(); jMenuOptions.add(jMenuItemPrefs); } setJMenuBar(jMenuBar1); }//}}}
|
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/6eeeec525d70f82c6f90b12999bed08c3cc34756/MainFrame.java/buggy/gallery_remote/com/gallery/GalleryRemote/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
20515,
2570,
1435,
1082,
202,
15069,
1185,
288,
759,
12187,
95,
202,
202,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
202,
588,
1350,
8485,
7675,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
3401,
5537,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
10393,
5537,
18,
542,
3744,
12,
5222,
3744,
21,
1769,
202,
202,
5222,
3744,
21,
18,
542,
44,
14048,
12,
25,
1769,
202,
202,
78,
30330,
5537,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
78,
2224,
21,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
18511,
67,
1785,
7923,
1769,
202,
202,
78,
5358,
3616,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
1343,
67,
267,
7923,
1769,
202,
202,
78,
5358,
3616,
18,
542,
29250,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
5819,
3616,
14189,
7923,
1769,
202,
202,
78,
5358,
3616,
18,
542,
1803,
2189,
2932,
5005,
8863,
202,
202,
78,
5358,
3616,
18,
542,
5554,
12,
18511,
5169,
18,
77,
5358,
1769,
202,
202,
78,
1908,
30330,
3616,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
2704,
1067,
25709,
20541,
21811,
7923,
1769,
202,
202,
78,
1908,
30330,
3616,
18,
542,
29250,
1528,
12,
43,
2259,
2643,
82,
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,
1152,
918,
20515,
2570,
1435,
1082,
202,
15069,
1185,
288,
759,
12187,
95,
202,
202,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
202,
588,
1350,
8485,
7675,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
3401,
5537,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
10393,
5537,
18,
542,
3744,
12,
5222,
3744,
21,
1769,
202,
202,
5222,
3744,
21,
18,
542,
44,
14048,
12,
25,
1769,
202,
202,
78,
30330,
5537,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
78,
2224,
21,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
2
] |
actionsFoldingAnchorsButton.setText("Display actions anchors");
|
actionsFoldingAnchorsButton.setText("Enable actions folding");
|
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents dialogPane = new JPanel(); contentPane = new JPanel(); tabbedPane1 = new JTabbedPane(); tabGeneral = new JPanel(); label2 = new JLabel(); label5 = new JLabel(); lafCombo = new JComboBox(); startupActionCombo = new JComboBox(); label24 = new JLabel(); dotToolPathField = new JTextField(); browseDotToolPathButton = new JButton(); label25 = new JLabel(); debugVerboseButton = new JCheckBox(); debugDontOptimizeNFA = new JCheckBox(); tabEditor = new JPanel(); label3 = new JLabel(); editorFontCombo = new JComboBox(); editorFontSizeSpinner = new JSpinner(); autoSaveButton = new JCheckBox(); autoSaveDelayField = new JTextField(); label11 = new JLabel(); highlightCursorLineButton = new JCheckBox(); smoothScrollingButton = new JCheckBox(); foldingButton = new JCheckBox(); actionsFoldingAnchorsButton = new JCheckBox(); label1 = new JLabel(); tabWidthField = new JTextField(); label22 = new JLabel(); parserDelayField = new JTextField(); label23 = new JLabel(); tabSyntax = new JPanel(); label26 = new JLabel(); parserColorPanel = new JPanel(); parserBoldButton = new JCheckBox(); parserItalicButton = new JCheckBox(); label27 = new JLabel(); lexerColorPanel = new JPanel(); lexerBoldButton = new JCheckBox(); lexerItalicButton = new JCheckBox(); label28 = new JLabel(); labelColorPanel = new JPanel(); labelsBoldButton = new JCheckBox(); labelsItalicButton = new JCheckBox(); label29 = new JLabel(); refsActionColorPanel = new JPanel(); refsActionBoldButton = new JCheckBox(); refsActionItalicButton = new JCheckBox(); label30 = new JLabel(); commentsColorPanel = new JPanel(); commentsBoldButton = new JCheckBox(); commentsItalicButton = new JCheckBox(); label31 = new JLabel(); stringsColorPanel = new JPanel(); stringsBoldButton = new JCheckBox(); stringsItalicButton = new JCheckBox(); label32 = new JLabel(); keywordsColorPanel = new JPanel(); keywordsBoldButton = new JCheckBox(); syntaxDefaultButton = new JButton(); keywordsItalicButton = new JCheckBox(); tabCompiler = new JPanel(); jikesRadio = new JRadioButton(); integratedRadio = new JRadioButton(); javacRadio = new JRadioButton(); javacCustomPathButton = new JCheckBox(); javacPathField = new JTextField(); browseJavacPath = new JButton(); label4 = new JLabel(); jikesPathField = new JTextField(); browseJikesPath = new JButton(); tabDebugger = new JPanel(); label33 = new JLabel(); debugDefaultLocalPortField = new JTextField(); label12 = new JLabel(); debugNonConsumedColorPanel = new JPanel(); label13 = new JLabel(); debugConsumedColorPanel = new JPanel(); label14 = new JLabel(); debugHiddenColorPanel = new JPanel(); label15 = new JLabel(); debugDeadColorPanel = new JPanel(); label16 = new JLabel(); debugLTColorPanel = new JPanel(); tabSCM = new JPanel(); enablePerforceCheckBox = new JCheckBox(); label18 = new JLabel(); p4PortField = new JTextField(); label19 = new JLabel(); p4UserField = new JTextField(); label21 = new JLabel(); p4PasswordField = new JPasswordField(); label20 = new JLabel(); p4ClientField = new JTextField(); label17 = new JLabel(); p4ExecPathField = new JTextField(); tabStats = new JPanel(); reportTypeCombo = new JComboBox(); label6 = new JLabel(); label8 = new JLabel(); label9 = new JLabel(); tabUpdates = new JPanel(); label7 = new JLabel(); updateTypeCombo = new JComboBox(); checkForUpdatesButton = new JButton(); label10 = new JLabel(); downloadPathField = new JTextField(); browseUpdateDownloadPathButton = new JButton(); buttonBar = new JPanel(); applyButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Preferences"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setMinimumSize(new Dimension(540, 350)); dialogPane.setPreferredSize(new Dimension(600, 380)); dialogPane.setLayout(new BorderLayout()); //======== contentPane ======== { contentPane.setLayout(new FormLayout( "default, default:grow", "fill:default:grow")); //======== tabbedPane1 ======== { //======== tabGeneral ======== { tabGeneral.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;20dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;40dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label2 ---- label2.setText("At startup:"); tabGeneral.add(label2, cc.xy(3, 3)); //---- label5 ---- label5.setText("Look and feel:"); tabGeneral.add(label5, cc.xy(3, 5)); tabGeneral.add(lafCombo, cc.xywh(5, 5, 3, 1)); //---- startupActionCombo ---- startupActionCombo.setModel(new DefaultComboBoxModel(new String[] { "Create a new document", "Open the last used document" })); tabGeneral.add(startupActionCombo, cc.xywh(5, 3, 3, 1)); //---- label24 ---- label24.setText("DOT path:"); tabGeneral.add(label24, cc.xy(3, 7)); //---- dotToolPathField ---- dotToolPathField.setToolTipText("Absolute path to the DOT command-line tool"); tabGeneral.add(dotToolPathField, cc.xywh(5, 7, 3, 1)); //---- browseDotToolPathButton ---- browseDotToolPathButton.setText("Browse..."); tabGeneral.add(browseDotToolPathButton, cc.xy(9, 7)); //---- label25 ---- label25.setText("Debug:"); tabGeneral.add(label25, cc.xy(3, 9)); //---- debugVerboseButton ---- debugVerboseButton.setText("Verbose"); tabGeneral.add(debugVerboseButton, cc.xywh(5, 9, 3, 1)); //---- debugDontOptimizeNFA ---- debugDontOptimizeNFA.setText("Don't optimize NFA"); tabGeneral.add(debugDontOptimizeNFA, cc.xywh(5, 11, 3, 1)); } tabbedPane1.addTab("General", tabGeneral); //======== tabEditor ======== { tabEditor.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;45dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- label3 ---- label3.setText("Font:"); tabEditor.add(label3, cc.xy(3, 3)); //---- editorFontCombo ---- editorFontCombo.setActionCommand("editorFontCombo"); tabEditor.add(editorFontCombo, cc.xywh(5, 3, 5, 1)); //---- editorFontSizeSpinner ---- editorFontSizeSpinner.setModel(new SpinnerNumberModel(new Integer(12), new Integer(8), null, new Integer(1))); tabEditor.add(editorFontSizeSpinner, cc.xy(11, 3)); //---- autoSaveButton ---- autoSaveButton.setText("Auto-save every"); tabEditor.add(autoSaveButton, cc.xywh(5, 5, 3, 1)); tabEditor.add(autoSaveDelayField, cc.xy(9, 5)); //---- label11 ---- label11.setText("minutes"); tabEditor.add(label11, cc.xy(11, 5)); //---- highlightCursorLineButton ---- highlightCursorLineButton.setText("Highlight cursor line"); tabEditor.add(highlightCursorLineButton, cc.xywh(5, 7, 5, 1)); //---- smoothScrollingButton ---- smoothScrollingButton.setText("Smooth scrolling"); tabEditor.add(smoothScrollingButton, cc.xywh(5, 9, 3, 1)); //---- foldingButton ---- foldingButton.setText("Enable folding"); tabEditor.add(foldingButton, cc.xywh(5, 11, 3, 1)); //---- actionsFoldingAnchorsButton ---- actionsFoldingAnchorsButton.setText("Display actions anchors"); tabEditor.add(actionsFoldingAnchorsButton, cc.xywh(7, 13, 5, 1)); //---- label1 ---- label1.setHorizontalAlignment(SwingConstants.RIGHT); label1.setText("Tab width:"); tabEditor.add(label1, cc.xy(3, 15)); //---- tabWidthField ---- tabWidthField.setText("8"); tabEditor.add(tabWidthField, cc.xy(5, 15)); //---- label22 ---- label22.setText("Parser delay:"); tabEditor.add(label22, cc.xy(3, 17)); //---- parserDelayField ---- parserDelayField.setText("250"); tabEditor.add(parserDelayField, cc.xy(5, 17)); //---- label23 ---- label23.setText("ms"); tabEditor.add(label23, cc.xy(7, 17)); } tabbedPane1.addTab("Editor", tabEditor); //======== tabSyntax ======== { tabSyntax.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label26 ---- label26.setText("Parser References:"); tabSyntax.add(label26, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== parserColorPanel ======== { parserColorPanel.setBackground(new Color(255, 255, 51)); parserColorPanel.setBorder(LineBorder.createBlackLineBorder()); parserColorPanel.setForeground(Color.black); parserColorPanel.setPreferredSize(new Dimension(70, 20)); parserColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(parserColorPanel, cc.xy(5, 3)); //---- parserBoldButton ---- parserBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); parserBoldButton.setText("Bold"); tabSyntax.add(parserBoldButton, cc.xy(7, 3)); //---- parserItalicButton ---- parserItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); parserItalicButton.setText("Italic"); tabSyntax.add(parserItalicButton, cc.xy(9, 3)); //---- label27 ---- label27.setText("Lexer References:"); tabSyntax.add(label27, cc.xy(3, 5)); //======== lexerColorPanel ======== { lexerColorPanel.setBackground(new Color(255, 255, 51)); lexerColorPanel.setBorder(LineBorder.createBlackLineBorder()); lexerColorPanel.setForeground(Color.black); lexerColorPanel.setPreferredSize(new Dimension(70, 20)); lexerColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(lexerColorPanel, cc.xy(5, 5)); //---- lexerBoldButton ---- lexerBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); lexerBoldButton.setText("Bold"); tabSyntax.add(lexerBoldButton, cc.xy(7, 5)); //---- lexerItalicButton ---- lexerItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); lexerItalicButton.setText("Italic"); tabSyntax.add(lexerItalicButton, cc.xy(9, 5)); //---- label28 ---- label28.setText("Labels:"); tabSyntax.add(label28, cc.xy(3, 7)); //======== labelColorPanel ======== { labelColorPanel.setBackground(new Color(255, 255, 51)); labelColorPanel.setBorder(LineBorder.createBlackLineBorder()); labelColorPanel.setForeground(Color.black); labelColorPanel.setPreferredSize(new Dimension(70, 20)); labelColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(labelColorPanel, cc.xy(5, 7)); //---- labelsBoldButton ---- labelsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); labelsBoldButton.setText("Bold"); tabSyntax.add(labelsBoldButton, cc.xy(7, 7)); //---- labelsItalicButton ---- labelsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); labelsItalicButton.setText("Italic"); tabSyntax.add(labelsItalicButton, cc.xy(9, 7)); //---- label29 ---- label29.setText("References in action:"); tabSyntax.add(label29, cc.xy(3, 9)); //======== refsActionColorPanel ======== { refsActionColorPanel.setBackground(new Color(255, 255, 51)); refsActionColorPanel.setBorder(LineBorder.createBlackLineBorder()); refsActionColorPanel.setForeground(Color.black); refsActionColorPanel.setPreferredSize(new Dimension(70, 20)); refsActionColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(refsActionColorPanel, cc.xy(5, 9)); //---- refsActionBoldButton ---- refsActionBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); refsActionBoldButton.setText("Bold"); tabSyntax.add(refsActionBoldButton, cc.xy(7, 9)); //---- refsActionItalicButton ---- refsActionItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); refsActionItalicButton.setText("Italic"); tabSyntax.add(refsActionItalicButton, cc.xy(9, 9)); //---- label30 ---- label30.setText("Comments:"); tabSyntax.add(label30, cc.xy(3, 11)); //======== commentsColorPanel ======== { commentsColorPanel.setBackground(new Color(255, 255, 51)); commentsColorPanel.setBorder(LineBorder.createBlackLineBorder()); commentsColorPanel.setForeground(Color.black); commentsColorPanel.setPreferredSize(new Dimension(70, 20)); commentsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(commentsColorPanel, cc.xy(5, 11)); //---- commentsBoldButton ---- commentsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); commentsBoldButton.setText("Bold"); tabSyntax.add(commentsBoldButton, cc.xy(7, 11)); //---- commentsItalicButton ---- commentsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); commentsItalicButton.setText("Italic"); tabSyntax.add(commentsItalicButton, cc.xy(9, 11)); //---- label31 ---- label31.setText("Strings:"); tabSyntax.add(label31, cc.xy(3, 13)); //======== stringsColorPanel ======== { stringsColorPanel.setBackground(new Color(255, 255, 51)); stringsColorPanel.setBorder(LineBorder.createBlackLineBorder()); stringsColorPanel.setForeground(Color.black); stringsColorPanel.setPreferredSize(new Dimension(70, 20)); stringsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(stringsColorPanel, cc.xy(5, 13)); //---- stringsBoldButton ---- stringsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); stringsBoldButton.setText("Bold"); tabSyntax.add(stringsBoldButton, cc.xy(7, 13)); //---- stringsItalicButton ---- stringsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); stringsItalicButton.setText("Italic"); tabSyntax.add(stringsItalicButton, cc.xy(9, 13)); //---- label32 ---- label32.setText("Keywords:"); tabSyntax.add(label32, cc.xy(3, 15)); //======== keywordsColorPanel ======== { keywordsColorPanel.setBackground(new Color(255, 255, 51)); keywordsColorPanel.setBorder(LineBorder.createBlackLineBorder()); keywordsColorPanel.setForeground(Color.black); keywordsColorPanel.setPreferredSize(new Dimension(70, 20)); keywordsColorPanel.setLayout(new FlowLayout()); } tabSyntax.add(keywordsColorPanel, cc.xy(5, 15)); //---- keywordsBoldButton ---- keywordsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13)); keywordsBoldButton.setText("Bold"); tabSyntax.add(keywordsBoldButton, cc.xy(7, 15)); //---- syntaxDefaultButton ---- syntaxDefaultButton.setText("Default"); tabSyntax.add(syntaxDefaultButton, cc.xy(13, 15)); //---- keywordsItalicButton ---- keywordsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); keywordsItalicButton.setText("Italic"); tabSyntax.add(keywordsItalicButton, cc.xy(9, 15)); } tabbedPane1.addTab("Syntax", tabSyntax); //======== tabCompiler ======== { tabCompiler.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.DEFAULT_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- jikesRadio ---- jikesRadio.setText("jikes"); tabCompiler.add(jikesRadio, cc.xywh(3, 7, 2, 1)); //---- integratedRadio ---- integratedRadio.setActionCommand("integrated"); integratedRadio.setText("com.sun.tools.javac"); tabCompiler.add(integratedRadio, cc.xywh(3, 11, 3, 1)); //---- javacRadio ---- javacRadio.setSelected(true); javacRadio.setText("javac"); tabCompiler.add(javacRadio, cc.xywh(3, 3, 2, 1)); //---- javacCustomPathButton ---- javacCustomPathButton.setText("Path:"); javacCustomPathButton.setToolTipText("Check to specify a custom path if the default system path doesn't include javac"); tabCompiler.add(javacCustomPathButton, cc.xy(4, 5)); tabCompiler.add(javacPathField, cc.xy(5, 5)); //---- browseJavacPath ---- browseJavacPath.setText("Browse..."); tabCompiler.add(browseJavacPath, cc.xy(6, 5)); //---- label4 ---- label4.setText("Path:"); tabCompiler.add(label4, cc.xywh(4, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); tabCompiler.add(jikesPathField, cc.xy(5, 9)); //---- browseJikesPath ---- browseJikesPath.setText("Browse..."); tabCompiler.add(browseJikesPath, cc.xy(6, 9)); } tabbedPane1.addTab("Compiler", tabCompiler); //======== tabDebugger ======== { tabDebugger.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label33 ---- label33.setText("Default local port:"); tabDebugger.add(label33, cc.xy(3, 3)); //---- debugDefaultLocalPortField ---- debugDefaultLocalPortField.setText("0xC001"); tabDebugger.add(debugDefaultLocalPortField, cc.xy(5, 3)); //---- label12 ---- label12.setHorizontalAlignment(SwingConstants.RIGHT); label12.setText("Non-consumed token:"); tabDebugger.add(label12, cc.xy(3, 7)); //======== debugNonConsumedColorPanel ======== { debugNonConsumedColorPanel.setBackground(new Color(255, 255, 51)); debugNonConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugNonConsumedColorPanel.setForeground(Color.black); debugNonConsumedColorPanel.setPreferredSize(new Dimension(70, 20)); debugNonConsumedColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugNonConsumedColorPanel, cc.xy(5, 7)); //---- label13 ---- label13.setHorizontalAlignment(SwingConstants.RIGHT); label13.setText("Consumed token:"); tabDebugger.add(label13, cc.xy(3, 9)); //======== debugConsumedColorPanel ======== { debugConsumedColorPanel.setBackground(new Color(255, 255, 51)); debugConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugConsumedColorPanel.setForeground(Color.black); debugConsumedColorPanel.setPreferredSize(new Dimension(70, 20)); debugConsumedColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugConsumedColorPanel, cc.xy(5, 9)); //---- label14 ---- label14.setHorizontalAlignment(SwingConstants.RIGHT); label14.setText("Hidden token:"); tabDebugger.add(label14, cc.xy(3, 11)); //======== debugHiddenColorPanel ======== { debugHiddenColorPanel.setBackground(new Color(255, 255, 51)); debugHiddenColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugHiddenColorPanel.setForeground(Color.black); debugHiddenColorPanel.setPreferredSize(new Dimension(70, 20)); debugHiddenColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugHiddenColorPanel, cc.xy(5, 11)); //---- label15 ---- label15.setHorizontalAlignment(SwingConstants.RIGHT); label15.setText("Dead token:"); tabDebugger.add(label15, cc.xy(3, 13)); //======== debugDeadColorPanel ======== { debugDeadColorPanel.setBackground(new Color(255, 255, 51)); debugDeadColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugDeadColorPanel.setForeground(Color.black); debugDeadColorPanel.setPreferredSize(new Dimension(70, 20)); debugDeadColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugDeadColorPanel, cc.xy(5, 13)); //---- label16 ---- label16.setHorizontalAlignment(SwingConstants.RIGHT); label16.setText("Lookahead token:"); tabDebugger.add(label16, cc.xy(3, 15)); //======== debugLTColorPanel ======== { debugLTColorPanel.setBackground(new Color(255, 255, 51)); debugLTColorPanel.setBorder(LineBorder.createBlackLineBorder()); debugLTColorPanel.setForeground(Color.black); debugLTColorPanel.setPreferredSize(new Dimension(70, 20)); debugLTColorPanel.setLayout(new FlowLayout()); } tabDebugger.add(debugLTColorPanel, cc.xy(5, 15)); } tabbedPane1.addTab("Debugger", tabDebugger); //======== tabSCM ======== { tabSCM.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- enablePerforceCheckBox ---- enablePerforceCheckBox.setText("Enable Perforce"); tabSCM.add(enablePerforceCheckBox, cc.xy(5, 3)); //---- label18 ---- label18.setText("Port:"); tabSCM.add(label18, cc.xy(3, 7)); tabSCM.add(p4PortField, cc.xy(5, 7)); //---- label19 ---- label19.setText("User:"); tabSCM.add(label19, cc.xy(3, 9)); tabSCM.add(p4UserField, cc.xy(5, 9)); //---- label21 ---- label21.setText("Password:"); tabSCM.add(label21, cc.xy(3, 11)); tabSCM.add(p4PasswordField, cc.xy(5, 11)); //---- label20 ---- label20.setText("Client:"); tabSCM.add(label20, cc.xy(3, 13)); tabSCM.add(p4ClientField, cc.xy(5, 13)); //---- label17 ---- label17.setText("P4 executable path:"); tabSCM.add(label17, cc.xy(3, 17)); tabSCM.add(p4ExecPathField, cc.xy(5, 17)); } tabbedPane1.addTab("SCM", tabSCM); //======== tabStats ======== { tabStats.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DLUY6, FormSpec.NO_GROW), FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- reportTypeCombo ---- reportTypeCombo.setModel(new DefaultComboBoxModel(new String[] { "Manually", "Remind me automatically each week" })); tabStats.add(reportTypeCombo, cc.xywh(3, 5, 3, 1)); //---- label6 ---- label6.setText("Submit reports:"); tabStats.add(label6, cc.xy(3, 3)); //---- label8 ---- label8.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); label8.setText("No personal or confidential information is sent."); tabStats.add(label8, cc.xywh(3, 9, 3, 1)); //---- label9 ---- label9.setFont(new Font("Lucida Grande", Font.ITALIC, 13)); label9.setText("Each report is displayed in human readable form before being sent."); tabStats.add(label9, cc.xywh(3, 11, 3, 1)); } tabbedPane1.addTab("Statistics", tabStats); //======== tabUpdates ======== { tabUpdates.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label7 ---- label7.setHorizontalAlignment(SwingConstants.LEFT); label7.setText("Check for ANTLRWorks updates:"); tabUpdates.add(label7, cc.xy(3, 3)); //---- updateTypeCombo ---- updateTypeCombo.setModel(new DefaultComboBoxModel(new String[] { "Manually", "At startup", "Daily", "Weekly" })); tabUpdates.add(updateTypeCombo, cc.xywh(3, 5, 4, 1)); //---- checkForUpdatesButton ---- checkForUpdatesButton.setText("Check Now"); tabUpdates.add(checkForUpdatesButton, cc.xy(7, 5)); //---- label10 ---- label10.setHorizontalAlignment(SwingConstants.LEFT); label10.setText("Download path:"); tabUpdates.add(label10, cc.xy(3, 9)); tabUpdates.add(downloadPathField, cc.xywh(3, 11, 3, 1)); //---- browseUpdateDownloadPathButton ---- browseUpdateDownloadPathButton.setActionCommand("Browse"); browseUpdateDownloadPathButton.setText("Browse..."); tabUpdates.add(browseUpdateDownloadPathButton, cc.xy(7, 11)); } tabbedPane1.addTab("Updates", tabUpdates); } contentPane.add(tabbedPane1, cc.xywh(1, 1, 2, 1)); } dialogPane.add(contentPane, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- applyButton ---- applyButton.setText("Apply"); buttonBar.add(applyButton, cc.xy(2, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane2.add(dialogPane, BorderLayout.CENTER); // JFormDesigner - End of component initialization //GEN-END:initComponents }
|
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/0721343d779d601606040b74e8aba93fd8f6360c/AWPrefsDialog.java/buggy/src/org/antlr/works/prefs/AWPrefsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
394,
24048,
5621,
3639,
913,
8485,
273,
394,
24048,
5621,
3639,
3246,
2992,
8485,
21,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
3246,
12580,
273,
394,
24048,
5621,
3639,
1433,
22,
273,
394,
21403,
5621,
3639,
1433,
25,
273,
394,
21403,
5621,
3639,
328,
1727,
16156,
273,
394,
804,
22199,
5621,
3639,
11850,
1803,
16156,
273,
394,
804,
22199,
5621,
3639,
1433,
3247,
273,
394,
21403,
5621,
3639,
3928,
6364,
743,
974,
273,
394,
804,
16157,
5621,
3639,
21670,
10412,
6364,
743,
3616,
273,
394,
28804,
5621,
3639,
1433,
2947,
273,
394,
21403,
5621,
3639,
1198,
14489,
3616,
273,
394,
804,
19174,
5621,
3639,
1198,
40,
1580,
6179,
10153,
50,
2046,
273,
394,
804,
19174,
5621,
3639,
3246,
6946,
273,
394,
24048,
5621,
3639,
1433,
23,
273,
394,
21403,
5621,
3639,
4858,
5711,
16156,
273,
394,
804,
22199,
5621,
3639,
4858,
22688,
31676,
273,
394,
804,
31676,
5621,
3639,
3656,
4755,
3616,
273,
394,
804,
19174,
5621,
3639,
3656,
4755,
6763,
974,
273,
394,
804,
16157,
5621,
3639,
1433,
2499,
273,
394,
21403,
5621,
3639,
8839,
6688,
1670,
3616,
273,
394,
804,
19174,
5621,
3639,
11957,
1541,
15742,
3616,
273,
394,
804,
19174,
5621,
3639,
11590,
310,
3616,
273,
394,
804,
19174,
5621,
3639,
4209,
15592,
310,
979,
15482,
3616,
273,
394,
804,
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,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
394,
24048,
5621,
3639,
913,
8485,
273,
394,
24048,
5621,
3639,
3246,
2992,
8485,
21,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
3246,
12580,
273,
394,
24048,
5621,
3639,
1433,
22,
273,
394,
21403,
5621,
3639,
1433,
25,
273,
394,
21403,
5621,
3639,
328,
1727,
16156,
273,
394,
804,
22199,
5621,
3639,
11850,
1803,
16156,
273,
394,
804,
22199,
5621,
3639,
1433,
3247,
273,
394,
21403,
5621,
3639,
3928,
6364,
743,
974,
273,
394,
804,
16157,
5621,
3639,
21670,
10412,
6364,
743,
3616,
273,
394,
2
] |
GeometryTools.scaleMolecule(m, scaleFactor);
|
GeometryTools.scaleMolecule(m, scaleFactor,renderModel.getRenderingCoordinates());
|
private void generateModel() { try { String SMILES = valueText.getText(); SmilesParser sp = new SmilesParser(); IMolecule m = sp.parseSmiles(SMILES); // ok, get relevent bits from active model JChemPaintModel jcpModel = jcpPanel.getJChemPaintModel(); Renderer2DModel renderModel = jcpModel.getRendererModel(); org.openscience.cdk.interfaces.IChemModel chemModel = jcpModel.getChemModel(); org.openscience.cdk.interfaces.ISetOfMolecules moleculeSet = chemModel.getSetOfMolecules(); if (moleculeSet == null) { moleculeSet = new SetOfMolecules(); } // ok, now generate 2D coordinates StructureDiagramGenerator sdg = new StructureDiagramGenerator(); sdg.setTemplateHandler(new TemplateHandler()); try { sdg.setMolecule(m); sdg.generateCoordinates(new Vector2d(0,1)); m = sdg.getMolecule(); double bondLength = renderModel.getBondLength(); double scaleFactor = GeometryTools.getScaleFactor(m, bondLength); GeometryTools.scaleMolecule(m, scaleFactor); //if there are no atoms in the actual chemModel all 2D-coordinates would be set to NaN if (ChemModelManipulator.getAllInOneContainer(chemModel).getAtomCount() != 0) { GeometryTools.translate2DCenterTo(m, GeometryTools.get2DCenter( ChemModelManipulator.getAllInOneContainer(chemModel) ) ); } GeometryTools.translate2D(m, 5*bondLength, 0); // in pixels } catch (Exception exc) { exc.printStackTrace(); } // now add the structure to the active model moleculeSet.addMolecule(m); // and select it// renderModel.setSelectedPart(m); // if the not again setting the chemModel setOfMolecules the chemModel remains empty jcpPanel.getChemModel().setSetOfMolecules(moleculeSet); // to ensure, that the molecule is shown in the actual visibile part of jcp jcpPanel.scaleAndCenterMolecule((ChemModel)jcpPanel.getChemModel());// fire a change so that the view gets updated jcpModel.fireChange(jcpPanel.getChemModel()); closeFrame(); } catch (InvalidSmilesException ise) { JOptionPane.showMessageDialog(jcpPanel, "Invalid SMILES String."); } }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/InsertFromSmiles.java/buggy/src/org/openscience/cdk/applications/jchempaint/dialogs/InsertFromSmiles.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
2103,
1488,
1435,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
348,
7492,
11386,
273,
460,
1528,
18,
588,
1528,
5621,
9506,
202,
9552,
1449,
2678,
1694,
273,
394,
9425,
1449,
2678,
5621,
9506,
202,
3445,
10545,
312,
273,
1694,
18,
2670,
9552,
1449,
12,
7303,
45,
11386,
1769,
7734,
368,
1529,
16,
336,
6707,
616,
4125,
628,
2695,
938,
7734,
804,
20200,
12699,
1488,
525,
4057,
1488,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
7734,
17589,
22,
40,
1488,
1743,
1488,
273,
525,
4057,
1488,
18,
588,
6747,
1488,
5621,
7734,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
20200,
1488,
19028,
1488,
273,
525,
4057,
1488,
18,
588,
20200,
1488,
5621,
7734,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
694,
951,
49,
29466,
13661,
694,
273,
19028,
1488,
18,
588,
694,
951,
49,
29466,
5621,
7734,
309,
261,
81,
10545,
694,
422,
446,
13,
288,
10792,
13661,
694,
273,
394,
1000,
951,
49,
29466,
5621,
7734,
289,
9506,
202,
759,
1529,
16,
2037,
2103,
576,
40,
5513,
9506,
202,
6999,
14058,
1940,
3908,
8349,
75,
273,
394,
13348,
14058,
1940,
3908,
5621,
7734,
8349,
75,
18,
542,
2283,
1503,
12,
2704,
5035,
1503,
10663,
9506,
202,
698,
9506,
202,
95,
6862,
202,
6427,
75,
18,
542,
29669,
12,
81,
1769,
6862,
202,
6427,
75,
18,
7163,
13431,
12,
2704,
5589,
22,
72,
12,
20,
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,
1152,
918,
2103,
1488,
1435,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
348,
7492,
11386,
273,
460,
1528,
18,
588,
1528,
5621,
9506,
202,
9552,
1449,
2678,
1694,
273,
394,
9425,
1449,
2678,
5621,
9506,
202,
3445,
10545,
312,
273,
1694,
18,
2670,
9552,
1449,
12,
7303,
45,
11386,
1769,
7734,
368,
1529,
16,
336,
6707,
616,
4125,
628,
2695,
938,
7734,
804,
20200,
12699,
1488,
525,
4057,
1488,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
7734,
17589,
22,
40,
1488,
1743,
1488,
273,
525,
4057,
1488,
18,
588,
6747,
1488,
5621,
7734,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
20200,
1488,
19028,
2
] |
((StructureViewFactoryImpl)StructureViewFactory.getInstance(myProject)).AUTOSCROLL_MODE = state;
|
((StructureViewFactoryImpl)StructureViewFactoryEx.getInstance(myProject)).AUTOSCROLL_MODE = state;
|
protected void setAutoScrollMode(boolean state) { ((StructureViewFactoryImpl)StructureViewFactory.getInstance(myProject)).AUTOSCROLL_MODE = state; }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/a9e359ba28413282c647b0e8080e7d385596e279/StructureViewComponent.java/clean/source/com/intellij/ide/structureView/newStructureView/StructureViewComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
21780,
6806,
2309,
12,
6494,
919,
13,
288,
3639,
14015,
6999,
1767,
1733,
2828,
13,
6999,
1767,
1733,
424,
18,
588,
1442,
12,
4811,
4109,
13,
2934,
18909,
2312,
14555,
67,
7038,
273,
919,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
21780,
6806,
2309,
12,
6494,
919,
13,
288,
3639,
14015,
6999,
1767,
1733,
2828,
13,
6999,
1767,
1733,
424,
18,
588,
1442,
12,
4811,
4109,
13,
2934,
18909,
2312,
14555,
67,
7038,
273,
919,
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
] |
public RubyBignum(Ruby ruby, BigInteger value) { super(ruby, ruby.getClasses().getBignumClass()); this.value = value;
|
public RubyBignum(Ruby ruby) { this(ruby, BigInteger.ZERO);
|
public RubyBignum(Ruby ruby, BigInteger value) { super(ruby, ruby.getClasses().getBignumClass()); this.value = value; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyBignum.java/buggy/org/jruby/RubyBignum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
38,
724,
379,
12,
54,
10340,
22155,
16,
10246,
460,
13,
288,
3639,
2240,
12,
27768,
16,
22155,
18,
588,
4818,
7675,
588,
38,
724,
379,
797,
10663,
3639,
333,
18,
1132,
273,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
38,
724,
379,
12,
54,
10340,
22155,
16,
10246,
460,
13,
288,
3639,
2240,
12,
27768,
16,
22155,
18,
588,
4818,
7675,
588,
38,
724,
379,
797,
10663,
3639,
333,
18,
1132,
273,
460,
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
] |
eDynamicSet( eFeature, newValue );
|
super.eSet( featureID, newValue );
|
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.LOCATION3_D__X : setX( ( (Double) newValue ).doubleValue( ) ); return; case AttributePackage.LOCATION3_D__Y : setY( ( (Double) newValue ).doubleValue( ) ); return; case AttributePackage.LOCATION3_D__Z : setZ( ( (Double) newValue ).doubleValue( ) ); return; } eDynamicSet( eFeature, newValue ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/Location3DImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/Location3DImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
60,
294,
9506,
202,
542,
60,
12,
261,
261,
5265,
13,
6129,
262,
18,
9056,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
61,
294,
9506,
202,
542,
61,
12,
261,
261,
5265,
13,
6129,
262,
18,
9056,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
62,
294,
9506,
202,
542,
62,
12,
261,
261,
5265,
13,
6129,
262,
18,
9056,
620,
12,
262,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
694,
12,
425,
4595,
16,
6129,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
60,
294,
9506,
202,
542,
60,
12,
261,
261,
5265,
13,
6129,
262,
18,
9056,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
61,
294,
9506,
202,
542,
61,
12,
261,
261,
5265,
13,
6129,
262,
18,
9056,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
15277,
23,
67,
40,
972,
62,
294,
9506,
202,
542,
62,
2
] |
/***
|
public void unparsedEntityDecl(int entityNameIndex, int publicIdIndex, int systemIdIndex, int notationNameIndex) throws Exception { // deferred expansion if (fDeferredDocumentImpl != null) { //revisit: how to check if entity was already declared. // XML spec says that 1st Entity decl is binding. int newEntityIndex = fDeferredDocumentImpl.createEntity(entityNameIndex, publicIdIndex, systemIdIndex, notationNameIndex); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, newEntityIndex); /*** // REVISIT: Entities were removed from latest working draft. -Ac // add unparsed entity declaration if (fGrammarAccess) { int schemaIndex = getFirstChildElement(fDocumentTypeIndex, "schema"); String entityName = fStringPool.toString(entityNameIndex); int unparsedEntityIndex = getFirstChildElement(schemaIndex, "unparsedEntity", "name", entityName); if (unparsedEntityIndex == -1) { int handle = fAttrList.startAttrList(); fAttrList.addAttr( fStringPool.addSymbol("name"), fStringPool.addString(entityName), fStringPool.addSymbol("NMTOKEN"), true, false); // search fAttrList.addAttr( fStringPool.addSymbol("export"), fStringPool.addString("true"), fStringPool.addSymbol("ENUMERATION"), false, false); // search if (publicIdIndex != -1) { fAttrList.addAttr( fStringPool.addSymbol("public"), publicIdIndex, fStringPool.addSymbol("CDATA"), true, false); // search } fAttrList.addAttr( fStringPool.addSymbol("system"), systemIdIndex, fStringPool.addSymbol("CDATA"), true, false); // search fAttrList.addAttr( fStringPool.addSymbol("notation"), fStringPool.addString(fStringPool.toString(notationNameIndex)), fStringPool.addSymbol("CDATA"), true, false); // search fAttrList.endAttrList(); unparsedEntityIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("unparsedEntity"), fAttrList, handle); fDeferredDocumentImpl.appendChild(schemaIndex, unparsedEntityIndex); } } /***/ } // full expansion else if (fDocumentImpl != null) { //revisit: how to check if entity was already declared. // XML spec says that 1st Entity decl is binding. String entityName = fStringPool.toString(entityNameIndex); String publicId = fStringPool.toString(publicIdIndex); String systemId = fStringPool.toString(systemIdIndex); String notationName = fStringPool.toString(notationNameIndex); EntityImpl entity = (EntityImpl)fDocumentImpl.createEntity(entityName); if (publicIdIndex != -1) { entity.setPublicId(publicId); } entity.setSystemId(systemId); entity.setNotationName(notationName); fDocumentType.getEntities().setNamedItem(entity); /*** // REVISIT: Entities were removed from latest working draft. -Ac // add unparsed entity declaration if (fGrammarAccess) { Element schema = XUtil.getFirstChildElement(fDocumentType, "schema"); Element unparsedEntity = XUtil.getFirstChildElement(schema, "unparsedEntity", "name", entityName); if (unparsedEntity == null) { unparsedEntity = fDocument.createElement("unparsedEntity"); unparsedEntity.setAttribute("name", entityName); unparsedEntity.setAttribute("export", "true"); ((AttrImpl)unparsedEntity.getAttributeNode("export")).setSpecified(false); if (publicIdIndex != -1) { unparsedEntity.setAttribute("public", publicId); } unparsedEntity.setAttribute("system", systemId); unparsedEntity.setAttribute("notation", notationName); schema.appendChild(unparsedEntity); } } /***/ } } // unparsedEntityDecl(int,int,int,int)
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/3bbd83a7bcddbc34357f71fe08eace8d74b9bc8f/DOMParser.java/buggy/src/org/apache/xerces/parsers/DOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27810,
1943,
3456,
12,
474,
14868,
1016,
16,
4766,
282,
509,
1071,
548,
1016,
16,
509,
30083,
1016,
16,
4766,
282,
509,
12155,
461,
1016,
13,
1216,
1185,
288,
3639,
368,
7045,
17965,
3639,
309,
261,
74,
16886,
2519,
2828,
480,
446,
13,
288,
5411,
368,
266,
11658,
30,
3661,
358,
866,
309,
1522,
1703,
1818,
7886,
18,
5411,
368,
3167,
857,
20185,
716,
404,
334,
3887,
3496,
353,
5085,
18,
5411,
509,
394,
1943,
1016,
273,
284,
16886,
2519,
2828,
18,
2640,
1943,
12,
1096,
461,
1016,
16,
1071,
548,
1016,
16,
30083,
1016,
16,
12155,
461,
1016,
1769,
5411,
284,
16886,
2519,
2828,
18,
6923,
1763,
12,
74,
2519,
559,
1016,
16,
394,
1943,
1016,
1769,
15604,
368,
2438,
26780,
1285,
30,
16216,
4591,
3723,
628,
4891,
5960,
12246,
18,
300,
9988,
5411,
368,
527,
27810,
1522,
8266,
5411,
309,
261,
74,
18576,
1862,
13,
288,
7734,
509,
1963,
1016,
273,
17315,
1046,
12,
74,
2519,
559,
1016,
16,
315,
4821,
8863,
7734,
514,
14868,
273,
284,
780,
2864,
18,
10492,
12,
1096,
461,
1016,
1769,
7734,
509,
27810,
1943,
1016,
273,
17315,
1046,
12,
4821,
1016,
16,
315,
318,
10817,
1943,
3113,
315,
529,
3113,
14868,
1769,
7734,
309,
261,
318,
10817,
1943,
1016,
422,
300,
21,
13,
288,
10792,
509,
1640,
273,
284,
3843,
682,
18,
1937,
3843,
682,
5621,
10792,
284,
3843,
682,
18,
1289,
3843,
12,
13491,
284,
780,
2864,
18,
1289,
5335,
2932,
529,
6,
3631,
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,
1071,
918,
27810,
1943,
3456,
12,
474,
14868,
1016,
16,
4766,
282,
509,
1071,
548,
1016,
16,
509,
30083,
1016,
16,
4766,
282,
509,
12155,
461,
1016,
13,
1216,
1185,
288,
3639,
368,
7045,
17965,
3639,
309,
261,
74,
16886,
2519,
2828,
480,
446,
13,
288,
5411,
368,
266,
11658,
30,
3661,
358,
866,
309,
1522,
1703,
1818,
7886,
18,
5411,
368,
3167,
857,
20185,
716,
404,
334,
3887,
3496,
353,
5085,
18,
5411,
509,
394,
1943,
1016,
273,
284,
16886,
2519,
2828,
18,
2640,
1943,
12,
1096,
461,
1016,
16,
1071,
548,
1016,
16,
30083,
1016,
16,
12155,
461,
1016,
1769,
5411,
284,
16886,
2519,
2828,
18,
6923,
1763,
12,
74,
2519,
559,
1016,
16,
394,
1943,
2
] |
|
if (getTimeLeft() > 0) return;
|
long left = getTimeLeft(); if (left > 0) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Inactivity timeout reached, but there is time left (" + left + ")"); SimpleTimer.getInstance().addEvent(ActivityTimer.this, left); return; }
|
public void timeReached() { // uh, nothing more to do... if (!_connected) return; // we got rescheduled already if (getTimeLeft() > 0) return; // these are either going to time out or cause further rescheduling if (getUnackedPacketsSent() > 0) return; // wtf, this shouldn't have been scheduled if (_options.getInactivityTimeout() <= 0) return; // if one of us can't talk... if ( (_closeSentOn > 0) || (_closeReceivedOn > 0) ) return; // bugger it, might as well do the hard work now switch (_options.getInactivityAction()) { case ConnectionOptions.INACTIVITY_ACTION_SEND: if (_log.shouldLog(Log.WARN)) _log.warn("Sending some data due to inactivity"); _receiver.send(null, 0, 0, true); break; case ConnectionOptions.INACTIVITY_ACTION_NOOP: if (_log.shouldLog(Log.WARN)) _log.warn("Inactivity timer expired, but we aint doin' shit"); break; case ConnectionOptions.INACTIVITY_ACTION_DISCONNECT: // fall through default: if (_log.shouldLog(Log.WARN)) _log.warn("Closing connection due to inactivity"); if (_log.shouldLog(Log.DEBUG)) { StringBuffer buf = new StringBuffer(128); buf.append("last sent was: ").append(_context.clock().now() - _lastSendTime); buf.append("ms ago, last received was: ").append(_context.clock().now()-_lastReceivedOn); buf.append("ms ago, inactivity timeout is: ").append(_options.getInactivityTimeout()); _log.debug(buf.toString()); } disconnect(true); break; } }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/b9b59ff95fa26f930c7e03f11cb8de9d2416888f/Connection.java/buggy/apps/streaming/java/src/net/i2p/client/streaming/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
813,
23646,
1435,
288,
5411,
368,
582,
76,
16,
5083,
1898,
358,
741,
2777,
5411,
309,
16051,
67,
8537,
13,
327,
31,
5411,
368,
732,
2363,
400,
2847,
72,
1818,
5411,
1525,
2002,
273,
6135,
3910,
5621,
309,
261,
4482,
405,
374,
13,
288,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
2932,
382,
9653,
2021,
8675,
16,
1496,
1915,
353,
813,
2002,
7566,
397,
2002,
397,
7310,
1769,
4477,
6777,
18,
588,
1442,
7675,
1289,
1133,
12,
6193,
6777,
18,
2211,
16,
2002,
1769,
327,
31,
289,
5411,
368,
4259,
854,
3344,
8554,
358,
813,
596,
578,
4620,
9271,
400,
13252,
5411,
309,
261,
588,
984,
484,
329,
27328,
7828,
1435,
405,
374,
13,
327,
31,
5411,
368,
341,
6632,
16,
333,
12044,
1404,
1240,
2118,
9755,
5411,
309,
261,
67,
2116,
18,
588,
382,
9653,
2694,
1435,
1648,
374,
13,
327,
31,
5411,
368,
309,
1245,
434,
584,
848,
1404,
26591,
2777,
5411,
309,
261,
261,
67,
4412,
7828,
1398,
405,
374,
13,
747,
261,
67,
4412,
8872,
1398,
405,
374,
13,
262,
327,
31,
13491,
368,
7934,
693,
518,
16,
4825,
487,
5492,
741,
326,
7877,
1440,
2037,
5411,
1620,
261,
67,
2116,
18,
588,
382,
9653,
1803,
10756,
288,
7734,
648,
4050,
1320,
18,
706,
22271,
4107,
67,
12249,
67,
21675,
30,
10792,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
13491,
389,
1330,
18,
8935,
2932,
16322,
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,
813,
23646,
1435,
288,
5411,
368,
582,
76,
16,
5083,
1898,
358,
741,
2777,
5411,
309,
16051,
67,
8537,
13,
327,
31,
5411,
368,
732,
2363,
400,
2847,
72,
1818,
5411,
1525,
2002,
273,
6135,
3910,
5621,
309,
261,
4482,
405,
374,
13,
288,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
2932,
382,
9653,
2021,
8675,
16,
1496,
1915,
353,
813,
2002,
7566,
397,
2002,
397,
7310,
1769,
4477,
6777,
18,
588,
1442,
7675,
1289,
1133,
12,
6193,
6777,
18,
2211,
16,
2002,
1769,
327,
31,
289,
5411,
368,
4259,
854,
3344,
8554,
358,
813,
596,
578,
4620,
9271,
400,
13252,
5411,
309,
261,
588,
984,
484,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.