rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
public void nodesAdded(NodesEvent event) { if (fViewer instanceof AbstractTreeViewer) { StructuredViewer viewer = (StructuredViewer) fViewer; ISelection selection = viewer.getSelection(); Object firstObj = (!selection.isEmpty() && selection instanceof IStructuredSelection) ? ((IStructuredSelection) selection).getFirstElement() : null; DTDNode oldSelectedNode = null; if (firstObj instanceof DTDNode) { oldSelectedNode = (DTDNode) firstObj; } // for now just refresh the whole view AbstractTreeViewer abstractTreeViewer = (AbstractTreeViewer) fViewer; abstractTreeViewer.refresh(); Iterator iter = event.getNodes().iterator(); List newSelection = new ArrayList(); while (iter.hasNext()) { DTDNode node = (DTDNode) iter.next(); if (oldSelectedNode == null || node.getStructuredDTDDocumentRegion() != oldSelectedNode.getStructuredDTDDocumentRegion() || node.getStartOffset() != oldSelectedNode.getStartOffset() || node.getEndOffset() != oldSelectedNode.getEndOffset()) { // add to selection newSelection.add(node); expandToNode(node); } } if (newSelection.size() > 0) { viewer.setSelection(new StructuredSelection(newSelection)); } } } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/e4bd66590b7c80939f9d036a3ac9f447da53b07a/DTDTreeContentProvider.java/clean/bundles/org.eclipse.wst.dtd.ui/src/org/eclipse/wst/dtd/ui/views/contentoutline/DTDTreeContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4690,
8602,
12,
3205,
1133,
2575,
15329,
202,
202,
430,
12,
74,
18415,
1336,
792,
7469,
2471,
18415,
15329,
1082,
202,
30733,
18415,
25256,
28657,
30733,
18415,
13,
74,
18415,
31,
1082,
202,
45,
6233,
10705,
33,
25256,
18,
588,
6233,
5621,
1082,
202,
921,
3645,
2675,
28657,
5,
10705,
18,
291,
1921,
1435,
10,
10,
10705,
1336,
792,
45,
30733,
6233,
9945,
12443,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
13332,
2011,
31,
1082,
202,
25728,
907,
1673,
7416,
907,
33,
2011,
31,
1082,
202,
430,
12,
3645,
2675,
1336,
792,
25728,
907,
15329,
9506,
202,
1673,
7416,
907,
28657,
25728,
907,
13,
3645,
2675,
31,
1082,
202,
97,
1082,
202,
759,
1884,
3338,
3732,
9144,
451,
359,
27167,
1945,
1082,
202,
7469,
2471,
18415,
17801,
2471,
18415,
28657,
7469,
2471,
18415,
13,
74,
18415,
31,
1082,
202,
17801,
2471,
18415,
18,
9144,
5621,
1082,
202,
3198,
2165,
33,
2575,
18,
588,
3205,
7675,
9838,
5621,
1082,
202,
682,
2704,
6233,
33,
2704,
19558,
5621,
1082,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
9506,
202,
9081,
8609,
369,
20680,
28657,
25728,
907,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
12,
1673,
7416,
907,
631,
2011,
20081,
2159,
18,
588,
30733,
25728,
2519,
5165,
1435,
5,
33,
1673,
7416,
907,
18,
588,
30733,
25728,
2519,
5165,
1435,
20081,
2159,
18,
588,
1685,
2335,
1435,
5,
33,
1673,
7416,
907,
18,
588,
1685,
2335,
1435,
20081,
2159,
18,
588,
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,
6459,
4690,
8602,
12,
3205,
1133,
2575,
15329,
202,
202,
430,
12,
74,
18415,
1336,
792,
7469,
2471,
18415,
15329,
1082,
202,
30733,
18415,
25256,
28657,
30733,
18415,
13,
74,
18415,
31,
1082,
202,
45,
6233,
10705,
33,
25256,
18,
588,
6233,
5621,
1082,
202,
921,
3645,
2675,
28657,
5,
10705,
18,
291,
1921,
1435,
10,
10,
10705,
1336,
792,
45,
30733,
6233,
9945,
12443,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
13332,
2011,
31,
1082,
202,
25728,
907,
1673,
7416,
907,
33,
2011,
31,
1082,
202,
430,
12,
3645,
2675,
1336,
792,
25728,
907,
15329,
9506,
202,
1673,
7416,
907,
28657,
25728,
907,
13,
3645,
2675,
31,
1082,
202,
97,
1082,
202,
759,
2
] |
||
int length = args == null ? 0 : args.length; | int length = nargs == null ? 0 : nargs.length; | public static IRubyObject new_proxy_instance(final IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw recv.getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } final RubyProc proc = args[args.length - 1] instanceof RubyProc ? (RubyProc)args[args.length - 1] : recv.getRuntime().newProc(); int size = args[args.length - 1] instanceof RubyProc ? args.length - 1 : args.length; Class[] interfaces = new Class[size]; for (int i = 0; i < size; i++) { if (!(args[i] instanceof JavaClass) || !((JavaClass)args[i]).interface_p().isTrue()) { throw recv.getRuntime().newArgumentError("Java interface expected."); } interfaces[i] = ((JavaClass) args[i]).javaClass(); } return JavaObject.wrap(recv.getRuntime(), Proxy.newProxyInstance(recv.getRuntime().getJavaSupport().getJavaClassLoader(), interfaces, new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (method.getName().equals("toString") && method.getParameterTypes().length == 0) { return proxy.getClass().getName(); } else if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) { return new Integer(proxy.getClass().hashCode()); } else if (method.getName().equals("equals") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(Object.class)) { return Boolean.valueOf(proxy == args[0]); } int length = args == null ? 0 : args.length; IRubyObject[] rubyArgs = new IRubyObject[length + 2]; rubyArgs[0] = JavaObject.wrap(recv.getRuntime(), proxy); rubyArgs[1] = new JavaMethod(recv.getRuntime(), method); for (int i = 0; i < length; i++) { rubyArgs[i + 2] = JavaObject.wrap(recv.getRuntime(), args[i]); } return JavaUtil.convertArgument(proc.call(rubyArgs), method.getReturnType()); } })); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/ca6b16e996ea9af83ce593594b9c69b9364a9924/Java.java/buggy/src/org/jruby/javasupport/Java.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
394,
67,
5656,
67,
1336,
12,
6385,
15908,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
10665,
18,
588,
5576,
7675,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
2932,
397,
833,
18,
2469,
397,
315,
364,
404,
2225,
1769,
3639,
289,
3639,
727,
19817,
15417,
5418,
273,
833,
63,
1968,
18,
2469,
300,
404,
65,
1276,
19817,
15417,
692,
261,
54,
10340,
15417,
13,
1968,
63,
1968,
18,
2469,
300,
404,
65,
294,
10665,
18,
588,
5576,
7675,
2704,
15417,
5621,
3639,
509,
963,
273,
833,
63,
1968,
18,
2469,
300,
404,
65,
1276,
19817,
15417,
692,
833,
18,
2469,
300,
404,
294,
833,
18,
2469,
31,
3639,
1659,
8526,
7349,
273,
394,
1659,
63,
1467,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
5411,
309,
16051,
12,
1968,
63,
77,
65,
1276,
29491,
13,
747,
401,
12443,
5852,
797,
13,
1968,
63,
77,
65,
2934,
5831,
67,
84,
7675,
291,
5510,
10756,
288,
7734,
604,
10665,
18,
588,
5576,
7675,
2704,
1379,
668,
2932,
5852,
1560,
2665,
1199,
1769,
5411,
289,
5411,
7349,
63,
77,
65,
273,
14015,
5852,
797,
13,
833,
63,
77,
65,
2934,
6290,
797,
5621,
3639,
289,
3639,
327,
5110,
921,
18,
4113,
12,
18334,
18,
588,
5576,
9334,
7659,
18,
2704,
3886,
1442,
12,
18334,
18,
588,
5576,
7675,
588,
5852,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
394,
67,
5656,
67,
1336,
12,
6385,
15908,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
10665,
18,
588,
5576,
7675,
2704,
1379,
668,
2932,
21530,
468,
434,
1775,
2932,
397,
833,
18,
2469,
397,
315,
364,
404,
2225,
1769,
3639,
289,
3639,
727,
19817,
15417,
5418,
273,
833,
63,
1968,
18,
2469,
300,
404,
65,
1276,
19817,
15417,
692,
261,
54,
10340,
15417,
13,
1968,
63,
1968,
18,
2469,
300,
404,
65,
294,
10665,
18,
588,
5576,
7675,
2704,
15417,
5621,
3639,
509,
963,
273,
833,
63,
1968,
18,
2469,
300,
404,
65,
1276,
19817,
15417,
692,
2
] |
public void setContextProperties( String file ) { String[] sources = StringUtils.split(file,","); contextProperties = new ExtendedProperties(); // Always try to get the context properties resource // from a file first. Templates may be taken from a JAR // file but the context properties resource may be a // resource in the filesystem. If this fails than attempt // to get the context properties resource from the // classpath. for (int i = 0; i < sources.length; i++) { ExtendedProperties source = new ExtendedProperties(); try { // resolve relative path from basedir and leave // absolute path untouched. File fullPath = project.resolveFile(sources[i]); log("Using contextProperties file: " + fullPath); source.load(new FileInputStream(fullPath)); } catch (Exception e) { ClassLoader classLoader = this.getClass().getClassLoader(); try { InputStream inputStream = classLoader.getResourceAsStream(sources[i]); if (inputStream == null) { throw new BuildException("Context properties file " + sources[i] + " could not be found in the file system or on the classpath!"); } else { source.load(inputStream); } } catch (IOException ioe) { source = null; } } Iterator j = source.getKeys(); while (j.hasNext()) { String name = (String) j.next(); String value = source.getString(name); contextProperties.setProperty(name,value); } } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/TexenTask.java/clean/src/java/org/apache/velocity/texen/ant/TexenTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16615,
2297,
12,
514,
585,
262,
565,
288,
3639,
514,
8526,
5550,
273,
5778,
18,
4939,
12,
768,
16,
3113,
8863,
3639,
819,
2297,
273,
394,
14094,
2297,
5621,
3639,
368,
14178,
775,
358,
336,
326,
819,
1790,
1058,
3639,
368,
628,
279,
585,
1122,
18,
26212,
2026,
506,
9830,
628,
279,
24728,
3639,
368,
585,
1496,
326,
819,
1790,
1058,
2026,
506,
279,
3639,
368,
1058,
316,
326,
6496,
18,
971,
333,
6684,
2353,
4395,
3639,
368,
358,
336,
326,
819,
1790,
1058,
628,
326,
3639,
368,
10006,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5550,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
14094,
2297,
1084,
273,
394,
14094,
2297,
5621,
5411,
775,
5411,
288,
7734,
368,
2245,
3632,
589,
628,
15573,
471,
8851,
7734,
368,
4967,
589,
640,
869,
19370,
18,
7734,
1387,
11225,
273,
1984,
18,
10828,
812,
12,
10141,
63,
77,
19226,
7734,
613,
2932,
7736,
819,
2297,
585,
30,
315,
397,
11225,
1769,
7734,
1084,
18,
945,
12,
2704,
11907,
12,
2854,
743,
10019,
5411,
289,
5411,
1044,
261,
503,
425,
13,
5411,
288,
7734,
9403,
11138,
273,
333,
18,
588,
797,
7675,
588,
7805,
5621,
7734,
775,
7734,
288,
10792,
5037,
10010,
273,
11138,
18,
588,
1420,
17052,
12,
10141,
63,
77,
19226,
10792,
309,
261,
2630,
1228,
422,
446,
13,
10792,
288,
13491,
604,
394,
18463,
2932,
1042,
1790,
585,
315,
397,
5550,
63,
77,
65,
397,
18701,
315,
3377,
486,
506,
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,
16615,
2297,
12,
514,
585,
262,
565,
288,
3639,
514,
8526,
5550,
273,
5778,
18,
4939,
12,
768,
16,
3113,
8863,
3639,
819,
2297,
273,
394,
14094,
2297,
5621,
3639,
368,
14178,
775,
358,
336,
326,
819,
1790,
1058,
3639,
368,
628,
279,
585,
1122,
18,
26212,
2026,
506,
9830,
628,
279,
24728,
3639,
368,
585,
1496,
326,
819,
1790,
1058,
2026,
506,
279,
3639,
368,
1058,
316,
326,
6496,
18,
971,
333,
6684,
2353,
4395,
3639,
368,
358,
336,
326,
819,
1790,
1058,
628,
326,
3639,
368,
10006,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5550,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
14094,
2297,
1084,
273,
394,
14094,
2297,
2
] |
||
public void execute( HttpServletRequest req, HttpServletResponse res) throws IOException { LogisticsInventoryPG logInvPG=null; this.out = res.getOutputStream(); int len = req.getContentLength(); if (len > 0) { //logger.debug("READ from content-length["+len+"]"); InputStream in = req.getInputStream(); BufferedReader bin = new BufferedReader(new InputStreamReader(in)); desiredAssetName = bin.readLine(); bin.close(); desiredAssetName = desiredAssetName.trim(); logger.info("POST DATA: " + desiredAssetName); } else { logger.warn(" No asset to plot"); return; } // return list of asset names if (desiredAssetName.equals(ASSET)|| desiredAssetName.startsWith(ASSET_AND_CLASSTYPE)) { //DemandObjectPredicate assetNamePredicate; AssetPredicate assetNamePredicate; if(desiredAssetName.startsWith(ASSET_AND_CLASSTYPE)) { String desiredClassType = desiredAssetName.substring(ASSET_AND_CLASSTYPE.length()); //assetNamePredicate = new DemandObjectPredicate(desiredClassType); assetNamePredicate = new AssetPredicate(desiredClassType,logger); } else { //assetNamePredicate = new DemandObjectPredicate(); assetNamePredicate = new AssetPredicate(logger); } // Asset no demand type handling /*** ** */ Vector assetNames = new Vector(); Collection container = support.queryBlackboard(assetNamePredicate); for (Iterator i = container.iterator(); i.hasNext(); ) { Inventory inv = (Inventory)(i.next()); logInvPG=null; logInvPG = (LogisticsInventoryPG)inv.searchForPropertyGroup(LogisticsInventoryPG.class); TypeIdentificationPG typeIdPG = logInvPG.getResource().getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature != null) { nomenclature = nomenclature + ":" + typeId; } else if(logInvPG.getIsLevel2()) { SupplyClassPG supplyPG = (SupplyClassPG)logInvPG.getResource().searchForPropertyGroup(SupplyClassPG.class); if (supplyPG != null) { nomenclature = typeId + ":" + supplyPG.getSupplyType(); } else { nomenclature = typeId; } } else { nomenclature = typeId; } assetNames.addElement(nomenclature); } /*** * Below is for Demand Object Predicate * MWD fix and try this out -below * MWD get rid of old commented out above replaced by below * to get demand even where no inventories. *** HashSet assetNamesSet = new HashSet(); Collection container = support.queryBlackboard(assetNamePredicate); for (Iterator i = container.iterator(); i.hasNext(); ) { Asset asset = ((Task)(i.next())).getDirectObject(); TypeIdentificationPG typeIdPG = asset.getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature != null) nomenclature = nomenclature + ":" + typeId; else nomenclature = typeId; assetNamesSet.add(nomenclature); } Vector assetNames = new Vector(assetNamesSet); ****/ // send the results ObjectOutputStream p = new ObjectOutputStream(out); p.writeObject(assetNames); logger.info("Sent asset names"); return; } // end returning list of asset names if (desiredAssetName.startsWith("UID:")) { String desiredAssetUID = desiredAssetName.substring(4); Collection collection = support.queryBlackboard(new AssetUIDPredicate(desiredAssetUID,logger)); for (Iterator i = collection.iterator(); i.hasNext(); ) { Inventory inv = (Inventory)(i.next()); logInvPG=null; logInvPG = (LogisticsInventoryPG)inv.searchForPropertyGroup(LogisticsInventoryPG.class); TypeIdentificationPG typeIdPG = logInvPG.getResource().getTypeIdentificationPG(); String nomenclature = typeIdPG.getNomenclature(); String typeId = typeIdPG.getTypeIdentification(); if (nomenclature == null) return; desiredAssetName = nomenclature + ":" + typeId; } } // end getting asset name from UID Date startDay=getStartDate(); // get roles and determine if this cluster is a provider (or consumer) //logger.debug("\n****** look for roles for agent \""+support.getEncodedAgentName()+"\""); /**** MWD do we still need to know if we are a provider or not? ** all the role predicate code below RolePredicate rolePred = new RolePredicate(support.getEncodedAgentName()); Collection roleCollection = support.queryBlackboard(rolePred); boolean provider = false; if (!roleCollection.isEmpty()) { Organization asset = (Organization) roleCollection.iterator().next(); Collection roles = asset.getOrganizationPG().getRoles(); if (roles != null) { Iterator i = roles.iterator(); while (i.hasNext()) { Role role = (Role)i.next(); if (role.getName().endsWith("Provider")) { provider = true; break; } } } } *****/ // get asset and tasks we need to create the inventory logger.debug("Getting Inventory w/InventoryPredicate for " + desiredAssetName); InventoryPredicate inventoryPredicate = new InventoryPredicate(desiredAssetName, support.getEncodedAgentName(),logger); Collection collection = support.queryBlackboard(inventoryPredicate); if (collection.isEmpty()) { logger.warn("\n\n ************* collection is empty; return no response!"); return; } // create UIInventory data object from the log plan objects String xmlStr = getXMLFromLogPlan(collection,startDay); // set values in UISimpleInventory, a serializable object //UISimpleInventory simpleInventory = //getInventoryForClient(inventory, provider, startDay); // send the String object if ((xmlStr != null) && (!(xmlStr.trim().equals("")))){ //ObjectOutputStream p = new ObjectOutputStream(out); //logger.debug("\n\n\n\n sending back a non-null inventory:\n"+simpleInventory); //p.writeObject(xmlStr); BufferedWriter p = new BufferedWriter(new OutputStreamWriter(out,Charset.forName("ASCII"))); p.write(xmlStr); p.flush(); p.close(); logger.info("Sent XML document"); } else { logger.error("XML string is null or empty. returning null response."); } } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/f3d3445cfb3f4ebbd27cffd78c3103a720e5ab45/LogisticsInventoryServlet.java/buggy/bbn/src/org/cougaar/logistics/servlet/LogisticsInventoryServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
1875,
202,
2940,
18572,
1111,
16,
1875,
202,
2940,
29910,
400,
13,
1216,
1860,
565,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
33,
2011,
31,
4202,
202,
2211,
18,
659,
273,
400,
18,
588,
4632,
5621,
10402,
509,
562,
273,
1111,
18,
588,
1350,
1782,
5621,
1377,
309,
261,
1897,
405,
374,
13,
288,
202,
225,
368,
4901,
18,
4148,
2932,
6949,
628,
913,
17,
2469,
9614,
15,
1897,
9078,
4279,
1769,
202,
4348,
316,
273,
1111,
18,
588,
4348,
5621,
3639,
10633,
4158,
273,
394,
10633,
12,
2704,
15322,
12,
267,
10019,
3639,
6049,
6672,
461,
273,
4158,
18,
896,
1670,
5621,
3639,
4158,
18,
4412,
5621,
202,
30458,
6672,
461,
273,
6049,
6672,
461,
18,
5290,
5621,
202,
4901,
18,
1376,
2932,
3798,
8730,
30,
315,
397,
6049,
6672,
461,
1769,
1377,
289,
469,
288,
202,
4901,
18,
8935,
2932,
2631,
3310,
358,
3207,
8863,
202,
2463,
31,
1377,
289,
5411,
368,
327,
666,
434,
3310,
1257,
1377,
309,
261,
30458,
6672,
461,
18,
14963,
12,
3033,
4043,
14047,
96,
202,
225,
6049,
6672,
461,
18,
17514,
1190,
12,
3033,
4043,
67,
4307,
67,
15961,
55,
882,
1738,
3719,
288,
1082,
225,
368,
25461,
921,
8634,
3310,
461,
8634,
31,
202,
6672,
8634,
3310,
461,
8634,
31,
202,
202,
430,
12,
30458,
6672,
461,
18,
17514,
1190,
12,
3033,
4043,
67,
4307,
67,
15961,
55,
882,
1738,
3719,
288,
202,
225,
514,
6049,
18328,
273,
6049,
6672,
461,
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,
1836,
12,
1875,
202,
2940,
18572,
1111,
16,
1875,
202,
2940,
29910,
400,
13,
1216,
1860,
565,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
33,
2011,
31,
4202,
202,
2211,
18,
659,
273,
400,
18,
588,
4632,
5621,
10402,
509,
562,
273,
1111,
18,
588,
1350,
1782,
5621,
1377,
309,
261,
1897,
405,
374,
13,
288,
202,
225,
368,
4901,
18,
4148,
2932,
6949,
628,
913,
17,
2469,
9614,
15,
1897,
9078,
4279,
1769,
202,
4348,
316,
273,
1111,
18,
588,
4348,
5621,
3639,
10633,
4158,
273,
394,
10633,
12,
2704,
15322,
12,
267,
10019,
3639,
6049,
6672,
461,
273,
4158,
18,
896,
1670,
5621,
3639,
4158,
18,
4412,
5621,
202,
30458,
6672,
461,
2
] |
||
String consequence = backText.substring(thenPosition + 4); list.addAll(getJavaCompletionProposals(consequence, prefix, params)); | private void addRHSJavaCompletionProposals(List list, String backText, String prefix) { int thenPosition = backText.lastIndexOf("then"); String conditions = backText.substring(0, thenPosition); DrlParser parser = new DrlParser(); try { PackageDescr descr = parser.parse(conditions); List rules = descr.getRules(); if (rules != null && rules.size() == 1) { Map result = new HashMap(); getRuleParameters(result, ((RuleDescr) rules.get(0)).getLhs().getDescrs()); Iterator iterator = result.keySet().iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); RuleCompletionProposal prop = new RuleCompletionProposal(prefix.length(), name, name + "."); prop.setPriority(-1); prop.setImage(methodIcon); list.add(prop); } } } catch (DroolsParserException exc) { // do nothing } // String consequence = backText.substring(thenPosition + 4); // list.addAll(getRHSJavaCompletionProposals(consequence, prefix)); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/910b467ac0afcb45901f8587312d3da0f62abb22/RuleCompletionProcessor.java/clean/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
3238,
918,
527,
54,
13173,
5852,
11238,
626,
22536,
12,
682,
666,
16,
514,
1473,
1528,
16,
514,
1633,
13,
288,
780,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
225,
202,
474,
1508,
2555,
273,
1473,
1528,
18,
2722,
31985,
2932,
15991,
8863,
780,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
225,
202,
780,
4636,
273,
1473,
1528,
18,
28023,
12,
20,
16,
1508,
2555,
1769,
780,
356,
6178,
273,
1473,
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,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
3238,
918,
527,
54,
13173,
5852,
11238,
626,
22536,
12,
682,
666,
16,
514,
1473,
1528,
16,
514,
1633,
13,
288,
780,
356,
6178,
273,
1473,
1528,
18,
28023,
12,
15991,
2555,
397,
1059,
1769,
666,
18,
1289,
1595,
12,
588,
5852,
11238,
626,
22536,
12,
591,
6178,
16,
1633,
16,
859,
10019,
514,
356,
2
] |
|
buf.append("attrs" + (n - 1) + " = attrs" + n + ";\n"); | buf.append("methodAttrs" + (n - 1) + ".next = methodAttrs" + n + ";\n"); | public CodeVisitor visitMethod ( final int access, final String name, final String desc, final String[] exceptions, final Attribute attrs) { buf.setLength(0); buf.append("{\n"); if (attrs != null) { buf.append("// METHOD ATTRIBUTES\n"); Attribute a = attrs; int n = 1; while (a != null) { if (a instanceof ASMifiable) { ((ASMifiable)a).asmify(buf, "attrs" + n, null); if (n > 1) { buf.append("attrs" + (n - 1) + " = attrs" + n + ";\n"); } } else { buf.append("// WARNING! skipped non standard method attribute of type "); buf.append(a.type).append("\n"); } n++; a = a.next; } } buf.append("cv = cw.visitMethod("); appendAccess(access); buf.append(", "); appendConstant(buf, name); buf.append(", "); appendConstant(buf, desc); buf.append(", "); if (exceptions != null && exceptions.length > 0) { buf.append("new String[] {"); for (int i = 0; i < exceptions.length; ++i) { buf.append(i == 0 ? " " : ", "); appendConstant(buf, exceptions[i]); } buf.append(" }"); } else { buf.append("null"); } if (attrs==null) { buf.append(", null);\n"); } else { buf.append(", attrs1);\n"); } text.add(buf.toString()); PrintCodeVisitor pcv = new ASMifierCodeVisitor(); text.add(pcv.getText()); text.add("}\n"); return pcv; } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/d729b248536bf23ef191a46635634b7128ec3284/ASMifierClassVisitor.java/buggy/asm/src/org/objectweb/asm/util/ASMifierClassVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3356,
7413,
25138,
261,
565,
727,
509,
2006,
16,
565,
727,
514,
508,
16,
565,
727,
514,
3044,
16,
565,
727,
514,
8526,
4798,
16,
565,
727,
3601,
3422,
13,
225,
288,
565,
1681,
18,
542,
1782,
12,
20,
1769,
565,
1681,
18,
6923,
2932,
23241,
82,
8863,
565,
309,
261,
7039,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
759,
10152,
14043,
18744,
64,
82,
8863,
1377,
3601,
279,
273,
3422,
31,
1377,
509,
290,
273,
404,
31,
1377,
1323,
261,
69,
480,
446,
13,
288,
3639,
309,
261,
69,
1276,
5355,
49,
8424,
13,
288,
1850,
14015,
3033,
49,
8424,
13,
69,
2934,
23522,
1164,
12,
4385,
16,
315,
7039,
6,
397,
290,
16,
446,
1769,
1850,
309,
261,
82,
405,
404,
13,
288,
5411,
1681,
18,
6923,
2932,
2039,
8262,
6,
397,
261,
82,
300,
404,
13,
397,
3552,
4285,
273,
707,
8262,
6,
397,
290,
397,
30750,
82,
8863,
1850,
289,
3639,
289,
469,
288,
1850,
1681,
18,
6923,
2932,
759,
9744,
5,
9700,
1661,
4529,
707,
1566,
434,
618,
315,
1769,
1850,
1681,
18,
6923,
12,
69,
18,
723,
2934,
6923,
31458,
82,
8863,
3639,
289,
3639,
290,
9904,
31,
3639,
279,
273,
279,
18,
4285,
31,
1377,
289,
565,
289,
565,
1681,
18,
6923,
2932,
19774,
273,
14098,
18,
11658,
1305,
2932,
1769,
565,
714,
1862,
12,
3860,
1769,
565,
1681,
18,
6923,
2932,
16,
315,
1769,
565,
714,
6902,
12,
4385,
16,
508,
1769,
565,
1681,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3356,
7413,
25138,
261,
565,
727,
509,
2006,
16,
565,
727,
514,
508,
16,
565,
727,
514,
3044,
16,
565,
727,
514,
8526,
4798,
16,
565,
727,
3601,
3422,
13,
225,
288,
565,
1681,
18,
542,
1782,
12,
20,
1769,
565,
1681,
18,
6923,
2932,
23241,
82,
8863,
565,
309,
261,
7039,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
759,
10152,
14043,
18744,
64,
82,
8863,
1377,
3601,
279,
273,
3422,
31,
1377,
509,
290,
273,
404,
31,
1377,
1323,
261,
69,
480,
446,
13,
288,
3639,
309,
261,
69,
1276,
5355,
49,
8424,
13,
288,
1850,
14015,
3033,
49,
8424,
13,
69,
2934,
23522,
1164,
12,
4385,
16,
315,
7039,
6,
397,
290,
16,
2
] |
weapon.flags |= F_PROTOMECH; | weapon.flags |= F_PROTOMECH | F_MISSILE; | public static WeaponType createCLPROStreakSRM1() { WeaponType weapon = new WeaponType(); weapon.name = "Streak SRM 1"; weapon.setInternalName("CLStreakSRM1"); weapon.heat = 0; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 1; weapon.ammoType = AmmoType.T_SRM_STREAK; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 4; weapon.mediumRange = 8; weapon.longRange = 12; weapon.extremeRange = 16; weapon.tonnage = 0.5f; weapon.criticals = 0; weapon.bv = 20; weapon.flags |= F_PROTOMECH; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/3de8871e6895277c40058c53708655401dda40bd/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
3373,
510,
870,
55,
8717,
21,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
510,
870,
348,
8717,
404,
14432,
3639,
732,
28629,
18,
542,
3061,
461,
2932,
5017,
510,
870,
55,
8717,
21,
8863,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
463,
2192,
2833,
67,
7492,
1260,
13578,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
404,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
55,
8717,
67,
882,
22176,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
673,
67,
11277,
31,
3639,
732,
28629,
18,
6620,
2655,
273,
1059,
31,
3639,
732,
28629,
18,
19011,
2655,
273,
1725,
31,
3639,
732,
28629,
18,
5748,
2655,
273,
2593,
31,
3639,
732,
28629,
18,
408,
2764,
73,
2655,
273,
2872,
31,
3639,
732,
28629,
18,
1917,
82,
410,
273,
374,
18,
25,
74,
31,
3639,
732,
28629,
18,
27826,
335,
1031,
273,
374,
31,
3639,
732,
28629,
18,
70,
90,
273,
4200,
31,
3639,
732,
28629,
18,
7133,
5626,
478,
67,
25455,
958,
1792,
571,
478,
67,
7492,
1260,
13578,
31,
3639,
327,
732,
28629,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
3373,
510,
870,
55,
8717,
21,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
510,
870,
348,
8717,
404,
14432,
3639,
732,
28629,
18,
542,
3061,
461,
2932,
5017,
510,
870,
55,
8717,
21,
8863,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
463,
2192,
2833,
67,
7492,
1260,
13578,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
404,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
55,
8717,
67,
882,
22176,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
2
] |
textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');"); | textField.setOnKeyDown("javascript:autoCompleteKeyDownHandler(event, '" + textField.getId() +"');"); textField.setOnKeyUp("javascript:autoCompleteKeyUpHandler(event, '" + textField.getId() + "', '" + TYPING_VALUE + "');"); | public HtmlComponent createComponent(Object object, Class type) { HtmlInlineContainer container = new HtmlInlineContainer(); addScripts(container); MetaSlotKey key = (MetaSlotKey) getContext().getMetaObject().getKey(); HtmlHiddenField valueField = new HtmlHiddenField(); valueField.setTargetSlot(key); valueField.setId(key.toString() + "_AutoComplete"); valueField.setName(valueField.getId()); container.addChild(valueField); valueField.setConverter(new AutoCompleteConverter(getClassName())); HtmlTextInput textField = new HtmlTextInput(); textField.setId(key.toString()); textField.setName(textField.getId()); textField.setClasses(getTextFieldStyleClass()); textField.setSize(getSize()); textField.setOnKeyUp("javascript:autoCompleteUpdateValueField('" + textField.getId() + "', '" + TYPING_VALUE + "');"); container.addChild(textField); if (getRawSlotName() != null) { textField.setController(new UpdateRawNameController(getRawSlotName())); } HtmlBlockContainer resultsContainer = new HtmlBlockContainer(); resultsContainer.setId(key.toString() + "_div"); resultsContainer.setClasses(getAutoCompleteStyleClass()); container.addChild(resultsContainer); addFinalScript(container, textField.getId(), resultsContainer.getId()); return container; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6e5d0c1a2978eef62b4c539a271e71239d4cbe0b/AutoCompleteInputRenderer.java/clean/src/net/sourceforge/fenixedu/presentationTier/renderers/AutoCompleteInputRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
5430,
1841,
752,
1841,
12,
921,
733,
16,
1659,
618,
13,
288,
27573,
5430,
10870,
2170,
1478,
273,
394,
5430,
10870,
2170,
5621,
7734,
527,
15041,
12,
3782,
1769,
27573,
6565,
8764,
653,
498,
273,
261,
2781,
8764,
653,
13,
6474,
7675,
588,
2781,
921,
7675,
588,
653,
5621,
27573,
5430,
9345,
974,
460,
974,
273,
394,
5430,
9345,
974,
5621,
7734,
460,
974,
18,
542,
2326,
8764,
12,
856,
1769,
7734,
460,
974,
18,
542,
548,
12,
856,
18,
10492,
1435,
397,
4192,
4965,
6322,
8863,
7734,
460,
974,
18,
542,
461,
12,
1132,
974,
18,
26321,
10663,
7734,
1478,
18,
1289,
1763,
12,
1132,
974,
1769,
7734,
460,
974,
18,
542,
5072,
12,
2704,
8064,
6322,
5072,
12,
588,
3834,
1435,
10019,
27573,
5430,
1528,
1210,
977,
974,
273,
394,
5430,
1528,
1210,
5621,
7734,
977,
974,
18,
542,
548,
12,
856,
18,
10492,
10663,
7734,
977,
974,
18,
542,
461,
12,
955,
974,
18,
26321,
10663,
7734,
977,
974,
18,
542,
4818,
12,
588,
16157,
2885,
797,
10663,
7734,
977,
974,
18,
542,
1225,
12,
588,
1225,
10663,
7734,
977,
974,
18,
542,
1398,
653,
4164,
2932,
11242,
30,
6079,
6322,
653,
4164,
1503,
12,
2575,
16,
2119,
397,
977,
974,
18,
26321,
1435,
397,
5187,
1769,
8863,
977,
974,
18,
542,
1398,
653,
1211,
2932,
11242,
30,
6079,
6322,
653,
1211,
1503,
12,
2575,
16,
2119,
397,
977,
974,
18,
26321,
1435,
397,
14912,
2119,
397,
22153,
20002,
67,
4051,
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,
2398,
1071,
5430,
1841,
752,
1841,
12,
921,
733,
16,
1659,
618,
13,
288,
27573,
5430,
10870,
2170,
1478,
273,
394,
5430,
10870,
2170,
5621,
7734,
527,
15041,
12,
3782,
1769,
27573,
6565,
8764,
653,
498,
273,
261,
2781,
8764,
653,
13,
6474,
7675,
588,
2781,
921,
7675,
588,
653,
5621,
27573,
5430,
9345,
974,
460,
974,
273,
394,
5430,
9345,
974,
5621,
7734,
460,
974,
18,
542,
2326,
8764,
12,
856,
1769,
7734,
460,
974,
18,
542,
548,
12,
856,
18,
10492,
1435,
397,
4192,
4965,
6322,
8863,
7734,
460,
974,
18,
542,
461,
12,
1132,
974,
18,
26321,
10663,
7734,
1478,
18,
1289,
1763,
12,
1132,
974,
1769,
7734,
460,
974,
18,
542,
5072,
12,
2704,
8064,
2
] |
if(checkFlags(BuildDescriptionManager.DEPS_DEPFILE_INFO)){ | if(checkFlags(BuildDescriptionManager.DEPFILES)){ | private void calculateOutputs(BuildStep action, BuildIOType arg, BuildResource buildRc) throws CoreException { BuildResource rcs[] = null; ITool tool = action.getTool(); boolean isMultiAction = action.isMultiAction(); IPath resPath = null; if(!isMultiAction){ resPath = buildRc.getFullPath(); if(resPath == null) resPath = buildRc.getLocation(); } else { rcs = (BuildResource[])action.getPrimaryTypes(true)[0].getResources(); if(rcs.length == 0) return; } IPath outDirPath = isMultiAction ? getTopBuildDirFullPath() : buildRc.getProducerIOType().getStep() == fInputStep ? getTopBuildDirFullPath().append(resPath.removeFirstSegments(1).removeLastSegments(1)).addTrailingSeparator() : resPath.removeLastSegments(1).addTrailingSeparator(); IInputType inType = (IInputType)arg.getIoType(); String linkId = inType != null ? inType.getBuildVariable() : null; if(linkId != null && linkId.length() == 0) linkId = null; IOutputType[] outTypes = tool.getOutputTypes(); // 1. If the tool is the build target and this is the primary output, // use artifact name & extension if (fTargetStep == action){ String artifactName = fCfg.getArtifactName(); try { String tmp = ManagedBuildManager.getBuildMacroProvider().resolveValue(artifactName, "", " ", IBuildMacroProvider.CONTEXT_CONFIGURATION, fCfg); //$NON-NLS-1$ //$NON-NLS-2$ if((tmp = tmp.trim()).length() > 0) artifactName = tmp; } catch (BuildMacroException e){ } String artifactExt = fCfg.getArtifactExtension(); try { String tmp = ManagedBuildManager.getBuildMacroProvider() .resolveValue(artifactExt, "", " ", IBuildMacroProvider.CONTEXT_CONFIGURATION, fCfg); //$NON-NLS-1$ //$NON-NLS-2$ if((tmp = tmp.trim()).length() > 0) artifactExt = tmp; } catch (BuildMacroException e) { } IPath path = new Path(artifactName); if(artifactExt != null && artifactExt.length() != 0) path = path.addFileExtension(artifactExt); IOutputType type = action.getTool().getPrimaryOutputType(); BuildIOType ioType = action.getIOTypeForType(type, false); if(ioType == null) ioType = action.createIOType(false, true, type); addOutputs(new IPath[]{path}, ioType, outDirPath); } else if (outTypes != null && outTypes.length > 0) { for (int i=0; i<outTypes.length; i++) { IOutputType type = outTypes[i]; boolean primaryOutput = (type == tool.getPrimaryOutputType()); String outputPrefix = type.getOutputPrefix(); String[] pathStrings = null; IPath[] paths = null; // Resolve any macros in the outputPrefix // Note that we cannot use file macros because if we do a clean // we need to know the actual name of the file to clean, and // cannot use any builder variables such as $@. Hence we use the // next best thing, i.e. configuration context. // figure out the configuration we're using IBuildObject toolParent = tool.getParent(); IConfiguration config = null; // if the parent is a config then we're done if (toolParent instanceof IConfiguration) config = (IConfiguration) toolParent; else if (toolParent instanceof IToolChain) { // must be a toolchain config = (IConfiguration) ((IToolChain) toolParent) .getParent(); } else if (toolParent instanceof IResourceConfiguration) { config = (IConfiguration) ((IResourceConfiguration) toolParent) .getParent(); } else { // bad throw new AssertionError( "tool parent must be one of configuration, toolchain, or resource configuration"); //$NON-NLS-1$ } if (config != null) { try {//TODO outputPrefix = ManagedBuildManager .getBuildMacroProvider() .resolveValue( outputPrefix, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, config); } catch (BuildMacroException e) { } } boolean multOfType = type.getMultipleOfType(); IOption option = tool.getOptionBySuperClassId(type.getOptionId()); IManagedOutputNameProvider nameProvider = type.getNameProvider(); String[] outputNames = type.getOutputNames(); BuildIOType buildArg = null; // 2. If an option is specified, use the value of the option if (option != null) { try { int optType = option.getValueType(); if (optType == IOption.STRING) { String val = option.getStringValue(); if(val != null && val.length() > 0){ // try to resolve the build macros in the output // names try {//TODO val = ManagedBuildManager .getBuildMacroProvider() .resolveValue( val, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } if((val = val.trim()).length() > 0){ pathStrings = new String[]{outputPrefix + val}; } } } else if ( optType == IOption.STRING_LIST || optType == IOption.LIBRARIES || optType == IOption.OBJECTS) { List outputList = (List)option.getValue(); // Add outputPrefix to each if necessary if(outputList != null && outputList.size() > 0){//TODO try{ pathStrings = ManagedBuildManager .getBuildMacroProvider() .resolveStringListValues( (String[])outputList.toArray(new String[outputList.size()]), "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } } if(pathStrings != null && pathStrings.length > 0 && outputPrefix.length() > 0){ for (int j=0; j<pathStrings.length; j++) { if(pathStrings[j] == null && (pathStrings[j] = pathStrings[j].trim()).length() == 0) pathStrings[j] = null; else pathStrings[j] = outputPrefix + pathStrings[j]; } } } } catch( BuildException ex ) {} } else // 3. If a nameProvider is specified, call it if (nameProvider != null) { IPath[] inPaths; if(buildRc != null){ inPaths = new Path[1]; inPaths[0] = buildRc.getLocation(); } else { inPaths = new Path[rcs.length]; for(int k = 0; k < inPaths.length; k++){ inPaths[k] = rcs[k].getLocation(); } } paths = nameProvider.getOutputNames(tool, inPaths); } else // 4. If outputNames is specified, use it if (outputNames != null) { try{ pathStrings = ManagedBuildManager .getBuildMacroProvider() .resolveStringListValues( outputNames, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_FILE, new FileContextData( resPath, null, option, tool)); } catch (BuildMacroException e){ } } else { // 5. Use the name pattern to generate a transformation macro // so that the source names can be transformed into the target names // using the built-in string substitution functions of <code>make</code>. if (multOfType || isMultiAction) { // This case is not handled - a nameProvider or outputNames must be specified // TODO - report error } else { String namePattern = type.getNamePattern(); IPath namePatternPath = null; String inExt = resPath.getFileExtension(); String outExt = tool.getOutputExtension(inExt); if (namePattern == null || namePattern.length() == 0) { namePattern = /*outDirPath.toOSString() +*/ outputPrefix + IManagedBuilderMakefileGenerator.WILDCARD; if (outExt != null && outExt.length() > 0) { namePattern += DOT + outExt; } namePatternPath = Path.fromOSString(namePattern); } else { if (outputPrefix.length() > 0) { namePattern = outputPrefix + namePattern; } namePatternPath = Path.fromOSString(namePattern); // If only a file name is specified, add the relative path of this output directory if (namePatternPath.segmentCount() == 1) { namePatternPath = Path.fromOSString(/*outDirPath.toOSString() +*/ namePatternPath.toString()); } } paths = new IPath[]{resolvePercent(namePatternPath, buildRc.getLocation())}; } } if(paths == null && pathStrings != null){ paths = new IPath[pathStrings.length]; for(int k = 0; k < pathStrings.length; k++){ paths[k] = Path.fromOSString(pathStrings[k]); } } if(paths != null){ if(buildArg == null) buildArg = action.createIOType(false, primaryOutput, type); addOutputs(paths, buildArg, outDirPath); } } } else { // For support of pre-CDT 3.0 integrations. // NOTE WELL: This only supports the case of a single "target tool" // that consumes exactly all of the object files, $OBJS, produced // by other tools in the build and produces a single output. // In this case, the output file name is the input file name with // the output extension. String outPrefix = tool.getOutputPrefix(); IPath outFullPath = Path.fromOSString(outDirPath.toOSString() + outPrefix + WILDCARD); IPath outLocation; String inExt = resPath.getFileExtension(); String outExt = tool.getOutputExtension(inExt); outFullPath = resolvePercent(outFullPath.addFileExtension(outExt), buildRc.getLocation()); outLocation = fProject.getLocation().append(outFullPath.removeFirstSegments(1)); BuildIOType buildArg = action.createIOType(false, true, null); BuildResource outRc = createResource(outLocation, outFullPath); buildArg.addResource(outRc); } if(checkFlags(BuildDescriptionManager.DEPS_DEPFILE_INFO)){ if(tool != null && buildRc != null){ IInputType type = action.getInputType(); String ext = null; if(type != null){ String exts[] = type.getSourceExtensions(tool); String location = buildRc.getLocation().toOSString(); for(int i = 0; i < exts.length; i++){ if(location.endsWith(exts[i])){ ext = exts[i]; break; } } } if(ext == null) ext = buildRc.getLocation().getFileExtension(); if (ext != null) { IManagedDependencyGeneratorType depGenType = tool .getDependencyGeneratorForExtension(ext); if (depGenType != null) { IPath depFiles[] = null; if (depGenType instanceof IManagedDependencyGenerator2) { IBuildObject context = tool.getParent(); if (context instanceof IToolChain) { context = ((IToolChain) context).getParent(); } IPath path = buildRc.isProjectResource() ? buildRc .getFullPath().removeFirstSegments(1) : buildRc.getLocation(); IResource resource = buildRc.isProjectResource() ? fProject .findMember(buildRc.getLocation()) : null; IManagedDependencyInfo info = ((IManagedDependencyGenerator2) depGenType) .getDependencySourceInfo(path, resource, context, tool, getDefaultBuildDirLocation()); if (info instanceof IManagedDependencyCommands) { depFiles = ((IManagedDependencyCommands) info) .getDependencyFiles(); } } else if (depGenType.getCalculatorType() == IManagedDependencyGeneratorType.TYPE_COMMAND && depGenType instanceof IManagedDependencyGenerator) { depFiles = new IPath[1]; depFiles[0] = new Path(buildRc.getLocation() .segment( buildRc.getLocation() .segmentCount() - 1)) .removeFileExtension() .addFileExtension("d"); //$NON-NLS-1$ } if (depFiles != null) { BuildIOType depType = action.createIOType(false, false, null); addOutputs(depFiles, depType, outDirPath); } } } } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d6c3820f2ac080073cc3abf91f36b90dd97ee187/BuildDescription.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/buildmodel/BuildDescription.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4604,
13856,
12,
3116,
4160,
1301,
16,
3998,
4294,
559,
1501,
16,
3998,
1420,
1361,
24599,
13,
1216,
30015,
288,
202,
202,
3116,
1420,
436,
2143,
8526,
273,
446,
31,
202,
202,
45,
6364,
5226,
273,
1301,
18,
588,
6364,
5621,
9506,
202,
6494,
25129,
1803,
273,
1301,
18,
291,
5002,
1803,
5621,
9506,
202,
45,
743,
400,
743,
273,
446,
31,
9506,
202,
430,
12,
5,
291,
5002,
1803,
15329,
1082,
202,
455,
743,
273,
1361,
24599,
18,
588,
24173,
5621,
1082,
202,
430,
12,
455,
743,
422,
446,
13,
9506,
202,
455,
743,
273,
1361,
24599,
18,
588,
2735,
5621,
202,
202,
97,
469,
288,
1082,
202,
1310,
87,
273,
261,
3116,
1420,
63,
5717,
1128,
18,
588,
6793,
2016,
12,
3767,
25146,
20,
8009,
588,
3805,
5621,
1082,
202,
430,
12,
1310,
87,
18,
2469,
422,
374,
13,
9506,
202,
2463,
31,
202,
202,
97,
9506,
202,
45,
743,
596,
20129,
273,
25129,
1803,
692,
9506,
202,
588,
3401,
3116,
1621,
24173,
1435,
294,
6862,
202,
3510,
24599,
18,
588,
12140,
4294,
559,
7675,
588,
4160,
1435,
422,
284,
1210,
4160,
692,
15106,
202,
588,
3401,
3116,
1621,
24173,
7675,
6923,
12,
455,
743,
18,
4479,
3759,
7946,
12,
21,
2934,
4479,
3024,
7946,
12,
21,
13,
2934,
1289,
16808,
6581,
1435,
294,
6862,
9506,
202,
455,
743,
18,
4479,
3024,
7946,
12,
21,
2934,
1289,
16808,
6581,
5621,
202,
202,
45,
1210,
559,
316,
559,
273,
261,
45,
1210,
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,
4604,
13856,
12,
3116,
4160,
1301,
16,
3998,
4294,
559,
1501,
16,
3998,
1420,
1361,
24599,
13,
1216,
30015,
288,
202,
202,
3116,
1420,
436,
2143,
8526,
273,
446,
31,
202,
202,
45,
6364,
5226,
273,
1301,
18,
588,
6364,
5621,
9506,
202,
6494,
25129,
1803,
273,
1301,
18,
291,
5002,
1803,
5621,
9506,
202,
45,
743,
400,
743,
273,
446,
31,
9506,
202,
430,
12,
5,
291,
5002,
1803,
15329,
1082,
202,
455,
743,
273,
1361,
24599,
18,
588,
24173,
5621,
1082,
202,
430,
12,
455,
743,
422,
446,
13,
9506,
202,
455,
743,
273,
1361,
24599,
18,
588,
2735,
5621,
202,
202,
97,
469,
288,
1082,
202,
1310,
87,
273,
261,
3116,
1420,
2
] |
resize (d.width, d.height); | int oldwidth = this.width; int oldheight = this.height; if (this.width == width && this.height == height) return; invalidate (); this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); if (isLightweight()) { if (oldwidth != 0 && oldheight != 0 && parent != null) parent.repaint(x, y, oldwidth, oldheight); if (width != 0 && height != 0) repaint(); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } | public void resize(Dimension d) { resize (d.width, d.height); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/14511e3ad21013e92c6399b2bd2ec09a8263e33a/Component.java/buggy/libjava/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
8611,
302,
13,
225,
288,
565,
509,
1592,
2819,
273,
333,
18,
2819,
31,
509,
1592,
4210,
273,
333,
18,
4210,
31,
225,
309,
261,
2211,
18,
2819,
422,
1835,
597,
333,
18,
4210,
422,
2072,
13,
327,
31,
11587,
261,
1769,
333,
18,
2819,
273,
1835,
31,
333,
18,
4210,
273,
2072,
31,
309,
261,
12210,
480,
446,
13,
4261,
18,
542,
5694,
261,
92,
16,
677,
16,
1835,
16,
2072,
1769,
282,
309,
261,
291,
12128,
4865,
10756,
288,
309,
261,
1673,
2819,
480,
374,
597,
1592,
4210,
480,
374,
597,
982,
480,
446,
13,
982,
18,
14462,
1598,
12,
92,
16,
677,
16,
1592,
2819,
16,
1592,
4210,
1769,
309,
261,
2819,
480,
374,
597,
2072,
480,
374,
13,
24962,
5621,
289,
225,
309,
261,
1673,
2819,
480,
1835,
747,
1592,
4210,
480,
2072,
13,
288,
5435,
1133,
5898,
273,
394,
5435,
1133,
12,
2211,
16,
5435,
1133,
18,
22922,
67,
862,
2320,
62,
2056,
1769,
336,
6364,
8691,
7675,
588,
3163,
1133,
3183,
7675,
2767,
1133,
12,
311,
1769,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
8611,
302,
13,
225,
288,
565,
509,
1592,
2819,
273,
333,
18,
2819,
31,
509,
1592,
4210,
273,
333,
18,
4210,
31,
225,
309,
261,
2211,
18,
2819,
422,
1835,
597,
333,
18,
4210,
422,
2072,
13,
327,
31,
11587,
261,
1769,
333,
18,
2819,
273,
1835,
31,
333,
18,
4210,
273,
2072,
31,
309,
261,
12210,
480,
446,
13,
4261,
18,
542,
5694,
261,
92,
16,
677,
16,
1835,
16,
2072,
1769,
282,
309,
261,
291,
12128,
4865,
10756,
288,
309,
261,
1673,
2819,
480,
374,
597,
1592,
4210,
480,
374,
597,
982,
480,
446,
13,
982,
18,
14462,
1598,
12,
92,
16,
677,
16,
1592,
2819,
16,
1592,
4210,
1769,
309,
261,
2
] |
if (extension.getContentProvider() instanceof IPipelinedTreeContentProvider) { intercepted |= ((IPipelinedTreeContentProvider) extension .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (extension.getDescriptor().hasOverridingExtensions()) { Set nextLevelOfOverrideableExtensions = new HashSet(); for (Iterator refreshTargetsItr = aRefreshSynchronization .getRefreshTargets().iterator(); refreshTargetsItr .hasNext();) { nextLevelOfOverrideableExtensions .addAll(Arrays .asList(extension .getOverridingExtensionsForPossibleChild(refreshTargetsItr .next()))); } if (!nextLevelOfOverrideableExtensions.isEmpty()) { intercepted |= pipelineRefresh( nextLevelOfOverrideableExtensions, aRefreshSynchronization); | intercepted |= ((IPipelinedTreeContentProvider) overridingExtensionsForPossibleChild[i] .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (overridingExtensionsForPossibleChild[i].getDescriptor().hasOverridingExtensions()) { intercepted |= pipelineRefresh(overridingExtensionsForPossibleChild[i], aRefreshSynchronization, refreshable); | private boolean pipelineRefresh(Set overrideableExtensions, PipelinedViewerUpdate aRefreshSynchronization) { boolean intercepted = false; for (Iterator extensionsItr = overrideableExtensions.iterator(); extensionsItr .hasNext();) { NavigatorContentExtension extension = (NavigatorContentExtension) extensionsItr .next(); if (extension.getContentProvider() instanceof IPipelinedTreeContentProvider) { intercepted |= ((IPipelinedTreeContentProvider) extension .getContentProvider()) .interceptRefresh(aRefreshSynchronization); if (extension.getDescriptor().hasOverridingExtensions()) { Set nextLevelOfOverrideableExtensions = new HashSet(); for (Iterator refreshTargetsItr = aRefreshSynchronization .getRefreshTargets().iterator(); refreshTargetsItr .hasNext();) { nextLevelOfOverrideableExtensions .addAll(Arrays .asList(extension .getOverridingExtensionsForPossibleChild(refreshTargetsItr .next()))); } if (!nextLevelOfOverrideableExtensions.isEmpty()) { intercepted |= pipelineRefresh( nextLevelOfOverrideableExtensions, aRefreshSynchronization); } } } } return intercepted; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/57b242c92dd8f86e46818b8afadab49e6931c4b6/NavigatorPipelineService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorPipelineService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
5873,
8323,
12,
694,
3849,
429,
7513,
16,
1082,
202,
24925,
292,
1920,
18415,
1891,
279,
8323,
30196,
13,
288,
202,
202,
6494,
10883,
329,
273,
629,
31,
202,
202,
1884,
261,
3198,
4418,
28984,
273,
3849,
429,
7513,
18,
9838,
5621,
4418,
28984,
9506,
202,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
22817,
1350,
3625,
2710,
273,
261,
22817,
1350,
3625,
13,
4418,
28984,
6862,
202,
18,
4285,
5621,
1082,
202,
430,
261,
6447,
18,
588,
1350,
2249,
1435,
1276,
2971,
625,
292,
1920,
2471,
1350,
2249,
13,
288,
9506,
202,
27481,
329,
5626,
14015,
2579,
625,
292,
1920,
2471,
1350,
2249,
13,
2710,
25083,
202,
18,
588,
1350,
2249,
10756,
25083,
202,
18,
27481,
8323,
12,
69,
8323,
30196,
1769,
9506,
202,
430,
261,
6447,
18,
588,
3187,
7675,
5332,
22042,
10415,
7513,
10756,
288,
6862,
202,
694,
1024,
2355,
951,
6618,
429,
7513,
273,
394,
6847,
5621,
6862,
202,
1884,
261,
3198,
4460,
9432,
28984,
273,
279,
8323,
30196,
6862,
1082,
202,
18,
588,
8323,
9432,
7675,
9838,
5621,
4460,
9432,
28984,
6862,
1082,
202,
18,
5332,
2134,
5621,
13,
288,
25083,
202,
4285,
2355,
951,
6618,
429,
7513,
6862,
9506,
202,
18,
1289,
1595,
12,
12726,
6862,
25083,
202,
18,
345,
682,
12,
6447,
6862,
6862,
9506,
202,
18,
588,
22042,
10415,
7513,
1290,
13576,
1763,
12,
9144,
9432,
28984,
6862,
6862,
25083,
202,
18,
4285,
1435,
3719,
1769,
6862,
202,
97,
6862,
202,
430,
16051,
4285,
2355,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
5873,
8323,
12,
694,
3849,
429,
7513,
16,
1082,
202,
24925,
292,
1920,
18415,
1891,
279,
8323,
30196,
13,
288,
202,
202,
6494,
10883,
329,
273,
629,
31,
202,
202,
1884,
261,
3198,
4418,
28984,
273,
3849,
429,
7513,
18,
9838,
5621,
4418,
28984,
9506,
202,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
22817,
1350,
3625,
2710,
273,
261,
22817,
1350,
3625,
13,
4418,
28984,
6862,
202,
18,
4285,
5621,
1082,
202,
430,
261,
6447,
18,
588,
1350,
2249,
1435,
1276,
2971,
625,
292,
1920,
2471,
1350,
2249,
13,
288,
9506,
202,
27481,
329,
5626,
14015,
2579,
625,
292,
1920,
2471,
1350,
2249,
13,
2710,
25083,
202,
18,
588,
1350,
2249,
10756,
25083,
202,
2
] |
super(position); | super(position, NodeTypes.MULTIPLEASGNNODE); | public MultipleAsgnNode(ISourcePosition position, ListNode headNode, Node argsNode) { super(position); this.headNode = headNode; this.argsNode = argsNode; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/6e15491217631472c05c6928672f9c7064a978b3/MultipleAsgnNode.java/buggy/src/org/jruby/ast/MultipleAsgnNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13531,
37,
1055,
82,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
910,
907,
16,
2029,
833,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
24683,
900,
3033,
8318,
8744,
1769,
3639,
333,
18,
1978,
907,
273,
910,
907,
31,
3639,
333,
18,
1968,
907,
273,
833,
907,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13531,
37,
1055,
82,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
910,
907,
16,
2029,
833,
907,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
24683,
900,
3033,
8318,
8744,
1769,
3639,
333,
18,
1978,
907,
273,
910,
907,
31,
3639,
333,
18,
1968,
907,
273,
833,
907,
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
] |
ISourcePosition position = support.getPosition(); | ISourcePosition position = support.getPosition(); | private int parseSingleQuotedString(int closeQuote, int openQuote) { ISourcePosition position = support.getPosition(); int c; int nest = 0; // int strstart = ruby.getSourceLine(); StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { // ruby.setSourceLine(strstart); errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : // fall through if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } stringToken.append('\\'); } } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } lexState = LexState.EXPR_END; yaccValue = stringToken.toString(); return Token.tSTRING; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
759,
509,
609,
1937,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
13,
288,
1082,
202,
430,
261,
71,
422,
300,
21,
13,
288,
9506,
202,
759,
22155,
18,
542,
1830,
1670,
12,
701,
1937,
1769,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
3589,
16,
1754,
16,
4838,
18,
588,
780,
2932,
318,
29133,
67,
1080,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
374,
31,
1082,
202,
97,
1082,
202,
430,
261,
71,
422,
5282,
13,
288,
9506,
202,
71,
273,
1024,
71,
5621,
9506,
202,
9610,
261,
71,
13,
288,
6862,
202,
3593,
2337,
82,
11,
294,
25083,
202,
17143,
31,
6862,
202,
3593,
5282,
294,
25083,
202,
71,
273,
5282,
31,
25083,
202,
8820,
31,
6862,
202,
1886,
294,
25083,
202,
759,
4159,
3059,
25083,
202,
430,
261,
71,
422,
1746,
10257,
747,
261,
3190,
10257,
480,
374,
597,
276,
422,
1696,
10257,
3719,
288,
6862,
1082,
202,
1080,
1345,
18,
6923,
12443,
3001,
13,
276,
1769,
6862,
1082,
202,
17143,
31,
25083,
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,
1109,
5281,
15919,
780,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
474,
276,
31,
202,
202,
474,
15095,
273,
374,
31,
202,
202,
759,
509,
609,
1937,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
780,
1892,
533,
1345,
273,
394,
6674,
5621,
202,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
747,
15095,
405,
374,
13,
288,
1082,
202,
430,
261,
71,
422,
300,
21,
13,
288,
9506,
202,
759,
22155,
18,
542,
1830,
1670,
12,
701,
1937,
1769,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
2
] |
return authToken.getUsername(); | return address.getNode(); | public String getUsername() throws UserNotFoundException { if (authToken == null) { throw new UserNotFoundException(); } return authToken.getUsername(); } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/fdb96256d377ff7671095212c97ade3b92b7de47/SessionImpl.java/buggy/src/java/org/jivesoftware/messenger/spi/SessionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17827,
1435,
1216,
2177,
3990,
288,
3639,
309,
261,
1944,
1345,
422,
446,
13,
288,
5411,
604,
394,
2177,
3990,
5621,
3639,
289,
3639,
327,
1758,
18,
588,
907,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
514,
17827,
1435,
1216,
2177,
3990,
288,
3639,
309,
261,
1944,
1345,
422,
446,
13,
288,
5411,
604,
394,
2177,
3990,
5621,
3639,
289,
3639,
327,
1758,
18,
588,
907,
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
] |
sb.append(cs.internalsprintf(x)); | if (cs.isPositionalSpecification()) { i = cs.getArgumentPosition() - 1; } if (cs.isPositionalFieldWidth()) { int ifw = cs.getArgumentPositionForFieldWidth() - 1; cs.setFieldWidthWithArg(((Number) o[ifw]).intValue()); } else if (cs.isVariableFieldWidth() && !cs.isPositionalSpecification()) { cs.setFieldWidthWithArg(((Number) o[i]).intValue()); i++; } if (cs.isPositionalPrecision()) { int ipr = cs.getArgumentPositionForPrecision() - 1; cs.setPrecisionWithArg(((Number) o[ipr]).intValue()); } else if (cs.isVariablePrecision() && !cs.isPositionalSpecification()) { cs.setPrecisionWithArg(((Number) o[i]).intValue()); i++; } if (o[i] == null) { } else if (o[i] instanceof Byte) { sb.append(cs.internalsprintf(((Byte) o[i]).byteValue())); } else if (o[i] instanceof Short) { sb.append(cs.internalsprintf(((Short) o[i]).shortValue())); } else if (o[i] instanceof Integer) { sb.append(cs.internalsprintf(((Integer) o[i]).intValue())); } else if (o[i] instanceof Long) { sb.append(cs.internalsprintf(((Long) o[i]).longValue())); } else if (o[i] instanceof Float) { sb.append(cs.internalsprintf(((Float) o[i]).floatValue())); } else if (o[i] instanceof Double) { sb.append(cs.internalsprintf(((Double) o[i]).doubleValue())); } else if (o[i] instanceof Character) { sb.append(cs.internalsprintf(((Character) o[i]).charValue())); } else if (o[i] instanceof String) { sb.append(cs.internalsprintf((String) o[i])); } else { sb.append(cs.internalsprintf(o[i])); } i++; | public String sprintf(int x) throws IllegalArgumentException { Enumeration e = vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = (ConversionSpecification) e.nextElement(); c = cs.getConversionCharacter(); if (c == '\0') { sb.append(cs.getLiteral()); } else if (c == '%') { sb.append("%"); } else { sb.append(cs.internalsprintf(x)); } } return sb.toString(); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/35891dc0540a7a6cc0d57a33475e292e2558e1b1/PrintfFormat.java/buggy/src/org/jruby/util/PrintfFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2005,
12,
474,
619,
13,
1216,
2754,
288,
3639,
13864,
425,
273,
331,
16090,
18,
6274,
5621,
3639,
16401,
8615,
2873,
273,
446,
31,
3639,
1149,
276,
273,
374,
31,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
2873,
273,
261,
6814,
8615,
13,
425,
18,
4285,
1046,
5621,
5411,
276,
273,
2873,
18,
588,
6814,
7069,
5621,
5411,
309,
261,
71,
422,
2337,
20,
6134,
288,
7734,
2393,
18,
6923,
12,
2143,
18,
588,
6177,
10663,
5411,
289,
469,
309,
261,
71,
422,
1995,
6134,
288,
7734,
2393,
18,
6923,
27188,
8863,
5411,
289,
469,
288,
7734,
309,
261,
2143,
18,
291,
2555,
287,
8615,
10756,
288,
277,
273,
2873,
18,
588,
1379,
2555,
1435,
300,
404,
31,
289,
225,
309,
261,
2143,
18,
291,
2555,
287,
974,
2384,
10756,
288,
509,
309,
91,
273,
2873,
18,
588,
1379,
2555,
1290,
974,
2384,
1435,
300,
404,
31,
2873,
18,
542,
974,
2384,
1190,
4117,
12443,
12,
1854,
13,
320,
63,
430,
91,
65,
2934,
474,
620,
10663,
289,
469,
309,
261,
2143,
18,
291,
3092,
974,
2384,
1435,
597,
401,
2143,
18,
291,
2555,
287,
8615,
10756,
288,
2873,
18,
542,
974,
2384,
1190,
4117,
12443,
12,
1854,
13,
320,
63,
77,
65,
2934,
474,
620,
10663,
277,
9904,
31,
289,
225,
309,
261,
2143,
18,
291,
2555,
287,
15410,
10756,
288,
509,
277,
683,
273,
2873,
18,
588,
1379,
2555,
1290,
15410,
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,
2005,
12,
474,
619,
13,
1216,
2754,
288,
3639,
13864,
425,
273,
331,
16090,
18,
6274,
5621,
3639,
16401,
8615,
2873,
273,
446,
31,
3639,
1149,
276,
273,
374,
31,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
2873,
273,
261,
6814,
8615,
13,
425,
18,
4285,
1046,
5621,
5411,
276,
273,
2873,
18,
588,
6814,
7069,
5621,
5411,
309,
261,
71,
422,
2337,
20,
6134,
288,
7734,
2393,
18,
6923,
12,
2143,
18,
588,
6177,
10663,
5411,
289,
469,
309,
261,
71,
422,
1995,
6134,
288,
7734,
2393,
18,
6923,
27188,
8863,
5411,
289,
469,
288,
7734,
309,
261,
2143,
18,
291,
2555,
287,
8615,
2
] |
cat.error("got an URLException in ActionReopenProject", ex); | LOG.error("got an URLException in ActionReopenProject", ex); | public void actionPerformed(ActionEvent e) { // actually copy from ActionOpenProject, there should be a better way ProjectBrowser pb = ProjectBrowser.getInstance(); Project p = ProjectManager.getManager().getCurrentProject(); if (p != null && p.needsSave()) { String t = MessageFormat.format( Translator.localize( "Actions", "optionpane.open-project-save-changes-to"), new Object[] { p.getName() }); int response = JOptionPane.showConfirmDialog( pb, t, t, JOptionPane.YES_NO_CANCEL_OPTION); if (response == JOptionPane.CANCEL_OPTION || response == JOptionPane.CLOSED_OPTION) return; if (response == JOptionPane.YES_OPTION) { boolean safe = false; if (ActionSaveProject.SINGLETON.shouldBeEnabled()) { safe = ActionSaveProject.SINGLETON.trySave(true); } if (!safe) { safe = ActionSaveProjectAs.SINGLETON.trySave(false); } if (!safe) return; } } // load of the new project // just reuse of the ActionOpen object File toOpen = new File(_filename);; try { ActionOpenProject openProjectHandler = new ActionOpenProject(); openProjectHandler.loadProject(toOpen.toURL()); } catch ( java.net.MalformedURLException ex) { cat.error("got an URLException in ActionReopenProject", ex); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d099086bfb37f6acb8e6fe27c21af918f8847c0a/ActionReopenProject.java/buggy/src_new/org/argouml/uml/ui/ActionReopenProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
368,
6013,
1610,
628,
4382,
3678,
4109,
16,
1915,
1410,
506,
279,
7844,
4031,
3639,
5420,
9132,
6386,
273,
5420,
9132,
18,
588,
1442,
5621,
3639,
5420,
293,
273,
5420,
1318,
18,
588,
1318,
7675,
588,
3935,
4109,
5621,
3639,
309,
261,
84,
480,
446,
597,
293,
18,
20600,
4755,
10756,
288,
5411,
514,
268,
273,
7734,
17377,
18,
2139,
12,
13491,
18669,
18,
3729,
554,
12,
9506,
202,
6,
6100,
3113,
9506,
202,
6,
3482,
29009,
18,
3190,
17,
4406,
17,
5688,
17,
6329,
17,
869,
6,
3631,
1082,
202,
2704,
1033,
8526,
288,
9506,
565,
293,
18,
17994,
1435,
1082,
202,
22938,
5411,
509,
766,
273,
7734,
804,
1895,
8485,
18,
4500,
11269,
6353,
12,
25083,
1377,
6386,
16,
25083,
1377,
268,
16,
25083,
1377,
268,
16,
25083,
1377,
804,
1895,
8485,
18,
29081,
67,
3417,
67,
25268,
67,
7425,
1769,
5411,
309,
261,
2740,
422,
804,
1895,
8485,
18,
25268,
67,
7425,
3196,
3639,
747,
766,
422,
804,
1895,
8485,
18,
28475,
67,
7425,
13,
7734,
327,
31,
5411,
309,
261,
2740,
422,
804,
1895,
8485,
18,
29081,
67,
7425,
13,
288,
7734,
1250,
4183,
273,
629,
31,
7734,
309,
261,
1803,
4755,
4109,
18,
20184,
56,
673,
18,
13139,
1919,
1526,
10756,
288,
10792,
4183,
273,
4382,
4755,
4109,
18,
20184,
56,
673,
18,
698,
4755,
12,
3767,
1769,
7734,
289,
7734,
309,
16051,
4626,
13,
288,
10792,
4183,
273,
4382,
4755,
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,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
368,
6013,
1610,
628,
4382,
3678,
4109,
16,
1915,
1410,
506,
279,
7844,
4031,
3639,
5420,
9132,
6386,
273,
5420,
9132,
18,
588,
1442,
5621,
3639,
5420,
293,
273,
5420,
1318,
18,
588,
1318,
7675,
588,
3935,
4109,
5621,
3639,
309,
261,
84,
480,
446,
597,
293,
18,
20600,
4755,
10756,
288,
5411,
514,
268,
273,
7734,
17377,
18,
2139,
12,
13491,
18669,
18,
3729,
554,
12,
9506,
202,
6,
6100,
3113,
9506,
202,
6,
3482,
29009,
18,
3190,
17,
4406,
17,
5688,
17,
6329,
17,
869,
6,
3631,
1082,
202,
2704,
1033,
8526,
288,
9506,
565,
293,
18,
17994,
1435,
1082,
202,
22938,
5411,
509,
766,
273,
2
] |
OMDist omd = new OMDist(); | OMDist omd = new OMDist(); | protected synchronized OMDist _findClosest(int x, int y, float limit, boolean resetSelect) { OMDist omd = new OMDist(); OMDist tomd; ListIterator iterator; int i; if (size() != 0) { if (traverseMode == FIRST_ADDED_ON_TOP) { i = 0; iterator = graphics.listIterator(); while (iterator.hasNext()) { tomd = findClosestTest(omd, i, (OMGeometry) iterator.next(), x, y, limit, resetSelect); if (tomd == null) continue; omd = tomd; // for style if (omd.d == 0) break; i++; } } else { i = graphics.size(); iterator = graphics.listIterator(i); while (iterator.hasPrevious()) { tomd = findClosestTest(omd, i, (OMGeometry) iterator.previous(), x, y, limit, resetSelect); if (tomd == null) continue; omd = tomd; // for style if (omd.d == 0) break; i--; } } } return omd; } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/5261c960499272e5f439d0223d1615c1b38a09c2/OMGraphicList.java/clean/src/openmap/com/bbn/openmap/omGraphics/OMGraphicList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
28839,
5133,
389,
4720,
4082,
7781,
12,
474,
619,
16,
509,
677,
16,
1431,
1800,
16,
1250,
2715,
3391,
13,
288,
202,
1872,
5133,
320,
1264,
273,
394,
28839,
5133,
5621,
202,
1872,
5133,
358,
1264,
31,
202,
682,
3198,
2775,
31,
202,
474,
277,
31,
202,
430,
261,
1467,
1435,
480,
374,
13,
288,
202,
565,
309,
261,
2033,
2476,
2309,
422,
21786,
67,
1880,
7660,
67,
673,
67,
10462,
13,
288,
202,
202,
77,
273,
374,
31,
202,
202,
9838,
273,
17313,
18,
1098,
3198,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
565,
358,
1264,
273,
1104,
4082,
7781,
4709,
12,
362,
72,
16,
277,
16,
261,
1872,
9823,
13,
2775,
18,
4285,
9334,
9944,
282,
619,
16,
677,
16,
1800,
16,
2715,
3391,
1769,
1082,
565,
309,
261,
3599,
72,
422,
446,
13,
1324,
31,
1082,
565,
320,
1264,
273,
358,
1264,
31,
225,
368,
364,
2154,
1082,
565,
309,
261,
362,
72,
18,
72,
422,
374,
13,
898,
31,
1082,
565,
277,
9904,
31,
202,
202,
97,
202,
565,
289,
469,
288,
202,
202,
77,
273,
17313,
18,
1467,
5621,
202,
202,
9838,
273,
17313,
18,
1098,
3198,
12,
77,
1769,
202,
202,
17523,
261,
9838,
18,
5332,
8351,
10756,
288,
1082,
565,
358,
1264,
273,
1104,
4082,
7781,
4709,
12,
362,
72,
16,
277,
16,
261,
1872,
9823,
13,
2775,
18,
11515,
9334,
9944,
282,
619,
16,
677,
16,
1800,
16,
2715,
3391,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
28839,
5133,
389,
4720,
4082,
7781,
12,
474,
619,
16,
509,
677,
16,
1431,
1800,
16,
1250,
2715,
3391,
13,
288,
202,
1872,
5133,
320,
1264,
273,
394,
28839,
5133,
5621,
202,
1872,
5133,
358,
1264,
31,
202,
682,
3198,
2775,
31,
202,
474,
277,
31,
202,
430,
261,
1467,
1435,
480,
374,
13,
288,
202,
565,
309,
261,
2033,
2476,
2309,
422,
21786,
67,
1880,
7660,
67,
673,
67,
10462,
13,
288,
202,
202,
77,
273,
374,
31,
202,
202,
9838,
273,
17313,
18,
1098,
3198,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
565,
358,
1264,
273,
1104,
4082,
7781,
4709,
12,
362,
72,
16,
277,
16,
261,
1872,
9823,
2
] |
jj_la1[12] = jj_gen; | jj_la1[11] = jj_gen; | final public void NestedClassDeclaration() throws ParseException { /*@bgen(jjtree) NestedClassDeclaration */ ASTNestedClassDeclaration jjtn000 = new ASTNestedClassDeclaration(this, JJTNESTEDCLASSDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case STRICTFP: ; break; default: jj_la1[12] = jj_gen; break label_5; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case ABSTRACT: jj_consume_token(ABSTRACT); jjtn000.setAbstract(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STRICTFP: jj_consume_token(STRICTFP); jjtn000.setStrict(); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } UnmodifiedClassDeclaration(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/e4e1467181b67cfd9bbbd764d319d740024b0993/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
19071,
797,
6094,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
19071,
797,
6094,
1195,
225,
9183,
8649,
797,
6094,
10684,
5088,
3784,
273,
394,
9183,
8649,
797,
6094,
12,
2211,
16,
804,
46,
56,
5407,
882,
2056,
5237,
23956,
985,
2689,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
1433,
67,
25,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
10336,
21398,
30,
3639,
648,
17563,
1013,
30,
3639,
648,
23685,
30,
3639,
648,
4629,
26729,
30,
3639,
648,
17187,
30,
3639,
648,
19980,
30,
3639,
648,
2347,
2259,
1268,
30246,
30,
1850,
274,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
2499,
65,
273,
10684,
67,
4507,
31,
1850,
898,
1433,
67,
25,
31,
3639,
289,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
19980,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
22741,
1769,
10792,
10684,
5088,
3784,
18,
542,
5788,
5621,
1850,
898,
31,
3639,
648,
10336,
21398,
30,
1850,
10684,
67,
21224,
67,
2316,
12,
26756,
1769,
10792,
10684,
5088,
3784,
18,
542,
7469,
5621,
1850,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
19071,
797,
6094,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
19071,
797,
6094,
1195,
225,
9183,
8649,
797,
6094,
10684,
5088,
3784,
273,
394,
9183,
8649,
797,
6094,
12,
2211,
16,
804,
46,
56,
5407,
882,
2056,
5237,
23956,
985,
2689,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
1433,
67,
25,
30,
1377,
1323,
261,
3767,
13,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
10336,
21398,
30,
3639,
648,
2
] |
if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; | if(header[pos + i] == 0) { break; } if(header[pos + i] == ' ') { continue; } | TarEntry getNextEntryInternal() throws TarException, IOException { byte[] header = new byte[512]; int pos = 0; int i; if(firstEntry != null) { TarEntry entryReturn = firstEntry; firstEntry = null; return entryReturn; } while(nextEntry > 0) { long ret = in.skip(nextEntry); if(ret < 0) { throw new IOException("early end of stream"); //$NON-NLS-1$ } nextEntry -= ret; bytesread += ret; } int bytestoread = 512; while(bytestoread > 0) { int ret = super.read(header, 512 - bytestoread, bytestoread); if( ret < 0 ) { throw new IOException("early end of stream"); //$NON-NLS-1$ } bytestoread -= ret; bytesread += ret; } // If we have a header of all zeros, this marks the end of the file. if(headerChecksum(header) == 0) { // We are at the end of the file. if(filepos > 0) { return null; } // Invalid stream. throw new TarException("not in tar format"); //$NON-NLS-1$ } // Validate checksum. if(!isValidTarHeader(header)) { throw new TarException("not in tar format"); //$NON-NLS-1$ } while (pos < 100 && header[pos] != 0) pos++; String name = new String(header, 0, pos, "UTF8"); //$NON-NLS-1$ // Prepend the prefix here. pos = 345; if(header[pos] != 0) { while (pos < 500 && header[pos] != 0) pos++; String prefix = new String(header, 345, pos - 345, "UTF8"); //$NON-NLS-1$ name = prefix + "/" + name; //$NON-NLS-1$ } TarEntry entry; if(longLinkName != null) { entry = new TarEntry(longLinkName, filepos); longLinkName = null; } else { entry = new TarEntry(name, filepos); } if(header[156] != 0) { entry.setFileType(header[156]); } pos = 100; StringBuffer mode = new StringBuffer(); for(i = 0; i < 8; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; mode.append((char) header[pos + i]); } if(mode.length() > 0 && mode.charAt(0) != '0') mode.insert(0, '0'); try { long fileMode = Long.decode(mode.toString()).longValue(); entry.setMode(fileMode); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } pos = 100 + 24; StringBuffer size = new StringBuffer(); for(i = 0; i < 12; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; size.append((char) header[pos + i]); } if(size.charAt(0) != '0') size.insert(0, '0'); int fileSize; try { fileSize = Integer.decode(size.toString()).intValue(); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } entry.setSize(fileSize); nextEOF = fileSize; if(fileSize % 512 > 0) { nextEntry = fileSize + (512 - (fileSize % 512)); } else { nextEntry = fileSize; } filepos += (nextEntry + 512); return entry; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TarInputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
277,
31,
202,
202,
430,
12,
3645,
1622,
480,
446,
13,
288,
1082,
202,
20464,
1622,
1241,
990,
273,
1122,
1622,
31,
1082,
202,
3645,
1622,
273,
446,
31,
1082,
202,
2463,
1241,
990,
31,
202,
202,
97,
202,
202,
17523,
12,
4285,
1622,
405,
374,
13,
288,
1082,
202,
5748,
325,
273,
316,
18,
7457,
12,
4285,
1622,
1769,
1082,
202,
430,
12,
1349,
411,
374,
13,
288,
9506,
202,
12849,
394,
1860,
2932,
2091,
715,
679,
434,
1407,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
4285,
1622,
3947,
325,
31,
1082,
202,
3890,
896,
1011,
325,
31,
202,
202,
97,
202,
202,
474,
635,
3813,
479,
361,
273,
13908,
31,
202,
202,
17523,
12,
1637,
3813,
479,
361,
405,
374,
13,
288,
1082,
202,
474,
325,
273,
2240,
18,
896,
12,
3374,
16,
13908,
300,
635,
3813,
479,
361,
16,
635,
3813,
479,
361,
1769,
1082,
202,
430,
12,
325,
411,
374,
262,
288,
9506,
202,
12849,
394,
1860,
2932,
2091,
715,
679,
434,
1407,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
1082,
202,
1637,
3813,
479,
361,
3947,
325,
31,
1082,
202,
3890,
896,
1011,
325,
31,
202,
202,
97,
202,
202,
759,
971,
732,
1240,
279,
1446,
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,
225,
202,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
277,
31,
202,
202,
430,
12,
3645,
1622,
480,
446,
13,
288,
1082,
202,
20464,
1622,
1241,
990,
273,
1122,
1622,
31,
1082,
202,
3645,
1622,
273,
446,
31,
1082,
202,
2463,
1241,
990,
31,
202,
202,
97,
202,
202,
17523,
12,
4285,
1622,
405,
374,
13,
288,
1082,
202,
5748,
325,
273,
316,
18,
7457,
12,
4285,
1622,
1769,
1082,
202,
430,
12,
1349,
411,
374,
13,
288,
9506,
202,
12849,
394,
1860,
2932,
2091,
715,
679,
434,
1407,
8863,
4329,
3993,
17,
2
] |
+ " " + finally_pc); pc += 4; | + " " + finally_pc + " " +with_depth); pc += 6; | private static void dumpICode(InterpreterData idata) { if (Context.printICode) { try { int iCodeLength = idata.itsICodeTop; byte iCode[] = idata.itsICode; String[] strings = idata.itsStringTable; out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("ICode dump, for " + idata.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + idata.itsMaxStack); for (int pc = 0; pc < iCodeLength; ) { out.print("[" + pc + "] "); int token = iCode[pc] & 0xff; String tname = icodeToName(token); int old_pc = pc; ++pc; int icodeLength = icodeTokenLength(token); switch (token) { default: if (icodeLength != 1) Context.codeBug(); out.println(tname); break; case GOSUB : case TokenStream.GOTO : case TokenStream.IFEQ : case TokenStream.IFNE : { int newPC = getTarget(iCode, pc); out.println(tname + " " + newPC); pc += 2; break; } case TokenStream.TRY : { int catch_offset = getShort(iCode, pc); int finally_offset = getShort(iCode, pc + 2); int catch_pc = (catch_offset == 0) ? -1 : pc - 1 + catch_offset; int finally_pc = (finally_offset == 0) ? -1 : pc - 1 + finally_offset; out.println(tname + " " + catch_pc + " " + finally_pc); pc += 4; break; } case RETSUB : case TokenStream.ENUMINIT : case TokenStream.ENUMNEXT : case TokenStream.VARINC : case TokenStream.VARDEC : case TokenStream.GETVAR : case TokenStream.SETVAR : case TokenStream.NEWTEMP : case TokenStream.USETEMP : { int slot = (iCode[pc] & 0xFF); out.println(tname + " " + slot); pc++; break; } case TokenStream.CALLSPECIAL : { int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int line = getShort(iCode, pc+2); String source = strings[getIndex(iCode, pc + 4)]; int count = getIndex(iCode, pc + 6); out.println(tname + " " + callType + " " + isNew + " " + count + " " + line + " " + source); pc += 8; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc); Object regexp = idata.itsRegExpLiterals[i]; out.println(tname + " " + regexp); pc += 2; break; } case TokenStream.CLOSURE : { int i = getIndex(iCode, pc); InterpreterData data2 = idata.itsNestedFunctions[i]; out.println(tname + " " + data2); pc += 2; break; } case TokenStream.NEW : case TokenStream.CALL : { int count = getIndex(iCode, pc + 2); String name = strings[getIndex(iCode, pc)]; out.println(tname + " " + count + " \"" + name + '"'); pc += 4; break; } case SHORTNUMBER_ICODE : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; break; } case INTNUMBER_ICODE : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; break; } case TokenStream.NUMBER : { int index = getIndex(iCode, pc); double value = idata.itsDoubleTable[index]; out.println(tname + " " + value); pc += 2; break; } case TokenStream.TYPEOFNAME : case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.SETNAME : case TokenStream.NAME : case TokenStream.NAMEINC : case TokenStream.NAMEDEC : case TokenStream.STRING : { String str = strings[getIndex(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 2; break; } case LINE_ICODE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } } if (old_pc + icodeLength != pc) Context.codeBug(); } out.close(); } catch (IOException x) {} } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/7625f8b5192375fcb45891d89875d1bc26d2561d/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
288,
3639,
309,
261,
1042,
18,
1188,
45,
1085,
13,
288,
5411,
775,
288,
7734,
509,
277,
1085,
1782,
273,
612,
396,
18,
1282,
45,
1085,
3401,
31,
7734,
1160,
277,
1085,
8526,
273,
612,
396,
18,
1282,
45,
1085,
31,
7734,
514,
8526,
2064,
273,
612,
396,
18,
1282,
780,
1388,
31,
7734,
596,
273,
394,
14071,
12,
2704,
12942,
2932,
3487,
18,
5830,
3113,
638,
10019,
7734,
596,
18,
8222,
2932,
45,
1085,
4657,
16,
364,
315,
397,
612,
396,
18,
1282,
461,
18701,
397,
3104,
769,
273,
315,
397,
277,
1085,
1782,
1769,
7734,
596,
18,
8222,
2932,
2747,
2624,
273,
315,
397,
612,
396,
18,
1282,
2747,
2624,
1769,
7734,
364,
261,
474,
6125,
273,
374,
31,
6125,
411,
277,
1085,
1782,
31,
262,
288,
10792,
596,
18,
1188,
2932,
9614,
397,
6125,
397,
9850,
315,
1769,
10792,
509,
1147,
273,
277,
1085,
63,
2436,
65,
473,
374,
5297,
31,
10792,
514,
27829,
273,
277,
710,
774,
461,
12,
2316,
1769,
10792,
509,
1592,
67,
2436,
273,
6125,
31,
10792,
965,
2436,
31,
10792,
509,
277,
710,
1782,
273,
277,
710,
1345,
1782,
12,
2316,
1769,
10792,
1620,
261,
2316,
13,
288,
13491,
805,
30,
18701,
309,
261,
3487,
1782,
480,
404,
13,
1772,
18,
710,
19865,
5621,
18701,
596,
18,
8222,
12,
88,
529,
1769,
18701,
898,
31,
13491,
648,
611,
4618,
3457,
294,
13491,
648,
3155,
1228,
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,
760,
918,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
288,
3639,
309,
261,
1042,
18,
1188,
45,
1085,
13,
288,
5411,
775,
288,
7734,
509,
277,
1085,
1782,
273,
612,
396,
18,
1282,
45,
1085,
3401,
31,
7734,
1160,
277,
1085,
8526,
273,
612,
396,
18,
1282,
45,
1085,
31,
7734,
514,
8526,
2064,
273,
612,
396,
18,
1282,
780,
1388,
31,
7734,
596,
273,
394,
14071,
12,
2704,
12942,
2932,
3487,
18,
5830,
3113,
638,
10019,
7734,
596,
18,
8222,
2932,
45,
1085,
4657,
16,
364,
315,
397,
612,
396,
18,
1282,
461,
18701,
397,
3104,
769,
273,
315,
397,
277,
1085,
1782,
1769,
7734,
596,
18,
8222,
2932,
2747,
2624,
273,
315,
397,
2
] |
if (jj_scan_token(ASSIGN)) return true; | if (jj_scan_token(SC_OR)) return true; if (jj_3R_194()) return true; | final private boolean jj_3R_235() { if (jj_scan_token(ASSIGN)) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30803,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2312,
67,
916,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
15613,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30803,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2312,
67,
916,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
15613,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bridgeBidPanel.addBid(bidder, bid); } | public void run() { if (bridgeBidPanel == null) { bridgeBidPanel = new BridgeBidPanel(card_client .get_num_players()); bridgeBidPanel.addActionListener(GamePanel.this); table.add(bridgeBidPanel, new TableConstraints( TableConstraints.BUTTON_PANEL)); table.invalidate(); table.validate(); } bridgeBidPanel.addBid(bidder, bid); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/d041db836ca7f8578036f612f625c2a05db70fad/GamePanel.java/buggy/playground/ggz-java5/src/ggz/cards/GamePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
309,
261,
18337,
17763,
5537,
422,
446,
13,
288,
13491,
10105,
17763,
5537,
273,
394,
24219,
17763,
5537,
12,
3327,
67,
2625,
27573,
263,
588,
67,
2107,
67,
1601,
414,
10663,
13491,
10105,
17763,
5537,
18,
1289,
1803,
2223,
12,
12496,
5537,
18,
2211,
1769,
13491,
1014,
18,
1289,
12,
18337,
17763,
5537,
16,
394,
3555,
4878,
12,
27573,
3555,
4878,
18,
20068,
67,
30819,
2247,
10019,
13491,
1014,
18,
5387,
340,
5621,
13491,
1014,
18,
5662,
5621,
10792,
289,
10792,
10105,
17763,
5537,
18,
1289,
17763,
12,
19773,
765,
16,
9949,
1769,
7734,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
309,
261,
18337,
17763,
5537,
422,
446,
13,
288,
13491,
10105,
17763,
5537,
273,
394,
24219,
17763,
5537,
12,
3327,
67,
2625,
27573,
263,
588,
67,
2107,
67,
1601,
414,
10663,
13491,
10105,
17763,
5537,
18,
1289,
1803,
2223,
12,
12496,
5537,
18,
2211,
1769,
13491,
1014,
18,
1289,
12,
18337,
17763,
5537,
16,
394,
3555,
4878,
12,
27573,
3555,
4878,
18,
20068,
67,
30819,
2247,
10019,
13491,
1014,
18,
5387,
340,
5621,
13491,
1014,
18,
5662,
5621,
10792,
289,
10792,
10105,
17763,
5537,
18,
1289,
17763,
12,
19773,
765,
16,
9949,
1769,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
Policy policy = PolicyEngine.getPolicy(element); | Policy policy = PolicyEngine.getPolicy(element.getFirstElement()); | public Assertion build(OMElement element, AssertionBuilderFactory factory) throws IllegalArgumentException { SymmetricBinding symmetricBinding = new SymmetricBinding(); Policy policy = PolicyEngine.getPolicy(element); policy = (Policy) policy.normalize(false); for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) { processAlternatives((List) iterator.next(), symmetricBinding); /* * since there should be only one alternative .. */ break; } return symmetricBinding; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2a5ba4ec18e8e760a63eac472351a67a530ab5cf/SymmetricBindingBuilder.java/buggy/modules/secpolicy/src/org/apache/ws/secpolicy/builders/SymmetricBindingBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
10042,
6899,
5250,
15108,
5250,
273,
394,
10042,
6899,
5250,
5621,
1171,
7436,
3329,
273,
7436,
4410,
18,
588,
2582,
12,
2956,
18,
588,
3759,
1046,
10663,
3639,
3329,
273,
261,
2582,
13,
3329,
18,
12237,
12,
5743,
1769,
7734,
364,
261,
3198,
2775,
273,
3329,
18,
588,
22111,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
5411,
1207,
22111,
12443,
682,
13,
2775,
18,
4285,
9334,
15108,
5250,
1769,
13491,
1748,
2398,
380,
3241,
1915,
1410,
506,
1338,
1245,
10355,
6116,
2398,
1195,
5411,
898,
31,
540,
289,
3639,
327,
15108,
5250,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
10042,
6899,
5250,
15108,
5250,
273,
394,
10042,
6899,
5250,
5621,
1171,
7436,
3329,
273,
7436,
4410,
18,
588,
2582,
12,
2956,
18,
588,
3759,
1046,
10663,
3639,
3329,
273,
261,
2582,
13,
3329,
18,
12237,
12,
5743,
1769,
7734,
364,
261,
3198,
2775,
273,
3329,
18,
588,
22111,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
5411,
1207,
22111,
12443,
682,
13,
2775,
18,
4285,
9334,
15108,
5250,
1769,
13491,
1748,
2398,
380,
3241,
1915,
1410,
506,
1338,
1245,
10355,
6116,
2398,
1195,
5411,
898,
31,
540,
289,
3639,
327,
15108,
5250,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (nestedMethod[nestedType] == 0) { if (nestedType != 0) { | if (this.nestedMethod[this.nestedType] == 0) { if (this.nestedType != 0) { | protected void consumeClassHeaderName() { // ClassHeaderName ::= Modifiersopt 'class' 'Identifier' TypeDeclaration typeDecl = new TypeDeclaration(this.compilationUnit.compilationResult); if (nestedMethod[nestedType] == 0) { if (nestedType != 0) { typeDecl.bits |= ASTNode.IsMemberTypeMASK; } } else { // Record that the block has a declaration for local types typeDecl.bits |= ASTNode.IsLocalTypeMASK; markEnclosingMemberWithLocalType(); blockReal(); } //highlight the name of the type long pos = identifierPositionStack[identifierPtr]; typeDecl.sourceEnd = (int) pos; typeDecl.sourceStart = (int) (pos >>> 32); typeDecl.name = identifierStack[identifierPtr--]; identifierLengthPtr--; //compute the declaration source too // 'class' and 'interface' push two int positions: the beginning of the class token and its end. // we want to keep the beginning position but get rid of the end position // it is only used for the ClassLiteralAccess positions. typeDecl.declarationSourceStart = intStack[intPtr--]; intPtr--; // remove the end position of the class token typeDecl.modifiersSourceStart = intStack[intPtr--]; typeDecl.modifiers = intStack[intPtr--]; if (typeDecl.modifiersSourceStart >= 0) { typeDecl.declarationSourceStart = typeDecl.modifiersSourceStart; } typeDecl.bodyStart = typeDecl.sourceEnd + 1; pushOnAstStack(typeDecl); listLength = 0; // will be updated when reading super-interfaces // recovery if (currentElement != null){ lastCheckPoint = typeDecl.bodyStart; currentElement = currentElement.add(typeDecl, 0); lastIgnoredToken = -1; } // javadoc typeDecl.javadoc = this.javadoc; this.javadoc = null;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
797,
1864,
461,
1435,
288,
202,
759,
1659,
1864,
461,
493,
33,
3431,
3383,
3838,
296,
1106,
11,
296,
3004,
11,
202,
559,
6094,
618,
3456,
273,
394,
1412,
6094,
12,
2211,
18,
2919,
6613,
2802,
18,
2919,
6613,
1253,
1769,
202,
430,
261,
12985,
1305,
63,
12985,
559,
65,
422,
374,
13,
288,
202,
202,
430,
261,
12985,
559,
480,
374,
13,
288,
1082,
202,
723,
3456,
18,
6789,
5626,
9183,
907,
18,
2520,
4419,
559,
11704,
31,
202,
202,
97,
202,
97,
469,
288,
202,
202,
759,
5059,
716,
326,
1203,
711,
279,
8266,
364,
1191,
1953,
202,
202,
723,
3456,
18,
6789,
5626,
9183,
907,
18,
2520,
2042,
559,
11704,
31,
202,
202,
3355,
21594,
4419,
1190,
2042,
559,
5621,
202,
202,
2629,
6955,
5621,
202,
97,
202,
759,
15978,
326,
508,
434,
326,
618,
202,
5748,
949,
273,
2756,
2555,
2624,
63,
5644,
5263,
15533,
202,
723,
3456,
18,
3168,
1638,
273,
261,
474,
13,
949,
31,
202,
723,
3456,
18,
3168,
1685,
273,
261,
474,
13,
261,
917,
4080,
3847,
1769,
202,
723,
3456,
18,
529,
273,
2756,
2624,
63,
5644,
5263,
413,
15533,
202,
5644,
1782,
5263,
413,
31,
202,
759,
9200,
326,
8266,
1084,
4885,
202,
759,
296,
1106,
11,
471,
296,
5831,
11,
1817,
2795,
509,
6865,
30,
326,
8435,
434,
326,
667,
1147,
471,
2097,
679,
18,
202,
759,
732,
2545,
358,
3455,
326,
8435,
1754,
1496,
336,
10911,
434,
326,
679,
1754,
202,
759,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
797,
1864,
461,
1435,
288,
202,
759,
1659,
1864,
461,
493,
33,
3431,
3383,
3838,
296,
1106,
11,
296,
3004,
11,
202,
559,
6094,
618,
3456,
273,
394,
1412,
6094,
12,
2211,
18,
2919,
6613,
2802,
18,
2919,
6613,
1253,
1769,
202,
430,
261,
12985,
1305,
63,
12985,
559,
65,
422,
374,
13,
288,
202,
202,
430,
261,
12985,
559,
480,
374,
13,
288,
1082,
202,
723,
3456,
18,
6789,
5626,
9183,
907,
18,
2520,
4419,
559,
11704,
31,
202,
202,
97,
202,
97,
469,
288,
202,
202,
759,
5059,
716,
326,
1203,
711,
279,
8266,
364,
1191,
1953,
202,
202,
723,
3456,
18,
6789,
5626,
9183,
907,
18,
2520,
2042,
559,
11704,
31,
202,
202,
2
] |
String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); | String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); | public void testXmlPageLocaleAccess() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-2.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); List locales; locales = page.getLocales("body"); assertEquals(2, locales.size()); assertTrue(locales.contains(Locale.ENGLISH)); assertTrue(locales.contains(Locale.GERMAN)); locales = page.getLocales("body2"); assertEquals(1, locales.size()); assertTrue(locales.contains(Locale.ENGLISH)); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsXmlPage.java/buggy/test/org/opencms/xml/page/TestCmsXmlPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4432,
1964,
3916,
1862,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
16084,
1964,
1363,
31,
3639,
514,
913,
31,
1171,
913,
273,
28118,
1304,
18,
896,
812,
2932,
3341,
19,
556,
14645,
19,
2902,
19,
2433,
19,
2902,
2433,
17,
22,
18,
2902,
3113,
6380,
28,
1769,
7734,
1363,
273,
16084,
1964,
1733,
18,
318,
3108,
12,
1745,
16,
6380,
28,
16,
5039,
1769,
3639,
987,
6922,
31,
7734,
6922,
273,
1363,
18,
588,
13310,
2932,
3432,
8863,
3639,
1815,
8867,
12,
22,
16,
6922,
18,
1467,
10663,
3639,
1815,
5510,
12,
22638,
18,
12298,
12,
3916,
18,
16324,
13462,
10019,
3639,
1815,
5510,
12,
22638,
18,
12298,
12,
3916,
18,
3101,
9560,
10019,
3639,
6922,
273,
1363,
18,
588,
13310,
2932,
3432,
22,
8863,
3639,
1815,
8867,
12,
21,
16,
6922,
18,
1467,
10663,
3639,
1815,
5510,
12,
22638,
18,
12298,
12,
3916,
18,
16324,
13462,
10019,
565,
289,
377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4432,
1964,
3916,
1862,
1435,
1216,
1185,
288,
13491,
368,
752,
279,
3167,
1522,
5039,
3639,
16084,
1943,
4301,
5039,
273,
394,
16084,
1943,
4301,
12,
2011,
1769,
7734,
16084,
1964,
1363,
31,
3639,
514,
913,
31,
1171,
913,
273,
28118,
1304,
18,
896,
812,
2932,
3341,
19,
556,
14645,
19,
2902,
19,
2433,
19,
2902,
2433,
17,
22,
18,
2902,
3113,
6380,
28,
1769,
7734,
1363,
273,
16084,
1964,
1733,
18,
318,
3108,
12,
1745,
16,
6380,
28,
16,
5039,
1769,
3639,
987,
6922,
31,
7734,
6922,
273,
1363,
18,
588,
13310,
2932,
3432,
8863,
3639,
1815,
8867,
12,
22,
16,
6922,
18,
1467,
10663,
3639,
1815,
5510,
12,
22638,
18,
12298,
12,
3916,
2
] |
endIndex = text.indexOf('}', startIndex); if (endIndex < 0) { endIndex = startIndex; | endIndex = startIndex; int nestedBrackets = 0; while (text.length() > endIndex) { final char ch = text.charAt(endIndex); if (ch == '}') { if (nestedBrackets == 0) { break; } --nestedBrackets; } else if (ch == '{') { ++nestedBrackets; } ++endIndex; | private void getXmlElementReferences(final XmlElement element, final List<PsiReference> refs, final AntStructuredElement antElement) { if (element == null) return; final String text = element.getText(); final int offsetInPosition = element.getTextRange().getStartOffset() - antElement.getTextRange().getStartOffset(); int startIndex; int endIndex = -1; while ((startIndex = text.indexOf("@{", endIndex + 1)) > endIndex) { startIndex += 2; endIndex = text.indexOf('}', startIndex); if (endIndex < 0) { endIndex = startIndex; } if (endIndex >= startIndex) { final String name = text.substring(startIndex, endIndex); refs.add(new AntMacroDefParameterReference(this, antElement, name, new TextRange(offsetInPosition + startIndex, offsetInPosition + endIndex), element)); } } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7f7dc32cdeec2e71c61bbeef27d5ce51671ab917/AntMacroDefParameterReferenceProvider.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/providers/AntMacroDefParameterReferenceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
28504,
1046,
8221,
12,
6385,
15412,
930,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
16,
727,
18830,
30733,
1046,
17841,
1046,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327,
31,
565,
727,
514,
977,
273,
930,
18,
588,
1528,
5621,
565,
727,
509,
1384,
382,
2555,
273,
930,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
300,
17841,
1046,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
5621,
565,
509,
10588,
31,
565,
509,
13818,
273,
300,
21,
31,
565,
1323,
14015,
1937,
1016,
273,
977,
18,
31806,
2932,
36,
95,
3113,
13818,
397,
404,
3719,
405,
13818,
13,
288,
1377,
10588,
1011,
576,
31,
1377,
13818,
273,
977,
18,
31806,
2668,
24259,
10588,
1769,
1377,
309,
261,
409,
1016,
411,
374,
13,
288,
3639,
13818,
273,
10588,
31,
1377,
289,
1377,
309,
261,
409,
1016,
1545,
10588,
13,
288,
3639,
727,
514,
508,
273,
977,
18,
28023,
12,
1937,
1016,
16,
13818,
1769,
3639,
9047,
18,
1289,
12,
2704,
18830,
17392,
3262,
1662,
2404,
12,
2211,
16,
17841,
1046,
16,
508,
16,
4766,
10402,
394,
3867,
2655,
12,
3348,
382,
2555,
397,
10588,
16,
1384,
382,
2555,
397,
13818,
3631,
930,
10019,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
28504,
1046,
8221,
12,
6385,
15412,
930,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
16,
727,
18830,
30733,
1046,
17841,
1046,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327,
31,
565,
727,
514,
977,
273,
930,
18,
588,
1528,
5621,
565,
727,
509,
1384,
382,
2555,
273,
930,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
300,
17841,
1046,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
5621,
565,
509,
10588,
31,
565,
509,
13818,
273,
300,
21,
31,
565,
1323,
14015,
1937,
1016,
273,
977,
18,
31806,
2932,
36,
95,
3113,
13818,
397,
404,
3719,
405,
13818,
13,
288,
1377,
10588,
1011,
576,
31,
1377,
13818,
273,
977,
18,
31806,
2
] |
log.info(this + " started"); | log.info(this + " started, fullSize=" + fullSize + ", pageSize=" + pageSize + ", downCacheSize=" + downCacheSize); | public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateException( "The " + (isQueue() ? "queue" : "topic") + " " + "name was not properly set in the service's" + "ObjectName"); } ServerPeer serverPeer = (ServerPeer)server.getAttribute(serverPeerObjectName, "Instance"); dm = serverPeer.getDestinationManager(); sm = serverPeer.getSecurityManager(); cm = serverPeer.getChannelMapperDelegate(); jndiName = dm.registerDestination(isQueue(), name, jndiName, securityConfig); cm.deployCoreDestination(isQueue(), name, serverPeer.getMessageStoreDelegate(), serverPeer.getPersistenceManagerDelegate(), fullSize, pageSize, downCacheSize); log.info(this + " started"); } catch (Exception e) { log.error("Failed to start service", e); throw e; } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7133c9662c41fb385b863c92214187907f2d1b0/DestinationServiceSupport.java/buggy/src/main/org/jboss/jms/server/destination/DestinationServiceSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
787,
1179,
1435,
1216,
1185,
282,
288,
1377,
775,
1377,
288,
540,
5746,
273,
638,
31,
5411,
309,
261,
15423,
480,
446,
13,
540,
288,
5411,
508,
273,
6773,
18,
588,
653,
1396,
2932,
529,
8863,
540,
289,
5411,
309,
261,
529,
422,
446,
747,
508,
18,
2469,
1435,
422,
374,
13,
540,
288,
5411,
604,
394,
5477,
12,
315,
1986,
315,
397,
261,
291,
3183,
1435,
692,
315,
4000,
6,
294,
315,
10476,
7923,
397,
315,
315,
397,
4766,
2398,
315,
529,
1703,
486,
8214,
444,
316,
326,
1156,
1807,
6,
397,
4766,
2398,
315,
16707,
8863,
540,
289,
5411,
3224,
6813,
1438,
6813,
273,
261,
2081,
6813,
13,
3567,
18,
588,
1499,
12,
3567,
6813,
16707,
16,
315,
1442,
8863,
540,
9113,
273,
1438,
6813,
18,
588,
5683,
1318,
5621,
540,
3029,
273,
1438,
6813,
18,
588,
4368,
1318,
5621,
540,
5003,
273,
1438,
6813,
18,
588,
2909,
4597,
9586,
5621,
5411,
31100,
273,
9113,
18,
4861,
5683,
12,
291,
3183,
9334,
508,
16,
31100,
16,
4373,
809,
1769,
540,
5003,
18,
12411,
4670,
5683,
12,
291,
3183,
9334,
508,
16,
1438,
6813,
18,
24906,
2257,
9586,
9334,
21394,
1438,
6813,
18,
588,
13182,
1318,
9586,
9334,
1983,
1225,
16,
21394,
13387,
16,
2588,
24019,
1769,
540,
613,
18,
1376,
12,
2211,
397,
315,
5746,
16,
1983,
1225,
1546,
397,
1983,
1225,
397,
3104,
13387,
1546,
397,
13387,
397,
3104,
2588,
24019,
1546,
397,
2588,
24019,
1769,
1377,
289,
1377,
1044,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
787,
1179,
1435,
1216,
1185,
282,
288,
1377,
775,
1377,
288,
540,
5746,
273,
638,
31,
5411,
309,
261,
15423,
480,
446,
13,
540,
288,
5411,
508,
273,
6773,
18,
588,
653,
1396,
2932,
529,
8863,
540,
289,
5411,
309,
261,
529,
422,
446,
747,
508,
18,
2469,
1435,
422,
374,
13,
540,
288,
5411,
604,
394,
5477,
12,
315,
1986,
315,
397,
261,
291,
3183,
1435,
692,
315,
4000,
6,
294,
315,
10476,
7923,
397,
315,
315,
397,
4766,
2398,
315,
529,
1703,
486,
8214,
444,
316,
326,
1156,
1807,
6,
397,
4766,
2398,
315,
16707,
8863,
540,
289,
5411,
3224,
6813,
1438,
6813,
273,
261,
2081,
6813,
13,
3567,
18,
588,
1499,
12,
2
] |
ObjectReference nextRef = TraceInterface.getLink(thisRef); | ObjectReference nextRef = TraceInterface.getLink(thisRef); | private final static void findDeaths() { /* Only the merlin analysis needs to compute death times */ if (MERLIN_ANALYSIS) { /* Start with an empty stack. */ if (Assert.VERIFY_ASSERTIONS) Assert._assert(worklist.isEmpty()); /* Scan the linked list of objects within each region */ for (int allocator = 0; allocator < ALLOCATORS; allocator++) { ObjectReference thisRef = objectLinks.get(allocator); /* Start at the top of each linked list */ while (!thisRef.isNull()) { /* Add the unreachable objects onto the worklist. */ if (!Plan.getInstance().isReachable(thisRef)) worklist.push(thisRef); thisRef = TraceInterface.getLink(thisRef); } } /* Sort the objects on the worklist by their timestamp */ worklist.sort(); /* Now compute the death times. */ computeTransitiveClosure(); } /* Output the death times for each object */ for (int allocator = 0; allocator < ALLOCATORS; allocator++) { ObjectReference thisRef = objectLinks.get(allocator); ObjectReference prevRef = ObjectReference.nullReference(); // the last live object seen while (!thisRef.isNull()) { ObjectReference nextRef = TraceInterface.getLink(thisRef); /* Maintain reachable objects on the linked list of allocated objects */ if (Plan.getInstance().isReachable(thisRef)) { thisRef = Plan.followObject(thisRef); TraceInterface.setLink(thisRef, prevRef); prevRef = thisRef; } else { /* For brute force lifetime analysis, objects become unreachable "now" */ Word deadTime; if (MERLIN_ANALYSIS) deadTime = TraceInterface.getDeathTime(thisRef); else deadTime = lastGC; /* Add the death record to the trace for unreachable objects. */ trace.push(TRACE_DEATH); trace.push(TraceInterface.getOID(thisRef)); trace.push(deadTime); } thisRef = nextRef; } /* Purge the list of unreachable objects... */ objectLinks.set(allocator, prevRef); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9232c996b259f69154b495f6df0a9c0d44e630e0/TraceGenerator.java/clean/MMTk/src/org/mmtk/utility/TraceGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
760,
918,
1104,
758,
421,
87,
1435,
288,
565,
1748,
5098,
326,
4045,
7511,
6285,
4260,
358,
3671,
443,
421,
4124,
1195,
565,
309,
261,
20969,
20663,
67,
1258,
19448,
15664,
13,
288,
1377,
1748,
3603,
598,
392,
1008,
2110,
18,
1195,
1377,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
1252,
1098,
18,
291,
1921,
10663,
1377,
1748,
8361,
326,
8459,
666,
434,
2184,
3470,
1517,
3020,
1195,
1377,
364,
261,
474,
26673,
273,
374,
31,
26673,
411,
7981,
29450,
3575,
55,
31,
26673,
27245,
288,
202,
22101,
333,
1957,
273,
733,
7100,
18,
588,
12,
9853,
639,
1769,
202,
20308,
3603,
622,
326,
1760,
434,
1517,
8459,
666,
1195,
202,
17523,
16051,
2211,
1957,
18,
291,
2041,
10756,
288,
202,
225,
1748,
1436,
326,
25132,
2184,
10170,
326,
1440,
1098,
18,
1195,
202,
225,
309,
16051,
5365,
18,
588,
1442,
7675,
291,
26136,
429,
12,
2211,
1957,
3719,
202,
565,
1440,
1098,
18,
6206,
12,
2211,
1957,
1769,
202,
225,
333,
1957,
273,
2677,
1358,
18,
588,
2098,
12,
2211,
1957,
1769,
202,
97,
1377,
289,
1377,
1748,
5928,
326,
2184,
603,
326,
1440,
1098,
635,
3675,
2858,
1195,
1377,
1440,
1098,
18,
3804,
5621,
1377,
1748,
4494,
3671,
326,
443,
421,
4124,
18,
1195,
1377,
3671,
1429,
3720,
10573,
5621,
565,
289,
565,
1748,
3633,
326,
443,
421,
4124,
364,
1517,
733,
1195,
565,
364,
261,
474,
26673,
273,
374,
31,
26673,
411,
7981,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
760,
918,
1104,
758,
421,
87,
1435,
288,
565,
1748,
5098,
326,
4045,
7511,
6285,
4260,
358,
3671,
443,
421,
4124,
1195,
565,
309,
261,
20969,
20663,
67,
1258,
19448,
15664,
13,
288,
1377,
1748,
3603,
598,
392,
1008,
2110,
18,
1195,
1377,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
1252,
1098,
18,
291,
1921,
10663,
1377,
1748,
8361,
326,
8459,
666,
434,
2184,
3470,
1517,
3020,
1195,
1377,
364,
261,
474,
26673,
273,
374,
31,
26673,
411,
7981,
29450,
3575,
55,
31,
26673,
27245,
288,
202,
22101,
333,
1957,
273,
733,
7100,
18,
588,
12,
9853,
639,
1769,
202,
20308,
3603,
622,
326,
1760,
434,
1517,
8459,
2
] |
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); | df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } | public static Timestamp toTimestamp(String s, ResultSet resultSet) throws SQLException { if (s == null) return null; // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects synchronized (resultSet) { SimpleDateFormat df = null; // If first time, create the buffer, otherwise clear it. if (resultSet.sbuf == null) resultSet.sbuf = new StringBuffer(); else resultSet.sbuf.setLength(0); // Copy s into sbuf for parsing. resultSet.sbuf.append(s); if (s.length() > 19) { // The len of the ISO string to the second value is 19 chars. If // greater then 19, there should be tz info and perhaps fractional // second info which we need to change to java to read it. // cut the copy to second value "2001-12-07 16:29:22" int i = 19; resultSet.sbuf.setLength(i); char c = s.charAt(i++); if (c == '.') { // Found a fractional value. Append up to 3 digits including // the leading '.' do { if (i < 24) resultSet.sbuf.append(c); c = s.charAt(i++); } while (Character.isDigit(c)); // If there wasn't at least 3 digits we should add some zeros // to make up the 3 digits we tell java to expect. for (int j = i; j < 24; j++) resultSet.sbuf.append('0'); } else { // No fractional seconds, lets add some. resultSet.sbuf.append(".000"); } // prepend the GMT part and then add the remaining bit of // the string. resultSet.sbuf.append(" GMT"); resultSet.sbuf.append(c); resultSet.sbuf.append(s.substring(i, s.length())); // Lastly, if the tz part doesn't specify the :MM part then // we add ":00" for java. if (s.length() - i < 5) resultSet.sbuf.append(":00"); // we'll use this dateformat string to parse the result. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else if (s.length() == 19) { // No tz or fractional second info. // I'm not sure if it is // possible to have a string in this format, as pg // should give us tz qualified timestamps back, but it was // in the old code, so I'm handling it for now. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { // We must just have a date. This case is // needed if this method is called on a date // column df = new SimpleDateFormat("yyyy-MM-dd"); } try { // All that's left is to parse the string and return the ts. return new Timestamp(df.parse(resultSet.sbuf.toString()).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/8f83590aa18ed5416b094225fe46b1e0611569e3/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
2088,
694,
13,
202,
202,
95,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
759,
971,
1122,
813,
16,
752,
326,
1613,
16,
3541,
2424,
518,
18,
1082,
202,
430,
261,
2088,
694,
18,
87,
4385,
422,
446,
13,
9506,
202,
2088,
694,
18,
87,
4385,
273,
394,
6674,
5621,
1082,
202,
12107,
9506,
202,
2088,
694,
18,
87,
4385,
18,
542,
1782,
12,
20,
1769,
1082,
202,
759,
5631,
272,
1368,
2393,
696,
364,
5811,
18,
1082,
202,
2088,
694,
18,
87,
4385,
18,
6923,
12,
87,
1769,
1082,
202,
430,
261,
87,
18,
2469,
1435,
405,
5342,
13,
1082,
202,
95,
9506,
202,
759,
1021,
562,
434,
326,
9351,
533,
358,
326,
2205,
460,
353,
5342,
5230,
18,
971,
9506,
202,
759,
6802,
1508,
5342,
16,
1915,
1410,
506,
6016,
1123,
471,
26282,
20462,
9506,
202,
759,
2205,
1123,
1492,
732,
1608,
358,
2549,
358,
2252,
358,
855,
518,
18,
9506,
202,
759,
6391,
326,
1610,
358,
2205,
460,
315,
6976,
21,
17,
2138,
17,
8642,
2872,
30,
5540,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
2088,
694,
13,
202,
202,
95,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
759,
971,
1122,
813,
16,
752,
326,
1613,
16,
3541,
2424,
518,
18,
1082,
202,
430,
261,
2088,
694,
18,
87,
4385,
422,
446,
13,
9506,
202,
2088,
694,
2
] |
return Field.getSQLType( getBaseTypeName() ); | return conn.getSQLType(getBaseTypeName()); | public int getBaseType() throws SQLException { return Field.getSQLType( getBaseTypeName() ); } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/76a6da8a1b01e23091da65f5e167d67f5274d740/Array.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8297,
559,
1435,
1216,
6483,
288,
202,
202,
2463,
2286,
18,
588,
3997,
559,
12,
8297,
7947,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
8297,
559,
1435,
1216,
6483,
288,
202,
202,
2463,
2286,
18,
588,
3997,
559,
12,
8297,
7947,
1435,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws SQLException | private Procedure findCompatibleStoredProcedure( Tds tds, String rawQueryString ) throws SQLException { Procedure procedure = null; int i; procedure = ( Procedure ) tds.procedureCache.get( rawQueryString ); return procedure; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/3395178cc8dfc801b4baece1c3448145ff271621/PreparedStatement_base.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/PreparedStatement_base.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
26639,
1104,
14599,
18005,
17213,
12,
399,
2377,
268,
2377,
16,
514,
1831,
15276,
262,
7734,
288,
3639,
26639,
12131,
273,
446,
31,
3639,
509,
277,
31,
3639,
12131,
273,
261,
26639,
262,
268,
2377,
18,
685,
8153,
1649,
18,
588,
12,
1831,
15276,
11272,
3639,
327,
12131,
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,
3238,
26639,
1104,
14599,
18005,
17213,
12,
399,
2377,
268,
2377,
16,
514,
1831,
15276,
262,
7734,
288,
3639,
26639,
12131,
273,
446,
31,
3639,
509,
277,
31,
3639,
12131,
273,
261,
26639,
262,
268,
2377,
18,
685,
8153,
1649,
18,
588,
12,
1831,
15276,
11272,
3639,
327,
12131,
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
] |
|
return false; | throw new LSException(LSException.SERIALIZE_ERR, DOMMessageFormatter.formatMessage( DOMMessageFormatter.SERIALIZER_DOMAIN, "unsupported-encoding", null)); | public boolean write(Node node, LSOutput destination) throws LSException{ if (node == null) return false; Method getVersion = null; XMLSerializer ser = null; String ver = null; Document fDocument =(node.getNodeType() == Node.DOCUMENT_NODE) ? (Document) node : node.getOwnerDocument(); // this should run under JDK 1.1.8... try { getVersion = fDocument.getClass().getMethod("getXmlVersion", new Class[] {}); if (getVersion != null) { ver = (String) getVersion.invoke(fDocument, null); } } catch (Exception e) { //no way to test the version... //ignore the exception } //determine which serializer to use: if (ver != null && ver.equals("1.1")) { if (xml11Serializer == null) { xml11Serializer = new XML11Serializer(); initSerializer(xml11Serializer); } //copy setting from "main" serializer to XML 1.1 serializer copySettings(serializer, xml11Serializer); ser = xml11Serializer; } else { ser = serializer; } String encoding = null; if ((encoding = destination.getEncoding()) == null) { try { Method getEncoding = fDocument.getClass().getMethod("getActualEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { try { Method getEncoding = fDocument.getClass().getMethod("getXmlEncoding", new Class[] {}); if (getEncoding != null) { encoding = (String) getEncoding.invoke(fDocument, null); } } catch (Exception e) { // ignore the exception } if (encoding == null) { encoding = "UTF-8"; } } } try { prepareForSerialization(ser, node); ser._format.setEncoding(encoding); OutputStream outputStream = destination.getByteStream(); Writer writer = destination.getCharacterStream(); String uri = destination.getSystemId(); if (writer == null) { if (outputStream == null) { if (uri == null) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fType = "no-output-specified"; error.fMessage = "no-output-specified"; error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; ser.fDOMErrorHandler.handleError(error); } throw new LSException(LSException.SERIALIZE_ERR, "no-output-specified"); } else { // URI was specified. Handle relative URIs. String expanded = XMLEntityManager.expandSystemId(uri, null, true); URL url = new URL(expanded != null ? expanded : uri); OutputStream out = null; String protocol = url.getProtocol(); String host = url.getHost(); // Use FileOutputStream if this URI is for a local file. if (protocol.equals("file") && (host == null || host.length() == 0 || host.equals("localhost"))) { // REVISIT: We have to decode %nn sequences. For // now files containing spaces and other characters // which were escaped in the URI will fail. -- mrglavas out = new FileOutputStream(new File(url.getPath())); } // Try to write to some other kind of URI. Some protocols // won't support this, though HTTP should work. else { URLConnection urlCon = url.openConnection(); urlCon.setDoInput(false); urlCon.setDoOutput(true); urlCon.setUseCaches(false); // Enable tunneling. if (urlCon instanceof HttpURLConnection) { // The DOM L3 LS CR says if we are writing to an HTTP URI // it is to be done with an HTTP PUT. HttpURLConnection httpCon = (HttpURLConnection) urlCon; httpCon.setRequestMethod("PUT"); } out = urlCon.getOutputStream(); } ser.setOutputByteStream(out); } } else { // byte stream was specified ser.setOutputByteStream(outputStream); } } else { // character stream is specified ser.setOutputCharStream(writer); } if (node.getNodeType() == Node.DOCUMENT_NODE) ser.serialize((Document) node); else if (node.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) ser.serialize((DocumentFragment) node); else if (node.getNodeType() == Node.ELEMENT_NODE) ser.serialize((Element) node); else return false; } catch( UnsupportedEncodingException ue) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fException = ue; error.fType = "unsupported-encoding"; error.fMessage = ue.getMessage(); error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; ser.fDOMErrorHandler.handleError(error); } return false; } catch (RuntimeException e) { if (e == DOMNormalizer.abort){ // stopped at user request return false; } throw new LSException(LSException.SERIALIZE_ERR, e.toString()); } catch (Exception e) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fException = e; error.fMessage = e.getMessage(); error.fSeverity = DOMError.SEVERITY_ERROR; ser.fDOMErrorHandler.handleError(error); } e.printStackTrace(); throw new LSException(LSException.SERIALIZE_ERR, e.toString()); } return true; } //write | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/a98db6ea80b4d7fed2468673a870d190f30918fc/DOMSerializerImpl.java/buggy/src/org/apache/xml/serialize/DOMSerializerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1045,
12,
907,
756,
16,
29204,
1447,
2929,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
13,
5411,
604,
394,
29204,
503,
12,
3045,
503,
18,
2123,
6365,
15641,
67,
9712,
16,
4703,
1079,
5074,
18,
2139,
1079,
12,
4703,
1079,
5074,
18,
2123,
15154,
654,
67,
18192,
16,
315,
24666,
17,
5999,
3113,
446,
10019,
5397,
2985,
8343,
273,
446,
31,
3639,
3167,
6306,
703,
273,
446,
31,
3639,
514,
1924,
273,
446,
31,
3639,
4319,
284,
2519,
273,
12,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
18450,
67,
8744,
13,
7734,
692,
261,
2519,
13,
756,
7734,
294,
756,
18,
588,
5541,
2519,
5621,
3639,
368,
333,
1410,
1086,
3613,
24387,
404,
18,
21,
18,
28,
2777,
3639,
775,
288,
5411,
8343,
273,
284,
2519,
18,
588,
797,
7675,
588,
1305,
2932,
588,
4432,
1444,
3113,
394,
1659,
8526,
2618,
1769,
5411,
309,
261,
588,
1444,
480,
446,
13,
288,
7734,
1924,
273,
261,
780,
13,
8343,
18,
14407,
12,
74,
2519,
16,
446,
1769,
5411,
289,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
368,
2135,
4031,
358,
1842,
326,
1177,
2777,
5411,
368,
6185,
326,
1520,
3639,
289,
3639,
368,
24661,
1492,
6340,
358,
999,
30,
3639,
309,
261,
502,
480,
446,
597,
1924,
18,
14963,
2932,
21,
18,
21,
6,
3719,
288,
5411,
309,
261,
2902,
2499,
6306,
422,
446,
13,
288,
7734,
2025,
2499,
6306,
273,
394,
3167,
2499,
6306,
5621,
7734,
1208,
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,
1250,
1045,
12,
907,
756,
16,
29204,
1447,
2929,
13,
1216,
29204,
503,
95,
3639,
309,
261,
2159,
422,
446,
13,
5411,
604,
394,
29204,
503,
12,
3045,
503,
18,
2123,
6365,
15641,
67,
9712,
16,
4703,
1079,
5074,
18,
2139,
1079,
12,
4703,
1079,
5074,
18,
2123,
15154,
654,
67,
18192,
16,
315,
24666,
17,
5999,
3113,
446,
10019,
5397,
2985,
8343,
273,
446,
31,
3639,
3167,
6306,
703,
273,
446,
31,
3639,
514,
1924,
273,
446,
31,
3639,
4319,
284,
2519,
273,
12,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
18450,
67,
8744,
13,
7734,
692,
261,
2519,
13,
756,
7734,
294,
756,
18,
588,
5541,
2519,
5621,
3639,
368,
333,
1410,
1086,
3613,
2
] |
minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } | minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } | private void read(DataInputStream in) throws IOException { int i, n; int magic = in.readInt(); if (magic != 0xCAFEBABE) throw new IOException("non class file"); minor = in.readUnsignedShort(); major = in.readUnsignedShort(); constPool = new ConstPool(in); accessFlags = in.readUnsignedShort(); thisClass = in.readUnsignedShort(); constPool.setThisClassInfo(thisClass); superClass = in.readUnsignedShort(); n = in.readUnsignedShort(); if (n == 0) interfaces = null; else { interfaces = new int[n]; for (i = 0; i < n; ++i) interfaces[i] = in.readUnsignedShort(); } ConstPool cp = constPool; n = in.readUnsignedShort(); fields = new ArrayList(); for (i = 0; i < n; ++i) addField0(new FieldInfo(cp, in)); n = in.readUnsignedShort(); methods = new ArrayList(); for (i = 0; i < n; ++i) addMethod0(new MethodInfo(cp, in)); attributes = new LinkedList(); n = in.readUnsignedShort(); for (i = 0; i < n; ++i) addAttribute(AttributeInfo.read(cp, in)); thisclassname = constPool.getClassInfo(thisClass); } | 11369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11369/f5d84c890b70def694dbd2904f1e6d2f7f1b70e3/ClassFile.java/buggy/src/main/javassist/bytecode/ClassFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
855,
12,
751,
4348,
316,
13,
1216,
1860,
288,
3639,
509,
277,
16,
290,
31,
3639,
509,
8146,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
11179,
480,
374,
92,
3587,
8090,
38,
2090,
41,
13,
5411,
604,
394,
1860,
2932,
5836,
667,
585,
8863,
3639,
8439,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
7888,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
1866,
2864,
273,
394,
9333,
2864,
12,
267,
1769,
3639,
2006,
5094,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
333,
797,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
1866,
2864,
18,
542,
2503,
19455,
12,
2211,
797,
1769,
3639,
18846,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
290,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
309,
261,
82,
422,
374,
13,
5411,
7349,
273,
446,
31,
3639,
469,
288,
5411,
7349,
273,
394,
509,
63,
82,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
290,
31,
965,
77,
13,
7734,
7349,
63,
77,
65,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
289,
3639,
9333,
2864,
3283,
273,
1866,
2864,
31,
3639,
290,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
1466,
273,
394,
2407,
5621,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
290,
31,
965,
77,
13,
5411,
11742,
20,
12,
2704,
19723,
12,
4057,
16,
316,
10019,
3639,
290,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
2590,
273,
394,
2407,
5621,
3639,
364,
261,
77,
273,
374,
31,
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,
855,
12,
751,
4348,
316,
13,
1216,
1860,
288,
3639,
509,
277,
16,
290,
31,
3639,
509,
8146,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
11179,
480,
374,
92,
3587,
8090,
38,
2090,
41,
13,
5411,
604,
394,
1860,
2932,
5836,
667,
585,
8863,
3639,
8439,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
7888,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
1866,
2864,
273,
394,
9333,
2864,
12,
267,
1769,
3639,
2006,
5094,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
333,
797,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
1866,
2864,
18,
542,
2503,
19455,
12,
2211,
797,
1769,
3639,
18846,
273,
316,
18,
896,
13290,
4897,
5621,
3639,
290,
2
] |
erase(); } | erase(); } | public void mouseReleased(MouseEvent e) { erase(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/RubberBand.java/buggy/tn5250j/src/org/tn5250j/RubberBand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
1875,
202,
264,
448,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
1875,
202,
264,
448,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
char type = support.read(); char openQuote = type; | char type = support.read(); char openQuote = type; | private int parseQuotation() { char type = support.read(); char openQuote = type; if (Character.isLetterOrDigit(type)) { openQuote = support.read(); } else { type = 'Q'; } if (type == '\0' || openQuote == '\0') { errorHandler.handleError(IErrors.COMPILE_ERROR, support.getPosition(), Messages.getString("unterminated_quoted_string")); //$NON-NLS-1$ return 0; } char closeQuote = openQuote; if (openQuote == '(') { closeQuote = ')'; } else if (openQuote == '[') { closeQuote = ']'; } else if (openQuote == '{') { closeQuote = '}'; } else if (openQuote == '<') { closeQuote = '>'; } else { openQuote = '\0'; } switch (type) { case 'Q' : return parseString('"', closeQuote, openQuote); case 'q' : return parseSingleQuotedString(closeQuote, openQuote); case 'w' : return parseQuotedWords(closeQuote, openQuote); case 'x' : return parseString('`', closeQuote, openQuote); case 'r' : return parseRegexp(closeQuote, openQuote); default : errorHandler.handleError(IErrors.SYNTAX_ERROR, support.getPosition(), Messages.getString("unknown_quotation_type", Character.toString(type))); //$NON-NLS-1$ return 0; } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
723,
3719,
288,
9506,
202,
3190,
10257,
273,
2865,
18,
896,
5621,
1082,
202,
97,
469,
288,
9506,
202,
723,
273,
296,
53,
13506,
1082,
202,
97,
1082,
202,
430,
261,
723,
422,
2337,
20,
11,
747,
1696,
10257,
422,
2337,
20,
6134,
288,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
3589,
16,
2865,
18,
588,
2555,
9334,
4838,
18,
588,
780,
2932,
318,
29133,
67,
15179,
67,
1080,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
374,
31,
1082,
202,
97,
1082,
202,
3001,
1746,
10257,
273,
1696,
10257,
31,
1082,
202,
430,
261,
3190,
10257,
422,
7321,
13,
288,
9506,
202,
4412,
10257,
273,
5777,
31,
1082,
202,
97,
469,
309,
261,
3190,
10257,
422,
8375,
13,
288,
9506,
202,
4412,
10257,
273,
8641,
31,
1082,
202,
97,
469,
309,
261,
3190,
10257,
422,
2292,
6134,
288,
9506,
202,
4412,
10257,
273,
9571,
31,
1082,
202,
97,
469,
309,
261,
3190,
10257,
422,
2368,
6134,
288,
9506,
202,
4412,
10257,
273,
7481,
31,
1082,
202,
97,
469,
288,
9506,
202,
3190,
10257,
273,
2337,
20,
13506,
1082,
202,
97,
1082,
202,
9610,
261,
723,
13,
288,
9506,
202,
3593,
296,
53,
11,
294,
6862,
202,
2463,
23659,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
723,
3719,
288,
9506,
202,
3190,
10257,
273,
2865,
18,
896,
5621,
1082,
202,
97,
469,
288,
9506,
202,
723,
273,
296,
53,
13506,
1082,
202,
97,
1082,
202,
430,
261,
723,
422,
2337,
20,
11,
747,
1696,
10257,
422,
2337,
20,
6134,
288,
9506,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
31075,
900,
67,
3589,
16,
2865,
18,
588,
2555,
9334,
4838,
18,
588,
780,
2932,
318,
29133,
67,
15179,
67,
1080,
7923,
1769,
4329,
3993,
17,
5106,
2
] |
errorOutput.write(msg); errorOutput.write('\n'); | listener.getLogger().println(msg); | public void log(String msg, int msgLevel) { // send error to listener. This seems like the route in which the changelog task // sends output if(msgLevel==org.apache.tools.ant.Project.MSG_ERR) { hadError[0] = true; errorOutput.write(msg); errorOutput.write('\n'); return; } if(debugLogging) { errorOutput.write(msg); errorOutput.write('\n'); } } | 28182 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28182/a80fb9de78ed13c908aabe9162fcfb8ea2e2898e/CVSSCM.java/buggy/core/src/main/java/hudson/scm/CVSSCM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
613,
12,
780,
1234,
16,
509,
1234,
2355,
13,
288,
7734,
368,
1366,
555,
358,
2991,
18,
1220,
12001,
3007,
326,
1946,
316,
1492,
326,
21182,
1562,
7734,
368,
9573,
876,
7734,
309,
12,
3576,
2355,
631,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4109,
18,
11210,
67,
9712,
13,
288,
10792,
9323,
668,
63,
20,
65,
273,
638,
31,
10792,
555,
1447,
18,
2626,
12,
3576,
1769,
10792,
555,
1447,
18,
2626,
2668,
64,
82,
8284,
10792,
327,
31,
7734,
289,
7734,
309,
12,
4148,
7735,
13,
288,
10792,
555,
1447,
18,
2626,
12,
3576,
1769,
10792,
555,
1447,
18,
2626,
2668,
64,
82,
8284,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
613,
12,
780,
1234,
16,
509,
1234,
2355,
13,
288,
7734,
368,
1366,
555,
358,
2991,
18,
1220,
12001,
3007,
326,
1946,
316,
1492,
326,
21182,
1562,
7734,
368,
9573,
876,
7734,
309,
12,
3576,
2355,
631,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4109,
18,
11210,
67,
9712,
13,
288,
10792,
9323,
668,
63,
20,
65,
273,
638,
31,
10792,
555,
1447,
18,
2626,
12,
3576,
1769,
10792,
555,
1447,
18,
2626,
2668,
64,
82,
8284,
10792,
327,
31,
7734,
289,
7734,
309,
12,
4148,
7735,
13,
288,
10792,
555,
1447,
18,
2626,
12,
3576,
1769,
10792,
555,
1447,
18,
2626,
2668,
64,
82,
8284,
7734,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.AllocShares getAllocShares() throws FieldNotFound { org.quickfix.field.AllocShares value = new org.quickfix.field.AllocShares(); | public quickfix.field.AllocShares getAllocShares() throws FieldNotFound { quickfix.field.AllocShares value = new quickfix.field.AllocShares(); | public org.quickfix.field.AllocShares getAllocShares() throws FieldNotFound { org.quickfix.field.AllocShares value = new org.quickfix.field.AllocShares(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/buggy/src/java/src/quickfix/fix42/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
336,
8763,
24051,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
336,
8763,
24051,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8763,
24051,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fSGComparator = null; | private void resetCommon(StringPool stringPool) throws Exception { fStringPool = stringPool; fValidateEntity.setDatatypeObject(new Object[]{fEntityHandler, stringPool}); fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false; fCurrentScope = TOP_LEVEL_SCOPE; fCurrentSchemaURI = StringPool.EMPTY_STRING; fEmptyURI = StringPool.EMPTY_STRING; fXsiPrefix = - 1; fXsiTypeValidator = null; // xsi:nill fNil = false; fGrammar = null; fGrammarNameSpaceIndex = StringPool.EMPTY_STRING; // we reset fGrammarResolver in XMLParser before passing it to Validator fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; //Normalization fCurrentDV = null; fFirstChunk = true; fTrailing = false; fWhiteSpace = DatatypeValidator.COLLAPSE; fMatcherStack.clear(); UPACheckedGrammarURIs.clear(); //REVISIT: fExternalSchemas/fExternalNoNamespaceSchema is not reset 'cause we don't have grammar cashing in Xerces-J // reconsider implementation when we have grammar chashing // init(); } // resetCommon(StringPool) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/a1b0cd5294f8baebb5bcfb1f068690248b002281/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
3238,
74,
30820,
5559,
273,
446,
31,
918,
74,
30820,
5559,
273,
446,
31,
2715,
6517,
12,
780,
2864,
74,
30820,
5559,
273,
446,
31,
533,
2864,
13,
74,
30820,
5559,
273,
446,
31,
1216,
74,
30820,
5559,
273,
446,
31,
1185,
74,
30820,
5559,
273,
446,
31,
288,
74,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
780,
2864,
74,
30820,
5559,
273,
446,
31,
273,
74,
30820,
5559,
273,
446,
31,
533,
2864,
31,
74,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
4270,
1943,
18,
542,
20228,
921,
12,
2704,
74,
30820,
5559,
273,
446,
31,
1033,
63,
7073,
74,
1943,
1503,
16,
74,
30820,
5559,
273,
446,
31,
533,
2864,
22938,
74,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
31496,
74,
30820,
5559,
273,
446,
31,
273,
74,
30820,
5559,
273,
446,
31,
284,
4354,
1526,
31,
74,
30820,
5559,
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,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
3238,
74,
30820,
5559,
273,
446,
31,
918,
74,
30820,
5559,
273,
446,
31,
2715,
6517,
12,
780,
2864,
74,
30820,
5559,
273,
446,
31,
533,
2864,
13,
74,
30820,
5559,
273,
446,
31,
1216,
74,
30820,
5559,
273,
446,
31,
1185,
74,
30820,
5559,
273,
446,
31,
288,
74,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
30820,
5559,
273,
446,
31,
284,
780,
2864,
74,
30820,
5559,
273,
446,
31,
273,
74,
30820,
5559,
273,
446,
31,
2
] |
|
public static Object test(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object rval = execSub(cx, thisObj, args, funObj, TEST, funObj); | private Object test(Context cx, Scriptable scopeObj, Object[] args) { Object rval = execSub(cx, scopeObj, args, TEST); | public static Object test(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object rval = execSub(cx, thisObj, args, funObj, TEST, funObj); if (rval == null || !rval.equals(Boolean.TRUE)) rval = Boolean.FALSE; return rval; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8b34980fb3adc3beae5bcea5913d426dc2e366c8/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1842,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
1033,
14267,
273,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
16,
22130,
16,
9831,
2675,
1769,
3639,
309,
261,
86,
1125,
422,
446,
747,
401,
86,
1125,
18,
14963,
12,
5507,
18,
18724,
3719,
5411,
14267,
273,
3411,
18,
21053,
31,
3639,
327,
14267,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1842,
12,
1042,
9494,
16,
22780,
15261,
16,
17311,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
288,
3639,
1033,
14267,
273,
1196,
1676,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
16,
22130,
16,
9831,
2675,
1769,
3639,
309,
261,
86,
1125,
422,
446,
747,
401,
86,
1125,
18,
14963,
12,
5507,
18,
18724,
3719,
5411,
14267,
273,
3411,
18,
21053,
31,
3639,
327,
14267,
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
] |
imageContent.setURI( strUri ); | imageContent.setURI( uri.toExternalForm( ) ); | protected void handleURIImage( String uriExpr, IImageContent imageContent ) { // the expression is an expression, but UI may use // the expression as the string constants, so first try // to evaluate, if there are some errors, use it as a // string. imageContent.setImageSource( IImageContent.IMAGE_URL ); assert uriExpr != null; Object uriObj = evaluate( uriExpr ); String strUri = null; if ( uriObj != null ) { strUri = uriObj.toString( ); } else if ( uriExpr != null && uriExpr.length( ) > 0 ) { strUri = uriExpr; } ReportDesignHandle reportDesign = context.getDesign( ); URL uri = reportDesign.findResource( strUri, IResourceLocator.IMAGE ); if ( uri != null ) { strUri = uri.toExternalForm( ); if ( "file".equals( uri.getProtocol( ) ) ) { handleFileImage( strUri, imageContent ); } else { imageContent.setURI( strUri ); } } else { handleFileImage( strUri, imageContent ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/11aa8d97d4433c2ff705e9c176dd7ca72917ccbe/ImageItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ImageItemExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
3098,
2040,
12,
514,
2003,
4742,
16,
1082,
202,
45,
2040,
1350,
1316,
1350,
262,
202,
95,
202,
202,
759,
326,
2652,
353,
392,
2652,
16,
1496,
6484,
2026,
999,
202,
202,
759,
326,
2652,
487,
326,
533,
6810,
16,
1427,
1122,
775,
202,
202,
759,
358,
5956,
16,
309,
1915,
854,
2690,
1334,
16,
999,
518,
487,
279,
202,
202,
759,
533,
18,
202,
202,
2730,
1350,
18,
542,
2040,
1830,
12,
467,
2040,
1350,
18,
13603,
67,
1785,
11272,
202,
202,
11231,
2003,
4742,
480,
446,
31,
202,
202,
921,
2003,
2675,
273,
5956,
12,
2003,
4742,
11272,
202,
202,
780,
609,
3006,
273,
446,
31,
202,
202,
430,
261,
2003,
2675,
480,
446,
262,
202,
202,
95,
1082,
202,
701,
3006,
273,
2003,
2675,
18,
10492,
12,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
2003,
4742,
480,
446,
597,
2003,
4742,
18,
2469,
12,
262,
405,
374,
262,
202,
202,
95,
1082,
202,
701,
3006,
273,
2003,
4742,
31,
202,
202,
97,
9506,
202,
4820,
15478,
3259,
2605,
15478,
273,
819,
18,
588,
15478,
12,
11272,
202,
202,
1785,
2003,
273,
2605,
15478,
18,
4720,
1420,
12,
609,
3006,
16,
9506,
202,
45,
1420,
5786,
18,
13603,
11272,
202,
202,
430,
261,
2003,
480,
446,
262,
202,
202,
95,
1082,
202,
701,
3006,
273,
2003,
18,
869,
6841,
1204,
12,
11272,
1082,
202,
430,
261,
315,
768,
9654,
14963,
12,
2003,
18,
588,
5752,
12,
262,
262,
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,
1640,
3098,
2040,
12,
514,
2003,
4742,
16,
1082,
202,
45,
2040,
1350,
1316,
1350,
262,
202,
95,
202,
202,
759,
326,
2652,
353,
392,
2652,
16,
1496,
6484,
2026,
999,
202,
202,
759,
326,
2652,
487,
326,
533,
6810,
16,
1427,
1122,
775,
202,
202,
759,
358,
5956,
16,
309,
1915,
854,
2690,
1334,
16,
999,
518,
487,
279,
202,
202,
759,
533,
18,
202,
202,
2730,
1350,
18,
542,
2040,
1830,
12,
467,
2040,
1350,
18,
13603,
67,
1785,
11272,
202,
202,
11231,
2003,
4742,
480,
446,
31,
202,
202,
921,
2003,
2675,
273,
5956,
12,
2003,
4742,
11272,
202,
202,
780,
609,
3006,
273,
446,
31,
202,
202,
430,
261,
2003,
2675,
2
] |
is.getComponentDescriptions(name, "Node.AgentManager.Agent"); | is.getComponentDescriptions(name, "Node.AgentManager"); | protected void initNode() throws UnknownHostException, NamingException, IOException, SQLException, InitializerServiceException { // get the node name String name = System.getProperty("org.cougaar.node.name"); if (name == null) { name = findHostName(); if (name == null) { throw new IllegalArgumentException("Node name not specified"); } } // get the start mode (file or experimentId) String filename = System.getProperty("org.cougaar.filename"); String experimentId = System.getProperty("org.cougaar.experiment.id"); if (filename == null) { if (experimentId == null) { // use the default "name.ini" filename = name + ".ini"; } else { // use the filename } } else if (experimentId == null) { // use the experimentId } else { throw new IllegalArgumentException( "Both file name (-f) and experiment -X) specified. "+ "Only one allowed."); } // set the node name NodeIdentifier nid = new NodeIdentifier(name); setNodeIdentifier(nid); // create the AgentManager on our own for now BinderFactory ambf = new AgentManagerBinderFactory(); if (!attachBinderFactory(ambf)) { throw new RuntimeException( "Failed to load the AgentManagerBinderFactory in Node"); } agentManager = new AgentManager(); super.add(agentManager); ServiceBroker sb = getServiceBroker(); sb.addService(NodeIdentificationService.class, new NodeIdentificationServiceProvider(nid)); sb.addService(NamingService.class, new NamingServiceProvider(System.getProperties())); LoggingServiceProvider loggingServiceProvider = new LoggingServiceProvider(System.getProperties()); sb.addService(LoggingService.class, loggingServiceProvider); sb.addService(LoggingControlService.class, loggingServiceProvider); //add the vm metrics sb.addService(NodeMetricsService.class, new NodeMetricsServiceProvider(new NodeMetricsProxy())); ServiceProvider sp; if (filename != null) sp = new FileInitializerServiceProvider(); else sp = new DBInitializerServiceProvider(experimentId); sb.addService(InitializerService.class, sp); InitializerService is = (InitializerService) sb.getService( this, InitializerService.class, null); ComponentDescription[] agentDescs = is.getComponentDescriptions(name, "Node.AgentManager.Agent"); sb.releaseService(this, InitializerService.class, is); // Set up MTS and QOS service provides. // // NB: The order is important for now - MTS *must* be created // first. initTransport(); initQos(); // register for external control by the AppServer // -- disabled for now -- // load the clusters // // once bulk-add ComponentMessages are implements this can // be done with "this.receiveMessage(compMsg)" add(agentDescs); //mgmtLP = new MgmtLP(this); // MTMTMT turn off till RMI namespace works // start up the NodeTrust component String ntc = new String(getIdentifier()+"NodeTrust"); ComponentDescription ntcdesc = new ComponentDescription( ntc, "Node.NodeTrust", "org.cougaar.core.society.NodeTrustComponent", null, //codebase null, //parameters null, //certificate null, //lease null); //policy super.add(ntcdesc); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/133aa79fbb8b5ed775a148a756f7798e4f2e804f/Node.java/clean/core/src/org/cougaar/core/society/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
907,
1435,
565,
1216,
30592,
16,
26890,
16,
1860,
16,
6647,
6483,
16,
4378,
3926,
15133,
225,
288,
565,
368,
336,
326,
756,
508,
565,
514,
508,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
2159,
18,
529,
8863,
565,
309,
261,
529,
422,
446,
13,
288,
1377,
508,
273,
1104,
20946,
5621,
1377,
309,
261,
529,
422,
446,
13,
288,
3639,
604,
394,
2754,
2932,
907,
508,
486,
1269,
8863,
1377,
289,
565,
289,
565,
368,
336,
326,
787,
1965,
261,
768,
578,
8724,
548,
13,
565,
514,
1544,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
3459,
8863,
565,
514,
8724,
548,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
18142,
18,
350,
8863,
565,
309,
261,
3459,
422,
446,
13,
288,
1377,
309,
261,
18142,
548,
422,
446,
13,
288,
3639,
368,
999,
326,
805,
315,
529,
18,
8767,
6,
3639,
1544,
273,
508,
397,
3552,
8767,
14432,
1377,
289,
469,
288,
3639,
368,
999,
326,
1544,
1377,
289,
565,
289,
469,
309,
261,
18142,
548,
422,
446,
13,
288,
1377,
368,
999,
326,
8724,
548,
565,
289,
469,
288,
1377,
604,
394,
2754,
12,
1850,
315,
20240,
585,
508,
24927,
74,
13,
471,
8724,
300,
60,
13,
1269,
18,
13773,
1850,
315,
3386,
1245,
2935,
1199,
1769,
565,
289,
565,
368,
444,
326,
756,
508,
565,
2029,
3004,
19416,
273,
394,
2029,
3004,
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,
282,
4750,
918,
1208,
907,
1435,
565,
1216,
30592,
16,
26890,
16,
1860,
16,
6647,
6483,
16,
4378,
3926,
15133,
225,
288,
565,
368,
336,
326,
756,
508,
565,
514,
508,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
2159,
18,
529,
8863,
565,
309,
261,
529,
422,
446,
13,
288,
1377,
508,
273,
1104,
20946,
5621,
1377,
309,
261,
529,
422,
446,
13,
288,
3639,
604,
394,
2754,
2932,
907,
508,
486,
1269,
8863,
1377,
289,
565,
289,
565,
368,
336,
326,
787,
1965,
261,
768,
578,
8724,
548,
13,
565,
514,
1544,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
3459,
8863,
565,
514,
8724,
548,
273,
2
] |
_printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); | _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); | public void startElement( String namespaceURI, String localName, String rawName, Attributes attrs ) throws SAXException { int i; boolean preserveSpace; ElementState state; String name; String value; boolean addNSAttr = false; try { if ( _printer == null ) throw new IllegalStateException( "SER002 No writer supplied for serializer" ); state = getElementState(); if ( isDocumentState() ) { // If this is the root element handle it differently. // If the first root element in the document, serialize // the document's DOCTYPE. Space preserving defaults // to that of the output format. if ( ! _started ) startDocument( ( localName == null || localName.length() == 0 ) ? rawName : localName ); } else { // For any other element, if first in parent, then // close parent's opening tag and use the parnet's // space preserving. if ( state.empty ) _printer.printText( '>' ); // Must leave CData section first if ( state.inCData ) { _printer.printText( "]]>" ); state.inCData = false; } // Indent this element on a new line if the first // content of the parent element or immediately // following an element or a comment if ( _indenting && ! state.preserveSpace && ( state.empty || state.afterElement || state.afterComment) ) _printer.breakLine(); } preserveSpace = state.preserveSpace; //We remove the namespaces from the attributes list so that they will //be in _prefixes attrs = extractNamespaces(attrs); // Do not change the current element state yet. // This only happens in endElement(). if ( rawName == null || rawName.length() == 0 ) { if ( localName == null ) throw new SAXException( "No rawName and localName is null" ); if ( namespaceURI != null && ! namespaceURI.equals( "" ) ) { String prefix; prefix = getPrefix( namespaceURI ); if ( prefix != null && prefix.length() > 0 ) rawName = prefix + ":" + localName; else rawName = localName; } else rawName = localName; addNSAttr = true; } _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); // For each attribute print it's name and value as one part, // separated with a space so the element can be broken on // multiple lines. if ( attrs != null ) { for ( i = 0 ; i < attrs.getLength() ; ++i ) { _printer.printSpace(); name = attrs.getQName( i ); if ( name != null && name.length() == 0 ) { String prefix; String attrURI; name = attrs.getLocalName( i ); attrURI = attrs.getURI( i ); if ( ( attrURI != null && attrURI.length() != 0 ) && ( namespaceURI == null || namespaceURI.length() == 0 || ! attrURI.equals( namespaceURI ) ) ) { prefix = getPrefix( attrURI ); if ( prefix != null && prefix.length() > 0 ) name = prefix + ":" + name; } } value = attrs.getValue( i ); if ( value == null ) value = ""; _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); // If the attribute xml:space exists, determine whether // to preserve spaces in this and child nodes based on // its value. if ( name.equals( "xml:space" ) ) { if ( value.equals( "preserve" ) ) preserveSpace = true; else preserveSpace = _format.getPreserveSpace(); } } } if ( _prefixes != null ) { Enumeration enum; enum = _prefixes.keys(); while ( enum.hasMoreElements() ) { _printer.printSpace(); value = (String) enum.nextElement(); name = (String) _prefixes.get( value ); if ( name.length() == 0 ) { _printer.printText( "xmlns=\"" ); printEscaped( value ); _printer.printText( '"' ); } else { _printer.printText( "xmlns:" ); _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); } } } // Now it's time to enter a new element state // with the tag name and space preserving. // We still do not change the curent element state. state = enterElementState( namespaceURI, localName, rawName, preserveSpace ); name = ( localName == null || localName.length() == 0 ) ? rawName : namespaceURI + "^" + localName; state.doCData = _format.isCDataElement( name ); state.unescaped = _format.isNonEscapingElement( name ); } catch ( IOException except ) { | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/75df449ca03dcc93450a7a436a211467b704d347/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
514,
19421,
16,
514,
11927,
16,
17311,
514,
1831,
461,
16,
9055,
3422,
262,
3639,
1216,
14366,
565,
288,
3639,
509,
1850,
277,
31,
3639,
1250,
1377,
9420,
3819,
31,
3639,
3010,
1119,
919,
31,
3639,
514,
4202,
508,
31,
3639,
514,
4202,
460,
31,
3639,
1250,
1377,
527,
3156,
3843,
273,
629,
31,
3639,
775,
288,
3639,
309,
261,
389,
30439,
422,
446,
262,
5411,
604,
394,
5477,
12,
315,
2123,
24908,
2631,
2633,
4580,
364,
6340,
6,
11272,
3639,
919,
273,
7426,
1119,
5621,
3639,
309,
261,
353,
2519,
1119,
1435,
262,
288,
5411,
368,
971,
333,
353,
326,
1365,
930,
1640,
518,
23621,
18,
5411,
368,
971,
326,
1122,
1365,
930,
316,
326,
1668,
16,
4472,
5411,
368,
326,
1668,
1807,
5467,
17331,
18,
14059,
27995,
3467,
5411,
368,
358,
716,
434,
326,
876,
740,
18,
5411,
309,
261,
401,
389,
14561,
262,
10792,
787,
2519,
12,
261,
11927,
422,
446,
747,
11927,
18,
2469,
1435,
422,
374,
262,
692,
1831,
461,
294,
11927,
11272,
3639,
289,
469,
288,
5411,
368,
2457,
1281,
1308,
930,
16,
309,
1122,
316,
982,
16,
1508,
5411,
368,
1746,
982,
1807,
10890,
1047,
471,
999,
326,
779,
2758,
1807,
5411,
368,
3476,
27995,
18,
5411,
309,
261,
919,
18,
5531,
262,
7734,
389,
30439,
18,
1188,
1528,
12,
7481,
11272,
5411,
368,
6753,
8851,
385,
751,
2442,
1122,
5411,
309,
261,
919,
18,
267,
39,
751,
262,
5411,
288,
7734,
389,
30439,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
514,
19421,
16,
514,
11927,
16,
17311,
514,
1831,
461,
16,
9055,
3422,
262,
3639,
1216,
14366,
565,
288,
3639,
509,
1850,
277,
31,
3639,
1250,
1377,
9420,
3819,
31,
3639,
3010,
1119,
919,
31,
3639,
514,
4202,
508,
31,
3639,
514,
4202,
460,
31,
3639,
1250,
1377,
527,
3156,
3843,
273,
629,
31,
3639,
775,
288,
3639,
309,
261,
389,
30439,
422,
446,
262,
5411,
604,
394,
5477,
12,
315,
2123,
24908,
2631,
2633,
4580,
364,
6340,
6,
11272,
3639,
919,
273,
7426,
1119,
5621,
3639,
309,
261,
353,
2519,
1119,
1435,
262,
288,
5411,
368,
971,
333,
353,
326,
1365,
930,
1640,
518,
23621,
18,
5411,
368,
971,
326,
1122,
1365,
930,
2
] |
if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; | if (name != null) { if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; } | public int registerLocal(String name) { if (localNames == null) { localNames = new ArrayList(); localNames.add("_"); localNames.add("~"); if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; } } localNames.add(name); return localNames.size() - 1; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/580f3017bb64fb7c2bf269b73a8f918801c19963/LocalNamesElement.java/buggy/src/org/jruby/parser/LocalNamesElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
1191,
1557,
18,
1289,
2932,
98,
8863,
5411,
309,
261,
529,
18,
14963,
2932,
9548,
3719,
288,
7734,
327,
374,
31,
5411,
289,
469,
309,
261,
529,
18,
14963,
2932,
98,
6,
3719,
288,
7734,
327,
404,
31,
5411,
289,
3639,
289,
3639,
1191,
1557,
18,
1289,
12,
529,
1769,
3639,
327,
1191,
1557,
18,
1467,
1435,
300,
404,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1744,
2042,
12,
780,
508,
13,
288,
3639,
309,
261,
3729,
1557,
422,
446,
13,
288,
5411,
1191,
1557,
273,
394,
2407,
5621,
5411,
1191,
1557,
18,
1289,
2932,
67,
8863,
5411,
1191,
1557,
18,
1289,
2932,
98,
8863,
5411,
309,
261,
529,
18,
14963,
2932,
9548,
3719,
288,
7734,
327,
374,
31,
5411,
289,
469,
309,
261,
529,
18,
14963,
2932,
98,
6,
3719,
288,
7734,
327,
404,
31,
5411,
289,
3639,
289,
3639,
1191,
1557,
18,
1289,
12,
529,
1769,
3639,
327,
1191,
1557,
18,
1467,
1435,
300,
404,
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
] |
public void setApplicationClassLoader(ClassLoader loader) | public final void setApplicationClassLoader(ClassLoader loader) | public void setApplicationClassLoader(ClassLoader loader) { if (loader == null) { // restore default behaviour applicationClassLoader = null; return; } if (!testIfCanUseLoader(loader, this.getClass())) { throw new IllegalArgumentException( "Loader can not resolve Rhino classes"); } applicationClassLoader = loader; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
444,
3208,
7805,
12,
7805,
4088,
13,
565,
288,
3639,
309,
261,
6714,
422,
446,
13,
288,
5411,
368,
5217,
805,
14273,
5411,
2521,
7805,
273,
446,
31,
5411,
327,
31,
3639,
289,
3639,
309,
16051,
3813,
2047,
2568,
3727,
2886,
12,
6714,
16,
333,
18,
588,
797,
1435,
3719,
288,
5411,
604,
394,
2754,
12,
7734,
315,
2886,
848,
486,
2245,
534,
76,
15020,
3318,
8863,
3639,
289,
3639,
2521,
7805,
273,
4088,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
444,
3208,
7805,
12,
7805,
4088,
13,
565,
288,
3639,
309,
261,
6714,
422,
446,
13,
288,
5411,
368,
5217,
805,
14273,
5411,
2521,
7805,
273,
446,
31,
5411,
327,
31,
3639,
289,
3639,
309,
16051,
3813,
2047,
2568,
3727,
2886,
12,
6714,
16,
333,
18,
588,
797,
1435,
3719,
288,
5411,
604,
394,
2754,
12,
7734,
315,
2886,
848,
486,
2245,
534,
76,
15020,
3318,
8863,
3639,
289,
3639,
2521,
7805,
273,
4088,
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
] |
"ConstraintViolationExcpetion if" ); | "ConstraintViolationExcpetion if the type parameter and the " + "type of the property do not match." ); | public void testValueConstraintVioloationExceptionBecauseOfInvalidTypeParameter() throws NotExecutableException, RepositoryException { // locate a property definition of type string PropertyDefinition propDef = NodeTypeUtil.locatePropertyDef(superuser, PropertyType.STRING, false, false, false, false); if (propDef == null) { throw new NotExecutableException("No testable property has been found."); } // create a node of type propDef.getDeclaringNodeType() String nodeType = propDef.getDeclaringNodeType().getName(); Node testNode = testRootNode.addNode(nodeName1, nodeType); String testPropName = propDef.getName(); try { testNode.setProperty(testPropName, stringValue, PropertyType.DATE); testRootNode.save(); fail("Node.setProperty(String, Value, int) must throw a " + "ConstraintViolationExcpetion if" ); } catch (ConstraintViolationException e) { // success } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/90ec655548dec7c3c4de711cf2aacda9e203948f/SetPropertyAssumeTypeTest.java/buggy/src/test/org/apache/jackrabbit/test/api/SetPropertyAssumeTypeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
620,
5806,
28658,
83,
29304,
38,
11884,
951,
1941,
16920,
1435,
3639,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
1272,
2379,
434,
618,
533,
3639,
4276,
1852,
2270,
3262,
273,
7734,
20896,
1304,
18,
25450,
1396,
3262,
12,
9565,
1355,
16,
22983,
18,
5804,
16,
629,
16,
629,
16,
629,
16,
629,
1769,
3639,
309,
261,
5986,
3262,
422,
446,
13,
288,
5411,
604,
394,
2288,
17709,
503,
2932,
2279,
1842,
429,
1272,
711,
2118,
1392,
1199,
1769,
3639,
289,
3639,
368,
752,
279,
756,
434,
618,
2270,
3262,
18,
588,
3456,
5968,
15101,
1435,
3639,
514,
9507,
273,
2270,
3262,
18,
588,
3456,
5968,
15101,
7675,
17994,
5621,
3639,
2029,
1842,
907,
273,
1842,
29658,
18,
1289,
907,
12,
2159,
461,
21,
16,
9507,
1769,
3639,
514,
1842,
28856,
273,
2270,
3262,
18,
17994,
5621,
3639,
775,
288,
5411,
1842,
907,
18,
542,
1396,
12,
3813,
28856,
16,
19721,
16,
22983,
18,
4594,
1769,
5411,
1842,
29658,
18,
5688,
5621,
5411,
2321,
2932,
907,
18,
542,
1396,
12,
780,
16,
1445,
16,
509,
13,
1297,
604,
279,
315,
397,
1171,
315,
5806,
11683,
424,
4057,
278,
285,
309,
326,
618,
1569,
471,
326,
315,
397,
315,
723,
434,
326,
1272,
741,
486,
845,
1199,
11272,
3639,
289,
3639,
1044,
261,
5806,
27052,
425,
13,
288,
5411,
368,
2216,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
620,
5806,
28658,
83,
29304,
38,
11884,
951,
1941,
16920,
1435,
3639,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
1272,
2379,
434,
618,
533,
3639,
4276,
1852,
2270,
3262,
273,
7734,
20896,
1304,
18,
25450,
1396,
3262,
12,
9565,
1355,
16,
22983,
18,
5804,
16,
629,
16,
629,
16,
629,
16,
629,
1769,
3639,
309,
261,
5986,
3262,
422,
446,
13,
288,
5411,
604,
394,
2288,
17709,
503,
2932,
2279,
1842,
429,
1272,
711,
2118,
1392,
1199,
1769,
3639,
289,
3639,
368,
752,
279,
756,
434,
618,
2270,
3262,
18,
588,
3456,
5968,
15101,
1435,
3639,
514,
9507,
273,
2270,
3262,
18,
588,
3456,
5968,
15101,
7675,
17994,
5621,
3639,
2029,
2
] |
String path = file.getPath().toOSString(); | String path = rfile != null ? rfile.getLocation().toOSString() : file.getPath().toOSString(); | public IASTTranslationUnit getASTTranslationUnit(ITranslationUnit file, int style) { IResource resource = file.getResource(); ICProject project = file.getCProject(); IProject rproject = project.getProject(); IScannerInfo scanInfo = null; IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(rproject); if (provider != null){ IResource infoResource = resource != null ? resource : rproject; IScannerInfo buildScanInfo = provider.getScannerInformation(infoResource); if (buildScanInfo != null) scanInfo = buildScanInfo; else if ((style & ILanguage.AST_SKIP_IF_NO_BUILD_INFO) != 0) return null; else scanInfo = new ScannerInfo(); } PDOM pdom = (PDOM)CCorePlugin.getPDOMManager().getPDOM(project).getAdapter(PDOM.class); ICodeReaderFactory fileCreator; if ((style & ILanguage.AST_SKIP_INDEXED_HEADERS) != 0) fileCreator = new PDOMCodeReaderFactory(pdom); else fileCreator = SavedCodeReaderFactory.getInstance(); CodeReader reader; if (file instanceof IWorkingCopy) { // get the working copy contents IFile rfile = (IFile)file.getResource(); reader = new CodeReader(rfile.getLocation().toOSString(), file.getContents()); } else { String path = file.getPath().toOSString(); reader = fileCreator.createCodeReaderForTranslationUnit(path); if (reader == null) return null; } IScannerExtensionConfiguration scannerExtensionConfiguration = scannerExtensionConfiguration = C_GNU_SCANNER_EXTENSION; IScanner scanner = new DOMScanner(reader, scanInfo, ParserMode.COMPLETE_PARSE, ParserLanguage.C, ParserFactory.createDefaultLogService(), scannerExtensionConfiguration, fileCreator ); //assume GCC ISourceCodeParser parser = new GNUCSourceParser( scanner, ParserMode.COMPLETE_PARSE, ParserUtil.getParserLogService(), new GCCParserExtensionConfiguration() ); // Parse IASTTranslationUnit ast = parser.parse(); if ((style & AST_USE_INDEX) != 0) ast.setIndex(pdom); return ast; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e9eb7ef7e61bb6bbea17ee25aa648a353da6edd7/GCCLanguage.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/gnu/c/GCCLanguage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
6717,
2802,
4506,
882,
6717,
2802,
12,
45,
6717,
2802,
585,
16,
509,
2154,
13,
288,
202,
202,
45,
1420,
1058,
273,
585,
18,
588,
1420,
5621,
202,
202,
2871,
4109,
1984,
273,
585,
18,
588,
39,
4109,
5621,
202,
202,
45,
4109,
436,
4406,
273,
1984,
18,
588,
4109,
5621,
9506,
202,
45,
11338,
966,
4135,
966,
273,
446,
31,
202,
202,
45,
11338,
966,
2249,
2893,
273,
385,
4670,
3773,
18,
588,
1868,
7675,
588,
11338,
966,
2249,
12,
86,
4406,
1769,
202,
202,
430,
261,
6778,
480,
446,
15329,
1082,
202,
45,
1420,
1123,
1420,
273,
1058,
480,
446,
692,
1058,
294,
436,
4406,
31,
1875,
202,
45,
11338,
966,
1361,
7972,
966,
273,
2893,
18,
588,
11338,
5369,
12,
1376,
1420,
1769,
1082,
202,
430,
261,
3510,
7972,
966,
480,
446,
13,
9506,
202,
9871,
966,
273,
1361,
7972,
966,
31,
1082,
202,
12107,
309,
14015,
4060,
473,
467,
3779,
18,
9053,
67,
22589,
67,
5501,
67,
3417,
67,
20215,
67,
5923,
13,
480,
374,
13,
9506,
202,
2463,
446,
31,
1082,
202,
12107,
9506,
202,
9871,
966,
273,
394,
19074,
966,
5621,
202,
202,
97,
9506,
202,
52,
8168,
4863,
362,
273,
261,
52,
8168,
13,
39,
4670,
3773,
18,
588,
52,
8168,
1318,
7675,
588,
52,
8168,
12,
4406,
2934,
588,
4216,
12,
52,
8168,
18,
1106,
1769,
202,
202,
45,
1085,
2514,
1733,
585,
10636,
31,
202,
202,
430,
14015,
4060,
473,
467,
3779,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
6717,
2802,
4506,
882,
6717,
2802,
12,
45,
6717,
2802,
585,
16,
509,
2154,
13,
288,
202,
202,
45,
1420,
1058,
273,
585,
18,
588,
1420,
5621,
202,
202,
2871,
4109,
1984,
273,
585,
18,
588,
39,
4109,
5621,
202,
202,
45,
4109,
436,
4406,
273,
1984,
18,
588,
4109,
5621,
9506,
202,
45,
11338,
966,
4135,
966,
273,
446,
31,
202,
202,
45,
11338,
966,
2249,
2893,
273,
385,
4670,
3773,
18,
588,
1868,
7675,
588,
11338,
966,
2249,
12,
86,
4406,
1769,
202,
202,
430,
261,
6778,
480,
446,
15329,
1082,
202,
45,
1420,
1123,
1420,
273,
1058,
480,
446,
692,
1058,
294,
436,
4406,
31,
1875,
202,
45,
11338,
966,
1361,
2
] |
false, false)); | false, false, false)); | public final boolean setHandler(final IHandler handler) { if (Util.equals(handler, this.handler)) { return false; } // Swap the state around. final String[] stateIds = getStateIds(); if (stateIds != null) { for (int i = 0; i < stateIds.length; i++) { final String stateId = stateIds[i]; if (this.handler instanceof IObjectWithState) { ((IObjectWithState) this.handler).removeState(stateId); } if (handler instanceof IObjectWithState) { final IState stateToAdd = getState(stateId); ((IObjectWithState) handler).addState(stateId, stateToAdd); } } } // Update the handler, and flush the string representation. this.handler = handler; string = null; // Debugging output if ((DEBUG_HANDLERS) && ((DEBUG_HANDLERS_COMMAND_ID == null) || (DEBUG_HANDLERS_COMMAND_ID .equals(id)))) { final StringBuffer buffer = new StringBuffer("Command('"); //$NON-NLS-1$ buffer.append(id); buffer.append("') has changed to "); //$NON-NLS-1$ if (handler == null) { buffer.append("no handler"); //$NON-NLS-1$ } else { buffer.append('\''); buffer.append(handler); buffer.append("' as its handler"); //$NON-NLS-1$ } Tracing.printTrace("HANDLERS", buffer.toString()); //$NON-NLS-1$ } // Send notification fireCommandChanged(new CommandEvent(this, false, false, false, true, false, false)); return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5c1b204b8e3e616a79abfbcbbfe746b9003ba0a1/Command.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/Command.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
444,
1503,
12,
6385,
467,
1503,
1838,
13,
288,
202,
202,
430,
261,
1304,
18,
14963,
12,
4176,
16,
333,
18,
4176,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
12738,
326,
919,
6740,
18,
202,
202,
6385,
514,
8526,
919,
2673,
273,
8997,
2673,
5621,
202,
202,
430,
261,
2019,
2673,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
919,
2673,
18,
2469,
31,
277,
27245,
288,
9506,
202,
6385,
514,
919,
548,
273,
919,
2673,
63,
77,
15533,
9506,
202,
430,
261,
2211,
18,
4176,
1276,
467,
921,
1190,
1119,
13,
288,
6862,
202,
12443,
45,
921,
1190,
1119,
13,
333,
18,
4176,
2934,
4479,
1119,
12,
2019,
548,
1769,
9506,
202,
97,
9506,
202,
430,
261,
4176,
1276,
467,
921,
1190,
1119,
13,
288,
6862,
202,
6385,
467,
1119,
919,
13786,
273,
8997,
12,
2019,
548,
1769,
6862,
202,
12443,
45,
921,
1190,
1119,
13,
1838,
2934,
1289,
1119,
12,
2019,
548,
16,
919,
13786,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
2315,
326,
1838,
16,
471,
3663,
326,
533,
4335,
18,
202,
202,
2211,
18,
4176,
273,
1838,
31,
202,
202,
1080,
273,
446,
31,
202,
202,
759,
4015,
1998,
876,
202,
202,
430,
14015,
9394,
67,
12346,
48,
11367,
13,
9506,
202,
10,
10,
14015,
9394,
67,
12346,
48,
11367,
67,
19104,
67,
734,
422,
446,
13,
747,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
444,
1503,
12,
6385,
467,
1503,
1838,
13,
288,
202,
202,
430,
261,
1304,
18,
14963,
12,
4176,
16,
333,
18,
4176,
3719,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
12738,
326,
919,
6740,
18,
202,
202,
6385,
514,
8526,
919,
2673,
273,
8997,
2673,
5621,
202,
202,
430,
261,
2019,
2673,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
919,
2673,
18,
2469,
31,
277,
27245,
288,
9506,
202,
6385,
514,
919,
548,
273,
919,
2673,
63,
77,
15533,
9506,
202,
430,
261,
2211,
18,
4176,
1276,
467,
921,
1190,
1119,
13,
288,
6862,
202,
12443,
45,
921,
1190,
1119,
13,
2
] |
name = getString(theData.itsStringTable, iCode, pc + 1); | name = strings[getShort(iCode, pc + 1)]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
11794,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
540,
727,
509,
4235,
61,
67,
19444,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
943,
1333,
1031,
31,
759,
2110,
63,
20,
1648,
277,
411,
8350,
67,
2664,
4464,
14542,
2110,
501,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
411,
4235,
61,
67,
19444,
67,
2664,
4464,
14542,
1399,
364,
394,
5814,
19,
407,
278,
30752,
759,
2110,
63,
17805,
67,
19444,
67,
2664,
4464,
1648,
277,
14542,
775,
8124,
759,
1347,
374,
1648,
277,
411,
15234,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
11794,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2
] |
public CmsFile createFile(A_CmsUser user, A_CmsProject project, | public CmsFile createFile(A_CmsUser user, A_CmsProject project, A_CmsProject onlineProject, | public CmsFile createFile(A_CmsUser user, A_CmsProject project, String filename, int flags, byte[] contents, A_CmsResourceType type) throws CmsException { return m_accessFile.createFile(user,project,filename,flags,contents,type); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/95a9c02f06acd3100278d024929b4b0d15ba4341/CmsRbFile.java/buggy/src/com/opencms/file/CmsRbFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
28118,
21266,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
432,
67,
4747,
4109,
12365,
4109,
16,
1171,
9079,
514,
1544,
16,
509,
2943,
16,
6862,
9506,
282,
1160,
8526,
2939,
16,
432,
67,
4747,
15631,
618,
13,
15106,
540,
1216,
11228,
288,
9079,
327,
312,
67,
3860,
812,
18,
2640,
812,
12,
1355,
16,
4406,
16,
3459,
16,
7133,
16,
3980,
16,
723,
1769,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
28118,
21266,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
432,
67,
4747,
4109,
12365,
4109,
16,
1171,
9079,
514,
1544,
16,
509,
2943,
16,
6862,
9506,
282,
1160,
8526,
2939,
16,
432,
67,
4747,
15631,
618,
13,
15106,
540,
1216,
11228,
288,
9079,
327,
312,
67,
3860,
812,
18,
2640,
812,
12,
1355,
16,
4406,
16,
3459,
16,
7133,
16,
3980,
16,
723,
1769,
377,
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
] |
final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {memberCalc}) { | final LevelCalc levelCalc = compiler.compileLevel(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {levelCalc}) { | public Calc compileCall(FunCall call, ExpCompiler compiler) { final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractStringCalc(call, new Calc[] {memberCalc}) { public String evaluateString(Evaluator evaluator) { final Member member = memberCalc.evaluateMember(evaluator); return member.getUniqueName(); } }; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
10019,
7734,
327,
394,
4115,
780,
25779,
12,
1991,
16,
394,
29128,
8526,
288,
5990,
25779,
6792,
288,
10792,
1071,
514,
5956,
780,
12,
15876,
18256,
13,
288,
13491,
727,
8596,
3140,
273,
27573,
3140,
25779,
18,
21024,
4419,
12,
14168,
639,
1769,
13491,
327,
3140,
18,
588,
6303,
461,
5621,
10792,
289,
7734,
289,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
10019,
7734,
327,
394,
4115,
780,
25779,
12,
1991,
16,
394,
29128,
8526,
288,
5990,
25779,
6792,
288,
10792,
1071,
514,
5956,
780,
12,
15876,
18256,
13,
288,
13491,
727,
8596,
3140,
273,
27573,
3140,
25779,
18,
21024,
4419,
12,
14168,
639,
1769,
13491,
327,
3140,
18,
588,
6303,
461,
5621,
10792,
289,
7734,
289,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Likes to be left alone?", | "Likes to be left alone?", | private boolean askForExclusive() { MessageDialog dialog = new MessageDialog( window.getShell(), "Likes to be left alone?", null, "Press yes if the jobs should be run one at a time, and no otherwise", MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 1 // no is the default ); return dialog.open() == 0; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c96c4f274dd5c81e1339f85c32a8a6669c73643f/CreateJobsAction.java/clean/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/actions/CreateJobsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
2002,
24068,
35,
3113,
9506,
202,
2011,
16,
9506,
202,
6,
11840,
12465,
309,
326,
6550,
1410,
506,
1086,
1245,
622,
279,
813,
16,
471,
1158,
3541,
3113,
9506,
202,
1079,
6353,
18,
4740,
1146,
16,
9506,
202,
2704,
514,
8526,
288,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
1599,
3529,
2918,
18,
3417,
67,
13545,
19879,
9506,
202,
21,
368,
1158,
353,
326,
805,
202,
202,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
374,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
2002,
24068,
35,
3113,
9506,
202,
2011,
16,
9506,
202,
6,
11840,
12465,
309,
326,
6550,
1410,
506,
1086,
1245,
622,
279,
813,
16,
471,
1158,
3541,
3113,
9506,
202,
1079,
6353,
18,
4740,
1146,
16,
9506,
202,
2704,
514,
8526,
288,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
1599,
3529,
2918,
18,
3417,
67,
13545,
19879,
9506,
202,
21,
368,
1158,
353,
326,
805,
202,
202,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
374,
31,
202,
97,
2,
-100,
-100,
-100
] |
finally{ try{ if (stmt != null) stmt.close (); } catch (SQLException ex){ Logger.log(Logger.ERROR, ex); } rdbmService.releaseConnection(con); } | rdbmService.releaseConnection(con); | public void addChannel(int id, String title, Document doc, String catID[]) throws Exception { Statement stmt = null; RdbmServices rdbmService = new RdbmServices (); Connection con = rdbmService.getConnection (); try { stmt = con.createStatement (); con.setAutoCommit(false); for(int i=0; i < catID.length; i++) { String sInsert = "INSERT INTO UP_CHAN_CLASS (CLASS_ID, CHAN_ID) "; sInsert += "VALUES (" + catID[i] + "," + id + ")"; Logger.log (Logger.DEBUG, "DBImpl::addChannel(): " + sInsert); stmt.executeUpdate (sInsert); } con.commit(); } catch (Exception e) { con.rollback(); throw e; } finally{ try{ if (stmt != null) stmt.close (); } catch (SQLException ex){ Logger.log(Logger.ERROR, ex); } rdbmService.releaseConnection(con); } } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/da068f3fc3c2a9d337780f6c72e612d14035790e/DBImpl.java/clean/source/org/jasig/portal/DBImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2909,
12,
474,
612,
16,
514,
2077,
16,
4319,
997,
16,
514,
6573,
734,
63,
5717,
1216,
1185,
565,
288,
1377,
8056,
3480,
273,
446,
31,
1377,
534,
1966,
81,
5676,
436,
1966,
81,
1179,
273,
394,
534,
1966,
81,
5676,
261,
1769,
1377,
4050,
356,
273,
436,
1966,
81,
1179,
18,
588,
1952,
261,
1769,
1377,
775,
288,
3639,
3480,
273,
356,
18,
2640,
3406,
261,
1769,
3639,
356,
18,
542,
4965,
5580,
12,
5743,
1769,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
6573,
734,
18,
2469,
31,
277,
27245,
288,
1850,
514,
272,
4600,
225,
273,
315,
11356,
12421,
7376,
67,
1792,
1258,
67,
5237,
261,
5237,
67,
734,
16,
6469,
1258,
67,
734,
13,
13636,
1850,
272,
4600,
1011,
315,
16386,
7566,
397,
6573,
734,
63,
77,
65,
397,
5753,
397,
612,
397,
7310,
31,
1850,
4242,
18,
1330,
261,
3328,
18,
9394,
16,
315,
2290,
2828,
2866,
1289,
2909,
13332,
315,
397,
272,
4600,
1769,
1850,
3480,
18,
8837,
1891,
261,
87,
4600,
1769,
3639,
289,
3639,
356,
18,
7371,
5621,
1377,
289,
1044,
261,
503,
425,
13,
288,
3639,
356,
18,
20050,
5621,
3639,
604,
425,
31,
1377,
289,
1377,
3095,
95,
5411,
775,
95,
7734,
309,
261,
10589,
480,
446,
13,
7734,
3480,
18,
4412,
261,
1769,
5411,
289,
5411,
1044,
261,
23116,
431,
15329,
7734,
4242,
18,
1330,
12,
3328,
18,
3589,
16,
431,
1769,
5411,
289,
5411,
436,
1966,
81,
1179,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2909,
12,
474,
612,
16,
514,
2077,
16,
4319,
997,
16,
514,
6573,
734,
63,
5717,
1216,
1185,
565,
288,
1377,
8056,
3480,
273,
446,
31,
1377,
534,
1966,
81,
5676,
436,
1966,
81,
1179,
273,
394,
534,
1966,
81,
5676,
261,
1769,
1377,
4050,
356,
273,
436,
1966,
81,
1179,
18,
588,
1952,
261,
1769,
1377,
775,
288,
3639,
3480,
273,
356,
18,
2640,
3406,
261,
1769,
3639,
356,
18,
542,
4965,
5580,
12,
5743,
1769,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
6573,
734,
18,
2469,
31,
277,
27245,
288,
1850,
514,
272,
4600,
225,
273,
315,
11356,
12421,
7376,
67,
1792,
1258,
67,
5237,
261,
5237,
67,
734,
16,
2
] |
private synchronized void fail(InserterException e) { if(finished) return; finished = true; | private void fail(InserterException e) { synchronized(this) { if(finished) return; finished = true; } | private synchronized void fail(InserterException e) { if(finished) return; finished = true; cb.onFailure(e, this); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/f1e1ccfc4cacd0065808ad5458fabedc486f2ca2/SingleBlockInserter.java/buggy/src/freenet/client/async/SingleBlockInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
13527,
273,
638,
31,
202,
202,
7358,
18,
265,
5247,
12,
73,
16,
333,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
13527,
273,
638,
31,
202,
202,
7358,
18,
265,
5247,
12,
73,
16,
333,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return items.VoidItem(); | Item retItem = items.SelfItem(tc.getType(currentClass)); return retItem; | Item gen2(Tree tree, MSILType toType) { Symbol sym = tree.hasSymbol() ? tree.symbol() : null; switch (tree) { case Empty: return items.VoidItem();; case Block(Tree[] stats): return gen(stats); case ValDef(_, Name name, Tree tpe, Tree rhs): LocalBuilder local = code.DeclareLocal(tc.getType(sym)); local.SetLocalSymInfo(name.toString()); locals.put(sym, local); if (rhs == Tree.Empty) return items.VoidItem(); MSILType type = type2MSILType(tpe.type); load(coerce(gen(rhs, type), type)); return check(store(items.LocalItem(type, local))); case Ident(Name name): //log("Ident: " + Debug.show(tree)); if (sym == defs.NULL) //return items.LiteralItem(MSILType.NULL_REF, null); return items.LiteralItem(MSILType.OBJECT, null); MSILType type = type2MSILType(sym.type()); if ( sym.isModule() ) // ??? return load(items.StaticItem (type2MSILType(tree.type), tc.getModuleField(sym))); else { Integer slot = (Integer) params.get(sym); if (slot != null) { return items.ArgItem(type, slot.intValue()); } else { LocalBuilder local = (LocalBuilder) locals.get(sym); if (local != null) return items.LocalItem(type, local); } return items.SelectItem(type, items.SelfItem(tc.getType(currentClass)), tc.getField(sym)); } case Select(Tree qualifier, Name selector): if (sym.isModule()) { //log("gen: Select from a module: " + sym); if (sym.isJava()) logErr("gen.Select: Cannot treat Java class '" + sym.fullNameString() + "' as value:\n\t" + dumpSym(sym)); else { // scala module Type module = tc.getType(sym); return items.StaticItem(MSILType.REF(module), tc.getModuleField(sym)); } } if (!qualifier.hasSymbol()) { return items.SelectItem(type2MSILType(tree.type), gen(qualifier), tc.getField(sym)); }//??? if ((qualifier.symbol().flags & NOVAL) == NOVAL) {// log("gen.Select: owner NOVAL");// return items.StaticItem(type2MSILType(tree.type), tc.getField(sym));// } // check if the tree corresponds to a static Java field if (qualifier.symbol().isModule() && sym.isJava()) { //log("gen.Select: static Java field"); return items.StaticItem (type2MSILType(tree.type), tc.getField(sym)); } if ( qualifier.symbol().isModule() ) { // ????? //log("gen: Select from a non-Java module: " + qualifier.symbol() + "::" + selector); return items.SelectItem (type2MSILType(tree.type), gen(qualifier), tc.getField(sym)); } if ( sym.isValue() || sym.isVariable() ) { return items.SelectItem (type2MSILType(sym.type()), gen(qualifier, type2MSILType(qualifier.type)), tc.getField(sym)); } log("gen.Select: Dunno what to do with: " + dumpSym(sym)); break;// switch (sym.kind) {// case Kinds.VAL:// case Kinds.VAR:// //log("gen.Select: qualifier " + dumpSym(qualifier.symbol()) + ";;; " + dumpSym(sym));// //log("MSILType = " + type2MSILType(sym.type()));// return items.SelectItem(type2MSILType(sym.type()),// gen(qualifier, type2MSILType(qualifier.type)),// tc.getField(sym));// default:// log("gen.Select: Dunno what to do with: " + dumpSym(sym));// }// break; case Apply(Tree fun, Tree[] args): return check(genApply(fun, args, type2MSILType(tree.type))); case Assign(Tree lhs, Tree rhs): boolean tmpLastStatement = lastStatement; lastStatement = false; MSILType type = type2MSILType(lhs.type); Item var = gen(lhs, type); load(gen(rhs, type)); lastStatement = tmpLastStatement; return check(store(var)); case Typed(Literal(Object value), Tree tpe): log("Typed.Literal: " + Debug.show(tree)); return items.LiteralItem(type2MSILType(tpe.type), value); case Typed(Tree expr, Tree tpe): //log("gen.Typed: processing node: " + Debug.show(tree)); return gen(expr, type2MSILType(tpe.type)); case New(Template(Tree[] baseClasses, Tree[] body)): assert body.length == 0 : "Template should not have a body!"; switch (baseClasses[0]) { case Apply(Tree fun, Tree[] args): //MethodBase mctor = tc.getMethod(fun.symbol()); //log("GenMSIL.New: " + dumpSym(fun.symbol())); //log("\t" + mctor); ConstructorInfo ctor = (ConstructorInfo) tc.getMethod(fun.symbol()); loadArgs(args, ctor.GetParameters()); code.Emit(OpCodes.Newobj, ctor); return items.StackItem(MSILType.REF(ctor.DeclaringType)); default: throw new ApplicationError("Dunno what to do!"); } case This(_): return items.SelfItem(tc.getType(currentClass)); case Super(Tree tpe): //logErr("Super not implemented yet"); return items.VoidItem(); case Literal(Object value): //log("Literal: " + Debug.show(tree)); //log("\ttype = " + Debug.show(tree.type)); MSILType t = type2MSILType(tree.type); //log("\tmsil type = " + t); return items.LiteralItem(t, value); case If(Tree cond, Tree thenp, Tree elsep): //log("gen.If: cond = " + Debug.show(cond)); //log(" then = " + Debug.show(thenp)); //log(" else = " + Debug.show(elsep)); Item item = genIf(cond, thenp, elsep, toType); return check(item); default: throw new ApplicationError("Dunno what to do: " + tree); } throw new ApplicationError ("Dunno what to do with tree node: " + Debug.show(tree)); } //gen() | 48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/4fdf2ee3ca88ae22997b7dc279d2143e22e80717/GenMSIL.java/clean/sources/scalac/backend/msil/GenMSIL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4342,
3157,
22,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
9610,
261,
3413,
13,
288,
202,
3593,
8953,
30,
202,
565,
327,
1516,
18,
19038,
1180,
5621,
31,
202,
3593,
3914,
12,
2471,
8526,
3177,
4672,
202,
565,
327,
3157,
12,
5296,
1769,
202,
3593,
12747,
3262,
24899,
16,
1770,
508,
16,
4902,
268,
347,
16,
4902,
7711,
4672,
202,
565,
3566,
1263,
1191,
273,
981,
18,
3456,
834,
2042,
12,
5111,
18,
588,
559,
12,
8117,
10019,
202,
565,
1191,
18,
694,
2042,
11901,
966,
12,
529,
18,
10492,
10663,
202,
565,
8985,
18,
458,
12,
8117,
16,
1191,
1769,
202,
565,
309,
261,
86,
4487,
422,
4902,
18,
1921,
13,
202,
202,
2463,
1516,
18,
19038,
1180,
5621,
202,
565,
490,
2320,
48,
559,
618,
273,
618,
22,
49,
2320,
48,
559,
12,
88,
347,
18,
723,
1769,
202,
565,
1262,
12,
2894,
2765,
12,
4507,
12,
86,
4487,
16,
618,
3631,
618,
10019,
202,
565,
327,
866,
12,
2233,
12,
3319,
18,
2042,
1180,
12,
723,
16,
1191,
3719,
1769,
202,
3593,
13128,
12,
461,
508,
4672,
202,
565,
368,
1330,
2932,
6106,
30,
315,
397,
4015,
18,
4500,
12,
3413,
10019,
202,
565,
309,
261,
8117,
422,
17588,
18,
8560,
13,
202,
202,
759,
2463,
1516,
18,
6177,
1180,
12,
49,
2320,
48,
559,
18,
8560,
67,
10771,
16,
446,
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,
4342,
3157,
22,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
9610,
261,
3413,
13,
288,
202,
3593,
8953,
30,
202,
565,
327,
1516,
18,
19038,
1180,
5621,
31,
202,
3593,
3914,
12,
2471,
8526,
3177,
4672,
202,
565,
327,
3157,
12,
5296,
1769,
202,
3593,
12747,
3262,
24899,
16,
1770,
508,
16,
4902,
268,
347,
16,
4902,
7711,
4672,
202,
565,
3566,
1263,
1191,
273,
981,
18,
3456,
834,
2042,
12,
5111,
18,
588,
559,
12,
8117,
10019,
202,
565,
1191,
18,
694,
2042,
11901,
966,
12,
529,
18,
10492,
10663,
202,
565,
8985,
18,
458,
2
] |
IModuleNameSpace elementResolver = module | IModuleNameScope elementResolver = module | private ElementRefValue validateStringValue( Module module, ElementDefn targetDefn, PropertyDefn propDefn, String name ) throws PropertyValueException { name = StringUtil.trimString( name ); if ( name == null ) return null; IModuleNameSpace elementResolver = module .getModuleNameSpace( targetDefn.getNameSpaceID( ) ); ElementRefValue refValue = null; // special case for theme property since it can be direcly referred. refValue = elementResolver.resolve( name, propDefn ); assert refValue != null; // Element is unresolved. if ( !refValue.isResolved( ) ) return refValue; DesignElement target = refValue.getElement( ); assert target != null; // Check type. if ( !target.getDefn( ).isKindOf( targetDefn ) ) throw new PropertyValueException( target.getName( ), PropertyValueException.DESIGN_EXCEPTION_WRONG_ELEMENT_TYPE, PropertyType.ELEMENT_REF_TYPE ); // Resolved reference. return refValue; // new ElementRefValue( target ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b5833a1e367eb18d2954f384e496137a276c1324/ElementRefPropertyType.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/ElementRefPropertyType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
30556,
1954,
19733,
12,
5924,
1605,
16,
1082,
202,
1046,
3262,
82,
1018,
3262,
82,
16,
4276,
3262,
82,
2270,
3262,
82,
16,
514,
508,
262,
1082,
202,
15069,
4276,
9738,
202,
95,
202,
202,
529,
273,
14205,
18,
5290,
780,
12,
508,
11272,
202,
202,
430,
261,
508,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
45,
22542,
3819,
930,
4301,
273,
1605,
9506,
202,
18,
588,
22542,
3819,
12,
1018,
3262,
82,
18,
17994,
3819,
734,
12,
262,
11272,
202,
202,
1046,
30556,
1278,
620,
273,
446,
31,
202,
202,
759,
4582,
648,
364,
5006,
1272,
3241,
518,
848,
506,
302,
577,
71,
715,
29230,
18,
202,
202,
1734,
620,
273,
930,
4301,
18,
10828,
12,
508,
16,
2270,
3262,
82,
11272,
202,
202,
11231,
1278,
620,
480,
446,
31,
202,
202,
759,
3010,
353,
20573,
18,
202,
202,
430,
261,
401,
1734,
620,
18,
291,
12793,
12,
262,
262,
1082,
202,
2463,
1278,
620,
31,
202,
202,
15478,
1046,
1018,
273,
1278,
620,
18,
21336,
12,
11272,
202,
202,
11231,
1018,
480,
446,
31,
202,
202,
759,
2073,
618,
18,
202,
202,
430,
261,
401,
3299,
18,
588,
3262,
82,
12,
262,
18,
291,
5677,
951,
12,
1018,
3262,
82,
262,
262,
1082,
202,
12849,
394,
4276,
9738,
12,
1018,
18,
17994,
12,
262,
16,
6862,
202,
1396,
9738,
18,
1639,
11260,
67,
12658,
67,
7181,
7390,
67,
10976,
67,
2399,
16,
6862,
202,
22802,
18,
10976,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3010,
30556,
1954,
19733,
12,
5924,
1605,
16,
1082,
202,
1046,
3262,
82,
1018,
3262,
82,
16,
4276,
3262,
82,
2270,
3262,
82,
16,
514,
508,
262,
1082,
202,
15069,
4276,
9738,
202,
95,
202,
202,
529,
273,
14205,
18,
5290,
780,
12,
508,
11272,
202,
202,
430,
261,
508,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
45,
22542,
3819,
930,
4301,
273,
1605,
9506,
202,
18,
588,
22542,
3819,
12,
1018,
3262,
82,
18,
17994,
3819,
734,
12,
262,
11272,
202,
202,
1046,
30556,
1278,
620,
273,
446,
31,
202,
202,
759,
4582,
648,
364,
5006,
1272,
3241,
518,
848,
506,
302,
577,
71,
715,
29230,
18,
202,
202,
1734,
620,
273,
2
] |
public void testCollectModify() throws Exception { //read in the source final Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_Collect.drl" ) ); final DrlParser parser = new DrlParser(); final PackageDescr packageDescr = parser.parse( reader ); //pre build the package final PackageBuilder builder = new PackageBuilder(); builder.addPackage( packageDescr ); final Package pkg = builder.getPackage(); //add the package to a rulebase final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); //load up the rulebase final WorkingMemory wm = ruleBase.newWorkingMemory(); List results = new ArrayList(); wm.setGlobal( "results", results ); Cheese[] cheese = new Cheese[] { new Cheese("stilton", 10), new Cheese("stilton", 2), new Cheese("stilton", 5), new Cheese("brie", 15), new Cheese("brie", 16), new Cheese("provolone", 8) }; Person bob = new Person("Bob", "stilton"); FactHandle[] cheeseHandles = new FactHandle[cheese.length]; for( int i = 0; i < cheese.length; i++ ) { cheeseHandles[i] = wm.assertObject( cheese[i] ); } FactHandle bobHandle = wm.assertObject( bob ); // ---------------- 1st scenario int fireCount = 0; wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 2nd scenario int index = 1; cheese[index].setPrice( 9 ); wm.modifyObject( cheeseHandles[index], cheese[index] ); wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 3rd scenario bob.setLikes( "brie" ); wm.modifyObject( bobHandle, bob ); wm.fireAllRules(); Assert.assertEquals( fireCount, results.size() ); // ---------------- 4th scenario wm.retractObject( cheeseHandles[3] ); wm.fireAllRules(); // should not have fired as per constraint Assert.assertEquals( fireCount, results.size()); } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/8bf342687afa7ece5d554db21146984eff9076c8/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
18,
72,
1321,
6,
262,
11272,
3639,
727,
463,
1321,
2678,
2082,
273,
394,
463,
1321,
2678,
5621,
3639,
727,
7508,
16198,
2181,
16198,
273,
2082,
18,
2670,
12,
2949,
11272,
3639,
368,
1484,
1361,
326,
2181,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
12,
2181,
16198,
11272,
3639,
727,
7508,
3475,
273,
2089,
18,
588,
2261,
5621,
3639,
368,
1289,
326,
2181,
358,
279,
1720,
1969,
3639,
727,
6781,
2171,
1720,
2171,
273,
19048,
2171,
5621,
3639,
1720,
2171,
18,
1289,
2261,
12,
3475,
11272,
3639,
368,
945,
731,
326,
1720,
1969,
3639,
727,
22732,
6031,
18200,
273,
1720,
2171,
18,
2704,
14836,
6031,
5621,
3639,
987,
1686,
273,
394,
2407,
5621,
7734,
18200,
18,
542,
5160,
12,
315,
4717,
3113,
1686,
11272,
7734,
22682,
3392,
8526,
19315,
3392,
273,
394,
22682,
3392,
8526,
288,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
1728,
3631,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
576,
3631,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
1381,
3631,
15604,
394,
22682,
3392,
2932,
70,
566,
73,
3113,
4711,
3631,
15604,
394,
22682,
3392,
2932,
70,
566,
73,
3113,
2872,
3631,
15604,
394,
22682,
3392,
2932,
685,
15416,
476,
3113,
1725,
13,
3639,
289,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
18,
72,
1321,
6,
262,
11272,
3639,
727,
463,
1321,
2678,
2082,
273,
394,
463,
1321,
2678,
5621,
3639,
727,
7508,
16198,
2181,
16198,
273,
2082,
18,
2670,
12,
2949,
11272,
3639,
368,
1484,
1361,
326,
2181,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
12,
2181,
16198,
11272,
3639,
727,
7508,
3475,
273,
2089,
18,
588,
2261,
5621,
3639,
368,
1289,
326,
2181,
358,
279,
1720,
1969,
3639,
727,
6781,
2171,
1720,
2171,
273,
19048,
2171,
5621,
2
] |
||
if(source == save) | if(source == selectAll) { try { selectAllFlag = true; bufferList.setSelectionInterval(0, bufferModel.getSize()); } finally { selectAllFlag = false; } } else if(source == save) | public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == save) { Object[] paths = bufferList.getSelectedValues(); for(int i = 0; i < paths.length; i++) { String path = (String)paths[i]; Buffer buffer = jEdit.getBuffer(path); if(!buffer.save(view,null,true)) return; VFSManager.waitForRequests(); jEdit._closeBuffer(view,buffer); bufferModel.removeElement(path); } updateButtons(); if(bufferModel.getSize() == 0) { ok = true; dispose(); } } else if(source == discard) { Object[] paths = bufferList.getSelectedValues(); for(int i = 0; i < paths.length; i++) { String path = (String)paths[i]; Buffer buffer = jEdit.getBuffer(path); jEdit._closeBuffer(view,buffer); bufferModel.removeElement(path); } updateButtons(); if(bufferModel.getSize() == 0) { ok = true; dispose(); } } else if(source == cancel) cancel(); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3458bb479e4eca18d0f14f79d9dd58e1db1575de/CloseDialog.java/buggy/org/gjt/sp/jedit/gui/CloseDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1923,
13,
1082,
202,
95,
9506,
202,
921,
8526,
2953,
273,
1613,
682,
18,
588,
7416,
1972,
5621,
9506,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
277,
27245,
9506,
202,
95,
6862,
202,
780,
589,
273,
261,
780,
13,
4481,
63,
77,
15533,
6862,
202,
1892,
1613,
273,
525,
4666,
18,
588,
1892,
12,
803,
1769,
6862,
202,
430,
12,
5,
4106,
18,
5688,
12,
1945,
16,
2011,
16,
3767,
3719,
25083,
202,
2463,
31,
6862,
202,
58,
4931,
1318,
18,
7048,
1290,
6421,
5621,
6862,
202,
78,
4666,
6315,
4412,
1892,
12,
1945,
16,
4106,
1769,
6862,
202,
4106,
1488,
18,
4479,
1046,
12,
803,
1769,
9506,
202,
97,
9506,
202,
2725,
14388,
5621,
9506,
202,
430,
12,
4106,
1488,
18,
588,
1225,
1435,
422,
374,
13,
9506,
202,
95,
6862,
202,
601,
273,
638,
31,
6862,
202,
2251,
4150,
5621,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3168,
422,
10388,
13,
1082,
202,
95,
9506,
202,
921,
8526,
2953,
273,
1613,
682,
18,
588,
7416,
1972,
5621,
9506,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
277,
27245,
9506,
202,
95,
6862,
202,
780,
589,
273,
261,
780,
13,
4481,
63,
77,
15533,
6862,
202,
1892,
1613,
273,
525,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1923,
13,
1082,
202,
95,
9506,
202,
921,
8526,
2953,
273,
1613,
682,
18,
588,
7416,
1972,
5621,
9506,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
277,
27245,
9506,
202,
95,
6862,
202,
780,
589,
273,
261,
780,
13,
4481,
63,
77,
15533,
6862,
202,
1892,
1613,
273,
525,
4666,
18,
588,
1892,
12,
803,
1769,
6862,
202,
430,
12,
5,
4106,
18,
5688,
12,
1945,
16,
2011,
16,
3767,
3719,
25083,
202,
2463,
31,
6862,
202,
58,
4931,
1318,
18,
7048,
1290,
2
] |
cat2.addTask(task6); | cat2.addTask(task6); | public void testCreationAndExternalization() { File file = new File("foo" + MylarTasksPlugin.FILE_EXTENSION); file.deleteOnExit(); TaskListManager manager = new TaskListManager(file); TaskList tlist = manager.getTaskList(); Task task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 1"); tlist.addRootTask(task1); Task sub1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub 1"); task1.addSubTask(sub1); sub1.setParent(task1); Task task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 2"); tlist.addRootTask(task2); TaskCategory cat1 = new TaskCategory("Category 1"); tlist.addCategory(cat1); Task task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 3"); cat1.addTask(task3); Task sub2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub 2"); task3.addSubTask(sub2); sub2.setParent(task3); Task task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 4"); cat1.addTask(task4); TaskCategory cat2 = new TaskCategory("Category 2"); tlist.addCategory(cat2); Task task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 5"); cat2.addTask(task5); Task task6 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "task 6"); cat2.addTask(task6); assertEquals(manager.getTaskList().getRoots().size(), 4); manager.saveTaskList(); assertNotNull(manager.getTaskList()); TaskList list = new TaskList(); manager.setTaskList(list); manager.readTaskList(); assertNotNull(manager.getTaskList()); assertEquals(2, manager.getTaskList().getRootTasks().size()); assertEquals(2, manager.getTaskList().getCategories().size()); check(manager); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/be1e5de715cb7f403726dd3d9db59f5a0c8c6dcc/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9906,
1876,
6841,
1588,
1435,
288,
3639,
1387,
585,
273,
394,
1387,
2932,
11351,
6,
397,
8005,
7901,
6685,
3773,
18,
3776,
67,
12796,
1769,
3639,
585,
18,
3733,
1398,
6767,
5621,
3639,
3837,
682,
1318,
3301,
273,
394,
3837,
682,
1318,
12,
768,
1769,
7734,
3837,
682,
268,
1098,
273,
3301,
18,
588,
2174,
682,
5621,
3639,
3837,
1562,
21,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
9334,
315,
4146,
404,
8863,
3639,
268,
1098,
18,
1289,
2375,
2174,
12,
4146,
21,
1769,
3639,
3837,
720,
21,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
9334,
315,
1717,
404,
8863,
3639,
1562,
21,
18,
1289,
1676,
2174,
12,
1717,
21,
1769,
5411,
720,
21,
18,
542,
3054,
12,
4146,
21,
1769,
3639,
3837,
1562,
22,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
9334,
315,
4146,
576,
8863,
3639,
268,
1098,
18,
1289,
2375,
2174,
12,
4146,
22,
1769,
3639,
3837,
4457,
6573,
21,
273,
394,
3837,
4457,
2932,
4457,
404,
8863,
3639,
268,
1098,
18,
1289,
4457,
12,
2574,
21,
1769,
3639,
3837,
1562,
23,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
9334,
315,
4146,
890,
8863,
3639,
6573,
21,
18,
1289,
2174,
12,
4146,
23,
1769,
3639,
3837,
720,
22,
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,
1842,
9906,
1876,
6841,
1588,
1435,
288,
3639,
1387,
585,
273,
394,
1387,
2932,
11351,
6,
397,
8005,
7901,
6685,
3773,
18,
3776,
67,
12796,
1769,
3639,
585,
18,
3733,
1398,
6767,
5621,
3639,
3837,
682,
1318,
3301,
273,
394,
3837,
682,
1318,
12,
768,
1769,
7734,
3837,
682,
268,
1098,
273,
3301,
18,
588,
2174,
682,
5621,
3639,
3837,
1562,
21,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
9334,
315,
4146,
404,
8863,
3639,
268,
1098,
18,
1289,
2375,
2174,
12,
4146,
21,
1769,
3639,
3837,
720,
21,
273,
394,
3837,
12,
12062,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
30182,
2
] |
public void pushTreeChangedEvent(NodeRef nodeRef) { pushTreeChangedEvent(new TreeChangedEvent((Node)nodeRef)); | public void pushTreeChangedEvent() { pushTreeChangedEvent(new TreeChangedEvent()); | public void pushTreeChangedEvent(NodeRef nodeRef) { pushTreeChangedEvent(new TreeChangedEvent((Node)nodeRef)); } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/1d0917163679a41ce4b3462ba04d08b6bcdad306/TreeModel.java/clean/trunk/src/dr/evomodel/tree/TreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1817,
2471,
27553,
12,
907,
1957,
756,
1957,
13,
288,
3639,
1817,
2471,
27553,
12,
2704,
4902,
27553,
12443,
907,
13,
2159,
1957,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1817,
2471,
27553,
12,
907,
1957,
756,
1957,
13,
288,
3639,
1817,
2471,
27553,
12,
2704,
4902,
27553,
12443,
907,
13,
2159,
1957,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
continue; | switch (rule.getRule()) { case CompositeRule.RULE_IN: return null; case CompositeRule.RULE_ARITHMETIC: { BufferedImage blank; if (csIsLinear) blank = GraphicsUtil.makeLinearBufferedImage (r.width, r.height, true); else blank = new BufferedImage (r.width, r.height, BufferedImage.TYPE_INT_ARGB_PRE); ri = new BufferedImageCachableRed(blank, r.x, r.y); } break; case CompositeRule.RULE_OUT: { g2d.setComposite(AlphaComposite.Clear); g2d.setColor(new Color(0, 0, 0, 0)); g2d.fillRect(r.x, r.y, r.width, r.height); g2d.setComposite(comp); } first = false; continue; default: first = false; continue; } | public RenderedImage createRendering(RenderContext rc) { if (srcs.size() == 0) return null; // This is an optimized version that does two things. // 1) It only renders the portion needed for display // 2) It uses GraphicsUtil.drawImage to draw the Renderable // sources. This is useful since it often allows it // to bypass intermediate images... if (rule == CompositeRule.OVER) return createRenderingOver(rc); // System.out.println("Rendering General: " + rule); // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // update the current affine transform AffineTransform at = rc.getTransform(); Rectangle2D aoi = rc.getAreaOfInterest().getBounds2D(); if (aoi == null) aoi = getBounds2D(); else { Rectangle2D bounds2d = getBounds2D(); if (bounds2d.intersects(aoi) == false) return null; Rectangle2D.intersect(aoi, bounds2d, aoi); } // AOI bounds in device space. Ideally we would limit r to // the actual region needed based on the current mode. So for // IN we only need the intersection of all source. For OUT we // only need the region under the last source (most of the // rest are r so I don't worry about it too much). Rectangle r = at.createTransformedShape(aoi).getBounds(); BufferedImage bi; if (csIsLinear) bi = GraphicsUtil.makeLinearBufferedImage (r.width, r.height, true); else bi = new BufferedImage(r.width, r.height, BufferedImage.TYPE_INT_ARGB_PRE); WritableRaster wr = bi.getRaster(); Composite comp = new SVGComposite(rule); Graphics2D g2d = bi.createGraphics(); // Make sure we draw with what hints we have. g2d.setRenderingHints(rh); g2d.setComposite(comp); g2d.translate(-r.x, -r.y); rc = new RenderContext(at, aoi, rh); Iterator i = srcs.iterator(); boolean first = true; while (i.hasNext()) { // Get the source to work with... Filter filt = (Filter)i.next(); // Get our sources image... RenderedImage ri = filt.createRendering(rc); // No output image keep going // FIXX: Should we do something different for IN/OUT/ARITH??? if (ri == null) continue; CachableRed cr; cr = GraphicsUtil.wrap(ri); if (csIsLinear) cr = GraphicsUtil.convertToLsRGB(cr); else cr = GraphicsUtil.convertTosRGB(cr); if ((ri.getMinX() != r.x) || (ri.getMinY() != r.y) || (ri.getWidth() != r.width) || (ri.getHeight() != r.height)) { cr = new PadRed(cr, r, PadMode.ZERO_PAD, rh); } if (first) { wr = wr.createWritableTranslatedChild(r.x, r.y); cr.copyData(wr); if (cr.getColorModel().isAlphaPremultiplied() == false) { GraphicsUtil.coerceData(wr, cr.getColorModel(), true); } wr = bi.getRaster(); first = false; } else { // If I allow any of the other modes to fall into // the draw case they fail miserably. But OVER // is used alot and is significantly faster in the // draw case, and works as long as the source and dest // colorspace match (which the always will here). if (csIsLinear && (rule != CompositeRule.OVER)) { // System.out.println("In manual"); Raster ras = cr.getData(r); ras = ras.createTranslatedChild(0,0); CompositeContext compCont; compCont = comp.createContext(cr.getColorModel(), bi.getColorModel(), rh); compCont.compose(ras, wr, wr); } else { // System.out.println("In Draw"); GraphicsUtil.drawImage(g2d, cr); } } } // System.out.println("Done General: " + rule); return new BufferedImageCachableRed(bi, r.x, r.y); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/5bdc5fea9d792abece807ea8eef98bd5e32b68fa/CompositeRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/CompositeRable8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
309,
261,
4816,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
368,
1220,
353,
392,
15411,
1177,
716,
1552,
2795,
9198,
18,
3639,
368,
404,
13,
2597,
1338,
19567,
326,
14769,
3577,
364,
2562,
3639,
368,
576,
13,
2597,
4692,
16830,
1304,
18,
9446,
2040,
358,
3724,
326,
6987,
429,
3639,
368,
565,
5550,
18,
225,
1220,
353,
5301,
3241,
518,
16337,
5360,
518,
3639,
368,
565,
358,
17587,
12110,
4602,
2777,
3639,
309,
261,
5345,
422,
14728,
2175,
18,
12959,
13,
5411,
327,
752,
14261,
4851,
12,
1310,
1769,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
14261,
9544,
30,
315,
397,
1720,
1769,
3639,
368,
12526,
1610,
1879,
326,
9782,
13442,
18,
3639,
22391,
6259,
273,
4519,
18,
588,
14261,
13368,
5621,
3639,
309,
261,
30138,
422,
446,
13,
6259,
273,
394,
22391,
12,
2011,
1769,
3639,
368,
1089,
326,
783,
28381,
2510,
3639,
23906,
558,
4059,
622,
273,
4519,
18,
588,
4059,
5621,
3639,
13264,
22,
40,
279,
11359,
273,
4519,
18,
588,
5484,
951,
29281,
7675,
588,
5694,
22,
40,
5621,
3639,
309,
261,
6033,
77,
422,
446,
13,
2398,
279,
11359,
273,
22107,
22,
40,
5621,
3639,
469,
288,
5411,
13264,
22,
40,
4972,
22,
72,
273,
22107,
22,
40,
5621,
5411,
309,
261,
10576,
22,
72,
18,
12288,
87,
12,
6033,
77,
13,
422,
629,
13,
7734,
327,
446,
31,
18701,
13264,
22,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
13,
288,
3639,
309,
261,
4816,
87,
18,
1467,
1435,
422,
374,
13,
5411,
327,
446,
31,
3639,
368,
1220,
353,
392,
15411,
1177,
716,
1552,
2795,
9198,
18,
3639,
368,
404,
13,
2597,
1338,
19567,
326,
14769,
3577,
364,
2562,
3639,
368,
576,
13,
2597,
4692,
16830,
1304,
18,
9446,
2040,
358,
3724,
326,
6987,
429,
3639,
368,
565,
5550,
18,
225,
1220,
353,
5301,
3241,
518,
16337,
5360,
518,
3639,
368,
565,
358,
17587,
12110,
4602,
2777,
3639,
309,
261,
5345,
422,
14728,
2175,
18,
12959,
13,
5411,
327,
752,
14261,
4851,
12,
1310,
1769,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
14261,
9544,
30,
2
] |
if ((jjbitVec0[i2] & l2) != 0L && kind > 9) kind = 9; | if ((jjbitVec0[i2] & l2) != 0L && kind > 10) kind = 10; | private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 11; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 34) jjCheckNAddTwoStates(5, 6); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 9) kind = 9; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 34) jjCheckNAddTwoStates(5, 6); break; case 5: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 34 && kind > 20) kind = 20; break; case 8: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjstateSet[jjnewStateCnt++] = 8; break; case 9: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 10; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(8); break; case 1: if (kind > 9) kind = 9; break; case 5: jjAddStates(2, 3); break; case 8: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(8); break; case 10: if ((0x7fffffe07fffffeL & l) != 0L && kind > 54) kind = 54; break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((jjbitVec0[i2] & l2) != 0L && kind > 9) kind = 9; break; case 5: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(2, 3); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 11 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/b827d0bf89e728dc8324fc63c2ad3662c9d19cd3/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,
50,
507,
67,
23,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4648,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
261,
1397,
2156,
422,
17077,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
1728,
31,
5375,
469,
309,
261,
1397,
2156,
422,
13438,
13,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
25,
16,
1666,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
576,
31,
5375,
898,
31,
9079,
648,
374,
30,
5375,
309,
261,
1397,
2156,
422,
14856,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
404,
31,
5375,
898,
31,
9079,
648,
404,
30,
5375,
309,
14015,
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,
3238,
727,
509,
10684,
7607,
50,
507,
67,
23,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4648,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
XBoxPanel buttonsPanel; buttonsPanel = new XBoxPanel(); clearButton = new JButton(Translator.get("run_dialog.clear_history")); | public RunDialog(MainFrame mainFrame) { super(mainFrame, Translator.get("com.mucommander.ui.action.RunCommandAction.label"), mainFrame); this.mainFrame = mainFrame; Container contentPane = getContentPane(); YBoxPanel mainPanel = new YBoxPanel(); JLabel label = new JLabel(Translator.get("run_dialog.run_command_description")+":"); mainPanel.add(label); inputCombo = new ShellComboBox(this); mainPanel.add(inputCombo); mainPanel.addSpace(10); contentPane.add(mainPanel, BorderLayout.NORTH); mainPanel.add(new JLabel(Translator.get("run_dialog.command_output")+":")); outputTextArea = new JTextArea(); outputTextArea.setLineWrap(true); outputTextArea.setRows(10); outputTextArea.setEditable(false); outputTextArea.addKeyListener(this); // Set custom text, selected text, background and selection background colors Color textColor = ConfigurationManager.getVariableColor(TEXT_COLOR_VAR, DEFAULT_TEXT_COLOR); outputTextArea.setForeground(textColor); // Selected text color and text color are the same outputTextArea.setSelectedTextColor(textColor); outputTextArea.setBackground(ConfigurationManager.getVariableColor(BACKGROUND_COLOR_VAR, DEFAULT_BACKGROUND_COLOR)); outputTextArea.setSelectionColor(ConfigurationManager.getVariableColor(SELECTION_BACKGROUND_COLOR_VAR, DEFAULT_SELECTION_BACKGROUND_COLOR)); outputTextArea.setCaretColor(textColor); // Use a monospaced font in the command field and process output text area, as most terminals do. // The logical "Monospaced" font name is always available in Java. // The font size is the one of the default JTextArea, style is plain. Font monospacedFont = new Font("Monospaced", Font.PLAIN, outputTextArea.getFont().getSize()); outputTextArea.setFont(monospacedFont); JScrollPane scrollPane = new JScrollPane(outputTextArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); contentPane.add(scrollPane, BorderLayout.CENTER); // Run / Cancel buttons panel runStopButton = new JButton(Translator.get("run_dialog.run")); cancelButton = new JButton(Translator.get("cancel")); contentPane.add(DialogToolkit.createOKCancelPanel(runStopButton, cancelButton, this), BorderLayout.SOUTH); // Path field will receive initial focus setInitialFocusComponent(inputCombo); setMinimumSize(MINIMUM_DIALOG_DIMENSION); // setMaximumSize(MAXIMUM_DIALOG_DIMENSION); // Closing this dialog kills the process addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent e) { if(currentProcess!=null) { processInput.close(); currentProcess.destroy(); } } }); // Make the 'Run/stop' button the default button getRootPane().setDefaultButton(runStopButton); inputCombo.setEnabled(true); showDialog(); } | 12534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12534/b4c3480427b4bc3aacf2b9be7bbfdc355d320984/RunDialog.java/clean/source/com/mucommander/ui/RunDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
1071,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
1939,
6353,
12,
6376,
3219,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
2774,
3219,
13,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
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,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
5537,
31,
225,
9502,
5537,
1377,
273,
394,
1139,
3514,
5537,
5621,
225,
2424,
3616,
282,
273,
394,
28804,
12,
12233,
18,
588,
2932,
2681,
67,
12730,
18,
8507,
67,
8189,
7923,
1769,
225,
1139,
3514,
5537,
9502,
2
] |
|
if( index < chars.length ) opcode = str.substring( 0, index ); | opcode = str.substring( 0, index ); | void parse(MITuple tuple) { MIResult[] results = tuple.getMIResults(); for (int i = 0; i < results.length; i++) { String var = results[i].getVariable(); MIValue value = results[i].getMIValue(); String str = ""; if (value != null && value instanceof MIConst) { str = ((MIConst)value).getCString(); } if (var.equals("address")) { try { address = Long.decode(str.trim()).longValue(); } catch (NumberFormatException e) { } } else if (var.equals("func-name")) { function = str; } else if (var.equals("offset")) { try { offset = Long.decode(str.trim()).longValue(); } catch (NumberFormatException e) { } } else if (var.equals("inst")) { /* for the instruction, we do not want the C string but the translated string since the only thing we are doing is displaying it. */ str = ((MIConst)value).getString(); char chars[] = str.toCharArray(); int index = 0; // count the non-whitespace characters. while( (index < chars.length) && (chars[index] > '\u0020')) index++; // guard all whitespace if( index < chars.length ) opcode = str.substring( 0, index ); // skip any whitespace characters while( index < chars.length && chars[index] >= '\u0000' && chars[index] <= '\u0020') index++; // guard no argument if( index < chars.length ) args = str.substring( index ); } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/783c8d5e5e47411f3b5a2cc2d83b7cf869fea8e3/MIAsm.java/clean/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIAsm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1109,
12,
6068,
2268,
3193,
13,
288,
202,
202,
7492,
1253,
8526,
1686,
273,
3193,
18,
588,
7492,
3447,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1686,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
569,
273,
1686,
63,
77,
8009,
588,
3092,
5621,
1082,
202,
7492,
620,
460,
273,
1686,
63,
77,
8009,
588,
7492,
620,
5621,
1082,
202,
780,
609,
273,
1408,
31,
1082,
202,
430,
261,
1132,
480,
446,
597,
460,
1276,
20806,
9661,
13,
288,
9506,
202,
701,
273,
14015,
7492,
9661,
13,
1132,
2934,
588,
39,
780,
5621,
1082,
202,
97,
1082,
202,
430,
261,
1401,
18,
14963,
2932,
2867,
6,
3719,
288,
9506,
202,
698,
288,
6862,
202,
2867,
273,
3407,
18,
3922,
12,
701,
18,
5290,
1435,
2934,
5748,
620,
5621,
9506,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
1401,
18,
14963,
2932,
644,
17,
529,
6,
3719,
288,
9506,
202,
915,
273,
609,
31,
1082,
202,
97,
469,
309,
261,
1401,
18,
14963,
2932,
3348,
6,
3719,
288,
9506,
202,
698,
288,
6862,
202,
3348,
273,
3407,
18,
3922,
12,
701,
18,
5290,
1435,
2934,
5748,
620,
5621,
9506,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
1401,
18,
14963,
2932,
8591,
6,
3719,
288,
9506,
202,
20308,
364,
326,
7592,
16,
732,
741,
486,
2545,
326,
385,
533,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1109,
12,
6068,
2268,
3193,
13,
288,
202,
202,
7492,
1253,
8526,
1686,
273,
3193,
18,
588,
7492,
3447,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1686,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
569,
273,
1686,
63,
77,
8009,
588,
3092,
5621,
1082,
202,
7492,
620,
460,
273,
1686,
63,
77,
8009,
588,
7492,
620,
5621,
1082,
202,
780,
609,
273,
1408,
31,
1082,
202,
430,
261,
1132,
480,
446,
597,
460,
1276,
20806,
9661,
13,
288,
9506,
202,
701,
273,
14015,
7492,
9661,
13,
1132,
2934,
588,
39,
780,
5621,
1082,
202,
97,
1082,
202,
430,
261,
1401,
18,
14963,
2932,
2867,
6,
3719,
288,
9506,
202,
2
] |
boolean trueNs = true; | boolean trueNs = false; | private static Map<String,String> parseUserAgent(String agent) { Map<String,String> macros = new HashMap<String,String>(); // state double browserVersion = -1.0; double geckoDate = 0; double mozVersion = -1; boolean isMac = false; boolean isWindows = false; boolean isLinux = false; boolean isNav = false; boolean isIE = false; boolean isNav4 = false; boolean trueNs = true; boolean isNav6 = false; boolean isNav6up = false; boolean isNav7 = false; boolean isIE3 = false; boolean isIE4 = false; boolean isIE4up = false; boolean isIE5 = false; boolean isIE5_5 = false; boolean isIE5up = false; boolean isIE5_5up = false; boolean isIE6 = false; boolean isIE6up = false; boolean isFirefox = false; boolean isFirefox1up = false; boolean isFirefox1_5up = false; boolean isMozilla = false; boolean isMozilla1_4up = false; boolean isSafari = false; boolean isGeckoBased = false; boolean isOpera = false; // parse user agent String agt = agent.toLowerCase(); //System.err.println("USER-AGENT: "+agt); StringTokenizer agtArr = new StringTokenizer(agt, " "); int i = 0; int index = -1; boolean isSpoofer = false; boolean isWebTv = false; boolean isHotJava = false; boolean beginsWithMozilla = false; boolean isCompatible = false; if (agtArr.hasMoreTokens()) { String token = agtArr.nextToken(); Pattern pattern = Pattern.compile("\\s*mozilla"); Matcher mozilla = pattern.matcher(token); if (mozilla.find()){ index = mozilla.start(); beginsWithMozilla = true; browserVersion = parseFloat(token.substring(index + 8)); isNav = true; } do { //System.err.println("TOKEN: "+token); if (token.indexOf("compatible") != -1 ) { isCompatible = true; isNav = false; } else if ((token.indexOf("opera")) != -1){ isOpera = true; isNav = false; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((token.indexOf("spoofer")) != -1){ isSpoofer = true; isNav = false; } else if ((token.indexOf("webtv")) != -1) { isWebTv = true; isNav = false; } else if ((token.indexOf("hotjava")) != -1) { isHotJava = true; isNav = false; } else if ((index = token.indexOf("msie")) != -1) { isIE = true; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((index = token.indexOf("gecko/")) != -1){ isGeckoBased = true; geckoDate = Float.parseFloat(token.substring(index + 6)); } else if ((index = token.indexOf("rv:")) != -1){ mozVersion = parseFloat(token.substring(index + 3)); browserVersion = mozVersion; } else if ((index = token.indexOf("firefox/")) != -1){ isFirefox = true; browserVersion = parseFloat(token.substring(index + 8)); } else if ((index = token.indexOf("netscape6/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 10)); } else if ((index = token.indexOf("netscape/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 9)); } else if ((index = token.indexOf("safari/")) != -1){ isSafari = true; browserVersion = parseFloat(token.substring(index + 7)); } else if (token.indexOf("windows") != -1){ isWindows = true; } else if ((token.indexOf("macintosh") != -1) || (token.indexOf("mac_") != -1)){ isMac = true; } else if (token.indexOf("linux") != -1){ isLinux = true; } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; } while (token != null); // Note: Opera and WebTV spoof Navigator. // We do strict client detection. isNav = (beginsWithMozilla && !isSpoofer && !isCompatible && !isOpera && !isWebTv && !isHotJava && !isSafari); isIE = (isIE && !isOpera); isNav4 = (isNav && (browserVersion == 4) && (!isIE)); isNav6 = (isNav && trueNs && (browserVersion >=6.0) && (browserVersion < 7.0)); isNav6up = (isNav && trueNs && (browserVersion >= 6.0)); isNav7 = (isNav && trueNs && (browserVersion == 7.0)); isIE3 = (isIE && (browserVersion < 4)); isIE4 = (isIE && (browserVersion == 4) && (browserVersion == 4.0)); isIE4up = (isIE && (browserVersion >= 4)); isIE5 = (isIE && (browserVersion == 4) && (browserVersion == 5.0)); isIE5_5 = (isIE && (browserVersion == 4) && (browserVersion == 5.5)); isIE5up = (isIE && (browserVersion >= 5.0)); isIE5_5up =(isIE && (browserVersion >= 5.5)); isIE6 = (isIE && (browserVersion == 6.0)); isIE6up = (isIE && (browserVersion >= 6.0)); isMozilla = ((isNav && mozVersion > -1.0 && isGeckoBased && (geckoDate != 0))); isMozilla1_4up = (isMozilla && (mozVersion >= 1.4)); isFirefox = ((isMozilla && isFirefox)); isFirefox1up = (isFirefox && browserVersion >= 1.0); isFirefox1_5up = (isFirefox && browserVersion >= 1.5); // operating systems define(macros, "WINDOWS", isWindows); define(macros, "MACINTOSH", isMac); define(macros, "LINUX", isLinux); // browser variants define(macros, "NAVIGATOR", isNav); define(macros, "NAVIGATOR_4", isNav4); define(macros, "NAVIGATOR_6", isNav6); define(macros, "NAVIGATOR_6_OR_HIGHER", isNav6up); define(macros, "NAVIGATOR_7", isNav7); define(macros, "NAVIGATOR_COMPATIBLE", isCompatible); define(macros, "MOZILLA", isMozilla); define(macros, "MOZILLA_1_4_OR_HIGHER", isMozilla1_4up); define(macros, "FIREFOX", isFirefox); define(macros, "FIREFOX_1_OR_HIGHER", isFirefox1up); define(macros, "FIREFOX_1_5_OR_HIGHER", isFirefox1_5up); define(macros, "GECKO", isGeckoBased); define(macros, "MSIE", isIE); define(macros, "MSIE_3", isIE3); define(macros, "MSIE_4", isIE4); define(macros, "MSIE_4_OR_HIGHER", isIE4up); define(macros, "MSIE_5", isIE5); define(macros, "MSIE_5_OR_HIGHER", isIE5up); define(macros, "MSIE_5_5", isIE5_5); define(macros, "MSIE_5_5_OR_HIGHER", isIE5_5up); define(macros, "MSIE_6", isIE6); define(macros, "MSIE_6_OR_HIGHER", isIE6up); define(macros, "SAFARI", isSafari); define(macros, "WEBTV", isWebTv); define(macros, "HOTJAVA", isHotJava); } return macros; } // parseUserAgent(String,Map<String,String>) | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/fea247a33b2a39b897009b172ac6c4ac114a6142/SkinResources.java/clean/ZimbraWebClient/src/com/zimbra/webClient/servlet/SkinResources.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
759,
919,
202,
202,
9056,
4748,
1444,
273,
300,
21,
18,
20,
31,
202,
202,
9056,
314,
31319,
1626,
273,
374,
31,
202,
202,
9056,
7344,
94,
1444,
273,
300,
21,
31,
202,
202,
6494,
353,
9990,
273,
629,
31,
202,
202,
6494,
353,
10399,
273,
629,
31,
202,
202,
6494,
353,
19475,
273,
629,
31,
202,
202,
6494,
8197,
842,
225,
273,
629,
31,
202,
202,
6494,
353,
8732,
273,
629,
31,
202,
202,
6494,
8197,
842,
24,
273,
629,
31,
202,
202,
6494,
638,
10386,
273,
638,
31,
202,
202,
6494,
8197,
842,
26,
273,
629,
31,
202,
202,
6494,
8197,
842,
26,
416,
273,
629,
31,
202,
202,
6494,
8197,
842,
27,
273,
629,
31,
202,
202,
6494,
353,
8732,
23,
273,
629,
31,
202,
202,
6494,
353,
8732,
24,
273,
629,
31,
202,
202,
6494,
353,
8732,
24,
416,
273,
629,
31,
202,
202,
6494,
353,
8732,
25,
273,
629,
31,
202,
202,
6494,
353,
8732,
25,
67,
25,
273,
629,
31,
202,
202,
6494,
353,
8732,
25,
416,
273,
629,
31,
202,
202,
6494,
353,
8732,
25,
67,
25,
416,
273,
629,
31,
202,
202,
6494,
353,
8732,
26,
225,
273,
629,
31,
202,
202,
6494,
353,
8732,
26,
416,
273,
629,
31,
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,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
759,
919,
202,
202,
9056,
4748,
1444,
273,
300,
21,
18,
20,
31,
202,
202,
9056,
314,
31319,
1626,
273,
374,
31,
202,
202,
9056,
7344,
94,
1444,
273,
300,
21,
31,
202,
202,
6494,
353,
9990,
273,
629,
31,
202,
202,
6494,
353,
10399,
273,
629,
31,
202,
202,
6494,
353,
19475,
273,
629,
31,
202,
202,
6494,
8197,
842,
225,
273,
629,
31,
202,
202,
6494,
353,
8732,
273,
629,
31,
202,
202,
6494,
8197,
842,
24,
273,
629,
31,
2
] |
java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | public boolean getScrollableTracksViewportHeight() { java.awt.Component parent = getParent(); if (parent instanceof javax.swing.JViewport) return parent.getHeight() > getPreferredSize().getHeight(); return false; } | 9790 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9790/7fa76698bc4a84a814a4bafa9f059c4187c75e05/FrameEditor.java/clean/mylang/src/mylang/gui/FrameEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
288,
7734,
2252,
18,
2219,
88,
18,
1841,
982,
273,
5089,
5621,
7734,
309,
261,
2938,
1276,
6863,
18,
5328,
310,
18,
46,
22743,
13,
7734,
327,
982,
18,
588,
2686,
1435,
405,
12822,
4193,
1225,
7675,
588,
2686,
5621,
7734,
327,
629,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
288,
7734,
2252,
18,
2219,
88,
18,
1841,
982,
273,
5089,
5621,
7734,
309,
261,
2938,
1276,
6863,
18,
5328,
310,
18,
46,
22743,
13,
7734,
327,
982,
18,
588,
2686,
1435,
405,
12822,
4193,
1225,
7675,
588,
2686,
5621,
7734,
327,
629,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gd = new GridData(); gd.horizontalAlignment = GridData.END; titleImage.setLayoutData(gd); | FormData imageData = new FormData(); imageData.right = new FormAttachment(100); imageData.top = new FormAttachment(0); titleImage.setLayoutData(imageData); FormData messageData = new FormData(); messageData.top = new FormAttachment(0); messageData.bottom = new FormAttachment(titleImage,0,SWT.BOTTOM); messageData.right = new FormAttachment(titleImage,0); messageData.left = new FormAttachment(0); messageArea.setLayoutData(messageData); | private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. titleArea = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 2; layout.marginWidth = 2; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; layout.numColumns = 2; // Get the background color for the title area Display display = parent.getDisplay(); Color background = JFaceColors.getBannerBackground(display); final Color foreground = JFaceColors.getBannerForeground(display); GridData layoutData = new GridData(GridData.FILL_BOTH); titleArea.setLayout(layout); titleArea.setLayoutData(layoutData); titleArea.setBackground(background); final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB); titleArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setForeground(borderColor); Rectangle bounds = titleArea.getClientArea(); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle(bounds); } }); // Add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); if (errorMsgAreaBackground != null) errorMsgAreaBackground.dispose(); borderColor.dispose(); } }); // Message label messageLabel = new CLabel(titleArea, SWT.LEFT); JFaceColors.setColors(messageLabel, foreground, background); messageLabel.setText(" "); //$NON-NLS-1$ messageLabel.setFont(JFaceResources.getBannerFont()); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (JFaceResources.BANNER_FONT.equals(event.getProperty())) updateMessage(); if (JFaceResources.DIALOG_FONT.equals(event.getProperty())) { updateMessage(); Font dialogFont = JFaceResources.getDialogFont(); updateTreeFont(dialogFont); Control[] children = ((Composite) buttonBar).getChildren(); for (int i = 0; i < children.length; i++) children[i].setFont(dialogFont); } } }; messageLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); GridData gd = new GridData(GridData.FILL_BOTH); messageLabel.setLayoutData(gd); // Title image titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(background); titleImage.setImage(JFaceResources.getImage(PREF_DLG_TITLE_IMG)); gd = new GridData(); gd.horizontalAlignment = GridData.END; titleImage.setLayoutData(gd); return titleArea; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2593c8913aa9b11026712adfe8471703134dfe05/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
5484,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
576,
31,
202,
202,
6741,
18,
17824,
18006,
273,
374,
31,
202,
202,
6741,
18,
18396,
18006,
273,
374,
31,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
759,
968,
326,
5412,
2036,
364,
326,
2077,
5091,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
2957,
5412,
273,
804,
11824,
12570,
18,
588,
27398,
8199,
12,
5417,
1769,
202,
202,
6385,
5563,
16231,
273,
804,
11824,
12570,
18,
588,
27398,
23206,
12,
5417,
1769,
202,
202,
6313,
751,
3511,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
2649,
5484,
18,
542,
3744,
12,
6741,
1769,
202,
202,
2649,
5484,
18,
542,
3744,
751,
12,
6741,
751,
1769,
202,
202,
2649,
5484,
18,
542,
8199,
12,
9342,
1769,
202,
202,
6385,
5563,
5795,
2957,
273,
394,
5563,
12,
2649,
5484,
18,
588,
4236,
9334,
4441,
1204,
18,
8815,
28018,
11343,
1769,
202,
202,
2649,
5484,
18,
1289,
12699,
2223,
12,
2704,
30001,
2223,
1435,
288,
1082,
202,
482,
918,
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,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
202,
2649,
5484,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
576,
31,
202,
202,
6741,
18,
17824,
18006,
273,
374,
31,
202,
202,
6741,
18,
18396,
18006,
273,
374,
31,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
759,
968,
326,
5412,
2036,
364,
326,
2077,
5091,
202,
202,
4236,
2562,
273,
2
] |
final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); | return toBoolean( getBooleanArg(evaluator, args, 0) || getBooleanArg(evaluator, args, 1)); | public Object evaluate(Evaluator evaluator, Exp[] args) { final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b51b7f4f6bfd44a884afd7801c1f0f8b9351674c/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
6385,
1250,
324,
20,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
9506,
202,
6385,
1250,
324,
21,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
404,
1769,
9506,
202,
2463,
358,
5507,
12,
70,
20,
480,
324,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
6385,
1250,
324,
20,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
9506,
202,
6385,
1250,
324,
21,
273,
12835,
4117,
12,
14168,
639,
16,
833,
16,
404,
1769,
9506,
202,
2463,
358,
5507,
12,
70,
20,
480,
324,
21,
1769,
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
] |
throw new RuntimeException(); | throw new RangeError(getRuby(), this.toString() + " out of char range"); | public RubyString chr() { if (getLongValue() < 0 || getLongValue() > 0xff) { // throw new RubyRangeException(); // HACK +++ throw new RuntimeException(); // HACK --- } return RubyString.newString(getRuby(), new String(new char[] {(char) getLongValue()})); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/c5505ec7f148e23ccef642f45d2ff27f7d7483c6/RubyInteger.java/buggy/org/jruby/RubyInteger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
4513,
1435,
288,
3639,
309,
261,
588,
3708,
620,
1435,
411,
374,
747,
11105,
620,
1435,
405,
374,
5297,
13,
288,
5411,
368,
604,
394,
19817,
2655,
503,
5621,
5411,
368,
670,
3649,
965,
15,
1850,
604,
394,
8086,
668,
12,
588,
54,
10340,
9334,
333,
18,
10492,
1435,
397,
315,
596,
434,
1149,
1048,
8863,
6647,
368,
670,
3649,
9948,
3639,
289,
3639,
327,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
394,
514,
12,
2704,
1149,
8526,
288,
12,
3001,
13,
11105,
620,
1435,
6792,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
19817,
780,
4513,
1435,
288,
3639,
309,
261,
588,
3708,
620,
1435,
411,
374,
747,
11105,
620,
1435,
405,
374,
5297,
13,
288,
5411,
368,
604,
394,
19817,
2655,
503,
5621,
5411,
368,
670,
3649,
965,
15,
1850,
604,
394,
8086,
668,
12,
588,
54,
10340,
9334,
333,
18,
10492,
1435,
397,
315,
596,
434,
1149,
1048,
8863,
6647,
368,
670,
3649,
9948,
3639,
289,
3639,
327,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
394,
514,
12,
2704,
1149,
8526,
288,
12,
3001,
13,
11105,
620,
1435,
6792,
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
] |
if(adapter.getResourceAdapterInstance() != null) { parents.add(adapter.getResourceAdapterInstance()); adapter.getResourceAdapterInstance().clearNullSettings(); } | private void clearNulls(List parents) { ResourceAdapter[] adapters = connector.getResourceAdapter(); for (int i = 0; i < adapters.length; i++) { ResourceAdapter adapter = adapters[i]; // todo: check resource adapter instances ConnectionDefinition defs[] = adapter.getConnectionDefinition(); for (int j = 0; j < defs.length; j++) { ConnectionDefinition def = defs[j]; ConnectionDefinitionInstance instances[] = def.getConnectionInstances(); for (int k = 0; k < instances.length; k++) { ConnectionDefinitionInstance instance = instances[k]; parents.add(instance); instance.clearNullSettings(); } } } //todo: check admin object instances } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/ca4cf8742cdb8304c284d0b10afdbd8c69ae747b/Connector15DCBRoot.java/clean/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/jsr88/Connector15DCBRoot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
3238,
430,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
918,
430,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
2424,
31326,
12,
682,
430,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
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,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
13,
288,
6298,
18,
1289,
12,
10204,
18,
588,
1420,
4216,
1442,
10663,
4516,
18,
588,
1420,
4216,
1442,
7675,
8507,
2041,
2628,
5621,
289,
309,
12,
10204,
18,
588,
1420,
4216,
1442,
1435,
480,
446,
2
] |
|
Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : getString("_UI_SortingStyle_type") + " " + label; } | Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : getString("_UI_SortingStyle_type") + " " + label; } | public String getText(Object object) { Sorting labelValue = ((SortingStyle)object).getSorting(); String label = labelValue == null ? null : labelValue.toString(); return label == null || label.length() == 0 ? getString("_UI_SortingStyle_type") : //$NON-NLS-1$ getString("_UI_SortingStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/SortingStyleItemProvider.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation.edit/src/org/eclipse/gmf/runtime/notation/provider/SortingStyleItemProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
18236,
1433,
620,
273,
14015,
18236,
2885,
13,
1612,
2934,
588,
18236,
5621,
202,
202,
780,
1433,
273,
1433,
620,
422,
446,
692,
446,
294,
1433,
620,
18,
10492,
5621,
202,
202,
2463,
1433,
422,
446,
747,
1433,
18,
2469,
1435,
422,
374,
692,
1082,
202,
588,
780,
2932,
67,
5370,
67,
18236,
2885,
67,
723,
7923,
294,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
588,
780,
2932,
67,
5370,
67,
18236,
2885,
67,
723,
7923,
397,
315,
315,
397,
1433,
31,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
733,
13,
288,
202,
202,
18236,
1433,
620,
273,
14015,
18236,
2885,
13,
1612,
2934,
588,
18236,
5621,
202,
202,
780,
1433,
273,
1433,
620,
422,
446,
692,
446,
294,
1433,
620,
18,
10492,
5621,
202,
202,
2463,
1433,
422,
446,
747,
1433,
18,
2469,
1435,
422,
374,
692,
1082,
202,
588,
780,
2932,
67,
5370,
67,
18236,
2885,
67,
723,
7923,
294,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
588,
780,
2932,
67,
5370,
67,
18236,
2885,
67,
723,
7923,
397,
315,
315,
397,
1433,
31,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ following.push(FOLLOW_literal_constraint_in_constraint1870); | { following.push(FOLLOW_literal_constraint_in_constraint1874); | public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:678:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1681); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:17: (fb= ID opt_eol ':' opt_eol )? int alt49=2; alt49 = dfa49.predict(input); switch (alt49) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:679:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1689); following.push(FOLLOW_opt_eol_in_constraint1691); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1693); following.push(FOLLOW_opt_eol_in_constraint1695); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1705); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1715); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt51=2; int LA51_0 = input.LA(1); if ( (LA51_0>=40 && LA51_0<=47) ) { alt51=1; } else if ( LA51_0==EOL||LA51_0==15||(LA51_0>=22 && LA51_0<=23) ) { alt51=2; } else { NoViableAltException nvae = new NoViableAltException("692:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:692:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1723); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1795); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt50=4; switch ( input.LA(1) ) { case ID: int LA50_1 = input.LA(2); if ( LA50_1==49 ) { alt50=2; } else if ( LA50_1==EOL||LA50_1==15||(LA50_1>=22 && LA50_1<=23) ) { alt50=1; } else { NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 48: alt50=3; break; case 21: alt50=4; break; default: NoViableAltException nvae = new NoViableAltException("702:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:702:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1813); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:709:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1838); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1870); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:722:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1890); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1923); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/7f81b86a0f548bd02b09afc74b46454cdf158154/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
1171,
202,
202,
3234,
16198,
302,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
8285,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
261,
556,
33,
7707,
18920,
16637,
1870,
16637,
34,
2218,
16637,
32,
11,
16637,
32,
2218,
16637,
5,
2218,
16637,
12298,
11,
16637,
8436,
6134,
2153,
67,
30951,
261,
70,
4227,
33,
1599,
571,
9109,
33,
2792,
67,
13364,
571,
9109,
33,
7158,
67,
13364,
571,
436,
4227,
33,
5221,
67,
13364,
262,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
8285,
30,
4033,
30,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
261,
556,
33,
7707,
18920,
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,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
1171,
202,
202,
3234,
16198,
302,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
26,
8285,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
2
] |
if(model != null) { collectElements(model,profile,false); | if (model != null) { collectElements(model, profile, false); | private void makeSelection(MModel model, MClassifier selClass) { getSet().clear(); Profile profile = getContainer().getProfile(); if(allowVoid()) { getSet().add(new UMLComboBoxEntry(null,profile,false)); } if(model != null) { collectElements(model,profile,false); } if(addElementsFromProfileModel()) { MModel profileModel = profile.getProfileModel(); if(profileModel != null) { collectElements(profileModel,profile,true); } } // // scan for name collisions // Iterator iter = getSet().iterator(); String before = null; UMLComboBoxEntry currentEntry = null; String currentStr = null; UMLComboBoxEntry afterEntry = null; String after = null; while(iter.hasNext()) { before = currentStr; currentEntry = afterEntry; currentStr = after; afterEntry = (UMLComboBoxEntry) iter.next(); after = afterEntry.getShortName(); if(currentEntry != null) currentEntry.checkCollision(before,after); } if(afterEntry != null) afterEntry.checkCollision(currentStr,null); // fireContentsChanged(this,0,getSet().size()); // // get current value // Iterator it = getSet().iterator(); UMLComboBoxEntry entry; while(it.hasNext()) { entry = (UMLComboBoxEntry) it.next(); if(!entry.isPhantom() && entry.getElement(model) == selClass) { MModelElement elem = entry.getElement(model); String name = null; if (elem != null ) name=elem.getName(); cat.debug("setSelectedItem"); setSelectedItem( entry); } } fireContentsChanged(this,0,getSet().size()); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLClassifierComboBoxModel.java/buggy/src_new/org/argouml/uml/ui/UMLClassifierComboBoxModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
6233,
12,
49,
1488,
938,
16,
490,
13860,
357,
797,
13,
288,
202,
588,
694,
7675,
8507,
5621,
202,
4029,
3042,
273,
9272,
7675,
588,
4029,
5621,
202,
430,
12,
5965,
19038,
10756,
288,
202,
565,
336,
694,
7675,
1289,
12,
2704,
587,
1495,
22199,
1622,
12,
2011,
16,
5040,
16,
5743,
10019,
202,
97,
202,
430,
12,
2284,
480,
446,
13,
288,
202,
565,
3274,
3471,
12,
2284,
16,
5040,
16,
5743,
1769,
202,
97,
5375,
202,
430,
12,
1289,
3471,
1265,
4029,
1488,
10756,
288,
202,
565,
490,
1488,
3042,
1488,
273,
3042,
18,
588,
4029,
1488,
5621,
202,
565,
309,
12,
5040,
1488,
480,
446,
13,
288,
202,
202,
14676,
3471,
12,
5040,
1488,
16,
5040,
16,
3767,
1769,
202,
565,
289,
202,
97,
1082,
3639,
202,
759,
202,
759,
282,
4135,
364,
508,
27953,
202,
759,
202,
565,
4498,
1400,
273,
336,
694,
7675,
9838,
5621,
202,
565,
514,
1865,
273,
446,
31,
202,
565,
587,
1495,
22199,
1622,
783,
1622,
273,
446,
31,
202,
565,
514,
783,
1585,
273,
446,
31,
202,
565,
587,
1495,
22199,
1622,
1839,
1622,
273,
446,
31,
202,
565,
514,
1839,
273,
446,
31,
202,
377,
202,
565,
1323,
12,
2165,
18,
5332,
2134,
10756,
288,
202,
202,
5771,
273,
783,
1585,
31,
202,
202,
2972,
1622,
273,
1839,
1622,
31,
202,
202,
2972,
1585,
273,
1839,
31,
202,
202,
5205,
1622,
273,
261,
57,
1495,
22199,
1622,
13,
1400,
18,
4285,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
6233,
12,
49,
1488,
938,
16,
490,
13860,
357,
797,
13,
288,
202,
588,
694,
7675,
8507,
5621,
202,
4029,
3042,
273,
9272,
7675,
588,
4029,
5621,
202,
430,
12,
5965,
19038,
10756,
288,
202,
565,
336,
694,
7675,
1289,
12,
2704,
587,
1495,
22199,
1622,
12,
2011,
16,
5040,
16,
5743,
10019,
202,
97,
202,
430,
12,
2284,
480,
446,
13,
288,
202,
565,
3274,
3471,
12,
2284,
16,
5040,
16,
5743,
1769,
202,
97,
5375,
202,
430,
12,
1289,
3471,
1265,
4029,
1488,
10756,
288,
202,
565,
490,
1488,
3042,
1488,
273,
3042,
18,
588,
4029,
1488,
5621,
202,
565,
309,
12,
5040,
1488,
480,
446,
13,
288,
202,
202,
14676,
3471,
12,
2
] |
connectAtom.setPoint2D(new Point2d(newX, newY)); | points.addElement(new Point2d(newX, newY)); | public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius) { Atom connectAtom = null; double angle = startAngle; double newX; double newY; double x; double y; if (debug) { System.out.println("populatePolygonCorners->startAngle: " + Math.toDegrees(angle)); } for (int i = 0; i < atomsToDraw.size(); i++) { connectAtom = (Atom) atomsToDraw.elementAt(i); angle = angle + addAngle; if (angle >= 2 * Math.PI) { angle -= 2 * Math.PI; } if (debug) { System.out.println("populatePolygonCorners->angle: " + Math.toDegrees(angle)); } x = Math.cos(angle) * radius; y = Math.sin(angle) * radius; newX = x + rotationCenter.x; newY = y + rotationCenter.y; connectAtom.setPoint2D(new Point2d(newX, newY)); try { if (debug) { System.out.println("populatePolygonCorners->connectAtom: " + (molecule.getAtomNumber(connectAtom) + 1) + " placed at " + connectAtom.getPoint2D()); } } catch (Exception exc) { } connectAtom.setFlag(CDKConstants.ISPLACED, true); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ce671bad54ba13afe05c622f64a9b05900832535/AtomPlacer.java/clean/src/org/openscience/cdk/layout/AtomPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
31,
202,
202,
9056,
394,
61,
31,
202,
202,
9056,
619,
31,
202,
202,
9056,
677,
31,
202,
202,
430,
261,
4148,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
19936,
11787,
6217,
9646,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9006,
774,
6493,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
3612,
3641,
273,
261,
3641,
13,
9006,
774,
6493,
18,
2956,
861,
12,
77,
1769,
1082,
202,
4341,
273,
5291,
397,
527,
8467,
31,
1082,
202,
430,
261,
4341,
1545,
576,
380,
2361,
18,
1102,
13,
1082,
202,
95,
9506,
202,
4341,
3947,
576,
380,
2361,
18,
1102,
31,
1082,
202,
97,
1082,
202,
430,
261,
4148,
13,
1082,
202,
95,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
19936,
11787,
6217,
9646,
2122,
4341,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
1082,
202,
97,
1082,
202,
92,
273,
2361,
18,
14445,
12,
4341,
13,
380,
5725,
31,
1082,
202,
93,
273,
2361,
18,
21861,
12,
4341,
13,
380,
5725,
31,
1082,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
31,
202,
202,
9056,
394,
61,
31,
202,
202,
9056,
619,
31,
202,
202,
9056,
677,
31,
202,
202,
430,
261,
4148,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
19936,
11787,
6217,
9646,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
public String getDefaultDimension() { return saDimensions[0]; } | public String getDefaultDimension( ) { return saDimensions[0]; } | public String getDefaultDimension() { return saDimensions[0]; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/349f24e6a8f8484f0f1f1af682b4952337cac402/StockChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4829,
8611,
1435,
565,
288,
3639,
327,
7864,
10796,
63,
20,
15533,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4829,
8611,
1435,
565,
288,
3639,
327,
7864,
10796,
63,
20,
15533,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ModuleHandle handle = SessionHandleAdapter.getInstance() .getReportDesignHandle(); | ModuleHandle handle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); | public static String[] getDataSets() { ArrayList list = new ArrayList(); ModuleHandle handle = SessionHandleAdapter.getInstance() .getReportDesignHandle(); SlotHandle dataSets = handle.getDataSets(); if (dataSets != null) { Iterator iterator = dataSets.iterator(); while (iterator.hasNext()) { DataSetHandle DataSetHandle = (DataSetHandle) iterator.next(); list.add(DataSetHandle.getName()); } } return (String[]) list.toArray(new String[0]); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7ca10c49a247dfe395b2e0483af9946ea07fe89b/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
4303,
2785,
1435,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
3120,
3259,
1640,
273,
3877,
3259,
4216,
18,
588,
1442,
1435,
9506,
202,
18,
588,
4820,
15478,
3259,
5621,
202,
202,
8764,
3259,
501,
2785,
273,
1640,
18,
588,
751,
2785,
5621,
202,
202,
430,
261,
892,
2785,
480,
446,
13,
288,
1082,
202,
3198,
2775,
273,
501,
2785,
18,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
13676,
3259,
14065,
3259,
273,
261,
13676,
3259,
13,
2775,
18,
4285,
5621,
9506,
202,
1098,
18,
1289,
12,
13676,
3259,
18,
17994,
10663,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
780,
63,
5717,
666,
18,
31447,
12,
2704,
514,
63,
20,
19226,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
4303,
2785,
1435,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
3120,
3259,
1640,
273,
3877,
3259,
4216,
18,
588,
1442,
1435,
9506,
202,
18,
588,
4820,
15478,
3259,
5621,
202,
202,
8764,
3259,
501,
2785,
273,
1640,
18,
588,
751,
2785,
5621,
202,
202,
430,
261,
892,
2785,
480,
446,
13,
288,
1082,
202,
3198,
2775,
273,
501,
2785,
18,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
13676,
3259,
14065,
3259,
273,
261,
13676,
3259,
13,
2775,
18,
4285,
5621,
9506,
202,
1098,
18,
1289,
12,
13676,
3259,
18,
17994,
10663,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
780,
2
] |
if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() != 0) element_childComparator.put(name, mc); } | if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() < 1) { log.println("\tSKIPPING\t" + name + "\t" + mc); } else { log.println("\t" + name + "\t" + mc); element_childComparator.put(name, mc); } } | public void elementDecl(String name, String model) throws SAXException { if (ELEMENT_SKIP_LIST.contains(name)) return; if (log != null) log.println("Element\t" + name + "\t" + model); String[] list = model.split("[^A-Z0-9a-z]"); List mc = new ArrayList(); /*if (name.equals("currency")) { mc.add("alias"); mc.add("symbol"); mc.add("pattern"); } */ for (int i = 0; i < list.length; ++i) { if (list[i].length() == 0) continue; if (SUBELEMENT_SKIP_LIST.contains(list[i])) continue; //if (log != null) log.print("\t" + list[i]); if (mc.contains(list[i])) { if (log != null) log.println("Duplicate attribute " + name + ", " + list[i] + ":\t" + Arrays.asList(list) + ":\t" + mc ); } else { mc.add(list[i]); } } if (mc.size() != 0) element_childComparator.put(name, mc); //if (log != null) log.println(); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/12a2ab631354035ef78cdf435220be6a72b685d9/FindDTDOrder.java/buggy/tools/java/org/unicode/cldr/util/FindDTDOrder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
930,
3456,
12,
780,
508,
16,
514,
938,
13,
1216,
14366,
288,
5411,
309,
261,
10976,
67,
22589,
67,
7085,
18,
12298,
12,
529,
3719,
327,
31,
5411,
309,
261,
1330,
480,
446,
13,
613,
18,
8222,
2932,
1046,
64,
88,
6,
397,
508,
397,
1548,
88,
6,
397,
938,
1769,
5411,
514,
8526,
666,
273,
938,
18,
4939,
2932,
5969,
37,
17,
62,
20,
17,
29,
69,
17,
94,
4279,
1769,
5411,
987,
6108,
273,
394,
2407,
5621,
5411,
1748,
430,
261,
529,
18,
14963,
2932,
7095,
6,
3719,
288,
7734,
6108,
18,
1289,
2932,
4930,
8863,
7734,
6108,
18,
1289,
2932,
7175,
8863,
7734,
6108,
18,
1289,
2932,
4951,
8863,
5411,
289,
5411,
1195,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
666,
18,
2469,
31,
965,
77,
13,
288,
7734,
309,
261,
1098,
63,
77,
8009,
2469,
1435,
422,
374,
13,
1324,
31,
7734,
309,
261,
8362,
10976,
67,
22589,
67,
7085,
18,
12298,
12,
1098,
63,
77,
22643,
1324,
31,
7734,
368,
430,
261,
1330,
480,
446,
13,
613,
18,
1188,
31458,
88,
6,
397,
666,
63,
77,
19226,
7734,
309,
261,
13952,
18,
12298,
12,
1098,
63,
77,
22643,
288,
10792,
309,
261,
1330,
480,
446,
13,
613,
18,
8222,
2932,
11826,
1566,
315,
397,
508,
397,
3104,
315,
397,
666,
63,
77,
65,
25083,
202,
15,
315,
5581,
88,
6,
397,
5647,
18,
345,
682,
12,
1098,
13,
25083,
202,
15,
315,
5581,
88,
6,
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,
540,
1071,
918,
930,
3456,
12,
780,
508,
16,
514,
938,
13,
1216,
14366,
288,
5411,
309,
261,
10976,
67,
22589,
67,
7085,
18,
12298,
12,
529,
3719,
327,
31,
5411,
309,
261,
1330,
480,
446,
13,
613,
18,
8222,
2932,
1046,
64,
88,
6,
397,
508,
397,
1548,
88,
6,
397,
938,
1769,
5411,
514,
8526,
666,
273,
938,
18,
4939,
2932,
5969,
37,
17,
62,
20,
17,
29,
69,
17,
94,
4279,
1769,
5411,
987,
6108,
273,
394,
2407,
5621,
5411,
1748,
430,
261,
529,
18,
14963,
2932,
7095,
6,
3719,
288,
7734,
6108,
18,
1289,
2932,
4930,
8863,
7734,
6108,
18,
1289,
2932,
7175,
8863,
7734,
6108,
18,
1289,
2932,
4951,
8863,
5411,
289,
5411,
1195,
2
] |
260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, | 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, | private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -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, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31069,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
6969,
27,
16,
225,
6969,
28,
16,
225,
576,
6162,
16,
225,
2593,
24,
16,
225,
576,
9498,
16,
6647,
576,
8898,
16,
225,
576,
4449,
16,
225,
576,
1105,
16,
225,
576,
9222,
16,
225,
576,
6028,
16,
282,
300,
21,
16,
225,
576,
9470,
16,
225,
576,
8148,
16,
225,
29966,
16,
225,
576,
11212,
16,
6647,
576,
9060,
16,
225,
31482,
16,
225,
576,
5608,
16,
225,
576,
5877,
16,
225,
576,
6669,
16,
225,
576,
4700,
16,
225,
576,
8285,
16,
282,
300,
21,
16,
225,
576,
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,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31069,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
2
] |
try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("height", getHeightExpr(), this, pageContext)) != null) setHeight(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeight((String) evalAttr("height", getHeightExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setImageName((String) evalAttr("imageName", getImageNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIsmap((String) evalAttr("ismap", getIsmapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } // The "lowsrc" attribute is deprecated. This needs to be removed // when the "lowsrc" attribute is finally removed. try { setLowsrc((String) evalAttr("lowsrc", getLowsrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamId((String) evalAttr("paramId", getParamIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamName((String) evalAttr("paramName", getParamNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamProperty((String) evalAttr("paramProperty", getParamPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamScope((String) evalAttr("paramScope", getParamScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setUsemap((String) evalAttr("usemap", getUsemapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setVspace((String) evalAttr("vspace", getVspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setWidth((String) evalAttr("width", getWidthExpr(), String.class)); } catch (NullAttributeException ex) { } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELImgTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
25715,
12443,
780,
13,
5302,
3843,
2932,
8815,
3113,
2882,
1019,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
27276,
12443,
780,
13,
5302,
3843,
2932,
4210,
3113,
9263,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10044,
12443,
780,
13,
5302,
3843,
2932,
7989,
3113,
336,
10044,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
2
] |
genuineHost = host.substring(at_host); | { genuineHost = host.substring(at_host); userInfo = host.substring(0, at_host); } | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { String genuineHost; int hostEnd; int colon; int at_host; start += 2; int slash = spec.indexOf('/', start); if (slash >= 0) hostEnd = slash; else hostEnd = end; host = spec.substring(start, hostEnd); // We first need a genuine host name (with userinfo). // So we check for '@': if it's present check the port in the // section after '@' in the other case check it in the full string. // P.S.: We don't care having '@' at the beginning of the string. if ((at_host = host.indexOf('@')) >= 0) genuineHost = host.substring(at_host); else genuineHost = host; // Look for optional port number. It is valid for the non-port // part of the host name to be null (e.g. a URL "http://:80"). // TBD: JDK 1.2 in this case sets host to null rather than ""; // this is undocumented and likely an unintended side effect in 1.2 // so we'll be simple here and stick with "". Note that // "http://" or "http:///" produce a "" host in JDK 1.2. if ((colon = genuineHost.indexOf(':')) >= 0) { try { port = Integer.parseInt(genuineHost.substring(colon + 1)); } catch (NumberFormatException e) { ; // Ignore invalid port values; port is already set to u's // port. } // Now we must cut the port number in the original string. if (at_host >= 0) host = host.substring(0, at_host + colon); else host = host.substring(0, colon); } file = null; start = hostEnd; } else if (host == null) host = ""; if (file == null || file.length() == 0 || (start < end && spec.charAt(start) == '/')) { // No file context available; just spec for file. // Or this is an absolute path name; ignore any file context. file = spec.substring(start, end); ref = null; } else if (start < end) { // Context is available, but only override it if there is a new file. char sepChar = '/'; int lastSlash = file.lastIndexOf(sepChar); if (lastSlash < 0 && File.separatorChar != sepChar && url.getProtocol().equals("file")) { // On Windows, even '\' is allowed in a "file" URL. sepChar = File.separatorChar; lastSlash = file.lastIndexOf(sepChar); } file = file.substring(0, lastSlash) + sepChar + spec.substring(start, end); if (url.getProtocol().equals("file")) { // For "file" URLs constructed relative to a context, we // need to canonicalise the file path. try { boolean endsWithSlash = file.charAt(file.length() - 1) == '/'; file = new File(file).getCanonicalPath(); if (endsWithSlash && file.charAt(file.length() - 1) != '/') file += '/'; } catch (IOException e) { // Do nothing. } } ref = null; } if (ref == null) { // Normally there should be no '#' in the file part, // but we are nice. int hash = file.indexOf('#'); if (hash != -1) { ref = file.substring(hash + 1, file.length()); file = file.substring(0, hash); } } // XXX - Classpath used to call PlatformHelper.toCanonicalForm() on // the file part. It seems like overhead, but supposedly there is some // benefit in windows based systems (it also lowercased the string). setURL(url, url.getProtocol(), host, port, file, ref); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/141410702d2753052385e841596a13c4a870b7d7/URLStreamHandler.java/buggy/libjava/java/net/URLStreamHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1785,
12,
1785,
880,
16,
514,
857,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
514,
1479,
273,
880,
18,
588,
2594,
5621,
565,
509,
1756,
273,
880,
18,
588,
2617,
5621,
565,
514,
585,
273,
880,
18,
29925,
5621,
565,
514,
1278,
273,
880,
18,
588,
1957,
5621,
565,
309,
261,
2793,
18,
6858,
6869,
12,
1937,
16,
16177,
3113,
374,
16,
576,
3719,
1377,
288,
202,
780,
314,
2104,
558,
2594,
31,
202,
474,
1479,
1638,
31,
202,
474,
13336,
31,
202,
474,
622,
67,
2564,
31,
202,
1937,
1011,
576,
31,
202,
474,
9026,
273,
857,
18,
31806,
2668,
19,
2187,
787,
1769,
202,
430,
261,
12877,
1545,
374,
13,
202,
225,
1479,
1638,
273,
9026,
31,
202,
12107,
202,
225,
1479,
1638,
273,
679,
31,
202,
2564,
273,
857,
18,
28023,
12,
1937,
16,
1479,
1638,
1769,
202,
759,
1660,
1122,
1608,
279,
314,
2104,
558,
1479,
508,
261,
1918,
18297,
2934,
202,
759,
6155,
732,
866,
364,
4622,
4278,
309,
518,
1807,
3430,
866,
326,
1756,
316,
326,
202,
759,
2442,
1839,
9175,
316,
326,
1308,
648,
866,
518,
316,
326,
1983,
533,
18,
202,
759,
453,
18,
55,
29710,
1660,
2727,
1404,
7671,
7999,
9175,
622,
326,
8435,
434,
326,
533,
18,
202,
430,
14015,
270,
67,
2564,
273,
1479,
18,
31806,
2668,
20887,
3719,
1545,
374,
13,
202,
225,
314,
2104,
558,
2594,
273,
1479,
18,
28023,
12,
270,
67,
2564,
1769,
202,
12107,
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,
1785,
12,
1785,
880,
16,
514,
857,
16,
509,
787,
16,
509,
679,
13,
225,
288,
565,
514,
1479,
273,
880,
18,
588,
2594,
5621,
565,
509,
1756,
273,
880,
18,
588,
2617,
5621,
565,
514,
585,
273,
880,
18,
29925,
5621,
565,
514,
1278,
273,
880,
18,
588,
1957,
5621,
565,
309,
261,
2793,
18,
6858,
6869,
12,
1937,
16,
16177,
3113,
374,
16,
576,
3719,
1377,
288,
202,
780,
314,
2104,
558,
2594,
31,
202,
474,
1479,
1638,
31,
202,
474,
13336,
31,
202,
474,
622,
67,
2564,
31,
202,
1937,
1011,
576,
31,
202,
474,
9026,
273,
857,
18,
31806,
2668,
19,
2187,
787,
1769,
202,
430,
261,
12877,
1545,
374,
13,
2
] |
bean = getMappedProperty(bean, next); | nestedBean = getMappedProperty(bean, next); | public Object getNestedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { if (bean == null) { throw new IllegalArgumentException("No bean specified"); } if (name == null) { throw new IllegalArgumentException("No name specified"); } int indexOfINDEXED_DELIM = -1; int indexOfMAPPED_DELIM = -1; int indexOfMAPPED_DELIM2 = -1; int indexOfNESTED_DELIM = -1; while (true) { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM); indexOfMAPPED_DELIM = name.indexOf(PropertyUtils.MAPPED_DELIM); indexOfMAPPED_DELIM2 = name.indexOf(PropertyUtils.MAPPED_DELIM2); if (indexOfMAPPED_DELIM2 >= 0 && indexOfMAPPED_DELIM >=0 && (indexOfNESTED_DELIM < 0 || indexOfNESTED_DELIM > indexOfMAPPED_DELIM)) { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM, indexOfMAPPED_DELIM2); } else { indexOfNESTED_DELIM = name.indexOf(PropertyUtils.NESTED_DELIM); } if (indexOfNESTED_DELIM < 0) { break; } String next = name.substring(0, indexOfNESTED_DELIM); indexOfINDEXED_DELIM = next.indexOf(PropertyUtils.INDEXED_DELIM); indexOfMAPPED_DELIM = next.indexOf(PropertyUtils.MAPPED_DELIM); if (bean instanceof Map) { bean = getPropertyOfMapBean((Map) bean, next); } else if (indexOfMAPPED_DELIM >= 0) { bean = getMappedProperty(bean, next); } else if (indexOfINDEXED_DELIM >= 0) { bean = getIndexedProperty(bean, next); } else { bean = getSimpleProperty(bean, next); } if (bean == null) { throw new NestedNullException ("Null property value for '" + name.substring(0, indexOfNESTED_DELIM) + "'"); } name = name.substring(indexOfNESTED_DELIM + 1); } indexOfINDEXED_DELIM = name.indexOf(PropertyUtils.INDEXED_DELIM); indexOfMAPPED_DELIM = name.indexOf(PropertyUtils.MAPPED_DELIM); if (bean instanceof Map) { bean = getPropertyOfMapBean((Map) bean, name); } else if (indexOfMAPPED_DELIM >= 0) { bean = getMappedProperty(bean, name); } else if (indexOfINDEXED_DELIM >= 0) { bean = getIndexedProperty(bean, name); } else { bean = getSimpleProperty(bean, name); } return bean; } | 54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/11663fc64a5a250877c75204cc07a0c9ef4c25fa/PropertyUtilsBean.java/buggy/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
8649,
1396,
12,
921,
3931,
16,
514,
508,
13,
5411,
1216,
11900,
16,
15342,
16,
5411,
15959,
288,
3639,
309,
261,
14496,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2279,
3931,
1269,
8863,
3639,
289,
3639,
309,
261,
529,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2279,
508,
1269,
8863,
3639,
289,
3639,
509,
3133,
9199,
2056,
67,
31519,
273,
300,
21,
31,
3639,
509,
3133,
8352,
12120,
67,
31519,
273,
300,
21,
31,
3639,
509,
3133,
8352,
12120,
67,
31519,
22,
273,
300,
21,
31,
3639,
509,
3133,
5407,
882,
2056,
67,
31519,
273,
300,
21,
31,
3639,
1323,
261,
3767,
13,
288,
5411,
3133,
5407,
882,
2056,
67,
31519,
225,
273,
508,
18,
31806,
12,
1396,
1989,
18,
5407,
882,
2056,
67,
31519,
1769,
5411,
3133,
8352,
12120,
67,
31519,
225,
273,
508,
18,
31806,
12,
1396,
1989,
18,
8352,
12120,
67,
31519,
1769,
5411,
3133,
8352,
12120,
67,
31519,
22,
273,
508,
18,
31806,
12,
1396,
1989,
18,
8352,
12120,
67,
31519,
22,
1769,
5411,
309,
261,
31806,
8352,
12120,
67,
31519,
22,
1545,
374,
597,
3133,
8352,
12120,
67,
31519,
1545,
20,
597,
7734,
261,
31806,
5407,
882,
2056,
67,
31519,
411,
374,
747,
3133,
5407,
882,
2056,
67,
31519,
405,
3133,
8352,
12120,
67,
31519,
3719,
288,
7734,
3133,
5407,
882,
2056,
67,
31519,
273,
10792,
508,
18,
31806,
12,
1396,
1989,
18,
5407,
882,
2056,
67,
31519,
16,
3133,
8352,
12120,
67,
31519,
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,
1033,
336,
8649,
1396,
12,
921,
3931,
16,
514,
508,
13,
5411,
1216,
11900,
16,
15342,
16,
5411,
15959,
288,
3639,
309,
261,
14496,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2279,
3931,
1269,
8863,
3639,
289,
3639,
309,
261,
529,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2279,
508,
1269,
8863,
3639,
289,
3639,
509,
3133,
9199,
2056,
67,
31519,
273,
300,
21,
31,
3639,
509,
3133,
8352,
12120,
67,
31519,
273,
300,
21,
31,
3639,
509,
3133,
8352,
12120,
67,
31519,
22,
273,
300,
21,
31,
3639,
509,
3133,
5407,
882,
2056,
67,
31519,
273,
300,
21,
31,
3639,
1323,
261,
3767,
13,
288,
5411,
3133,
5407,
882,
2056,
67,
31519,
2
] |
if (ChainBuilderAgent.DEBUG) System.err.println("popup. zooming out of "+n); | private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); //System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that's not in a chain or not. // I should zoom to view of whole canvas PBounds b = canvas.getBufferedBounds(); PCamera camera =canvas.getCamera(); camera.animateViewToCenterBounds(b,true,Constants.ANIMATION_DELAY); setModulesDisplayMode(); } else { double scaleFactor = 1/Constants.SCALE_FACTOR; zoom(scaleFactor,e); } e.setHandled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
918,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
5956,
13770,
12,
52,
1210,
1133,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
425,
13,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
288,
202,
202,
2767,
13770,
33,
3767,
31,
202,
202,
52,
907,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
290,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
273,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
425,
18,
588,
17968,
329,
907,
5621,
202,
202,
52,
907,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
293,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
273,
430,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
918,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
5956,
13770,
12,
52,
1210,
1133,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
425,
13,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
16086,
18,
7182,
310,
596,
434,
13773,
82,
1769,
288,
202,
202,
2767,
13770,
33,
3767,
31,
202,
202,
52,
907,
430,
261,
3893,
2
] |
|
ImageSize imageSize ; String fileSize; | ImageSize imageSize = new ImageSize( 0, 0 ); long fileSize ; InputStreamSource inputStreamSource = imageFileDocument.getDefaultFile().getInputStreamSource(); | public String render( DocumentDomainObject document, HttpServletRequest request ) { UserDomainObject user = Utility.getLoggedOnUser( request ); FileDocumentDomainObject imageFileDocument = (FileDocumentDomainObject)document; ImageSize imageSize ; String fileSize; try { BufferedImage image = ImageIO.read( imageFileDocument.getDefaultFile().getInputStreamSource().getInputStream() ) ; imageSize = new ImageSize( image.getWidth(), image.getHeight() ); fileSize = imageFileDocument.getDefaultFile().getInputStreamSource().getSize()+""; } catch ( IOException ioe ) { imageSize = new ImageSize( 0, 0 ); fileSize = "0"; } List values = Arrays.asList( new Object[]{ "imageUrl", "GetDoc?meta_id=" + document.getId(), "imageSize", imageSize, "fileSize", fileSize, } ); return Imcms.getServices().getAdminTemplate( "images/thumbnail.frag", user, values ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/e6cf0a83832d82eb6846ea3480525b76a676796c/ChangeImage.java/buggy/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
3748,
921,
31146,
2519,
273,
261,
812,
2519,
3748,
921,
13,
5457,
31,
5411,
3421,
1225,
29344,
274,
5411,
514,
18984,
31,
5411,
775,
288,
7734,
12362,
1316,
273,
3421,
4294,
18,
896,
12,
31146,
2519,
18,
588,
1868,
812,
7675,
588,
4348,
1830,
7675,
588,
4348,
1435,
262,
274,
7734,
29344,
273,
394,
3421,
1225,
12,
1316,
18,
588,
2384,
9334,
1316,
18,
588,
2686,
1435,
11272,
7734,
18984,
273,
31146,
2519,
18,
588,
1868,
812,
7675,
588,
4348,
1830,
7675,
588,
1225,
1435,
15,
3660,
31,
5411,
289,
1044,
261,
1860,
10847,
262,
288,
7734,
29344,
273,
394,
3421,
1225,
12,
374,
16,
374,
11272,
7734,
18984,
273,
315,
20,
14432,
5411,
289,
5411,
987,
924,
273,
5647,
18,
345,
682,
12,
394,
1033,
63,
7073,
7734,
315,
2730,
1489,
3113,
315,
967,
1759,
35,
3901,
67,
350,
1546,
397,
1668,
18,
26321,
9334,
7734,
315,
2730,
1225,
3113,
29344,
16,
7734,
315,
768,
1225,
3113,
18984,
16,
5411,
289,
11272,
5411,
327,
2221,
6851,
18,
588,
5676,
7675,
588,
4446,
2283,
12,
315,
7369,
19,
14904,
18,
17073,
3113,
729,
16,
924,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
3748,
921,
31146,
2519,
273,
261,
812,
2519,
3748,
921,
13,
5457,
31,
5411,
3421,
1225,
29344,
274,
5411,
514,
18984,
31,
5411,
775,
288,
7734,
12362,
1316,
273,
3421,
4294,
18,
896,
12,
31146,
2519,
18,
588,
1868,
812,
7675,
588,
4348,
1830,
7675,
588,
4348,
1435,
262,
274,
7734,
29344,
273,
394,
3421,
1225,
12,
1316,
18,
588,
2384,
9334,
1316,
18,
588,
2686,
1435,
11272,
7734,
18984,
273,
31146,
2519,
18,
588,
1868,
812,
7675,
588,
4348,
1830,
7675,
588,
1225,
1435,
15,
3660,
2
] |
System.exit(status); return recv.getRuntime().getNil(); | throw new SystemExit(recv.getRuntime(), status); | public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/d9317e0eeee3391f47aa759e650cc97132b1f4f7/KernelModule.java/clean/org/jruby/KernelModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2427,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
509,
1267,
273,
374,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
1267,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
3639,
289,
3639,
2332,
18,
8593,
12,
2327,
1769,
3639,
327,
10665,
18,
588,
5576,
7675,
588,
12616,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2427,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
509,
1267,
273,
374,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
1267,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
3639,
289,
3639,
2332,
18,
8593,
12,
2327,
1769,
3639,
327,
10665,
18,
588,
5576,
7675,
588,
12616,
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
] |
AST tmp2239_AST_in = (AST)_t; | AST tmp2238_AST_in = (AST)_t; | public final void record_fields(AST _t) throws RecognitionException { AST record_fields_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIELDS: { AST __t1850 = _t; AST tmp2232_AST_in = (AST)_t; match(_t,FIELDS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp2233_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { _loop1855: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHEN: { AST __t1854 = _t; AST tmp2234_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1854; _t = _t.getNextSibling(); break; } case RIGHTPAREN: case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1855; } } while (true); } AST tmp2235_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1850; _t = _t.getNextSibling(); break; } case EXCEPT: { AST __t1856 = _t; AST tmp2236_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp2237_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { _loop1861: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHEN: { AST __t1860 = _t; AST tmp2238_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1860; _t = _t.getNextSibling(); break; } case RIGHTPAREN: case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1861; } } while (true); } AST tmp2239_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1856; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1409,
67,
2821,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
67,
2821,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4011,
11608,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
2643,
3361,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3787,
1578,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
12683,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
9686,
15111,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
3787,
3707,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
10066,
15111,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
95,
9506,
202,
67,
6498,
2643,
2539,
30,
9506,
202,
2896,
288,
6862,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
6862,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
974,
67,
1734,
3719,
288,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1409,
67,
2821,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
67,
2821,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4011,
11608,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
2643,
3361,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3787,
1578,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
12683,
1769,
1082,
202,
67,
88,
273,
2
] |
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); | public quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { quickfix.field.UnderlyingCPProgram value = new quickfix.field.UnderlyingCPProgram(); | public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderMassCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MylarUiPlugin.getDefault().setFilterCompleteMode(isChecked()); | String bugIdString = getBugIdFromUser(); int bugId = -1; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); } else { return; } } catch (NumberFormatException nfe) { showMessage("Please enter a valid report number"); return; } boolean doesIdExistAlready = false; List<ITask> tasks = MylarTasksPlugin.getTaskListManager().getTaskList().getRootTasks(); for (Iterator<ITask> iter = tasks.iterator(); iter.hasNext() && !doesIdExistAlready;) { ITask task = iter.next(); doesIdExistAlready = lookForId(task, "Bugzilla-" + bugId); } if (doesIdExistAlready) { showMessage("A Bugzilla task with ID Bugzilla-" + bugId + " already exists."); return; } ITask newTask = new BugzillaTask("Bugzilla-"+bugId, "<bugzilla info>"); Object selectedObject = ((IStructuredSelection)viewer.getSelection()).getFirstElement(); if (selectedObject instanceof Task){ ((Task)selectedObject).addSubtask(newTask); } else { MylarTasksPlugin.getTaskListManager().getTaskList().addRootTask(newTask); } | public void run() { MylarUiPlugin.getDefault().setFilterCompleteMode(isChecked()); viewer.refresh(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/04e28e82233b51ec5dbc77caf8f19bd94749d98b/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
540,
202,
202,
780,
7934,
548,
780,
273,
2882,
637,
548,
1265,
1299,
5621,
509,
7934,
548,
273,
300,
21,
31,
775,
288,
309,
261,
925,
548,
780,
480,
446,
13,
288,
7934,
548,
273,
2144,
18,
2670,
1702,
12,
925,
548,
780,
1769,
289,
469,
288,
327,
31,
289,
289,
1044,
261,
1854,
9291,
25386,
13,
288,
2405,
1079,
2932,
8496,
6103,
279,
923,
2605,
1300,
8863,
327,
31,
289,
377,
1250,
1552,
548,
4786,
9430,
273,
629,
31,
987,
32,
1285,
835,
34,
4592,
273,
8005,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
2375,
6685,
5621,
364,
261,
3198,
32,
1285,
835,
34,
1400,
273,
4592,
18,
9838,
5621,
1400,
18,
5332,
2134,
1435,
597,
401,
20657,
548,
4786,
9430,
30943,
288,
467,
2174,
1562,
273,
1400,
18,
4285,
5621,
1552,
548,
4786,
9430,
273,
2324,
1290,
548,
12,
4146,
16,
315,
19865,
15990,
10951,
397,
7934,
548,
1769,
289,
309,
261,
20657,
548,
4786,
9430,
13,
288,
2405,
1079,
2932,
37,
16907,
15990,
1562,
598,
1599,
16907,
15990,
10951,
397,
7934,
548,
397,
315,
1818,
1704,
1199,
1769,
327,
31,
289,
565,
467,
2174,
394,
2174,
273,
394,
16907,
15990,
2174,
2932,
19865,
15990,
10951,
15,
925,
548,
16,
3532,
925,
15990,
1123,
2984,
1769,
225,
1033,
3170,
921,
273,
14015,
45,
30733,
6233,
13,
25256,
18,
588,
6233,
1435,
2934,
588,
3759,
1046,
5621,
309,
261,
8109,
921,
1276,
3837,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
540,
202,
202,
780,
7934,
548,
780,
273,
2882,
637,
548,
1265,
1299,
5621,
509,
7934,
548,
273,
300,
21,
31,
775,
288,
309,
261,
925,
548,
780,
480,
446,
13,
288,
7934,
548,
273,
2144,
18,
2670,
1702,
12,
925,
548,
780,
1769,
289,
469,
288,
327,
31,
289,
289,
1044,
261,
1854,
9291,
25386,
13,
288,
2405,
1079,
2932,
8496,
6103,
279,
923,
2605,
1300,
8863,
327,
31,
289,
377,
1250,
1552,
548,
4786,
9430,
273,
629,
31,
987,
32,
1285,
835,
34,
4592,
273,
8005,
7901,
6685,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
2375,
6685,
5621,
364,
261,
3198,
32,
1285,
835,
34,
1400,
2
] |
} try { String value = System.getProperty("javax.xml.parsers.SAXParserFactory"); if (value != null && value.startsWith("weblogic")) { System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); } } catch (Exception e) { System.out.println("CocoonServlet: Could not check system properties, got: " + e); | public void init(ServletConfig conf) throws ServletException { this.servletContext = conf.getServletContext(); this.servletContext.log("Initializing Apache Cocoon " + Constants.VERSION); super.init(conf); this.servletContextPath = this.servletContext.getRealPath("/"); String path = this.servletContextPath; // these two variables are just for debugging. We can't log at this point // as the logger isn't initialized yet. String debugPathOne = null, debugPathTwo = null; if (path == null) { // Try to figure out the path of the root from that of WEB-INF try { path = this.servletContext.getResource("/WEB-INF").toString(); } catch (MalformedURLException me) { throw new ServletException("Unable to get resource 'WEB-INF'.", me); } debugPathOne = path; path = path.substring(0, path.length() - "WEB-INF".length()); debugPathTwo = path; } try { if (path.indexOf(':') > 1) { this.servletContextURL = path; } else { this.servletContextURL = new File(path).toURL().toExternalForm(); } } catch (MalformedURLException me) { // VG: Novell has absolute file names starting with the // volume name which is easily more then one letter. // Examples: sys:/apache/cocoon or sys:\apache\cocoon try { this.servletContextURL = new File(path).toURL().toExternalForm(); } catch (MalformedURLException ignored) { throw new ServletException("Unable to determine servlet context URL.", me); } } // initialize settings Core.BootstrapEnvironment env = new ServletBootstrapEnvironment(conf, this.classLoader, this.servletContextPath, this.servletContextURL); this.settings = Core.createSettings(env); this.appContext.put(Core.CONTEXT_SETTINGS, this.settings); if (this.settings.isInitClassloader()) { // Force context classloader so that JAXP can work correctly // (see javax.xml.parsers.FactoryFinder.findClassLoader()) try { Thread.currentThread().setContextClassLoader(this.classLoader); } catch (Exception e) { // ignore this } } try { // FIXME (VG): We shouldn't have to specify these. Need to override // jaxp implementation of weblogic before initializing logger. // This piece of code is also required in the Cocoon class. String value = System.getProperty("javax.xml.parsers.SAXParserFactory"); if (value != null && value.startsWith("weblogic")) { System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); } } catch (Exception e) { // Ignore security exception System.out.println("CocoonServlet: Could not check system properties, got: " + e); } this.appContext.put(Constants.CONTEXT_ENVIRONMENT_CONTEXT, new HttpContext(this.servletContext)); // first init the work-directory for the logger. // this is required if we are running inside a war file! final String workDirParam = this.settings.getWorkDirectory(); File workDir; if (workDirParam != null) { if (this.servletContextPath == null) { // No context path : consider work-directory as absolute workDir = new File(workDirParam); } else { // Context path exists : is work-directory absolute ? File workDirParamFile = new File(workDirParam); if (workDirParamFile.isAbsolute()) { // Yes : keep it as is workDir = workDirParamFile; } else { // No : consider it relative to context path workDir = new File(servletContextPath, workDirParam); } } } else { workDir = (File) this.servletContext.getAttribute("javax.servlet.context.tempdir"); workDir = new File(workDir, "cocoon-files"); } workDir.mkdirs(); this.appContext.put(Constants.CONTEXT_WORK_DIR, workDir); this.settings.setWorkDirectory(workDir.getAbsolutePath()); try { this.appContext.put(ContextHelper.CONTEXT_ROOT_URL, new URL(this.servletContextURL)); } catch (MalformedURLException ignore) { // we simply ignore this } // Init logger initLogger(); if (getLogger().isDebugEnabled()) { getLogger().debug(this.settings.toString()); getLogger().debug("getRealPath for /: " + this.servletContextPath); if (this.servletContextPath == null) { getLogger().debug("getResource for /WEB-INF: " + debugPathOne); getLogger().debug("Path for Root: " + debugPathTwo); } } // Output some debug info if (getLogger().isDebugEnabled()) { getLogger().debug("Servlet Context URL: " + this.servletContextURL); if (workDirParam != null) { getLogger().debug("Using work-directory " + workDir); } else { getLogger().debug("Using default work-directory " + workDir); } } final String uploadDirParam = this.settings.getUploadDirectory(); File uploadDir; if (uploadDirParam != null) { if (this.servletContextPath == null) { uploadDir = new File(uploadDirParam); } else { // Context path exists : is upload-directory absolute ? File uploadDirParamFile = new File(uploadDirParam); if (uploadDirParamFile.isAbsolute()) { // Yes : keep it as is uploadDir = uploadDirParamFile; } else { // No : consider it relative to context path uploadDir = new File(servletContextPath, uploadDirParam); } } if (getLogger().isDebugEnabled()) { getLogger().debug("Using upload-directory " + uploadDir); } } else { uploadDir = new File(workDir, "upload-dir" + File.separator); if (getLogger().isDebugEnabled()) { getLogger().debug("Using default upload-directory " + uploadDir); } } uploadDir.mkdirs(); this.appContext.put(Constants.CONTEXT_UPLOAD_DIR, uploadDir); this.settings.setUploadDirectory(uploadDir.getAbsolutePath()); String cacheDirParam = this.settings.getCacheDirectory(); File cacheDir; if (cacheDirParam != null) { if (this.servletContextPath == null) { cacheDir = new File(cacheDirParam); } else { // Context path exists : is cache-directory absolute ? File cacheDirParamFile = new File(cacheDirParam); if (cacheDirParamFile.isAbsolute()) { // Yes : keep it as is cacheDir = cacheDirParamFile; } else { // No : consider it relative to context path cacheDir = new File(servletContextPath, cacheDirParam); } } if (getLogger().isDebugEnabled()) { getLogger().debug("Using cache-directory " + cacheDir); } } else { cacheDir = IOUtils.createFile(workDir, "cache-dir" + File.separator); if (getLogger().isDebugEnabled()) { getLogger().debug("cache-directory was not set - defaulting to " + cacheDir); } } cacheDir.mkdirs(); this.appContext.put(Constants.CONTEXT_CACHE_DIR, cacheDir); this.settings.setCacheDirectory(cacheDir.getAbsolutePath()); // update settings try { final URL u = env.getConfigFile(this.log, this.settings.getConfiguration()); this.settings.setConfiguration(u.toExternalForm()); this.appContext.put(Constants.CONTEXT_CONFIG_URL, u); } catch (Exception e) { if ( e instanceof ServletException ) { throw (ServletException)e; } throw new ServletException(e); } parentServiceManagerClass = this.settings.getParentServiceManagerClassName(); if (parentServiceManagerClass != null) { int dividerPos = parentServiceManagerClass.indexOf('/'); if (dividerPos != -1) { parentServiceManagerInitParam = parentServiceManagerInitParam.substring(dividerPos + 1); parentServiceManagerClass = parentServiceManagerClass.substring(0, dividerPos); } } this.containerEncoding = getInitParameter("container-encoding", "ISO-8859-1"); this.appContext.put(Constants.CONTEXT_DEFAULT_ENCODING, settings.getFormEncoding()); this.requestFactory = new RequestFactory(settings.isAutosaveUploads(), new File(settings.getUploadDirectory()), settings.isAllowOverwrite(), settings.isSilentlyRename(), settings.getMaxUploadSize(), this.containerEncoding); // Add the servlet configuration this.appContext.put(CONTEXT_SERVLET_CONFIG, conf); createCocoon(); if (this.exception == null) { this.servletContext.log("Apache Cocoon " + Constants.VERSION + " is up and ready."); } else { this.servletContext.log("Errors during initializing Apache Cocoon " + Constants.VERSION + " : " + this.exception.getMessage()); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/4898917f55fc8d6ccd06b94aaf06b0c4a16cd913/CocoonServlet.java/buggy/src/java/org/apache/cocoon/servlet/CocoonServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
2195,
13,
565,
1216,
16517,
288,
3639,
333,
18,
23231,
1042,
273,
2195,
18,
588,
4745,
1042,
5621,
3639,
333,
18,
23231,
1042,
18,
1330,
2932,
29782,
24840,
385,
29571,
265,
315,
397,
5245,
18,
5757,
1769,
3639,
2240,
18,
2738,
12,
3923,
1769,
3639,
333,
18,
23231,
1042,
743,
273,
333,
18,
23231,
1042,
18,
588,
6955,
743,
2932,
4898,
1769,
3639,
514,
589,
273,
333,
18,
23231,
1042,
743,
31,
3639,
368,
4259,
2795,
3152,
854,
2537,
364,
10450,
18,
1660,
848,
1404,
613,
622,
333,
1634,
3639,
368,
487,
326,
1194,
5177,
1404,
6454,
4671,
18,
3639,
514,
1198,
743,
3335,
273,
446,
16,
1198,
743,
11710,
273,
446,
31,
3639,
309,
261,
803,
422,
446,
13,
288,
5411,
368,
6161,
358,
7837,
596,
326,
589,
434,
326,
1365,
628,
716,
434,
19877,
17,
19212,
5411,
775,
288,
7734,
589,
273,
333,
18,
23231,
1042,
18,
588,
1420,
2932,
19,
14778,
17,
19212,
20387,
10492,
5621,
5411,
289,
1044,
261,
18695,
20160,
1791,
13,
288,
7734,
604,
394,
16517,
2932,
3370,
358,
336,
1058,
296,
14778,
17,
19212,
14550,
16,
1791,
1769,
5411,
289,
5411,
1198,
743,
3335,
273,
589,
31,
5411,
589,
273,
589,
18,
28023,
12,
20,
16,
589,
18,
2469,
1435,
300,
315,
14778,
17,
19212,
9654,
2469,
10663,
5411,
1198,
743,
11710,
273,
589,
31,
3639,
289,
3639,
775,
288,
5411,
309,
261,
803,
18,
31806,
2668,
2497,
13,
405,
404,
13,
288,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
2195,
13,
565,
1216,
16517,
288,
3639,
333,
18,
23231,
1042,
273,
2195,
18,
588,
4745,
1042,
5621,
3639,
333,
18,
23231,
1042,
18,
1330,
2932,
29782,
24840,
385,
29571,
265,
315,
397,
5245,
18,
5757,
1769,
3639,
2240,
18,
2738,
12,
3923,
1769,
3639,
333,
18,
23231,
1042,
743,
273,
333,
18,
23231,
1042,
18,
588,
6955,
743,
2932,
4898,
1769,
3639,
514,
589,
273,
333,
18,
23231,
1042,
743,
31,
3639,
368,
4259,
2795,
3152,
854,
2537,
364,
10450,
18,
1660,
848,
1404,
613,
622,
333,
1634,
3639,
368,
487,
326,
1194,
5177,
1404,
6454,
4671,
18,
3639,
514,
1198,
743,
3335,
273,
446,
16,
1198,
743,
11710,
273,
446,
2
] |
|
else if ( byte[].class.isAssignableFrom( clazz)) | else if ( byte[].class.isAssignableFrom( clazz ) ) | public static int toApiDataType( Class clazz ) { if ( clazz == null ) return DataType.UNKNOWN_TYPE; if ( clazz == DataType.AnyType.class ) return DataType.ANY_TYPE; else if ( Integer.class.isAssignableFrom(clazz) ) return DataType.INTEGER_TYPE; else if ( Double.class.isAssignableFrom( clazz )) return DataType.DOUBLE_TYPE; else if ( String.class.isAssignableFrom( clazz )) return DataType.STRING_TYPE; else if ( BigDecimal.class.isAssignableFrom( clazz )) return DataType.DECIMAL_TYPE; else if (Date.class.isAssignableFrom( clazz )) return DataType.DATE_TYPE; else if ( byte[].class.isAssignableFrom( clazz)) return DataType.BINARY_TYPE; else if ( Clob.class.isAssignableFrom( clazz ) || clazz.getName().equals( "org.eclipse.datatools.connectivity.oda.IClob" ) ) return DataType.STRING_TYPE; else if ( Blob.class.isAssignableFrom( clazz ) || clazz.getName( ).equals( "org.eclipse.datatools.connectivity.oda.IBlob" ) ) return DataType.BINARY_TYPE; // any other types are not recognized nor supported; return DataType.UNKNOWN_TYPE; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7424ab5770d7a1045316c1610de414550e371f79/DataTypeUtil.java/clean/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
358,
3064,
6273,
12,
1659,
4003,
262,
202,
95,
202,
202,
430,
261,
4003,
422,
446,
262,
1082,
202,
2463,
14828,
18,
14737,
67,
2399,
31,
202,
202,
430,
261,
4003,
422,
14828,
18,
2961,
559,
18,
1106,
262,
1082,
202,
2463,
14828,
18,
15409,
67,
2399,
31,
202,
202,
12107,
309,
261,
2144,
18,
1106,
18,
291,
7961,
1265,
12,
830,
3638,
13,
262,
1082,
202,
2463,
14828,
18,
14217,
67,
2399,
31,
202,
202,
12107,
309,
261,
3698,
18,
1106,
18,
291,
7961,
1265,
12,
225,
4003,
8623,
1082,
202,
2463,
14828,
18,
17088,
67,
2399,
31,
202,
202,
12107,
309,
261,
514,
18,
1106,
18,
291,
7961,
1265,
12,
4003,
8623,
1082,
202,
2463,
14828,
18,
5804,
67,
2399,
31,
202,
202,
12107,
309,
261,
8150,
18,
1106,
18,
291,
7961,
1265,
12,
4003,
8623,
1082,
202,
2463,
14828,
18,
23816,
67,
2399,
31,
202,
202,
12107,
309,
261,
1626,
18,
1106,
18,
291,
7961,
1265,
12,
4003,
8623,
1082,
202,
2463,
14828,
18,
4594,
67,
2399,
31,
202,
202,
12107,
309,
261,
1160,
63,
8009,
1106,
18,
291,
7961,
1265,
12,
4003,
3719,
1082,
202,
2463,
14828,
18,
16813,
67,
2399,
31,
3639,
469,
309,
261,
385,
1295,
18,
1106,
18,
291,
7961,
1265,
12,
4003,
262,
747,
5375,
4003,
18,
17994,
7675,
14963,
12,
4697,
202,
6,
3341,
18,
20416,
18,
3404,
270,
8192,
18,
3612,
2818,
18,
21319,
18,
2871,
1295,
6,
262,
262,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
358,
3064,
6273,
12,
1659,
4003,
262,
202,
95,
202,
202,
430,
261,
4003,
422,
446,
262,
1082,
202,
2463,
14828,
18,
14737,
67,
2399,
31,
202,
202,
430,
261,
4003,
422,
14828,
18,
2961,
559,
18,
1106,
262,
1082,
202,
2463,
14828,
18,
15409,
67,
2399,
31,
202,
202,
12107,
309,
261,
2144,
18,
1106,
18,
291,
7961,
1265,
12,
830,
3638,
13,
262,
1082,
202,
2463,
14828,
18,
14217,
67,
2399,
31,
202,
202,
12107,
309,
261,
3698,
18,
1106,
18,
291,
7961,
1265,
12,
225,
4003,
8623,
1082,
202,
2463,
14828,
18,
17088,
67,
2399,
31,
202,
202,
12107,
309,
261,
514,
18,
1106,
18,
291,
7961,
1265,
12,
4003,
8623,
2
] |
protected void addAppClientIfNecessary(XMLResource aResource) { | protected void addAppClientIfNecessary(XMLResource aResource, Integer version) { | protected void addAppClientIfNecessary(XMLResource aResource) { if (aResource != null && aResource.getContents().isEmpty()) { ApplicationClient appClient = ClientFactory.eINSTANCE.createApplicationClient(); aResource.getContents().add(appClient); URI moduleURI = getArtifactEditModel().getModuleURI(); try { appClient.setDisplayName(ModuleCore.getDeployedName(moduleURI)); } catch (UnresolveableURIException e) { } aResource.setID(appClient, J2EEConstants.APP_CLIENT_ID); //TODO add more mandatory elements } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/0f1fc79e5aa4c8262dfce2d31445445c05e73f17/AppClientArtifactEdit.java/buggy/plugins/org.eclipse.jst.j2ee/appclientcreation/org/eclipse/jst/j2ee/applicationclient/internal/modulecore/util/AppClientArtifactEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3371,
1227,
26034,
12,
4201,
1420,
279,
1420,
13,
288,
202,
202,
430,
261,
69,
1420,
480,
446,
597,
279,
1420,
18,
588,
6323,
7675,
291,
1921,
10756,
288,
1082,
202,
3208,
1227,
595,
1227,
273,
2445,
1733,
18,
73,
13341,
18,
2640,
3208,
1227,
5621,
1082,
202,
69,
1420,
18,
588,
6323,
7675,
1289,
12,
2910,
1227,
1769,
1082,
202,
3098,
1605,
3098,
273,
24957,
4666,
1488,
7675,
588,
3120,
3098,
5621,
1082,
202,
698,
288,
9506,
202,
2910,
1227,
18,
542,
20524,
12,
3120,
4670,
18,
588,
31954,
461,
12,
2978,
3098,
10019,
1082,
202,
97,
1044,
261,
984,
10828,
429,
3098,
503,
425,
13,
288,
1082,
202,
97,
1082,
202,
69,
1420,
18,
542,
734,
12,
2910,
1227,
16,
804,
22,
9383,
2918,
18,
7215,
67,
11935,
67,
734,
1769,
1082,
202,
759,
6241,
527,
1898,
11791,
2186,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3371,
1227,
26034,
12,
4201,
1420,
279,
1420,
13,
288,
202,
202,
430,
261,
69,
1420,
480,
446,
597,
279,
1420,
18,
588,
6323,
7675,
291,
1921,
10756,
288,
1082,
202,
3208,
1227,
595,
1227,
273,
2445,
1733,
18,
73,
13341,
18,
2640,
3208,
1227,
5621,
1082,
202,
69,
1420,
18,
588,
6323,
7675,
1289,
12,
2910,
1227,
1769,
1082,
202,
3098,
1605,
3098,
273,
24957,
4666,
1488,
7675,
588,
3120,
3098,
5621,
1082,
202,
698,
288,
9506,
202,
2910,
1227,
18,
542,
20524,
12,
3120,
4670,
18,
588,
31954,
461,
12,
2978,
3098,
10019,
1082,
202,
97,
1044,
261,
984,
10828,
429,
3098,
503,
425,
13,
288,
1082,
202,
97,
1082,
202,
69,
2
] |
System.out.println("CmdRunner.makeConnectString: connectString="+connectString); | CmdRunner.debug("CmdRunner.makeConnectString: connectString="+connectString); | public String makeConnectString() { String connectString = CmdRunner.getConnectStringProperty(); // TODO replace all of these 'println' calls with LoggerSystem.out.println("CmdRunner.makeConnectString: connectString="+connectString); Util.PropertyList connectProperties = null; if (connectString == null || connectString.equals("")) { connectProperties = new Util.PropertyList(); connectProperties.put("Provider","mondrian"); } else { connectProperties = Util.parseConnectString(connectString); } // override jdbc url String jdbcURL = CmdRunner.getJdbcURLProperty();System.out.println("CmdRunner.makeConnectString: jdbcURL="+jdbcURL); if (jdbcURL != null) { connectProperties.put("Jdbc", jdbcURL); } // override jdbc drivers String jdbcDrivers = CmdRunner.getJdbcDriversProperty();System.out.println("CmdRunner.makeConnectString: jdbcDrivers="+jdbcDrivers); if (jdbcURL != null) { connectProperties.put("JdbcDrivers", jdbcDrivers); } // override catalog url String catalogURL = CmdRunner.getCatalogURLProperty();System.out.println("CmdRunner.makeConnectString: catalogURL="+catalogURL); if (catalogURL != null) { connectProperties.put("catalog", catalogURL); }System.out.println("CmdRunner.makeConnectString: connectProperties="+connectProperties); return connectProperties.toString(); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/829999bd5d0b66b826a808b7c58358f398b081b5/CmdRunner.java/clean/src/main/mondrian/tui/CmdRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
3077,
780,
1546,
15,
3612,
780,
1769,
3639,
3564,
18,
1396,
682,
3077,
2297,
273,
446,
31,
3639,
309,
261,
3612,
780,
422,
446,
747,
3077,
780,
18,
14963,
2932,
6,
3719,
288,
5411,
3077,
2297,
273,
394,
3564,
18,
1396,
682,
5621,
5411,
3077,
2297,
18,
458,
2932,
2249,
15937,
81,
1434,
566,
304,
8863,
3639,
289,
469,
288,
5411,
3077,
2297,
273,
3564,
18,
2670,
5215,
780,
12,
3612,
780,
1769,
3639,
289,
3639,
368,
3849,
16579,
880,
3639,
514,
16579,
1785,
273,
13328,
9709,
18,
588,
25316,
1785,
1396,
5621,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
16579,
1785,
1546,
15,
24687,
1785,
1769,
3639,
309,
261,
24687,
1785,
480,
446,
13,
288,
5411,
3077,
2297,
18,
458,
2932,
25316,
3113,
16579,
1785,
1769,
3639,
289,
3639,
368,
3849,
16579,
16118,
3639,
514,
16579,
26310,
273,
13328,
9709,
18,
588,
25316,
26310,
1396,
5621,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
16579,
26310,
1546,
15,
24687,
26310,
1769,
3639,
309,
261,
24687,
1785,
480,
446,
13,
288,
5411,
3077,
2297,
18,
458,
2932,
25316,
26310,
3113,
16579,
26310,
1769,
3639,
289,
3639,
368,
3849,
6222,
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,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
3077,
780,
1546,
15,
3612,
780,
1769,
3639,
3564,
18,
1396,
682,
3077,
2297,
273,
446,
31,
3639,
309,
261,
3612,
780,
422,
446,
747,
3077,
780,
18,
14963,
2932,
6,
3719,
288,
5411,
3077,
2297,
273,
394,
3564,
18,
1396,
682,
5621,
5411,
3077,
2297,
18,
458,
2932,
2249,
15937,
81,
1434,
566,
304,
8863,
3639,
289,
469,
288,
5411,
3077,
2297,
273,
3564,
18,
2670,
5215,
780,
12,
3612,
780,
2
] |
public void writePrefs () { | public void writePrefs() { /* | public void writePrefs () { prefs.putInt("server.count",size()); for (int i=0; i<size(); i++) { prefs.putString ("server."+i+".description" ,get(i).getDescription()); prefs.putString ("server."+i+".host" ,get(i).getHost()); prefs.putInt ("server."+i+".port" ,get(i).getPort()); prefs.putString ("server."+i+".type" ,get(i).getType()); prefs.putString ("server."+i+".username" ,get(i).getUsername()); prefs.putString ("server."+i+".password" ,get(i).getPassword()); prefs.putInt ("server."+i+".default_identity" ,get(i).getDefaultIdentity()); prefs.putString ("server."+i+".berkeley.directory" ,get(i).getBerkeleyDirectory()); prefs.putBoolean("server."+i+".pop3.showasimap" ,get(i).getPOP3ShowAsImap()); prefs.putBoolean("server."+i+".pop3.leavemailonserver",get(i).getPOP3LeaveMailOnServer()); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/197bb74e084fe41a1eb953921d753b275c595a3d/ServerArray.java/clean/grendel/sources/grendel/prefs/base/ServerArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
1386,
2556,
1435,
288,
1748,
4202,
15503,
18,
458,
1702,
2932,
3567,
18,
1883,
3113,
1467,
10663,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
5621,
277,
27245,
288,
5411,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
3384,
6,
6647,
269,
588,
12,
77,
2934,
588,
3291,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
2564,
6,
5375,
269,
588,
12,
77,
2934,
588,
2594,
10663,
1377,
15503,
18,
458,
1702,
565,
7566,
3567,
1199,
15,
77,
9078,
18,
655,
6,
5375,
269,
588,
12,
77,
2934,
588,
2617,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
723,
6,
5375,
269,
588,
12,
77,
2934,
588,
559,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
5053,
6,
2868,
269,
588,
12,
77,
2934,
588,
8575,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
3664,
6,
2868,
269,
588,
12,
77,
2934,
588,
3913,
10663,
1377,
15503,
18,
458,
1702,
565,
7566,
3567,
1199,
15,
77,
9078,
18,
1886,
67,
10781,
6,
1377,
269,
588,
12,
77,
2934,
588,
1868,
4334,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
744,
79,
292,
402,
18,
5149,
6,
565,
269,
588,
12,
77,
2934,
588,
38,
264,
79,
292,
402,
2853,
10663,
1377,
15503,
18,
458,
5507,
2932,
3567,
1199,
15,
77,
9078,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
1386,
2556,
1435,
288,
1748,
4202,
15503,
18,
458,
1702,
2932,
3567,
18,
1883,
3113,
1467,
10663,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
5621,
277,
27245,
288,
5411,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
3384,
6,
6647,
269,
588,
12,
77,
2934,
588,
3291,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
2564,
6,
5375,
269,
588,
12,
77,
2934,
588,
2594,
10663,
1377,
15503,
18,
458,
1702,
565,
7566,
3567,
1199,
15,
77,
9078,
18,
655,
6,
5375,
269,
588,
12,
77,
2934,
588,
2617,
10663,
1377,
15503,
18,
458,
780,
7566,
3567,
1199,
15,
77,
9078,
18,
723,
2
] |
"x\\iftrue a\\fi x", | "x\\iftrue a\\fi x\\end", | public void test2() throws Exception { assertSuccess(//--- input code --- "x\\iftrue a\\fi x", //--- output channel --- "xax" + TERM); } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/214164c9ed1775ade6f72d74fe7722c0fd3e682b/IftrueTest.java/clean/ExTeX/src/test/de/dante/extex/interpreter/primitives/conditional/IftrueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
22,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
759,
6062,
810,
981,
9948,
7734,
315,
92,
1695,
430,
3767,
279,
1695,
22056,
619,
1695,
409,
3113,
7734,
368,
6062,
876,
1904,
9948,
7734,
315,
92,
651,
6,
397,
20772,
49,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
22,
1435,
1216,
1185,
288,
3639,
1815,
4510,
12,
759,
6062,
810,
981,
9948,
7734,
315,
92,
1695,
430,
3767,
279,
1695,
22056,
619,
1695,
409,
3113,
7734,
368,
6062,
876,
1904,
9948,
7734,
315,
92,
651,
6,
397,
20772,
49,
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
] |
boolean loadFSImage(File fsdir, File edits) throws IOException { | boolean loadFSImage( File fsdir, File edits, Configuration conf ) throws IOException { | boolean loadFSImage(File fsdir, File edits) throws IOException { // // Atomic move sequence, to recover from interrupted save // File curFile = new File(fsdir, FS_IMAGE); File newFile = new File(fsdir, NEW_FS_IMAGE); File oldFile = new File(fsdir, OLD_FS_IMAGE); // Maybe we were interrupted between 2 and 4 if (oldFile.exists() && curFile.exists()) { oldFile.delete(); if (edits.exists()) { edits.delete(); } } else if (oldFile.exists() && newFile.exists()) { // Or maybe between 1 and 2 newFile.renameTo(curFile); oldFile.delete(); } else if (curFile.exists() && newFile.exists()) { // Or else before stage 1, in which case we lose the edits newFile.delete(); } // // Load in bits // if (curFile.exists()) { DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(curFile))); try { int numFiles = in.readInt(); for (int i = 0; i < numFiles; i++) { UTF8 name = new UTF8(); name.readFields(in); int numBlocks = in.readInt(); if (numBlocks == 0) { unprotectedAddFile(name, null); } else { Block blocks[] = new Block[numBlocks]; for (int j = 0; j < numBlocks; j++) { blocks[j] = new Block(); blocks[j].readFields(in); } unprotectedAddFile(name, blocks); } } } finally { in.close(); } } if (edits.exists() && loadFSEdits(edits) > 0) { return true; } else { return false; } } | 50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1262,
4931,
2040,
12,
1387,
2662,
1214,
16,
1387,
24450,
16,
4659,
2195,
262,
1216,
1860,
288,
3639,
368,
3639,
368,
11553,
3635,
3102,
16,
358,
5910,
628,
15711,
1923,
3639,
368,
3639,
1387,
662,
812,
273,
394,
1387,
12,
2556,
1214,
16,
9247,
67,
13603,
1769,
3639,
1387,
20592,
273,
394,
1387,
12,
2556,
1214,
16,
12887,
67,
4931,
67,
13603,
1769,
3639,
1387,
1592,
812,
273,
394,
1387,
12,
2556,
1214,
16,
30432,
67,
4931,
67,
13603,
1769,
3639,
368,
14024,
732,
4591,
15711,
3086,
576,
471,
1059,
3639,
309,
261,
1673,
812,
18,
1808,
1435,
597,
662,
812,
18,
1808,
10756,
288,
5411,
1592,
812,
18,
3733,
5621,
5411,
309,
261,
329,
1282,
18,
1808,
10756,
288,
7734,
24450,
18,
3733,
5621,
5411,
289,
3639,
289,
469,
309,
261,
1673,
812,
18,
1808,
1435,
597,
20592,
18,
1808,
10756,
288,
5411,
368,
2965,
6944,
3086,
404,
471,
576,
5411,
20592,
18,
18539,
774,
12,
1397,
812,
1769,
5411,
1592,
812,
18,
3733,
5621,
3639,
289,
469,
309,
261,
1397,
812,
18,
1808,
1435,
597,
20592,
18,
1808,
10756,
288,
5411,
368,
2965,
469,
1865,
6009,
404,
16,
316,
1492,
648,
732,
29612,
326,
24450,
5411,
20592,
18,
3733,
5621,
3639,
289,
3639,
368,
3639,
368,
4444,
316,
4125,
3639,
368,
3639,
309,
261,
1397,
812,
18,
1808,
10756,
288,
5411,
29382,
316,
273,
394,
29382,
12,
2704,
24742,
12,
2704,
11907,
12,
1397,
812,
3719,
1769,
5411,
775,
288,
7734,
509,
818,
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,
1250,
1262,
4931,
2040,
12,
1387,
2662,
1214,
16,
1387,
24450,
16,
4659,
2195,
262,
1216,
1860,
288,
3639,
368,
3639,
368,
11553,
3635,
3102,
16,
358,
5910,
628,
15711,
1923,
3639,
368,
3639,
1387,
662,
812,
273,
394,
1387,
12,
2556,
1214,
16,
9247,
67,
13603,
1769,
3639,
1387,
20592,
273,
394,
1387,
12,
2556,
1214,
16,
12887,
67,
4931,
67,
13603,
1769,
3639,
1387,
1592,
812,
273,
394,
1387,
12,
2556,
1214,
16,
30432,
67,
4931,
67,
13603,
1769,
3639,
368,
14024,
732,
4591,
15711,
3086,
576,
471,
1059,
3639,
309,
261,
1673,
812,
18,
1808,
1435,
597,
662,
812,
18,
1808,
10756,
288,
5411,
1592,
812,
18,
3733,
5621,
5411,
309,
261,
329,
1282,
18,
2
] |
BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); | WritableRaster wr2 = wr.createWritableTranslatedChild (wr.getMinX()-getMinX(), wr.getMinY()-getMinY()); GraphicsUtil.copyData(bi.getRaster(), wr2); /* This was the original code. This is _bad_ since it causes a * multiply and divide of the alpha channel to do the draw * operation. I believe that at some point I switched to * drawImage in order to avoid some issues with * BufferedImage's copyData implementation but I can't * reproduce them now. Anyway I'm now using GraphicsUtil which * should generally be as fast if not faster... */ /* BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); */ | public WritableRaster copyData(WritableRaster wr) { BufferedImage dest; dest = new BufferedImage(bi.getColorModel(), wr.createWritableTranslatedChild(0,0), bi.getColorModel().isAlphaPremultiplied(), null); java.awt.Graphics2D g2d = dest.createGraphics(); g2d.drawImage(bi, null, getMinX()-wr.getMinX(), getMinY()-wr.getMinY()); g2d.dispose(); return wr; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/dc27dc059ad1f52f55dd6cd5923eef7671a40cb7/ConcreteBufferedImageCachableRed.java/clean/sources/org/apache/batik/refimpl/gvt/filter/ConcreteBufferedImageCachableRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
12362,
1570,
31,
3639,
1570,
273,
394,
12362,
12,
13266,
18,
588,
2957,
1488,
9334,
21394,
12408,
18,
2640,
12061,
20421,
1763,
12,
20,
16,
20,
3631,
21394,
10054,
18,
588,
2957,
1488,
7675,
291,
9690,
1386,
7027,
3110,
9334,
21394,
446,
1769,
3639,
2252,
18,
2219,
88,
18,
17558,
22,
40,
314,
22,
72,
273,
1570,
18,
2640,
17558,
5621,
3639,
314,
22,
72,
18,
9446,
2040,
12,
13266,
16,
446,
16,
9555,
60,
1435,
17,
91,
86,
18,
588,
2930,
60,
9334,
15604,
9555,
61,
1435,
17,
91,
86,
18,
588,
2930,
61,
10663,
3639,
314,
22,
72,
18,
2251,
4150,
5621,
3639,
327,
12408,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
12362,
1570,
31,
3639,
1570,
273,
394,
12362,
12,
13266,
18,
588,
2957,
1488,
9334,
21394,
12408,
18,
2640,
12061,
20421,
1763,
12,
20,
16,
20,
3631,
21394,
10054,
18,
588,
2957,
1488,
7675,
291,
9690,
1386,
7027,
3110,
9334,
21394,
446,
1769,
3639,
2252,
18,
2219,
88,
18,
17558,
22,
40,
314,
22,
72,
273,
1570,
18,
2640,
17558,
5621,
3639,
314,
22,
72,
18,
9446,
2040,
12,
13266,
16,
446,
16,
9555,
60,
1435,
17,
91,
86,
18,
588,
2930,
60,
9334,
15604,
9555,
61,
1435,
17,
91,
86,
18,
588,
2930,
61,
10663,
3639,
314,
22,
72,
18,
2251,
4150,
5621,
3639,
327,
2
] |
for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext(); ) { | for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext();) { | public void mergeVertices(Set<VertexType> vertexSet, GraphType g, VertexCombinator<VertexType> combinator, GraphToolkit<GraphType, EdgeType, VertexType> toolkit) { // Special case: if the vertex set contains a single vertex // or is empty, there is nothing to do if (vertexSet.size() <= 1) return; // Get all vertices to which we have outgoing edges // or from which we have incoming edges, since they'll need // to be fixed TreeSet<EdgeType> edgeSet = new TreeSet<EdgeType>(); for (Iterator<EdgeType> i = g.edgeIterator(); i.hasNext(); ) { EdgeType e = i.next(); if (vertexSet.contains(e.getSource()) || vertexSet.contains(e.getTarget())) edgeSet.add(e); } // Combine all of the vertices into a single composite vertex VertexType compositeVertex = combinator.combineVertices(vertexSet); // For each original edge into or out of the vertex set, // create an equivalent edge referencing the composite // vertex for (Iterator<EdgeType> i = edgeSet.iterator(); i.hasNext(); ) { EdgeType e = i.next(); VertexType source = vertexSet.contains(e.getSource()) ? compositeVertex : e.getSource(); VertexType target = vertexSet.contains(e.getTarget()) ? compositeVertex : e.getTarget();// if (source != compositeVertex && target != compositeVertex)// System.out.println("BIG OOPS!"); // Don't create a self edge for the composite vertex // unless one of the vertices in the vertex set // had a self edge if (source == compositeVertex && target == compositeVertex && e.getSource() != e.getTarget()) continue; // Don't create duplicate edges. if (g.lookupEdge(source, target) != null) continue; EdgeType compositeEdge = g.createEdge(source, target); // FIXME: we really should have an EdgeCombinator here toolkit.copyEdge(e, compositeEdge); } // Remove all of the vertices in the vertex set; this will // automatically remove the edges into and out of those // vertices for (Iterator<VertexType> i = vertexSet.iterator(); i.hasNext(); ) { g.removeVertex(i.next()); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/MergeVertices.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/MergeVertices.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2691,
13371,
12,
694,
32,
6475,
559,
34,
5253,
694,
16,
5601,
559,
314,
16,
12541,
11328,
4240,
32,
6475,
559,
34,
3894,
4240,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
559,
16,
11342,
559,
16,
12541,
559,
34,
5226,
8691,
13,
288,
202,
202,
759,
13409,
648,
30,
309,
326,
5253,
444,
1914,
279,
2202,
5253,
202,
202,
759,
578,
353,
1008,
16,
1915,
353,
5083,
358,
741,
202,
202,
430,
261,
15281,
694,
18,
1467,
1435,
1648,
404,
13,
1082,
202,
2463,
31,
202,
202,
759,
968,
777,
6928,
358,
1492,
732,
1240,
12902,
5231,
202,
202,
759,
578,
628,
1492,
732,
1240,
6935,
5231,
16,
3241,
2898,
5614,
1608,
202,
202,
759,
358,
506,
5499,
202,
202,
2471,
694,
32,
6098,
559,
34,
3591,
694,
273,
394,
19461,
32,
6098,
559,
34,
5621,
202,
202,
1884,
261,
3198,
32,
6098,
559,
34,
277,
273,
314,
18,
7126,
3198,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
1082,
202,
6098,
559,
425,
273,
277,
18,
4285,
5621,
1082,
202,
430,
261,
15281,
694,
18,
12298,
12,
73,
18,
588,
1830,
10756,
747,
5253,
694,
18,
12298,
12,
73,
18,
588,
2326,
1435,
3719,
9506,
202,
7126,
694,
18,
1289,
12,
73,
1769,
202,
202,
97,
202,
202,
759,
23949,
777,
434,
326,
6928,
1368,
279,
2202,
9635,
5253,
202,
202,
6475,
559,
9635,
6475,
273,
3894,
4240,
18,
14082,
13371,
12,
15281,
694,
1769,
202,
202,
759,
2457,
1517,
2282,
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,
2691,
13371,
12,
694,
32,
6475,
559,
34,
5253,
694,
16,
5601,
559,
314,
16,
12541,
11328,
4240,
32,
6475,
559,
34,
3894,
4240,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
559,
16,
11342,
559,
16,
12541,
559,
34,
5226,
8691,
13,
288,
202,
202,
759,
13409,
648,
30,
309,
326,
5253,
444,
1914,
279,
2202,
5253,
202,
202,
759,
578,
353,
1008,
16,
1915,
353,
5083,
358,
741,
202,
202,
430,
261,
15281,
694,
18,
1467,
1435,
1648,
404,
13,
1082,
202,
2463,
31,
202,
202,
759,
968,
777,
6928,
358,
1492,
732,
1240,
12902,
5231,
202,
202,
759,
578,
628,
1492,
732,
1240,
6935,
5231,
16,
3241,
2898,
5614,
1608,
202,
202,
2
] |
printError(args[0], e); | printError(args[pos], e); | public static void main(String[] args) { MibLoader loader = new MibLoader(); Mib mib = null; File file; URL url; Iterator iter; // Check command-line arguments if (args.length < 1) { printHelp("No MIB file or URL specified"); System.exit(1); } else if (args.length > 1) { printHelp("Only one MIB file or URL may be specified"); System.exit(1); } // Parse MIB file try { try { url = new URL(args[0]); } catch (MalformedURLException e) { url = null; } if (url == null) { file = new File(args[0]); loader.addDir(file.getParentFile()); mib = loader.load(file); } else { mib = loader.load(url); } if (mib.getLog().warningCount() > 0) { mib.getLog().printTo(System.err); } } catch (FileNotFoundException e) { printError(args[0], e); System.exit(1); } catch (IOException e) { printError(args[0], e); System.exit(1); } catch (MibLoaderException e) { e.getLog().printTo(System.err); System.exit(1); } catch (RuntimeException e) { printInternalError(e); System.exit(1); } // Print MIB file iter = mib.getAllSymbols().iterator(); while (iter.hasNext()) { System.out.println(iter.next()); System.out.println(); } } | 48557 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48557/a370b262551b141ff0ab967a6bf108ca77d81439/MibblePrinter.java/buggy/src/java/net/percederberg/mibble/MibblePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
490,
495,
2886,
225,
4088,
273,
394,
490,
495,
2886,
5621,
3639,
490,
495,
3639,
312,
495,
273,
446,
31,
3639,
1387,
4202,
585,
31,
3639,
1976,
3639,
880,
31,
3639,
4498,
282,
1400,
31,
3639,
368,
2073,
1296,
17,
1369,
1775,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
1172,
6696,
2932,
2279,
490,
13450,
585,
578,
1976,
1269,
8863,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
469,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
5411,
1172,
6696,
2932,
3386,
1245,
490,
13450,
585,
578,
1976,
2026,
506,
1269,
8863,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
3639,
368,
2884,
490,
13450,
585,
3639,
775,
288,
5411,
775,
288,
7734,
880,
273,
394,
1976,
12,
1968,
63,
20,
19226,
5411,
289,
1044,
261,
18695,
20160,
425,
13,
288,
7734,
880,
273,
446,
31,
5411,
289,
5411,
309,
261,
718,
422,
446,
13,
288,
7734,
585,
273,
394,
1387,
12,
1968,
63,
20,
19226,
7734,
4088,
18,
1289,
1621,
12,
768,
18,
588,
3054,
812,
10663,
7734,
312,
495,
273,
4088,
18,
945,
12,
768,
1769,
5411,
289,
469,
288,
7734,
312,
495,
273,
4088,
18,
945,
12,
718,
1769,
5411,
289,
5411,
309,
261,
81,
495,
18,
588,
1343,
7675,
8551,
1380,
1435,
405,
374,
13,
288,
7734,
312,
495,
18,
588,
1343,
7675,
1188,
774,
12,
3163,
18,
370,
1769,
5411,
289,
3639,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
490,
495,
2886,
225,
4088,
273,
394,
490,
495,
2886,
5621,
3639,
490,
495,
3639,
312,
495,
273,
446,
31,
3639,
1387,
4202,
585,
31,
3639,
1976,
3639,
880,
31,
3639,
4498,
282,
1400,
31,
3639,
368,
2073,
1296,
17,
1369,
1775,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
1172,
6696,
2932,
2279,
490,
13450,
585,
578,
1976,
1269,
8863,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
469,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
5411,
1172,
6696,
2932,
3386,
1245,
490,
13450,
585,
578,
1976,
2026,
506,
1269,
8863,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
2
] |
setAutoinc(); | setAutoincUse(); | public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setAutoinc(); setSequence(); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/8752f3f5e66d59d9e3a97e797cef7bc045d25df6/CombinationLookupDialog.java/clean/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
9506,
202,
95,
6862,
202,
759,
1660,
1240,
394,
913,
30,
2549,
9039,
1459,
30,
6862,
202,
8450,
273,
906,
2781,
18,
4720,
4254,
12,
91,
1952,
18,
588,
1528,
10663,
6862,
202,
542,
7150,
885,
71,
5621,
6862,
202,
542,
4021,
5621,
9506,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
9506,
202,
95,
6862,
202,
759,
1660,
1240,
394,
913,
30,
2549,
9039,
1459,
30,
6862,
202,
8450,
273,
906,
2781,
18,
4720,
4254,
12,
91,
1952,
18,
588,
1528,
10663,
6862,
202,
542,
7150,
885,
71,
5621,
6862,
202,
542,
4021,
5621,
9506,
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
] |
node != tree) | node != tree && ((FunctionNode) node.getProp(Node.FUNCTION_PROP)).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) | protected void addVariables(Node tree, VariableTable vars) { // OPT: a whole pass to collect variables seems expensive. // Could special case to go into statements only. boolean inFunction = tree.getType() == TokenStream.FUNCTION; PreorderNodeIterator iterator = tree.getPreorderIterator(); Hashtable ht = null; Node node; while ((node = iterator.nextNode()) != null) { int nodeType = node.getType(); if (inFunction && nodeType == TokenStream.FUNCTION && node != tree) { // In a function with both "var x" and "function x", // disregard the var statement, independent of order. String name = node.getString(); if (name == null) continue; vars.removeLocal(name); if (ht == null) ht = new Hashtable(); ht.put(name, Boolean.TRUE); } if (nodeType != TokenStream.VAR) continue; ShallowNodeIterator i = node.getChildIterator(); while (i.hasMoreElements()) { Node n = i.nextNode(); if (ht == null || ht.get(n.getString()) == null) vars.addLocal(n.getString()); } } } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/3eb542db2c80d7521ea272c802d999a32072bfb6/NodeTransformer.java/clean/src/org/mozilla/javascript/NodeTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,
6317,
1338,
18,
3639,
1250,
316,
2083,
273,
2151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
31,
3639,
2962,
1019,
907,
3198,
2775,
273,
2151,
18,
588,
1386,
1019,
3198,
5621,
3639,
18559,
14049,
273,
446,
31,
3639,
2029,
756,
31,
3639,
1323,
14015,
2159,
273,
2775,
18,
4285,
907,
10756,
480,
446,
13,
288,
5411,
509,
9507,
273,
756,
18,
588,
559,
5621,
5411,
309,
261,
267,
2083,
597,
9507,
422,
3155,
1228,
18,
7788,
597,
7734,
756,
480,
2151,
597,
14015,
2083,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
13,
2934,
588,
2083,
559,
1435,
422,
4284,
907,
18,
7788,
67,
19111,
67,
28411,
13,
2398,
288,
7734,
368,
657,
279,
445,
598,
3937,
315,
1401,
619,
6,
471,
315,
915,
619,
3113,
7734,
368,
1015,
1574,
1060,
326,
569,
3021,
16,
14807,
434,
1353,
18,
7734,
514,
508,
273,
756,
18,
588,
780,
5621,
7734,
309,
261,
529,
422,
446,
13,
10792,
1324,
31,
7734,
4153,
18,
4479,
2042,
12,
529,
1769,
7734,
309,
261,
647,
422,
446,
13,
10792,
14049,
273,
394,
18559,
5621,
7734,
14049,
18,
458,
12,
529,
16,
3411,
18,
18724,
1769,
5411,
289,
5411,
309,
261,
2159,
559,
480,
3155,
1228,
18,
7716,
13,
7734,
1324,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,
6317,
1338,
18,
3639,
1250,
316,
2083,
273,
2151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
31,
3639,
2962,
1019,
907,
3198,
2775,
273,
2151,
18,
588,
1386,
1019,
3198,
5621,
3639,
18559,
14049,
273,
446,
31,
3639,
2029,
756,
31,
3639,
1323,
14015,
2159,
273,
2775,
18,
4285,
907,
10756,
480,
446,
13,
288,
5411,
509,
9507,
273,
756,
18,
588,
559,
5621,
5411,
309,
261,
267,
2083,
597,
9507,
422,
3155,
1228,
18,
7788,
597,
7734,
756,
480,
2151,
597,
2
] |
public void testNonTestCaseError() throws Exception { if (printMessages) System.out.println("----testNonTestCaseError-----"); final OpenDefinitionsDocument doc = setupDocument(NON_TESTCASE_TEXT); final File file = new File(_tempDir, "NonTestCase.java"); doc.saveFile(new FileSelector(file)); JUnitTestListener listener = new JUnitNonTestListener(); _model.addListener(listener); if (printMessages) System.out.println("before compile"); // Doesn't reset interactions because interpreter is not used doc.startCompile(); if (printMessages) System.out.println("after compile"); synchronized(listener) { doc.startJUnit(); listener.assertJUnitStartCount(1); if (printMessages) System.out.println("waiting for test"); listener.wait(); } if (printMessages) System.out.println("after test"); // Check events fired listener.assertJUnitEndCount(1); listener.assertNonTestCaseCount(1); listener.assertJUnitSuiteStartedCount(0); listener.assertJUnitTestStartedCount(0); listener.assertJUnitTestEndedCount(0); _model.removeListener(listener); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/070ce5905e33fc289f79bfc0035862d6493d03f5/GlobalModelJUnitTest.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelJUnitTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3989,
4709,
2449,
668,
1435,
15069,
503,
95,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
553,
3813,
3989,
4709,
2449,
668,
13465,
8863,
6385,
3678,
7130,
2519,
2434,
33,
8401,
2519,
12,
3993,
67,
16961,
13415,
67,
5151,
1769,
6385,
812,
768,
33,
2704,
812,
24899,
5814,
1621,
10837,
3989,
4709,
2449,
18,
6290,
8863,
2434,
18,
5688,
812,
12,
2704,
812,
4320,
12,
768,
10019,
46,
2802,
4709,
2223,
12757,
33,
2704,
46,
2802,
3989,
4709,
2223,
5621,
67,
2284,
18,
1289,
2223,
12,
12757,
1769,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
5771,
11100,
8863,
759,
10154,
82,
1404,
6208,
2761,
4905,
26274,
2761,
11599,
291,
902,
1202,
449,
504,
18,
1937,
9937,
5621,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
5205,
11100,
8863,
22043,
12,
12757,
15329,
2434,
18,
1937,
46,
2802,
5621,
12757,
18,
11231,
46,
2802,
1685,
1380,
12,
21,
1769,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
20241,
18850,
395,
8863,
12757,
18,
7048,
5621,
97,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
5205,
3813,
8863,
759,
1564,
5989,
74,
2921,
12757,
18,
11231,
46,
2802,
1638,
1380,
12,
21,
1769,
12757,
18,
11231,
3989,
4709,
2449,
1380,
12,
21,
1769,
12757,
18,
11231,
46,
2802,
13587,
9217,
1380,
12,
20,
1769,
12757,
18,
11231,
46,
2802,
4709,
9217,
1380,
12,
20,
1769,
12757,
18,
11231,
46,
2802,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
3989,
4709,
2449,
668,
1435,
15069,
503,
95,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
553,
3813,
3989,
4709,
2449,
668,
13465,
8863,
6385,
3678,
7130,
2519,
2434,
33,
8401,
2519,
12,
3993,
67,
16961,
13415,
67,
5151,
1769,
6385,
812,
768,
33,
2704,
812,
24899,
5814,
1621,
10837,
3989,
4709,
2449,
18,
6290,
8863,
2434,
18,
5688,
812,
12,
2704,
812,
4320,
12,
768,
10019,
46,
2802,
4709,
2223,
12757,
33,
2704,
46,
2802,
3989,
4709,
2223,
5621,
67,
2284,
18,
1289,
2223,
12,
12757,
1769,
430,
12,
1188,
5058,
13,
3163,
18,
659,
18,
8222,
2932,
5771,
11100,
8863,
759,
10154,
82,
1404,
6208,
2761,
4905,
26274,
2761,
11599,
291,
2
] |
||
throw new MobyException(newline + "Unknown error occured while creating String[]." | throw new MobyException(newline + "Unknown error occured while creating String[]." | public static String[] getWrappedSimplesFromCollection(String name, String xml) throws MobyException { Element[] elements = getWrappedSimplesFromCollection(name, getDOMDocument(xml) .getRootElement()); String[] strings = new String[elements.length]; XMLOutputter output = new XMLOutputter(Format.getPrettyFormat()); for (int i = 0; i < elements.length; i++) { try { strings[i] = output.outputString(elements[i]); } catch (Exception e) { throw new MobyException(newline + "Unknown error occured while creating String[]." + newline + Utils.format(e.getLocalizedMessage(), 3)); } } return strings; } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/bd67d7d50fb035c546da89a7a2782c52b33c9b88/XMLUtilities.java/clean/trunk/taverna1.0/taverna-biomoby/src/main/java/org/biomoby/client/taverna/plugin/XMLUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
336,
17665,
7993,
6089,
1265,
2532,
12,
780,
508,
16,
514,
2025,
13,
1082,
202,
15069,
490,
947,
93,
503,
288,
202,
202,
1046,
8526,
2186,
273,
336,
17665,
7993,
6089,
1265,
2532,
12,
529,
16,
2343,
1872,
2519,
12,
2902,
13,
9506,
202,
18,
588,
2375,
1046,
10663,
202,
202,
780,
8526,
2064,
273,
394,
514,
63,
6274,
18,
2469,
15533,
202,
202,
4201,
1447,
387,
876,
273,
394,
3167,
1447,
387,
12,
1630,
18,
588,
20491,
1630,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
10219,
63,
77,
65,
273,
876,
18,
2844,
780,
12,
6274,
63,
77,
19226,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
12849,
394,
490,
947,
93,
503,
12,
22861,
397,
315,
4874,
555,
16206,
1323,
4979,
514,
8526,
1199,
25083,
202,
15,
9472,
397,
6091,
18,
2139,
12,
73,
18,
588,
2042,
1235,
1079,
9334,
890,
10019,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2064,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
8526,
336,
17665,
7993,
6089,
1265,
2532,
12,
780,
508,
16,
514,
2025,
13,
1082,
202,
15069,
490,
947,
93,
503,
288,
202,
202,
1046,
8526,
2186,
273,
336,
17665,
7993,
6089,
1265,
2532,
12,
529,
16,
2343,
1872,
2519,
12,
2902,
13,
9506,
202,
18,
588,
2375,
1046,
10663,
202,
202,
780,
8526,
2064,
273,
394,
514,
63,
6274,
18,
2469,
15533,
202,
202,
4201,
1447,
387,
876,
273,
394,
3167,
1447,
387,
12,
1630,
18,
588,
20491,
1630,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
10219,
63,
77,
65,
273,
876,
18,
2844,
780,
2
] |
Subsets and Splits