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
|
|---|---|---|---|---|---|---|
final MultipartWebRequest multipartWebRequest = new MultipartWebRequest(this.maxSize, request);
|
final MultipartWebRequest multipartWebRequest = new MultipartWebRequest( this.maxSize, request);
|
protected void process() { if (multiPart) { // Change the request to a multipart web request so parameters are // parsed out correctly final HttpServletRequest request = ((WebRequest)getRequest()).getHttpServletRequest(); try { final MultipartWebRequest multipartWebRequest = new MultipartWebRequest(this.maxSize, request); getRequestCycle().setRequest(multipartWebRequest); } catch (FileUploadException e) { // Create model with exception and maximum size values final HashMap model = new HashMap(); model.put("exception", e); model.put("maxSize", maxSize); if (e instanceof SizeLimitExceededException) { // Resource key should be <form-id>.uploadTooLarge to override default message final String defaultValue = "Upload must be less than " + maxSize; String msg = getString(getId() + ".uploadTooLarge", Model.valueOf(model), defaultValue); error(msg); if (log.isDebugEnabled()) { log.error(msg, e); } else { log.error(msg); } } else { // Resource key should be <form-id>.uploadFailed to override default message final String defaultValue = "Upload failed: " + e.getLocalizedMessage(); String msg = getString(getId() + ".uploadFailed", Model.valueOf(model), defaultValue); error(msg); log.error(msg, e); } // don't process the form if there is a FileUploadException return; } } // first, see if the processing was triggered by a Wicket button final Button submittingButton = findSubmittingButton(); // when processing was triggered by a Wicket button and that button indicates // it wants to be called immediately (without validating), call onSubmit right away. if (submittingButton != null && (submittingButton.isImmediate())) { submittingButton.onSubmit(); } else { // as processing was not triggered by a button with immediate == true, // we execute validation now before anything else validate(); // If a validation error occurred if (hasError()) { // mark all children as invalid markFormComponentsInvalid(); // let subclass handle error onError(); } else { // before updating, call the interception method for clients beforeUpdateFormComponentModels(); // Update model using form data updateFormComponentModels(); // Persist FormComponents if requested persistFormComponentData(); // let clients handle further processing delegateSubmit(submittingButton); } } }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/c3f613a1d24372f28bec4bb387a13fae21585bed/Form.java/clean/wicket/src/java/wicket/markup/html/form/Form.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
1435,
202,
95,
202,
202,
430,
261,
7027,
1988,
13,
3196,
202,
95,
1082,
202,
759,
7576,
326,
590,
358,
279,
10263,
3311,
590,
1427,
1472,
854,
1082,
202,
759,
2707,
596,
8783,
1082,
202,
6385,
9984,
590,
273,
14015,
4079,
691,
13,
588,
691,
1435,
2934,
588,
2940,
18572,
5621,
1082,
202,
698,
1082,
202,
95,
9506,
202,
6385,
19919,
4079,
691,
10263,
4079,
691,
273,
394,
19919,
4079,
691,
12,
2211,
18,
1896,
1225,
16,
590,
1769,
9506,
202,
588,
691,
13279,
7675,
542,
691,
12,
16404,
4079,
691,
1769,
1082,
202,
97,
1082,
202,
14683,
261,
812,
4777,
503,
425,
13,
1082,
202,
95,
9506,
202,
759,
1788,
938,
598,
1520,
471,
4207,
963,
924,
9506,
202,
6385,
4317,
938,
273,
394,
4317,
5621,
9506,
202,
2284,
18,
458,
2932,
4064,
3113,
425,
1769,
9506,
202,
2284,
18,
458,
2932,
1896,
1225,
3113,
14777,
1769,
9506,
202,
430,
261,
73,
1276,
6321,
21512,
13,
9506,
202,
95,
6862,
202,
759,
2591,
498,
1410,
506,
411,
687,
17,
350,
18652,
6327,
10703,
20020,
358,
3849,
805,
883,
6862,
202,
6385,
514,
4593,
273,
315,
4777,
1297,
506,
5242,
2353,
315,
397,
14777,
31,
6862,
202,
780,
1234,
273,
4997,
12,
26321,
1435,
397,
3552,
6327,
10703,
20020,
3113,
3164,
18,
1132,
951,
12,
2284,
3631,
4593,
1769,
6862,
202,
1636,
12,
3576,
1769,
6862,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
6862,
202,
95,
25083,
202,
1330,
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,
1207,
1435,
202,
95,
202,
202,
430,
261,
7027,
1988,
13,
3196,
202,
95,
1082,
202,
759,
7576,
326,
590,
358,
279,
10263,
3311,
590,
1427,
1472,
854,
1082,
202,
759,
2707,
596,
8783,
1082,
202,
6385,
9984,
590,
273,
14015,
4079,
691,
13,
588,
691,
1435,
2934,
588,
2940,
18572,
5621,
1082,
202,
698,
1082,
202,
95,
9506,
202,
6385,
19919,
4079,
691,
10263,
4079,
691,
273,
394,
19919,
4079,
691,
12,
2211,
18,
1896,
1225,
16,
590,
1769,
9506,
202,
588,
691,
13279,
7675,
542,
691,
12,
16404,
4079,
691,
1769,
1082,
202,
97,
1082,
202,
14683,
261,
812,
4777,
503,
425,
13,
1082,
202,
95,
9506,
202,
759,
1788,
938,
598,
1520,
2
] |
if(dir==null) {
|
if (dir == null) {
|
public void actionPerformed(ActionEvent ae) { if (zipTree == null) return; TreePath tp = zipTree.getSelectionPath(); if (tp == null) return; Object[] elements = tp.getPath(); if (tp.getPathCount() == 1) return; String path=elements[1].toString()+'/'; for(int i=2;i<tp.getPathCount();i++) { path+=elements[i].toString()+'/'; } DefaultMutableTreeNode node = (DefaultMutableTreeNode)zipTree.getLastSelectedPathComponent(); if (node.isLeaf()) { path=path.substring(0, path.length()-1); } String dir; fsd = new FileDialog(frm, "Choose directory to extract", 1); fsd.setFile("ZipView"); fsd.show(); dir = fsd.getDirectory(); if(dir==null) { return; } extractEntry(path, dir); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/buggy/java/plugins/examples/zip/ZipView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
7734,
309,
261,
4450,
2471,
422,
446,
13,
327,
31,
202,
202,
2471,
743,
8071,
273,
3144,
2471,
18,
588,
6233,
743,
5621,
202,
202,
430,
261,
6834,
422,
446,
13,
327,
31,
202,
202,
921,
8526,
2186,
273,
8071,
18,
588,
743,
5621,
202,
202,
430,
261,
6834,
18,
588,
743,
1380,
1435,
422,
404,
13,
327,
31,
202,
202,
780,
589,
33,
6274,
63,
21,
8009,
10492,
1435,
6797,
2473,
31,
202,
202,
1884,
12,
474,
277,
33,
22,
31,
77,
32,
6834,
18,
588,
743,
1380,
5621,
77,
27245,
288,
1082,
565,
589,
15,
33,
6274,
63,
77,
8009,
10492,
1435,
6797,
2473,
31,
202,
202,
97,
202,
202,
1868,
19536,
12513,
756,
273,
261,
1868,
19536,
12513,
13,
4450,
2471,
18,
588,
3024,
7416,
743,
1841,
5621,
202,
202,
430,
261,
2159,
18,
291,
9858,
10756,
288,
1082,
565,
589,
33,
803,
18,
28023,
12,
20,
16,
589,
18,
2469,
1435,
17,
21,
1769,
202,
202,
97,
9506,
202,
780,
1577,
31,
202,
202,
2556,
72,
273,
394,
1387,
6353,
12,
4840,
81,
16,
315,
24529,
1867,
358,
2608,
3113,
404,
1769,
202,
202,
2556,
72,
18,
542,
812,
2932,
9141,
1767,
8863,
202,
202,
2556,
72,
18,
4500,
5621,
202,
202,
1214,
273,
2662,
72,
18,
588,
2853,
5621,
202,
202,
430,
12,
1214,
631,
2011,
13,
288,
1082,
565,
327,
31,
202,
202,
97,
202,
202,
8004,
1622,
12,
803,
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,
565,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
7734,
309,
261,
4450,
2471,
422,
446,
13,
327,
31,
202,
202,
2471,
743,
8071,
273,
3144,
2471,
18,
588,
6233,
743,
5621,
202,
202,
430,
261,
6834,
422,
446,
13,
327,
31,
202,
202,
921,
8526,
2186,
273,
8071,
18,
588,
743,
5621,
202,
202,
430,
261,
6834,
18,
588,
743,
1380,
1435,
422,
404,
13,
327,
31,
202,
202,
780,
589,
33,
6274,
63,
21,
8009,
10492,
1435,
6797,
2473,
31,
202,
202,
1884,
12,
474,
277,
33,
22,
31,
77,
32,
6834,
18,
588,
743,
1380,
5621,
77,
27245,
288,
1082,
565,
589,
15,
33,
6274,
63,
77,
8009,
10492,
1435,
6797,
2473,
31,
202,
2
] |
java.util.List neighbours = ac.getConnectedAtomsList(atom); java.util.List second = null; IBond bond = null; int counter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C")) { second = ac.getConnectedAtomsList(neighbour); for (int b = 0; b < second.size(); b++) { IAtom conAtom = (IAtom)second.get(b); if (conAtom.getSymbol().equals("O")) { bond = ac.getBond(neighbour, conAtom); if (bond.getOrder() == 2.0) { counter +=1; } } } } } return counter; }
|
java.util.List neighbours = ac.getConnectedAtomsList(atom); java.util.List second = null; IBond bond = null; int counter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C")) { second = ac.getConnectedAtomsList(neighbour); for (int b = 0; b < second.size(); b++) { IAtom conAtom = (IAtom)second.get(b); if (conAtom.getSymbol().equals("O")) { bond = ac.getBond(neighbour, conAtom); if (bond.getOrder() == 2.0) { counter +=1; } } } } } return counter; }
|
private int getPresenceOfCarbonil(IAtomContainer ac, org.openscience.cdk.interfaces.IAtom atom) { java.util.List neighbours = ac.getConnectedAtomsList(atom); java.util.List second = null; IBond bond = null; int counter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C")) { second = ac.getConnectedAtomsList(neighbour); for (int b = 0; b < second.size(); b++) { IAtom conAtom = (IAtom)second.get(b); if (conAtom.getSymbol().equals("O")) { bond = ac.getBond(neighbour, conAtom); if (bond.getOrder() == 2.0) { counter +=1; } } } } } return counter; }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1689,
455,
802,
951,
39,
11801,
330,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
202,
202,
6290,
18,
1367,
18,
682,
27662,
273,
1721,
18,
588,
8932,
14280,
682,
12,
7466,
1769,
202,
202,
6290,
18,
1367,
18,
682,
2205,
273,
446,
31,
202,
202,
45,
9807,
8427,
273,
446,
31,
202,
202,
474,
3895,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
45,
3641,
16497,
273,
261,
45,
3641,
13,
11166,
4390,
18,
588,
12,
77,
1769,
1082,
202,
430,
261,
11166,
477,
18,
588,
5335,
7675,
14963,
2932,
39,
6,
3719,
288,
9506,
202,
8538,
273,
1721,
18,
588,
8932,
14280,
682,
12,
11166,
477,
1769,
9506,
202,
1884,
261,
474,
324,
273,
374,
31,
324,
411,
2205,
18,
1467,
5621,
324,
27245,
288,
6862,
202,
45,
3641,
356,
3641,
273,
261,
45,
3641,
13,
8538,
18,
588,
12,
70,
1769,
6862,
202,
430,
261,
591,
3641,
18,
588,
5335,
7675,
14963,
2932,
51,
6,
3719,
288,
25083,
202,
26425,
273,
1721,
18,
588,
9807,
12,
11166,
477,
16,
356,
3641,
1769,
25083,
202,
430,
261,
26425,
18,
588,
2448,
1435,
422,
576,
18,
20,
13,
288,
6862,
1082,
202,
7476,
1011,
21,
31,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
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,
1152,
509,
1689,
455,
802,
951,
39,
11801,
330,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
202,
202,
6290,
18,
1367,
18,
682,
27662,
273,
1721,
18,
588,
8932,
14280,
682,
12,
7466,
1769,
202,
202,
6290,
18,
1367,
18,
682,
2205,
273,
446,
31,
202,
202,
45,
9807,
8427,
273,
446,
31,
202,
202,
474,
3895,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27662,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
45,
3641,
16497,
273,
261,
45,
3641,
13,
11166,
4390,
18,
588,
12,
77,
1769,
1082,
202,
430,
261,
11166,
477,
18,
2
] |
toSearch = ModelFacade.getNamespace(toSearch)) {
|
toSearch = getNamespaceWithoutModel(toSearch)) {
|
private String generateHeaderPackageStart(Object cls) { // cat.info("generateHeaderPackageStart: " + cls.getName() + " // aus Namespace: " + cls.getNamespace().getName()); StringBuffer sb = new StringBuffer(80); if (actualNamespace != null) { for (Object fromSearch = actualNamespace; fromSearch != null; fromSearch = ModelFacade.getNamespace(fromSearch)) { // cat.info("fromSearch: " + fromSearch.getName()); StringBuffer contPath = new StringBuffer(80); Object toSearch = ModelFacade.getNamespace(cls); for (; (toSearch != null) && (toSearch != fromSearch); toSearch = ModelFacade.getNamespace(toSearch)) { // cat.info("toSearch: " + toSearch.getName()); contPath.insert(0, generateHeaderPackageStartSingle(toSearch)); } if (toSearch == fromSearch) { sb.append(contPath.toString()); break; } else { // close one namespace sb.append(generateHeaderPackageEndSingle(fromSearch)); } } } else { // initial start for (Object toSearch = ModelFacade.getNamespace(cls); toSearch != null; toSearch = ModelFacade.getNamespace(toSearch)) { sb.insert(0, generateHeaderPackageStartSingle(toSearch)); } } if (sb.length() > 0) { sb.insert(0, "\n").append("\n"); } actualNamespace = ModelFacade.getNamespace(cls); return sb.toString(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/a7d225019b270dbcd44b6cfa13b28319933dab57/GeneratorCpp.java/buggy/modules/cpp/src/org/argouml/language/cpp/generator/GeneratorCpp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2103,
1864,
2261,
1685,
12,
921,
2028,
13,
288,
3639,
368,
6573,
18,
1376,
2932,
7163,
1864,
2261,
1685,
30,
315,
397,
2028,
18,
17994,
1435,
397,
315,
3639,
368,
279,
407,
6005,
30,
315,
397,
2028,
18,
588,
3402,
7675,
17994,
10663,
3639,
6674,
2393,
273,
394,
6674,
12,
3672,
1769,
3639,
309,
261,
18672,
3402,
480,
446,
13,
288,
5411,
364,
261,
921,
628,
2979,
273,
3214,
3402,
31,
10792,
628,
2979,
480,
446,
31,
10792,
628,
2979,
273,
3164,
12467,
18,
588,
3402,
12,
2080,
2979,
3719,
288,
7734,
368,
6573,
18,
1376,
2932,
2080,
2979,
30,
315,
397,
628,
2979,
18,
17994,
10663,
7734,
6674,
466,
743,
273,
394,
6674,
12,
3672,
1769,
7734,
1033,
358,
2979,
273,
3164,
12467,
18,
588,
3402,
12,
6429,
1769,
7734,
364,
261,
31,
261,
869,
2979,
480,
446,
13,
597,
261,
869,
2979,
480,
628,
2979,
1769,
13491,
358,
2979,
273,
11153,
8073,
1488,
12,
869,
2979,
3719,
288,
10792,
368,
6573,
18,
1376,
2932,
869,
2979,
30,
315,
397,
358,
2979,
18,
17994,
10663,
10792,
466,
743,
18,
6387,
12,
20,
16,
18701,
2103,
1864,
2261,
1685,
5281,
12,
869,
2979,
10019,
7734,
289,
7734,
309,
261,
869,
2979,
422,
628,
2979,
13,
288,
10792,
2393,
18,
6923,
12,
1213,
743,
18,
10492,
10663,
10792,
898,
31,
7734,
289,
7734,
469,
288,
10792,
368,
1746,
1245,
1981,
10792,
2393,
18,
6923,
12,
7163,
1864,
2261,
1638,
5281,
12,
2080,
2979,
10019,
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,
514,
2103,
1864,
2261,
1685,
12,
921,
2028,
13,
288,
3639,
368,
6573,
18,
1376,
2932,
7163,
1864,
2261,
1685,
30,
315,
397,
2028,
18,
17994,
1435,
397,
315,
3639,
368,
279,
407,
6005,
30,
315,
397,
2028,
18,
588,
3402,
7675,
17994,
10663,
3639,
6674,
2393,
273,
394,
6674,
12,
3672,
1769,
3639,
309,
261,
18672,
3402,
480,
446,
13,
288,
5411,
364,
261,
921,
628,
2979,
273,
3214,
3402,
31,
10792,
628,
2979,
480,
446,
31,
10792,
628,
2979,
273,
3164,
12467,
18,
588,
3402,
12,
2080,
2979,
3719,
288,
7734,
368,
6573,
18,
1376,
2932,
2080,
2979,
30,
315,
397,
628,
2979,
18,
17994,
10663,
7734,
6674,
466,
743,
273,
394,
6674,
12,
3672,
2
] |
if (strings.size() == 0) strings.add(ConstantExpression.EMPTY_STRING);
|
if (strings.size() == 0) strings.add(ConstantExpression.EMPTY_STRING);
|
public void addValue(Expression value) { // If the first thing is an value, then we need a dummy empty string in front of it so that when we // toString it they come out in the correct order. if (strings.size() == 0) strings.add(ConstantExpression.EMPTY_STRING); values.add(value); }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/54780d2d76cefc64086c8ff3881b5ca6bd9d2523/GStringExpression.java/buggy/src/main/org/codehaus/groovy/ast/expr/GStringExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17663,
12,
2300,
460,
13,
288,
377,
202,
759,
971,
326,
1122,
7757,
353,
392,
460,
16,
1508,
732,
1608,
279,
9609,
1008,
533,
316,
6641,
434,
518,
1427,
716,
1347,
732,
377,
202,
759,
1762,
518,
2898,
12404,
596,
316,
326,
3434,
1353,
18,
377,
202,
430,
261,
10219,
18,
1467,
1435,
422,
374,
13,
2064,
18,
1289,
12,
6902,
2300,
18,
13625,
67,
5804,
1769,
3639,
924,
18,
1289,
12,
1132,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
17663,
12,
2300,
460,
13,
288,
377,
202,
759,
971,
326,
1122,
7757,
353,
392,
460,
16,
1508,
732,
1608,
279,
9609,
1008,
533,
316,
6641,
434,
518,
1427,
716,
1347,
732,
377,
202,
759,
1762,
518,
2898,
12404,
596,
316,
326,
3434,
1353,
18,
377,
202,
430,
261,
10219,
18,
1467,
1435,
422,
374,
13,
2064,
18,
1289,
12,
6902,
2300,
18,
13625,
67,
5804,
1769,
3639,
924,
18,
1289,
12,
1132,
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
] |
return _cols.intValue();
|
return _cols_fetched ?_cols.intValue() : -1;
|
public int getColumns() throws IOException, NullPointerException { if (!_cols_fetched) { String valueString = getValue(_cols_attribute); if (valueString != null) { _cols = NumericConverter.extractPositiveInteger(valueString); } _cols_fetched = true; } return _cols.intValue(); }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/e4733f83298cac7fec9a7ded0724debe9b9aa3e0/EPCell.java/buggy/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/EPCell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
14226,
1435,
1216,
1860,
16,
10108,
288,
3639,
309,
16051,
67,
6842,
67,
5754,
329,
13,
288,
5411,
514,
24998,
273,
2366,
24899,
6842,
67,
4589,
1769,
5411,
309,
261,
1132,
780,
480,
446,
13,
288,
7734,
389,
6842,
273,
16980,
5072,
18,
8004,
14900,
4522,
12,
1132,
780,
1769,
5411,
289,
5411,
389,
6842,
67,
5754,
329,
273,
638,
31,
3639,
289,
3639,
327,
389,
6842,
67,
5754,
329,
692,
67,
6842,
18,
474,
620,
1435,
294,
300,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
14226,
1435,
1216,
1860,
16,
10108,
288,
3639,
309,
16051,
67,
6842,
67,
5754,
329,
13,
288,
5411,
514,
24998,
273,
2366,
24899,
6842,
67,
4589,
1769,
5411,
309,
261,
1132,
780,
480,
446,
13,
288,
7734,
389,
6842,
273,
16980,
5072,
18,
8004,
14900,
4522,
12,
1132,
780,
1769,
5411,
289,
5411,
389,
6842,
67,
5754,
329,
273,
638,
31,
3639,
289,
3639,
327,
389,
6842,
67,
5754,
329,
692,
67,
6842,
18,
474,
620,
1435,
294,
300,
21,
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
] |
ProjectBrowser.TheInstance.setTarget(obj);
|
protected void modelChanged() { MAssociation as = (MAssociation) getOwner(); if (as == null) return; String asNameStr = Notation.generate(this, as.getName()); super.modelChanged(); MAssociationEnd ae0 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[0]; MAssociationEnd ae1 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[1]; FigNode oldDest = (FigNode)getDestFigNode(); FigNode oldSource = (FigNode)getSourceFigNode(); FigNode dest = (FigNode)getLayer().presentationFor(ae1.getType()); FigNode src = (FigNode)getLayer().presentationFor(ae0.getType()); boolean setFigs = true; if (oldDest != null && oldDest.equals(dest)) { if (oldSource != null && oldSource.equals(src)) { setFigs = false; } } else { if (oldDest != null && oldDest.equals(src)) { if (oldSource != null && oldSource.equals(dest)) { setFigs = false; } else { FigNode tempSrc = src; src = dest; dest = tempSrc; } } } if (setFigs) { if (dest != null) { setDestFigNode((FigNode)getLayer().presentationFor(ae1.getType())); setDestPortFig(getLayer().presentationFor(ae1.getType())); } if (src != null) { setSourceFigNode((FigNode)getLayer().presentationFor(ae0.getType())); setSourcePortFig(getLayer().presentationFor(ae0.getType())); } computeRoute(); calcBounds(); Object obj = ProjectBrowser.TheInstance.getTarget(); Iterator editors = getLayer().getEditors().iterator(); while (editors.hasNext()) { ((Editor)editors.next()).damaged(this); } ProjectBrowser.TheInstance.setTarget(obj); } MMultiplicity mult0 = ae0.getMultiplicity(); MMultiplicity mult1 = ae1.getMultiplicity(); _srcMult.setText(Notation.generate(this, mult0)); _destMult.setText(Notation.generate(this, mult1)); _srcRole.setText(Notation.generate(this, ae0.getName())); _destRole.setText(Notation.generate(this, ae1.getName())); // now add the stereotypes on associatenends if desired // need more work! // this should be configurable if (true == true) { if (ae0.getStereotype() != null) _srcRole.setText(Notation.generateStereotype(this, ae0.getStereotype()) + " " + _srcRole.getText()); if (ae1.getStereotype() != null) _destRole.setText(Notation.generateStereotype(this, ae1.getStereotype()) + " " + _destRole.getText()); } if (true == true ) { _srcOrdering.setText(getOrderingName(ae0.getOrdering())); _destOrdering.setText(getOrderingName(ae1.getOrdering())); } boolean srcNav = ae0.isNavigable(); boolean destNav = ae1.isNavigable(); if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS) srcNav = destNav = false; sourceArrowHead = chooseArrowHead(ae0.getAggregation(), srcNav); destArrowHead = chooseArrowHead(ae1.getAggregation(), destNav); setSourceArrowHead(sourceArrowHead); setDestArrowHead(destArrowHead); _srcGroup.calcBounds(); _destGroup.calcBounds(); _middleGroup.calcBounds(); /* if (setFigs) { computeRoute(); calcBounds(); Iterator editors = getLayer().getEditors().iterator(); while (editors.hasNext()) { ((Editor)editors.next()).damageAll(); } } */ }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ab95b1ee7d305edf2e38ba31ebe81c24c8153d45/FigAssociation.java/buggy/src_new/org/argouml/uml/diagram/ui/FigAssociation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
1435,
288,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
13,
327,
31,
565,
514,
487,
461,
1585,
273,
2288,
367,
18,
7163,
12,
2211,
16,
487,
18,
17994,
10663,
565,
2240,
18,
2284,
5033,
5621,
565,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
3639,
478,
360,
907,
1592,
9378,
273,
261,
42,
360,
907,
13,
588,
9378,
42,
360,
907,
5621,
565,
478,
360,
907,
1592,
1830,
273,
261,
42,
360,
907,
13,
588,
1830,
42,
360,
907,
5621,
3639,
478,
360,
907,
1570,
273,
261,
42,
360,
907,
13,
588,
4576,
7675,
10364,
1290,
12,
8906,
21,
18,
588,
559,
10663,
565,
478,
360,
907,
1705,
273,
261,
42,
360,
907,
13,
588,
4576,
7675,
10364,
1290,
12,
8906,
20,
18,
588,
559,
10663,
565,
1250,
24340,
360,
87,
273,
638,
31,
565,
309,
261,
1673,
9378,
480,
446,
597,
1592,
9378,
18,
14963,
12,
10488,
3719,
288,
3639,
309,
261,
1673,
1830,
480,
446,
597,
1592,
1830,
18,
14963,
12,
4816,
3719,
288,
5411,
24340,
360,
87,
273,
629,
31,
3639,
289,
377,
289,
469,
288,
3639,
309,
261,
1673,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
1435,
288,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
13,
327,
31,
565,
514,
487,
461,
1585,
273,
2288,
367,
18,
7163,
12,
2211,
16,
487,
18,
17994,
10663,
565,
2240,
18,
2284,
5033,
5621,
565,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
3639,
478,
360,
907,
1592,
9378,
273,
261,
42,
360,
907,
2
] |
|
enumval = baseImpl.newValue(facet.getValue());
|
enumval = baseImpl.newValue(facet.getValue(), true);
|
static void resolveFacets(SchemaTypeImpl sImpl, XmlObject restriction, SchemaTypeImpl baseImpl) { StscState state = StscState.get(); boolean[] seenFacet = new boolean[SchemaType.LAST_FACET + 1]; XmlAnySimpleType[] myFacets = baseImpl.getBasicFacets(); // makes a copy boolean[] fixedFacets = baseImpl.getFixedFacets(); int wsr = SchemaType.WS_UNSPECIFIED; List enumeratedValues = null; List patterns = null; if (restriction != null) { XmlCursor cur = restriction.newCursor(); for (boolean more = cur.toFirstChild(); more; more = cur.toNextSibling()) { int code = translateFacetCode(cur.getName()); if (code == -1) continue; Facet facet = (Facet)cur.getObject(); if (!facetAppliesToType(code, baseImpl)) { state.error(XmlErrorCodes.FACETS_APPLICABLE, new Object[] { facet.newCursor().getName().getLocalPart(), QNameHelper.pretty(baseImpl.getName()) }, facet); continue; } if (seenFacet[code] && !isMultipleFacet(code)) { state.error(XmlErrorCodes.DATATYPE_SINGLE_FACET_VALUE, null, facet); continue; } seenFacet[code] = true; switch (code) { case SchemaType.FACET_LENGTH: if (myFacets[SchemaType.FACET_MIN_LENGTH] != null || myFacets[SchemaType.FACET_MAX_LENGTH] != null) { state.error(XmlErrorCodes.DATATYPE_LENGTH, null, facet); continue; } XmlInteger len = StscTranslator.buildNnInteger(facet.getValue()); if (len == null) { // KHK: s4s state.error("Must be a nonnegative integer", XmlErrorCodes.FACET_VALUE_MALFORMED, facet); continue; } if (fixedFacets[code] && !myFacets[code].valueEquals(len)) { state.error(XmlErrorCodes.FACET_FIXED, null, facet); continue; } myFacets[code] = len; break; case SchemaType.FACET_MIN_LENGTH: case SchemaType.FACET_MAX_LENGTH: if (myFacets[SchemaType.FACET_LENGTH] != null) { state.error(XmlErrorCodes.DATATYPE_LENGTH, null, facet); continue; } XmlInteger mlen = StscTranslator.buildNnInteger(facet.getValue()); if (mlen == null) { state.error("Must be a nonnegative integer", XmlErrorCodes.FACET_VALUE_MALFORMED, facet); continue; } if (fixedFacets[code] && !myFacets[code].valueEquals(mlen)) { state.error(XmlErrorCodes.FACET_FIXED, null, facet); continue; } if (myFacets[SchemaType.FACET_MAX_LENGTH] != null) { if (mlen.compareValue(myFacets[SchemaType.FACET_MAX_LENGTH]) > 0) { state.error(XmlErrorCodes.DATATYPE_MAX_LENGTH_RESTRICTION, null, facet); continue; } } if (myFacets[SchemaType.FACET_MIN_LENGTH] != null) { if (mlen.compareValue(myFacets[SchemaType.FACET_MIN_LENGTH]) < 0) { state.error(XmlErrorCodes.DATATYPE_MIN_LENGTH_RESTRICTION, null, facet); continue; } } myFacets[code] = mlen; break; case SchemaType.FACET_TOTAL_DIGITS: XmlPositiveInteger dig = StscTranslator.buildPosInteger(facet.getValue()); if (dig == null) { state.error("Must be a positive integer", XmlErrorCodes.FACET_VALUE_MALFORMED, facet); break; } if (fixedFacets[code] && !myFacets[code].valueEquals(dig)) { state.error(XmlErrorCodes.FACET_FIXED, null, facet); continue; } if (myFacets[SchemaType.FACET_TOTAL_DIGITS] != null) { if (dig.compareValue(myFacets[SchemaType.FACET_TOTAL_DIGITS]) > 0) state.error(XmlErrorCodes.DATATYPE_TOTAL_DIGITS_RESTRICTION, null, facet); } myFacets[code] = dig; break; case SchemaType.FACET_FRACTION_DIGITS: XmlNonNegativeInteger fdig = StscTranslator.buildNnInteger(facet.getValue()); if (fdig == null) { state.error("Must be a nonnegative integer", XmlErrorCodes.FACET_VALUE_MALFORMED, facet); break; } if (fixedFacets[code] && !myFacets[code].valueEquals(fdig)) { state.error(XmlErrorCodes.FACET_FIXED, null, facet); continue; } if (myFacets[SchemaType.FACET_FRACTION_DIGITS] != null) { if (fdig.compareValue(myFacets[SchemaType.FACET_FRACTION_DIGITS]) > 0) state.error(XmlErrorCodes.DATATYPE_FRACTION_DIGITS_RESTRICTION, null, facet); } myFacets[code] = fdig; break; case SchemaType.FACET_MIN_EXCLUSIVE: case SchemaType.FACET_MIN_INCLUSIVE: case SchemaType.FACET_MAX_INCLUSIVE: case SchemaType.FACET_MAX_EXCLUSIVE: if (seenFacet[other_similar_limit(code)]) { state.error("Cannot define both inclusive and exclusive limit in the same restriciton", XmlErrorCodes.FACET_DUPLICATED, facet); continue; } boolean ismin = (code == SchemaType.FACET_MIN_EXCLUSIVE || code == SchemaType.FACET_MIN_INCLUSIVE); boolean isexclusive = (code == SchemaType.FACET_MIN_EXCLUSIVE || code == SchemaType.FACET_MAX_EXCLUSIVE); XmlAnySimpleType limit; try { limit = baseImpl.newValue(facet.getValue()); } catch (XmlValueOutOfRangeException e) { // note: this guarantees that the limit is a valid number in the // base data type!! state.error("Must be valid value in base type", XmlErrorCodes.FACET_VALUE_MALFORMED, facet); // BUGBUG: if there are actual schemas that redefine min/maxExclusive, // they will need this rule relaxed for them!! continue; } if (fixedFacets[code] && !myFacets[code].valueEquals(limit)) { state.error(XmlErrorCodes.FACET_FIXED, null, facet); continue; } if (myFacets[code] != null) { int comparison = limit.compareValue(myFacets[code]); if (comparison == 2 || comparison == (ismin ? -1 : 1)) { state.error(ismin ? (isexclusive ? "Must be greater than or equal to previous minExclusive" : "Must be greater than or equal to previous minInclusive") : (isexclusive ? "Must be less than or equal to previous maxExclusive" : "Must be less than or equal to previous maxInclusive"), XmlErrorCodes.FACET_VALUE_MALFORMED, facet); continue; } } myFacets[code] = limit; myFacets[other_similar_limit(code)] = null; break; case SchemaType.FACET_WHITE_SPACE: wsr = translateWhitespaceCode(facet.getValue()); if (baseImpl.getWhiteSpaceRule() > wsr) { wsr = SchemaType.WS_UNSPECIFIED; state.error(XmlErrorCodes.DATATYPE_WHITESPACE_RESTRICTION, null, facet); continue; } myFacets[code] = StscState.build_wsstring(wsr).get(); break; case SchemaType.FACET_ENUMERATION: XmlObject enumval; try { enumval = baseImpl.newValue(facet.getValue()); // enumval.set(facet.getValue()); // ((XmlObjectBase)enumval).setImmutable(); } catch (XmlValueOutOfRangeException e) { state.error(XmlErrorCodes.DATATYPE_ENUM_RESTRICTION, null, facet); continue; } if (enumeratedValues == null) enumeratedValues = new ArrayList(); enumeratedValues.add(enumval); break; case SchemaType.FACET_PATTERN: RegularExpression p; try { p = new RegularExpression(facet.getValue().getStringValue(), "X"); } catch (org.apache.xmlbeans.impl.regex.ParseException e) { state.error(XmlErrorCodes.PATTERN_REGEX, new Object[] { facet.getValue().getStringValue(), e.getMessage() }, facet); continue; } if (patterns == null) patterns = new ArrayList(); patterns.add(p); break; } if (facet.getFixed()) fixedFacets[code] = true; } } // Store the array of basic facets sImpl.setBasicFacets(makeValueRefArray(myFacets), fixedFacets); // Update the numeric whitespace rule if (wsr == SchemaType.WS_UNSPECIFIED) wsr = baseImpl.getWhiteSpaceRule(); sImpl.setWhiteSpaceRule(wsr); // store away the enumerated values if (enumeratedValues != null) { sImpl.setEnumerationValues(makeValueRefArray((XmlAnySimpleType[]) enumeratedValues.toArray(new XmlAnySimpleType[enumeratedValues.size()]))); SchemaType beType = sImpl; if (sImpl.getBaseType().getBaseEnumType() != null) beType = sImpl.getBaseType().getBaseEnumType(); sImpl.setBaseEnumTypeRef(beType.getRef()); } else { sImpl.copyEnumerationValues(baseImpl); } // store the pattern list org.apache.xmlbeans.impl.regex.RegularExpression[] patternArray; if (patterns != null) patternArray = (org.apache.xmlbeans.impl.regex.RegularExpression[])patterns.toArray(EMPTY_REGEX_ARRAY); else patternArray = EMPTY_REGEX_ARRAY; sImpl.setPatternFacet((patternArray.length > 0 || baseImpl.hasPatternFacet())); sImpl.setPatterns(patternArray); }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/6c4d4638ca052ddcff4b45b81eaac174b510eb51/StscSimpleTypeResolver.java/clean/src/typeimpl/org/apache/xmlbeans/impl/schema/StscSimpleTypeResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2245,
6645,
2413,
12,
3078,
30639,
272,
2828,
16,
5714,
921,
9318,
16,
4611,
30639,
1026,
2828,
13,
565,
288,
3639,
934,
1017,
1119,
919,
273,
934,
1017,
1119,
18,
588,
5621,
3639,
1250,
8526,
5881,
11137,
273,
394,
1250,
63,
3078,
559,
18,
14378,
67,
11300,
56,
397,
404,
15533,
3639,
5714,
2961,
5784,
559,
8526,
3399,
6645,
2413,
273,
1026,
2828,
18,
588,
8252,
6645,
2413,
5621,
368,
7297,
279,
1610,
3639,
1250,
8526,
5499,
6645,
2413,
273,
1026,
2828,
18,
588,
7505,
6645,
2413,
5621,
3639,
509,
4945,
86,
273,
4611,
559,
18,
2651,
67,
2124,
13847,
13519,
31,
3639,
987,
3557,
690,
1972,
273,
446,
31,
3639,
987,
6884,
273,
446,
31,
3639,
309,
261,
23954,
480,
446,
13,
3639,
288,
5411,
5714,
6688,
662,
273,
9318,
18,
2704,
6688,
5621,
5411,
364,
261,
6494,
1898,
273,
662,
18,
869,
3759,
1763,
5621,
1898,
31,
1898,
273,
662,
18,
869,
2134,
10291,
10756,
5411,
288,
7734,
509,
981,
273,
4204,
11137,
1085,
12,
1397,
18,
17994,
10663,
7734,
309,
261,
710,
422,
300,
21,
13,
10792,
1324,
31,
7734,
31872,
11082,
273,
261,
11137,
13,
1397,
18,
588,
921,
5621,
7734,
309,
16051,
21568,
13029,
31616,
12,
710,
16,
1026,
2828,
3719,
7734,
288,
10792,
919,
18,
1636,
12,
4432,
668,
6295,
18,
11300,
8047,
67,
7215,
6065,
2782,
16,
13491,
394,
1033,
8526,
288,
11082,
18,
2704,
6688,
7675,
17994,
7675,
588,
2042,
1988,
9334,
16723,
2276,
18,
19073,
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,
2245,
6645,
2413,
12,
3078,
30639,
272,
2828,
16,
5714,
921,
9318,
16,
4611,
30639,
1026,
2828,
13,
565,
288,
3639,
934,
1017,
1119,
919,
273,
934,
1017,
1119,
18,
588,
5621,
3639,
1250,
8526,
5881,
11137,
273,
394,
1250,
63,
3078,
559,
18,
14378,
67,
11300,
56,
397,
404,
15533,
3639,
5714,
2961,
5784,
559,
8526,
3399,
6645,
2413,
273,
1026,
2828,
18,
588,
8252,
6645,
2413,
5621,
368,
7297,
279,
1610,
3639,
1250,
8526,
5499,
6645,
2413,
273,
1026,
2828,
18,
588,
7505,
6645,
2413,
5621,
3639,
509,
4945,
86,
273,
4611,
559,
18,
2651,
67,
2124,
13847,
13519,
31,
3639,
987,
3557,
690,
1972,
273,
446,
31,
3639,
987,
6884,
273,
446,
31,
2
] |
String csv = "key1,value1\nkey2,value2";
|
String csv = "db1,rdf1\ndb2,rdf2";
|
public void testTwoRows() { String csv = "key1,value1\nkey2,value2"; Collection translations = new TranslationTableParser( new StringReader(csv)).parseTranslations(); assertEquals(2, translations.size()); Set expected = new HashSet(); expected.add(new Translation("key1", "value1")); expected.add(new Translation("key2", "value2")); assertEquals(expected, new HashSet(translations)); }
|
3809 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3809/23e3e36f6f76326088b8eeba1ac20fc3ed490943/TranslationTableParserTest.java/buggy/test/de/fuberlin/wiwiss/d2rq/csv/TranslationTableParserTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11710,
4300,
1435,
288,
202,
202,
780,
6101,
273,
315,
856,
21,
16,
1132,
21,
64,
82,
856,
22,
16,
1132,
22,
14432,
202,
202,
2532,
7863,
273,
394,
17427,
1388,
2678,
12,
9506,
202,
2704,
26227,
12,
6715,
13,
2934,
2670,
12297,
5621,
202,
202,
11231,
8867,
12,
22,
16,
7863,
18,
1467,
10663,
202,
202,
694,
2665,
273,
394,
6847,
5621,
202,
202,
3825,
18,
1289,
12,
2704,
17427,
2932,
856,
21,
3113,
315,
1132,
21,
7923,
1769,
202,
202,
3825,
18,
1289,
12,
2704,
17427,
2932,
856,
22,
3113,
315,
1132,
22,
7923,
1769,
202,
202,
11231,
8867,
12,
3825,
16,
394,
6847,
12,
13457,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1842,
11710,
4300,
1435,
288,
202,
202,
780,
6101,
273,
315,
856,
21,
16,
1132,
21,
64,
82,
856,
22,
16,
1132,
22,
14432,
202,
202,
2532,
7863,
273,
394,
17427,
1388,
2678,
12,
9506,
202,
2704,
26227,
12,
6715,
13,
2934,
2670,
12297,
5621,
202,
202,
11231,
8867,
12,
22,
16,
7863,
18,
1467,
10663,
202,
202,
694,
2665,
273,
394,
6847,
5621,
202,
202,
3825,
18,
1289,
12,
2704,
17427,
2932,
856,
21,
3113,
315,
1132,
21,
7923,
1769,
202,
202,
3825,
18,
1289,
12,
2704,
17427,
2932,
856,
22,
3113,
315,
1132,
22,
7923,
1769,
202,
202,
11231,
8867,
12,
3825,
16,
394,
6847,
12,
13457,
10019,
202,
97,
2,
-100,
-100,
-100
] |
switch(result) { case 0: ftpProtocol.selectAll(); break; case 1: ftpProtocol.selectNone(); break; default: fieldsSelected = ftpProtocol.isFieldsSelected(); if (ftpProtocol.isFieldsSelected()) doTransfer(); break; } } }
|
switch (result) { case 0 : ftpProtocol.selectAll(); break; case 1 : ftpProtocol.selectNone(); break; default : fieldsSelected = ftpProtocol.isFieldsSelected(); if (ftpProtocol.isFieldsSelected()) doTransfer(); break; } } }
|
private void selectFields() { FFDTableModel ffdtm = new FFDTableModel(); //Create table to hold field data JTable fields = new JTable(ffdtm); fields.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); fields.setPreferredScrollableViewportSize(new Dimension(500,200)); //Create the scroll pane and add the table to it. JScrollPane scrollPane = new JScrollPane(fields); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JPanel jpm = new JPanel(); jpm.add(scrollPane); Object[] message = new Object[1]; message[0] = jpm; String[] options = {LangTool.getString("xtfr.tableSelectAll"), LangTool.getString("xtfr.tableSelectNone"), LangTool.getString("xtfr.tableDone") }; int result = 0; while (result != 2) { result = JOptionPane.showOptionDialog( null, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("xtfr.titleFieldSelection"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.PLAIN_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[1] // option that should be made into a default button ); switch(result) { case 0: // Select all ftpProtocol.selectAll(); break; case 1: // Select none ftpProtocol.selectNone(); break; default: fieldsSelected = ftpProtocol.isFieldsSelected(); if (ftpProtocol.isFieldsSelected()) doTransfer(); break; } } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/XTFRFile.java/buggy/tn5250j/src/org/tn5250j/tools/XTFRFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
2027,
2314,
1435,
288,
1377,
6512,
40,
1388,
1488,
6875,
7510,
81,
273,
394,
6512,
40,
1388,
1488,
5621,
1377,
368,
1684,
1014,
358,
6887,
652,
501,
1377,
804,
1388,
1466,
273,
394,
804,
1388,
12,
1403,
7510,
81,
1769,
1377,
1466,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
1377,
1466,
18,
542,
16028,
6806,
429,
22743,
1225,
12,
2704,
13037,
12,
12483,
16,
6976,
10019,
1377,
368,
1684,
326,
5532,
13618,
471,
527,
326,
1014,
358,
518,
18,
1377,
804,
26360,
5532,
8485,
273,
394,
804,
26360,
12,
2821,
1769,
1377,
5532,
8485,
18,
542,
15704,
6806,
5190,
2582,
12,
46,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
3033,
67,
5407,
22832,
1769,
1377,
5532,
8485,
18,
542,
14457,
6806,
5190,
2582,
12,
46,
26360,
18,
44,
20344,
67,
2312,
14555,
21908,
67,
3033,
67,
5407,
22832,
1769,
1377,
24048,
525,
7755,
273,
394,
24048,
5621,
1377,
525,
7755,
18,
1289,
12,
12033,
8485,
1769,
1377,
1033,
8526,
1377,
883,
273,
394,
1033,
63,
21,
15533,
1377,
883,
63,
20,
65,
273,
525,
7755,
31,
1377,
514,
8526,
702,
273,
288,
7275,
6364,
18,
588,
780,
2932,
15239,
4840,
18,
2121,
3391,
1595,
6,
3631,
21821,
13346,
6364,
18,
588,
780,
2932,
15239,
4840,
18,
2121,
3391,
7036,
6,
3631,
21821,
13346,
6364,
18,
588,
780,
2932,
15239,
4840,
18,
2121,
7387,
7923,
12900,
289,
31,
1377,
509,
563,
273,
374,
31,
1377,
1323,
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,
565,
3238,
918,
2027,
2314,
1435,
288,
1377,
6512,
40,
1388,
1488,
6875,
7510,
81,
273,
394,
6512,
40,
1388,
1488,
5621,
1377,
368,
1684,
1014,
358,
6887,
652,
501,
1377,
804,
1388,
1466,
273,
394,
804,
1388,
12,
1403,
7510,
81,
1769,
1377,
1466,
18,
542,
6233,
2309,
12,
682,
6233,
1488,
18,
20184,
67,
1090,
15445,
1769,
1377,
1466,
18,
542,
16028,
6806,
429,
22743,
1225,
12,
2704,
13037,
12,
12483,
16,
6976,
10019,
1377,
368,
1684,
326,
5532,
13618,
471,
527,
326,
1014,
358,
518,
18,
1377,
804,
26360,
5532,
8485,
273,
394,
804,
26360,
12,
2821,
1769,
1377,
5532,
8485,
18,
542,
15704,
6806,
5190,
2582,
12,
46,
26360,
18,
21654,
10109,
67,
2312,
14555,
2
] |
public boolean startJob(String arguments, Object condition, CommandRecord commandRec, boolean hiredByName) { hireAllEmployees(commandRec, MargLikeAncStCLForModel.class); for (int i = 0; i<getNumberOfEmployees() && reconstructTask==null; i++) { Object e=getEmployeeVector().elementAt(i); if (e instanceof MargLikeAncStCLForModel){ ((MargLikeAncStCLForModel)e).setReportCladeLocalValues(true); // ((MargLikeAncStCLForModel)e).setRootMode(MargLikeAncStCLForModel.ROOT_USEPRIOR); } } if (modelTask == null) modelTask = (ProbModelSourceLike)hireEmployee(commandRec, ProbModelSourceLike.class, "Source of probability character models (for likelihood calculations)"); if (modelTask == null) return sorry(commandRec, getName() + " couldn't start because no source of models of character evolution obtained."); modelTaskName = new MesquiteString(modelTask.getName()); likelihood = new MesquiteNumber(); seed = new MesquiteLong(1); seed.setValue(originalSeed); generator = new Random(originalSeed); //seed? MesquiteSubmenuSpec mss = addSubmenu(null, "Source of probability models", makeCommand("setModelSource", this), ProbModelSourceLike.class); mss.setCompatibilityCheck(new ModelCompatibilityInfo(ProbabilityCategCharModel.class, null)); mss.setSelected(modelTaskName); addMenuItem("Set Seed (Stoch. Char. Map.)...", makeCommand("setSeed", this)); addMenuItem("Max. Events per Branch (Stoch. Char. Map.)...", makeCommand("setMax", this)); return true; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/204ea1ab11f2a88e8ca7e817ebf9dc1c742dffcf/StochCharMapper.java/clean/trunk/Mesquite Project/Source/mesquite/stochchar/StochCharMapper/StochCharMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
787,
2278,
12,
780,
1775,
16,
1033,
2269,
16,
3498,
2115,
1296,
5650,
16,
1250,
366,
2921,
5911,
13,
288,
3196,
202,
76,
577,
1595,
41,
23377,
25521,
12,
3076,
5650,
16,
490,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
18,
1106,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
32,
588,
9226,
41,
23377,
25521,
1435,
597,
23243,
2174,
631,
2011,
31,
277,
27245,
288,
1082,
202,
921,
425,
33,
588,
41,
27520,
5018,
7675,
2956,
861,
12,
77,
1769,
1082,
202,
430,
261,
73,
1276,
490,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
15329,
9506,
202,
12443,
49,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
13,
73,
2934,
542,
4820,
2009,
2486,
2042,
1972,
12,
3767,
1769,
1082,
202,
759,
202,
12443,
49,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
13,
73,
2934,
542,
2375,
2309,
12,
49,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
18,
9185,
67,
8001,
7698,
916,
1769,
1082,
202,
97,
25083,
202,
97,
202,
202,
430,
261,
2284,
2174,
422,
446,
13,
1875,
202,
2284,
2174,
273,
261,
9152,
1488,
1830,
8804,
13,
76,
577,
41,
27520,
12,
3076,
5650,
16,
14610,
1488,
1830,
8804,
18,
1106,
16,
315,
1830,
434,
11331,
3351,
3679,
261,
1884,
18067,
20882,
2225,
1769,
3196,
202,
430,
261,
2284,
2174,
422,
446,
13,
1875,
202,
2463,
272,
21637,
12,
3076,
5650,
16,
1723,
1435,
397,
315,
17991,
1404,
787,
2724,
1158,
1084,
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,
787,
2278,
12,
780,
1775,
16,
1033,
2269,
16,
3498,
2115,
1296,
5650,
16,
1250,
366,
2921,
5911,
13,
288,
3196,
202,
76,
577,
1595,
41,
23377,
25521,
12,
3076,
5650,
16,
490,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
18,
1106,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
32,
588,
9226,
41,
23377,
25521,
1435,
597,
23243,
2174,
631,
2011,
31,
277,
27245,
288,
1082,
202,
921,
425,
33,
588,
41,
27520,
5018,
7675,
2956,
861,
12,
77,
1769,
1082,
202,
430,
261,
73,
1276,
490,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
15329,
9506,
202,
12443,
49,
3175,
8804,
979,
71,
510,
5017,
1290,
1488,
13,
73,
2
] |
||
miPopDVertic.setText("Distribute vertically\tALT-UP");
|
miPopDVertic.setText(Messages.getString("ChefGraph.PopupMenu.JobEntry.AllignDistribute.Vertically"));
|
private void setMenu(int x, int y) { final JobEntryCopy je = chef.jobMeta.getChefGraphEntry(x, y, iconsize); if (je != null) // We clicked on a Job Entry! { Menu mPop = new Menu((Control) this); MenuItem miNewHop = null; int sels = chef.jobMeta.nrSelected(); if (sels == 2) { miNewHop = new MenuItem(mPop, SWT.CASCADE); miNewHop.setText("New hop"); } final JobEntryInterface entry = je.getEntry(); switch(je.getType()) { case JobEntryInterface.TYPE_JOBENTRY_TRANSFORMATION: { MenuItem miLaunch = new MenuItem(mPop, SWT.CASCADE); miLaunch.setText("Launch Spoon"); miLaunch.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { launchSpoon((JobEntryTrans)entry); } } ); } break; case JobEntryInterface.TYPE_JOBENTRY_JOB: { MenuItem miLaunch = new MenuItem(mPop, SWT.CASCADE); miLaunch.setText("Launch Chef"); miLaunch.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { launchChef((JobEntryJob)entry); } } ); } break; default: break; } MenuItem miEditStep = new MenuItem(mPop, SWT.CASCADE); miEditStep.setText("Edit job entry"); MenuItem miEditDesc = new MenuItem(mPop, SWT.CASCADE); miEditDesc.setText("Edit job entry description"); new MenuItem(mPop, SWT.SEPARATOR); //---------------------------------------------------------- MenuItem miDupeStep = new MenuItem(mPop, SWT.CASCADE); miDupeStep.setText("Duplicate job entry"); MenuItem miCopy = new MenuItem(mPop, SWT.CASCADE); miCopy.setText("Copy selected entries to clipboard\tCTRL-C"); // Allign & Distribute options... new MenuItem(mPop, SWT.SEPARATOR); MenuItem miPopAD = new MenuItem(mPop, SWT.CASCADE); miPopAD.setText("Allign / Distribute"); Menu mPopAD = new Menu(miPopAD); MenuItem miPopALeft = new MenuItem(mPopAD, SWT.CASCADE); miPopALeft.setText("Allign left\tCTRL-LEFT"); MenuItem miPopARight = new MenuItem(mPopAD, SWT.CASCADE); miPopARight.setText("Allign right\tCTRL-RIGHT"); MenuItem miPopATop = new MenuItem(mPopAD, SWT.CASCADE); miPopATop.setText("Allign top\tCTRL-UP"); MenuItem miPopABottom = new MenuItem(mPopAD, SWT.CASCADE); miPopABottom.setText("Allign bottom\tCTRL-DOWN"); new MenuItem(mPopAD, SWT.SEPARATOR); MenuItem miPopDHoriz = new MenuItem(mPopAD, SWT.CASCADE); miPopDHoriz.setText("Distribute horizontally\tALT-RIGHT"); MenuItem miPopDVertic = new MenuItem(mPopAD, SWT.CASCADE); miPopDVertic.setText("Distribute vertically\tALT-UP"); new MenuItem(mPopAD, SWT.SEPARATOR); MenuItem miPopSSnap = new MenuItem(mPopAD, SWT.CASCADE); miPopSSnap.setText("Snap to grid (size " + Const.GRID_SIZE + ")\tALT-HOME"); miPopAD.setMenu(mPopAD); miPopALeft.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { allignleft(); } }); miPopARight.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { allignright(); } }); miPopATop.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { alligntop(); } }); miPopABottom.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { allignbottom(); } }); miPopDHoriz.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { distributehorizontal(); } }); miPopDVertic.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { distributevertical(); } }); miPopSSnap.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { snaptogrid(Const.GRID_SIZE); } }); if (sels <= 1) { miPopAD.setEnabled(false); } if (sels == 2) { miNewHop.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selected_entries = null; newHop(); } }); } miEditStep.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selected_entries = null; editEntry(je); } }); miEditDesc.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { String title = "Step description dialog"; String message = "Step description:"; EnterTextDialog dd = new EnterTextDialog(shell, title, message, je.getDescription()); String des = dd.open(); if (des != null) je.setDescription(des); } }); miDupeStep.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { chef.dupeChefGraphEntry(je.getName()); } }); miCopy.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { chef.copyJobEntries(chef.jobMeta.getSelectedEntries()); } }); if (chef.jobMeta.isEntryUsedInHops(je)) { new MenuItem(mPop, SWT.SEPARATOR); MenuItem miDetach = new MenuItem(mPop, SWT.CASCADE); miDetach.setText("Detach entry"); miDetach.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { detach(je); chef.jobMeta.unselectAll(); } }); } if (je.isDrawn() && !chef.jobMeta.isEntryUsedInHops(je)) { new MenuItem(mPop, SWT.SEPARATOR); MenuItem miHide = new MenuItem(mPop, SWT.CASCADE); miHide.setText("Hide entry"); miHide.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { je.setDrawn(false); // nr > 1: delete if (je.getNr() > 0) { int ind = chef.jobMeta.indexOfJobEntry(je); chef.jobMeta.removeJobEntry(ind); chef.addUndoDelete(new JobEntryCopy[] {je}, new int[] {ind}); } redraw(); } }); } setMenu(mPop); } else // Clear the menu { final JobHopMeta hi = findJobHop(x, y); if (hi != null) // We clicked on a HOP! { Menu mPop = new Menu((Control) this); // Evaluation... MenuItem miPopEval = new MenuItem(mPop, SWT.CASCADE); miPopEval.setText("Evaluation"); Menu mPopAD = new Menu(miPopEval); MenuItem miPopEvalUncond = new MenuItem(mPopAD, SWT.CASCADE | SWT.CHECK); miPopEvalUncond.setText("Unconditional"); miPopEvalUncond.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent arg0) { hi.setUnconditional(); chef.refreshGraph();}} ); MenuItem miPopEvalTrue = new MenuItem(mPopAD, SWT.CASCADE | SWT.CHECK); miPopEvalTrue.setText("Follow when result is true"); miPopEvalTrue.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent arg0) { hi.setConditional(); hi.setEvaluation(true); chef.refreshGraph(); }} ); MenuItem miPopEvalFalse = new MenuItem(mPopAD, SWT.CASCADE | SWT.CHECK); miPopEvalFalse.setText("Follow when result is false"); miPopEvalFalse.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent arg0) { hi.setConditional(); hi.setEvaluation(false); chef.refreshGraph(); }} ); if (hi.isUnconditional()) { miPopEvalUncond.setSelection(true); miPopEvalTrue.setSelection(false); miPopEvalFalse.setSelection(false); } else { if (hi.getEvaluation()) { miPopEvalUncond.setSelection(false); miPopEvalTrue.setSelection(true); miPopEvalFalse.setSelection(false); } else { miPopEvalUncond.setSelection(false); miPopEvalTrue.setSelection(false); miPopEvalFalse.setSelection(true); } } if (!hi.from_entry.evaluates()) { miPopEvalTrue.setEnabled(false); miPopEvalFalse.setEnabled(false); } if (!hi.from_entry.isUnconditional()) { miPopEvalUncond.setEnabled(false); } miPopEval.setMenu(mPopAD); MenuItem miFlipHop = new MenuItem(mPop, SWT.CASCADE); miFlipHop.setText("Flip direction"); MenuItem miDisHop = new MenuItem(mPop, SWT.CASCADE); if (hi.isEnabled()) miDisHop.setText("Disable hop"); else miDisHop.setText("Enable hop"); MenuItem miDelHop = new MenuItem(mPop, SWT.CASCADE); miDelHop.setText("Delete hop"); miFlipHop.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect = null; JobEntryCopy dummy = hi.from_entry; hi.from_entry = hi.to_entry; hi.to_entry = dummy; if (chef.jobMeta.hasLoop(hi.from_entry)) { chef.refreshGraph(); MessageBox mb = new MessageBox(shell, SWT.YES | SWT.ICON_WARNING); mb.setMessage("This hop flip causes a loop! Loops are not allowed."); mb.setText("Warning!"); mb.open(); dummy = hi.from_entry; hi.from_entry = hi.to_entry; hi.to_entry = dummy; chef.refreshGraph(); } else { hi.setChanged(); chef.refreshGraph(); chef.refreshTree(); chef.setShellText(); } } } ); miDisHop.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect = null; hi.setEnabled(!hi.isEnabled()); chef.refreshGraph(); chef.refreshTree(); } } ); miDelHop.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect = null; int idx = chef.jobMeta.indexOfJobHop(hi); chef.jobMeta.removeJobHop(idx); chef.refreshTree(); chef.refreshGraph(); } } ); setMenu(mPop); } else { // Clicked on the background: maybe we hit a note? final NotePadMeta ni = chef.jobMeta.getNote(x, y); if (ni!=null) { // Delete note // Edit note Menu mPop = new Menu((Control)this); MenuItem miNoteEdit = new MenuItem(mPop, SWT.CASCADE); miNoteEdit.setText("Edit note"); MenuItem miNoteDel = new MenuItem(mPop, SWT.CASCADE); miNoteDel .setText("Delete note"); miNoteEdit.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect=null; editNote(ni); } } ); miNoteDel.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect=null; int idx = chef.jobMeta.indexOfNote(ni); if (idx>=0) { chef.jobMeta.removeNote(idx); chef.addUndoDelete(new NotePadMeta[] {ni}, new int[] {idx} ); } redraw(); } } ); setMenu(mPop); } else { // New note Menu mPop = new Menu((Control)this); MenuItem miNoteNew = new MenuItem(mPop, SWT.CASCADE); miNoteNew.setText("New note"); miNoteNew.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selrect=null; String title = "Notes"; String message = "Note text:"; EnterTextDialog dd = new EnterTextDialog(shell, title, message, ""); String n = dd.open(); if (n!=null) { NotePadMeta npi = new NotePadMeta(n, lastclick.x, lastclick.y, Const.NOTE_MIN_SIZE, Const.NOTE_MIN_SIZE); chef.jobMeta.addNote(npi); chef.addUndoNew(new NotePadMeta[] {npi}, new int[] { chef.jobMeta.indexOfNote(npi)} ); redraw(); } } } ); setMenu(mPop); } } } }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/de88a78f183a1d633bde85cdc58e0fc4c0ee4e56/ChefGraph.java/clean/kettle/src/be/ibridge/kettle/chef/ChefGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
444,
4599,
12,
474,
619,
16,
509,
677,
13,
225,
202,
95,
202,
202,
6385,
3956,
1622,
2951,
30356,
273,
462,
10241,
18,
4688,
2781,
18,
588,
39,
580,
74,
4137,
1622,
12,
92,
16,
677,
16,
4126,
1467,
1769,
202,
202,
430,
261,
78,
73,
480,
446,
13,
368,
1660,
17688,
603,
279,
3956,
3841,
5,
202,
202,
95,
1082,
202,
4599,
312,
7049,
273,
394,
9809,
12443,
3367,
13,
333,
1769,
1082,
202,
12958,
12837,
1908,
27461,
273,
446,
31,
1082,
202,
474,
357,
87,
273,
462,
10241,
18,
4688,
2781,
18,
11611,
7416,
5621,
1082,
202,
430,
261,
1786,
87,
422,
576,
13,
1875,
202,
95,
9506,
202,
9197,
1908,
27461,
273,
394,
25085,
12,
81,
7049,
16,
348,
8588,
18,
3587,
25517,
1769,
9506,
202,
9197,
1908,
27461,
18,
542,
1528,
2932,
1908,
19055,
8863,
1082,
202,
97,
1082,
202,
6385,
3956,
1622,
1358,
1241,
273,
30356,
18,
588,
1622,
5621,
1082,
202,
9610,
12,
78,
73,
18,
588,
559,
10756,
1082,
202,
95,
1082,
202,
3593,
3956,
1622,
1358,
18,
2399,
67,
18321,
19083,
67,
16596,
23805,
30,
9506,
202,
95,
6862,
202,
12958,
12837,
9569,
273,
394,
25085,
12,
81,
7049,
16,
348,
8588,
18,
3587,
25517,
1769,
6862,
202,
9197,
9569,
18,
542,
1528,
2932,
9569,
348,
1631,
265,
8863,
6862,
6862,
9506,
202,
9197,
9569,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
9944,
202,
95,
6862,
1082,
202,
482,
918,
3604,
7416,
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,
918,
444,
4599,
12,
474,
619,
16,
509,
677,
13,
225,
202,
95,
202,
202,
6385,
3956,
1622,
2951,
30356,
273,
462,
10241,
18,
4688,
2781,
18,
588,
39,
580,
74,
4137,
1622,
12,
92,
16,
677,
16,
4126,
1467,
1769,
202,
202,
430,
261,
78,
73,
480,
446,
13,
368,
1660,
17688,
603,
279,
3956,
3841,
5,
202,
202,
95,
1082,
202,
4599,
312,
7049,
273,
394,
9809,
12443,
3367,
13,
333,
1769,
1082,
202,
12958,
12837,
1908,
27461,
273,
446,
31,
1082,
202,
474,
357,
87,
273,
462,
10241,
18,
4688,
2781,
18,
11611,
7416,
5621,
1082,
202,
430,
261,
1786,
87,
422,
576,
13,
1875,
202,
95,
9506,
202,
9197,
1908,
27461,
273,
2
] |
int count = 0; if (files != null) { if (this.monitor != null) { this.monitor.beginTask("FindBugs", files.size()); } String findBugsHome = FindbugsPlugin.getFindBugsEnginePluginLocation(); if (DEBUG) { System.out.println("Looking for detecors in: " + findBugsHome); } System.setProperty("findbugs.home", findBugsHome); BugReporter bugReporter = new Reporter(this.project, this.monitor); bugReporter.setPriorityThreshold(Detector.LOW_PRIORITY); edu.umd.cs.findbugs.Project findBugsProject = new edu.umd.cs.findbugs.Project(); FindBugs findBugs = new FindBugs(bugReporter, findBugsProject); Iterator iter = files.iterator(); while (iter.hasNext()) { IResource res = (IResource) iter.next(); if (isJavaArtefact(res)) { res.deleteMarkers( FindBugsMarker.NAME, true, IResource.DEPTH_INFINITE); } if (isClassFile(res)) { String fileName = res.getLocation().toOSString(); res.refreshLocal(IResource.DEPTH_INFINITE, null); if (DEBUG) { System.out.println( "Resource: " + fileName + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE)); } findBugsProject.addJar(fileName); } } String[] classPathEntries = createClassPathEntries(); for (int i = 0; i < classPathEntries.length; i++) { findBugsProject.addAuxClasspathEntry(classPathEntries[i]); } if (selectedDetectorFactories != null) { Iterator iterator = DetectorFactoryCollection.instance().factoryIterator(); while (iterator.hasNext()) { DetectorFactory factory = (DetectorFactory) iterator.next(); factory.setEnabled(selectedDetectorFactories.contains(factory)); } } try { findBugs.execute(); } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } } else {
|
if (files == null) {
|
public void work(Collection files) throws CoreException { int count = 0; if (files != null) { if (this.monitor != null) { this.monitor.beginTask("FindBugs", files.size()); } String findBugsHome = FindbugsPlugin.getFindBugsEnginePluginLocation(); if (DEBUG) { System.out.println("Looking for detecors in: " + findBugsHome); //$NON-NLS-1$ } System.setProperty("findbugs.home", findBugsHome); //$NON-NLS-1$ BugReporter bugReporter = new Reporter(this.project, this.monitor); bugReporter.setPriorityThreshold(Detector.LOW_PRIORITY); edu.umd.cs.findbugs.Project findBugsProject = new edu.umd.cs.findbugs.Project(); FindBugs findBugs = new FindBugs(bugReporter, findBugsProject); Iterator iter = files.iterator(); while (iter.hasNext()) { // get the resource IResource res = (IResource) iter.next(); if (isJavaArtefact(res)) { res.deleteMarkers( FindBugsMarker.NAME, true, IResource.DEPTH_INFINITE); } if (isClassFile(res)) { // add this file to the work list: String fileName = res.getLocation().toOSString(); res.refreshLocal(IResource.DEPTH_INFINITE, null); if (DEBUG) { System.out.println( "Resource: " + fileName + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE)); } findBugsProject.addJar(fileName); } } String[] classPathEntries = createClassPathEntries(); // add to findbugs classpath for (int i = 0; i < classPathEntries.length; i++) { findBugsProject.addAuxClasspathEntry(classPathEntries[i]); } // configure detectors. // XXX currently detector factories are shared between different projects!!! // cause detector factories list is a singleton!!! // if multiple workers are working (Eclipse 3.0 allows background build), // there is a big problem!!! if (selectedDetectorFactories != null) { Iterator iterator = DetectorFactoryCollection.instance().factoryIterator(); while (iterator.hasNext()) { DetectorFactory factory = (DetectorFactory) iterator.next(); factory.setEnabled(selectedDetectorFactories.contains(factory)); } } try { findBugs.execute(); } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } // Iterator iter = files.iterator(); // while (iter.hasNext()) { // // get the resource // IResource res = (IResource) iter.next(); // // // advance progress monitor // if (monitor != null && count % MONITOR_INTERVAL == 0) { // monitor.worked(MONITOR_INTERVAL); // monitor.subTask("Performing bug check on: " + res.getName()); // if (monitor.isCanceled()) // break; // } // // // visit resource // res.accept(new FindBugsVisitor()); // count++; // } } else { if (DEBUG) { System.out.println("No files to build"); //$NON-NLS-1$ } } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/dde32f9a591fd4679f130110dca90f2c9e80b219/FindBugsWorker.java/clean/findbugs/src/eclipsePlugin/de.tobject.findbugs/src/de/tobject/findbugs/builder/FindBugsWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1440,
12,
2532,
1390,
13,
1216,
30015,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
430,
261,
2354,
480,
446,
13,
288,
1082,
202,
430,
261,
2211,
18,
10259,
480,
446,
13,
288,
9506,
202,
2211,
18,
10259,
18,
10086,
2174,
2932,
3125,
31559,
3113,
1390,
18,
1467,
10663,
1082,
202,
97,
1082,
202,
780,
1104,
31559,
8684,
273,
4163,
19381,
3773,
18,
588,
3125,
31559,
4410,
3773,
2735,
5621,
1082,
202,
430,
261,
9394,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
364,
3023,
557,
1383,
316,
30,
315,
397,
1104,
31559,
8684,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
3163,
18,
542,
1396,
2932,
4720,
19381,
18,
8712,
3113,
1104,
31559,
8684,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
19865,
13289,
7934,
13289,
273,
394,
25585,
12,
2211,
18,
4406,
16,
333,
18,
10259,
1769,
1082,
202,
925,
13289,
18,
542,
8183,
7614,
12,
12594,
18,
4130,
67,
19804,
1769,
1082,
202,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
4109,
1104,
31559,
4109,
273,
9506,
202,
2704,
1675,
89,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
4109,
5621,
1082,
202,
3125,
31559,
1104,
31559,
273,
394,
4163,
31559,
12,
925,
13289,
16,
1104,
31559,
4109,
1769,
1082,
202,
3198,
1400,
273,
1390,
18,
9838,
5621,
1082,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
759,
336,
326,
1058,
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,
1440,
12,
2532,
1390,
13,
1216,
30015,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
430,
261,
2354,
480,
446,
13,
288,
1082,
202,
430,
261,
2211,
18,
10259,
480,
446,
13,
288,
9506,
202,
2211,
18,
10259,
18,
10086,
2174,
2932,
3125,
31559,
3113,
1390,
18,
1467,
10663,
1082,
202,
97,
1082,
202,
780,
1104,
31559,
8684,
273,
4163,
19381,
3773,
18,
588,
3125,
31559,
4410,
3773,
2735,
5621,
1082,
202,
430,
261,
9394,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
364,
3023,
557,
1383,
316,
30,
315,
397,
1104,
31559,
8684,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
3163,
18,
2
] |
FileUtil.fullyDelete(workDir);
|
FileUtil.fullyDelete(workDir, nutchConf);
|
public static void main(String[] args) throws Exception { String usage = "IndexMerger [-workingdir <workingdir>] outputIndex indexesDir..."; if (args.length < 2) { System.err.println("Usage: " + usage); return; } // // Parse args, read all index directories to be processed // NutchFileSystem nfs = NutchFileSystem.get(); File workDir = new File(new File("").getCanonicalPath()); List indexDirs = new ArrayList(); int i = 0; if ("-workingdir".equals(args[i])) { i++; workDir = new File(new File(args[i++]).getCanonicalPath()); } workDir = new File(workDir, "indexmerger-workingdir"); File outputIndex = new File(args[i++]); for (; i < args.length; i++) { indexDirs.addAll(Arrays.asList(nfs.listFiles(new File(args[i])))); } // // Merge the indices // LOG.info("merging indexes to: " + outputIndex); File[] indexFiles = (File[])indexDirs.toArray(new File[indexDirs.size()]); if (workDir.exists()) { FileUtil.fullyDelete(workDir); } workDir.mkdirs(); IndexMerger merger = new IndexMerger(nfs,indexFiles,outputIndex,workDir); merger.merge(); LOG.info("done merging"); FileUtil.fullyDelete(workDir); }
|
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/IndexMerger.java/clean/src/java/org/apache/nutch/indexer/IndexMerger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
514,
4084,
273,
315,
1016,
8478,
693,
23059,
20478,
1214,
411,
20478,
1214,
34,
65,
876,
1016,
5596,
1621,
7070,
31,
565,
309,
261,
1968,
18,
2469,
411,
576,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
4084,
1769,
1377,
327,
31,
565,
289,
565,
368,
565,
368,
2884,
833,
16,
855,
777,
770,
6402,
358,
506,
5204,
565,
368,
565,
423,
322,
343,
11785,
290,
2556,
273,
423,
322,
343,
11785,
18,
588,
5621,
565,
1387,
1440,
1621,
273,
394,
1387,
12,
2704,
1387,
2932,
20387,
588,
15512,
743,
10663,
565,
987,
770,
9872,
273,
394,
2407,
5621,
565,
509,
277,
273,
374,
31,
565,
309,
7566,
17,
20478,
1214,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
1377,
277,
9904,
31,
1377,
1440,
1621,
273,
394,
1387,
12,
2704,
1387,
12,
1968,
63,
77,
9904,
65,
2934,
588,
15512,
743,
10663,
565,
289,
565,
1440,
1621,
273,
394,
1387,
12,
1252,
1621,
16,
315,
1615,
6592,
693,
17,
20478,
1214,
8863,
565,
1387,
876,
1016,
273,
394,
1387,
12,
1968,
63,
77,
9904,
19226,
565,
364,
261,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
1377,
770,
9872,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
82,
2556,
18,
1098,
2697,
12,
2704,
1387,
12,
1968,
63,
77,
22643,
10019,
565,
289,
565,
368,
565,
368,
8964,
326,
4295,
565,
368,
565,
2018,
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,
1216,
1185,
288,
565,
514,
4084,
273,
315,
1016,
8478,
693,
23059,
20478,
1214,
411,
20478,
1214,
34,
65,
876,
1016,
5596,
1621,
7070,
31,
565,
309,
261,
1968,
18,
2469,
411,
576,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
4084,
1769,
1377,
327,
31,
565,
289,
565,
368,
565,
368,
2884,
833,
16,
855,
777,
770,
6402,
358,
506,
5204,
565,
368,
565,
423,
322,
343,
11785,
290,
2556,
273,
423,
322,
343,
11785,
18,
588,
5621,
565,
1387,
1440,
1621,
273,
394,
1387,
12,
2704,
1387,
2932,
20387,
588,
15512,
743,
10663,
565,
987,
770,
9872,
273,
394,
2407,
5621,
565,
2
] |
jjStopStringLiteralDfa_2(3, active0);
|
jjStopStringLiteralDfa_2(3, active0, 0L);
|
private final int jjMoveStringLiteralDfa4_2(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_2(2, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_2(3, active0); return 4; } switch(curChar) { case 101: if ((active0 & 0x20000000L) != 0L) return jjStartNfaWithStates_2(4, 29, 5); break; default : break; } return jjStartNfa_2(3, active0);}
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/8e9e155e88430402b0d51d6b344267b73292ca2c/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
24,
67,
22,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
22,
12,
22,
16,
1592,
20,
1769,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
22,
12,
23,
16,
2695,
20,
16,
374,
48,
1769,
1377,
327,
1059,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13822,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
22,
17877,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
1685,
50,
507,
1190,
7629,
67,
22,
12,
24,
16,
12899,
16,
1381,
1769,
540,
898,
31,
1377,
805,
294,
540,
898,
31,
282,
289,
282,
327,
10684,
1685,
50,
507,
67,
22,
12,
23,
16,
2695,
20,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
24,
67,
22,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
22,
12,
22,
16,
1592,
20,
1769,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
22,
12,
23,
16,
2695,
20,
16,
374,
48,
1769,
1377,
327,
1059,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13822,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
22,
17877,
48,
2
] |
DataTools.readDouble(in, little));
|
in.readDouble());
|
protected void parseSubBlocks(long data, String suffix, boolean little) throws IOException, FormatException { if (data == 0) return; in.seek((int) data); long size = DataTools.read4UnsignedBytes(in, little); long numSubBlocks = DataTools.read4UnsignedBytes(in, little); put("NumSubBlocks-" + suffix, numSubBlocks); long numChannels = DataTools.read4UnsignedBytes(in, little); put("NumChannels-" + suffix, numChannels); data = DataTools.read4UnsignedBytes(in, little); put("LutType-" + suffix, data); data = DataTools.read4UnsignedBytes(in, little); put("Advanced-" + suffix, data); data = DataTools.read4UnsignedBytes(in, little); put("CurrentChannel-" + suffix, data); in.skipBytes(36); for (int i=0; i<numSubBlocks; i++) { data = DataTools.read4UnsignedBytes(in, little); put("Type" + i + "-" + suffix, data); put("Size" + i + "-" + suffix, DataTools.read4UnsignedBytes(in, little)); switch ((int) data) { case 1: for (int j=0; j<numChannels; j++) { put("GammaChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 2: for (int j=0; j<numChannels; j++) { put("BrightnessChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 3: for (int j=0; j<numChannels; j++) { put("ContrastChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); } break; case 4: for (int j=0; j<numChannels; j++) { put("RampStartXChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampStartYChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampEndXChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); put("RampEndYChannel" + j + "-" + i + "-" + suffix, DataTools.readDouble(in, little)); j += 4; } break; case 5: // the specs are unclear as to how // this subblock should be read, so I'm // skipping it for the present break; case 6: // also skipping this block for // the moment break; } } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/2df09d33bfdc966378aae0cc09cb503afb983bc2/ZeissLSMReader.java/buggy/loci/formats/in/ZeissLSMReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1676,
6450,
12,
5748,
501,
16,
514,
3758,
16,
1250,
12720,
13,
565,
1216,
1860,
16,
4077,
503,
225,
288,
565,
309,
261,
892,
422,
374,
13,
327,
31,
565,
316,
18,
16508,
12443,
474,
13,
501,
1769,
565,
1525,
963,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1525,
818,
1676,
6450,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
1676,
6450,
10951,
397,
3758,
16,
818,
1676,
6450,
1769,
565,
1525,
818,
10585,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
10585,
10951,
397,
3758,
16,
818,
10585,
1769,
565,
501,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
48,
322,
559,
10951,
397,
3758,
16,
501,
1769,
565,
501,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
23618,
10951,
397,
3758,
16,
501,
1769,
565,
501,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
3935,
2909,
10951,
397,
3758,
16,
501,
1769,
565,
316,
18,
7457,
2160,
12,
5718,
1769,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
1676,
6450,
31,
277,
27245,
288,
1377,
501,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
1377,
1378,
2932,
559,
6,
397,
277,
397,
7514,
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,
4750,
918,
1109,
1676,
6450,
12,
5748,
501,
16,
514,
3758,
16,
1250,
12720,
13,
565,
1216,
1860,
16,
4077,
503,
225,
288,
565,
309,
261,
892,
422,
374,
13,
327,
31,
565,
316,
18,
16508,
12443,
474,
13,
501,
1769,
565,
1525,
963,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1525,
818,
1676,
6450,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
1676,
6450,
10951,
397,
3758,
16,
818,
1676,
6450,
1769,
565,
1525,
818,
10585,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
12720,
1769,
565,
1378,
2932,
2578,
10585,
10951,
397,
3758,
16,
818,
10585,
1769,
2
] |
break _loop158;
|
break _loop157;
|
public final void interfaceExtends() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST interfaceExtends_AST = null; Token e = null; AST e_AST = null; { switch ( LA(1)) { case LITERAL_extends: { e = LT(1); e_AST = astFactory.create(e); match(LITERAL_extends); nls(); classOrInterfaceType(false); astFactory.addASTChild(currentAST, returnAST); { _loop158: do { if ((LA(1)==COMMA)) { match(COMMA); nls(); classOrInterfaceType(false); astFactory.addASTChild(currentAST, returnAST); } else { break _loop158; } } while (true); } nls(); break; } case LCURLY: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { interfaceExtends_AST = (AST)currentAST.root; interfaceExtends_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(EXTENDS_CLAUSE,"EXTENDS_CLAUSE")).add(interfaceExtends_AST)); currentAST.root = interfaceExtends_AST; currentAST.child = interfaceExtends_AST!=null &&interfaceExtends_AST.getFirstChild()!=null ? interfaceExtends_AST.getFirstChild() : interfaceExtends_AST; currentAST.advanceChildToEnd(); } interfaceExtends_AST = (AST)currentAST.root; returnAST = interfaceExtends_AST; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1560,
19581,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
1560,
19581,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
425,
273,
446,
31,
202,
202,
9053,
425,
67,
9053,
273,
446,
31,
9506,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
13020,
30,
202,
202,
95,
1082,
202,
73,
273,
11807,
12,
21,
1769,
1082,
202,
73,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
73,
1769,
1082,
202,
1916,
12,
23225,
67,
13020,
1769,
1082,
202,
82,
3251,
5621,
1082,
202,
1106,
1162,
1358,
559,
12,
5743,
1769,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
95,
1082,
202,
67,
6498,
25984,
30,
1082,
202,
2896,
288,
9506,
202,
430,
14015,
2534,
12,
21,
13,
631,
4208,
5535,
3719,
288,
6862,
202,
1916,
12,
4208,
5535,
1769,
6862,
202,
82,
3251,
5621,
6862,
202,
1106,
1162,
1358,
559,
12,
5743,
1769,
6862,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
8820,
389,
6498,
25984,
31,
9506,
202,
97,
6862,
1082,
202,
97,
1323,
261,
3767,
1769,
1082,
202,
97,
1082,
202,
82,
3251,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1560,
19581,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
1560,
19581,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
425,
273,
446,
31,
202,
202,
9053,
425,
67,
9053,
273,
446,
31,
9506,
202,
95,
202,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
13020,
30,
202,
202,
95,
1082,
202,
73,
273,
11807,
12,
21,
1769,
1082,
202,
73,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
73,
1769,
1082,
202,
1916,
12,
23225,
67,
13020,
1769,
1082,
202,
82,
3251,
5621,
1082,
202,
2
] |
final Object value = ((ObjectVariableContextEntry) context).right; final Object[] array = (Object[]) context.declaration.getExtractor().getValue( left );
|
final Object value = context.declaration.getExtractor().getValue( left ); final Object[] array = (Object[]) ((ObjectVariableContextEntry) context).right;
|
public boolean evaluateCachedRight(final VariableContextEntry context, final Object left) { final Object value = ((ObjectVariableContextEntry) context).right; final Object[] array = (Object[]) context.declaration.getExtractor().getValue( left ); if ( Arrays.binarySearch( array, value ) == -1 ) { return false; } return true; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/0d8f348e034d124d5cbf23fa9be92822c1e67dbd/ArrayFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/ArrayFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
5956,
9839,
4726,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
6647,
727,
1033,
2002,
13,
288,
5411,
727,
1033,
460,
273,
14015,
921,
3092,
1042,
1622,
13,
819,
2934,
4083,
31,
5411,
727,
1033,
8526,
526,
273,
261,
921,
63,
5717,
819,
18,
22448,
18,
588,
10958,
7675,
24805,
12,
2002,
11272,
5411,
309,
261,
5647,
18,
8578,
2979,
12,
526,
16,
4766,
1377,
460,
262,
422,
300,
21,
262,
288,
7734,
327,
629,
31,
5411,
289,
5411,
327,
638,
31,
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,
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,
540,
1071,
1250,
5956,
9839,
4726,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
6647,
727,
1033,
2002,
13,
288,
5411,
727,
1033,
460,
273,
14015,
921,
3092,
1042,
1622,
13,
819,
2934,
4083,
31,
5411,
727,
1033,
8526,
526,
273,
261,
921,
63,
5717,
819,
18,
22448,
18,
588,
10958,
7675,
24805,
12,
2002,
11272,
5411,
309,
261,
5647,
18,
8578,
2979,
12,
526,
16,
4766,
1377,
460,
262,
422,
300,
21,
262,
288,
7734,
327,
629,
31,
5411,
289,
5411,
327,
638,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( previewPainter == null ) { previewPainter = new ChartPreviewPainter( ( (ChartWizardContext) getContext( ) ).getProcessor( ) ); previewCanvas.addPaintListener( previewPainter.getPaintListener( ) ); previewPainter.setPreview( previewCanvas ); } previewPainter.renderModel( getCurrentModelState( ) );
|
previewPainter = new ChartPreviewPainter( ( (ChartWizardContext) getContext( ) ).getProcessor( ), container ); previewCanvas.addPaintListener( previewPainter ); previewCanvas.addControlListener( previewPainter ); previewPainter.setPreview( previewCanvas );
|
private void createPreviewPainter( ) { if ( previewPainter == null ) { previewPainter = new ChartPreviewPainter( ( (ChartWizardContext) getContext( ) ).getProcessor( ) ); previewCanvas.addPaintListener( previewPainter.getPaintListener( ) ); previewPainter.setPreview( previewCanvas ); } previewPainter.renderModel( getCurrentModelState( ) ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a9320be9ea7b1e0ded35d1f9f455bafd282468e8/TaskFormatChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskFormatChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
11124,
15775,
12,
262,
202,
95,
202,
202,
430,
261,
10143,
15775,
422,
446,
262,
202,
202,
95,
1082,
202,
12102,
15775,
273,
394,
14804,
11124,
15775,
12,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
5164,
12,
262,
11272,
1082,
202,
12102,
12971,
18,
1289,
12699,
2223,
12,
10143,
15775,
18,
588,
12699,
2223,
12,
262,
11272,
1082,
202,
12102,
15775,
18,
542,
11124,
12,
10143,
12971,
11272,
202,
202,
97,
202,
202,
12102,
15775,
18,
5902,
1488,
12,
5175,
1488,
1119,
12,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
1152,
918,
752,
11124,
15775,
12,
262,
202,
95,
202,
202,
430,
261,
10143,
15775,
422,
446,
262,
202,
202,
95,
1082,
202,
12102,
15775,
273,
394,
14804,
11124,
15775,
12,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
5164,
12,
262,
11272,
1082,
202,
12102,
12971,
18,
1289,
12699,
2223,
12,
10143,
15775,
18,
588,
12699,
2223,
12,
262,
11272,
1082,
202,
12102,
15775,
18,
542,
11124,
12,
10143,
12971,
11272,
202,
202,
97,
202,
202,
12102,
15775,
18,
5902,
1488,
12,
5175,
1488,
1119,
12,
262,
11272,
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
] |
if(this.publicKey != null) st.setString(1, this.publicKey);
|
if(publicKey != null) st.setString(1, publicKey);
|
public boolean isInTheDatabase() { if (this.parent == null) { Logger.notice(this, "isInTheDatabase(): No parent !"); return false; } try { PreparedStatement st; st = this.db.getConnection().prepareStatement("SELECT publicKey from files WHERE publicKey = ? AND indexParent = ?"); if(this.publicKey != null) st.setString(1, this.publicKey); else st.setString(1, this.fileName); st.setInt(2, this.getParent().getId()); if(st.execute()) { ResultSet result = st.getResultSet(); if (result != null && result.next()) { return true; } } } catch(SQLException e) { } return false; }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/File.java/buggy/src/thaw/plugins/index/File.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
8048,
1986,
4254,
1435,
288,
202,
202,
430,
261,
2211,
18,
2938,
422,
446,
13,
288,
1082,
202,
3328,
18,
20392,
12,
2211,
16,
315,
291,
382,
1986,
4254,
13332,
2631,
982,
401,
8863,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
29325,
384,
31,
1082,
202,
334,
273,
333,
18,
1966,
18,
588,
1952,
7675,
9366,
3406,
2932,
4803,
12085,
628,
1390,
4852,
12085,
273,
692,
4116,
770,
3054,
273,
692,
8863,
1082,
202,
430,
12,
2211,
18,
482,
653,
480,
446,
13,
9506,
202,
334,
18,
542,
780,
12,
21,
16,
333,
18,
482,
653,
1769,
1082,
202,
12107,
9506,
202,
334,
18,
542,
780,
12,
21,
16,
333,
18,
17812,
1769,
1082,
202,
334,
18,
542,
1702,
12,
22,
16,
333,
18,
588,
3054,
7675,
26321,
10663,
1082,
202,
430,
12,
334,
18,
8837,
10756,
288,
9506,
202,
13198,
563,
273,
384,
18,
588,
13198,
5621,
9506,
202,
430,
261,
2088,
480,
446,
597,
563,
18,
4285,
10756,
288,
6862,
202,
2463,
638,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
1044,
12,
23116,
425,
13,
288,
202,
202,
97,
202,
202,
2463,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
8048,
1986,
4254,
1435,
288,
202,
202,
430,
261,
2211,
18,
2938,
422,
446,
13,
288,
1082,
202,
3328,
18,
20392,
12,
2211,
16,
315,
291,
382,
1986,
4254,
13332,
2631,
982,
401,
8863,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
29325,
384,
31,
1082,
202,
334,
273,
333,
18,
1966,
18,
588,
1952,
7675,
9366,
3406,
2932,
4803,
12085,
628,
1390,
4852,
12085,
273,
692,
4116,
770,
3054,
273,
692,
8863,
1082,
202,
430,
12,
2211,
18,
482,
653,
480,
446,
13,
9506,
202,
334,
18,
542,
780,
12,
21,
16,
333,
18,
482,
653,
1769,
1082,
202,
12107,
9506,
202,
334,
18,
542,
780,
12,
21,
2
] |
private Icon getIcon(Object item) { if (item == null) { return null; }
|
private static Icon getIcon(Object item) {
|
private Icon getIcon(Object item) { if (item == null) { return null; } if (item instanceof ThreadDescriptorImpl) { ThreadDescriptorImpl descriptor = (ThreadDescriptorImpl)item; return descriptor.getIcon(); } if (item instanceof StackFrameDescriptorImpl) { return ((StackFrameDescriptorImpl)item).getIcon(); } return null; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/eee604fdf99765a660276b3ebfa6a879c40c8e11/DebuggerComboBoxRenderer.java/buggy/debugger/impl/com/intellij/debugger/ui/impl/DebuggerComboBoxRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
16011,
21724,
12,
921,
761,
13,
288,
565,
309,
261,
1726,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
309,
261,
1726,
1276,
4884,
3187,
2828,
13,
288,
1377,
4884,
3187,
2828,
4950,
273,
261,
3830,
3187,
2828,
13,
1726,
31,
1377,
327,
4950,
18,
588,
5554,
5621,
565,
289,
565,
309,
261,
1726,
1276,
7283,
3219,
3187,
2828,
13,
288,
1377,
327,
14015,
2624,
3219,
3187,
2828,
13,
1726,
2934,
588,
5554,
5621,
565,
289,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
3238,
16011,
21724,
12,
921,
761,
13,
288,
565,
309,
261,
1726,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
309,
261,
1726,
1276,
4884,
3187,
2828,
13,
288,
1377,
4884,
3187,
2828,
4950,
273,
261,
3830,
3187,
2828,
13,
1726,
31,
1377,
327,
4950,
18,
588,
5554,
5621,
565,
289,
565,
309,
261,
1726,
1276,
7283,
3219,
3187,
2828,
13,
288,
1377,
327,
14015,
2624,
3219,
3187,
2828,
13,
1726,
2934,
588,
5554,
5621,
565,
289,
565,
327,
446,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false);
|
while (itr.hasNext()) { closePerspective((Perspective) itr.next(), false, false); }
|
public void closeAllPerspectives(boolean saveEditors, boolean closePage) { if (perspList.isEmpty()) return; // Always unzoom if (isZoomed()) zoomOut(); // Close all editors if (!closeAllEditors(saveEditors)) return; // Deactivate the active perspective and part setPerspective((Perspective) null); // Close each perspective in turn PerspectiveList oldList = perspList; perspList = new PerspectiveList(); Iterator itr = oldList.iterator(); while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false); if (closePage) { close(); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1595,
14781,
1181,
3606,
12,
6494,
1923,
4666,
1383,
16,
1250,
1746,
1964,
13,
288,
3639,
309,
261,
10422,
84,
682,
18,
291,
1921,
10756,
5411,
327,
31,
3639,
368,
14178,
640,
14932,
3639,
309,
261,
291,
11497,
329,
10756,
5411,
7182,
1182,
5621,
3639,
368,
3527,
777,
29431,
3639,
309,
16051,
4412,
1595,
4666,
1383,
12,
5688,
4666,
1383,
3719,
5411,
327,
31,
3639,
368,
1505,
10014,
326,
2695,
26651,
471,
1087,
3639,
444,
14781,
16772,
12443,
14781,
16772,
13,
446,
1769,
3639,
368,
3527,
1517,
26651,
316,
7005,
3639,
453,
414,
16772,
682,
1592,
682,
273,
13508,
84,
682,
31,
3639,
13508,
84,
682,
273,
394,
453,
414,
16772,
682,
5621,
3639,
4498,
11176,
273,
1592,
682,
18,
9838,
5621,
3639,
1323,
261,
305,
86,
18,
5332,
2134,
10756,
5411,
1746,
14781,
16772,
12443,
14781,
16772,
13,
11176,
18,
4285,
9334,
629,
16,
629,
1769,
3639,
309,
261,
4412,
1964,
13,
288,
5411,
1746,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1746,
1595,
14781,
1181,
3606,
12,
6494,
1923,
4666,
1383,
16,
1250,
1746,
1964,
13,
288,
3639,
309,
261,
10422,
84,
682,
18,
291,
1921,
10756,
5411,
327,
31,
3639,
368,
14178,
640,
14932,
3639,
309,
261,
291,
11497,
329,
10756,
5411,
7182,
1182,
5621,
3639,
368,
3527,
777,
29431,
3639,
309,
16051,
4412,
1595,
4666,
1383,
12,
5688,
4666,
1383,
3719,
5411,
327,
31,
3639,
368,
1505,
10014,
326,
2695,
26651,
471,
1087,
3639,
444,
14781,
16772,
12443,
14781,
16772,
13,
446,
1769,
3639,
368,
3527,
1517,
26651,
316,
7005,
3639,
453,
414,
16772,
682,
1592,
682,
273,
13508,
84,
682,
31,
3639,
13508,
84,
682,
273,
394,
453,
414,
16772,
682,
5621,
3639,
4498,
2
] |
primaryViewComboBoxActionPerformed(primaryViewComboBox .getSelectedIndex());
|
delSpellButton();
|
public void actionPerformed(ActionEvent evt) { primaryViewComboBoxActionPerformed(primaryViewComboBox .getSelectedIndex()); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/8ce24dae71e590a1255ba1449adf8b06f5a2b1b9/InfoPreparedSpells.java/clean/code/src/java/pcgen/gui/tabs/spells/InfoPreparedSpells.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
9506,
202,
8258,
1767,
22199,
19449,
12,
8258,
1767,
22199,
6862,
202,
18,
588,
7416,
1016,
10663,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
9506,
202,
8258,
1767,
22199,
19449,
12,
8258,
1767,
22199,
6862,
202,
18,
588,
7416,
1016,
10663,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ctx.maxInsertRetries = maxRetries; block = new InsertBlock(data, new ClientMetadata(mimeType), uri); String genURI = fs.get("GeneratedURI"); if(genURI != null) generatedURI = new FreenetURI(genURI); if(finished && (!succeeded)) putFailedMessage = new PutFailedMessage(fs.subset("PutFailed"), false); inserter = new ClientPutter(this, data, uri, new ClientMetadata(mimeType), ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, false, client); if(!finished) start();
|
ctx.maxInsertRetries = message.maxRetries; uri = message.uri; String mimeType = message.contentType; clientToken = message.clientToken; block = new InsertBlock(message.bucket, new ClientMetadata(mimeType), uri); if(persistenceType != PERSIST_CONNECTION) client.register(this); inserter = new ClientPutter(this, message.bucket, uri, new ClientMetadata(mimeType), ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, false, client); if(persistenceType != PERSIST_CONNECTION && handler != null) sendPendingMessages(handler.outputHandler, true);
|
public ClientPut(SimpleFieldSet fs, FCPClient client2) throws PersistenceParseException, IOException { uri = new FreenetURI(fs.get("URI")); identifier = fs.get("Identifier"); verbosity = Integer.parseInt(fs.get("Verbosity")); priorityClass = Short.parseShort(fs.get("PriorityClass")); persistenceType = ClientRequest.parsePersistence(fs.get("Persistence")); if(persistenceType == ClientRequest.PERSIST_CONNECTION || persistenceType == ClientRequest.PERSIST_REBOOT) throw new IllegalArgumentException("Reading in persistent ClientPut, but persistence type = "+ClientRequest.persistenceTypeString(persistenceType)+" so shouldn't have been saved in the first place"); this.client = client2; origHandler = null; String mimeType = fs.get("Metadata.ContentType"); getCHKOnly = Fields.stringToBool(fs.get("CHKOnly"), false); boolean dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); int maxRetries = Integer.parseInt(fs.get("MaxRetries")); clientToken = fs.get("ClientToken"); fromDisk = Fields.stringToBool(fs.get("FromDisk"), false); finished = Fields.stringToBool(fs.get("Finished"), false); //finished = false; succeeded = Fields.stringToBool(fs.get("Succeeded"), false); Bucket data; if(fromDisk) { origFilename = new File(fs.get("Filename")); data = new FileBucket(origFilename, true, false, false, false); } else { origFilename = null; if(!succeeded) { byte[] key = HexUtil.hexToBytes(fs.get("TempBucket.DecryptKey")); String fnam = fs.get("TempBucket.Filename"); long sz = Long.parseLong(fs.get("TempBucket.Size")); data = client.server.node.persistentTempBucketFactory.registerEncryptedBucket(fnam, key, sz); if(data.size() != sz) throw new PersistenceParseException("Size of bucket is wrong: "+data.size()+" should be "+sz); } else data = null; } ctx = new InserterContext(client.defaultInsertContext, new SimpleEventProducer()); ctx.dontCompress = dontCompress; ctx.eventProducer.addEventListener(this); ctx.maxInsertRetries = maxRetries; block = new InsertBlock(data, new ClientMetadata(mimeType), uri); String genURI = fs.get("GeneratedURI"); if(genURI != null) generatedURI = new FreenetURI(genURI); if(finished && (!succeeded)) putFailedMessage = new PutFailedMessage(fs.subset("PutFailed"), false); inserter = new ClientPutter(this, data, uri, new ClientMetadata(mimeType), ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, false, client); if(!finished) start(); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/1f4beab5a1243077430b66c13efaf99ccb54ac35/ClientPut.java/buggy/src/freenet/node/fcp/ClientPut.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
22,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
2556,
18,
588,
2932,
3098,
7923,
1769,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
16629,
8807,
273,
2144,
18,
2670,
1702,
12,
2556,
18,
588,
2932,
30594,
7923,
1769,
202,
202,
8457,
797,
273,
7925,
18,
2670,
4897,
12,
2556,
18,
588,
2932,
8183,
797,
7923,
1769,
202,
202,
24854,
559,
273,
2445,
691,
18,
2670,
13182,
12,
2556,
18,
588,
2932,
13182,
7923,
1769,
202,
202,
430,
12,
24854,
559,
422,
2445,
691,
18,
3194,
18732,
67,
15461,
9506,
202,
20081,
9756,
559,
422,
2445,
691,
18,
3194,
18732,
67,
862,
30124,
13,
1082,
202,
12849,
394,
2754,
2932,
15714,
316,
9195,
2445,
6426,
16,
1496,
9756,
618,
273,
13773,
1227,
691,
18,
24854,
559,
780,
12,
24854,
559,
13,
9078,
1427,
12044,
1404,
1240,
2118,
5198,
316,
326,
1122,
3166,
8863,
202,
202,
2211,
18,
2625,
273,
1004,
22,
31,
202,
202,
4949,
1503,
273,
446,
31,
202,
202,
780,
10707,
273,
2662,
18,
588,
2932,
2277,
18,
8046,
8863,
202,
202,
588,
1792,
47,
3386,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
1792,
47,
3386,
6,
3631,
629,
1769,
202,
202,
6494,
14046,
16552,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
40,
1580,
16552,
6,
3631,
629,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
12,
5784,
974,
694,
2662,
16,
478,
4258,
1227,
1004,
22,
13,
1216,
13381,
13047,
16,
1860,
288,
202,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
2556,
18,
588,
2932,
3098,
7923,
1769,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
16629,
8807,
273,
2144,
18,
2670,
1702,
12,
2556,
18,
588,
2932,
30594,
7923,
1769,
202,
202,
8457,
797,
273,
7925,
18,
2670,
4897,
12,
2556,
18,
588,
2932,
8183,
797,
7923,
1769,
202,
202,
24854,
559,
273,
2445,
691,
18,
2670,
13182,
12,
2556,
18,
588,
2932,
13182,
7923,
1769,
202,
202,
430,
12,
24854,
559,
422,
2445,
691,
18,
3194,
18732,
67,
15461,
9506,
202,
2
] |
if (rowNumber > rows.size() - 1) {
|
if (rowNumber > rows.size() - 1 || rowNumber < 0) {
|
private TableRow getRowByNumber(int rowNumber) { if (rowNumber > rows.size() - 1) { return null; } return (TableRow) rows.get(rowNumber); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/498ed8e682523e5c23de43d5cf02a5cd0021c461/InternalCompositeTable.java/clean/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/InternalCompositeTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
1999,
11835,
858,
1854,
12,
474,
1027,
1854,
13,
288,
202,
202,
430,
261,
492,
1854,
405,
2595,
18,
1467,
1435,
300,
404,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
2463,
261,
30650,
13,
2595,
18,
588,
12,
492,
1854,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
1999,
11835,
858,
1854,
12,
474,
1027,
1854,
13,
288,
202,
202,
430,
261,
492,
1854,
405,
2595,
18,
1467,
1435,
300,
404,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
2463,
261,
30650,
13,
2595,
18,
588,
12,
492,
1854,
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
] |
} else if (c == '>' || c == '<') {
|
} else if ((c == '>') || (c == '<')) {
|
Bucket run(Bucket temp) throws IOException, DataFilterException { /** * TOKENIZE Modes: * <p>0) in text transitions: '<' ->(1) 1) in tag, not in * quotes/comment/whitespace transitions: whitespace -> (4) (save * current element) '"' -> (2) '--' at beginning of tag -> (3) '>' -> * process whole tag 2) in tag, in quotes transitions: '"' -> (1) * '>' -> grumble about markup in quotes in tag might confuse older * user-agents (stay in current state) 3) in tag, in comment * transitions: '-->' -> save/ignore comment, go to (0) '<' or '>' -> * grumble about markup in comments 4) in tag, in whitespace * transitions: '"' -> (2) '>' -> save tag, (0) anything else not * whitespace -> (1) * </p> */ StringBuffer b = new StringBuffer(100); StringBuffer balt = new StringBuffer(4000); Vector splitTag = new Vector(); String currentTag = null; char pprevC = 0; char prevC = 0; char c = 0; mode = INTEXT; while (true) { int x = r.read(); if (x == -1) { switch (mode) { case INTEXT : saveText(b, currentTag, w, this); break; default : // Dump unfinished tag break; } break; } else { pprevC = prevC; prevC = c; c = (char) x; switch (mode) { case INTEXT : if (c == '<') { saveText(b, currentTag, w, this); b.setLength(0); balt.setLength(0); mode = INTAG; } else { b.append(c); } break; case INTAG : balt.append(c); if (HTMLDecoder.isWhitespace(c)) { splitTag.add(b.toString()); mode = INTAGWHITESPACE; b.setLength(0); } else if (c == '<' && Character.isWhitespace(balt.charAt(0))) { // Previous was an un-escaped < in a script. saveText(b, currentTag, w, this); balt.setLength(0); b.setLength(0); splitTag.clear(); } else if (c == '>') { splitTag.add(b.toString()); b.setLength(0); processTag(splitTag, w, this); currentTag = (String)splitTag.get(0); splitTag.clear(); balt.setLength(0); mode = INTEXT; } else if ( b.length() == 2 && c == '-' && prevC == '-' && pprevC == '!') { mode = INTAGCOMMENT; b.append(c); } else if (c == '"') { mode = INTAGQUOTES; b.append(c); } else if (c == '\'') { mode = INTAGSQUOTES; b.append(c); } else if (c == '/') { /* Probable end tag */ currentTag = null; /* We didn't remember what was the last tag, so ... */ b.append(c); } else { b.append(c); } break; case INTAGQUOTES : if (c == '"') { mode = INTAG; b.append(c); // Part of the element } else if (c == '>' || c == '<') { if (!deleteErrors) { throwFilterException("Tags in markup"); b.append(c); return new NullBucket(); } else { if (c == '>') { w.write( "<!-- Tags in string attribute -->"); splitTag.clear(); b.setLength(0); mode = INTEXT; balt.setLength(0); // End tag now } else { killTag = true; writeAfterTag += "<!-- Tags in string attribute -->"; // Wait for end of tag then zap it } } } else { b.append(c); } break; case INTAGSQUOTES : if (c == '\'') { mode = INTAG; b.append(c); // Part of the element } else if (c == '>' || c == '<') { if (!deleteErrors) { throwFilterException("Tags in markup"); b.append(c); return new NullBucket(); } else { if (c == '>') { w.write( "<!-- Tags in string attribute -->"); splitTag.clear(); b.setLength(0); balt.setLength(0); mode = INTEXT; // End tag now } else { killTag = true; writeAfterTag += "<!-- Tags in string attribute -->"; // Wait for end of tag then zap it } writeAfterTag += "<!-- Tags in string attribute -->"; killTag = true; } } else { b.append(c); } break; /* * Comments are often used to temporarily disable * markup; I shall allow it. (avian) White space is * not permitted between the markup declaration * open delimiter (" * <!") and the comment open delimiter ("--"), but * is permitted between the comment close delimiter * ("--") and the markup declaration close * delimiter (">"). A common error is to include a * string of hyphens ("---") within a comment. * Authors should avoid putting two or more * adjacent hyphens inside comments. However, the * only browser that actually gets it right is IE * (others either don't allow it or allow other * chars as well). The only safe course of action * is to allow any and all chars, but eat them. * (avian) */ case INTAGCOMMENT : if (b.length() >= 4 && c == '-' && prevC == '-') { b.append(c); mode = INTAGCOMMENTCLOSING; } else b.append(c); break; case INTAGCOMMENTCLOSING : if (c == '>') { saveComment(b, w, this); b.setLength(0); mode = INTEXT; } break; case INTAGWHITESPACE : if (c == '"') { mode = INTAGQUOTES; b.append(c); } else if (c == '\'') { // e.g. <div align = 'center'> (avian) mode = INTAGSQUOTES; b.append(c); } else if (c == '>') { if (!killTag) processTag(splitTag, w, this); killTag = false; currentTag = (String)splitTag.get(0); splitTag.clear(); b.setLength(0); balt.setLength(0); mode = INTEXT; } else if (c == '<' && Character.isWhitespace(balt.charAt(0))) { // Previous was an un-escaped < in a script. saveText(balt, currentTag, w, this); balt.setLength(0); b.setLength(0); splitTag.clear(); mode = INTAG; } else if (HTMLDecoder.isWhitespace(c)) { // More whitespace, what fun } else { mode = INTAG; b.append(c); } } } } return temp; }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTMLFilter.java/clean/src/freenet/clients/http/filter/HTMLFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
4103,
1086,
12,
4103,
1906,
13,
1216,
1860,
16,
1910,
1586,
503,
288,
1082,
202,
26873,
9506,
380,
14275,
15641,
490,
1145,
30,
9506,
380,
411,
84,
34,
20,
13,
316,
977,
13136,
30,
9138,
317,
12,
21,
13,
404,
13,
316,
1047,
16,
486,
316,
9506,
380,
10681,
19,
3469,
19,
18777,
13136,
30,
7983,
317,
261,
24,
13,
261,
5688,
9506,
380,
783,
930,
13,
4754,
317,
261,
22,
13,
16979,
622,
8435,
434,
1047,
317,
261,
23,
13,
7481,
317,
9506,
380,
1207,
7339,
1047,
576,
13,
316,
1047,
16,
316,
10681,
13136,
30,
4754,
317,
261,
21,
13,
9506,
380,
7481,
317,
3821,
3592,
298,
2973,
9813,
316,
10681,
316,
1047,
4825,
2195,
1202,
12156,
9506,
380,
729,
17,
23560,
261,
334,
528,
316,
783,
919,
13,
890,
13,
316,
1047,
16,
316,
2879,
9506,
380,
13136,
30,
3534,
1870,
317,
1923,
19,
6185,
2879,
16,
1960,
358,
261,
20,
13,
9138,
578,
7481,
317,
9506,
380,
3821,
3592,
298,
2973,
9813,
316,
5678,
1059,
13,
316,
1047,
16,
316,
7983,
9506,
380,
13136,
30,
4754,
317,
261,
22,
13,
7481,
317,
1923,
1047,
16,
261,
20,
13,
6967,
469,
486,
9506,
380,
7983,
317,
261,
21,
13,
9506,
380,
7765,
84,
34,
9506,
1195,
1082,
202,
780,
1892,
324,
273,
394,
6674,
12,
6625,
1769,
1082,
202,
780,
1892,
324,
2390,
273,
394,
6674,
12,
24,
3784,
1769,
1082,
202,
5018,
1416,
1805,
273,
394,
5589,
5621,
1082,
202,
780,
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,
4103,
1086,
12,
4103,
1906,
13,
1216,
1860,
16,
1910,
1586,
503,
288,
1082,
202,
26873,
9506,
380,
14275,
15641,
490,
1145,
30,
9506,
380,
411,
84,
34,
20,
13,
316,
977,
13136,
30,
9138,
317,
12,
21,
13,
404,
13,
316,
1047,
16,
486,
316,
9506,
380,
10681,
19,
3469,
19,
18777,
13136,
30,
7983,
317,
261,
24,
13,
261,
5688,
9506,
380,
783,
930,
13,
4754,
317,
261,
22,
13,
16979,
622,
8435,
434,
1047,
317,
261,
23,
13,
7481,
317,
9506,
380,
1207,
7339,
1047,
576,
13,
316,
1047,
16,
316,
10681,
13136,
30,
4754,
317,
261,
21,
13,
9506,
380,
7481,
317,
3821,
3592,
298,
2973,
9813,
316,
10681,
316,
1047,
4825,
2195,
2
] |
new Object[] { name });
|
new Object[] { documentURI, name });
|
public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { String s = Messages.formatMessage("invalid.property", new Object[] { name }); throw new DOMException(DOMException.SYNTAX_ERR, s); } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); styleDeclaration.append(v, i, important); } }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/11a93387c98af05b05ba1937b36d876aac499487/CSSEngine.java/buggy/sources/org/apache/batik/css/engine/CSSEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
12,
780,
508,
16,
15123,
1706,
2802,
460,
16,
1250,
10802,
13,
5411,
1216,
6765,
503,
288,
5411,
509,
277,
273,
3911,
1016,
12,
529,
1769,
5411,
309,
261,
77,
422,
300,
21,
13,
288,
7734,
277,
273,
7932,
15830,
1016,
12,
529,
1769,
7734,
309,
261,
77,
422,
300,
21,
13,
288,
10792,
514,
272,
273,
4838,
18,
2139,
1079,
2932,
5387,
18,
4468,
3113,
4766,
8227,
394,
1033,
8526,
288,
1668,
3098,
16,
508,
15549,
10792,
604,
394,
4703,
503,
12,
8168,
503,
18,
7474,
28614,
67,
9712,
16,
272,
1769,
7734,
289,
7734,
21310,
17570,
63,
77,
8009,
542,
1972,
12,
10276,
4410,
18,
2211,
16,
4766,
9079,
333,
16,
4766,
9079,
460,
16,
4766,
9079,
10802,
1769,
5411,
289,
469,
288,
7734,
1445,
331,
273,
460,
17570,
63,
77,
8009,
2640,
620,
12,
1132,
16,
6765,
4410,
18,
2211,
1769,
7734,
2154,
6094,
18,
6923,
12,
90,
16,
277,
16,
10802,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
12,
780,
508,
16,
15123,
1706,
2802,
460,
16,
1250,
10802,
13,
5411,
1216,
6765,
503,
288,
5411,
509,
277,
273,
3911,
1016,
12,
529,
1769,
5411,
309,
261,
77,
422,
300,
21,
13,
288,
7734,
277,
273,
7932,
15830,
1016,
12,
529,
1769,
7734,
309,
261,
77,
422,
300,
21,
13,
288,
10792,
514,
272,
273,
4838,
18,
2139,
1079,
2932,
5387,
18,
4468,
3113,
4766,
8227,
394,
1033,
8526,
288,
1668,
3098,
16,
508,
15549,
10792,
604,
394,
4703,
503,
12,
8168,
503,
18,
7474,
28614,
67,
9712,
16,
272,
1769,
7734,
289,
7734,
21310,
17570,
63,
77,
8009,
542,
1972,
12,
10276,
4410,
18,
2211,
16,
4766,
9079,
333,
16,
4766,
9079,
2
] |
if (interceptors == null) interceptors = Collections.emptyList();
|
if (interceptors == null) { interceptors = Collections.emptyList(); }
|
public Collection<Interceptor> getInterceptors(LifecycleStage stage) { Collection<Interceptor> interceptors = this.interceptors.get(stage); if (interceptors == null) interceptors = Collections.emptyList(); return interceptors; }
|
9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/03202ccf3f26228371da3aab78c4c8da8f9aae73/DefaultConfiguration.java/buggy/stripes/src/net/sourceforge/stripes/config/DefaultConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
10281,
34,
336,
20540,
12,
9977,
8755,
6009,
13,
288,
3639,
2200,
32,
10281,
34,
18496,
273,
333,
18,
27481,
1383,
18,
588,
12,
12869,
1769,
3639,
309,
261,
27481,
1383,
422,
446,
13,
288,
18496,
273,
5737,
18,
5531,
682,
5621,
289,
3639,
327,
18496,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
10281,
34,
336,
20540,
12,
9977,
8755,
6009,
13,
288,
3639,
2200,
32,
10281,
34,
18496,
273,
333,
18,
27481,
1383,
18,
588,
12,
12869,
1769,
3639,
309,
261,
27481,
1383,
422,
446,
13,
288,
18496,
273,
5737,
18,
5531,
682,
5621,
289,
3639,
327,
18496,
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
] |
public int TRIX_Lookback(int optInTimePeriod) {
|
public int TRIX_Lookback( int optInTimePeriod ) {
|
public int TRIX_Lookback(int optInTimePeriod) { int emaLookback = EMA_Lookback(optInTimePeriod); return (emaLookback * 3) + ROCR_Lookback(1); }
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
22800,
60,
67,
9794,
823,
12,
474,
2153,
382,
26540,
13,
288,
202,
202,
474,
801,
69,
9794,
823,
273,
512,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
202,
202,
2463,
261,
351,
69,
9794,
823,
380,
890,
13,
397,
6525,
5093,
67,
9794,
823,
12,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
22800,
60,
67,
9794,
823,
12,
474,
2153,
382,
26540,
13,
288,
202,
202,
474,
801,
69,
9794,
823,
273,
512,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
202,
202,
2463,
261,
351,
69,
9794,
823,
380,
890,
13,
397,
6525,
5093,
67,
9794,
823,
12,
21,
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
] |
look_and_feel = newLookAndFeel; look_and_feel.initialize();
|
currentLookAndFeel = newLookAndFeel; if (newLookAndFeel != null) { newLookAndFeel.initialize(); currentUIDefaults = newLookAndFeel.getDefaults(); } else { currentUIDefaults = null; } listeners.firePropertyChange("lookAndFeel", oldLookAndFeel, newLookAndFeel);
|
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); if (look_and_feel != null) look_and_feel.uninitialize(); // Set the current default look and feel using a LookAndFeel object. look_and_feel = newLookAndFeel; look_and_feel.initialize(); //revalidate(); //repaint(); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/977c1d7a19f86a598e5fa0da86c3cb2bae54c581/UIManager.java/buggy/libraries/javalib/javax/swing/UIManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
444,
9794,
1876,
2954,
292,
12,
9794,
1876,
2954,
292,
394,
9794,
1876,
2954,
292,
13,
565,
1216,
7221,
9794,
1876,
2954,
292,
503,
225,
288,
565,
309,
16051,
394,
9794,
1876,
2954,
292,
18,
291,
7223,
9794,
1876,
2954,
292,
10756,
1377,
604,
394,
7221,
9794,
1876,
2954,
292,
503,
12,
2704,
9794,
1876,
2954,
292,
18,
17994,
10663,
3639,
309,
261,
7330,
67,
464,
67,
3030,
292,
480,
446,
13,
1377,
2324,
67,
464,
67,
3030,
292,
18,
318,
11160,
5621,
565,
368,
1000,
326,
783,
805,
2324,
471,
1656,
292,
1450,
279,
10176,
1876,
2954,
292,
733,
18,
377,
2324,
67,
464,
67,
3030,
292,
273,
394,
9794,
1876,
2954,
292,
31,
565,
2324,
67,
464,
67,
3030,
292,
18,
11160,
5621,
202,
565,
368,
266,
5662,
5621,
565,
368,
14462,
1598,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
444,
9794,
1876,
2954,
292,
12,
9794,
1876,
2954,
292,
394,
9794,
1876,
2954,
292,
13,
565,
1216,
7221,
9794,
1876,
2954,
292,
503,
225,
288,
565,
309,
16051,
394,
9794,
1876,
2954,
292,
18,
291,
7223,
9794,
1876,
2954,
292,
10756,
1377,
604,
394,
7221,
9794,
1876,
2954,
292,
503,
12,
2704,
9794,
1876,
2954,
292,
18,
17994,
10663,
3639,
309,
261,
7330,
67,
464,
67,
3030,
292,
480,
446,
13,
1377,
2324,
67,
464,
67,
3030,
292,
18,
318,
11160,
5621,
565,
368,
1000,
326,
783,
805,
2324,
471,
1656,
292,
1450,
279,
10176,
1876,
2954,
292,
733,
18,
377,
2324,
67,
464,
67,
3030,
292,
273,
394,
9794,
1876,
2954,
292,
31,
2
] |
out.print("<tr><th" + dataStyle + ">\"" + data + "\"</th><td>");
|
out.print("<tr><th" + dataStyle + (lineCounter == 1 ? " width='20%'" : "") + ">\"" + data + "\"</th><td>");
|
void showCacheData() throws IOException { writeStyleSheet(); PrintWriter out = null; String lastChainName = ""; int lineCounter = 1; for (Iterator it = contextCache.keySet().iterator(); it.hasNext();) { ElementChain stack = (ElementChain) it.next(); String chainName = getChainName(stack); if (!chainName.equals(lastChainName)) { if (out != null) { out.println("</table>"); writeFooterAndClose(out); } allTypes.add(chainName); // add to the list out = openAndDoHeader(chainName); lastChainName = chainName; lineCounter = 1; } String key = stack.toString(true, 1); // strip /ldml@version="1.2"/; out.println("<tr><td colspan='2' class='head'>" + "<a href='#" + lineCounter + "' name='" + lineCounter + "'>" + lineCounter + "</a> " + BagFormatter.toHTML.transliterate(key) + "</td></tr>"); lineCounter++; Map dataToFile = (Map) contextCache.get(stack); // walk through once, and gather all the filenames Set remainingFiles = new TreeSet(fileNames); for (Iterator it2 = dataToFile.keySet().iterator(); it2.hasNext();) { Object data = it2.next(); remainingFiles.removeAll((Set) dataToFile.get(data)); } // hack for zh_Hant if (!remainingFiles.contains("zh")) remainingFiles.remove("zh_Hant"); // now display for (Iterator it2 = dataToFile.keySet().iterator(); it2.hasNext();) { EndNode data = (EndNode) it2.next(); String dataStyle = ""; Set files = (Set) dataToFile.get(data); if (files.contains("root")) { files.addAll(remainingFiles); dataStyle = " class='nodata'"; } out.print("<tr><th" + dataStyle + ">\"" + data + "\"</th><td>"); boolean first = true; for (Iterator it3 = files.iterator(); it3.hasNext();) { if (first) first = false; else out.print(" "); String localeID = (String)it3.next(); boolean emphasize = localeID.equals("root") || localeID.indexOf('_') >= 0; if (emphasize) out.print("<b>"); out.print("\u00B7" + localeID + "\u00B7"); if (emphasize) out.print("</b>"); } out.println("</td></tr>"); } } if(out==null) { System.err.println("Out = null?"); } else { out.println("</table>"); writeFooterAndClose(out); out.close(); } writeIndex(); tripleData.writeData(); }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/7574cc23f311f8e677a40f7493a1684a524be9aa/GenerateSidewaysView.java/clean/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
2405,
1649,
751,
1435,
1216,
1860,
288,
5411,
1045,
2885,
8229,
5621,
5411,
14071,
596,
273,
446,
31,
5411,
514,
1142,
3893,
461,
273,
1408,
31,
5411,
509,
980,
4789,
273,
404,
31,
5411,
364,
261,
3198,
518,
273,
819,
1649,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
7734,
3010,
3893,
2110,
273,
261,
1046,
3893,
13,
518,
18,
4285,
5621,
7734,
514,
2687,
461,
273,
30170,
461,
12,
3772,
1769,
7734,
309,
16051,
5639,
461,
18,
14963,
12,
2722,
3893,
461,
3719,
288,
10792,
309,
261,
659,
480,
446,
13,
288,
13491,
596,
18,
8222,
2932,
1757,
2121,
2984,
1769,
13491,
1045,
13787,
1876,
4605,
12,
659,
1769,
10792,
289,
10792,
777,
2016,
18,
1289,
12,
5639,
461,
1769,
368,
527,
358,
326,
666,
1171,
202,
659,
273,
1696,
1876,
3244,
1864,
12,
5639,
461,
1769,
10792,
1142,
3893,
461,
273,
2687,
461,
31,
10792,
980,
4789,
273,
404,
31,
7734,
289,
7734,
514,
498,
273,
2110,
18,
10492,
12,
3767,
16,
404,
1769,
7734,
368,
2569,
565,
342,
1236,
781,
36,
1589,
1546,
21,
18,
22,
6,
19,
31,
27573,
596,
18,
8222,
2932,
32,
313,
4438,
4465,
20856,
2218,
22,
11,
667,
2218,
1978,
28533,
397,
7682,
3532,
69,
3897,
2218,
17133,
397,
980,
4789,
397,
2491,
508,
13396,
397,
980,
4789,
397,
2491,
2984,
7682,
397,
980,
4789,
397,
6823,
69,
22393,
10600,
4868,
397,
7682,
31711,
5074,
18,
869,
4870,
18,
5379,
18793,
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,
540,
918,
2405,
1649,
751,
1435,
1216,
1860,
288,
5411,
1045,
2885,
8229,
5621,
5411,
14071,
596,
273,
446,
31,
5411,
514,
1142,
3893,
461,
273,
1408,
31,
5411,
509,
980,
4789,
273,
404,
31,
5411,
364,
261,
3198,
518,
273,
819,
1649,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
7734,
3010,
3893,
2110,
273,
261,
1046,
3893,
13,
518,
18,
4285,
5621,
7734,
514,
2687,
461,
273,
30170,
461,
12,
3772,
1769,
7734,
309,
16051,
5639,
461,
18,
14963,
12,
2722,
3893,
461,
3719,
288,
10792,
309,
261,
659,
480,
446,
13,
288,
13491,
596,
18,
8222,
2932,
1757,
2121,
2984,
1769,
13491,
1045,
13787,
1876,
4605,
12,
659,
1769,
10792,
289,
2
] |
String aLine = " "; try { aLine = reader.readLine(); } catch(IOException e) { Debug.println(readErrorString + reader); } return aLine;
|
return readLine(fileReader);
|
public static String readLine(BufferedReader reader) { String aLine = " "; try { aLine = reader.readLine(); } catch(IOException e) { Debug.println(readErrorString + reader); } return aLine; }
|
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/906c15c7d3eb664e76182b7d32d790edab9d07b5/Files.java/buggy/ecologylab/generic/Files.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
514,
12273,
12,
17947,
2514,
2949,
13,
282,
288,
1377,
514,
279,
1670,
273,
315,
13636,
1377,
775,
1377,
288,
202,
279,
1670,
202,
33,
2949,
18,
896,
1670,
5621,
1377,
289,
1377,
1044,
12,
14106,
425,
13,
1377,
288,
202,
4015,
18,
8222,
12,
896,
668,
780,
397,
2949,
1769,
1377,
289,
1377,
327,
279,
1670,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
514,
12273,
12,
17947,
2514,
2949,
13,
282,
288,
1377,
514,
279,
1670,
273,
315,
13636,
1377,
775,
1377,
288,
202,
279,
1670,
202,
33,
2949,
18,
896,
1670,
5621,
1377,
289,
1377,
1044,
12,
14106,
425,
13,
1377,
288,
202,
4015,
18,
8222,
12,
896,
668,
780,
397,
2949,
1769,
1377,
289,
1377,
327,
279,
1670,
31,
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
] |
} else if (GNUMakefileUtil.isPosixRule(line)) {
|
} else if (PosixMakefileUtil.isPosixRule(line)) {
|
protected SpecialRule processSpecialRules(String line) { SpecialRule stmt = null; if (GNUMakefileUtil.isIgnoreRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isPosixRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isPreciousRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isSilentRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isSuffixesRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isDefaultRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isSccsGetRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isPhonyRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isIntermediateRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isSecondaryRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isDeleteOnErrorRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isLowResolutionTimeRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isExportAllVariablesRule(line)) { stmt = parseSpecialRule(line); } else if (GNUMakefileUtil.isNotParallelRule(line)) { stmt = parseSpecialRule(line); } return stmt; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/75b012b2ec15bbc90b28e714d000b94f3b49c4cb/GNUMakefile.java/buggy/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/gnu/GNUMakefile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
13409,
2175,
1207,
12193,
4478,
12,
780,
980,
13,
288,
202,
202,
12193,
2175,
3480,
273,
446,
31,
202,
202,
430,
261,
43,
6069,
911,
768,
1304,
18,
291,
3777,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
1616,
697,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
1386,
8450,
1481,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
55,
8125,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
5791,
281,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
1868,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
55,
952,
87,
967,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
3731,
6598,
2175,
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,
1117,
13409,
2175,
1207,
12193,
4478,
12,
780,
980,
13,
288,
202,
202,
12193,
2175,
3480,
273,
446,
31,
202,
202,
430,
261,
43,
6069,
911,
768,
1304,
18,
291,
3777,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
1616,
697,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
1304,
18,
291,
1386,
8450,
1481,
2175,
12,
1369,
3719,
288,
1082,
202,
10589,
273,
1109,
12193,
2175,
12,
1369,
1769,
202,
202,
97,
469,
309,
261,
43,
6069,
911,
768,
2
] |
if ((b & 0x80) == 0) return b; else return 0x80 | ((int) b & 0x7F);
|
return b & 0xff;
|
private static int intValueOf(byte b) { // Why isn't there an API method to do this? if ((b & 0x80) == 0) return b; else return 0x80 | ((int) b & 0x7F); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/25c36cfd05812e17cffac95d30a3a1a94e7165f3/SourceFile.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/SourceFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
9307,
951,
12,
7229,
324,
13,
288,
202,
202,
759,
3497,
93,
5177,
1404,
1915,
392,
1491,
707,
358,
741,
333,
35,
202,
202,
430,
14015,
70,
473,
374,
92,
3672,
13,
422,
374,
13,
1082,
202,
2463,
324,
31,
202,
202,
12107,
1082,
202,
2463,
374,
92,
3672,
571,
14015,
474,
13,
324,
473,
374,
92,
27,
42,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
9307,
951,
12,
7229,
324,
13,
288,
202,
202,
759,
3497,
93,
5177,
1404,
1915,
392,
1491,
707,
358,
741,
333,
35,
202,
202,
430,
14015,
70,
473,
374,
92,
3672,
13,
422,
374,
13,
1082,
202,
2463,
324,
31,
202,
202,
12107,
1082,
202,
2463,
374,
92,
3672,
571,
14015,
474,
13,
324,
473,
374,
92,
27,
42,
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
] |
throw new IllegalStateException( "Found multiple objects for entity \"" + entity.name() + " with primary key value: " + primaryKeyValue); return eos.count() == 1 ? (EOEnterpriseObject) eos.lastObject() : null;
|
throw new IllegalStateException("Found multiple objects for entity \"" + entity.name() + " with primary key value: " + primaryKeyValue); return eos.count() == 1 ? (EOEnterpriseObject)eos.lastObject() : null;
|
public static EOEnterpriseObject objectWithPrimaryKeyValue( EOEditingContext ec, String entityName, Object primaryKeyValue, NSArray prefetchingKeyPaths) { EOEntity entity = EOUtilities.entityNamed(ec, entityName); NSDictionary values; if (primaryKeyValue instanceof NSDictionary) { values = (NSDictionary) primaryKeyValue; } else { if (entity.primaryKeyAttributes().count() != 1) { throw new IllegalStateException( "Entity \"" + entity.name() + "\" has a compound primary key. Can't be used with the method: objectWithPrimaryKeyValue"); } values = new NSDictionary(primaryKeyValue, ((EOAttribute) entity .primaryKeyAttributes().lastObject()).name()); } EOQualifier qualfier = EOQualifier.qualifierToMatchAllValues(values); EOFetchSpecification fs = new EOFetchSpecification(entityName, qualfier, null); // Might as well get fresh stuff fs.setRefreshesRefetchedObjects(true); if (prefetchingKeyPaths != null) fs.setPrefetchingRelationshipKeyPaths(prefetchingKeyPaths); NSArray eos = ec.objectsWithFetchSpecification(fs); if (eos.count() > 1) throw new IllegalStateException( "Found multiple objects for entity \"" + entity.name() + " with primary key value: " + primaryKeyValue); return eos.count() == 1 ? (EOEnterpriseObject) eos.lastObject() : null; }
|
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/34bd76e4415f130e75e7bb5959a34935299de2cf/ERXEOControlUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
512,
51,
30699,
921,
733,
1190,
11575,
620,
12,
5411,
512,
51,
28029,
1042,
6557,
16,
514,
14868,
16,
1033,
8841,
620,
16,
5411,
11472,
1076,
17607,
26068,
4466,
13,
288,
3639,
512,
51,
1943,
1522,
273,
512,
51,
11864,
18,
1096,
7604,
12,
557,
16,
14868,
1769,
3639,
423,
9903,
3192,
924,
31,
3639,
309,
261,
8258,
13841,
1276,
423,
9903,
3192,
13,
288,
5411,
924,
273,
261,
3156,
10905,
13,
8841,
620,
31,
3639,
289,
469,
288,
5411,
309,
261,
1096,
18,
8258,
653,
2498,
7675,
1883,
1435,
480,
404,
13,
288,
604,
394,
5477,
12,
10792,
315,
1943,
11843,
18701,
397,
1522,
18,
529,
1435,
18701,
397,
7023,
711,
279,
11360,
3354,
498,
18,
4480,
1404,
506,
1399,
598,
326,
707,
30,
733,
1190,
11575,
620,
8863,
289,
5411,
924,
273,
394,
423,
9903,
3192,
12,
8258,
13841,
16,
14015,
41,
51,
1499,
13,
1522,
10792,
263,
8258,
653,
2498,
7675,
2722,
921,
1435,
2934,
529,
10663,
3639,
289,
3639,
512,
51,
16185,
4544,
74,
2453,
273,
512,
51,
16185,
18,
28157,
26726,
1595,
1972,
12,
2372,
1769,
3639,
6431,
1593,
8615,
2662,
273,
394,
6431,
1593,
8615,
12,
1096,
461,
16,
7734,
4544,
74,
2453,
16,
446,
1769,
3639,
368,
490,
750,
487,
5492,
336,
12186,
10769,
3639,
2662,
18,
542,
8323,
281,
1957,
1593,
329,
4710,
12,
3767,
1769,
3639,
309,
261,
1484,
5754,
26068,
4466,
480,
446,
13,
7734,
2662,
18,
542,
25591,
310,
8180,
653,
4466,
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,
760,
512,
51,
30699,
921,
733,
1190,
11575,
620,
12,
5411,
512,
51,
28029,
1042,
6557,
16,
514,
14868,
16,
1033,
8841,
620,
16,
5411,
11472,
1076,
17607,
26068,
4466,
13,
288,
3639,
512,
51,
1943,
1522,
273,
512,
51,
11864,
18,
1096,
7604,
12,
557,
16,
14868,
1769,
3639,
423,
9903,
3192,
924,
31,
3639,
309,
261,
8258,
13841,
1276,
423,
9903,
3192,
13,
288,
5411,
924,
273,
261,
3156,
10905,
13,
8841,
620,
31,
3639,
289,
469,
288,
5411,
309,
261,
1096,
18,
8258,
653,
2498,
7675,
1883,
1435,
480,
404,
13,
288,
604,
394,
5477,
12,
10792,
315,
1943,
11843,
18701,
397,
1522,
18,
529,
1435,
18701,
397,
7023,
711,
279,
11360,
3354,
498,
2
] |
logger.debug("pixelsUsed: " + pixelsUsed);
|
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
|
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/2a34592f4dae30244b54ff78ea76a8557d93e21e/JDBCPlottable.java/buggy/src/edu/sc/seis/fissuresUtil/database/plottable/JDBCPlottable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
2121,
5579,
8526,
336,
12,
13617,
8211,
950,
2655,
590,
2655,
16,
27573,
5307,
548,
612,
16,
27573,
509,
8948,
2173,
4245,
13,
1216,
6483,
16,
5411,
1860,
288,
3639,
509,
3861,
4331,
548,
31,
3639,
775,
288,
5411,
3861,
4331,
548,
273,
3861,
1388,
18,
588,
2290,
548,
12,
350,
1769,
3639,
289,
1044,
12,
2768,
425,
13,
288,
5411,
1194,
18,
1376,
2932,
2909,
315,
397,
5307,
548,
1304,
18,
10492,
2279,
15578,
12,
350,
13,
10792,
397,
315,
486,
1392,
8863,
5411,
327,
394,
15211,
2121,
5579,
63,
20,
15533,
3639,
289,
3639,
509,
770,
273,
404,
31,
3639,
10842,
3597,
31,
3639,
3852,
12,
588,
13,
288,
5411,
336,
18,
542,
4921,
12,
1615,
9904,
16,
590,
2655,
18,
588,
25255,
7675,
588,
4921,
10663,
5411,
336,
18,
542,
4921,
12,
1615,
9904,
16,
590,
2655,
18,
588,
8149,
950,
1435,
10792,
263,
588,
4921,
10663,
5411,
336,
18,
542,
1702,
12,
1615,
9904,
16,
3861,
4331,
548,
1769,
5411,
336,
18,
542,
1702,
12,
1615,
9904,
16,
8948,
2173,
4245,
1769,
5411,
3597,
273,
336,
18,
8837,
1138,
5621,
3639,
289,
3639,
987,
6055,
273,
394,
2407,
5621,
3639,
509,
590,
18079,
273,
1689,
3556,
87,
12,
21084,
2173,
4245,
16,
590,
2655,
1769,
3639,
1194,
18,
4148,
2932,
691,
7165,
364,
315,
397,
590,
18079,
397,
315,
628,
315,
7734,
397,
590,
2655,
397,
315,
622,
315,
397,
8948,
2173,
4245,
397,
315,
11858,
72,
8863,
3639,
1323,
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,
15211,
2121,
5579,
8526,
336,
12,
13617,
8211,
950,
2655,
590,
2655,
16,
27573,
5307,
548,
612,
16,
27573,
509,
8948,
2173,
4245,
13,
1216,
6483,
16,
5411,
1860,
288,
3639,
509,
3861,
4331,
548,
31,
3639,
775,
288,
5411,
3861,
4331,
548,
273,
3861,
1388,
18,
588,
2290,
548,
12,
350,
1769,
3639,
289,
1044,
12,
2768,
425,
13,
288,
5411,
1194,
18,
1376,
2932,
2909,
315,
397,
5307,
548,
1304,
18,
10492,
2279,
15578,
12,
350,
13,
10792,
397,
315,
486,
1392,
8863,
5411,
327,
394,
15211,
2121,
5579,
63,
20,
15533,
3639,
289,
3639,
509,
770,
273,
404,
31,
3639,
10842,
3597,
31,
3639,
3852,
12,
588,
13,
288,
5411,
336,
18,
542,
4921,
2
] |
|
Enumeration enum=ChannelList.getChannels();
|
Iterator iter = ChannelList.getChannels();
|
public ChannelPanel() { int n=ChannelList.getNumberOfSubscribedChannels(); setLayout(new GridLayout(1,0,0,0)); setOpaque(true); setBackground(new java.awt.Color(208,199,241)); labels=new JLabel[n]; Enumeration enum=ChannelList.getChannels(); int colWidth=Settings.getColumnWidth(); while (enum.hasMoreElements()) { Channel ch=(Channel)enum.nextElement(); if (ChannelList.isSubscribedChannel(ch)) { int pos=ChannelList.getPos(ch.getId()); labels[pos]=new JLabel(ch.getName()); labels[pos].setOpaque(false); labels[pos].setHorizontalAlignment(JLabel.CENTER); labels[pos].setPreferredSize(new Dimension(colWidth,15)); } }
|
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/a6b616efca4d5bed9181ce42211f6a6ce528020a/ChannelPanel.java/clean/tvbrowser/src/tvbrowser/ui/programtable/ChannelPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5307,
5537,
1435,
288,
565,
509,
290,
33,
2909,
682,
18,
588,
9226,
1676,
15802,
10585,
5621,
282,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
20,
16,
20,
16,
20,
10019,
1850,
444,
3817,
14886,
12,
3767,
1769,
565,
31217,
12,
2704,
2252,
18,
2219,
88,
18,
2957,
12,
26825,
16,
19818,
16,
3247,
21,
10019,
3639,
3249,
33,
2704,
21403,
63,
82,
15533,
565,
4498,
1400,
273,
5307,
682,
18,
588,
10585,
5621,
565,
509,
645,
2384,
33,
2628,
18,
588,
1494,
2384,
5621,
3639,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
1377,
5307,
462,
28657,
2909,
13,
7924,
18,
4285,
1046,
5621,
1377,
309,
261,
2909,
682,
18,
291,
1676,
15802,
2909,
12,
343,
3719,
288,
3639,
509,
949,
33,
2909,
682,
18,
588,
1616,
12,
343,
18,
26321,
10663,
3639,
3249,
63,
917,
65,
33,
2704,
21403,
12,
343,
18,
17994,
10663,
3639,
3249,
63,
917,
8009,
542,
3817,
14886,
12,
5743,
1769,
3639,
3249,
63,
917,
8009,
542,
14457,
11535,
12,
46,
2224,
18,
19835,
1769,
3639,
3249,
63,
917,
8009,
542,
16028,
1225,
12,
2704,
13037,
12,
1293,
2384,
16,
3600,
10019,
1377,
289,
1850,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
5307,
5537,
1435,
288,
565,
509,
290,
33,
2909,
682,
18,
588,
9226,
1676,
15802,
10585,
5621,
282,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
20,
16,
20,
16,
20,
10019,
1850,
444,
3817,
14886,
12,
3767,
1769,
565,
31217,
12,
2704,
2252,
18,
2219,
88,
18,
2957,
12,
26825,
16,
19818,
16,
3247,
21,
10019,
3639,
3249,
33,
2704,
21403,
63,
82,
15533,
565,
4498,
1400,
273,
5307,
682,
18,
588,
10585,
5621,
565,
509,
645,
2384,
33,
2628,
18,
588,
1494,
2384,
5621,
3639,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
1377,
5307,
462,
28657,
2909,
13,
7924,
18,
4285,
1046,
5621,
1377,
309,
261,
2909,
682,
18,
291,
1676,
15802,
2909,
2
] |
public boolean supportsStatementPooling() throws java.sql.SQLException
|
public boolean supportsStatementPooling() throws SQLException
|
public boolean supportsStatementPooling() throws java.sql.SQLException { throw new UnsupportedOperationException(); }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d7ced2b0c605263f7dfa189541246bf6492c8785/DatabaseMetaData.java/buggy/src/main/net/sourceforge/jtds/jdbc/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6146,
3406,
2864,
310,
1435,
1216,
6483,
565,
288,
3639,
604,
394,
13172,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6146,
3406,
2864,
310,
1435,
1216,
6483,
565,
288,
3639,
604,
394,
13172,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (rgb && !separated) sizeC /= 3;
|
if (rgb && !separated) sizeC = 1;
|
public int[] getZCTCoords(String id, int index) throws FormatException, IOException { // get DimensionOrder String order = getDimensionOrder(id); if (order == null) throw new FormatException("Dimension order is null"); if (!order.startsWith("XY")) { throw new FormatException("Invalid dimension order: " + order); } int iz = order.indexOf("Z") - 2; int ic = order.indexOf("C") - 2; int it = order.indexOf("T") - 2; if (iz < 0 || iz > 2 || ic < 0 || ic > 2 || it < 0 || it > 2) { throw new FormatException("Invalid dimension order: " + order); } // get SizeZ int sizeZ = getSizeZ(id); if (sizeZ <= 0) throw new FormatException("Invalid Z size: " + sizeZ); // get SizeC int sizeC = getSizeC(id); if (sizeC <= 0) throw new FormatException("Invalid C size: " + sizeC); int origSizeC = sizeC; boolean rgb = isRGB(id); if (rgb && !separated) sizeC /= 3; // adjust for RGB merging // get SizeT int sizeT = getSizeT(id); if (sizeT <= 0) throw new FormatException("Invalid T size: " + sizeT); // get image count int num = getImageCount(id); if (num <= 0) throw new FormatException("Invalid image count: " + num); if (num != sizeZ * sizeC * sizeT) { // if this happens, there is probably a bug in metadata population -- // either one of the ZCT sizes, or the total number of images -- // or else the input file is invalid throw new FormatException("ZCT size vs image count mismatch (rgb=" + rgb + "; separated=" + separated + "; sizeZ=" + sizeZ + ", sizeC=" + origSizeC + ", sizeT=" + sizeT + ", total=" + num); } if (index < 0 || index >= num) { throw new FormatException("Invalid image index: " + index + "/" + num); } // assign rasterization order int len0 = iz == 0 ? sizeZ : (ic == 0 ? sizeC : sizeT); int len1 = iz == 1 ? sizeZ : (ic == 1 ? sizeC : sizeT); //int len2 = iz == 2 ? sizeZ : (ic == 2 ? sizeC : sizeT); int v0 = index % len0; int v1 = index / len0 % len1; int v2 = index / len0 / len1; int z = iz == 0 ? v0 : (iz == 1 ? v1 : v2); int c = ic == 0 ? v0 : (ic == 1 ? v1 : v2); int t = it == 0 ? v0 : (it == 1 ? v1 : v2); return new int[] {z, c, t}; }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/5601d0fdf7c2300f9d63c82179cfb05d9ddcf080/FormatReader.java/buggy/loci/formats/FormatReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8526,
23448,
1268,
13089,
12,
780,
612,
16,
509,
770,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
368,
336,
13037,
2448,
565,
514,
1353,
273,
20283,
2448,
12,
350,
1769,
565,
309,
261,
1019,
422,
446,
13,
604,
394,
4077,
503,
2932,
8611,
1353,
353,
446,
8863,
565,
309,
16051,
1019,
18,
17514,
1190,
2932,
8546,
6,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
4968,
1353,
30,
315,
397,
1353,
1769,
565,
289,
565,
509,
277,
94,
273,
1353,
18,
31806,
2932,
62,
7923,
300,
576,
31,
565,
509,
13579,
273,
1353,
18,
31806,
2932,
39,
7923,
300,
576,
31,
565,
509,
518,
273,
1353,
18,
31806,
2932,
56,
7923,
300,
576,
31,
565,
309,
261,
452,
411,
374,
747,
277,
94,
405,
576,
747,
13579,
411,
374,
747,
13579,
405,
576,
747,
518,
411,
374,
747,
518,
405,
576,
13,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
4968,
1353,
30,
315,
397,
1353,
1769,
565,
289,
565,
368,
336,
6321,
62,
565,
509,
963,
62,
273,
9950,
62,
12,
350,
1769,
565,
309,
261,
1467,
62,
1648,
374,
13,
604,
394,
4077,
503,
2932,
1941,
2285,
963,
30,
315,
397,
963,
62,
1769,
565,
368,
336,
6321,
39,
565,
509,
963,
39,
273,
9950,
39,
12,
350,
1769,
565,
309,
261,
1467,
39,
1648,
374,
13,
604,
394,
4077,
503,
2932,
1941,
385,
963,
30,
315,
397,
963,
39,
1769,
565,
509,
1647,
1225,
39,
273,
963,
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,
509,
8526,
23448,
1268,
13089,
12,
780,
612,
16,
509,
770,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
368,
336,
13037,
2448,
565,
514,
1353,
273,
20283,
2448,
12,
350,
1769,
565,
309,
261,
1019,
422,
446,
13,
604,
394,
4077,
503,
2932,
8611,
1353,
353,
446,
8863,
565,
309,
16051,
1019,
18,
17514,
1190,
2932,
8546,
6,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
4968,
1353,
30,
315,
397,
1353,
1769,
565,
289,
565,
509,
277,
94,
273,
1353,
18,
31806,
2932,
62,
7923,
300,
576,
31,
565,
509,
13579,
273,
1353,
18,
31806,
2932,
39,
7923,
300,
576,
31,
565,
509,
518,
273,
1353,
18,
31806,
2932,
56,
7923,
300,
2
] |
ICPPASTTemplateSpecialization templateSpecialization = createTemplateSpecialization(); IASTDeclaration d = declaration(); ((ASTNode) templateSpecialization).setOffsetAndLength(firstToken .getOffset(), calculateEndOffset(d) - firstToken.getOffset()); templateSpecialization.setDeclaration(d); d.setParent(templateSpecialization); d.setPropertyInParent(ICPPASTTemplateSpecialization.OWNED_DECLARATION); return templateSpecialization; } try { List parms = templateParameterList(); consume(IToken.tGT); IASTDeclaration d = declaration(); ICPPASTTemplateDeclaration templateDecl = createTemplateDeclaration(); ((ASTNode) templateDecl).setOffsetAndLength(firstToken.getOffset(), calculateEndOffset(d) - firstToken.getOffset()); templateDecl.setExported(exported); templateDecl.setDeclaration(d); d.setParent(templateDecl); d.setPropertyInParent(ICPPASTTemplateDeclaration.OWNED_DECLARATION); for (int i = 0; i < parms.size(); ++i) { ICPPASTTemplateParameter parm = (ICPPASTTemplateParameter) parms .get(i); templateDecl.addTemplateParamter(parm); parm.setParent(templateDecl); parm.setPropertyInParent(ICPPASTTemplateDeclaration.PARAMETER); } return templateDecl; } catch (BacktrackException bt) { backup(mark); throw bt; } }
|
return templateDecl; } catch (BacktrackException bt) { backup(mark); throw bt; } }
|
protected IASTDeclaration templateDeclaration() throws EndOfFileException, BacktrackException { IToken mark = mark(); IToken firstToken = null; boolean exported = false; boolean encounteredExtraMod = false; if (LT(1) == IToken.t_export) { exported = true; firstToken = consume(IToken.t_export); consume(IToken.t_template); } else { if (supportExtendedTemplateSyntax) { switch (LT(1)) { case IToken.t_static: case IToken.t_extern: case IToken.t_inline: firstToken = consume(); consume(IToken.t_template); encounteredExtraMod = true; break; default: firstToken = consume(IToken.t_template); break; } } else firstToken = consume(IToken.t_template); } if (LT(1) != IToken.tLT) { // explicit-instantiation ICPPASTExplicitTemplateInstantiation templateInstantiation = null; if (encounteredExtraMod && supportExtendedTemplateSyntax) { IGPPASTExplicitTemplateInstantiation temp = createGnuTemplateInstantiation(); switch (firstToken.getType()) { case IToken.t_static: temp .setModifier(IGPPASTExplicitTemplateInstantiation.ti_static); break; case IToken.t_extern: temp .setModifier(IGPPASTExplicitTemplateInstantiation.ti_extern); break; case IToken.t_inline: temp .setModifier(IGPPASTExplicitTemplateInstantiation.ti_inline); break; } templateInstantiation = temp; } else templateInstantiation = createTemplateInstantiation(); IASTDeclaration d = declaration(); ((ASTNode) templateInstantiation).setOffsetAndLength(firstToken .getOffset(), calculateEndOffset(d) - firstToken.getOffset()); templateInstantiation.setDeclaration(d); d.setParent(templateInstantiation); d .setPropertyInParent(ICPPASTExplicitTemplateInstantiation.OWNED_DECLARATION); return templateInstantiation; } consume(IToken.tLT); if (LT(1) == IToken.tGT) { // explicit-specialization consume(IToken.tGT); ICPPASTTemplateSpecialization templateSpecialization = createTemplateSpecialization(); IASTDeclaration d = declaration(); ((ASTNode) templateSpecialization).setOffsetAndLength(firstToken .getOffset(), calculateEndOffset(d) - firstToken.getOffset()); templateSpecialization.setDeclaration(d); d.setParent(templateSpecialization); d.setPropertyInParent(ICPPASTTemplateSpecialization.OWNED_DECLARATION); return templateSpecialization; } try { List parms = templateParameterList(); consume(IToken.tGT); IASTDeclaration d = declaration(); ICPPASTTemplateDeclaration templateDecl = createTemplateDeclaration(); ((ASTNode) templateDecl).setOffsetAndLength(firstToken.getOffset(), calculateEndOffset(d) - firstToken.getOffset()); templateDecl.setExported(exported); templateDecl.setDeclaration(d); d.setParent(templateDecl); d.setPropertyInParent(ICPPASTTemplateDeclaration.OWNED_DECLARATION); for (int i = 0; i < parms.size(); ++i) { ICPPASTTemplateParameter parm = (ICPPASTTemplateParameter) parms .get(i); templateDecl.addTemplateParamter(parm); parm.setParent(templateDecl); parm.setPropertyInParent(ICPPASTTemplateDeclaration.PARAMETER); } return templateDecl; } catch (BacktrackException bt) { backup(mark); throw bt; } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
6094,
1542,
6094,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
467,
1345,
2267,
273,
2267,
5621,
1377,
467,
1345,
1122,
1345,
273,
446,
31,
1377,
1250,
11518,
273,
629,
31,
1377,
1250,
9919,
7800,
1739,
273,
629,
31,
1377,
309,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
6530,
13,
288,
540,
11518,
273,
638,
31,
540,
1122,
1345,
273,
7865,
12,
1285,
969,
18,
88,
67,
6530,
1769,
540,
7865,
12,
1285,
969,
18,
88,
67,
3202,
1769,
1377,
289,
469,
288,
540,
309,
261,
13261,
11456,
2283,
8070,
13,
288,
5411,
1620,
261,
12050,
12,
21,
3719,
288,
9079,
648,
467,
1345,
18,
88,
67,
3845,
30,
9079,
648,
467,
1345,
18,
88,
67,
338,
798,
30,
9079,
648,
467,
1345,
18,
88,
67,
10047,
30,
5375,
1122,
1345,
273,
7865,
5621,
5375,
7865,
12,
1285,
969,
18,
88,
67,
3202,
1769,
5375,
9919,
7800,
1739,
273,
638,
31,
5375,
898,
31,
9079,
805,
30,
5375,
1122,
1345,
273,
7865,
12,
1285,
969,
18,
88,
67,
3202,
1769,
5375,
898,
31,
5411,
289,
540,
289,
469,
5411,
1122,
1345,
273,
7865,
12,
1285,
969,
18,
88,
67,
3202,
1769,
1377,
289,
1377,
309,
261,
12050,
12,
21,
13,
480,
467,
1345,
18,
88,
12050,
13,
288,
540,
368,
5515,
17,
24628,
7072,
540,
467,
4258,
4066,
882,
17186,
2283,
10675,
7072,
1542,
10675,
7072,
273,
446,
31,
540,
309,
261,
1331,
29625,
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,
565,
4750,
467,
9053,
6094,
1542,
6094,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
467,
1345,
2267,
273,
2267,
5621,
1377,
467,
1345,
1122,
1345,
273,
446,
31,
1377,
1250,
11518,
273,
629,
31,
1377,
1250,
9919,
7800,
1739,
273,
629,
31,
1377,
309,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
6530,
13,
288,
540,
11518,
273,
638,
31,
540,
1122,
1345,
273,
7865,
12,
1285,
969,
18,
88,
67,
6530,
1769,
540,
7865,
12,
1285,
969,
18,
88,
67,
3202,
1769,
1377,
289,
469,
288,
540,
309,
261,
13261,
11456,
2283,
8070,
13,
288,
5411,
1620,
261,
12050,
12,
21,
3719,
288,
9079,
648,
467,
1345,
18,
88,
2
] |
case CSSPrimitiveValue.CSS_PT: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / (72f * ctx.getPixelUnitToMillimeter()));
|
case CSSPrimitiveValue.CSS_IN : v = value.getFloatValue( ); return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, v * 72000.0f );
|
public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) { switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_NUMBER: case CSSPrimitiveValue.CSS_PX: return value; case CSSPrimitiveValue.CSS_MM: CSSContext ctx = engine.getCSSContext(); float v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_CM: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 10f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_IN: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / ctx.getPixelUnitToMillimeter()); case CSSPrimitiveValue.CSS_PT: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * 25.4f / (72f * ctx.getPixelUnitToMillimeter())); case CSSPrimitiveValue.CSS_PC: ctx = engine.getCSSContext(); v = value.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, (v * 25.4f / (6f * ctx.getPixelUnitToMillimeter()))); case CSSPrimitiveValue.CSS_EMS: v = value.getFloatValue(); Value fontSize = (Value)elt.getComputedStyle().getProperty( IStyle.STYLE_FONT_SIZE); float fs = fontSize.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs); case CSSPrimitiveValue.CSS_EXS: v = value.getFloatValue(); fontSize = (Value)elt.getComputedStyle().getProperty( IStyle.STYLE_FONT_SIZE); fs = fontSize.getFloatValue(); return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, v * fs * 0.5f); } } return value; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c71489f80df3e518aa58c4898c221867ba32d699/AbstractLengthManager.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/AbstractLengthManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
6765,
4410,
4073,
16,
1082,
202,
474,
2067,
16,
1445,
460,
13,
288,
202,
202,
430,
261,
1132,
18,
588,
7359,
17930,
1435,
422,
6765,
620,
18,
10276,
67,
7698,
6068,
5354,
67,
4051,
13,
288,
1082,
202,
9610,
261,
1132,
18,
588,
9840,
559,
10756,
288,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
9931,
30,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
52,
60,
30,
9506,
202,
2463,
460,
31,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
8206,
30,
9506,
202,
10276,
1042,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
9506,
202,
5659,
331,
273,
460,
18,
588,
4723,
620,
5621,
9506,
202,
2463,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
331,
25083,
202,
19,
1103,
18,
588,
9037,
2802,
774,
49,
737,
28051,
10663,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
9611,
30,
9506,
202,
5900,
273,
4073,
18,
588,
10276,
1042,
5621,
9506,
202,
90,
273,
460,
18,
588,
4723,
620,
5621,
9506,
202,
2463,
394,
5450,
620,
12,
10276,
9840,
620,
18,
10276,
67,
9931,
16,
331,
380,
1728,
74,
25083,
202,
19,
1103,
18,
588,
9037,
2802,
774,
49,
737,
28051,
10663,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
706,
30,
9506,
202,
5900,
273,
4073,
18,
588,
10276,
1042,
5621,
9506,
202,
90,
273,
460,
18,
588,
4723,
620,
5621,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
6765,
4410,
4073,
16,
1082,
202,
474,
2067,
16,
1445,
460,
13,
288,
202,
202,
430,
261,
1132,
18,
588,
7359,
17930,
1435,
422,
6765,
620,
18,
10276,
67,
7698,
6068,
5354,
67,
4051,
13,
288,
1082,
202,
9610,
261,
1132,
18,
588,
9840,
559,
10756,
288,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
9931,
30,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
52,
60,
30,
9506,
202,
2463,
460,
31,
1082,
202,
3593,
6765,
9840,
620,
18,
10276,
67,
8206,
30,
9506,
202,
10276,
1042,
1103,
273,
4073,
18,
588,
10276,
1042,
5621,
9506,
202,
5659,
331,
273,
460,
18,
2
] |
getProject().setNewProperty( DEFAULT_PROPERTY_NAME, String.valueOf( buildNumber ) );
|
getProject().setNewProperty(DEFAULT_PROPERTY_NAME, String.valueOf(buildNumber));
|
public void execute() throws BuildException { File savedFile = m_file; // may be altered in validate validate(); final Properties properties = loadProperties(); final int buildNumber = getBuildNumber( properties ); properties.put( DEFAULT_PROPERTY_NAME, String.valueOf( buildNumber + 1 ) ); // Write the properties file back out FileOutputStream output = null; try { output = new FileOutputStream( m_file ); final String header = "Build Number for ANT. Do not edit!"; properties.save( output, header ); } catch( final IOException ioe ) { final String message = "Error while writing " + m_file; throw new BuildException( message, ioe ); } finally { if( null != output ) { try { output.close(); } catch( final IOException ioe ) { } } m_file = savedFile; } //Finally set the property getProject().setNewProperty( DEFAULT_PROPERTY_NAME, String.valueOf( buildNumber ) ); }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/BuildNumber.java/buggy/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18463,
565,
288,
3639,
1387,
5198,
812,
273,
312,
67,
768,
31,
368,
2026,
506,
22349,
316,
1954,
3639,
1954,
5621,
3639,
727,
6183,
1790,
273,
1262,
2297,
5621,
3639,
727,
509,
1361,
1854,
273,
21122,
1854,
12,
1790,
11272,
3639,
1790,
18,
458,
12,
3331,
67,
9900,
67,
1985,
16,
13491,
514,
18,
1132,
951,
12,
1361,
1854,
397,
404,
262,
11272,
3639,
368,
2598,
326,
1790,
585,
1473,
596,
3639,
12942,
876,
273,
446,
31,
3639,
775,
3639,
288,
5411,
876,
273,
394,
12942,
12,
312,
67,
768,
11272,
5411,
727,
514,
1446,
273,
315,
3116,
3588,
364,
27274,
18,
2256,
486,
3874,
4442,
31,
5411,
1790,
18,
5688,
12,
876,
16,
1446,
11272,
3639,
289,
3639,
1044,
12,
727,
1860,
10847,
262,
3639,
288,
5411,
727,
514,
883,
273,
315,
668,
1323,
7410,
315,
397,
312,
67,
768,
31,
5411,
604,
394,
18463,
12,
883,
16,
10847,
11272,
3639,
289,
3639,
3095,
3639,
288,
5411,
309,
12,
446,
480,
876,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
876,
18,
4412,
5621,
7734,
289,
7734,
1044,
12,
727,
1860,
10847,
262,
7734,
288,
7734,
289,
5411,
289,
5411,
312,
67,
768,
273,
5198,
812,
31,
3639,
289,
3639,
368,
29987,
444,
326,
1272,
3639,
11080,
7675,
542,
1908,
1396,
12,
3331,
67,
9900,
67,
1985,
16,
19694,
514,
18,
1132,
951,
12,
1361,
1854,
262,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18463,
565,
288,
3639,
1387,
5198,
812,
273,
312,
67,
768,
31,
368,
2026,
506,
22349,
316,
1954,
3639,
1954,
5621,
3639,
727,
6183,
1790,
273,
1262,
2297,
5621,
3639,
727,
509,
1361,
1854,
273,
21122,
1854,
12,
1790,
11272,
3639,
1790,
18,
458,
12,
3331,
67,
9900,
67,
1985,
16,
13491,
514,
18,
1132,
951,
12,
1361,
1854,
397,
404,
262,
11272,
3639,
368,
2598,
326,
1790,
585,
1473,
596,
3639,
12942,
876,
273,
446,
31,
3639,
775,
3639,
288,
5411,
876,
273,
394,
12942,
12,
312,
67,
768,
11272,
5411,
727,
514,
1446,
273,
315,
3116,
3588,
364,
27274,
18,
2256,
486,
3874,
4442,
31,
5411,
1790,
18,
5688,
12,
2
] |
if (path.isEmpty()) return from;
|
if (path.length() == 0) return from;
|
private Entry findRecursively(Entry from, String path) { if (from == this) return searchInChildren(from, path); String name = from.getName(); if (!path.startsWith(name)) return null; path = path.substring(name.length()); if (path.isEmpty()) return from; if (path.charAt(0) != Path.DELIM) return null; path = path.substring(1); return searchInChildren(from, path); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d4d0b4937f17527e24321937f173e3db673bf2a1/RootEntry.java/buggy/LocalVcs/src/com/intellij/localvcs/RootEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3841,
1104,
12474,
12,
1622,
628,
16,
514,
589,
13,
288,
565,
309,
261,
2080,
422,
333,
13,
327,
1623,
382,
4212,
12,
2080,
16,
589,
1769,
565,
514,
508,
273,
628,
18,
17994,
5621,
565,
309,
16051,
803,
18,
17514,
1190,
12,
529,
3719,
327,
446,
31,
565,
589,
273,
589,
18,
28023,
12,
529,
18,
2469,
10663,
565,
309,
261,
803,
18,
2469,
1435,
422,
374,
13,
327,
628,
31,
565,
309,
261,
803,
18,
3001,
861,
12,
20,
13,
480,
2666,
18,
31519,
13,
327,
446,
31,
565,
589,
273,
589,
18,
28023,
12,
21,
1769,
565,
327,
1623,
382,
4212,
12,
2080,
16,
589,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3841,
1104,
12474,
12,
1622,
628,
16,
514,
589,
13,
288,
565,
309,
261,
2080,
422,
333,
13,
327,
1623,
382,
4212,
12,
2080,
16,
589,
1769,
565,
514,
508,
273,
628,
18,
17994,
5621,
565,
309,
16051,
803,
18,
17514,
1190,
12,
529,
3719,
327,
446,
31,
565,
589,
273,
589,
18,
28023,
12,
529,
18,
2469,
10663,
565,
309,
261,
803,
18,
2469,
1435,
422,
374,
13,
327,
628,
31,
565,
309,
261,
803,
18,
3001,
861,
12,
20,
13,
480,
2666,
18,
31519,
13,
327,
446,
31,
565,
589,
273,
589,
18,
28023,
12,
21,
1769,
565,
327,
1623,
382,
4212,
12,
2080,
16,
589,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.testURL = testURL; }
|
this.testURL = testURL; }
|
public void setTestURL(String testURL) { this.testURL = testURL; }
|
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/de8cf3204cc93c4fff2891473e3a73ee9c476e79/ConstrainedPropertyTests.java/buggy/test/commons/org/codehaus/groovy/grails/validation/ConstrainedPropertyTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
4709,
1785,
12,
780,
1842,
1785,
13,
288,
202,
202,
2211,
18,
3813,
1785,
273,
1842,
1785,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
444,
4709,
1785,
12,
780,
1842,
1785,
13,
288,
202,
202,
2211,
18,
3813,
1785,
273,
1842,
1785,
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
] |
context.getResponse( ).setHeader("Pragma","No-cache"); context.getResponse( ).setHeader("Cache-Control","no-cache"); context.getResponse( ).setHeader("Cache-Control","no-store"); context.getResponse( ).setDateHeader("Expires", 0);
|
protected void __doGet( IContext context ) throws ServletException, IOException, BirtException { // Don't cache page context.getResponse( ).setHeader("Pragma","No-cache"); //$NON-NLS-1$//$NON-NLS-2$ context.getResponse( ).setHeader("Cache-Control","no-cache"); //$NON-NLS-1$ //$NON-NLS-2$ context.getResponse( ).setHeader("Cache-Control","no-store"); //$NON-NLS-1$ //$NON-NLS-2$ context.getResponse( ).setDateHeader("Expires", 0); //$NON-NLS-1$ ViewerAttributeBean bean = ( ViewerAttributeBean ) context.getBean( ); if ( IBirtConstants.SERVLET_PATH_RUN.equalsIgnoreCase( context.getRequest( ).getServletPath( ) ) && bean != null && bean.isMissingParameter( ) ) { requester.service( context.getRequest( ), context.getResponse( ) ); } else if ( IBirtConstants.SERVLET_PATH_PARAMETER.equalsIgnoreCase( context.getRequest( ).getServletPath( ) ) ) { requester.service( context.getRequest( ), context.getResponse( ) ); } else { engine.service( context.getRequest( ), context.getResponse( ) ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b0ddf287e40bd33b0d9469b9c78a457b5696d553/BirtEngineServlet.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/servlet/BirtEngineServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1001,
2896,
967,
12,
467,
1042,
819,
262,
1216,
16517,
16,
1860,
16,
605,
2714,
503,
202,
95,
202,
202,
759,
7615,
1404,
1247,
1363,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
2050,
9454,
15937,
2279,
17,
2493,
8863,
282,
4329,
3993,
17,
5106,
17,
21,
8,
759,
8,
3993,
17,
5106,
17,
22,
8,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
1649,
17,
3367,
15937,
2135,
17,
2493,
8863,
225,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
1649,
17,
3367,
15937,
2135,
17,
2233,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1626,
1864,
2932,
14449,
3113,
374,
1769,
225,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
18415,
1499,
3381,
3931,
273,
261,
4441,
264,
1499,
3381,
262,
819,
18,
588,
3381,
12,
11272,
202,
202,
430,
261,
23450,
2714,
2918,
18,
31066,
15146,
67,
4211,
67,
15238,
18,
14963,
5556,
12,
9506,
202,
2472,
18,
588,
691,
12,
262,
18,
588,
4745,
743,
12,
262,
262,
9506,
202,
10,
10,
3931,
480,
446,
9506,
202,
10,
10,
3931,
18,
291,
4841,
1662,
12,
262,
262,
202,
202,
95,
1082,
202,
26192,
18,
3278,
12,
819,
18,
588,
691,
12,
262,
16,
819,
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,
1001,
2896,
967,
12,
467,
1042,
819,
262,
1216,
16517,
16,
1860,
16,
605,
2714,
503,
202,
95,
202,
202,
759,
7615,
1404,
1247,
1363,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
2050,
9454,
15937,
2279,
17,
2493,
8863,
282,
4329,
3993,
17,
5106,
17,
21,
8,
759,
8,
3993,
17,
5106,
17,
22,
8,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
1649,
17,
3367,
15937,
2135,
17,
2493,
8863,
225,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
2472,
18,
588,
1064,
12,
262,
18,
542,
1864,
2932,
1649,
17,
3367,
15937,
2135,
17,
2233,
8863,
2
] |
|
public IContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) {
|
public IToolBarContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) {
|
public IContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) { return new ToolBarContributionItem(toolBarManager, id); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/255c7682ea0dffe0f08cf65d11aebf4e1b04fd1a/CustomizePerspectiveDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
442,
4027,
1180,
752,
6364,
5190,
442,
4027,
1180,
12,
45,
6364,
5190,
1318,
5226,
5190,
1318,
16,
514,
612,
13,
288,
1082,
202,
2463,
394,
13288,
5190,
442,
4027,
1180,
12,
6738,
5190,
1318,
16,
612,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
442,
4027,
1180,
752,
6364,
5190,
442,
4027,
1180,
12,
45,
6364,
5190,
1318,
5226,
5190,
1318,
16,
514,
612,
13,
288,
1082,
202,
2463,
394,
13288,
5190,
442,
4027,
1180,
12,
6738,
5190,
1318,
16,
612,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(debug) System.out.println("Processed: " + processed); String remnants = refDetails.substring(closeIndex+1,refDetails.length()); if(debug) System.out.println("Remnants: " + remnants);
|
if (debug) { System.out.println("Processed: " + processed); } String remnants = refDetails.substring(closeIndex + 1, refDetails.length()); if (debug) System.out.println("Remnants: " + remnants);
|
public TablePanel(Element e, TabPanel tp, OMEXMLNode on) { isTopLevel = false; //check if this TablePanel is "top level" if (tp.oNode == null) { Vector foundEles = DOMUtil.getChildElements("OMEElement", tParse.getRoot()); for (int i = 0;i < foundEles.size();i++) { Element thisNode = (Element) foundEles.get(i); if (thisNode == e) isTopLevel = true; } } else if (tp.oNode != null && tp.oNode == on) isTopLevel = true; el = e; oNode = on; tPanel = tp; id = null; JComboBox comboBox = null; if (on != null) name = getTreePathName(e,on); else name = getTreePathName(e); String thisName = name; panelList.add(this); //for debuging this simple parser final boolean debug = false; //Check which "types" the various template attributes are and //group them into Vectors. Vector fullList = DOMUtil.getChildElements("OMEAttribute",e); attrList = new Vector(); refList = new Vector(); for (int i = 0;i<fullList.size();i++) { Element thisE = (Element) fullList.get(i); if (thisE.hasAttribute("Type") ) { if (thisE.getAttribute("Type").equals("Ref")) { if (oNode != null) { String value = oNode.getAttribute(thisE.getAttribute("XMLName")); if (value != null && !value.equals("")) { if ( addItems.indexOf("(External) " + value) < 0) { addItems.add("(External) " + value); } } } refList.add(thisE); } else if (thisE.getAttribute("Type").equals("ID") && oNode != null && !showIDs) { if (oNode.getDOMElement().hasAttribute("ID")) { id = oNode.getAttribute("ID"); panelsWithID.add(this); } } else if (thisE.getAttribute("Type").equals("ID") && oNode != null && showIDs) { if (oNode.getDOMElement().hasAttribute("ID")) { id = oNode.getAttribute("ID"); panelsWithID.add(this); attrList.add(thisE); } } else attrList.add(thisE); } else attrList.add(thisE); } //Set up the details for internal reference names refDetails = e.getAttribute("RefVars"); if(debug) System.out.println(); if(debug) System.out.println(name + " - " + refDetails); boolean noDetails = true; int openIndex = refDetails.indexOf('%'); while(openIndex >= 0) { if(debug) System.out.println(openIndex + " " + refDetails.charAt(openIndex)); int closeIndex = refDetails.indexOf('%',openIndex + 1); if(debug) System.out.println(closeIndex + " " + refDetails.charAt(closeIndex)); String thisCommand = refDetails.substring(openIndex + 1,closeIndex); if(debug) System.out.println("Command: " + thisCommand); String processed = refDetails.substring(0,openIndex); if(debug) System.out.println("Processed: " + processed); String remnants = refDetails.substring(closeIndex+1,refDetails.length()); if(debug) System.out.println("Remnants: " + remnants); boolean addThisCommand = false; int varIndex = thisCommand.indexOf('$'); while(varIndex >=0) { if(debug) System.out.println("varIndex: " + varIndex + " " + thisCommand.charAt(varIndex)); int endIndex = thisCommand.indexOf(' ', varIndex + 1); if (endIndex < 0) endIndex = thisCommand.length(); if(debug) System.out.println("endIndex: " + endIndex); String prefix = thisCommand.substring(0,varIndex); if(debug) System.out.println("Prefix: " + prefix); String thisVar = thisCommand.substring(varIndex+1,endIndex); if(debug) System.out.println("thisVar: " + thisVar); String suffix; if(endIndex != thisCommand.length()) suffix = thisCommand.substring(endIndex + 1,thisCommand.length()); else suffix = ""; if(debug) System.out.println("Suffix: " + suffix); String value = null; if (oNode != null) { value = oNode.getAttribute(thisVar); } if (value != null) { if (!value.equals("")) { addThisCommand = true; } } else value = ""; if(debug) System.out.println("Value: " + value); thisCommand = prefix + value + suffix; if(debug) System.out.println("thisCommand: " + thisCommand); varIndex = thisCommand.indexOf('$'); } if (addThisCommand) { noDetails = false; refDetails = processed + " (" + thisCommand + ")" + remnants; } else refDetails = processed + remnants; if(debug) System.out.println("refDetails: " + refDetails); openIndex = refDetails.indexOf('%'); } if(debug) System.out.println(name + " - " + refDetails); if(showIDs) refDetails = refDetails + " (ID: " + id + ")"; Element cDataEl = DOMUtil.getChildElement("CData",e); if (cDataEl != null) attrList.add(0,cDataEl); tableName = null; if (oNode == null) tableName = new JLabel(thisName, NO_DATA_BULLET, JLabel.LEFT); else tableName = new JLabel(thisName, DATA_BULLET, JLabel.LEFT); Font thisFont = tableName.getFont(); thisFont = new Font(thisFont.getFontName(), Font.BOLD,12); tableName.setFont(thisFont); if (el.hasAttribute("ShortDesc")) tableName.setToolTipText(el.getAttribute("ShortDesc")); else if (el.hasAttribute("Description")) tableName.setToolTipText(el.getAttribute("Description")); tableName.setForeground(TEXT_COLOR); noteButton = new JButton("Notes");// noteButton.setPreferredSize(new Dimension(85,17)); noteButton.addActionListener(this); noteButton.setActionCommand("getNotes"); noteButton.setToolTipText( "Display or hide the notes associated with this " + name + "."); noteButton.setForeground(TEXT_COLOR); imageLabel = null; if (name.endsWith("Pixels") || name.endsWith("Pixels (1)")) { if (thumb != null) { imageLabel = new JLabel(new ImageIcon(thumb)); imageLabel.setToolTipText("The first image of these pixels." + " Click for full sized image."); imageLabel.addMouseListener(this); } } DefaultTableModel myTableModel = new DefaultTableModel(TREE_COLUMNS, 0) { public boolean isCellEditable(int row, int col) { if(editable) { if (col < 1) return false; else return true; } else { if (col < 2) return false; else return true; } } }; VariableComboEditor vcEdit = new VariableComboEditor(panelsWithID, addItems, this, internalDefs); table = new ClickableTable(myTableModel, this, vcEdit);// table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF ); table.getColumnModel().getColumn(0).setPreferredWidth(125); table.getColumnModel().getColumn(1).setPreferredWidth(430); table.getColumnModel().getColumn(2).setPreferredWidth(70); table.getColumnModel().getColumn(2).setMaxWidth(70); table.getColumnModel().getColumn(2).setMinWidth(70); tHead = table.getTableHeader(); tHead.setResizingAllowed(true); tHead.setReorderingAllowed(false);// tHead.setBackground(NotePanel.BACK_COLOR);// tHead.setOpaque(false); myTableModel.setRowCount(attrList.size() + refList.size()); String clippedName = name; if (name.endsWith(")")) clippedName = name.substring(0,name.length() - 4); addButton = new JButton("New Table");// addButton.setPreferredSize(new Dimension(130,17)); addButton.addActionListener(table); addButton.setActionCommand("bigAdd"); addButton.setToolTipText("Create a new " + clippedName + " table."); if ( !isTopLevel && tPanel.oNode == null) addButton.setEnabled(false); if ( !editable) addButton.setEnabled(false); addButton.setForeground(ADD_COLOR); delButton = new JButton("Delete Table");// delButton.setPreferredSize(new Dimension(130,17)); delButton.addActionListener(table); delButton.setActionCommand("bigRem"); delButton.setToolTipText("Delete this " + clippedName + " table."); if ( oNode == null) delButton.setVisible(false); if ( !editable) delButton.setEnabled(false); delButton.setForeground(DELETE_COLOR); noteP = new NotePanel(this); setNumNotes(noteP.getNumNotes()); FormLayout layout = new FormLayout( "pref, 10dlu, pref, 10dlu, pref, pref:grow:right, 5dlu, pref", "pref,2dlu,pref,pref,3dlu,pref,3dlu"); setLayout(layout); CellConstraints cc = new CellConstraints(); add(tableName, cc.xy(1,1)); add(noteButton, cc.xy(3,1, "left,center")); if (imageLabel != null) { add(imageLabel, cc.xy(5,1, "center,top")); } add(addButton, cc.xy(6,1, "right,center")); add(delButton, cc.xy(8,1, "right,center")); add(tHead, cc.xyw(1,3,8, "fill, center")); add(table, cc.xyw(1,4,8, "fill, center")); add(noteP, cc.xyw(1,6,8, "fill,center")); if (oNode == null) { tHead.setVisible(false); noteButton.setVisible(false); table.setVisible(false); } if (attrList.size() != 0) { // update OME-XML attributes table for (int i=0; i<attrList.size(); i++) { Element thisEle = null; if (attrList.get(i) instanceof Element) { thisEle = (Element) attrList.get(i); } if (thisEle != null) { String attrName = thisEle.getAttribute("XMLName"); if (thisEle.hasAttribute("Name")) { myTableModel.setValueAt(thisEle.getAttribute("Name"), i, 0); if (oNode != null) { if (oNode.getDOMElement().hasAttribute(attrName)) { myTableModel.setValueAt(oNode.getAttribute(attrName), i, 1); } } } else if (!thisEle.hasAttribute("Name") && thisEle.hasAttribute("XMLName")) { myTableModel.setValueAt(thisEle.getAttribute("XMLName"), i, 0); if (oNode != null) { if (oNode.getDOMElement().hasAttribute(attrName)) { myTableModel.setValueAt(oNode.getAttribute(attrName), i, 1); } } } else { if (e.hasAttribute("Name")) { myTableModel.setValueAt(e.getAttribute("Name") + " CharData", i, 0); } else { myTableModel.setValueAt(e.getAttribute("XMLName") + " CharData", i, 0); } if (oNode != null) { if (DOMUtil.getCharacterData(oNode.getDOMElement()) != null) { myTableModel.setValueAt( DOMUtil.getCharacterData(oNode.getDOMElement() ), i, 1); } } } } } } if (refList.size() > 0) { for (int i=0; i<refList.size(); i++) { Element thisEle = null; if (refList.get(i) instanceof Element) { thisEle = (Element) refList.get(i); } if (thisEle != null) { if (thisEle.hasAttribute("Name")) { myTableModel.setValueAt(thisEle.getAttribute("Name"), i + attrList.size(), 0); } else if (thisEle.hasAttribute("XMLName")) { myTableModel.setValueAt(thisEle.getAttribute("XMLName"), i + attrList.size(), 0); } } } } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/e012aa1ea2f2c9a799228cc0728fbc62df3c71ab/MetadataPane.java/buggy/loci/ome/notebook/MetadataPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3555,
5537,
12,
1046,
425,
16,
9483,
5537,
8071,
16,
531,
958,
4201,
907,
603,
13,
288,
1377,
353,
27046,
273,
629,
31,
1377,
368,
1893,
309,
333,
3555,
5537,
353,
315,
3669,
1801,
6,
1377,
309,
261,
6834,
18,
83,
907,
422,
446,
13,
288,
3639,
5589,
1392,
41,
1040,
273,
4703,
1304,
18,
588,
1763,
3471,
2932,
51,
958,
1046,
3113,
1850,
268,
3201,
18,
588,
2375,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
77,
411,
1392,
41,
1040,
18,
1467,
5621,
77,
27245,
288,
1850,
3010,
333,
907,
273,
261,
1046,
13,
1392,
41,
1040,
18,
588,
12,
77,
1769,
1850,
309,
261,
2211,
907,
422,
425,
13,
353,
27046,
273,
638,
31,
3639,
289,
1377,
289,
1377,
469,
309,
261,
6834,
18,
83,
907,
480,
446,
597,
8071,
18,
83,
907,
422,
603,
13,
353,
27046,
273,
638,
31,
1377,
415,
273,
425,
31,
1377,
320,
907,
273,
603,
31,
1377,
268,
5537,
273,
8071,
31,
1377,
612,
273,
446,
31,
1377,
804,
22199,
16778,
3514,
273,
446,
31,
1377,
309,
261,
265,
480,
446,
13,
508,
273,
15867,
743,
461,
12,
73,
16,
265,
1769,
1377,
469,
508,
273,
15867,
743,
461,
12,
73,
1769,
1377,
514,
333,
461,
273,
508,
31,
1377,
6594,
682,
18,
1289,
12,
2211,
1769,
1377,
368,
1884,
1198,
310,
333,
4143,
2082,
1377,
727,
1250,
1198,
273,
629,
31,
1377,
368,
1564,
1492,
315,
2352,
6,
326,
11191,
1542,
1677,
854,
471,
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,
5537,
12,
1046,
425,
16,
9483,
5537,
8071,
16,
531,
958,
4201,
907,
603,
13,
288,
1377,
353,
27046,
273,
629,
31,
1377,
368,
1893,
309,
333,
3555,
5537,
353,
315,
3669,
1801,
6,
1377,
309,
261,
6834,
18,
83,
907,
422,
446,
13,
288,
3639,
5589,
1392,
41,
1040,
273,
4703,
1304,
18,
588,
1763,
3471,
2932,
51,
958,
1046,
3113,
1850,
268,
3201,
18,
588,
2375,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
77,
411,
1392,
41,
1040,
18,
1467,
5621,
77,
27245,
288,
1850,
3010,
333,
907,
273,
261,
1046,
13,
1392,
41,
1040,
18,
588,
12,
77,
1769,
1850,
309,
261,
2211,
907,
422,
425,
13,
353,
27046,
273,
638,
2
] |
fIndexerStateEvent.setState(state); Object[] listeners= fStateListeners.getListeners(); monitor.beginTask(Messages.PDOMManager_notifyTask_message, listeners.length); for (int i = 0; i < listeners.length; i++) { final IIndexerStateListener listener = (IIndexerStateListener) listeners[i]; SafeRunner.run(new ISafeRunnable(){ public void handleException(Throwable exception) { CCorePlugin.log(exception); } public void run() throws Exception { listener.indexChanged(fIndexerStateEvent); } }); monitor.worked(1); } return Status.OK_STATUS; }
|
IEclipsePreferences prefs = new ProjectScope(project.getProject()).getNode(CCorePlugin.PLUGIN_ID); if (prefs != null) { try { prefs.flush(); } catch (BackingStoreException e) { } } return Status.OK_STATUS; }
|
protected IStatus run(IProgressMonitor monitor) { fIndexerStateEvent.setState(state); Object[] listeners= fStateListeners.getListeners(); monitor.beginTask(Messages.PDOMManager_notifyTask_message, listeners.length); for (int i = 0; i < listeners.length; i++) { final IIndexerStateListener listener = (IIndexerStateListener) listeners[i]; SafeRunner.run(new ISafeRunnable(){ public void handleException(Throwable exception) { CCorePlugin.log(exception); } public void run() throws Exception { listener.indexChanged(fIndexerStateEvent); } }); monitor.worked(1); } return Status.OK_STATUS; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/764e4e3b0475d7f9171eb965216f47f10b9f00bd/PDOMManager.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
377,
1082,
202,
74,
20877,
1119,
1133,
18,
542,
1119,
12,
2019,
1769,
377,
1082,
202,
921,
8526,
4679,
33,
284,
1119,
5583,
18,
588,
5583,
5621,
377,
1082,
202,
10259,
18,
10086,
2174,
12,
5058,
18,
52,
8168,
1318,
67,
12336,
2174,
67,
2150,
16,
4679,
18,
2469,
1769,
377,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
377,
9506,
202,
6385,
467,
20877,
1119,
2223,
2991,
273,
261,
45,
20877,
1119,
2223,
13,
4679,
63,
77,
15533,
377,
9506,
202,
9890,
9709,
18,
2681,
12,
2704,
4437,
2513,
20013,
1435,
95,
377,
6862,
202,
482,
918,
20879,
12,
15155,
1520,
13,
288,
377,
25083,
202,
39,
4670,
3773,
18,
1330,
12,
4064,
1769,
377,
6862,
202,
97,
377,
6862,
202,
482,
918,
1086,
1435,
1216,
1185,
288,
377,
25083,
202,
12757,
18,
1615,
5033,
12,
74,
20877,
1119,
1133,
1769,
377,
6862,
202,
97,
377,
9506,
202,
22938,
377,
9506,
202,
10259,
18,
1252,
329,
12,
21,
1769,
377,
1082,
202,
97,
377,
1082,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
377,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
377,
1082,
202,
74,
20877,
1119,
1133,
18,
542,
1119,
12,
2019,
1769,
377,
1082,
202,
921,
8526,
4679,
33,
284,
1119,
5583,
18,
588,
5583,
5621,
377,
1082,
202,
10259,
18,
10086,
2174,
12,
5058,
18,
52,
8168,
1318,
67,
12336,
2174,
67,
2150,
16,
4679,
18,
2469,
1769,
377,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
377,
9506,
202,
6385,
467,
20877,
1119,
2223,
2991,
273,
261,
45,
20877,
1119,
2223,
13,
4679,
63,
77,
15533,
377,
9506,
202,
9890,
9709,
18,
2681,
12,
2704,
4437,
2513,
20013,
1435,
95,
377,
6862,
2
] |
} catch(ExecutionException ee) { throw new ThreadExecutionException(ee.getCause());
|
} catch(ExecutionException ee) { throw new ThreadExecutionException(ee.getCause());
|
public Object get() throws InterruptedException, ThreadExecutionException { try { return m_future.get(); } catch(ExecutionException ee) { throw new ThreadExecutionException(ee.getCause()); // HINT there is no need to keep the EE } }
|
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/6b25aa4051da296381a83a25971a7a4289543e54/FutureResultAdapter.java/buggy/src/jdk15/org/testng/internal/thread/FutureResultAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1033,
336,
1435,
1216,
7558,
16,
4884,
14576,
288,
1377,
775,
288,
540,
327,
312,
67,
14343,
18,
588,
5621,
1377,
289,
1044,
12,
14576,
14657,
13,
288,
540,
604,
394,
4884,
14576,
12,
1340,
18,
588,
10683,
10663,
368,
28110,
1915,
353,
1158,
1608,
358,
3455,
326,
512,
41,
1377,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1033,
336,
1435,
1216,
7558,
16,
4884,
14576,
288,
1377,
775,
288,
540,
327,
312,
67,
14343,
18,
588,
5621,
1377,
289,
1044,
12,
14576,
14657,
13,
288,
540,
604,
394,
4884,
14576,
12,
1340,
18,
588,
10683,
10663,
368,
28110,
1915,
353,
1158,
1608,
358,
3455,
326,
512,
41,
1377,
289,
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
] |
List roots = selected.getRootTypes(); List elements = new ArrayList(); for (int i = 0; i < roots.size(); i++) { Object obj = roots.get(i); if (obj instanceof MarkerType) { elements.add(obj); MarkerType[] subTypes = ((MarkerType) obj) .getAllSubTypes(); for (int j = 0; j < subTypes.length; j++) { MarkerType subType = subTypes[j]; if (!elements.contains(subType)) { elements.add(subType); } } } } return elements.toArray();
|
return getAllMarkerTypes(selected);
|
private IStructuredContentProvider getContentProvider() { return new IStructuredContentProvider() { public Object[] getElements(Object inputElement) { MarkerFilter selected = getSelectedFilter(); if(selected == null) return new Object[0]; List roots = selected.getRootTypes(); List elements = new ArrayList(); for (int i = 0; i < roots.size(); i++) { Object obj = roots.get(i); if (obj instanceof MarkerType) { elements.add(obj); MarkerType[] subTypes = ((MarkerType) obj) .getAllSubTypes(); for (int j = 0; j < subTypes.length; j++) { MarkerType subType = subTypes[j]; if (!elements.contains(subType)) { elements.add(subType); } } } } return elements.toArray(); } public void dispose() { } public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { } }; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d429cef46040235ef9ac2442a0d7364d1bc73be0/DialogMarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
30733,
1350,
2249,
5154,
2249,
1435,
288,
3639,
327,
394,
467,
30733,
1350,
2249,
1435,
288,
5411,
1071,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
2398,
202,
7078,
1586,
3170,
273,
16625,
1586,
5621,
2398,
202,
430,
12,
8109,
422,
446,
13,
2398,
202,
202,
2463,
394,
1033,
63,
20,
15533,
2398,
202,
7734,
987,
12876,
273,
3170,
18,
588,
2375,
2016,
5621,
7734,
987,
2186,
273,
394,
2407,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12876,
18,
1467,
5621,
277,
27245,
288,
10792,
1033,
1081,
273,
12876,
18,
588,
12,
77,
1769,
10792,
309,
261,
2603,
1276,
14742,
559,
13,
288,
13491,
2186,
18,
1289,
12,
2603,
1769,
13491,
14742,
559,
8526,
720,
2016,
273,
14015,
7078,
559,
13,
1081,
13,
27573,
263,
588,
1595,
1676,
2016,
5621,
13491,
364,
261,
474,
525,
273,
374,
31,
525,
411,
720,
2016,
18,
2469,
31,
525,
27245,
288,
18701,
14742,
559,
27084,
273,
720,
2016,
63,
78,
15533,
18701,
309,
16051,
6274,
18,
12298,
12,
1717,
559,
3719,
288,
27573,
2186,
18,
1289,
12,
1717,
559,
1769,
18701,
289,
13491,
289,
10792,
289,
7734,
289,
7734,
327,
2186,
18,
31447,
5621,
5411,
289,
5411,
1071,
918,
15825,
1435,
288,
5411,
289,
5411,
1071,
918,
810,
5033,
12,
18415,
14157,
16,
1033,
1592,
1210,
16,
10792,
1033,
394,
1210,
13,
288,
5411,
289,
3639,
289,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
30733,
1350,
2249,
5154,
2249,
1435,
288,
3639,
327,
394,
467,
30733,
1350,
2249,
1435,
288,
5411,
1071,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
2398,
202,
7078,
1586,
3170,
273,
16625,
1586,
5621,
2398,
202,
430,
12,
8109,
422,
446,
13,
2398,
202,
202,
2463,
394,
1033,
63,
20,
15533,
2398,
202,
7734,
987,
12876,
273,
3170,
18,
588,
2375,
2016,
5621,
7734,
987,
2186,
273,
394,
2407,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12876,
18,
1467,
5621,
277,
27245,
288,
10792,
1033,
1081,
273,
12876,
18,
588,
12,
77,
1769,
10792,
309,
261,
2603,
1276,
14742,
559,
13,
288,
13491,
2186,
18,
1289,
12,
2603,
1769,
2
] |
show();
|
setVisible(true);
|
private void initXTFRInfo(Properties XTFRProps) { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new JPanel(); sp.setLayout(new BorderLayout()); sp.setBorder(emptyBorder); // host panel for as400 as400p = new JPanel(); as400p.setBorder( BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelAS400"))); as400p.setLayout(new GridBagLayout()); JLabel snpLabel = new JLabel(LangTool.getString("xtfr.labelSystemName")); systemName = new JTextField(vt.getHostName()); systemName.setColumns(30); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy =0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(snpLabel, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); as400p.add(systemName,gbc); JLabel hfnpLabel = new JLabel(LangTool.getString("xtfr.labelHostFile")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(hfnpLabel, gbc); hostFile = new JTextField(); hostFile.setColumns(30); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 10); as400p.add(hostFile, gbc); JLabel idpLabel = new JLabel(LangTool.getString("xtfr.labelUserId")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(idpLabel, gbc); user = new JTextField(); user.setColumns(15); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 5); as400p.add(user, gbc); // password panel JLabel pwpLabel = new JLabel(LangTool.getString("xtfr.labelPassword")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(pwpLabel, gbc); password = new JPasswordField(); password.setColumns(15); password.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { txtONKeyPressed(evt); } }); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 5, 5, 5); as400p.add(password, gbc); // Query Wizard useQuery = new JCheckBox(LangTool.getString("xtfr.labelUseQuery")); useQuery.addItemListener(this); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(useQuery, gbc); //query button queryWizard = new JButton(LangTool.getString("xtfr.labelQueryWizard")); queryWizard.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { startWizard(); } }); queryWizard.setEnabled(false); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 5); as400p.add(queryWizard, gbc); // Field Selection panel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(fieldsLabel, gbc); allFields = new JRadioButton(LangTool.getString("xtfr.labelAllFields")); allFields.setSelected(true); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 5; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 0, 5); as400p.add(allFields, gbc); selectedFields = new JRadioButton(LangTool.getString("xtfr.labelSelectedFields")); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 5; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 0, 10); as400p.add(selectedFields, gbc); ButtonGroup fieldGroup = new ButtonGroup(); fieldGroup.add(allFields); fieldGroup.add(selectedFields); // Field Text Description panel textDescLabel = new JLabel(LangTool.getString("xtfr.labelTxtDesc")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); as400p.add(textDescLabel, gbc); txtDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescFull")); txtDesc.setSelected(true); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 6; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 5); as400p.add(txtDesc, gbc); intDesc = new JRadioButton(LangTool.getString("xtfr.labelTxtDescInt")); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 6; gbc.anchor = GridBagConstraints.CENTER; gbc.insets = new Insets(0, 5, 5, 10); as400p.add(intDesc, gbc); ButtonGroup txtDescGroup = new ButtonGroup(); txtDescGroup.add(txtDesc); txtDescGroup.add(intDesc); // pc panel for pc information JPanel pcp = new JPanel(new GridBagLayout()); pcp.setBorder( BorderFactory.createTitledBorder( LangTool.getString("xtfr.labelpc"))); JLabel pffLabel = new JLabel(LangTool.getString("xtfr.labelFileFormat")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); pcp.add(pffLabel, gbc); fileFormat = new JComboBox(); fileFormat.setPreferredSize(new Dimension(220, 25)); fileFormat.addItem(htmlFilter.getDescription()); fileFormat.addItem(OOFilter.getDescription()); fileFormat.addItem(ExcelFilter.getDescription()); fileFormat.addItem(KSpreadFilter.getDescription()); fileFormat.addItem(DelimitedFilter.getDescription()); fileFormat.addItem(FixedWidthFilter.getDescription()); fileFormat.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox) e.getSource(); filter = getFilterByDescription(); if (filter.getOutputFilterInstance().isCustomizable()) customize.setEnabled(true); else customize.setEnabled(false); } }); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 5, 0, 5); pcp.add(fileFormat, gbc); customize = new JButton(LangTool.getString("xtfr.labelCustomize")); customize.setPreferredSize(new Dimension(110, 25)); customize.setActionCommand("CUSTOMIZE"); customize.addActionListener(this); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 5, 0, 10); pcp.add(customize, gbc); // now make sure we set the customizable button enabled or not // depending on the filter. fileFormat.setSelectedIndex(0); JLabel pcpLabel = new JLabel(LangTool.getString("xtfr.labelPCFile")); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 5, 5); pcp.add(pcpLabel, gbc); localFile = new JTextField(); localFile.setColumns(15); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 5); pcp.add(localFile, gbc); JButton browsePC = new JButton(LangTool.getString("xtfr.labelPCBrowse")); browsePC.setActionCommand("BROWSEPC"); browsePC.addActionListener(this); browsePC.setPreferredSize(new Dimension(110, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 0, 10); pcp.add(browsePC, gbc); decimalSeparator = new JComboBox(); decimalSeparator.setPreferredSize(new Dimension(220, 25)); decimalSeparator.addItem(LangTool.getString("xtfr.period")); decimalSeparator.addItem(LangTool.getString("xtfr.comma")); // obtain the decimal separator for the machine locale DecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.getDefault()); if (formatter.getDecimalFormatSymbols().getDecimalSeparator() == '.') decimalSeparator.setSelectedIndex(0); else decimalSeparator.setSelectedIndex(1); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(5, 10, 10, 5); pcp.add(new JLabel(LangTool.getString("xtfr.labelDecimal")), gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.insets = new Insets(0, 5, 5, 5); pcp.add(decimalSeparator, gbc); sp.add(as400p, BorderLayout.NORTH); sp.add(pcp, BorderLayout.SOUTH); // options panel JPanel op = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10)); xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR")); xtfrButton.addActionListener(this); xtfrButton.setActionCommand("XTFR"); op.add(xtfrButton); JButton emailButton = new JButton(LangTool.getString("xtfr.labelXTFREmail")); emailButton.addActionListener(this); emailButton.setActionCommand("EMAIL"); op.add(emailButton); // add transfer save information button JButton saveButton = new JButton(LangTool.getString("xtfr.labelXTFRSave")); saveButton.addActionListener(this); saveButton.setActionCommand("SAVE"); op.add(saveButton); // add transfer load information button JButton loadButton = new JButton(LangTool.getString("xtfr.labelXTFRLoad")); loadButton.addActionListener(this); loadButton.setActionCommand("LOAD"); op.add(loadButton); mp.add(sp, BorderLayout.CENTER); mp.add(op, BorderLayout.SOUTH); this.getContentPane().add(mp, BorderLayout.CENTER); // this.setModal(false); // this.setModal(true); this.setTitle(LangTool.getString("xtfr.title")); //QueryPanel when Use Query selected as400QueryP = new JPanel(); as400QueryP.setLayout(new BorderLayout()); queryStatement = new JTextArea(2, 40); JScrollPane scrollPane = new JScrollPane(queryStatement); queryStatement.setLineWrap(true); as400QueryP.add(scrollPane, BorderLayout.CENTER); initXTFRFields(XTFRProps); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // now show the world what we can do show(); }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/caf3d80f5859ebce4d72dbe0ddd1d32b417462c4/XTFRFile.java/clean/src/org/tn5250j/tools/XTFRFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
3983,
9981,
966,
12,
2297,
1139,
56,
9981,
5047,
13,
288,
202,
202,
759,
752,
2690,
283,
16665,
24028,
471,
22412,
202,
202,
8107,
3744,
5795,
3744,
273,
394,
30814,
5621,
202,
202,
8107,
1008,
8107,
273,
13525,
1733,
18,
2640,
1921,
8107,
12,
2163,
16,
1728,
16,
374,
16,
1728,
1769,
202,
202,
759,
2774,
6594,
202,
202,
46,
5537,
6749,
273,
394,
24048,
5621,
202,
202,
1291,
18,
542,
3744,
12,
8815,
3744,
1769,
202,
202,
759,
2619,
6594,
202,
202,
46,
5537,
1694,
273,
394,
24048,
5621,
202,
202,
1752,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
1752,
18,
542,
8107,
12,
5531,
8107,
1769,
202,
202,
759,
1479,
6594,
364,
487,
16010,
202,
202,
345,
16010,
84,
273,
394,
24048,
5621,
202,
202,
345,
16010,
84,
18,
542,
8107,
12,
1082,
202,
8107,
1733,
18,
2640,
56,
305,
1259,
8107,
12,
9506,
202,
7275,
6364,
18,
588,
780,
2932,
15239,
4840,
18,
1925,
3033,
16010,
6,
3719,
1769,
202,
202,
345,
16010,
84,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
46,
2224,
28648,
2224,
273,
1082,
202,
2704,
21403,
12,
7275,
6364,
18,
588,
780,
2932,
15239,
4840,
18,
1925,
3163,
461,
7923,
1769,
202,
202,
4299,
461,
273,
394,
804,
16157,
12,
11734,
18,
588,
20946,
10663,
202,
202,
4299,
461,
18,
542,
3380,
12,
5082,
1769,
202,
202,
4490,
71,
273,
394,
13075,
5621,
202,
202,
4490,
71,
18,
5222,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
3983,
9981,
966,
12,
2297,
1139,
56,
9981,
5047,
13,
288,
202,
202,
759,
752,
2690,
283,
16665,
24028,
471,
22412,
202,
202,
8107,
3744,
5795,
3744,
273,
394,
30814,
5621,
202,
202,
8107,
1008,
8107,
273,
13525,
1733,
18,
2640,
1921,
8107,
12,
2163,
16,
1728,
16,
374,
16,
1728,
1769,
202,
202,
759,
2774,
6594,
202,
202,
46,
5537,
6749,
273,
394,
24048,
5621,
202,
202,
1291,
18,
542,
3744,
12,
8815,
3744,
1769,
202,
202,
759,
2619,
6594,
202,
202,
46,
5537,
1694,
273,
394,
24048,
5621,
202,
202,
1752,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
1752,
18,
542,
8107,
12,
5531,
8107,
1769,
202,
202,
759,
1479,
2
] |
public static Object invokeWithVarArg(Object obj, int methodID, VM_Address argAddress, VM_Type expectReturnType, boolean skip4Args)
|
public static Object invokeWithVarArg(int methodID, VM_Address argAddress, VM_Type expectReturnType)
|
public static Object invokeWithVarArg(Object obj, int methodID, VM_Address argAddress, VM_Type expectReturnType, boolean skip4Args) throws Exception { return packageAndInvoke(obj, methodID, argAddress, expectReturnType, skip4Args, true); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/09d8a822a8cf16e16c97ebb4496b4febb2e197a3/VM_JNIEnvironment.java/buggy/rvm/src/vm/arch/intel/jni/VM_JNIEnvironment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
4356,
1190,
1537,
4117,
12,
921,
1081,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
16,
4405,
202,
7397,
67,
559,
4489,
9102,
16,
1250,
2488,
24,
2615,
13,
377,
1216,
1185,
288,
565,
327,
2181,
1876,
10969,
12,
2603,
16,
707,
734,
16,
1501,
1887,
16,
4489,
9102,
16,
2488,
24,
2615,
16,
638,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
4356,
1190,
1537,
4117,
12,
921,
1081,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
16,
4405,
202,
7397,
67,
559,
4489,
9102,
16,
1250,
2488,
24,
2615,
13,
377,
1216,
1185,
288,
565,
327,
2181,
1876,
10969,
12,
2603,
16,
707,
734,
16,
1501,
1887,
16,
4489,
9102,
16,
2488,
24,
2615,
16,
638,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String indexedId = idFieldType.toInternal(cmd.id);
|
public void delete(DeleteUpdateCommand cmd) throws IOException { if (!cmd.fromPending && !cmd.fromCommitted) throw new SolrException(400,"meaningless command: " + cmd); if (!cmd.fromPending || !cmd.fromCommitted) throw new SolrException(400,"operation not supported" + cmd); synchronized(this) { deleteInIndex(cmd.id); pset.remove(cmd.id); } }
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/c5118151102a36851ac5430332617c2ca389c6d2/DirectUpdateHandler.java/clean/src/java/org/apache/solr/update/DirectUpdateHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1071,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
918,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1430,
12,
2613,
1891,
2189,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1797,
13,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1216,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1860,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
288,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
309,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
16051,
4172,
18,
2080,
8579,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
597,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
401,
4172,
18,
2080,
27813,
13,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
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,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
514,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1071,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
918,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1430,
12,
2613,
1891,
2189,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1797,
13,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1216,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
4172,
18,
350,
1769,
1860,
780,
8808,
548,
273,
612,
13715,
18,
869,
3061,
12,
2
] |
|
displayString+= " : " + returnType;
|
displayString+= " : " + returnType;
|
public void acceptVariable( String name, String returnType, int completionStart, int completionLength, int relevance) { String replaceString = ""; String displayString = ""; Image image = null; StringBuffer infoString = new StringBuffer(); // fill the replace, display and info strings replaceString = name; displayString = name; if(returnType != null) displayString+= " : " + returnType; // get the image ImageDescriptor imageDescriptor = CElementImageProvider.getVariableImageDescriptor(); image = registry.get( imageDescriptor ); // create proposal and add it to completions list ICompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(), null, image, completionStart, completionLength, relevance); completions.add(proposal); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/ResultCollector.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ResultCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
3092,
12,
202,
202,
780,
508,
16,
202,
202,
780,
9424,
16,
202,
202,
474,
8364,
1685,
16,
202,
202,
474,
8364,
1782,
16,
202,
202,
474,
6707,
5882,
13,
288,
1082,
202,
780,
1453,
780,
273,
1408,
31,
1082,
202,
780,
2562,
780,
273,
1408,
31,
1082,
202,
2040,
1316,
273,
446,
31,
1082,
202,
780,
1892,
1123,
780,
273,
394,
6674,
5621,
6862,
202,
759,
3636,
326,
1453,
16,
2562,
471,
1123,
2064,
1082,
202,
2079,
780,
273,
508,
31,
1082,
202,
5417,
780,
273,
508,
31,
1082,
202,
430,
12,
2463,
559,
480,
446,
13,
9506,
202,
5417,
780,
15,
33,
315,
294,
315,
397,
9424,
31,
9506,
202,
759,
336,
326,
1316,
4697,
202,
2040,
3187,
1316,
3187,
273,
385,
1046,
2040,
2249,
18,
588,
3092,
2040,
3187,
5621,
1082,
202,
2730,
273,
4023,
18,
588,
12,
1316,
3187,
11272,
1082,
202,
759,
752,
14708,
471,
527,
518,
358,
23738,
666,
1082,
202,
45,
11238,
14592,
14708,
273,
752,
14592,
12,
2079,
780,
16,
2562,
780,
16,
1123,
780,
18,
10492,
9334,
446,
16,
1316,
16,
8364,
1685,
16,
8364,
1782,
16,
6707,
5882,
1769,
1082,
202,
7806,
1115,
18,
1289,
12,
685,
8016,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
3092,
12,
202,
202,
780,
508,
16,
202,
202,
780,
9424,
16,
202,
202,
474,
8364,
1685,
16,
202,
202,
474,
8364,
1782,
16,
202,
202,
474,
6707,
5882,
13,
288,
1082,
202,
780,
1453,
780,
273,
1408,
31,
1082,
202,
780,
2562,
780,
273,
1408,
31,
1082,
202,
2040,
1316,
273,
446,
31,
1082,
202,
780,
1892,
1123,
780,
273,
394,
6674,
5621,
6862,
202,
759,
3636,
326,
1453,
16,
2562,
471,
1123,
2064,
1082,
202,
2079,
780,
273,
508,
31,
1082,
202,
5417,
780,
273,
508,
31,
1082,
202,
430,
12,
2463,
559,
480,
446,
13,
9506,
202,
5417,
780,
15,
33,
315,
294,
315,
397,
9424,
31,
9506,
202,
759,
336,
2
] |
Reaction reaction = new Reaction(); Molecule proton = new Molecule();
|
Reaction reaction = builder.newReaction(); Molecule proton = builder.newMolecule();
|
public void testGetReactantCoefficient_Molecule() { Reaction reaction = new Reaction(); Molecule proton = new Molecule(); reaction.addReactant(proton, 2.0); assertEquals(2.0, reaction.getReactantCoefficient(proton), 0.00001); assertEquals(-1.0, reaction.getReactantCoefficient(new Molecule()), 0.00001); }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/67261c8143759a6ee4feb79dc1687d6dcfa25f40/ReactionTest.java/clean/src/org/openscience/cdk/test/ReactionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
23469,
970,
4249,
25403,
67,
29669,
1435,
288,
3639,
868,
1128,
12836,
273,
394,
868,
1128,
5621,
3639,
490,
10545,
450,
1917,
273,
394,
490,
10545,
5621,
3639,
12836,
18,
1289,
23469,
970,
12,
685,
1917,
16,
576,
18,
20,
1769,
3639,
1815,
8867,
12,
22,
18,
20,
16,
12836,
18,
588,
23469,
970,
4249,
25403,
12,
685,
1917,
3631,
374,
18,
2787,
21,
1769,
7734,
1815,
8867,
19236,
21,
18,
20,
16,
12836,
18,
588,
23469,
970,
4249,
25403,
12,
2704,
490,
10545,
1435,
3631,
374,
18,
2787,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
967,
23469,
970,
4249,
25403,
67,
29669,
1435,
288,
3639,
868,
1128,
12836,
273,
394,
868,
1128,
5621,
3639,
490,
10545,
450,
1917,
273,
394,
490,
10545,
5621,
3639,
12836,
18,
1289,
23469,
970,
12,
685,
1917,
16,
576,
18,
20,
1769,
3639,
1815,
8867,
12,
22,
18,
20,
16,
12836,
18,
588,
23469,
970,
4249,
25403,
12,
685,
1917,
3631,
374,
18,
2787,
21,
1769,
7734,
1815,
8867,
19236,
21,
18,
20,
16,
12836,
18,
588,
23469,
970,
4249,
25403,
12,
2704,
490,
10545,
1435,
3631,
374,
18,
2787,
21,
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
] |
ClassWriter cw = new ClassWriter(true);
|
ClassWriter cw = AsmHelper.newClassWriter(true);
|
AsmClassInfo(final byte[] bytecode, final ClassLoader loader) { if (bytecode == null) { throw new IllegalArgumentException("bytecode can not be null"); } m_bytecode = bytecode; m_loaderRef = new WeakReference(loader); m_classInfoRepository = AsmClassInfoRepository.getRepository(loader); try { ClassReader cr = new ClassReader(bytecode); ClassWriter cw = new ClassWriter(true); ClassInfoClassAdapter visitor = new ClassInfoClassAdapter(cw); cr.accept(visitor, new Attribute[] { new CustomAttribute() }, false); } catch (Throwable t) { t.printStackTrace(); } m_classInfoRepository.addClassInfo(this); }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/765f98c7adb7615a4f8de294c8167a6bc4910d93/AsmClassInfo.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/reflect/impl/asm/AsmClassInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2970,
81,
19455,
12,
6385,
1160,
8526,
22801,
16,
727,
9403,
4088,
13,
288,
3639,
309,
261,
1637,
16651,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1637,
16651,
848,
486,
506,
446,
8863,
3639,
289,
3639,
312,
67,
1637,
16651,
273,
22801,
31,
3639,
312,
67,
6714,
1957,
273,
394,
23632,
2404,
12,
6714,
1769,
3639,
312,
67,
1106,
966,
3305,
273,
2970,
81,
19455,
3305,
18,
588,
3305,
12,
6714,
1769,
3639,
775,
288,
5411,
1659,
2514,
4422,
273,
394,
1659,
2514,
12,
1637,
16651,
1769,
5411,
31807,
14098,
273,
2970,
81,
2276,
18,
2704,
797,
2289,
12,
3767,
1769,
5411,
19010,
797,
4216,
8000,
273,
394,
19010,
797,
4216,
12,
71,
91,
1769,
5411,
4422,
18,
9436,
12,
3516,
1811,
16,
394,
3601,
8526,
288,
7734,
394,
6082,
1499,
1435,
5411,
19879,
629,
1769,
3639,
289,
1044,
261,
15155,
268,
13,
288,
5411,
268,
18,
1188,
6332,
5621,
3639,
289,
3639,
312,
67,
1106,
966,
3305,
18,
1289,
19455,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2970,
81,
19455,
12,
6385,
1160,
8526,
22801,
16,
727,
9403,
4088,
13,
288,
3639,
309,
261,
1637,
16651,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1637,
16651,
848,
486,
506,
446,
8863,
3639,
289,
3639,
312,
67,
1637,
16651,
273,
22801,
31,
3639,
312,
67,
6714,
1957,
273,
394,
23632,
2404,
12,
6714,
1769,
3639,
312,
67,
1106,
966,
3305,
273,
2970,
81,
19455,
3305,
18,
588,
3305,
12,
6714,
1769,
3639,
775,
288,
5411,
1659,
2514,
4422,
273,
394,
1659,
2514,
12,
1637,
16651,
1769,
5411,
31807,
14098,
273,
2970,
81,
2276,
18,
2704,
797,
2289,
12,
3767,
1769,
5411,
19010,
797,
4216,
8000,
273,
394,
19010,
797,
4216,
12,
71,
91,
1769,
5411,
2
] |
cacheBuffer.append(context.currentProject().isOnlineProject()?"_0_":"_1_");
|
cacheBuffer.append(context.currentProject().isOnlineProject() ? "_0_" : "_1_");
|
public String getCacheKeyForUserPermissions(String prefix, CmsDbContext context, CmsResource resource, CmsPermissionSet requiredPermissions) { StringBuffer cacheBuffer = new StringBuffer(64); cacheBuffer.append(prefix); cacheBuffer.append('_'); cacheBuffer.append(context.currentUser().getName()); cacheBuffer.append(context.currentProject().isOnlineProject()?"_0_":"_1_"); cacheBuffer.append(requiredPermissions.getPermissionString()); cacheBuffer.append('_'); cacheBuffer.append(resource.getStructureId().toString()); return cacheBuffer.toString(); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsCacheKey.java/buggy/src/org/opencms/db/CmsCacheKey.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26528,
19894,
6521,
12,
780,
1633,
16,
30670,
819,
16,
7630,
1058,
16,
2149,
5041,
694,
1931,
6521,
13,
288,
7734,
6674,
1247,
1892,
273,
394,
6674,
12,
1105,
1769,
3639,
1247,
1892,
18,
6923,
12,
3239,
1769,
3639,
1247,
1892,
18,
6923,
2668,
4623,
1769,
7734,
1247,
1892,
18,
6923,
12,
2472,
18,
2972,
1299,
7675,
17994,
10663,
3639,
1247,
1892,
18,
6923,
12,
2472,
18,
2972,
4109,
7675,
291,
16860,
4109,
1435,
692,
4192,
20,
9548,
294,
4192,
21,
67,
8863,
3639,
1247,
1892,
18,
6923,
12,
4718,
6521,
18,
588,
5041,
780,
10663,
3639,
1247,
1892,
18,
6923,
2668,
4623,
1769,
3639,
1247,
1892,
18,
6923,
12,
3146,
18,
588,
6999,
548,
7675,
10492,
10663,
3639,
327,
1247,
1892,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26528,
19894,
6521,
12,
780,
1633,
16,
30670,
819,
16,
7630,
1058,
16,
2149,
5041,
694,
1931,
6521,
13,
288,
7734,
6674,
1247,
1892,
273,
394,
6674,
12,
1105,
1769,
3639,
1247,
1892,
18,
6923,
12,
3239,
1769,
3639,
1247,
1892,
18,
6923,
2668,
4623,
1769,
7734,
1247,
1892,
18,
6923,
12,
2472,
18,
2972,
1299,
7675,
17994,
10663,
3639,
1247,
1892,
18,
6923,
12,
2472,
18,
2972,
4109,
7675,
291,
16860,
4109,
1435,
692,
4192,
20,
9548,
294,
4192,
21,
67,
8863,
3639,
1247,
1892,
18,
6923,
12,
4718,
6521,
18,
588,
5041,
780,
10663,
3639,
1247,
1892,
18,
6923,
2668,
4623,
1769,
3639,
1247,
1892,
18,
6923,
12,
3146,
18,
588,
6999,
548,
7675,
2
] |
} else if (c == '<') {
|
break; case '<' :
|
protected void handlePPInclude(int pos2, boolean next, int startingLineNumber) { char[] buffer = bufferStack[bufferStackPos]; int limit = bufferLimit[bufferStackPos]; skipOverWhiteSpace(); int startOffset = pos2; int pos = ++bufferPos[bufferStackPos]; if (pos >= limit) return; boolean local = false; String filename = null; int endOffset = startOffset; int nameOffset = 0; int nameEndOffset = 0; int nameLine = 0, endLine = 0; char c = buffer[pos]; if (c == '\n') return; if (c == '"') { nameLine = getLineNumber(bufferPos[bufferStackPos]); local = true; int start = bufferPos[bufferStackPos] + 1; int length = 0; boolean escaped = false; while (++bufferPos[bufferStackPos] < limit) { ++length; c = buffer[bufferPos[bufferStackPos]]; if (c == '"') { if (!escaped) break; } else if (c == '\\') { escaped = !escaped; continue; } escaped = false; } --length; filename = new String(buffer, start, length); nameOffset = start; nameEndOffset = start + length; endOffset = start + length + 1; } else if (c == '<') { nameLine = getLineNumber(bufferPos[bufferStackPos]); local = false; int start = bufferPos[bufferStackPos] + 1; int length = 0; while (++bufferPos[bufferStackPos] < limit && buffer[bufferPos[bufferStackPos]] != '>') ++length; endOffset = start + length + 1; nameOffset = start; nameEndOffset = start + length; filename = new String(buffer, start, length); } else { // handle macro expansions int startPos = pos; int len = 1; while (++bufferPos[bufferStackPos] < limit) { c = buffer[bufferPos[bufferStackPos]]; if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || (c >= '0' && c <= '9') || Character.isUnicodeIdentifierPart(c)) { ++len; continue; } else if (c == '\\' && bufferPos[bufferStackPos] + 1 < buffer.length && buffer[bufferPos[bufferStackPos] + 1] == '\n') { // escaped newline ++bufferPos[bufferStackPos]; len += 2; continue; } break; } Object expObject = definitions.get(buffer, startPos, len); if (expObject != null) { --bufferPos[bufferStackPos]; char[] t = null; if (expObject instanceof FunctionStyleMacro) { t = handleFunctionStyleMacro((FunctionStyleMacro) expObject, false); } else if (expObject instanceof ObjectStyleMacro) { t = ((ObjectStyleMacro) expObject).expansion; } if (t != null) { t = replaceArgumentMacros(t); if ((t[t.length - 1] == t[0]) && (t[0] == '\"')) { local = true; filename = new String(t, 1, t.length - 2); } else if (t[0] == '<' && t[t.length - 1] == '>') { local = false; filename = new String(t, 1, t.length - 2); } } } } if (filename == null || filename == EMPTY_STRING) { handleProblem(IProblem.PREPROCESSOR_INVALID_DIRECTIVE, startOffset, null); return; } char[] fileNameArray = filename.toCharArray(); // TODO else we need to do macro processing on the rest of the line endLine = getLineNumber(bufferPos[bufferStackPos]); skipToNewLine(); if (parserMode == ParserMode.QUICK_PARSE) { Object inclusion = createInclusionConstruct(fileNameArray, EMPTY_CHAR_ARRAY, local, startOffset, startingLineNumber, nameOffset, nameEndOffset, nameLine, endOffset, endLine, false); quickParsePushPopInclusion(inclusion); } else { CodeReader reader = null; if (local) { // create an include path reconciled to the current directory File file = new File(String.valueOf(getCurrentFilename())); File parentFile = file.getParentFile(); if (parentFile != null) { String absolutePath = parentFile.getAbsolutePath(); String finalPath = ScannerUtility.createReconciledPath( absolutePath, filename); reader = (CodeReader) fileCache.get(finalPath.toCharArray()); if (reader == null) { reader = createReaderDuple(finalPath); if (reader != null && reader.filename != null) fileCache.put(reader.filename, reader); } if (reader != null) { pushContext(reader.buffer, new InclusionData(reader, createInclusionConstruct(fileNameArray, reader.filename, local, startOffset, startingLineNumber, nameOffset, nameEndOffset, nameLine, endOffset, endLine, false))); return; } } } // iterate through the include paths // foundme has odd logic but if we're not include_next, then we are // looking for the // first occurance, otherwise, we're looking for the one after us boolean foundme = !next; if (includePaths != null) for (int i = 0; i < includePaths.length; ++i) { String finalPath = ScannerUtility.createReconciledPath( includePaths[i], filename); if (!foundme) { if (finalPath .equals(((InclusionData) bufferData[bufferStackPos]).reader.filename)) { foundme = true; continue; } } else { reader = (CodeReader) fileCache.get(finalPath.toCharArray()); if (reader == null) { reader = createReaderDuple(finalPath); if (reader != null && reader.filename != null) fileCache.put(reader.filename, reader); } if (reader != null) { Object inclusion = createInclusionConstruct(fileNameArray, reader.filename, local, startOffset, startingLineNumber, nameOffset, nameEndOffset, nameLine, endOffset, endLine, false); pushContext(reader.buffer, new InclusionData(reader, inclusion)); return; } } } if (reader == null) handleProblem(IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND, startOffset, fileNameArray); } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1b3892001366ab19dd3512952c709244987f5fbc/BaseScanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/BaseScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
6584,
8752,
12,
474,
949,
22,
16,
1250,
1024,
16,
509,
5023,
31063,
13,
288,
1377,
1149,
8526,
1613,
273,
1613,
2624,
63,
4106,
2624,
1616,
15533,
1377,
509,
1800,
273,
1613,
3039,
63,
4106,
2624,
1616,
15533,
1377,
2488,
4851,
23108,
5621,
1377,
509,
18245,
273,
949,
22,
31,
1377,
509,
949,
273,
965,
4106,
1616,
63,
4106,
2624,
1616,
15533,
1377,
309,
261,
917,
1545,
1800,
13,
540,
327,
31,
1377,
1250,
1191,
273,
629,
31,
1377,
514,
1544,
273,
446,
31,
1377,
509,
25507,
273,
18245,
31,
1377,
509,
508,
2335,
273,
374,
31,
1377,
509,
508,
1638,
2335,
273,
374,
31,
1377,
509,
508,
1670,
273,
374,
16,
31763,
273,
374,
31,
1377,
1149,
276,
273,
1613,
63,
917,
15533,
1377,
309,
261,
71,
422,
2337,
82,
6134,
540,
327,
31,
1377,
309,
261,
71,
422,
4754,
13,
288,
540,
508,
1670,
273,
26089,
12,
4106,
1616,
63,
4106,
2624,
1616,
19226,
540,
1191,
273,
638,
31,
540,
509,
787,
273,
1613,
1616,
63,
4106,
2624,
1616,
65,
397,
404,
31,
540,
509,
769,
273,
374,
31,
540,
1250,
8345,
273,
629,
31,
540,
1323,
261,
9904,
4106,
1616,
63,
4106,
2624,
1616,
65,
411,
1800,
13,
288,
5411,
965,
2469,
31,
5411,
276,
273,
1613,
63,
4106,
1616,
63,
4106,
2624,
1616,
13563,
31,
5411,
309,
261,
71,
422,
4754,
13,
288,
9079,
309,
16051,
16502,
13,
5375,
898,
31,
5411,
289,
469,
309,
261,
71,
422,
5282,
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,
565,
4750,
918,
1640,
6584,
8752,
12,
474,
949,
22,
16,
1250,
1024,
16,
509,
5023,
31063,
13,
288,
1377,
1149,
8526,
1613,
273,
1613,
2624,
63,
4106,
2624,
1616,
15533,
1377,
509,
1800,
273,
1613,
3039,
63,
4106,
2624,
1616,
15533,
1377,
2488,
4851,
23108,
5621,
1377,
509,
18245,
273,
949,
22,
31,
1377,
509,
949,
273,
965,
4106,
1616,
63,
4106,
2624,
1616,
15533,
1377,
309,
261,
917,
1545,
1800,
13,
540,
327,
31,
1377,
1250,
1191,
273,
629,
31,
1377,
514,
1544,
273,
446,
31,
1377,
509,
25507,
273,
18245,
31,
1377,
509,
508,
2335,
273,
374,
31,
1377,
509,
508,
1638,
2335,
273,
374,
31,
1377,
509,
508,
1670,
273,
374,
16,
31763,
273,
374,
2
] |
public String prettyPrintSortOrder(boolean detailed) { return "Keyword Relevancy";
|
public String prettyPrintSortOrder(boolean detailed, Locale locale) { return UtilProperties.getMessage(resource, "ProductKeywordRelevency", locale);
|
public String prettyPrintSortOrder(boolean detailed) { return "Keyword Relevancy"; }
|
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/a0a99db38a608b5af3fc0585fced6229e794b469/ProductSearch.java/clean/applications/product/src/org/ofbiz/product/product/ProductSearch.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
30410,
31460,
12,
6494,
6864,
13,
288,
5411,
327,
315,
8736,
4275,
14965,
12514,
14432,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
30410,
31460,
12,
6494,
6864,
13,
288,
5411,
327,
315,
8736,
4275,
14965,
12514,
14432,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (categoryType.getName().equalsIgnoreCase(categoryTypeName)) {
|
if ( categoryType.getName().equalsIgnoreCase( categoryTypeName ) ) {
|
public boolean isUniqueCategoryTypeName(String categoryTypeName) { CategoryTypeDomainObject[] categoryTypes = getAllCategoryTypes(); for (int i = 0; i < categoryTypes.length; i++) { CategoryTypeDomainObject categoryType = categoryTypes[i]; if (categoryType.getName().equalsIgnoreCase(categoryTypeName)) { return false; } } return true; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/f203f6fc91c9ae8d2fcd69e28ea9f0981a4ee690/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6303,
4457,
7947,
12,
780,
3150,
7947,
13,
288,
3639,
9856,
559,
3748,
921,
8526,
3150,
2016,
273,
5514,
4457,
2016,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3150,
2016,
18,
2469,
31,
277,
27245,
288,
5411,
9856,
559,
3748,
921,
3150,
559,
273,
3150,
2016,
63,
77,
15533,
5411,
309,
261,
3150,
559,
18,
17994,
7675,
14963,
5556,
12,
3150,
7947,
262,
262,
288,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
1250,
353,
6303,
4457,
7947,
12,
780,
3150,
7947,
13,
288,
3639,
9856,
559,
3748,
921,
8526,
3150,
2016,
273,
5514,
4457,
2016,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3150,
2016,
18,
2469,
31,
277,
27245,
288,
5411,
9856,
559,
3748,
921,
3150,
559,
273,
3150,
2016,
63,
77,
15533,
5411,
309,
261,
3150,
559,
18,
17994,
7675,
14963,
5556,
12,
3150,
7947,
262,
262,
288,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
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
] |
type = labels.getString(clazz + ".feed-type.collection"); Collection col = (Collection)dso; description = col.getMetadata("short_description"); title = col.getMetadata("name"); logo = col.getLogo(); scope.setScope(col); } else if (dso.getType() == Constants.COMMUNITY)
|
channel.setTitle(ConfigurationManager.getProperty("dspace.name")); channel.setLink(dspaceUrl); channel.setDescription(labels.getString(clazz + ".general-feed.description")); } else
|
private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException { // container-level elements String objectUrl = ConfigurationManager.getBooleanProperty("webui.feed.localresolve") ? HandleManager.resolveToURL(context, dso.getHandle()) : HandleManager.getCanonicalForm(dso.getHandle()); String dspaceUrl = ConfigurationManager.getProperty("dspace.url"); String type = null; String description = null; String title = null; Bitstream logo = null; // browse scope BrowseScope scope = new BrowseScope(context); // the feed Channel channel = new Channel(); if (dso.getType() == Constants.COLLECTION) { type = labels.getString(clazz + ".feed-type.collection"); Collection col = (Collection)dso; description = col.getMetadata("short_description"); title = col.getMetadata("name"); logo = col.getLogo(); scope.setScope(col); } else if (dso.getType() == Constants.COMMUNITY) { type = labels.getString(clazz + ".feed-type.community"); Community comm = (Community)dso; description = comm.getMetadata("short_description"); title = comm.getMetadata("name"); logo = comm.getLogo(); scope.setScope(comm); } // put in container-level data channel.setDescription(description); channel.setLink(objectUrl); //build channel title by passing in type and title String channelTitle = MessageFormat.format(labels.getString(clazz + ".feed.title"), new Object[]{type, title}); channel.setTitle(channelTitle); if (logo != null) { // we use the path to the logo for this, the logo itself cannot // be contained in the rdf. Not all RSS-viewers show this logo. Image image = new Image(); image.setLink(objectUrl); image.setTitle(labels.getString(clazz + ".logo.title")); image.setUrl(dspaceUrl + "/retrieve/" + logo.getID()); channel.setImage(image); } // this is a direct link to the search-engine of dspace. It searches // in the current collection. Since the current version of DSpace // can't search within collections anymore, this works only in older // version until this bug is fixed. TextInput input = new TextInput(); input.setLink(dspaceUrl + "/simple-search"); input.setDescription( labels.getString(clazz + ".search.description") ); //build search title by passing in type String searchTitle = MessageFormat.format(labels.getString(clazz + ".search.title"), new Object[]{type}); input.setTitle(searchTitle); input.setName(labels.getString(clazz + ".search.name")); channel.setTextInput(input); // gather & add items to the feed. scope.setTotal(itemCount); List results = Browse.getLastSubmitted(scope); List items = new ArrayList(); for ( int i = 0; i < results.size(); i++ ) { items.add( itemFromDSpaceItem(context, (Item)results.get(i)) ); } channel.setItems(items); return channel; }
|
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/bfcf6e053df70abea7841bc061af54b2a34f31db/FeedServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/FeedServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5307,
2103,
8141,
12,
1042,
819,
16,
463,
3819,
921,
302,
2048,
13,
377,
202,
202,
15069,
1860,
16,
6483,
565,
288,
377,
202,
759,
1478,
17,
2815,
2186,
377,
202,
780,
733,
1489,
273,
4659,
1318,
18,
588,
5507,
1396,
2932,
4875,
4881,
18,
7848,
18,
3729,
10828,
7923,
377,
202,
202,
35,
5004,
1318,
18,
10828,
774,
1785,
12,
2472,
16,
302,
2048,
18,
588,
3259,
10756,
377,
202,
202,
30,
5004,
1318,
18,
588,
15512,
1204,
12,
72,
2048,
18,
588,
3259,
10663,
565,
202,
377,
202,
780,
302,
2981,
1489,
273,
4659,
1318,
18,
588,
1396,
2932,
2377,
909,
18,
718,
8863,
377,
202,
780,
618,
273,
446,
31,
377,
202,
780,
2477,
273,
446,
31,
377,
202,
780,
2077,
273,
446,
31,
377,
202,
5775,
3256,
19128,
273,
446,
31,
377,
202,
759,
21670,
2146,
377,
202,
27304,
3876,
2146,
273,
394,
605,
12481,
3876,
12,
2472,
1769,
377,
202,
759,
326,
4746,
377,
202,
2909,
1904,
273,
394,
5307,
5621,
377,
202,
377,
202,
430,
261,
72,
2048,
18,
588,
559,
1435,
422,
5245,
18,
25964,
13,
377,
202,
95,
377,
202,
202,
723,
273,
3249,
18,
588,
780,
12,
830,
3638,
397,
3552,
7848,
17,
723,
18,
5548,
8863,
377,
202,
202,
2532,
645,
273,
261,
2532,
13,
72,
2048,
31,
5411,
202,
3384,
273,
645,
18,
588,
2277,
2932,
6620,
67,
3384,
8863,
5411,
202,
2649,
273,
645,
18,
588,
2277,
2932,
529,
8863,
5411,
202,
19882,
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,
5307,
2103,
8141,
12,
1042,
819,
16,
463,
3819,
921,
302,
2048,
13,
377,
202,
202,
15069,
1860,
16,
6483,
565,
288,
377,
202,
759,
1478,
17,
2815,
2186,
377,
202,
780,
733,
1489,
273,
4659,
1318,
18,
588,
5507,
1396,
2932,
4875,
4881,
18,
7848,
18,
3729,
10828,
7923,
377,
202,
202,
35,
5004,
1318,
18,
10828,
774,
1785,
12,
2472,
16,
302,
2048,
18,
588,
3259,
10756,
377,
202,
202,
30,
5004,
1318,
18,
588,
15512,
1204,
12,
72,
2048,
18,
588,
3259,
10663,
565,
202,
377,
202,
780,
302,
2981,
1489,
273,
4659,
1318,
18,
588,
1396,
2932,
2377,
909,
18,
718,
8863,
377,
202,
780,
618,
273,
446,
31,
377,
202,
780,
2477,
2
] |
} else if ( ch == '"' && !keepQuot) { _printer.printText(""");
|
protected final void printXMLChar( int ch, boolean keepQuot ) throws IOException { if ( ch == '<') { _printer.printText("<"); } else if (ch == '&') { _printer.printText("&"); } else if (ch == '>'){ // character sequence "]]>" can't appear in content, therefore // we should escape '>' _printer.printText(">"); } else if ( ch == '"' && !keepQuot) { _printer.printText("""); } else if ( _encodingInfo.isPrintable((char)ch) && XML11Char.isXML11ValidLiteral(ch)) { _printer.printText((char)ch); } else { // The character is not printable, print as character reference. _printer.printText( "&#x" ); _printer.printText(Integer.toHexString(ch)); _printer.printText( ';' ); } }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ace13acacab9f1afff77b7d449bbc214a1b82b90/XML11Serializer.java/clean/src/org/apache/xml/serialize/XML11Serializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1172,
4201,
2156,
12,
509,
462,
16,
1250,
3455,
7678,
262,
1216,
1860,
288,
3639,
309,
261,
462,
422,
2368,
6134,
288,
5411,
389,
30439,
18,
1188,
1528,
2932,
10,
5618,
4868,
1769,
3639,
289,
469,
309,
261,
343,
422,
5183,
6134,
288,
5411,
389,
30439,
18,
1188,
1528,
2932,
10,
931,
4868,
1769,
202,
202,
97,
469,
309,
261,
343,
422,
7481,
15329,
1082,
202,
759,
3351,
3102,
9850,
65,
2984,
848,
1404,
9788,
316,
913,
16,
13526,
1082,
202,
759,
732,
1410,
4114,
7481,
1875,
202,
67,
30439,
18,
1188,
1528,
2932,
10,
4521,
4868,
1769,
3639,
289,
469,
309,
261,
462,
422,
4754,
597,
401,
10102,
7678,
13,
288,
5411,
389,
30439,
18,
1188,
1528,
2932,
10,
9270,
4868,
1769,
3639,
289,
469,
309,
261,
389,
5999,
966,
18,
291,
5108,
429,
12443,
3001,
13,
343,
13,
597,
3167,
2499,
2156,
18,
291,
4201,
2499,
1556,
6177,
12,
343,
3719,
288,
2398,
389,
30439,
18,
1188,
1528,
12443,
3001,
13,
343,
1769,
3639,
289,
469,
288,
5411,
368,
1021,
3351,
353,
486,
23474,
16,
1172,
487,
3351,
2114,
18,
5411,
389,
30439,
18,
1188,
1528,
12,
31235,
92,
6,
11272,
5411,
389,
30439,
18,
1188,
1528,
12,
4522,
18,
869,
14866,
12,
343,
10019,
5411,
389,
30439,
18,
1188,
1528,
12,
7554,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1172,
4201,
2156,
12,
509,
462,
16,
1250,
3455,
7678,
262,
1216,
1860,
288,
3639,
309,
261,
462,
422,
2368,
6134,
288,
5411,
389,
30439,
18,
1188,
1528,
2932,
10,
5618,
4868,
1769,
3639,
289,
469,
309,
261,
343,
422,
5183,
6134,
288,
5411,
389,
30439,
18,
1188,
1528,
2932,
10,
931,
4868,
1769,
202,
202,
97,
469,
309,
261,
343,
422,
7481,
15329,
1082,
202,
759,
3351,
3102,
9850,
65,
2984,
848,
1404,
9788,
316,
913,
16,
13526,
1082,
202,
759,
732,
1410,
4114,
7481,
1875,
202,
67,
30439,
18,
1188,
1528,
2932,
10,
4521,
4868,
1769,
3639,
289,
469,
309,
261,
462,
422,
4754,
597,
401,
10102,
7678,
13,
288,
5411,
389,
30439,
2
] |
|
public PDBWriter(Writer out) { try { if (out instanceof BufferedWriter) { writer = (BufferedWriter)out; } else { writer = new BufferedWriter(out); } } catch (Exception exc) { } }
|
public PDBWriter() { this(new StringWriter()); }
|
public PDBWriter(Writer out) { try { if (out instanceof BufferedWriter) { writer = (BufferedWriter)out; } else { writer = new BufferedWriter(out); } } catch (Exception exc) { } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b5252a136cb6c7404b5470c6238f0961e7c54a61/PDBWriter.java/buggy/src/org/openscience/cdk/io/PDBWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21601,
2289,
12,
2289,
596,
13,
288,
377,
202,
698,
288,
377,
202,
202,
430,
261,
659,
1276,
22490,
13,
288,
7734,
2633,
273,
261,
17947,
2289,
13,
659,
31,
5411,
289,
469,
288,
7734,
2633,
273,
394,
22490,
12,
659,
1769,
5411,
289,
3639,
289,
1044,
261,
503,
3533,
13,
288,
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,
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,
377,
1071,
21601,
2289,
12,
2289,
596,
13,
288,
377,
202,
698,
288,
377,
202,
202,
430,
261,
659,
1276,
22490,
13,
288,
7734,
2633,
273,
261,
17947,
2289,
13,
659,
31,
5411,
289,
469,
288,
7734,
2633,
273,
394,
22490,
12,
659,
1769,
5411,
289,
3639,
289,
1044,
261,
503,
3533,
13,
288,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertEquals(expectedMakeCommand, target.getMakeCommand());
|
assertEquals("make", target.getMakeCommand());
|
private void checkRootTarget(ITarget target, String oicValue) throws BuildException { // Target stuff String expectedCleanCmd = "del /myworld"; String expectedMakeCommand = "make"; String expectedParserId = "org.eclipse.cdt.core.PE"; assertTrue(target.isTestTarget()); assertEquals(target.getDefaultExtension(), rootExt); assertEquals(expectedCleanCmd, target.getCleanCommand()); assertEquals(expectedMakeCommand, target.getMakeCommand()); assertEquals(expectedParserId, target.getBinaryParserId()); // Tools ITool[] tools = target.getTools(); // Root Tool ITool rootTool = tools[0]; assertEquals("Root Tool", rootTool.getName()); // 4 Options are defined in the root tool IOption[] options = rootTool.getOptions(); assertEquals(4, options.length); // First option is a 3-element list with 1 built-in assertEquals("List Option in Top", options[0].getName()); assertEquals(IOption.STRING_LIST, options[0].getValueType()); String[] valueList = options[0].getStringListValue(); assertEquals(2, valueList.length); assertEquals("a", valueList[0]); assertEquals("b", valueList[1]); String[] builtInList = options[0].getBuiltIns(); assertEquals(1, builtInList.length); assertEquals("c", builtInList[0]); assertEquals(options[0].getCommand(), "-L"); // Next option is a boolean in top assertEquals("Boolean Option in Top", options[1].getName()); assertEquals(IOption.BOOLEAN, options[1].getValueType()); assertEquals(false, options[1].getBooleanValue()); assertEquals("-b", options[1].getCommand()); // Next option is a string category assertEquals("String Option in Category", options[2].getName()); assertEquals(IOption.STRING, options[2].getValueType()); assertEquals("x", options[2].getStringValue()); // Final option is an enumerated assertEquals("Enumerated Option in Category", options[3].getName()); assertEquals(IOption.ENUMERATED, options[3].getValueType()); assertEquals("Default Enum", options[3].getSelectedEnum()); valueList = options[3].getApplicableValues(); assertEquals(2, valueList.length); assertEquals("Default Enum", valueList[0]); assertEquals("Another Enum", valueList[1]); assertEquals("-e1", options[3].getEnumCommand(valueList[0])); assertEquals("-e2", options[3].getEnumCommand(valueList[1])); // Option Categories IOptionCategory topCategory = rootTool.getTopOptionCategory(); assertEquals("Root Tool", topCategory.getName()); options = topCategory.getOptions(null); assertEquals(2, options.length); assertEquals("List Option in Top", options[0].getName()); assertEquals("Boolean Option in Top", options[1].getName()); IOptionCategory[] categories = topCategory.getChildCategories(); assertEquals(1, categories.length); assertEquals("Category", categories[0].getName()); options = categories[0].getOptions(null); assertEquals(2, options.length); assertEquals("String Option in Category", options[0].getName()); assertEquals("Enumerated Option in Category", options[1].getName()); // Configs IConfiguration[] configs = target.getConfigurations(); // Root Config IConfiguration rootConfig = configs[0]; assertEquals("Root Config", rootConfig.getName()); // Tools tools = rootConfig.getTools(); assertEquals(1, tools.length); assertEquals("Root Tool", tools[0].getName()); assertEquals("-r", tools[0].getOutputFlag()); assertTrue(tools[0].buildsFileType("foo")); assertTrue(tools[0].buildsFileType("bar")); assertTrue(tools[0].producesFileType("toor")); assertEquals("doIt", tools[0].getToolCommand()); assertEquals("", tools[0].getOutputPrefix()); // Root Override Config assertEquals("Root Override Config", configs[1].getName()); tools = configs[1].getTools(); assertEquals(1, tools.length); assertTrue(tools[0] instanceof ToolReference); assertEquals("Root Tool", tools[0].getName()); topCategory = tools[0].getTopOptionCategory(); options = topCategory.getOptions(configs[1]); assertEquals(2, options.length); assertEquals("List Option in Top", options[0].getName()); valueList = options[0].getStringListValue(); assertEquals("a", valueList[0]); assertEquals("b", valueList[1]); assertEquals("Boolean Option in Top", options[1].getName()); categories = topCategory.getChildCategories(); options = categories[0].getOptions(configs[1]); assertEquals(2, options.length); assertEquals("String Option in Category", options[0].getName()); assertEquals("y", options[0].getStringValue()); assertEquals("Enumerated Option in Category", options[1].getName()); valueList = options[1].getApplicableValues(); assertEquals(2, valueList.length); assertEquals("Default Enum", valueList[0]); assertEquals("Another Enum", valueList[1]); assertEquals("-e1", options[1].getEnumCommand(valueList[0])); assertEquals("-e2", options[1].getEnumCommand(valueList[1])); assertEquals(1, tools.length); assertEquals("Root Tool", tools[0].getName()); assertEquals("-r", tools[0].getOutputFlag()); assertTrue(tools[0].buildsFileType("foo")); assertTrue(tools[0].buildsFileType("bar")); assertTrue(tools[0].producesFileType("toor")); assertEquals("doIt", tools[0].getToolCommand()); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e09b94f945a1f60ed6ae4684263bbcff69ac9a60/ManagedBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
2375,
2326,
12,
1285,
826,
1018,
16,
514,
320,
335,
620,
13,
1216,
18463,
288,
202,
202,
759,
5916,
10769,
202,
202,
780,
2665,
7605,
5931,
273,
315,
3771,
342,
4811,
18179,
14432,
202,
202,
780,
2665,
6464,
2189,
273,
315,
6540,
14432,
202,
202,
780,
2665,
2678,
548,
273,
315,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
1423,
14432,
202,
202,
11231,
5510,
12,
3299,
18,
291,
4709,
2326,
10663,
202,
202,
11231,
8867,
12,
3299,
18,
588,
1868,
3625,
9334,
1365,
2482,
1769,
202,
202,
11231,
8867,
12,
3825,
7605,
5931,
16,
1018,
18,
588,
7605,
2189,
10663,
202,
202,
11231,
8867,
12,
3825,
6464,
2189,
16,
1018,
18,
588,
6464,
2189,
10663,
202,
202,
11231,
8867,
12,
3825,
2678,
548,
16,
1018,
18,
588,
5905,
2678,
548,
10663,
9506,
202,
759,
19089,
202,
202,
45,
6364,
8526,
8513,
273,
1018,
18,
588,
10348,
5621,
202,
202,
759,
7450,
13288,
202,
202,
45,
6364,
1365,
6364,
273,
8513,
63,
20,
15533,
202,
202,
11231,
8867,
2932,
2375,
13288,
3113,
1365,
6364,
18,
17994,
10663,
202,
202,
759,
1059,
5087,
854,
2553,
316,
326,
1365,
5226,
202,
202,
45,
1895,
8526,
702,
273,
1365,
6364,
18,
588,
1320,
5621,
202,
202,
11231,
8867,
12,
24,
16,
702,
18,
2469,
1769,
202,
202,
759,
5783,
1456,
353,
279,
890,
17,
2956,
666,
598,
404,
6650,
17,
267,
202,
202,
11231,
8867,
2932,
682,
2698,
316,
7202,
3113,
702,
63,
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,
225,
202,
1152,
918,
866,
2375,
2326,
12,
1285,
826,
1018,
16,
514,
320,
335,
620,
13,
1216,
18463,
288,
202,
202,
759,
5916,
10769,
202,
202,
780,
2665,
7605,
5931,
273,
315,
3771,
342,
4811,
18179,
14432,
202,
202,
780,
2665,
6464,
2189,
273,
315,
6540,
14432,
202,
202,
780,
2665,
2678,
548,
273,
315,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
1423,
14432,
202,
202,
11231,
5510,
12,
3299,
18,
291,
4709,
2326,
10663,
202,
202,
11231,
8867,
12,
3299,
18,
588,
1868,
3625,
9334,
1365,
2482,
1769,
202,
202,
11231,
8867,
12,
3825,
7605,
5931,
16,
1018,
18,
588,
7605,
2189,
10663,
202,
202,
11231,
8867,
12,
3825,
6464,
2189,
16,
1018,
18,
588,
2
] |
if(sign == null) { return; }
|
public void visitAssignmentExpression(@NotNull PsiAssignmentExpression expression) { super.visitAssignmentExpression(expression); if(!WellFormednessUtils.isWellFormed(expression)){ return; } final PsiJavaToken sign = expression.getOperationSign(); if(sign == null) { return; } final IElementType tokenType = sign.getTokenType(); if (!JavaTokenType.EQ.equals(tokenType)) { return; } final PsiExpression lhs = expression.getLExpression(); if(!(lhs instanceof PsiReferenceExpression)){ return; } if (!TypeUtils.expressionHasTypeOrSubtype("java.util.Date", lhs) && !TypeUtils.expressionHasTypeOrSubtype("java.util.Calendar", lhs)) { return; } final PsiElement lhsReferent = ((PsiReference) lhs).resolve(); if(!(lhsReferent instanceof PsiField)){ return; } final PsiExpression rhs = expression.getRExpression(); if (!(rhs instanceof PsiReferenceExpression)) { return; } final PsiElement rhsReferent = ((PsiReference) rhs).resolve(); if (!(rhsReferent instanceof PsiParameter)) { return; } if (!(rhsReferent.getParent() instanceof PsiParameterList)) { return; } registerError(lhs); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/10dfc0821a579a6a0ff949a64d378572f57a4625/AssignmentToDateFieldFromParameterInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/encapsulation/AssignmentToDateFieldFromParameterInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
7729,
2300,
26964,
5962,
453,
7722,
7729,
2300,
2652,
13,
288,
5411,
2240,
18,
11658,
7729,
2300,
12,
8692,
1769,
5411,
309,
12,
5,
59,
1165,
1204,
329,
4496,
1989,
18,
291,
59,
1165,
1204,
329,
12,
8692,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
2652,
18,
588,
2988,
2766,
5621,
5411,
309,
12,
2977,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
5411,
309,
16051,
5852,
28675,
18,
27247,
18,
14963,
12,
2316,
559,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8499,
273,
2652,
18,
588,
48,
2300,
5621,
5411,
309,
12,
5,
12,
80,
4487,
1276,
453,
7722,
2404,
2300,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
309,
16051,
559,
1989,
18,
8692,
5582,
559,
1162,
1676,
723,
2932,
6290,
18,
1367,
18,
1626,
3113,
8499,
13,
10792,
597,
401,
559,
1989,
18,
8692,
5582,
559,
1162,
1676,
723,
2932,
6290,
18,
1367,
18,
7335,
3113,
8499,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
8499,
426,
3518,
273,
14015,
52,
7722,
2404,
13,
8499,
2934,
10828,
5621,
5411,
309,
12,
5,
12,
80,
4487,
426,
3518,
1276,
453,
7722,
974,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
7711,
273,
2652,
18,
588,
54,
2300,
5621,
5411,
309,
16051,
12,
86,
4487,
1276,
453,
7722,
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,
3757,
7729,
2300,
26964,
5962,
453,
7722,
7729,
2300,
2652,
13,
288,
5411,
2240,
18,
11658,
7729,
2300,
12,
8692,
1769,
5411,
309,
12,
5,
59,
1165,
1204,
329,
4496,
1989,
18,
291,
59,
1165,
1204,
329,
12,
8692,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
2652,
18,
588,
2988,
2766,
5621,
5411,
309,
12,
2977,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
5411,
309,
16051,
5852,
28675,
18,
27247,
18,
14963,
12,
2316,
559,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8499,
273,
2652,
18,
588,
48,
2300,
2
] |
|
if (block.allocCount == 0 && blockNumber != currentBlockNumber) { prevBlock.nextblock = block.nextblock; freeBlock(block, blockNumber); } else { prevBlock = block; } }
|
if (TIME_FREEBLOCKS) { int pause = (int) ((VM_Time.now() - startTime) * 1000000.0); VM.sysWrite("|||| freeBlocks: "); VM.sysWrite(pause, false); VM.sysWrite(" usec\n"); } if (GC_TRACEALLOCATOR) VM_Scheduler.trace("VM_Allocator", "leaving freeBlocks: blocks_available =",blocks_available);
|
static void freeBlocks (VM_SizeControl size) { VM_BlockControl prevBlock = blocks[size.first_block]; int currentBlockNumber = size.current_block; for (int blockNumber = prevBlock.nextblock; blockNumber != 0; blockNumber = prevBlock.nextblock) { VM_BlockControl block = blocks[blockNumber]; if (block.allocCount == 0 && blockNumber != currentBlockNumber) { prevBlock.nextblock = block.nextblock; freeBlock(block, blockNumber); } else { prevBlock = block; } } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/40e21dc6ed844793c7ae07ad49c4ba40eadcacf4/VM_Allocator.java/clean/rvm/src/vm/memoryManagers/watson/concurrent/VM_Allocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
4843,
6450,
261,
7397,
67,
1225,
3367,
963,
13,
288,
202,
7397,
67,
1768,
3367,
2807,
1768,
273,
4398,
63,
1467,
18,
3645,
67,
2629,
15533,
202,
474,
30610,
1854,
273,
963,
18,
2972,
67,
2629,
31,
202,
1884,
261,
474,
1203,
1854,
273,
2807,
1768,
18,
4285,
2629,
31,
1203,
1854,
480,
374,
31,
1203,
1854,
273,
2807,
1768,
18,
4285,
2629,
13,
288,
202,
565,
8251,
67,
1768,
3367,
1203,
273,
4398,
63,
2629,
1854,
15533,
202,
565,
309,
261,
2629,
18,
9853,
1380,
422,
374,
597,
1203,
1854,
480,
30610,
1854,
13,
288,
202,
202,
10001,
1768,
18,
4285,
2629,
273,
1203,
18,
4285,
2629,
31,
202,
202,
9156,
1768,
12,
2629,
16,
1203,
1854,
1769,
202,
565,
289,
469,
288,
202,
202,
10001,
1768,
273,
1203,
31,
202,
565,
289,
202,
97,
202,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
4843,
6450,
261,
7397,
67,
1225,
3367,
963,
13,
288,
202,
7397,
67,
1768,
3367,
2807,
1768,
273,
4398,
63,
1467,
18,
3645,
67,
2629,
15533,
202,
474,
30610,
1854,
273,
963,
18,
2972,
67,
2629,
31,
202,
1884,
261,
474,
1203,
1854,
273,
2807,
1768,
18,
4285,
2629,
31,
1203,
1854,
480,
374,
31,
1203,
1854,
273,
2807,
1768,
18,
4285,
2629,
13,
288,
202,
565,
8251,
67,
1768,
3367,
1203,
273,
4398,
63,
2629,
1854,
15533,
202,
565,
309,
261,
2629,
18,
9853,
1380,
422,
374,
597,
1203,
1854,
480,
30610,
1854,
13,
288,
202,
202,
10001,
1768,
18,
4285,
2629,
273,
1203,
18,
4285,
2629,
31,
202,
202,
9156,
1768,
12,
2629,
16,
2
] |
new XMLResourceIdentifierImpl(publicId, literalSystemId, baseSystemId, expandSystemId(literalSystemId, baseSystemId)), null);
|
new XMLResourceIdentifierImpl(publicId, literalSystemId, baseSystemId, expandSystemId(literalSystemId, baseSystemId)), null, fInExternalSubset);
|
public void addExternalEntity(String name, String publicId, String literalSystemId, String baseSystemId) { if (!fEntities.containsKey(name)) { if (baseSystemId == null) { // search for the first external entity on the stack int size = fEntityStack.size(); if (size == 0 && fCurrentEntity != null && fCurrentEntity.entityLocation != null) { baseSystemId = fCurrentEntity.entityLocation.getExpandedSystemId(); } for (int i = size - 1; i >= 0 ; i--) { ScannedEntity externalEntity = (ScannedEntity)fEntityStack.elementAt(i); if (externalEntity.entityLocation != null && externalEntity.entityLocation.getExpandedSystemId() != null) { baseSystemId = externalEntity.entityLocation.getExpandedSystemId(); break; } } } Entity entity = new ExternalEntity(name, new XMLResourceIdentifierImpl(publicId, literalSystemId, baseSystemId, expandSystemId(literalSystemId, baseSystemId)), null); fEntities.put(name, entity); } else{ if(fWarnDuplicateEntityDef){ fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_DUPLICATE_ENTITY_DEFINITION", new Object[]{ name }, XMLErrorReporter.SEVERITY_WARNING ); } } } // addExternalEntity(String,String,String,String)
|
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,
377,
1071,
918,
527,
6841,
1943,
12,
780,
508,
16,
21394,
514,
1071,
548,
16,
514,
7158,
3163,
548,
16,
21394,
514,
1026,
3163,
548,
13,
288,
3639,
309,
16051,
74,
8108,
18,
12298,
653,
12,
529,
3719,
288,
5411,
309,
261,
1969,
3163,
548,
422,
446,
13,
288,
7734,
368,
1623,
364,
326,
1122,
3903,
1522,
603,
326,
2110,
7734,
509,
963,
273,
284,
1943,
2624,
18,
1467,
5621,
7734,
309,
261,
1467,
422,
374,
597,
284,
3935,
1943,
480,
446,
597,
284,
3935,
1943,
18,
1096,
2735,
480,
446,
13,
288,
10792,
1026,
3163,
548,
273,
284,
3935,
1943,
18,
1096,
2735,
18,
588,
17957,
3163,
548,
5621,
7734,
289,
7734,
364,
261,
474,
277,
273,
963,
300,
404,
31,
277,
1545,
374,
274,
277,
413,
13,
288,
10792,
2850,
10041,
1943,
3903,
1943,
273,
13491,
261,
1541,
10041,
1943,
13,
74,
1943,
2624,
18,
2956,
861,
12,
77,
1769,
10792,
309,
261,
9375,
1943,
18,
1096,
2735,
480,
446,
597,
3903,
1943,
18,
1096,
2735,
18,
588,
17957,
3163,
548,
1435,
480,
446,
13,
288,
13491,
1026,
3163,
548,
273,
3903,
1943,
18,
1096,
2735,
18,
588,
17957,
3163,
548,
5621,
13491,
898,
31,
10792,
289,
7734,
289,
5411,
289,
5411,
3887,
1522,
273,
394,
11352,
1943,
12,
529,
16,
10792,
394,
3167,
1420,
3004,
2828,
12,
482,
548,
16,
7158,
3163,
548,
16,
1026,
3163,
548,
16,
4542,
3163,
548,
12,
13107,
3163,
548,
16,
1026,
3163,
548,
13,
3631,
446,
16,
284,
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,
527,
6841,
1943,
12,
780,
508,
16,
21394,
514,
1071,
548,
16,
514,
7158,
3163,
548,
16,
21394,
514,
1026,
3163,
548,
13,
288,
3639,
309,
16051,
74,
8108,
18,
12298,
653,
12,
529,
3719,
288,
5411,
309,
261,
1969,
3163,
548,
422,
446,
13,
288,
7734,
368,
1623,
364,
326,
1122,
3903,
1522,
603,
326,
2110,
7734,
509,
963,
273,
284,
1943,
2624,
18,
1467,
5621,
7734,
309,
261,
1467,
422,
374,
597,
284,
3935,
1943,
480,
446,
597,
284,
3935,
1943,
18,
1096,
2735,
480,
446,
13,
288,
10792,
1026,
3163,
548,
273,
284,
3935,
1943,
18,
1096,
2735,
18,
588,
17957,
3163,
548,
5621,
7734,
289,
7734,
364,
261,
474,
277,
273,
963,
2
] |
log.info("DEBUG: 5");
|
private Template genLoginTemplate(HttpServletRequest request, HttpServletResponse response, Context context, Session session, String errorType) throws ParseErrorException, ResourceNotFoundException, MissingResourceException, Exception { String bundleName = "login"; String acceptLanguage = request.getHeader("Accept-Language"); String sessionID = null; ResourceBundle bundle = null; ResourceBundle fallback = null; log.info("DEBUG: 1"); if (session != null) { log.info("DEBUG: 2"); sessionID = session.getID(); log.info("DEBUG: 3"); if (!session.authenticationInitiated()) { log.info("DEBUG: 4"); log.warning("User tried to authenticate without requesting login page first. "+session.getID()); throw new Exception("Login page has to be requested before attempting login."); } } if (acceptLanguage == null || acceptLanguage.equals("")) log.info("DEBUG: 5"); acceptLanguage = "no"; StringTokenizer tokenizer = new StringTokenizer(acceptLanguage, ","); Locale locale = null; log.info("DEBUG: 6"); /* Find fallback resource bundle. */ try { log.info("DEBUG: 7"); fallback = ResourceBundle.getBundle(bundleName, new Locale("bogus")); } catch (MissingResourceException e) { log.info("DEBUG: 8"); /* No fallback */ } /* Parse Accept-Language and find matching resource bundle */ while (tokenizer.hasMoreTokens()) { log.info("DEBUG: 9"); String lang = tokenizer.nextToken(); int index; log.info("DEBUG: 10"); /* Languages are devided by ";" */ if ((index = lang.indexOf(";")) != -1) { log.info("DEBUG: 11"); lang = lang.substring(0, index); } log.info("DEBUG: 12"); lang = lang.trim(); log.info("DEBUG: 13"); /* Language and country is devided by "-" (optional) */ if ((index = lang.indexOf("-")) != -1) { log.info("DEBUG: 14"); lang = lang.substring(0, index); } log.info("DEBUG: 15"); locale = new Locale(lang); log.info("DEBUG: 16"); bundle = ResourceBundle.getBundle(bundleName, locale); log.info("DEBUG: 17"); /* Abort search if a bundle (not fallback) is found */ if (bundle != fallback) break; /* About search if the fallback bundle is actually requested */ else if (bundle == fallback && locale.getLanguage().equals(Locale.getDefault().getLanguage())) break; } log.info("DEBUG: 18"); /* Should never happen, but just in case. */ if (bundle == null) bundle = ResourceBundle.getBundle(bundleName, new Locale("no")); log.info("DEBUG: 19"); String wsName = null; String wsURL = null; if (session != null) { log.info("DEBUG: 20"); wsName = session.getWebService().getName(); wsURL = session.getWebService().getUrl(); } /* Set template-variables from properties */ for (Enumeration e = bundle.getKeys(); e.hasMoreElements();) { log.info("DEBUG: 21"); String key = (String) e.nextElement(); String value = bundle.getString(key); int index; /* This changes WS_NAME to hyperlink in all property * strings from the bundle.*/ if ((index = value.indexOf("WS_NAME")) != -1 && wsName != null) { value = value.substring(0, index)+"<A href=\""+wsURL+"\">"+wsName+"</A>"+value.substring(index+7, value.length()); } context.put(key, value); } /* Get realm from cookie. */ log.info("DEBUG: 22"); Cookie[] cookies = request.getCookies(); context.put("preset_realm", ""); for (int i = 0; i < cookies.length; i++) { log.info("DEBUG: 23"); if (cookies[i].getName().equals("realm")) { context.put("preset_realm", cookies[i].getValue()); } } /* Set or reset error messages */ if (errorType != null) { log.info("DEBUG: 24"); context.put("errorMessage", context.get("error_"+errorType)); context.put("errorDescription", context.get("error_"+errorType+"_desc")); } else { log.info("DEBUG: 25"); context.remove("errorMessage"); context.remove("errorDescription"); } if (sessionID != null) { log.info("DEBUG: 26"); context.put("loginURL", loginURL+"?id="+sessionID); String secLevel = session.getAttributesSecLevel().toLowerCase(); context.put("expl_data", context.get("expl_data_"+secLevel)); /* Detailed list of attributes */ if (showAllAttributes) { log.info("DEBUG: 27"); Vector attrNames = new Vector(); HashMap attributes = session.getWebService().getAttributes(); for (Iterator it = attributes.keySet().iterator(); it.hasNext();) { log.info("DEBUG: 28"); attrNames.add(context.get("ldap_"+it.next())); } context.put("attrNames", attrNames); /* Link to page with detailed attribute list. */ if (context.get("attrs_hide") != null) context.put("showHideLink", "<A href=\""+loginURL+"?id="+sessionID+"\">"+context.get("attrs_hide")+"</A>"); else context.put("showHideLink", ""); } else if (context.get("attrs_show") != null) { log.info("DEBUG: 29"); context.put("showHideLink", "<A href=\""+loginURL+"?id="+sessionID+"&showAttrs=yes\">"+context.get("attrs_show")+"</A>"); } else context.put("showHideLink", ""); } else /* If no sessionID then remove loginURL */ context.remove("loginURL"); log.info("DEBUG: 30"); return getTemplate("login.vtl"); }
|
1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/72041e6af8dca3d1b36ac69782b9d95e51f1a643/LoginServlet.java/buggy/moria/src/no/feide/moria/servlet/LoginServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5035,
3157,
5358,
2283,
12,
2940,
18572,
590,
16,
12446,
766,
16,
1772,
819,
16,
3877,
1339,
16,
514,
555,
559,
13,
1216,
2884,
10009,
16,
16676,
16,
10230,
14785,
16,
1185,
288,
3639,
514,
20052,
273,
315,
5819,
14432,
3639,
514,
16623,
273,
590,
18,
588,
1864,
2932,
5933,
17,
3779,
8863,
3639,
514,
13737,
273,
446,
31,
3639,
19198,
3440,
273,
446,
31,
3639,
19198,
5922,
273,
446,
31,
3639,
613,
18,
1376,
2932,
9394,
30,
404,
8863,
3639,
309,
261,
3184,
480,
446,
13,
288,
3639,
613,
18,
1376,
2932,
9394,
30,
576,
8863,
5411,
13737,
273,
1339,
18,
588,
734,
5621,
3639,
613,
18,
1376,
2932,
9394,
30,
890,
8863,
5411,
309,
16051,
3184,
18,
12293,
2570,
10206,
10756,
288,
3639,
613,
18,
1376,
2932,
9394,
30,
1059,
8863,
7734,
613,
18,
8551,
2932,
1299,
12928,
358,
8929,
2887,
18709,
3925,
1363,
1122,
18,
13773,
3184,
18,
588,
734,
10663,
7734,
604,
394,
1185,
2932,
5358,
1363,
711,
358,
506,
3764,
1865,
15600,
3925,
1199,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
9436,
3779,
422,
446,
747,
16623,
18,
14963,
2932,
6,
3719,
10792,
16623,
273,
315,
2135,
14432,
3639,
16370,
10123,
273,
394,
16370,
12,
9436,
3779,
16,
5753,
1769,
3639,
6458,
2573,
273,
446,
31,
3639,
613,
18,
1376,
2932,
9394,
30,
1666,
8863,
3639,
1748,
4163,
5922,
1058,
3440,
18,
1195,
3639,
775,
288,
3639,
613,
18,
1376,
2932,
9394,
30,
2371,
8863,
5411,
5922,
273,
19198,
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,
5035,
3157,
5358,
2283,
12,
2940,
18572,
590,
16,
12446,
766,
16,
1772,
819,
16,
3877,
1339,
16,
514,
555,
559,
13,
1216,
2884,
10009,
16,
16676,
16,
10230,
14785,
16,
1185,
288,
3639,
514,
20052,
273,
315,
5819,
14432,
3639,
514,
16623,
273,
590,
18,
588,
1864,
2932,
5933,
17,
3779,
8863,
3639,
514,
13737,
273,
446,
31,
3639,
19198,
3440,
273,
446,
31,
3639,
19198,
5922,
273,
446,
31,
3639,
613,
18,
1376,
2932,
9394,
30,
404,
8863,
3639,
309,
261,
3184,
480,
446,
13,
288,
3639,
613,
18,
1376,
2932,
9394,
30,
576,
8863,
5411,
13737,
273,
1339,
18,
588,
734,
5621,
3639,
613,
18,
1376,
2932,
9394,
30,
890,
8863,
5411,
309,
16051,
2
] |
|
IPaddr defaultRoute = configuration.getDefaultRoute();
|
IPaddr defaultRoute = settings.getDefaultRoute();
|
private void addNetworkSpace( NetworkSpace space, boolean isFirst, boolean isLast ) throws NetworkException, ArgonException { NetworkUtilPriv nu = NetworkUtilPriv.getPrivInstance(); List<Interface> interfaceList = (List<Interface>)space.getInterfaceList(); String name = space.getDeviceName(); boolean isBridge = space.isBridge(); int mtu = space.getMtu(); appendLine( "auto " + name ); List<IPNetworkRule> networkList = (List<IPNetworkRule>)space.getNetworkList(); IPNetwork primaryAddress = null; appendLine( "iface " + name + " inet manual" ); /* Insert the flush command for the first network space */ if ( isFirst ) { appendCommands( "pre-up if [ -r " + FLUSH_CONFIG + " ]; then sh " + FLUSH_CONFIG + "; fi" ); } /* If this is a bridge, then add the necessary configuration for the bridge */ if ( isBridge ) { appendCommands( "up brctl addbr " + name ); /* Build a list of all of the ports inside of the bridge */ for ( Interface intf : interfaceList ) { String dev = nu.getDeviceName( intf ); appendCommands( "up brctl addif " + name + " " + dev, "up ifconfig " + dev + " 0.0.0.0 mtu " + mtu + " up" ); } } /* Add the primary address */ if ( space.hasPrimaryAddress()) { primaryAddress = space.getPrimaryAddress(); appendLine( "\tup ifconfig " + name + " " + primaryAddress.getNetwork() + " netmask " + primaryAddress.getSubnet() + " mtu " + mtu ); } else { if ( space.getIsDhcpEnabled()) { appendCommands( "up pump -i " + name ); appendCommands( "up ifconfig " + name + " mtu " + mtu ); } else { appendCommands( "up ifconfig " + name + " 0.0.0.0 mtu " + mtu + " up" ); } } /* Add all of the aliases */ int aliasIndex = 0; for ( IPNetworkRule networkRule : networkList ) { IPNetwork network = networkRule.getNetwork(); if ( network.equals( primaryAddress )) continue; if ( nu.isUnicast( network )) { String aliasName = name + ":" + aliasIndex; appendCommands( "up ifconfig " + aliasName + " " + network.getNetwork() + " netmask " + network.getSubnet() + " mtu " + mtu ); } else { appendCommands( "up ip route add to " + nu.toRouteString( network ) + " dev " + name ); } } /* Add the default route and all of the other routes after configuring the * last network space */ if ( isLast ) { IPaddr defaultRoute = configuration.getDefaultRoute(); /* Add the routing table */ for ( Route route : (List<Route>)configuration.getRoutingTable()) { if ( route.getNetworkSpace() != null ) { logger.warn( "Custom routing rules with per network space are presently not supported" ); } appendCommands( "up ip route add to " + nu.toRouteString( route.getDestination()) + " via " + route.getNextHop()); } /* Add the default route last */ if (( defaultRoute != null ) && ( !defaultRoute.isEmpty())) { appendCommands( "up ip route add to default via " + configuration.getDefaultRoute()); } appendCommands( "up ip route flush table cache" ); } appendLine( "" ); }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f195f519648c05c4a5317cfd8293b1d4f20c13eb/InterfacesScriptWriter.java/clean/mvvm/main/com/metavize/mvvm/networking/InterfacesScriptWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
3906,
3819,
12,
5128,
3819,
3476,
16,
1250,
17447,
16,
1250,
23075,
262,
3639,
1216,
5128,
503,
16,
14448,
265,
503,
565,
288,
3639,
5128,
1304,
15475,
9244,
273,
5128,
1304,
15475,
18,
588,
15475,
1442,
5621,
3639,
987,
32,
1358,
34,
1560,
682,
273,
261,
682,
32,
1358,
23429,
2981,
18,
588,
1358,
682,
5621,
3639,
514,
508,
273,
3476,
18,
588,
3654,
461,
5621,
3639,
1250,
353,
13691,
273,
3476,
18,
291,
13691,
5621,
3639,
509,
5874,
89,
273,
3476,
18,
588,
49,
88,
89,
5621,
13491,
714,
1670,
12,
315,
6079,
315,
397,
508,
11272,
3639,
987,
32,
2579,
3906,
2175,
34,
2483,
682,
273,
261,
682,
32,
2579,
3906,
2175,
23429,
2981,
18,
588,
3906,
682,
5621,
3639,
2971,
3906,
3354,
1887,
273,
446,
31,
7734,
714,
1670,
12,
315,
31479,
315,
397,
508,
397,
315,
17661,
11297,
6,
11272,
3639,
1748,
8040,
326,
3663,
1296,
364,
326,
1122,
2483,
3476,
1195,
3639,
309,
261,
17447,
262,
288,
5411,
714,
9127,
12,
315,
1484,
17,
416,
309,
306,
300,
86,
315,
397,
478,
31959,
67,
7203,
397,
315,
308,
31,
1508,
699,
315,
397,
478,
31959,
67,
7203,
397,
13636,
7314,
6,
11272,
3639,
289,
3639,
1748,
971,
333,
353,
279,
10105,
16,
1508,
527,
326,
4573,
1664,
364,
326,
10105,
1195,
3639,
309,
261,
353,
13691,
262,
288,
5411,
714,
9127,
12,
315,
416,
5186,
12930,
527,
2848,
315,
397,
508,
11272,
5411,
1748,
3998,
279,
666,
434,
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,
527,
3906,
3819,
12,
5128,
3819,
3476,
16,
1250,
17447,
16,
1250,
23075,
262,
3639,
1216,
5128,
503,
16,
14448,
265,
503,
565,
288,
3639,
5128,
1304,
15475,
9244,
273,
5128,
1304,
15475,
18,
588,
15475,
1442,
5621,
3639,
987,
32,
1358,
34,
1560,
682,
273,
261,
682,
32,
1358,
23429,
2981,
18,
588,
1358,
682,
5621,
3639,
514,
508,
273,
3476,
18,
588,
3654,
461,
5621,
3639,
1250,
353,
13691,
273,
3476,
18,
291,
13691,
5621,
3639,
509,
5874,
89,
273,
3476,
18,
588,
49,
88,
89,
5621,
13491,
714,
1670,
12,
315,
6079,
315,
397,
508,
11272,
3639,
987,
32,
2579,
3906,
2175,
34,
2483,
682,
273,
261,
682,
32,
2579,
3906,
2175,
23429,
2
] |
if (plugin.getPreferenceStore().contains(PREF_PREVIOUS_TRANSMIT_DATE)) { lastTransmit = new Date(plugin.getPreferenceStore().getLong(PREF_PREVIOUS_TRANSMIT_DATE)); } else { lastTransmit = new Date(); plugin.getPreferenceStore().setValue(PREF_PREVIOUS_TRANSMIT_DATE, lastTransmit.getTime()); }
|
public void startMonitoring() { if (getPreferenceStore().getBoolean(PREF_MONITORING_ENABLED)) return; IWorkbench workbench = PlatformUI.getWorkbench(); interactionLogger.start(); MylarPlugin.getDefault().addInteractionListener(interactionLogger); MylarPlugin.getDefault().getCommandMonitors().add(keybindingCommandMonitor); MylarPlugin.getDefault().getSelectionMonitors().add(selectionMonitor); MylarPlugin.getContextManager().getActionExecutionListeners().add(new ActionExecutionMonitor()); if (plugin.getPreferenceStore().contains(PREF_PREVIOUS_TRANSMIT_DATE)) { lastTransmit = new Date(plugin.getPreferenceStore().getLong(PREF_PREVIOUS_TRANSMIT_DATE)); } else { lastTransmit = new Date(); plugin.getPreferenceStore().setValue(PREF_PREVIOUS_TRANSMIT_DATE, lastTransmit.getTime()); } workbench.getActiveWorkbenchWindow().getShell().addShellListener(SHELL_LISTENER); MylarPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(PREFERENCE_LISTENER); MylarPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(preferenceMonitor); JavaPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(preferenceMonitor); WorkbenchPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(preferenceMonitor); EditorsPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(preferenceMonitor); PDEPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(preferenceMonitor); workbench.getActiveWorkbenchWindow().addPerspectiveListener(perspectiveMonitor); workbench.getActivitySupport().getActivityManager().addActivityManagerListener(activityMonitor); workbench.getDisplay().addFilter(SWT.Selection, menuMonitor); workbench.addWindowListener(windowMonitor); installBrowserMonitor(workbench); if (!MylarPlugin.getDefault().suppressWizardsOnStartup()) { checkForFirstMonitorUse(); } getPreferenceStore().setValue(PREF_MONITORING_ENABLED, true); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/06bdc1ce9960d4bcf207da6c9167799a535b713a/MylarMonitorPlugin.java/buggy/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/MylarMonitorPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
18410,
1435,
288,
377,
202,
430,
261,
588,
9624,
2257,
7675,
588,
5507,
12,
3670,
42,
67,
17667,
30153,
1360,
67,
13560,
3719,
327,
31,
377,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
3639,
13581,
3328,
18,
1937,
5621,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
1289,
17419,
2223,
12,
30303,
3328,
1769,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
2189,
11415,
13704,
7675,
1289,
12,
856,
7374,
2189,
7187,
1769,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6233,
11415,
13704,
7675,
1289,
12,
10705,
7187,
1769,
3639,
8005,
7901,
3773,
18,
29120,
1318,
7675,
588,
1803,
3210,
5583,
7675,
1289,
12,
2704,
4382,
3210,
7187,
10663,
540,
202,
202,
430,
261,
4094,
18,
588,
9624,
2257,
7675,
12298,
12,
3670,
42,
67,
3670,
4136,
21667,
67,
16596,
6068,
67,
4594,
3719,
288,
1082,
202,
2722,
1429,
1938,
273,
394,
2167,
12,
4094,
18,
588,
9624,
2257,
7675,
588,
3708,
12,
3670,
42,
67,
3670,
4136,
21667,
67,
16596,
6068,
67,
4594,
10019,
202,
202,
97,
469,
288,
1082,
202,
2722,
1429,
1938,
273,
394,
2167,
5621,
1082,
202,
4094,
18,
588,
9624,
2257,
7675,
542,
620,
12,
3670,
42,
67,
3670,
4136,
21667,
67,
16596,
6068,
67,
4594,
16,
1142,
1429,
1938,
18,
588,
950,
10663,
202,
202,
97,
3639,
1440,
22144,
18,
588,
3896,
2421,
22144,
3829,
7675,
588,
13220,
7675,
1289,
13220,
2223,
12,
2664,
21943,
67,
26421,
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,
787,
18410,
1435,
288,
377,
202,
430,
261,
588,
9624,
2257,
7675,
588,
5507,
12,
3670,
42,
67,
17667,
30153,
1360,
67,
13560,
3719,
327,
31,
377,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
3639,
13581,
3328,
18,
1937,
5621,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
1289,
17419,
2223,
12,
30303,
3328,
1769,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
2189,
11415,
13704,
7675,
1289,
12,
856,
7374,
2189,
7187,
1769,
3639,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6233,
11415,
13704,
7675,
1289,
12,
10705,
7187,
1769,
3639,
8005,
7901,
3773,
18,
29120,
1318,
7675,
588,
1803,
3210,
5583,
7675,
1289,
12,
2704,
2
] |
|
final BonusObj aBonus = (BonusObj) aList.get(i);
|
final BonusObj aBonus = aList.get(i);
|
private void sortActiveBonusList() { final List aList = new ArrayList(); // 'BONUS:blah|blah|Foo' depends on // 'BONUS:VAR|Foo|MyGoo' which depends on // 'BONUS:VAR|MyGoo|2' // BONUS: type | info | value // BONUS:COMBAT |TOHIT |STR // BONUS:STAT |STR |rage // BONUS:VAR |rage |2 int aSize = getActiveBonusList().size(); int i; for (i = 0; i < aSize; i++) { final BonusObj aBonus = (BonusObj) getActiveBonusList().get(i); int iFound = 0; for (int ii = 0; ii < aList.size(); ii++) { final BonusObj tempBonus = (BonusObj) aList.get(ii); if (tempBonus.getDependsOn(aBonus.getBonusInfo())) { iFound = ii; } } aList.add(iFound, aBonus); } int iCount = aSize; for (i = 0; i < iCount; ) { final BonusObj aBonus = (BonusObj) aList.get(i); // // Move to end of list // if (aBonus.getDependsOn("JEPFORMULA")) { aList.remove(i); aList.add(aBonus); --iCount; } else { ++i; } } setActiveBonusList(aList); aList.clear(); // go through and move all the static bonuses to the front aSize = getActiveBonusList().size(); for (i = 0; i < aSize; i++) { final BonusObj aBonus = (BonusObj) getActiveBonusList().get(i); if (aBonus.isValueStatic()) { aList.add(0, aBonus); } else { aList.add(aBonus); } } setActiveBonusList(aList); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1524,
3896,
38,
22889,
682,
1435,
202,
95,
202,
202,
6385,
987,
279,
682,
273,
394,
2407,
5621,
202,
202,
759,
296,
38,
673,
3378,
30,
3083,
9795,
96,
3083,
9795,
96,
42,
5161,
11,
10935,
603,
202,
202,
759,
296,
38,
673,
3378,
30,
7716,
96,
42,
5161,
96,
12062,
43,
5161,
11,
1492,
10935,
603,
202,
202,
759,
296,
38,
673,
3378,
30,
7716,
96,
12062,
43,
5161,
96,
22,
11,
202,
202,
759,
605,
673,
3378,
30,
618,
1377,
571,
1123,
6647,
571,
460,
202,
202,
759,
605,
673,
3378,
30,
4208,
38,
789,
377,
571,
4296,
17222,
6647,
571,
3902,
202,
202,
759,
605,
673,
3378,
30,
28549,
4202,
571,
3902,
2398,
571,
86,
410,
202,
202,
759,
605,
673,
3378,
30,
7716,
3639,
571,
86,
410,
5411,
571,
22,
202,
202,
474,
279,
1225,
273,
11960,
38,
22889,
682,
7675,
1467,
5621,
202,
202,
474,
277,
31,
202,
202,
1884,
261,
77,
273,
374,
31,
277,
411,
279,
1225,
31,
277,
27245,
202,
202,
95,
1082,
202,
6385,
605,
22889,
2675,
279,
38,
22889,
273,
261,
38,
22889,
2675,
13,
11960,
38,
22889,
682,
7675,
588,
12,
77,
1769,
1082,
202,
474,
277,
2043,
273,
374,
31,
1082,
202,
1884,
261,
474,
6072,
273,
374,
31,
6072,
411,
279,
682,
18,
1467,
5621,
6072,
27245,
1082,
202,
95,
9506,
202,
6385,
605,
22889,
2675,
1906,
38,
22889,
273,
261,
38,
22889,
2675,
13,
279,
682,
18,
588,
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,
918,
1524,
3896,
38,
22889,
682,
1435,
202,
95,
202,
202,
6385,
987,
279,
682,
273,
394,
2407,
5621,
202,
202,
759,
296,
38,
673,
3378,
30,
3083,
9795,
96,
3083,
9795,
96,
42,
5161,
11,
10935,
603,
202,
202,
759,
296,
38,
673,
3378,
30,
7716,
96,
42,
5161,
96,
12062,
43,
5161,
11,
1492,
10935,
603,
202,
202,
759,
296,
38,
673,
3378,
30,
7716,
96,
12062,
43,
5161,
96,
22,
11,
202,
202,
759,
605,
673,
3378,
30,
618,
1377,
571,
1123,
6647,
571,
460,
202,
202,
759,
605,
673,
3378,
30,
4208,
38,
789,
377,
571,
4296,
17222,
6647,
571,
3902,
202,
202,
759,
605,
673,
3378,
30,
28549,
4202,
571,
3902,
2
] |
" (" + timestampFormat.format(m.getArrivalTime()) + "):");
|
" (" + komTimeFormat(m.getArrivalTime()) + "):");
|
void handleMessages() { while (messages.size() > 0) { AsynchMessage m = null; synchronized (messages) { m = (AsynchMessage) messages.removeFirst(); } KomToken[] params = m.getParameters(); switch (m.getNumber()) { case Asynch.new_text_old: try { foo.updateUnreads(); } catch (IOException ex1) { throw new RuntimeException("I/O error: " + ex1.getMessage()); } break; case Asynch.new_name: consoleWriteLn(((Hollerith) params[1]).getContentString() + " har bytt namn till " + ((Hollerith) params[2]).getContentString() + "."); break; case Asynch.send_message: String recipient = null, sender = null; try { recipient = params[0].intValue() != 0 ? confNoToName(params[0].intValue()) : null; sender = confNoToName(params[1].intValue()); } catch (IOException ex) { System.err.println("Det gick inte att utfra get-conf-name: " + ex.getMessage()); } if (!useGui) { consoleWrite("\007\007"); // beep! } else { consoleFrame.requestFocus(); consoleFrame.toFront(); } consoleWriteLn("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); if (params[0].intValue() == foo.getMyPerson().getNo()) { consoleWriteLn("Personligt meddelande frn " + sender + " (" + timestampFormat.format(m.getArrivalTime()) + "):"); } else if (params[0].intValue() == 0) { consoleWriteLn("Alarmmeddelande frn " + sender + " (" + timestampFormat.format(m.getArrivalTime()) + "):"); } else { consoleWriteLn("Meddelande till " + recipient); consoleWriteLn("frn " + sender + " (" + timestampFormat.format(m.getArrivalTime()) + "):"); } consoleWriteLn("\n" + ((Hollerith) params[2]).getContentString()); consoleWriteLn("----------------------------------------------------------------"); break; case Asynch.login: try { consoleWriteLn(confNoToName(params[0].intValue()) + " loggade in i LysKOM (" + timestampFormat.format(m.getArrivalTime()) + ")"); } catch (IOException ex) { System.err.println("Det gick inte att utfra get-conf-name: " + ex.getMessage()); } break; case Asynch.logout: try { consoleWriteLn(confNoToName(params[0].intValue()) + " loggade ut ur LysKOM (" + timestampFormat.format(m.getArrivalTime()) + ")"); } catch (IOException ex) { System.err.println("Det gick inte att utfra get-conf-name: " + ex.getMessage()); } break; case Asynch.sync_db: serverSynch = !serverSynch; if (serverSynch) { consoleWriteLn("** Servern synkroniserar just nu databasen."); } else { consoleWriteLn("** Servern r klar med synkroniseringen."); } break; //case Asynch.new_text: //break; default: consoleWriteLn("Asynkront meddelande av typen " + m.getNumber()); } } }
|
3721 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3721/db20f64f49cb94f75e12b042330722224aa1b1b7/Test2.java/buggy/nu/dll/app/test/Test2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
5058,
1435,
288,
202,
17523,
261,
6833,
18,
1467,
1435,
405,
374,
13,
288,
202,
565,
2970,
2515,
1079,
312,
273,
446,
31,
202,
565,
3852,
261,
6833,
13,
288,
202,
202,
81,
273,
261,
1463,
2515,
1079,
13,
2743,
18,
4479,
3759,
5621,
202,
565,
289,
202,
565,
1475,
362,
1345,
8526,
859,
273,
312,
18,
588,
2402,
5621,
202,
565,
1620,
261,
81,
18,
588,
1854,
10756,
288,
202,
565,
648,
2970,
2515,
18,
2704,
67,
955,
67,
1673,
30,
202,
202,
698,
288,
1082,
565,
8431,
18,
2725,
984,
11904,
5621,
202,
202,
97,
1044,
261,
14106,
431,
21,
13,
288,
1082,
565,
604,
394,
3235,
2932,
45,
19,
51,
555,
30,
315,
397,
431,
21,
18,
24906,
10663,
202,
202,
97,
202,
202,
8820,
31,
202,
565,
648,
2970,
2515,
18,
2704,
67,
529,
30,
202,
202,
8698,
3067,
13780,
12443,
12,
44,
355,
749,
483,
13,
859,
63,
21,
65,
2934,
588,
1350,
780,
1435,
397,
315,
17895,
635,
748,
15135,
82,
21364,
315,
397,
4697,
4202,
14015,
44,
355,
749,
483,
13,
859,
63,
22,
65,
2934,
588,
1350,
780,
1435,
397,
4585,
1769,
202,
202,
8820,
31,
202,
565,
648,
2970,
2515,
18,
4661,
67,
2150,
30,
202,
202,
780,
8027,
273,
446,
16,
5793,
273,
446,
31,
202,
202,
698,
288,
1082,
565,
8027,
273,
859,
63,
20,
8009,
474,
620,
1435,
480,
374,
692,
2195,
2279,
774,
461,
12,
2010,
63,
20,
8009,
474,
620,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
5058,
1435,
288,
202,
17523,
261,
6833,
18,
1467,
1435,
405,
374,
13,
288,
202,
565,
2970,
2515,
1079,
312,
273,
446,
31,
202,
565,
3852,
261,
6833,
13,
288,
202,
202,
81,
273,
261,
1463,
2515,
1079,
13,
2743,
18,
4479,
3759,
5621,
202,
565,
289,
202,
565,
1475,
362,
1345,
8526,
859,
273,
312,
18,
588,
2402,
5621,
202,
565,
1620,
261,
81,
18,
588,
1854,
10756,
288,
202,
565,
648,
2970,
2515,
18,
2704,
67,
955,
67,
1673,
30,
202,
202,
698,
288,
1082,
565,
8431,
18,
2725,
984,
11904,
5621,
202,
202,
97,
1044,
261,
14106,
431,
21,
13,
288,
1082,
565,
604,
394,
3235,
2932,
45,
19,
51,
555,
30,
315,
2
] |
output.write(this.logArea.getText().getBytes("UTF-8")); } catch(java.io.IOException e) {
|
output.write(logArea.getText().getBytes("UTF-8")); } catch(final java.io.IOException e) {
|
public void writeLogsToFile(File file) { /* A la bourrin */ FileOutputStream output; try { output = new FileOutputStream(file); } catch(java.io.FileNotFoundException e) { Logger.error(this, "FileNotFoundException ? wtf ?"); return; } try { output.write(this.logArea.getText().getBytes("UTF-8")); } catch(java.io.IOException e) { Logger.error(this, "IOException while writing logs ... out of space ?"); return; } try { output.close(); } catch(java.io.IOException e) { Logger.error(this, "IOException while closing log file ?!"); return; } }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Console.java/clean/src/thaw/plugins/Console.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
7777,
15450,
12,
812,
585,
13,
288,
202,
202,
20308,
432,
7125,
324,
477,
86,
267,
1195,
202,
202,
812,
4632,
876,
31,
202,
202,
698,
288,
1082,
202,
2844,
273,
394,
12942,
12,
768,
1769,
202,
202,
97,
1044,
12,
6290,
18,
1594,
18,
812,
3990,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
812,
3990,
692,
341,
6632,
692,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
2844,
18,
2626,
12,
2211,
18,
1330,
5484,
18,
588,
1528,
7675,
588,
2160,
2932,
5159,
17,
28,
7923,
1769,
202,
202,
97,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14106,
1323,
7410,
5963,
1372,
596,
434,
3476,
692,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
2844,
18,
4412,
5621,
202,
202,
97,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14106,
1323,
7647,
613,
585,
692,
4442,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
7777,
15450,
12,
812,
585,
13,
288,
202,
202,
20308,
432,
7125,
324,
477,
86,
267,
1195,
202,
202,
812,
4632,
876,
31,
202,
202,
698,
288,
1082,
202,
2844,
273,
394,
12942,
12,
768,
1769,
202,
202,
97,
1044,
12,
6290,
18,
1594,
18,
812,
3990,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
812,
3990,
692,
341,
6632,
692,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
2844,
18,
2626,
12,
2211,
18,
1330,
5484,
18,
588,
1528,
7675,
588,
2160,
2932,
5159,
17,
28,
7923,
1769,
202,
202,
97,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1082,
202,
2
] |
final IElementType tokenType = sign.getTokenType();
|
public void visitBinaryExpression(PsiBinaryExpression expression) { super.visitBinaryExpression(expression); final PsiType expressionType = expression.getType(); if (expressionType == null) { return; } final PsiJavaToken sign = expression.getOperationSign(); if (sign == null) { return; } final PsiExpression rhs = expression.getROperand(); if (rhs == null) { return; } final PsiType rhsType = rhs.getType(); if (rhsType == null) { return; } if (rhsType.equals(PsiType.BOOLEAN) || "java.lang.Boolean".equals(rhsType.getCanonicalText())) { return; } final PsiExpression lhs = expression.getLOperand(); if (lhs == null) { return; } final PsiType lhsType = lhs.getType(); if (lhsType == null) { return; } if (lhsType.equals(PsiType.BOOLEAN) || "java.lang.Boolean".equals(lhsType.getCanonicalText())) { return; } final IElementType tokenType = sign.getTokenType(); final boolean isPointless; if (tokenType.equals(JavaTokenType.AND)) { isPointless = andExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.OR)) { isPointless = orExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.XOR)) { isPointless = xorExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.LTLT) || tokenType.equals(JavaTokenType.GTGT) || tokenType.equals(JavaTokenType.GTGTGT)) { isPointless = shiftExpressionIsPointless(rhs, expressionType); } else { isPointless = false; } if (!isPointless) { return; } registerError(expression); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/PointlessBitwiseExpressionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/PointlessBitwiseExpressionInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
5905,
2300,
12,
52,
7722,
5905,
2300,
2652,
13,
288,
5411,
2240,
18,
11658,
5905,
2300,
12,
8692,
1769,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
261,
8692,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
2652,
18,
588,
2988,
2766,
5621,
5411,
309,
261,
2977,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
7711,
273,
2652,
18,
588,
1457,
457,
464,
5621,
5411,
309,
261,
86,
4487,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
7711,
559,
273,
7711,
18,
588,
559,
5621,
5411,
309,
261,
86,
4487,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
86,
4487,
559,
18,
14963,
12,
52,
7722,
559,
18,
17900,
13,
747,
10792,
315,
6290,
18,
4936,
18,
5507,
9654,
14963,
12,
86,
4487,
559,
18,
588,
15512,
1528,
1435,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8499,
273,
2652,
18,
588,
1502,
457,
464,
5621,
5411,
309,
261,
80,
4487,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
8499,
559,
273,
8499,
18,
588,
559,
5621,
5411,
309,
261,
80,
4487,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
80,
4487,
559,
18,
14963,
12,
52,
7722,
559,
18,
17900,
13,
747,
10792,
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,
3757,
5905,
2300,
12,
52,
7722,
5905,
2300,
2652,
13,
288,
5411,
2240,
18,
11658,
5905,
2300,
12,
8692,
1769,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
261,
8692,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
5852,
1345,
1573,
273,
2652,
18,
588,
2988,
2766,
5621,
5411,
309,
261,
2977,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
7711,
273,
2652,
18,
588,
1457,
457,
464,
5621,
5411,
309,
261,
86,
4487,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
7711,
559,
273,
7711,
18,
588,
559,
5621,
5411,
2
] |
|
remainingParameters = normalization .setParameters(remainingParameters); } else if (optionHandler.isSet(NORMALIZATION_UNDO_F))
|
remainingParameters = normalization.setParameters(remainingParameters); } else if (optionHandler.isSet(NORMALIZATION_UNDO_F))
|
public String[] setParameters(String[] args) throws ParameterException { String[] remainingParameters = optionHandler.grabOptions(args); if (args.length == 0) { throw new AbortException( "No options specified. Try flag -h to gain more information."); } if (optionHandler.isSet(HELP_F) || optionHandler.isSet(HELPLONG_F)) { throw new AbortException(description()); } // algorithm String algorithmName = optionHandler.getOptionValue(ALGORITHM_P); try { algorithm = Util.instantiate(Algorithm.class, algorithmName); } catch (UnableToComplyException e) { throw new WrongParameterValueException(ALGORITHM_P, algorithmName, ALGORITHM_D, e); } if (optionHandler.isSet(DESCRIPTION_F)) { throw new AbortException(algorithm.getDescription().toString() + '\n' + algorithm.description()); } // database connection String databaseConnectionName = optionHandler .isSet(DATABASE_CONNECTION_P) ? optionHandler .getOptionValue(DATABASE_CONNECTION_P) : DEFAULT_DATABASE_CONNECTION; try { databaseConnection = Util.instantiate(DatabaseConnection.class, databaseConnectionName); } catch (UnableToComplyException e) { throw new WrongParameterValueException(DATABASE_CONNECTION_P, databaseConnectionName, DATABASE_CONNECTION_D, e); } // output if (optionHandler.isSet(OUTPUT_P)) { out = new File(optionHandler.getOptionValue(OUTPUT_P)); } else { out = null; } // normalization if (optionHandler.isSet(NORMALIZATION_P)) { String normalizationName = optionHandler .getOptionValue(NORMALIZATION_P); try { normalization = Util.instantiate(Normalization.class, normalizationName); } catch (UnableToComplyException e) { throw new WrongParameterValueException(NORMALIZATION_P, normalizationName, NORMALIZATION_D, e); } normalizationUndo = optionHandler.isSet(NORMALIZATION_UNDO_F); remainingParameters = normalization .setParameters(remainingParameters); } else if (optionHandler.isSet(NORMALIZATION_UNDO_F)) { throw new WrongParameterValueException( "Illegal parameter setting: Flag " + NORMALIZATION_UNDO_F + " is set, but no normalization is specified."); } remainingParameters = algorithm.setParameters(remainingParameters); remainingParameters = databaseConnection .setParameters(remainingParameters); initialized = true; setParameters(args, remainingParameters); return remainingParameters; }
|
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/6c3be79c76e43283efc0fa00b4688253706c8314/KDDTask.java/buggy/src/de/lmu/ifi/dbs/algorithm/KDDTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
22556,
12,
780,
8526,
833,
13,
1216,
5498,
503,
565,
288,
3639,
514,
8526,
4463,
2402,
273,
1456,
1503,
18,
2752,
70,
1320,
12,
1968,
1769,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
3639,
288,
5411,
604,
394,
14263,
503,
12,
10792,
315,
2279,
702,
1269,
18,
6161,
2982,
300,
76,
358,
17527,
1898,
1779,
1199,
1769,
3639,
289,
3639,
309,
261,
3482,
1503,
18,
291,
694,
12,
27396,
67,
42,
13,
747,
1456,
1503,
18,
291,
694,
12,
20264,
6253,
7390,
67,
42,
3719,
3639,
288,
5411,
604,
394,
14263,
503,
12,
3384,
10663,
3639,
289,
3639,
368,
4886,
3639,
514,
4886,
461,
273,
1456,
1503,
18,
588,
13366,
12,
30077,
67,
52,
1769,
3639,
775,
3639,
288,
5411,
4886,
273,
3564,
18,
24628,
3840,
12,
6801,
18,
1106,
16,
4886,
461,
1769,
3639,
289,
1044,
261,
3370,
774,
799,
1283,
503,
425,
13,
3639,
288,
5411,
604,
394,
24668,
1662,
9738,
12,
30077,
67,
52,
16,
4886,
461,
16,
10792,
7981,
22548,
67,
40,
16,
425,
1769,
3639,
289,
3639,
309,
261,
3482,
1503,
18,
291,
694,
12,
15911,
67,
42,
3719,
3639,
288,
5411,
604,
394,
14263,
503,
12,
12743,
18,
588,
3291,
7675,
10492,
1435,
10792,
397,
2337,
82,
11,
397,
4886,
18,
3384,
10663,
3639,
289,
3639,
368,
2063,
1459,
3639,
514,
2063,
25725,
273,
1456,
1503,
7734,
263,
291,
694,
12,
22366,
67,
15461,
67,
52,
13,
692,
1456,
1503,
7734,
263,
588,
13366,
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,
514,
8526,
22556,
12,
780,
8526,
833,
13,
1216,
5498,
503,
565,
288,
3639,
514,
8526,
4463,
2402,
273,
1456,
1503,
18,
2752,
70,
1320,
12,
1968,
1769,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
3639,
288,
5411,
604,
394,
14263,
503,
12,
10792,
315,
2279,
702,
1269,
18,
6161,
2982,
300,
76,
358,
17527,
1898,
1779,
1199,
1769,
3639,
289,
3639,
309,
261,
3482,
1503,
18,
291,
694,
12,
27396,
67,
42,
13,
747,
1456,
1503,
18,
291,
694,
12,
20264,
6253,
7390,
67,
42,
3719,
3639,
288,
5411,
604,
394,
14263,
503,
12,
3384,
10663,
3639,
289,
3639,
368,
4886,
3639,
514,
4886,
461,
273,
1456,
1503,
18,
588,
13366,
12,
30077,
67,
2
] |
else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) {
|
else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) {
|
private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2603223e734189dc0e07a63b224a1770507e0fa5/Proxy.java/clean/core/src/classpath/java/java/lang/reflect/Proxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1378,
9661,
12,
474,
277,
13,
288,
5411,
309,
261,
77,
1545,
300,
21,
597,
277,
1648,
1381,
13,
7734,
1378,
57,
21,
12,
21745,
882,
67,
20,
397,
277,
1769,
5411,
469,
309,
261,
77,
1545,
3506,
18,
6236,
67,
4051,
597,
277,
1648,
3506,
18,
6694,
67,
4051,
13,
288,
7734,
1378,
57,
21,
12,
38,
2579,
57,
2664,
1769,
7734,
1378,
57,
21,
12,
77,
1769,
5411,
289,
469,
288,
7734,
1378,
57,
21,
12,
17739,
57,
2664,
1769,
7734,
1378,
57,
22,
12,
77,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1378,
9661,
12,
474,
277,
13,
288,
5411,
309,
261,
77,
1545,
300,
21,
597,
277,
1648,
1381,
13,
7734,
1378,
57,
21,
12,
21745,
882,
67,
20,
397,
277,
1769,
5411,
469,
309,
261,
77,
1545,
3506,
18,
6236,
67,
4051,
597,
277,
1648,
3506,
18,
6694,
67,
4051,
13,
288,
7734,
1378,
57,
21,
12,
38,
2579,
57,
2664,
1769,
7734,
1378,
57,
21,
12,
77,
1769,
5411,
289,
469,
288,
7734,
1378,
57,
21,
12,
17739,
57,
2664,
1769,
7734,
1378,
57,
22,
12,
77,
1769,
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
] |
private String getDataElement(String data) { if (converter != null) return converter.convert(data); return data; }
|
private byte[] getDataElement(String data) throws IOException { if (converter != null) return converter.convert(data).getBytes(encoding); return data.getBytes(encoding); }
|
private String getDataElement(String data) { if (converter != null) return converter.convert(data); return data; }
|
5019 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5019/d012a4d22da022d0e2ffef1f49404d8568fab6c2/MarcStreamWriter.java/buggy/src/org/marc4j/MarcStreamWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
4303,
1046,
12,
780,
501,
13,
288,
202,
202,
430,
261,
15747,
480,
446,
13,
1082,
202,
2463,
6027,
18,
6283,
12,
892,
1769,
202,
202,
2463,
501,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
4303,
1046,
12,
780,
501,
13,
288,
202,
202,
430,
261,
15747,
480,
446,
13,
1082,
202,
2463,
6027,
18,
6283,
12,
892,
1769,
202,
202,
2463,
501,
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
] |
setBorder(new EtchedBorder()); setBorderPainted(false); setMargin(new Insets(1,1,1,1)); setRequestFocusEnabled(false);
|
public RolloverButton() { if(OperatingSystem.hasJava15()) setContentAreaFilled(false); if(method != null) { try { method.invoke(this,new Boolean[] { Boolean.TRUE }); } catch(Exception e) { Log.log(Log.ERROR,this,e); } } else { setBorder(new EtchedBorder()); setBorderPainted(false); setMargin(new Insets(1,1,1,1)); setRequestFocusEnabled(false); addMouseListener(new MouseOverHandler()); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/500f379cf4782a9a90da46c1cfb5571193bededc/RolloverButton.java/clean/org/gjt/sp/jedit/gui/RolloverButton.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11714,
21896,
3616,
1435,
202,
95,
202,
202,
430,
12,
3542,
24811,
18,
5332,
5852,
3600,
10756,
1082,
202,
542,
1350,
5484,
29754,
12,
5743,
1769,
202,
202,
430,
12,
2039,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
2039,
18,
14407,
12,
2211,
16,
2704,
3411,
8526,
288,
3411,
18,
18724,
15549,
1082,
202,
97,
1082,
202,
14683,
12,
503,
425,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
73,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
542,
8107,
12,
2704,
512,
88,
2049,
8107,
10663,
1082,
202,
542,
8107,
12699,
329,
12,
5743,
1769,
1082,
202,
542,
9524,
12,
2704,
22300,
12,
21,
16,
21,
16,
21,
16,
21,
10019,
1082,
202,
542,
691,
9233,
1526,
12,
5743,
1769,
1082,
202,
1289,
9186,
2223,
12,
2704,
17013,
4851,
1503,
10663,
202,
202,
97,
202,
97,
368,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11714,
21896,
3616,
1435,
202,
95,
202,
202,
430,
12,
3542,
24811,
18,
5332,
5852,
3600,
10756,
1082,
202,
542,
1350,
5484,
29754,
12,
5743,
1769,
202,
202,
430,
12,
2039,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
2039,
18,
14407,
12,
2211,
16,
2704,
3411,
8526,
288,
3411,
18,
18724,
15549,
1082,
202,
97,
1082,
202,
14683,
12,
503,
425,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
73,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
542,
8107,
12,
2704,
512,
88,
2049,
8107,
10663,
1082,
202,
542,
8107,
12699,
329,
12,
2
] |
|
protected Index getIndex(int i) { return (Index) vIndex.get(i);
|
Index getIndex(String s) { for (int i = 0; i < iIndexCount; i++) { Index h = getIndex(i); if (s.equals(h.getName().name)) { return h; } } return null;
|
protected Index getIndex(int i) { return (Index) vIndex.get(i); }
|
49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/004da3301b8316db985eecc6652835b1e05e6f72/Table.java/buggy/base-one/trunk/src/org/hsqldb/Table.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3340,
8088,
12,
474,
277,
13,
288,
3639,
327,
261,
1016,
13,
331,
1016,
18,
588,
12,
77,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3340,
8088,
12,
474,
277,
13,
288,
3639,
327,
261,
1016,
13,
331,
1016,
18,
588,
12,
77,
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
] |
getProperty().set(container, Boolean.valueOf(getComponent().isSelected()));
|
getProperty().set(container, getComponent().isSelected());
|
public void apply(AbstractProperty.AbstractPropertyContainer container) { getProperty().set(container, Boolean.valueOf(getComponent().isSelected())); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3ab4b24381bd6f33991f875143f64df653cbe69f/UIPropertyBinding.java/clean/plugins/ant/src/com/intellij/lang/ant/config/impl/configuration/UIPropertyBinding.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
12,
7469,
1396,
18,
7469,
1396,
2170,
1478,
13,
288,
1377,
3911,
7675,
542,
12,
3782,
16,
10322,
7675,
291,
7416,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
2230,
12,
7469,
1396,
18,
7469,
1396,
2170,
1478,
13,
288,
1377,
3911,
7675,
542,
12,
3782,
16,
10322,
7675,
291,
7416,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int containmentType = parentBean.canContainComponent(nestedElementTagName);
|
ContainmentType containmentType = parentBean .canContainComponent(nestedElementTagName);
|
public boolean isApplicable( Pattern pattern, Attributes attributes, InterpretationContext ec) { //System.out.println("in NestComponentIA.isApplicable <" + pattern + ">"); String nestedElementTagName = pattern.peekLast(); // calling ec.peekObject with an empty stack will throw an exception if(ec.isEmpty()) { return false; } Object o = ec.peekObject(); PropertySetter parentBean = new PropertySetter(o); parentBean.setContext(context); int containmentType = parentBean.canContainComponent(nestedElementTagName); switch (containmentType) { case PropertySetter.NOT_FOUND: case PropertySetter.AS_PROPERTY: return false; // we only push action data if NestComponentIA is applicable case PropertySetter.AS_COLLECTION: case PropertySetter.AS_COMPONENT: addInfo("is dmmed applicable for "+pattern); ImplicitActionData ad = new ImplicitActionData(parentBean, containmentType); actionDataStack.push(ad); return true; default: addError("PropertySetter.canContainComponent returned " + containmentType); return false; } }
|
48827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48827/445c93509c33d1cf431a1f997c92db98d3b8fd69/NestedComponentIA.java/buggy/logback-core/src/main/java/ch/qos/logback/core/joran/action/NestedComponentIA.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
27873,
12,
565,
6830,
1936,
16,
9055,
1677,
16,
5294,
15089,
367,
1042,
6557,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
267,
423,
395,
1841,
15188,
18,
291,
27873,
411,
6,
397,
1936,
397,
14675,
1769,
565,
514,
4764,
1046,
8520,
273,
1936,
18,
347,
3839,
3024,
5621,
565,
368,
4440,
6557,
18,
347,
3839,
921,
598,
392,
1008,
2110,
903,
604,
392,
1520,
565,
309,
12,
557,
18,
291,
1921,
10756,
288,
1377,
327,
629,
31,
565,
289,
3639,
1033,
320,
273,
6557,
18,
347,
3839,
921,
5621,
565,
4276,
8465,
982,
3381,
273,
394,
4276,
8465,
12,
83,
1769,
565,
982,
3381,
18,
542,
1042,
12,
2472,
1769,
3639,
1816,
530,
475,
559,
912,
475,
559,
273,
982,
3381,
263,
4169,
22928,
1841,
12,
12985,
1046,
8520,
1769,
565,
1620,
261,
28744,
475,
559,
13,
288,
565,
648,
4276,
8465,
18,
4400,
67,
9294,
30,
565,
648,
4276,
8465,
18,
3033,
67,
9900,
30,
1377,
327,
629,
31,
565,
368,
732,
1338,
1817,
1301,
501,
309,
423,
395,
1841,
15188,
353,
12008,
565,
648,
4276,
8465,
18,
3033,
67,
25964,
30,
565,
648,
4276,
8465,
18,
3033,
67,
22922,
30,
1377,
527,
966,
2932,
291,
9113,
2937,
12008,
364,
13773,
4951,
1769,
1377,
26142,
1803,
751,
1261,
273,
394,
26142,
1803,
751,
12,
2938,
3381,
16,
912,
475,
559,
1769,
1377,
1301,
751,
2624,
18,
6206,
12,
361,
1769,
1377,
327,
638,
31,
565,
805,
30,
1377,
9501,
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,
1250,
353,
27873,
12,
565,
6830,
1936,
16,
9055,
1677,
16,
5294,
15089,
367,
1042,
6557,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
267,
423,
395,
1841,
15188,
18,
291,
27873,
411,
6,
397,
1936,
397,
14675,
1769,
565,
514,
4764,
1046,
8520,
273,
1936,
18,
347,
3839,
3024,
5621,
565,
368,
4440,
6557,
18,
347,
3839,
921,
598,
392,
1008,
2110,
903,
604,
392,
1520,
565,
309,
12,
557,
18,
291,
1921,
10756,
288,
1377,
327,
629,
31,
565,
289,
3639,
1033,
320,
273,
6557,
18,
347,
3839,
921,
5621,
565,
4276,
8465,
982,
3381,
273,
394,
4276,
8465,
12,
83,
1769,
565,
982,
3381,
18,
542,
1042,
12,
2472,
1769,
3639,
1816,
2
] |
if (uriStr == null || ! (aGrammar instanceof SchemaGrammar) ) {
|
if (uriStr == null || aGrammar==null ||! (aGrammar instanceof SchemaGrammar) ) {
|
private int traverseGroupDeclFromAnotherSchema( String groupName , String uriStr ) throws Exception { SchemaGrammar aGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uriStr); if (uriStr == null || ! (aGrammar instanceof SchemaGrammar) ) { // REVISIT: Localize reportGenericSchemaError("!!Schema not found in #traverseGroupDeclFromAnotherSchema, "+ "schema uri: " + uriStr +", groupName: " + groupName); return -1; } Element groupDecl = (Element) aGrammar.topLevelGroupDecls.get((Object)groupName); if (groupDecl == null) { // REVISIT: Localize reportGenericSchemaError( "no group named \"" + groupName + "\" was defined in schema : " + uriStr); return -1; } boolean traverseElt = true; if (fCurrentScope == TOP_LEVEL_SCOPE) { traverseElt = false; } Element child = XUtil.getFirstChildElement(groupDecl); while (child != null && child.getNodeName().equals(SchemaSymbols.ELT_ANNOTATION)) child = XUtil.getNextSiblingElement(child); int contentSpecType = 0; int csnType = 0; int allChildren[] = null; int allChildCount = 0; csnType = XMLContentSpec.CONTENTSPECNODE_SEQ; contentSpecType = XMLElementDecl.TYPE_CHILDREN; int left = -2; int right = -2; boolean hadContent = false; for (; child != null; child = XUtil.getNextSiblingElement(child)) { int index = -2; hadContent = true; boolean seeParticle = false; String childName = child.getNodeName(); int childNameIndex = fStringPool.addSymbol(childName); String formAttrVal = child.getAttribute(SchemaSymbols.ATT_FORM); if (childName.equals(SchemaSymbols.ELT_ELEMENT)) { QName eltQName = traverseElementDecl(child); index = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_LEAF, eltQName.localpart, eltQName.uri, false); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_GROUP)) { index = traverseGroupDecl(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ALL)) { index = traverseAll(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = traverseChoice(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = traverseSequence(child); seeParticle = true; } else { reportSchemaError(SchemaMessageProvider.GroupContentRestricted, new Object [] { "group", childName }); } if (seeParticle) { index = expandContentModel( index, child); } if (left == -2) { left = index; } else if (right == -2) { right = index; } else { left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); right = index; } } if (hadContent && right != -2) left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); return left; } // end of method traverseGroupDeclFromAnotherSchema
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1a31734128769eb4911962af638be807c4d27b8c/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
1114,
3456,
1265,
37,
24413,
3078,
12,
514,
11619,
269,
514,
2003,
1585,
262,
1216,
1185,
288,
7734,
4611,
18576,
279,
18576,
273,
261,
3078,
18576,
13,
284,
18576,
4301,
18,
588,
18576,
12,
1650,
1585,
1769,
3639,
309,
261,
1650,
1585,
422,
446,
747,
279,
18576,
631,
2011,
747,
5,
261,
69,
18576,
1276,
4611,
18576,
13,
262,
288,
5411,
368,
2438,
26780,
1285,
30,
3566,
554,
5411,
2605,
7014,
3078,
668,
2932,
8548,
3078,
486,
1392,
316,
468,
2033,
2476,
1114,
3456,
1265,
37,
24413,
3078,
16,
13773,
19694,
315,
4821,
2003,
30,
315,
397,
2003,
1585,
19694,
397,
3113,
11619,
30,
315,
397,
11619,
1769,
5411,
327,
300,
21,
31,
3639,
289,
7734,
3010,
1041,
3456,
273,
261,
1046,
13,
279,
18576,
18,
3669,
2355,
1114,
1799,
3251,
18,
588,
12443,
921,
13,
1655,
461,
1769,
3639,
309,
261,
1655,
3456,
422,
446,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
3566,
554,
5411,
2605,
7014,
3078,
668,
12,
315,
2135,
1041,
4141,
11843,
397,
11619,
4766,
4202,
397,
7023,
1703,
2553,
316,
1963,
294,
315,
397,
2003,
1585,
1769,
5411,
327,
300,
21,
31,
3639,
289,
3639,
1250,
10080,
15899,
273,
638,
31,
540,
309,
261,
74,
3935,
3876,
422,
18680,
67,
10398,
67,
19444,
13,
288,
5411,
10080,
15899,
273,
629,
31,
3639,
289,
3639,
3010,
1151,
273,
1139,
1304,
18,
588,
3759,
1763,
1046,
12,
1655,
3456,
1769,
3639,
1323,
261,
3624,
480,
446,
597,
1151,
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,
3238,
509,
10080,
1114,
3456,
1265,
37,
24413,
3078,
12,
514,
11619,
269,
514,
2003,
1585,
262,
1216,
1185,
288,
7734,
4611,
18576,
279,
18576,
273,
261,
3078,
18576,
13,
284,
18576,
4301,
18,
588,
18576,
12,
1650,
1585,
1769,
3639,
309,
261,
1650,
1585,
422,
446,
747,
279,
18576,
631,
2011,
747,
5,
261,
69,
18576,
1276,
4611,
18576,
13,
262,
288,
5411,
368,
2438,
26780,
1285,
30,
3566,
554,
5411,
2605,
7014,
3078,
668,
2932,
8548,
3078,
486,
1392,
316,
468,
2033,
2476,
1114,
3456,
1265,
37,
24413,
3078,
16,
13773,
19694,
315,
4821,
2003,
30,
315,
397,
2003,
1585,
19694,
397,
3113,
11619,
30,
315,
397,
11619,
1769,
5411,
327,
300,
21,
31,
3639,
289,
2
] |
this.close(); this.setOnLoad("window.opener.parent.frames['iwb_main'].location.reload()");
|
Link l = new Link(); l.setWindowToOpen(CalendarWindow.class); l.addParameter(PRM_DELETE_ID, ""); String script = "window.opener." + l.getWindowToOpenCallingScript(iwc); setOnLoad(script); close();
|
public void main(IWContext iwc){ setTitle("Confirm delete"); //this.setParentToReload(); //this.debugParameters(iwc); boolean doConfirm = !(iwc.getParameter(PRM_CONFIRM)!=null || iwc.getParameter(PRM_CONFIRM+".x")!=null); if(doConfirm){ add(getConfirmBox(iwc),iwc); } else{ String _entryID = iwc.getParameter(PRM_DELETE_ID); try { getCalendarBusiness(iwc).deleteEntry(Integer.parseInt(_entryID)); } catch (Exception ex) { ex.printStackTrace(); } this.close(); this.setOnLoad("window.opener.parent.frames['iwb_main'].location.reload()");// } }
|
11359 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11359/eb27ddf23373ce5c5e4634df6fb06cbf1a13e0d7/ConfirmDeleteWindow.java/clean/src/java/com/idega/block/cal/presentation/ConfirmDeleteWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2774,
12,
45,
59,
1042,
25522,
71,
15329,
1377,
14109,
2932,
11269,
1430,
8863,
1377,
368,
2211,
18,
542,
3054,
774,
13013,
5621,
1377,
368,
2211,
18,
4148,
2402,
12,
22315,
71,
1769,
1377,
1250,
741,
11269,
273,
401,
12,
22315,
71,
18,
588,
1662,
12,
8025,
49,
67,
2248,
31324,
13,
5,
33,
2011,
747,
25522,
71,
18,
588,
1662,
12,
8025,
49,
67,
2248,
31324,
9078,
18,
92,
7923,
5,
33,
2011,
1769,
1377,
309,
12,
2896,
11269,
15329,
3639,
527,
12,
588,
11269,
3514,
12,
22315,
71,
3631,
22315,
71,
1769,
1377,
289,
1377,
469,
95,
3639,
514,
389,
4099,
734,
273,
25522,
71,
18,
588,
1662,
12,
8025,
49,
67,
6460,
67,
734,
1769,
3639,
775,
288,
1850,
28623,
13423,
12,
22315,
71,
2934,
3733,
1622,
12,
4522,
18,
2670,
1702,
24899,
4099,
734,
10019,
3639,
289,
3639,
1044,
261,
503,
431,
13,
288,
1850,
431,
18,
1188,
6332,
5621,
3639,
289,
3639,
333,
18,
4412,
5621,
3639,
333,
18,
542,
1398,
2563,
2932,
5668,
18,
25098,
18,
2938,
18,
10278,
3292,
77,
9464,
67,
5254,
29489,
3562,
18,
17517,
1435,
8863,
759,
2868,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2774,
12,
45,
59,
1042,
25522,
71,
15329,
1377,
14109,
2932,
11269,
1430,
8863,
1377,
368,
2211,
18,
542,
3054,
774,
13013,
5621,
1377,
368,
2211,
18,
4148,
2402,
12,
22315,
71,
1769,
1377,
1250,
741,
11269,
273,
401,
12,
22315,
71,
18,
588,
1662,
12,
8025,
49,
67,
2248,
31324,
13,
5,
33,
2011,
747,
25522,
71,
18,
588,
1662,
12,
8025,
49,
67,
2248,
31324,
9078,
18,
92,
7923,
5,
33,
2011,
1769,
1377,
309,
12,
2896,
11269,
15329,
3639,
527,
12,
588,
11269,
3514,
12,
22315,
71,
3631,
22315,
71,
1769,
1377,
289,
1377,
469,
95,
3639,
514,
389,
4099,
734,
273,
25522,
71,
18,
588,
1662,
12,
8025,
49,
67,
6460,
67,
2
] |
if (res != null && res.isLoaded() && res.getWebServicesClient() != null) result.addAll(res.getWebServicesClient().getServiceRefs());
|
if (res != null && res.isLoaded() && res.getWebServicesClient() != null) { if (J2EEProjectUtilities.isEJBProject(artifactEdit.getProject())) { List scopedBeans = res.getWebServicesClient().getComponentScopedRefs(); for (Iterator iterator = scopedBeans.iterator(); iterator.hasNext();) { ComponentScopedRefs refBean = (ComponentScopedRefs) iterator.next(); result.addAll(refBean.getServiceRefs()); } } else result.addAll(res.getWebServicesClient().getServiceRefs()); }
|
public List getWorkspace13ServiceRefs() { List result = new ArrayList(); Iterator iter = getWSClientArtifactEdits().iterator(); while (iter.hasNext()) { WSCDDArtifactEdit artifactEdit = (WSCDDArtifactEdit) iter.next(); WebServicesResource res = artifactEdit.getWscddXmiResource(); if (res != null && res.isLoaded() && res.getWebServicesClient() != null) result.addAll(res.getWebServicesClient().getServiceRefs()); } return result; }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7513c0ad94a1a331214c4481e5031dfed897e5cc/WebServicesManager.java/buggy/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
20280,
3437,
1179,
9837,
1435,
288,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
3198,
1400,
273,
336,
2651,
1227,
7581,
2671,
1282,
7675,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
59,
2312,
5698,
7581,
4666,
6462,
4666,
273,
261,
59,
2312,
5698,
7581,
4666,
13,
1400,
18,
4285,
5621,
1082,
202,
4079,
5676,
1420,
400,
273,
6462,
4666,
18,
588,
59,
1017,
449,
60,
9197,
1420,
5621,
1082,
202,
430,
261,
455,
480,
446,
597,
400,
18,
291,
8835,
1435,
597,
400,
18,
588,
4079,
5676,
1227,
1435,
480,
446,
13,
9506,
202,
2088,
18,
1289,
1595,
12,
455,
18,
588,
4079,
5676,
1227,
7675,
588,
1179,
9837,
10663,
202,
202,
97,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
20280,
3437,
1179,
9837,
1435,
288,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
3198,
1400,
273,
336,
2651,
1227,
7581,
2671,
1282,
7675,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
59,
2312,
5698,
7581,
4666,
6462,
4666,
273,
261,
59,
2312,
5698,
7581,
4666,
13,
1400,
18,
4285,
5621,
1082,
202,
4079,
5676,
1420,
400,
273,
6462,
4666,
18,
588,
59,
1017,
449,
60,
9197,
1420,
5621,
1082,
202,
430,
261,
455,
480,
446,
597,
400,
18,
291,
8835,
1435,
597,
400,
18,
588,
4079,
5676,
1227,
1435,
480,
446,
13,
9506,
202,
2088,
18,
1289,
1595,
12,
455,
18,
588,
4079,
5676,
1227,
7675,
2
] |
UMLModelElementListModel activatorModel=new UMLReflectionListModel(this, "activator",true,"getActivator",null, null,null);
|
UMLModelElementListModel activatorModel = new UMLActivatorListModel(this, "activator", false);
|
public PropPanelMessage() { super("Message",null, 2); Class mclass = MMessage.class; addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(nameField,1,0,0); addCaption(Argo.localize("UMLMenu", "label.stereotype"),2,0,0); addField(stereotypeBox,2,0,0); // no namespace since this class belongs to an interaction and namespace is therefore not of any interest // addCaption(Argo.localize("UMLMenu", "label.namespace"),3,0,0); // addField(namespaceScroll,3,0,0); addCaption("Sender:",3,0,0); UMLModelElementListModel senderModel=new UMLReflectionListModel(this, "sender",true,"getSender",null, null,null); JList senderList = new UMLList(senderModel,true); senderList.setForeground(Color.blue); senderList.setFont(smallFont); JScrollPane senderScroll = new JScrollPane(senderList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); addField(senderScroll,3,0,0); addCaption(Argo.localize("UMLMenu", "label.receiver"),4,0,1); UMLModelElementListModel receiverModel=new UMLReflectionListModel(this, "receiver",true,"getReceiver",null, null,null); JList receiverList = new UMLList(receiverModel,true); receiverList.setForeground(Color.blue); receiverList.setFont(smallFont); JScrollPane receiverScroll = new JScrollPane(receiverList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); addField(receiverScroll,4,0,0); addCaption("Predecessor:",0,1,0); UMLModelElementListModel predecessorModel=new UMLReflectionListModel(this, "predecessor",true,"getPredecessor",null, null,null); JList predecessorList = new UMLList(predecessorModel,true); predecessorList.setForeground(Color.blue); predecessorList.setFont(smallFont); JScrollPane predecessorScroll = new JScrollPane(predecessorList); addField(predecessorScroll,0,1,0.4); addCaption("Activator:",1,1,0); UMLModelElementListModel activatorModel=new UMLReflectionListModel(this, "activator",true,"getActivator",null, null,null); JList activatorList = new UMLList(activatorModel,true); activatorList.setForeground(Color.blue); activatorList.setFont(smallFont); activatorList.setVisibleRowCount(1); JScrollPane activatorScroll = new JScrollPane(activatorList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); addField(activatorScroll,1,1,0); addCaption("Action:",2,1,1); UMLModelElementListModel actionModel=new UMLReflectionListModel(this, "action",true,"getAction",null,"addAction","deleteAction"); JList actionList = new UMLList(actionModel,true); actionList.setForeground(Color.blue); actionList.setFont(smallFont); JScrollPane actionScroll = new JScrollPane(actionList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); addField(actionScroll,2,1,0); new PropPanelButton(this,buttonPanel,_navUpIcon, Argo.localize("UMLMenu", "button.go-up"),"navigateInteraction",null); new PropPanelButton(this,buttonPanel,_navBackIcon, Argo.localize("UMLMenu" ,"button.go-back"),"navigateBackAction","isNavigateBackEnabled"); new PropPanelButton(this,buttonPanel,_navForwardIcon, Argo.localize("UMLMenu", "button.go-forward"),"navigateForwardAction","isNavigateForwardEnabled"); new PropPanelButton(this,buttonPanel,_actionIcon, Argo.localize("UMLMenu", "button.add-action"),"addAction","isAddActionEnabled"); new PropPanelButton(this,buttonPanel,_deleteIcon,localize("Delete"),"removeElement",null); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/24730aab2d0995ceec942b0623701d2703e73e8e/PropPanelMessage.java/buggy/src_new/org/argouml/uml/ui/behavior/collaborations/PropPanelMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10484,
5537,
1079,
1435,
288,
565,
2240,
2932,
1079,
3113,
2011,
16,
576,
1769,
565,
1659,
312,
1106,
273,
490,
1079,
18,
1106,
31,
565,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
529,
6,
3631,
21,
16,
20,
16,
20,
1769,
565,
11742,
12,
529,
974,
16,
21,
16,
20,
16,
20,
1769,
565,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
334,
822,
10570,
6,
3631,
22,
16,
20,
16,
20,
1769,
565,
11742,
12,
334,
822,
10570,
3514,
16,
22,
16,
20,
16,
20,
1769,
202,
759,
1158,
1981,
3241,
333,
667,
11081,
358,
392,
13581,
471,
1981,
353,
13526,
486,
434,
1281,
16513,
565,
368,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
4937,
6,
3631,
23,
16,
20,
16,
20,
1769,
565,
368,
11742,
12,
4937,
6806,
16,
23,
16,
20,
16,
20,
1769,
565,
527,
21158,
2932,
12021,
2773,
16,
23,
16,
20,
16,
20,
1769,
565,
587,
1495,
1488,
1046,
682,
1488,
5793,
1488,
33,
2704,
587,
1495,
9801,
682,
1488,
12,
2211,
16,
315,
15330,
3113,
3767,
10837,
588,
12021,
3113,
2011,
16,
446,
16,
2011,
1769,
565,
804,
682,
5793,
682,
273,
394,
587,
1495,
682,
12,
15330,
1488,
16,
3767,
1769,
565,
5793,
682,
18,
542,
23206,
12,
2957,
18,
14081,
1769,
565,
5793,
682,
18,
542,
5711,
12,
12019,
5711,
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,
10484,
5537,
1079,
1435,
288,
565,
2240,
2932,
1079,
3113,
2011,
16,
576,
1769,
565,
1659,
312,
1106,
273,
490,
1079,
18,
1106,
31,
565,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
529,
6,
3631,
21,
16,
20,
16,
20,
1769,
565,
11742,
12,
529,
974,
16,
21,
16,
20,
16,
20,
1769,
565,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
334,
822,
10570,
6,
3631,
22,
16,
20,
16,
20,
1769,
565,
11742,
12,
334,
822,
10570,
3514,
16,
22,
16,
20,
16,
20,
1769,
202,
759,
1158,
1981,
3241,
333,
667,
11081,
358,
392,
13581,
471,
1981,
2
] |
int fix_arg_count = variable ? arg_count - 1 : args.length;
|
int fix_arg_count = variable ? arg_count - 1 : args.length - startArg;
|
void compileArgs(Expression[] args, Type thisType, Compilation comp) { boolean variable = takesVarArgs(); String name = getName(); Type arg_type = null; gnu.bytecode.CodeAttr code = comp.getCode(); int skipArg = thisType == Type.void_type ? 1 : 0; int arg_count = argTypes.length - skipArg; if (takesContext()) arg_count--; boolean is_static = thisType == null || skipArg != 0; int fix_arg_count = variable ? arg_count - 1 : args.length; Declaration argDecl = source == null ? null : source.firstDecl(); if (argDecl != null && argDecl.isThisParameter()) argDecl = argDecl.nextDecl(); for (int i = 0; ; ++i) { if (variable && i == fix_arg_count) { arg_type = argTypes[arg_count-1+skipArg]; if (arg_type == Compilation.scmListType) { gnu.kawa.functions.MakeList.compile(args, i, comp); break; } code.emitPushInt(args.length - fix_arg_count); arg_type = ((ArrayType) arg_type).getComponentType(); code.emitNewArray(arg_type); } if (i >= args.length) break; if (i >= fix_arg_count) { code.emitDup(1); // dup array. code.emitPushInt(i - fix_arg_count); } else arg_type = argDecl != null && (is_static || i > 0) ? argDecl.getType() : is_static ? argTypes[i + skipArg] : i==0 ? thisType : argTypes[i-1]; comp.usedClass(arg_type); Target target = source == null ? CheckedTarget.getInstance(arg_type, name, i+1) : CheckedTarget.getInstance(arg_type, source, i); args[i].compileNotePosition(comp, target, args[i]); if (i >= fix_arg_count) code.emitArrayStore(arg_type); if (argDecl != null && (is_static || i > 0)) argDecl = argDecl.nextDecl(); } }
|
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4074,
2615,
12,
2300,
8526,
833,
16,
1412,
333,
559,
16,
22416,
1161,
13,
288,
565,
1250,
2190,
273,
5530,
1537,
2615,
5621,
565,
514,
508,
273,
1723,
5621,
565,
1412,
1501,
67,
723,
273,
446,
31,
565,
314,
13053,
18,
1637,
16651,
18,
1085,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
509,
2488,
4117,
273,
333,
559,
422,
1412,
18,
6459,
67,
723,
692,
404,
294,
374,
31,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
300,
2488,
4117,
31,
565,
309,
261,
88,
3223,
1042,
10756,
1377,
1501,
67,
1883,
413,
31,
565,
1250,
353,
67,
3845,
273,
333,
559,
422,
446,
747,
2488,
4117,
480,
374,
31,
565,
509,
2917,
67,
3175,
67,
1883,
273,
2190,
692,
1501,
67,
1883,
300,
404,
294,
833,
18,
2469,
300,
787,
4117,
31,
565,
16110,
4302,
1501,
3456,
273,
1084,
422,
446,
692,
446,
294,
1084,
18,
3645,
3456,
5621,
565,
309,
261,
3175,
3456,
480,
446,
597,
1501,
3456,
18,
291,
2503,
1662,
10756,
1377,
1501,
3456,
273,
1501,
3456,
18,
4285,
3456,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
274,
965,
77,
13,
1377,
288,
3639,
309,
261,
6105,
597,
277,
422,
2917,
67,
3175,
67,
1883,
13,
1850,
288,
5411,
1501,
67,
723,
273,
30973,
63,
3175,
67,
1883,
17,
21,
15,
7457,
4117,
15533,
202,
565,
309,
261,
3175,
67,
723,
422,
22416,
18,
1017,
81,
19366,
13,
202,
1377,
288,
202,
202,
1600,
89,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4074,
2615,
12,
2300,
8526,
833,
16,
1412,
333,
559,
16,
22416,
1161,
13,
288,
565,
1250,
2190,
273,
5530,
1537,
2615,
5621,
565,
514,
508,
273,
1723,
5621,
565,
1412,
1501,
67,
723,
273,
446,
31,
565,
314,
13053,
18,
1637,
16651,
18,
1085,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
509,
2488,
4117,
273,
333,
559,
422,
1412,
18,
6459,
67,
723,
692,
404,
294,
374,
31,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
300,
2488,
4117,
31,
565,
309,
261,
88,
3223,
1042,
10756,
1377,
1501,
67,
1883,
413,
31,
565,
1250,
353,
67,
3845,
273,
333,
559,
422,
446,
747,
2488,
4117,
480,
374,
31,
565,
509,
2917,
67,
2
] |
else { trans.stopAll(); try { trans.endProcessing("stop"); log.logMinimal(Spoon.APP_NAME, Messages.getString("SpoonLog.Log.ProcessingOfTransformationStopped")); } catch (KettleException e) { new ErrorDialog(shell, Messages.getString("SpoonLog.Dialog.ErrorWritingLogRecord.Title"), Messages.getString("SpoonLog.Dialog.ErrorWritingLogRecord.Message"), e); } wStart.setText(START_TEXT); running = false; initialized = false; halted = false; if (preview) { preview = false; showPreview(); } spoon.getTransMeta().setInternalKettleVariables(); }
|
public synchronized void startstop(TransExecutionConfiguration executionConfiguration) { if (!running) // Not running, start the transformation... { // Auto save feature... if (spoon.getTransMeta().hasChanged()) { if (spoon.props.getAutoSave()) { spoon.saveFile(); } else { MessageDialogWithToggle md = new MessageDialogWithToggle(shell, Messages.getString("SpoonLog.Dialog.FileHasChanged.Title"), //$NON-NLS-1$ null, Messages.getString("SpoonLog.Dialog.FileHasChanged1.Message") + Const.CR + Messages.getString("SpoonLog.Dialog.FileHasChanged2.Message") + Const.CR, //$NON-NLS-1$ //$NON-NLS-2$ MessageDialog.QUESTION, new String[] { Messages.getString("System.Button.Yes"), Messages.getString("System.Button.No") }, //$NON-NLS-1$ //$NON-NLS-2$ 0, Messages.getString("SpoonLog.Dialog.Option.AutoSaveTransformation"), //$NON-NLS-1$ spoon.props.getAutoSave()); int answer = md.open(); if ( (answer & 0xFF) == 0) { spoon.saveFile(); } spoon.props.setAutoSave(md.getToggleState()); } } if (((spoon.getTransMeta().getName() != null && spoon.rep != null) || // Repository available & name set (spoon.getTransMeta().getFilename() != null && spoon.rep == null) // No repository & filename set ) && !spoon.getTransMeta().hasChanged() // Didn't change ) { if (trans == null || (trans != null && trans.isFinished())) { try { trans = new Trans(log, spoon.getTransMeta().getFilename(), spoon.getTransMeta().getName(), new String[] { spoon.getTransMeta().getFilename() }); trans.setReplayDate(executionConfiguration.getReplayDate()); trans.open(spoon.rep, spoon.getTransMeta().getName(), spoon.getTransMeta().getDirectory().getPath(), spoon.getTransMeta().getFilename()); trans.setMonitored(true); log.logBasic(toString(), Messages.getString("SpoonLog.Log.TransformationOpened")); //$NON-NLS-1$ } catch (KettleException e) { trans = null; new ErrorDialog(shell, Messages.getString("SpoonLog.Dialog.ErrorOpeningTransformation.Title"), Messages.getString("SpoonLog.Dialog.ErrorOpeningTransformation.Message"), e); //$NON-NLS-1$ //$NON-NLS-2$ } readLog(); if (trans != null) { final String args[]; Row arguments = executionConfiguration.getArguments(); if (arguments != null) { args = convertArguments(arguments); } else { args = null; } setVariables(executionConfiguration); log.logMinimal(Spoon.APP_NAME, Messages.getString("SpoonLog.Log.LaunchingTransformation") + trans.getTransMeta().getName() + "]..."); //$NON-NLS-1$ //$NON-NLS-2$ trans.setSafeModeEnabled(wSafeMode.getSelection()); // Launch the step preparation in a different thread. // That way Spoon doesn't block anymore and that way we can follow the progress of the initialisation // final Thread parentThread = Thread.currentThread(); display.asyncExec( new Runnable() { public void run() { prepareTrans(parentThread, args); } } ); log.logMinimal(Spoon.APP_NAME, Messages.getString("SpoonLog.Log.StartedExecutionOfTransformation")); //$NON-NLS-1$ wStart.setText(STOP_TEXT); readLog(); } } else { MessageBox m = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING); m.setText(Messages.getString("SpoonLog.Dialog.DoNoStartTransformationTwice.Title")); //$NON-NLS-1$ m.setMessage(Messages.getString("SpoonLog.Dialog.DoNoStartTransformationTwice.Message")); //$NON-NLS-1$ m.open(); } } else { if (spoon.getTransMeta().hasChanged()) { MessageBox m = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING); m.setText(Messages.getString("SpoonLog.Dialog.SaveTransformationBeforeRunning.Title")); //$NON-NLS-1$ m.setMessage(Messages.getString("SpoonLog.Dialog.SaveTransformationBeforeRunning.Message")); //$NON-NLS-1$ m.open(); } else if (spoon.rep != null && spoon.getTransMeta().getName() == null) { MessageBox m = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING); m.setText(Messages.getString("SpoonLog.Dialog.GiveTransformationANameBeforeRunning.Title")); //$NON-NLS-1$ m.setMessage(Messages.getString("SpoonLog.Dialog.GiveTransformationANameBeforeRunning.Message")); //$NON-NLS-1$ m.open(); } else { MessageBox m = new MessageBox(shell, SWT.OK | SWT.ICON_WARNING); m.setText(Messages.getString("SpoonLog.Dialog.SaveTransformationBeforeRunning2.Title")); //$NON-NLS-1$ m.setMessage(Messages.getString("SpoonLog.Dialog.SaveTransformationBeforeRunning2.Message")); //$NON-NLS-1$ m.open(); } } } else { trans.stopAll(); try { trans.endProcessing("stop"); //$NON-NLS-1$ log.logMinimal(Spoon.APP_NAME, Messages.getString("SpoonLog.Log.ProcessingOfTransformationStopped")); //$NON-NLS-1$ } catch (KettleException e) { new ErrorDialog(shell, Messages.getString("SpoonLog.Dialog.ErrorWritingLogRecord.Title"), Messages.getString("SpoonLog.Dialog.ErrorWritingLogRecord.Message"), e); //$NON-NLS-1$ //$NON-NLS-2$ } wStart.setText(START_TEXT); running = false; initialized = false; halted = false; if (preview) { preview = false; showPreview(); } spoon.getTransMeta().setInternalKettleVariables(); // set the original vars back as they may be changed by a mapping } }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/586f2ab5921f851b4690fc7b9c9ac92cd61eacce/SpoonLog.java/buggy/kettle/src/be/ibridge/kettle/spoon/SpoonLog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
787,
5681,
12,
1429,
3210,
1750,
4588,
1750,
13,
202,
95,
202,
202,
430,
16051,
8704,
13,
368,
2288,
3549,
16,
787,
326,
8620,
2777,
202,
202,
95,
1082,
202,
759,
8064,
1923,
2572,
2777,
1082,
202,
430,
261,
87,
1631,
265,
18,
588,
1429,
2781,
7675,
5332,
5033,
10756,
1082,
202,
95,
9506,
202,
430,
261,
87,
1631,
265,
18,
9693,
18,
588,
4965,
4755,
10756,
9506,
202,
95,
6862,
202,
87,
1631,
265,
18,
5688,
812,
5621,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
1079,
6353,
1190,
17986,
3481,
273,
394,
2350,
6353,
1190,
17986,
12,
10304,
16,
4838,
18,
588,
780,
2932,
55,
1631,
265,
1343,
18,
6353,
18,
812,
5582,
5033,
18,
4247,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
2011,
16,
4838,
18,
588,
780,
2932,
55,
1631,
265,
1343,
18,
6353,
18,
812,
5582,
5033,
21,
18,
1079,
7923,
397,
9333,
18,
5093,
397,
4838,
18,
588,
780,
2932,
55,
1631,
265,
1343,
18,
6353,
18,
812,
5582,
5033,
22,
18,
1079,
7923,
397,
9333,
18,
5093,
16,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
6862,
1082,
202,
1079,
6353,
18,
4740,
1146,
16,
394,
514,
8526,
288,
4838,
18,
588,
780,
2932,
3163,
18,
3616,
18,
22352,
6,
3631,
4838,
18,
588,
780,
2932,
3163,
18,
3616,
18,
2279,
7923,
19879,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
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,
787,
5681,
12,
1429,
3210,
1750,
4588,
1750,
13,
202,
95,
202,
202,
430,
16051,
8704,
13,
368,
2288,
3549,
16,
787,
326,
8620,
2777,
202,
202,
95,
1082,
202,
759,
8064,
1923,
2572,
2777,
1082,
202,
430,
261,
87,
1631,
265,
18,
588,
1429,
2781,
7675,
5332,
5033,
10756,
1082,
202,
95,
9506,
202,
430,
261,
87,
1631,
265,
18,
9693,
18,
588,
4965,
4755,
10756,
9506,
202,
95,
6862,
202,
87,
1631,
265,
18,
5688,
812,
5621,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
1079,
6353,
1190,
17986,
3481,
273,
394,
2350,
6353,
1190,
17986,
12,
10304,
16,
4838,
18,
588,
780,
2932,
55,
1631,
265,
1343,
18,
2
] |
|
+ _name + "\"/>", getLocationData());
|
+ name + "\"/>", getLocationData());
|
public ProcessorOutput createOutput(final String name) { final String _name = name; ProcessorOutput output = new ProcessorImpl.ProcessorOutputImpl(getClass(), name) { public void readImpl(final PipelineContext context, final ContentHandler contentHandler) { final ProcessorInput bottomInput = getInput(context); if (bottomInput.getOutput() == null) throw new ValidationException("Pipeline output '" + name + "' is not connected to a processor output in pipeline", PipelineProcessor.this.getLocationData()); executeChildren(context, new Runnable() { public void run() { readInputAsSAX(context, bottomInput, contentHandler); } }); } /** * If the config is already in cache and the pipeline constructed, * we return the key of the bottomInput corresponding to this * output. */ public OutputCacheKey getKeyImpl(final PipelineContext context) { if (configFromAST == null && !isInputInCache(context, INPUT_CONFIG)) return null; final ProcessorInput bottomInput = getInput(context); final OutputCacheKey[] bottomInputKey = new OutputCacheKey[1]; executeChildren(context, new Runnable() { public void run() { bottomInputKey[0] = (bottomInput != null) ? getInputKey(context, bottomInput) : null; } }); return bottomInputKey[0]; } /** * Similar to getKey (above), but for the validity. */ public Object getValidityImpl(final PipelineContext context) { if (configFromAST == null && !isInputInCache(context, INPUT_CONFIG)) return null; final ProcessorInput bottomInput = getInput(context); final Object[] bottomInputValidity = new Object[1]; executeChildren(context, new Runnable() { public void run() { bottomInputValidity[0] = (bottomInput != null) ? getInputValidity(context, bottomInput) : null; } }); return bottomInputValidity[0]; } private ProcessorInput getInput(PipelineContext context) { State state = (State) getState(context); if (!state.started) start(context); final ProcessorInput bottomInput = (ProcessorInput) state.nameToBottomInputMap.get(_name); if (bottomInput == null) { throw new ValidationException("There is no <param type=\"output\" name=\"" + _name + "\"/>", getLocationData()); } return bottomInput; } }; addOutput(name, output); return output; }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/6b4b361feafd9be4049967a68baafe8ef9895c69/PipelineProcessor.java/buggy/src/java/org/orbeon/oxf/processor/pipeline/PipelineProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
6385,
514,
508,
13,
288,
3639,
727,
514,
389,
529,
273,
508,
31,
3639,
15476,
1447,
876,
273,
394,
15476,
2828,
18,
5164,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
819,
16,
727,
3697,
1503,
913,
1503,
13,
288,
7734,
727,
15476,
1210,
5469,
1210,
273,
12353,
12,
2472,
1769,
7734,
309,
261,
9176,
1210,
18,
588,
1447,
1435,
422,
446,
13,
10792,
604,
394,
15614,
2932,
8798,
876,
2119,
397,
508,
397,
18701,
2491,
353,
486,
5840,
358,
279,
6659,
876,
316,
5873,
3113,
18701,
13671,
5164,
18,
2211,
18,
588,
2735,
751,
10663,
7734,
1836,
4212,
12,
2472,
16,
394,
10254,
1435,
288,
10792,
1071,
918,
1086,
1435,
288,
13491,
855,
1210,
1463,
55,
2501,
12,
2472,
16,
5469,
1210,
16,
913,
1503,
1769,
10792,
289,
7734,
15549,
5411,
289,
5411,
1783,
2398,
380,
971,
326,
642,
353,
1818,
316,
1247,
471,
326,
5873,
15688,
16,
2398,
380,
732,
327,
326,
498,
434,
326,
5469,
1210,
4656,
358,
333,
2398,
380,
876,
18,
2398,
1195,
5411,
1071,
3633,
15554,
3579,
2828,
12,
6385,
13671,
1042,
819,
13,
288,
7734,
309,
261,
1425,
1265,
9053,
422,
446,
597,
401,
291,
1210,
382,
1649,
12,
2472,
16,
12943,
67,
7203,
3719,
10792,
327,
446,
31,
7734,
727,
15476,
1210,
5469,
1210,
273,
12353,
12,
2472,
1769,
7734,
727,
3633,
15554,
8526,
5469,
1210,
653,
273,
394,
3633,
15554,
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,
377,
1071,
15476,
1447,
752,
1447,
12,
6385,
514,
508,
13,
288,
3639,
727,
514,
389,
529,
273,
508,
31,
3639,
15476,
1447,
876,
273,
394,
15476,
2828,
18,
5164,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
2828,
12,
6385,
13671,
1042,
819,
16,
727,
3697,
1503,
913,
1503,
13,
288,
7734,
727,
15476,
1210,
5469,
1210,
273,
12353,
12,
2472,
1769,
7734,
309,
261,
9176,
1210,
18,
588,
1447,
1435,
422,
446,
13,
10792,
604,
394,
15614,
2932,
8798,
876,
2119,
397,
508,
397,
18701,
2491,
353,
486,
5840,
358,
279,
6659,
876,
316,
5873,
3113,
18701,
13671,
5164,
18,
2211,
18,
588,
2735,
751,
10663,
7734,
1836,
4212,
12,
2472,
16,
2
] |
throw new MissingPropertyException("title",
|
throw new MissingPropertyException("title",
|
public Object newInstance(Map properties, Object parent) throws GroovyException { // check location if (!(parent instanceof WizardDialog)) { throw new InvalidParentException("wizardDialog"); } // check for missing attributes String title = (String) properties.get("title"); if (title == null) { throw new MissingPropertyException("title", WizardPage.class); } // get WizardPageImpl WizardPageImpl page = new WizardPageImpl(title); setBeanProperties(page, properties); // get Wizard WizardDialogImpl dialog = (WizardDialogImpl) parent; Wizard wizard = (Wizard) dialog.getWizard(); // add WizardPage to the Wizard wizard.addPage(page); return page; }
|
51952 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51952/e2a75a48a77b5cf40b7f21e47c4cd7fda368af53/WizardPageFactory.java/buggy/net.sf.groovyMonkey.groovy/src/groovy/jface/factory/WizardPageFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5984,
12,
863,
1790,
16,
1033,
982,
13,
565,
1216,
20841,
503,
288,
3639,
368,
866,
2117,
3639,
309,
16051,
12,
2938,
1276,
678,
13412,
6353,
3719,
288,
5411,
604,
394,
1962,
3054,
503,
2932,
31837,
6353,
8863,
3639,
289,
3639,
368,
866,
364,
3315,
1677,
3639,
514,
2077,
273,
261,
780,
13,
1790,
18,
588,
2932,
2649,
8863,
3639,
309,
261,
2649,
422,
446,
13,
288,
5411,
604,
394,
10230,
1396,
503,
2932,
2649,
3113,
2398,
678,
13412,
1964,
18,
1106,
1769,
3639,
289,
3639,
368,
336,
678,
13412,
1964,
2828,
3639,
678,
13412,
1964,
2828,
1363,
273,
394,
678,
13412,
1964,
2828,
12,
2649,
1769,
3639,
444,
3381,
2297,
12,
2433,
16,
1790,
1769,
3639,
368,
336,
678,
13412,
3639,
678,
13412,
6353,
2828,
6176,
273,
261,
27130,
6353,
2828,
13,
982,
31,
3639,
678,
13412,
24204,
273,
261,
27130,
13,
6176,
18,
588,
27130,
5621,
3639,
368,
527,
678,
13412,
1964,
358,
326,
678,
13412,
3639,
24204,
18,
1289,
1964,
12,
2433,
1769,
3639,
327,
1363,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5984,
12,
863,
1790,
16,
1033,
982,
13,
565,
1216,
20841,
503,
288,
3639,
368,
866,
2117,
3639,
309,
16051,
12,
2938,
1276,
678,
13412,
6353,
3719,
288,
5411,
604,
394,
1962,
3054,
503,
2932,
31837,
6353,
8863,
3639,
289,
3639,
368,
866,
364,
3315,
1677,
3639,
514,
2077,
273,
261,
780,
13,
1790,
18,
588,
2932,
2649,
8863,
3639,
309,
261,
2649,
422,
446,
13,
288,
5411,
604,
394,
10230,
1396,
503,
2932,
2649,
3113,
2398,
678,
13412,
1964,
18,
1106,
1769,
3639,
289,
3639,
368,
336,
678,
13412,
1964,
2828,
3639,
678,
13412,
1964,
2828,
1363,
273,
394,
678,
13412,
1964,
2828,
12,
2649,
1769,
3639,
444,
3381,
2297,
12,
2433,
16,
1790,
1769,
2
] |
return source;
|
return (JInternalFrame) source;
|
public JInternalFrame getInternalFrame() { return source; }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/c8df6d23bbd757063ca248195bff2a680957a677/InternalFrameEvent.java/clean/libjava/javax/swing/event/InternalFrameEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
3061,
3219,
16918,
3219,
1435,
225,
288,
565,
327,
261,
46,
3061,
3219,
13,
1084,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
3061,
3219,
16918,
3219,
1435,
225,
288,
565,
327,
261,
46,
3061,
3219,
13,
1084,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bbox[1] = getInt(text.toString());
|
bbox[1] = getInt(content);
|
public void endElement(String uri, String localName, String qName) { if ("font-name".equals(localName)) { returnFont.setFontName(text.toString()); } else if ("ttc-name".equals(localName) && isCID) { multiFont.setTTCName(text.toString()); } else if ("cap-height".equals(localName)) { returnFont.setCapHeight(getInt(text.toString())); } else if ("x-height".equals(localName)) { returnFont.setXHeight(getInt(text.toString())); } else if ("ascender".equals(localName)) { returnFont.setAscender(getInt(text.toString())); } else if ("descender".equals(localName)) { returnFont.setDescender(getInt(text.toString())); } else if ("left".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[0] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("bottom".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[1] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("right".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[2] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("top".equals(localName)) { int[] bbox = returnFont.getFontBBox(); bbox[3] = getInt(text.toString()); returnFont.setFontBBox(bbox); } else if ("first-char".equals(localName)) { returnFont.setFirstChar(getInt(text.toString())); } else if ("last-char".equals(localName)) { returnFont.setLastChar(getInt(text.toString())); } else if ("flags".equals(localName)) { returnFont.setFlags(getInt(text.toString())); } else if ("stemv".equals(localName)) { returnFont.setStemV(getInt(text.toString())); } else if ("italic-angle".equals(localName)) { returnFont.setItalicAngle(getInt(text.toString())); } else if ("missing-width".equals(localName)) { returnFont.setMissingWidth(getInt(text.toString())); } else if ("cid-type".equals(localName)) { multiFont.setCIDType(CIDFontType.byName(text.toString())); } else if ("default-width".equals(localName)) { multiFont.setDefaultWidth(getInt(text.toString())); } else if ("cid-widths".equals(localName)) { int[] wds = new int[cidWidths.size()]; int j = 0; for (int count = 0; count < cidWidths.size(); count++) { Integer i = (Integer)cidWidths.get(count); wds[j++] = i.intValue(); } //multiFont.addCIDWidthEntry(cidWidthIndex, wds); multiFont.setWidthArray(wds); } else if ("bfranges".equals(localName)) { multiFont.setBFEntries((BFEntry[])bfranges.toArray(new BFEntry[0])); } text.setLength(0); //Reset text buffer (see characters()) }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/4b82b22e7724e4d0f36d331be468214111f17219/FontReader.java/buggy/src/java/org/apache/fop/fonts/FontReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14840,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
13,
288,
3639,
309,
7566,
5776,
17,
529,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
5711,
461,
12,
955,
18,
10492,
10663,
3639,
289,
469,
309,
7566,
748,
71,
17,
529,
9654,
14963,
12,
3729,
461,
13,
597,
25249,
734,
13,
288,
5411,
3309,
5711,
18,
542,
1470,
39,
461,
12,
955,
18,
10492,
10663,
3639,
289,
469,
309,
7566,
5909,
17,
4210,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
4664,
2686,
12,
588,
1702,
12,
955,
18,
10492,
1435,
10019,
3639,
289,
469,
309,
7566,
92,
17,
4210,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
60,
2686,
12,
588,
1702,
12,
955,
18,
10492,
1435,
10019,
3639,
289,
469,
309,
7566,
3691,
2345,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
13665,
2345,
12,
588,
1702,
12,
955,
18,
10492,
1435,
10019,
3639,
289,
469,
309,
7566,
5569,
2345,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
4217,
2345,
12,
588,
1702,
12,
955,
18,
10492,
1435,
10019,
3639,
289,
469,
309,
7566,
4482,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
509,
8526,
8472,
273,
327,
5711,
18,
588,
5711,
30944,
5621,
5411,
8472,
63,
20,
65,
273,
8145,
12,
955,
18,
10492,
10663,
5411,
327,
5711,
18,
542,
5711,
30944,
12,
20737,
1769,
3639,
289,
469,
309,
7566,
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,
14840,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
13,
288,
3639,
309,
7566,
5776,
17,
529,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
5711,
461,
12,
955,
18,
10492,
10663,
3639,
289,
469,
309,
7566,
748,
71,
17,
529,
9654,
14963,
12,
3729,
461,
13,
597,
25249,
734,
13,
288,
5411,
3309,
5711,
18,
542,
1470,
39,
461,
12,
955,
18,
10492,
10663,
3639,
289,
469,
309,
7566,
5909,
17,
4210,
9654,
14963,
12,
3729,
461,
3719,
288,
5411,
327,
5711,
18,
542,
4664,
2686,
12,
588,
1702,
12,
955,
18,
10492,
1435,
10019,
3639,
289,
469,
309,
7566,
92,
17,
4210,
9654,
14963,
12,
3729,
461,
3719,
288,
2
] |
public void visitReturnStatement(@NotNull PsiReturnStatement returnStatement){
|
public void visitReturnStatement( @NotNull PsiReturnStatement returnStatement){
|
public void visitReturnStatement(@NotNull PsiReturnStatement returnStatement){ if(m_found){ return; } super.visitReturnStatement(returnStatement); m_found = true; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b54c8091338ae57ef7018b62fb0717085d77cda8/ControlFlowUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ControlFlowUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
990,
3406,
12,
632,
5962,
453,
7722,
990,
3406,
327,
3406,
15329,
5411,
309,
12,
81,
67,
7015,
15329,
7734,
327,
31,
5411,
289,
5411,
2240,
18,
11658,
990,
3406,
12,
2463,
3406,
1769,
5411,
312,
67,
7015,
273,
638,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
990,
3406,
12,
632,
5962,
453,
7722,
990,
3406,
327,
3406,
15329,
5411,
309,
12,
81,
67,
7015,
15329,
7734,
327,
31,
5411,
289,
5411,
2240,
18,
11658,
990,
3406,
12,
2463,
3406,
1769,
5411,
312,
67,
7015,
273,
638,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
e.setFirstName(request.getParameter("firstname")
|
e .setFirstName(request.getParameter("firstname")
|
protected void doDSPost(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String button = UIUtil.getSubmitButton(request, "submit"); if (button.equals("submit_add")) { // add an EPerson, then jump user to edit page EPerson e = EPerson.create(context); // create clever name and do update before continuing e.setEmail("newuser" + e.getID()); e.update(); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/dspace-admin/eperson-edit.jsp"); context.complete(); } else if (button.equals("submit_edit")) { // edit an eperson EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/dspace-admin/eperson-edit.jsp"); context.complete(); } else if (button.equals("submit_save")) { // Update the metadata for an e-person EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); // see if the user changed the email - if so, make sure // the new email is unique String oldEmail = e.getEmail(); String newEmail = request.getParameter("email").trim(); String netid = request.getParameter("netid"); if (!newEmail.equals(oldEmail)) { // change to email, now see if it's unique if (EPerson.findByEmail(context, newEmail) == null) { // it's unique - proceed! e.setEmail(newEmail); e.setFirstName(request.getParameter("firstname") .equals("") ? null : request .getParameter("firstname")); e.setLastName(request.getParameter("lastname") .equals("") ? null : request .getParameter("lastname")); if (netid != null) { e.setNetid(netid.equals("") ? null : netid); } else { e.setNetid(null); } // FIXME: More data-driven? e.setMetadata("phone", request.getParameter("phone") .equals("") ? null : request.getParameter("phone")); e.setCanLogIn((request.getParameter("can_log_in") != null) && request.getParameter("can_log_in") .equals("true")); e.setRequireCertificate((request .getParameter("require_certificate") != null) && request.getParameter("require_certificate") .equals("true")); e.update(); showMain(context, request, response); context.complete(); } else { // not unique - send error message & let try again request.setAttribute("eperson", e); request.setAttribute("email_exists", new Boolean(true)); JSPManager.showJSP(request, response, "/dspace-admin/eperson-edit.jsp"); context.complete(); } } else { // no change to email if (netid != null) { e.setNetid(netid.equals("") ? null : netid); } else { e.setNetid(null); } e.setFirstName(request.getParameter("firstname").equals( "") ? null : request.getParameter("firstname")); e.setLastName(request.getParameter("lastname") .equals("") ? null : request .getParameter("lastname")); // FIXME: More data-driven? e.setMetadata("phone", request.getParameter("phone").equals("") ? null : request.getParameter("phone")); e.setCanLogIn((request.getParameter("can_log_in") != null) && request.getParameter("can_log_in").equals("true")); e.setRequireCertificate((request .getParameter("require_certificate") != null) && request.getParameter("require_certificate").equals( "true")); e.update(); showMain(context, request, response); context.complete(); } } else if (button.equals("submit_delete")) { // Start delete process - go through verification step EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); request.setAttribute("eperson", e); JSPManager.showJSP(request, response, "/dspace-admin/eperson-confirm-delete.jsp"); } else if (button.equals("submit_confirm_delete")) { // User confirms deletion of type EPerson e = EPerson.find(context, UIUtil.getIntParameter(request, "eperson_id")); try { e.delete(); } catch (EPersonDeletionException ex) { request.setAttribute("eperson", e); request.setAttribute("tableList", ex.getTables()); JSPManager.showJSP(request, response, "/dspace-admin/eperson-deletion-error.jsp"); } showMain(context, request, response); context.complete(); } else { // Cancel etc. pressed - show list again showMain(context, request, response); } }
|
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/edb9e4bb77e2c137353ec9cbd78be22ac41fdca8/EPersonAdminServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/admin/EPersonAdminServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
40,
3118,
669,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
514,
3568,
273,
6484,
1304,
18,
588,
11620,
3616,
12,
2293,
16,
315,
9297,
8863,
3639,
309,
261,
5391,
18,
14963,
2932,
9297,
67,
1289,
6,
3719,
3639,
288,
5411,
368,
527,
392,
512,
8346,
16,
1508,
11833,
729,
358,
3874,
1363,
5411,
512,
8346,
425,
273,
512,
8346,
18,
2640,
12,
2472,
1769,
5411,
368,
752,
1619,
502,
508,
471,
741,
1089,
1865,
29702,
5411,
425,
18,
542,
4134,
2932,
2704,
1355,
6,
397,
425,
18,
588,
734,
10663,
5411,
425,
18,
2725,
5621,
5411,
590,
18,
542,
1499,
2932,
881,
3565,
3113,
425,
1769,
5411,
804,
3118,
1318,
18,
4500,
46,
3118,
12,
2293,
16,
766,
16,
10792,
2206,
2377,
909,
17,
3666,
19,
881,
3565,
17,
4619,
18,
24926,
8863,
5411,
819,
18,
6226,
5621,
3639,
289,
3639,
469,
309,
261,
5391,
18,
14963,
2932,
9297,
67,
4619,
6,
3719,
3639,
288,
5411,
368,
3874,
392,
5529,
3565,
5411,
512,
8346,
425,
273,
512,
8346,
18,
4720,
12,
2472,
16,
6484,
1304,
18,
588,
1702,
1662,
12,
2293,
16,
10792,
315,
881,
3565,
67,
350,
7923,
1769,
5411,
590,
18,
542,
1499,
2932,
881,
3565,
3113,
425,
1769,
5411,
804,
3118,
1318,
18,
4500,
46,
3118,
12,
2293,
16,
766,
16,
10792,
2206,
2377,
909,
17,
3666,
19,
881,
3565,
17,
4619,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
40,
3118,
669,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
514,
3568,
273,
6484,
1304,
18,
588,
11620,
3616,
12,
2293,
16,
315,
9297,
8863,
3639,
309,
261,
5391,
18,
14963,
2932,
9297,
67,
1289,
6,
3719,
3639,
288,
5411,
368,
527,
392,
512,
8346,
16,
1508,
11833,
729,
358,
3874,
1363,
5411,
512,
8346,
425,
273,
512,
8346,
18,
2640,
12,
2472,
1769,
5411,
368,
752,
1619,
502,
508,
471,
741,
1089,
1865,
29702,
5411,
425,
18,
542,
4134,
2932,
2704,
1355,
6,
397,
425,
18,
588,
734,
10663,
5411,
425,
18,
2725,
5621,
5411,
590,
18,
2
] |
while(!addressAssigned) {
|
/*while(!addressAssigned) {
|
public void start() throws Exception { if (initCtxFactory != null && providerUrl != null) { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, initCtxFactory); env.put(Context.PROVIDER_URL, providerUrl); ctx = new InitialContext(env); } else ctx = new InitialContext(); connectionFactory = (javax.jms.TopicConnectionFactory)ctx.lookup(cfName); if (connectionFactory == null) throw new IllegalArgumentException( "Topic connection factory cannot be found in JNDI."); topic = (javax.jms.Topic)ctx.lookup(topicName); if (topic == null) throw new IllegalArgumentException("Topic cannot be found in JNDI."); connection = connectionFactory.createTopicConnection(); boolean addressAssigned = false; // check if JMS connection contains client ID, // if not, try to assign randomly generated one while(!addressAssigned) { if (connection.getClientID() != null) addressAssigned = true; else try { connection.setClientID(generateLocalAddress()); addressAssigned = true; } catch(javax.jms.InvalidClientIDException ex) { // duplicate... ok, let's try again } } local_addr = new JMSAddress(connection.getClientID(), false); mcast_addr = new JMSAddress(topicName, true); session = connection.createTopicSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE); publisher = session.createPublisher(topic); publisher.setTimeToLive(timeToLive); subscriber = session.createSubscriber(topic); subscriber.setMessageListener(this); connection.start(); passUp(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/9f057548d1bb6b6c31108eee18632aec11a5e6f5/JMS.java/buggy/src/org/jgroups/protocols/JMS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
377,
288,
3639,
309,
261,
2738,
6442,
1733,
480,
446,
597,
2893,
1489,
480,
446,
13,
288,
5411,
18559,
1550,
273,
394,
18559,
5621,
5411,
1550,
18,
458,
12,
1042,
18,
28497,
67,
13181,
67,
16193,
16,
1208,
6442,
1733,
1769,
5411,
1550,
18,
458,
12,
1042,
18,
26413,
67,
1785,
16,
2893,
1489,
1769,
5411,
1103,
273,
394,
10188,
1042,
12,
3074,
1769,
3639,
289,
469,
5411,
1103,
273,
394,
10188,
1042,
5621,
3639,
1459,
1733,
273,
261,
28384,
18,
78,
959,
18,
6657,
18749,
13,
5900,
18,
8664,
12,
8522,
461,
1769,
7734,
309,
261,
4071,
1733,
422,
446,
13,
5411,
604,
394,
2754,
12,
10792,
315,
6657,
1459,
3272,
2780,
506,
1392,
316,
804,
24513,
1199,
1769,
7734,
3958,
273,
261,
28384,
18,
78,
959,
18,
6657,
13,
5900,
18,
8664,
12,
10476,
461,
1769,
7734,
309,
261,
10476,
422,
446,
13,
5411,
604,
394,
2754,
2932,
6657,
2780,
506,
1392,
316,
804,
24513,
1199,
1769,
3639,
1459,
273,
1459,
1733,
18,
2640,
6657,
1952,
5621,
3639,
1250,
1758,
20363,
273,
629,
31,
7734,
368,
866,
309,
13270,
1459,
1914,
1004,
1599,
16,
540,
368,
309,
486,
16,
775,
358,
2683,
20153,
4374,
1245,
3639,
1748,
17523,
12,
5,
2867,
20363,
13,
288,
5411,
309,
261,
4071,
18,
588,
1227,
734,
1435,
480,
446,
13,
7734,
1758,
20363,
273,
638,
31,
5411,
469,
7734,
775,
288,
10792,
1459,
18,
542,
1227,
734,
12,
7163,
2042,
1887,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
377,
288,
3639,
309,
261,
2738,
6442,
1733,
480,
446,
597,
2893,
1489,
480,
446,
13,
288,
5411,
18559,
1550,
273,
394,
18559,
5621,
5411,
1550,
18,
458,
12,
1042,
18,
28497,
67,
13181,
67,
16193,
16,
1208,
6442,
1733,
1769,
5411,
1550,
18,
458,
12,
1042,
18,
26413,
67,
1785,
16,
2893,
1489,
1769,
5411,
1103,
273,
394,
10188,
1042,
12,
3074,
1769,
3639,
289,
469,
5411,
1103,
273,
394,
10188,
1042,
5621,
3639,
1459,
1733,
273,
261,
28384,
18,
78,
959,
18,
6657,
18749,
13,
5900,
18,
8664,
12,
8522,
461,
1769,
7734,
309,
261,
4071,
1733,
422,
446,
13,
5411,
604,
394,
2754,
12,
10792,
315,
6657,
1459,
3272,
2
] |
File filename = new File(paths[i]);
|
/* ** filepath can be a list of directory and/or ** file names (gen'd via <fileset>) ** ** look for: ** full-pathname specified == path in list ** full-pathname specified == parent dir of path in list ** simple name specified == path in list ** simple name specified == path in list + name ** simple name specified == parent dir + name ** simple name specified == parent of parent dir + name ** */ File path = new File(paths[i]); String dirname = path.getParent();
|
private boolean checkFile() { if (filepath == null) { return checkFile(file); } else { String[] paths = filepath.list(); for(int i = 0; i < paths.length; ++i) { log("Searching " + paths[i], Project.MSG_DEBUG); File filename = new File(paths[i]); if (type != null) { if (type.equalsIgnoreCase("dir")) { String dir = filename.getParent(); if(dir != null) { int index = dir.lastIndexOf(File.separator); String dirname = dir.substring(index + 1); if(dirname.equals(file.getName())) { log("Found directory: " + dir, Project.MSG_VERBOSE); return true; } } } else if (type.equalsIgnoreCase("file")) { if(filename.isFile()) { if(filename.getName().equals(file.getName())) { log("Found file: " + filename, Project.MSG_VERBOSE); return true; } } } } else if(filename.isFile()) { if(filename.getName().equals(file.getName())) { log("Found file: " + filename, Project.MSG_VERBOSE); return true; } } } } return false; }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/5728d77e073954bae5660e35dd9486e448cf0e0d/Available.java/clean/src/main/org/apache/tools/ant/taskdefs/Available.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
812,
1435,
288,
3639,
309,
261,
10561,
422,
446,
13,
288,
5411,
327,
866,
812,
12,
768,
1769,
3639,
289,
469,
288,
5411,
514,
8526,
2953,
273,
3608,
18,
1098,
5621,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
965,
77,
13,
288,
7734,
613,
2932,
2979,
310,
315,
397,
2953,
63,
77,
6487,
5420,
18,
11210,
67,
9394,
1769,
7734,
1748,
2826,
3608,
848,
506,
279,
666,
434,
1867,
471,
19,
280,
2826,
585,
1257,
261,
4507,
14271,
3970,
411,
2354,
278,
23429,
2826,
2826,
2324,
364,
30,
2826,
282,
1983,
17,
28336,
1269,
422,
589,
316,
666,
2826,
282,
1983,
17,
28336,
1269,
422,
982,
1577,
434,
589,
316,
666,
2826,
282,
4143,
508,
1269,
282,
422,
589,
316,
666,
2826,
282,
4143,
508,
1269,
282,
422,
589,
316,
666,
397,
508,
2826,
282,
4143,
508,
1269,
282,
422,
982,
1577,
397,
508,
2826,
282,
4143,
508,
1269,
282,
422,
982,
434,
982,
1577,
397,
508,
2826,
1195,
1387,
589,
273,
394,
1387,
12,
4481,
63,
77,
19226,
514,
4283,
273,
589,
18,
588,
3054,
5621,
7734,
309,
261,
723,
480,
446,
13,
288,
10792,
309,
261,
723,
18,
14963,
5556,
2932,
1214,
6,
3719,
288,
13491,
514,
1577,
273,
1544,
18,
588,
3054,
5621,
13491,
309,
12,
1214,
480,
446,
13,
288,
18701,
509,
770,
273,
1577,
18,
2722,
31985,
12,
812,
18,
11287,
1769,
18701,
514,
4283,
273,
1577,
18,
28023,
12,
1615,
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,
1250,
866,
812,
1435,
288,
3639,
309,
261,
10561,
422,
446,
13,
288,
5411,
327,
866,
812,
12,
768,
1769,
3639,
289,
469,
288,
5411,
514,
8526,
2953,
273,
3608,
18,
1098,
5621,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
965,
77,
13,
288,
7734,
613,
2932,
2979,
310,
315,
397,
2953,
63,
77,
6487,
5420,
18,
11210,
67,
9394,
1769,
7734,
1748,
2826,
3608,
848,
506,
279,
666,
434,
1867,
471,
19,
280,
2826,
585,
1257,
261,
4507,
14271,
3970,
411,
2354,
278,
23429,
2826,
2826,
2324,
364,
30,
2826,
282,
1983,
17,
28336,
1269,
422,
589,
316,
666,
2826,
282,
1983,
17,
28336,
1269,
422,
982,
1577,
434,
2
] |
SVGUtils.endElement(handler, SVGConstants.SVG_PATTERN); } }
|
while (i.hasNext()) { HatchLineFamily pattern = (HatchLineFamily) i.next(); attr = new AttributesImpl(); SVGUtils.addAttribute(attr, "d", this.getSVGPath(bounds, pattern, dotLength)); SVGUtils.emptyElement(handler, SVGConstants.SVG_PATH, attr); } } }
|
public void toSAX(ContentHandler handler, Map svgContext) throws SAXException { if (!this.hatch.isSolid()) { // we have to create a tile with all lines Bounds bounds = this.hatch.getBounds(); double dotLength = (bounds.getWidth() + bounds.getHeight()) / 2 * 0.0005; AttributesImpl attr = new AttributesImpl(); SVGUtils.addAttribute(attr, SVGConstants.XML_ID, getId()); SVGUtils.addAttribute(attr, "x", "" + bounds.getMinimumX()); SVGUtils.addAttribute(attr, "y", "" + bounds.getMinimumY()); SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_WIDTH, "" + bounds.getWidth()); SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_HEIGHT, "" + bounds.getHeight()); SVGUtils.addAttribute(attr, SVGConstants.SVG_ATTRIBUTE_PATTERN_UNITS, "userSpaceOnUse"); SVGUtils.startElement(handler, SVGConstants.SVG_PATTERN, attr); attr = new AttributesImpl(); SVGUtils.startElement(handler, SVGConstants.SVG_TITLE, attr); SVGUtils.characters(handler, this.hatch.getName()); SVGUtils.endElement(handler, SVGConstants.SVG_TITLE); // we convert the pattern as one path element // StringBuffer buf = new StringBuffer();// Iterator i = patterns.iterator(); // System.out.println("PATTERN:\nName:" + hatch.getName());// while (i.hasNext()) {// HatchLinePattern pattern = (HatchLinePattern) i.next();//// attr = new AttributesImpl();// SVGUtils.addAttribute(attr, "d", this.createLineType(bounds,// pattern, dotLength));// SVGUtils.addAttribute(attr, "stroke", "red");// SVGUtils.addAttribute(attr, "stroke-width", "0.01%");// SVGUtils.emptyElement(handler, SVGConstants.SVG_PATH, attr);// } SVGUtils.endElement(handler, SVGConstants.SVG_PATTERN); } }
|
4096 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4096/97da13d420d72405018ba732b60712bffbfe3482/DXFHatchPattern.java/clean/src/java/org/kabeja/dxf/DXFHatchPattern.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
358,
55,
2501,
12,
1350,
1503,
1838,
16,
1635,
9804,
1042,
13,
5411,
1216,
14366,
288,
3639,
309,
16051,
2211,
18,
76,
505,
18,
291,
25044,
10756,
288,
5411,
368,
732,
1240,
358,
752,
279,
4769,
598,
777,
2362,
5411,
20382,
4972,
273,
333,
18,
76,
505,
18,
588,
5694,
5621,
5411,
1645,
3928,
1782,
273,
261,
10576,
18,
588,
2384,
1435,
397,
4972,
18,
588,
2686,
10756,
342,
576,
380,
374,
18,
3784,
25,
31,
5411,
9055,
2828,
1604,
273,
394,
9055,
2828,
5621,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
11281,
2918,
18,
4201,
67,
734,
16,
2634,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
315,
92,
3113,
1408,
397,
4972,
18,
588,
13042,
60,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
315,
93,
3113,
1408,
397,
4972,
18,
588,
13042,
61,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
11281,
2918,
18,
26531,
67,
11616,
67,
10023,
16,
1408,
10792,
397,
4972,
18,
588,
2384,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
11281,
2918,
18,
26531,
67,
11616,
67,
14595,
16,
1408,
10792,
397,
4972,
18,
588,
2686,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
10792,
11281,
2918,
18,
26531,
67,
11616,
67,
10831,
67,
24325,
16,
315,
1355,
3819,
1398,
3727,
8863,
5411,
11281,
1989,
18,
1937,
1046,
12,
4176,
16,
11281,
2918,
18,
26531,
67,
10831,
16,
1604,
1769,
5411,
1604,
273,
394,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
358,
55,
2501,
12,
1350,
1503,
1838,
16,
1635,
9804,
1042,
13,
5411,
1216,
14366,
288,
3639,
309,
16051,
2211,
18,
76,
505,
18,
291,
25044,
10756,
288,
5411,
368,
732,
1240,
358,
752,
279,
4769,
598,
777,
2362,
5411,
20382,
4972,
273,
333,
18,
76,
505,
18,
588,
5694,
5621,
5411,
1645,
3928,
1782,
273,
261,
10576,
18,
588,
2384,
1435,
397,
4972,
18,
588,
2686,
10756,
342,
576,
380,
374,
18,
3784,
25,
31,
5411,
9055,
2828,
1604,
273,
394,
9055,
2828,
5621,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
11281,
2918,
18,
4201,
67,
734,
16,
2634,
10663,
5411,
11281,
1989,
18,
1289,
1499,
12,
1747,
16,
315,
92,
3113,
1408,
2
] |
float2byte((this.position + 23) * 16218, buffer, 4); float2byte((this.velocity / 50) * 16218, buffer, 8); float2byte((this.acceleration / 50) * 16218, buffer, 12);
|
float2byte((this.position + 23) * 8109, buffer, 4); float2byte((this.velocity / 50) * 8109, buffer, 8); float2byte((this.acceleration / 50) * 8109, buffer, 12);
|
public byte[] renderPosition(double position) { // The requested position is 0 to 1, but the device position // is 0 to 180 - have to translate // VT: FIXME: adjustment for terminal positions may be // required this.position = (float)min_offset + (float)(position * (max_offset - min_offset)); // 16218 float2byte((this.position + 23) * 16218, buffer, 4); float2byte((this.velocity / 50) * 16218, buffer, 8); float2byte((this.acceleration / 50) * 16218, buffer, 12); //System.err.println("Position: " + this.position); //System.err.print("Buffer:"); /* for ( int idx = 0; idx < buffer.length; idx++ ) { if ( (idx % 4) == 0 && idx > 0 ) { System.err.print(" -"); } System.err.print(" " + Integer.toHexString(buffer[idx] & 0xFF)); } System.err.println(""); */ return buffer; }
|
11856 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11856/6ba84154f7da8c4080df0ebf944785acaf7087fc/PhidgetServoController.java/buggy/servomaster/src/java/org/freehold/servomaster/device/impl/phidget/PhidgetServoController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1160,
8526,
1743,
2555,
12,
9056,
1754,
13,
288,
18701,
368,
1021,
3764,
1754,
353,
374,
358,
404,
16,
1496,
326,
2346,
1754,
7734,
368,
353,
374,
358,
9259,
300,
1240,
358,
4204,
27573,
368,
22944,
30,
9852,
30,
18335,
364,
8651,
6865,
2026,
506,
7734,
368,
1931,
27573,
333,
18,
3276,
273,
261,
5659,
13,
1154,
67,
3348,
397,
261,
5659,
21433,
3276,
380,
261,
1896,
67,
3348,
300,
1131,
67,
3348,
10019,
27573,
368,
2872,
22,
2643,
27573,
1431,
22,
7229,
12443,
2211,
18,
3276,
397,
10213,
13,
380,
2872,
22,
2643,
16,
1613,
16,
1059,
1769,
7734,
1431,
22,
7229,
12443,
2211,
18,
29418,
560,
342,
6437,
13,
380,
2872,
22,
2643,
16,
1613,
16,
1725,
1769,
7734,
1431,
22,
7229,
12443,
2211,
18,
30737,
7067,
342,
6437,
13,
380,
2872,
22,
2643,
16,
1613,
16,
2593,
1769,
27573,
368,
3163,
18,
370,
18,
8222,
2932,
2555,
30,
315,
397,
333,
18,
3276,
1769,
7734,
368,
3163,
18,
370,
18,
1188,
2932,
1892,
2773,
1769,
27573,
1748,
7734,
364,
261,
509,
2067,
273,
374,
31,
2067,
411,
1613,
18,
2469,
31,
2067,
9904,
262,
288,
4766,
565,
309,
261,
261,
3465,
738,
1059,
13,
422,
374,
597,
2067,
405,
374,
262,
288,
4766,
5411,
2332,
18,
370,
18,
1188,
2932,
300,
8863,
10792,
289,
10792,
2332,
18,
370,
18,
1188,
2932,
315,
397,
2144,
18,
869,
14866,
12,
4106,
63,
3465,
65,
473,
374,
6356,
10019,
4766,
565,
289,
27573,
2332,
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,
2398,
1071,
1160,
8526,
1743,
2555,
12,
9056,
1754,
13,
288,
18701,
368,
1021,
3764,
1754,
353,
374,
358,
404,
16,
1496,
326,
2346,
1754,
7734,
368,
353,
374,
358,
9259,
300,
1240,
358,
4204,
27573,
368,
22944,
30,
9852,
30,
18335,
364,
8651,
6865,
2026,
506,
7734,
368,
1931,
27573,
333,
18,
3276,
273,
261,
5659,
13,
1154,
67,
3348,
397,
261,
5659,
21433,
3276,
380,
261,
1896,
67,
3348,
300,
1131,
67,
3348,
10019,
27573,
368,
2872,
22,
2643,
27573,
1431,
22,
7229,
12443,
2211,
18,
3276,
397,
10213,
13,
380,
2872,
22,
2643,
16,
1613,
16,
1059,
1769,
7734,
1431,
22,
7229,
12443,
2211,
18,
29418,
560,
342,
6437,
13,
380,
2872,
22,
2643,
16,
1613,
2
] |
if (PlatformUI.getWorkbench() != null && !PlatformUI.getWorkbench().isClosing()) { for(IWorkbenchWindow w : PlatformUI.getWorkbench().getWorkbenchWindows()) { ISelectionService service = w.getSelectionService(); service.removePostSelectionListener(packageExplorerManager); } }
|
public void stop(BundleContext context) throws Exception { try { super.stop(context); INSTANCE = null; resourceBundle = null; ContextCorePlugin.getContextManager().removeListener(packageExplorerManager); ContextCorePlugin.getContextManager().removeListener(typeHistoryManager); ContextCorePlugin.getContextManager().removeListener(landmarkMarkerManager); MylarMonitorPlugin.getDefault().getSelectionMonitors().remove(javaEditingMonitor);// if (FocusPackageExplorerAction.getDefault() != null) {// getPreferenceStore().removePropertyChangeListener(FocusPackageExplorerAction.getDefault());// } if (PlatformUI.getWorkbench() != null && !PlatformUI.getWorkbench().isClosing()) { for(IWorkbenchWindow w : PlatformUI.getWorkbench().getWorkbenchWindows()) { ISelectionService service = w.getSelectionService(); service.removePostSelectionListener(packageExplorerManager); } } JavaCore.removeElementChangedListener(javaElementChangeListener); // CVSUIPlugin.getPlugin().getChangeSetManager().remove(changeSetManager); // TODO: uninstall editor tracker } catch (Exception e) { MylarStatusHandler.fail(e, "Mylar Java stop terminated abnormally", false); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c00e2720d1226b3d7b874c5b3d01a3cdd9e4dec6/MylarJavaPlugin.java/clean/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/MylarJavaPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2132,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
698,
288,
1082,
202,
9565,
18,
5681,
12,
2472,
1769,
1082,
202,
13341,
273,
446,
31,
1082,
202,
3146,
3405,
273,
446,
31,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
5610,
20938,
1318,
1769,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
723,
5623,
1318,
1769,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
15733,
3355,
7078,
1318,
1769,
1082,
202,
12062,
7901,
7187,
3773,
18,
588,
1868,
7675,
588,
6233,
11415,
13704,
7675,
4479,
12,
6290,
28029,
7187,
1769,
759,
1082,
202,
430,
261,
9233,
2261,
20938,
1803,
18,
588,
1868,
1435,
480,
446,
13,
288,
759,
9506,
202,
588,
9624,
2257,
7675,
4479,
1396,
15744,
12,
9233,
2261,
20938,
1803,
18,
588,
1868,
10663,
759,
1082,
202,
97,
1082,
202,
430,
261,
8201,
5370,
18,
588,
2421,
22144,
1435,
480,
446,
597,
401,
8201,
5370,
18,
588,
2421,
22144,
7675,
291,
15745,
10756,
288,
9506,
202,
1884,
12,
45,
2421,
22144,
3829,
341,
294,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
2421,
22144,
10399,
10756,
288,
6862,
202,
45,
6233,
1179,
1156,
273,
341,
18,
588,
6233,
1179,
5621,
6862,
202,
3278,
18,
4479,
3349,
6233,
2223,
12,
5610,
20938,
1318,
1769,
9506,
202,
97,
21114,
202,
97,
1082,
202,
5852,
4670,
18,
4479,
1046,
5033,
2223,
12,
6290,
1046,
15744,
1769,
1082,
202,
759,
385,
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,
2132,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
698,
288,
1082,
202,
9565,
18,
5681,
12,
2472,
1769,
1082,
202,
13341,
273,
446,
31,
1082,
202,
3146,
3405,
273,
446,
31,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
5610,
20938,
1318,
1769,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
723,
5623,
1318,
1769,
1082,
202,
1042,
4670,
3773,
18,
29120,
1318,
7675,
4479,
2223,
12,
15733,
3355,
7078,
1318,
1769,
1082,
202,
12062,
7901,
7187,
3773,
18,
588,
1868,
7675,
588,
6233,
11415,
13704,
7675,
4479,
12,
6290,
28029,
7187,
1769,
759,
1082,
202,
430,
261,
9233,
2261,
20938,
1803,
18,
588,
2
] |
|
public Type(String fullName, int dimensions) { this.fullName = fullName;
|
public Type(String name, int dimensions, JavaSource parentSource) { this.name = name;
|
public Type(String fullName, int dimensions) { this.fullName = fullName; this.dimensions = dimensions; }
|
5818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5818/1ff13a2c89bd3c81cdfd42386de2c44ed53092b9/Type.java/buggy/src/java/com/thoughtworks/qdox/model/Type.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1412,
12,
780,
12424,
16,
509,
5769,
13,
288,
202,
202,
2211,
18,
2854,
461,
273,
12424,
31,
202,
202,
2211,
18,
14797,
273,
5769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1412,
12,
780,
12424,
16,
509,
5769,
13,
288,
202,
202,
2211,
18,
2854,
461,
273,
12424,
31,
202,
202,
2211,
18,
14797,
273,
5769,
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
] |
pop();
|
popShouldPersist();
|
public void completeGroup(AttributeGroup group) { pop(); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/d8ef2b6db460eb42f56ed68e998cfd1f3ae0f7b8/BasePersister.java/buggy/src/services/org/opennms/netmgt/collectd/BasePersister.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3912,
1114,
12,
1499,
1114,
1041,
13,
288,
3639,
1843,
14309,
12771,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
3912,
1114,
12,
1499,
1114,
1041,
13,
288,
3639,
1843,
14309,
12771,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.