rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
for (int i = 0; i < displayedItems.length; i++) {
|
int itemCount = displayedItems.length; int yOffset = 0; if(numShowItems == 1){ Rectangle clientArea = canvas.getParent().getClientArea(); int size = clientArea.height; yOffset = size - (fontMetrics.getHeight() * itemCount); yOffset = yOffset / 2; } for (int i = 0; i < itemCount; i++) {
|
private void initializeListeners() { canvas.addPaintListener(new PaintListener() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.PaintListener#paintControl(org.eclipse.swt.events.PaintEvent) */ public void paintControl(PaintEvent event) { GC gc = event.gc; ILabelProvider labelProvider = (ILabelProvider) getLabelProvider(); for (int i = 0; i < displayedItems.length; i++) { String string = labelProvider.getText(displayedItems[i]); gc.drawString(string,0,i * fontMetrics.getHeight(),true); } } }); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fbfe10e19bbc4cfe42b1f0afa95f83d30b99e0c/ProgressViewer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
5583,
1435,
288,
202,
202,
15424,
18,
1289,
12699,
2223,
12,
2704,
30001,
2223,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
5328,
88,
18,
5989,
18,
12699,
2223,
7,
84,
1598,
3367,
12,
3341,
18,
20416,
18,
5328,
88,
18,
5989,
18,
12699,
1133,
13,
9506,
1195,
1082,
202,
482,
918,
12574,
3367,
12,
12699,
1133,
871,
13,
288,
6862,
9506,
202,
15396,
8859,
273,
871,
18,
13241,
31,
9506,
202,
45,
2224,
2249,
1433,
2249,
273,
261,
45,
2224,
2249,
13,
11237,
2249,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10453,
3126,
18,
2469,
31,
277,
27245,
288,
6862,
202,
780,
533,
273,
1433,
2249,
18,
588,
1528,
12,
5417,
329,
3126,
63,
77,
19226,
6862,
202,
13241,
18,
9446,
780,
12,
1080,
16,
20,
16,
77,
380,
3512,
5653,
18,
588,
2686,
9334,
3767,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
918,
4046,
5583,
1435,
288,
202,
202,
15424,
18,
1289,
12699,
2223,
12,
2704,
30001,
2223,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
5328,
88,
18,
5989,
18,
12699,
2223,
7,
84,
1598,
3367,
12,
3341,
18,
20416,
18,
5328,
88,
18,
5989,
18,
12699,
1133,
13,
9506,
1195,
1082,
202,
482,
918,
12574,
3367,
12,
12699,
1133,
871,
13,
288,
6862,
9506,
202,
15396,
8859,
273,
871,
18,
13241,
31,
9506,
202,
45,
2224,
2249,
1433,
2249,
273,
261,
45,
2224,
2249,
13,
11237,
2249,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10453,
3126,
18,
2
] |
typeNamePattern, String attributeNamePattern) throws SQLException;
|
typePattern, String attributePattern) throws SQLException;
|
ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException;
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/49386b54ba94e937a085f9484371a383d8905f0a/DatabaseMetaData.java/buggy/java/sql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
10842,
10183,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
565,
8173,
3234,
16,
514,
9734,
3234,
13,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
10842,
10183,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
565,
8173,
3234,
16,
514,
9734,
3234,
13,
1216,
6483,
31,
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
] |
public void compilation_unit() throws RecognitionException { RuleDescr r = null; QueryDescr q = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:231:17: ( opt_eol prolog (r= rule | q= query | extra_statement )* ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:231:17: opt_eol prolog (r= rule | q= query | extra_statement )* { following.push(FOLLOW_opt_eol_in_compilation_unit57); opt_eol(); following.pop(); following.push(FOLLOW_prolog_in_compilation_unit61); prolog(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:17: (r= rule | q= query | extra_statement )* loop2: do { int alt2=4; alt2 = dfa2.predict(input); switch (alt2) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:25: r= rule { following.push(FOLLOW_rule_in_compilation_unit70); r=rule(); following.pop(); this.packageDescr.addRule( r ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:234:25: q= query { following.push(FOLLOW_query_in_compilation_unit83); q=query(); following.pop(); this.packageDescr.addRule( q ); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:235:25: extra_statement { following.push(FOLLOW_extra_statement_in_compilation_unit91); extra_statement(); following.pop(); } break; default : break loop2; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8916,
67,
4873,
1435,
1216,
9539,
288,
6647,
6781,
16198,
436,
273,
446,
31,
3639,
2770,
16198,
1043,
273,
446,
31,
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,
4366,
21,
30,
4033,
30,
261,
2153,
67,
30951,
450,
1330,
261,
86,
33,
1720,
571,
1043,
33,
843,
571,
2870,
67,
11516,
8618,
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,
4366,
21,
30,
4033,
30,
2153,
67,
30951,
450,
1330,
261,
86,
33,
1720,
571,
1043,
33,
843,
571,
2870,
67,
11516,
8618,
5411,
288,
5411,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
2919,
6613,
67,
4873,
10321,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
3751,
18,
6206,
12,
29890,
67,
685,
1330,
67,
267,
67,
2919,
6613,
67,
4873,
9498,
1769,
5411,
450,
1330,
5621,
5411,
3751,
18,
5120,
5621,
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,
31026,
30,
4033,
30,
261,
86,
33,
1720,
571,
1043,
33,
843,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8916,
67,
4873,
1435,
1216,
9539,
288,
6647,
6781,
16198,
436,
273,
446,
31,
3639,
2770,
16198,
1043,
273,
446,
31,
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,
4366,
21,
30,
4033,
30,
261,
2153,
67,
30951,
450,
1330,
261,
86,
33,
1720,
571,
1043,
33,
843,
571,
2870,
67,
11516,
8618,
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,
2
] |
||
throw new RubyNameException(getRuby(), "wrong class variable name " + id);
|
throw new NameError(getRuby(), "wrong class variable name " + id);
|
public RubyObject remove_class_variable(RubyObject name) { String id = name.toId(); if (!IdUtil.isClassVariable(id)) { throw new RubyNameException(getRuby(), "wrong class variable name " + id); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityException(getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } if (getInstanceVariables() != null) { Object value = getInstanceVariables().remove(id); if (value != null) { return (RubyObject) value; } } if (isClassVarDefined(id)) { throw new RubyNameException(getRuby(), "cannot remove " + id + " for " + toName()); } throw new RubyNameException(getRuby(), "class variable " + id + " not defined for " + toName()); }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1206,
67,
1106,
67,
6105,
12,
54,
10340,
921,
508,
13,
288,
3639,
514,
612,
273,
508,
18,
869,
548,
5621,
3639,
309,
16051,
548,
1304,
18,
291,
797,
3092,
12,
350,
3719,
288,
5411,
604,
394,
25473,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
612,
1769,
3639,
289,
3639,
309,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
5411,
604,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
3639,
289,
3639,
309,
261,
291,
42,
9808,
10756,
288,
5411,
604,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
1106,
19,
2978,
8863,
3639,
289,
3639,
309,
261,
588,
1442,
6158,
1435,
480,
446,
13,
288,
5411,
1033,
460,
273,
3694,
6158,
7675,
4479,
12,
350,
1769,
5411,
309,
261,
1132,
480,
446,
13,
288,
7734,
327,
261,
54,
10340,
921,
13,
460,
31,
5411,
289,
3639,
289,
3639,
309,
261,
291,
797,
1537,
8116,
12,
350,
3719,
288,
5411,
604,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
12892,
1206,
315,
397,
612,
397,
315,
364,
315,
397,
358,
461,
10663,
3639,
289,
3639,
604,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
1106,
2190,
315,
397,
612,
397,
315,
486,
2553,
364,
315,
397,
358,
461,
10663,
565,
289,
2,
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,
1,
1,
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,
921,
1206,
67,
1106,
67,
6105,
12,
54,
10340,
921,
508,
13,
288,
3639,
514,
612,
273,
508,
18,
869,
548,
5621,
3639,
309,
16051,
548,
1304,
18,
291,
797,
3092,
12,
350,
3719,
288,
5411,
604,
394,
25473,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
612,
1769,
3639,
289,
3639,
309,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
5411,
604,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
3639,
289,
3639,
309,
261,
291,
42,
9808,
10756,
288,
5411,
604,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
2
] |
digester.addObjectCreate(path, TRANSFORMER_INTERFACE, "className");
|
addObjectCreateOrGetFromContainer(path, TRANSFORMER_INTERFACE, "className", "ref", true);
|
protected void addTransformerRules(Digester digester, String path) throws ConfigurationException { // Create Transformers path += "/transformers/transformer"; digester.addObjectCreate(path, TRANSFORMER_INTERFACE, "className"); addSetPropertiesRule(path, digester); addMulePropertiesRule(path, digester, true); digester.addSetRoot(path, "registerTransformer"); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f095e6cee5b030bca6444069885841ae55114520/MuleXmlConfigurationBuilder.java/clean/mule/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
8319,
4478,
12,
4907,
7654,
23821,
16,
514,
589,
13,
1216,
22196,
565,
288,
3639,
368,
1788,
11514,
414,
3639,
589,
1011,
2206,
6547,
414,
19,
21523,
14432,
3639,
31311,
1684,
1162,
967,
1265,
2170,
12,
803,
16,
28093,
4983,
654,
67,
18865,
16,
315,
12434,
3113,
315,
1734,
3113,
638,
1769,
540,
527,
694,
2297,
2175,
12,
803,
16,
23821,
1769,
3639,
527,
49,
725,
2297,
2175,
12,
803,
16,
23821,
16,
638,
1769,
3639,
23821,
18,
1289,
694,
2375,
12,
803,
16,
315,
4861,
8319,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
8319,
4478,
12,
4907,
7654,
23821,
16,
514,
589,
13,
1216,
22196,
565,
288,
3639,
368,
1788,
11514,
414,
3639,
589,
1011,
2206,
6547,
414,
19,
21523,
14432,
3639,
31311,
1684,
1162,
967,
1265,
2170,
12,
803,
16,
28093,
4983,
654,
67,
18865,
16,
315,
12434,
3113,
315,
1734,
3113,
638,
1769,
540,
527,
694,
2297,
2175,
12,
803,
16,
23821,
1769,
3639,
527,
49,
725,
2297,
2175,
12,
803,
16,
23821,
16,
638,
1769,
3639,
23821,
18,
1289,
694,
2375,
12,
803,
16,
315,
4861,
8319,
8863,
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
] |
yaccValue = getInteger(tokenBuffer.toString(), 16);
|
yaccValue = new Token(getInteger(tokenBuffer.toString(), 16), getPosition(null, false));
|
private int parseNumber(char c) { lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); if (c == '-') { tokenBuffer.append(c); c = src.read(); } else if (c == '+') { // We don't append '+' since Java number parser gets confused c = src.read(); } char nondigit = '\0'; if (c == '0') { int startLen = tokenBuffer.length(); switch (c = src.read()) { case 'x' : case 'X' : // hexadecimal c = src.read(); if (isHexChar(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (isHexChar(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Hexadecimal number without hex-digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 16); return Tokens.tINTEGER; case 'b' : case 'B' : // binary c = src.read(); if (c == '0' || c == '1') { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c == '0' || c == '1') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 2); return Tokens.tINTEGER; case 'd' : case 'D' : // decimal c = src.read(); if (Character.isDigit(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (Character.isDigit(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 2); return Tokens.tINTEGER; case '0' : case '1' : case '2' : case '3' : case '4' : //Octal case '5' : case '6' : case '7' : case '_' : for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c >= '0' && c <= '7') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } if (tokenBuffer.length() > startLen) { src.unread(c); if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 8); return Tokens.tINTEGER; } case '8' : case '9' : throw new SyntaxException(src.getPosition(), "Illegal octal digit."); case '.' : case 'e' : case 'E' : tokenBuffer.append('0'); break; default : src.unread(c); yaccValue = new Long(0); return Tokens.tINTEGER; } } boolean seen_point = false; boolean seen_e = false; for (;; c = src.read()) { switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : nondigit = '\0'; tokenBuffer.append(c); break; case '.' : if (nondigit != '\0') { src.unread(c); throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_point || seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { char c2; if (!Character.isDigit(c2 = src.read())) { src.unread(c2); src.unread('.'); if (c == '_') { // Enebo: c can never be antrhign but '.' // Why did I put this here? } else { yaccValue = getInteger(tokenBuffer.toString(), 10); return Tokens.tINTEGER; } } else { tokenBuffer.append('.'); tokenBuffer.append(c2); seen_point = true; nondigit = '\0'; } } break; case 'e' : case 'E' : if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { tokenBuffer.append(c); seen_e = true; nondigit = c; c = src.read(); if (c == '-' || c == '+') { tokenBuffer.append(c); nondigit = c; } else { src.unread(c); } } break; case '_' : // '_' in number just ignored if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } nondigit = c; break; default : src.unread(c); return getNumberToken(tokenBuffer.toString(), seen_e || seen_point, nondigit); } } }
|
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
1854,
12,
3001,
276,
13,
288,
3639,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
3639,
1147,
1892,
18,
542,
1782,
12,
20,
1769,
3639,
309,
261,
71,
422,
4014,
13,
288,
540,
202,
2316,
1892,
18,
6923,
12,
71,
1769,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
469,
309,
261,
71,
422,
15126,
6134,
288,
540,
202,
759,
1660,
2727,
1404,
714,
10058,
3241,
5110,
1300,
2082,
5571,
2195,
3668,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
7734,
1149,
290,
1434,
360,
305,
273,
2337,
20,
13506,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
509,
787,
2891,
273,
1147,
1892,
18,
2469,
5621,
5411,
1620,
261,
71,
273,
1705,
18,
896,
10756,
288,
7734,
648,
296,
92,
11,
294,
7734,
648,
296,
60,
11,
294,
368,
225,
20070,
10792,
276,
273,
1705,
18,
896,
5621,
10792,
309,
261,
291,
7037,
2156,
12,
71,
3719,
288,
13491,
364,
261,
25708,
276,
273,
1705,
18,
896,
10756,
288,
18701,
309,
261,
71,
422,
4427,
13,
288,
27573,
309,
261,
82,
1434,
360,
305,
480,
2337,
20,
6134,
288,
4766,
565,
898,
31,
27573,
289,
6862,
9506,
202,
82,
1434,
360,
305,
273,
276,
31,
18701,
289,
469,
309,
261,
291,
7037,
2156,
12,
71,
3719,
288,
27573,
290,
1434,
360,
305,
273,
2337,
20,
13506,
27573,
1147,
1892,
18,
6923,
12,
71,
1769,
18701,
289,
469,
288,
27573,
898,
31,
18701,
289,
13491,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
1854,
12,
3001,
276,
13,
288,
3639,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
3639,
1147,
1892,
18,
542,
1782,
12,
20,
1769,
3639,
309,
261,
71,
422,
4014,
13,
288,
540,
202,
2316,
1892,
18,
6923,
12,
71,
1769,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
469,
309,
261,
71,
422,
15126,
6134,
288,
540,
202,
759,
1660,
2727,
1404,
714,
10058,
3241,
5110,
1300,
2082,
5571,
2195,
3668,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
7734,
1149,
290,
1434,
360,
305,
273,
2337,
20,
13506,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
509,
787,
2891,
273,
1147,
1892,
18,
2469,
5621,
2
] |
public static TilesetChange.TileChange getTileChange(int tileset, int num)
|
public static TilesetChange.TileChange getTileChange(int tileset, int group, int num)
|
public static TilesetChange.TileChange getTileChange(int tileset, int num) { return entries[tileset].getTileChange(num); }
|
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/01ab3a5a999a3f0821c966b1b37ea6fbc0ea125e/MapEventEditor.java/buggy/src/net/starmen/pkhack/eb/MapEventEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
399,
1449,
278,
3043,
18,
9337,
3043,
24738,
3043,
12,
474,
12568,
278,
16,
509,
818,
13,
202,
95,
202,
202,
2463,
3222,
63,
28366,
278,
8009,
588,
9337,
3043,
12,
2107,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
399,
1449,
278,
3043,
18,
9337,
3043,
24738,
3043,
12,
474,
12568,
278,
16,
509,
818,
13,
202,
95,
202,
202,
2463,
3222,
63,
28366,
278,
8009,
588,
9337,
3043,
12,
2107,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_t = __t152;
|
_t = __t178;
|
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST varName = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_return: { AST __t136 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(); PathExpr whereExpr= null; { int _cnt146=0; _loop146: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t138 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt141=0; _loop141: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t140 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t140; _t = _t.getNextSibling(); } else { if ( _cnt141>=1 ) { break _loop141; } else {throw new NoViableAltException(_t);} } _cnt141++; } while (true); } _t = __t138; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t142 = _t; AST tmp5_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt145=0; _loop145: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t144 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t144; _t = _t.getNextSibling(); } else { if ( _cnt145>=1 ) { break _loop145; } else {throw new NoViableAltException(_t);} } _cnt145++; } while (true); } _t = __t142; _t = _t.getNextSibling(); break; } default: { if ( _cnt146>=1 ) { break _loop146; } else {throw new NoViableAltException(_t);} } } _cnt146++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(); else expr= new LetExpr(); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } path.add(action); _t = __t136; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t148 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); OpOr or= new OpOr(); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t149 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); OpAnd and= new OpAnd(); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t150 = _t; AST tmp9_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t150; _t = _t.getNextSibling(); break; } case UNION: { AST __t151 = _t; AST tmp10_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t151; _t = _t.getNextSibling(); Union union= new Union(left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t152 = _t; AST tmp11_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t152; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t154 = _t; AST tmp12_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t154; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case XML_COMMENT: case XML_PI: case LCURLY: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
2300,
2235,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
511,
18454,
67,
2463,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
26959,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
23225,
67,
2463,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
6862,
6862,
202,
682,
14093,
33,
394,
2407,
5621,
25083,
202,
2300,
1301,
33,
394,
2666,
4742,
5621,
25083,
202,
743,
4742,
1625,
4742,
33,
446,
31,
6862,
9506,
202,
95,
1082,
202,
474,
389,
13085,
27879,
33,
20,
31,
1082,
202,
67,
6498,
27879,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
9506,
202,
3593,
511,
18454,
67,
1884,
30,
9506,
202,
95,
6862,
202,
9053,
1001,
88,
26645,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
13722,
273,
446,
31,
202,
202,
9053,
2231,
18129,
273,
446,
31,
202,
202,
2300,
2235,
33,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
511,
18454,
67,
2463,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
26959,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2
] |
ASTORE(1);
|
ISTORE(1);
|
public void testInterleavedCode() { { Label L1 = new Label(); Label L2 = new Label(); Label L3 = new Label(); Label L4 = new Label(); setCurrent(jsr); ICONST_0(); ASTORE(1); // Invoke the subroutine, each twice: JSR(L1); GOTO(L2); // L1: subroutine 1 LABEL(L1); ASTORE(2); IINC(1, 1); GOTO(L3); // L2: second part of main subroutine LABEL(L2); IINC(1, 2); GOTO(L4); // L3: second part of subroutine 1 LABEL(L3); IINC(1, 4); RET(2); // L4: third part of main subroutine LABEL(L4); JSR(L1); RETURN(); END(); } { Label L1_1a = new Label(); Label L1_1b = new Label(); Label L1_2a = new Label(); Label L1_2b = new Label(); Label L2 = new Label(); Label L3_1 = new Label(); Label L3_2 = new Label(); Label L4 = new Label(); setCurrent(exp); // Main routine: ICONST_0(); ASTORE(1); ACONST_NULL(); GOTO(L1_1a); LABEL(L1_1b); GOTO(L2); LABEL(L2); IINC(1, 2); GOTO(L4); LABEL(L4); ACONST_NULL(); GOTO(L1_2a); LABEL(L1_2b); RETURN(); // L1_1: instantiation #1 LABEL(L1_1a); ASTORE(2); IINC(1, 1); GOTO(L3_1); LABEL(L3_1); IINC(1, 4); GOTO(L1_1b); LABEL(new Label()); // extra label emitted due to impl quirks // L1_2: instantiation #2 LABEL(L1_2a); ASTORE(2); IINC(1, 1); GOTO(L3_2); LABEL(L3_2); IINC(1, 4); GOTO(L1_2b); LABEL(new Label()); // extra label emitted due to impl quirks END(); } assertEquals(exp, jsr); }
|
8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/0a64663d10862a560e6fd41175a9fc0745666dd0/JSRInlinerAdapterUnitTest.java/clean/asm/test/conform/org/objectweb/asm/commons/JSRInlinerAdapterUnitTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2465,
22593,
1085,
1435,
288,
3639,
288,
5411,
5287,
511,
21,
273,
394,
5287,
5621,
5411,
5287,
511,
22,
273,
394,
5287,
5621,
5411,
5287,
511,
23,
273,
394,
5287,
5621,
5411,
5287,
511,
24,
273,
394,
5287,
5621,
5411,
12589,
12,
2924,
86,
1769,
5411,
467,
26411,
67,
20,
5621,
5411,
467,
13651,
12,
21,
1769,
5411,
368,
14373,
326,
720,
22640,
16,
1517,
13605,
30,
5411,
6756,
54,
12,
48,
21,
1769,
5411,
611,
27019,
12,
48,
22,
1769,
5411,
368,
511,
21,
30,
720,
22640,
404,
5411,
18210,
12,
48,
21,
1769,
5411,
9183,
8607,
12,
22,
1769,
5411,
467,
23213,
12,
21,
16,
404,
1769,
5411,
611,
27019,
12,
48,
23,
1769,
5411,
368,
511,
22,
30,
2205,
1087,
434,
2774,
720,
22640,
5411,
18210,
12,
48,
22,
1769,
5411,
467,
23213,
12,
21,
16,
576,
1769,
5411,
611,
27019,
12,
48,
24,
1769,
5411,
368,
511,
23,
30,
2205,
1087,
434,
720,
22640,
404,
5411,
18210,
12,
48,
23,
1769,
5411,
467,
23213,
12,
21,
16,
1059,
1769,
5411,
10366,
12,
22,
1769,
5411,
368,
511,
24,
30,
12126,
1087,
434,
2774,
720,
22640,
5411,
18210,
12,
48,
24,
1769,
5411,
6756,
54,
12,
48,
21,
1769,
5411,
14780,
5621,
5411,
7273,
5621,
3639,
289,
3639,
288,
5411,
5287,
511,
21,
67,
21,
69,
273,
394,
5287,
5621,
5411,
5287,
511,
21,
67,
21,
70,
273,
394,
5287,
5621,
5411,
5287,
511,
21,
67,
22,
69,
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,
2465,
22593,
1085,
1435,
288,
3639,
288,
5411,
5287,
511,
21,
273,
394,
5287,
5621,
5411,
5287,
511,
22,
273,
394,
5287,
5621,
5411,
5287,
511,
23,
273,
394,
5287,
5621,
5411,
5287,
511,
24,
273,
394,
5287,
5621,
5411,
12589,
12,
2924,
86,
1769,
5411,
467,
26411,
67,
20,
5621,
5411,
467,
13651,
12,
21,
1769,
5411,
368,
14373,
326,
720,
22640,
16,
1517,
13605,
30,
5411,
6756,
54,
12,
48,
21,
1769,
5411,
611,
27019,
12,
48,
22,
1769,
5411,
368,
511,
21,
30,
720,
22640,
404,
5411,
18210,
12,
48,
21,
1769,
5411,
9183,
8607,
12,
22,
1769,
5411,
467,
23213,
12,
21,
16,
404,
1769,
5411,
611,
27019,
12,
48,
23,
2
] |
public boolean canRedo() { if (isInProgress() == true || super.canRedo() == false) { return false; } return true; }
|
public boolean canRedo() { return !inProgress && super.canRedo(); }
|
public boolean canRedo() { if (isInProgress() == true || super.canRedo() == false) { return false; } return true; } // canRedo()
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
848,
3715,
83,
1435,
288,
202,
202,
430,
261,
291,
13434,
1435,
422,
638,
747,
2240,
18,
4169,
3715,
83,
1435,
422,
629,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
368,
848,
3715,
83,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
848,
3715,
83,
1435,
288,
202,
202,
430,
261,
291,
13434,
1435,
422,
638,
747,
2240,
18,
4169,
3715,
83,
1435,
422,
629,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
368,
848,
3715,
83,
1435,
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
] |
sb.append(","); }
|
sb.append(","); }
|
public void action(Server server, QueueAction action, String[] ids) throws ServiceException { if (ZimbraLog.rmgmt.isDebugEnabled()) ZimbraLog.rmgmt.debug("action=" + action + " ids=" + Arrays.deepToString(ids) + " " + this); boolean firstTime = true; RemoteManager rm = RemoteManager.getRemoteManager(server); IndexReader indexReader = null; try { boolean all = false; if (ids.length == 1 && ids[0].equals("ALL")) { // Special case ALL that postsuper supports clearIndex(); all = true; } else { indexReader = IndexReader.open(mIndexPath); } int done = 0; int total = ids.length; while (done < total) { int last = Math.min(total, done + MAX_REMOTE_EXECUTION_QUEUEIDS); StringBuilder sb = new StringBuilder(128 + (last * MAX_LENGTH_OF_QUEUEIDS)); sb.append("zmqaction " + action.toString() + " " + mQueueName + " "); int i; boolean first = true; for (i = done; i < last; i++) { if (first) { first = false; } else { sb.append(","); } if (!all) { Term toDelete = new Term(QueueAttr.id.toString(), ids[i].toLowerCase()); int numDeleted = indexReader.delete(toDelete); mNumMessages.getAndAdd(-numDeleted); if (ZimbraLog.rmgmt.isDebugEnabled()) ZimbraLog.rmgmt.debug("deleting term:" + toDelete + ", docs deleted=" + numDeleted); } sb.append(ids[i].toUpperCase()); } done = last; //System.out.println("will execute action command: " + sb.toString()); RemoteResult rr = rm.execute(sb.toString()); } } catch (IOException ioe) { throw ServiceException.FAILURE("exception occurred performing queue action", ioe); } finally { if (indexReader != null) { try { indexReader.close(); } catch (IOException ioe) { ZimbraLog.rmgmt.warn("exception occured closing index reader during action", ioe); } } } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/91cfe7094c08204d6ab9160fd4bb8b3268b0966b/RemoteMailQueue.java/clean/ZimbraServer/src/java/com/zimbra/cs/rmgmt/RemoteMailQueue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1301,
12,
2081,
1438,
16,
7530,
1803,
1301,
16,
514,
8526,
3258,
13,
1216,
16489,
288,
3639,
309,
261,
62,
381,
15397,
1343,
18,
8864,
7714,
18,
291,
2829,
1526,
10756,
2285,
381,
15397,
1343,
18,
8864,
7714,
18,
4148,
2932,
1128,
1546,
397,
1301,
397,
315,
3258,
1546,
397,
5647,
18,
16589,
5808,
12,
2232,
13,
397,
315,
315,
397,
333,
1769,
377,
202,
6494,
1122,
950,
273,
638,
31,
377,
202,
5169,
1318,
6692,
273,
6304,
1318,
18,
588,
5169,
1318,
12,
3567,
1769,
377,
202,
1016,
2514,
770,
2514,
273,
446,
31,
377,
202,
698,
288,
5411,
1250,
777,
273,
629,
31,
5411,
309,
261,
2232,
18,
2469,
422,
404,
597,
3258,
63,
20,
8009,
14963,
2932,
4685,
6,
3719,
288,
7734,
368,
13409,
648,
8061,
716,
1603,
9565,
6146,
7734,
2424,
1016,
5621,
7734,
777,
273,
638,
31,
5411,
289,
469,
288,
7734,
770,
2514,
273,
3340,
2514,
18,
3190,
12,
81,
1016,
743,
1769,
5411,
289,
5411,
509,
2731,
273,
374,
31,
5411,
509,
2078,
273,
3258,
18,
2469,
31,
377,
202,
202,
17523,
261,
8734,
411,
2078,
13,
288,
377,
1082,
202,
474,
1142,
273,
2361,
18,
1154,
12,
4963,
16,
2731,
397,
4552,
67,
15790,
67,
15271,
13269,
67,
19533,
19516,
1769,
377,
1082,
202,
21253,
2393,
273,
394,
3225,
12,
10392,
397,
261,
2722,
380,
4552,
67,
7096,
67,
3932,
67,
19533,
19516,
10019,
377,
1082,
202,
18366,
18,
6923,
2932,
94,
11636,
1128,
315,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1301,
12,
2081,
1438,
16,
7530,
1803,
1301,
16,
514,
8526,
3258,
13,
1216,
16489,
288,
3639,
309,
261,
62,
381,
15397,
1343,
18,
8864,
7714,
18,
291,
2829,
1526,
10756,
2285,
381,
15397,
1343,
18,
8864,
7714,
18,
4148,
2932,
1128,
1546,
397,
1301,
397,
315,
3258,
1546,
397,
5647,
18,
16589,
5808,
12,
2232,
13,
397,
315,
315,
397,
333,
1769,
377,
202,
6494,
1122,
950,
273,
638,
31,
377,
202,
5169,
1318,
6692,
273,
6304,
1318,
18,
588,
5169,
1318,
12,
3567,
1769,
377,
202,
1016,
2514,
770,
2514,
273,
446,
31,
377,
202,
698,
288,
5411,
1250,
777,
273,
629,
31,
5411,
309,
261,
2232,
18,
2469,
422,
404,
597,
3258,
63,
2
] |
indexType = IndexType.INLINE;
|
if (dataType != null) { header.setIndexDataType(dataType); }
|
public boolean create() { // things to do the first time in // set the ID, the startTime, and the index type ID indexID = new UID(); header.setID(indexID); header.setStartTime(Clock.time.asMicros()); header.setFirstOffset(new Offset(0)); header.setLastOffset(new Offset(0)); indexType = IndexType.INLINE; try { headerInteractor.create(getFileName()); // String indexFilename = headerInteractor.getIndexFileName()); indexInteractor.create(getFileName()); // activate the index activate(); // pass an event to the listeners eventMulticaster.firePrimaryEvent(new IndexPrimaryEvent(indexName, header.getID(), IndexPrimaryEvent.CREATED, this)); return true; } catch (IOException ioe) { return false; } }
|
8679 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8679/ce3ded6e34a3e46ed62f978209b2529341eb0a4d/InlineIndex.java/clean/timeindexing/com/timeindexing/index/InlineIndex.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
752,
1435,
288,
202,
759,
9198,
358,
741,
326,
1122,
813,
316,
202,
759,
444,
326,
1599,
16,
326,
8657,
16,
471,
326,
770,
618,
202,
734,
770,
734,
273,
394,
10034,
5621,
202,
3374,
18,
542,
734,
12,
1615,
734,
1769,
202,
3374,
18,
542,
13649,
12,
14027,
18,
957,
18,
345,
13617,
87,
10663,
202,
3374,
18,
542,
3759,
2335,
12,
2704,
9874,
12,
20,
10019,
202,
3374,
18,
542,
3024,
2335,
12,
2704,
9874,
12,
20,
10019,
202,
1615,
559,
273,
3340,
559,
18,
706,
5997,
31,
202,
698,
288,
202,
565,
1446,
2465,
3362,
18,
2640,
12,
588,
4771,
10663,
202,
565,
368,
514,
770,
5359,
273,
1446,
2465,
3362,
18,
588,
1016,
4771,
10663,
3196,
565,
770,
2465,
3362,
18,
2640,
12,
588,
4771,
10663,
1082,
565,
368,
10235,
326,
770,
202,
565,
10235,
5621,
202,
565,
368,
1342,
392,
871,
358,
326,
4679,
202,
565,
871,
5049,
335,
2440,
18,
12179,
6793,
1133,
12,
2704,
3340,
6793,
1133,
12,
1615,
461,
16,
1446,
18,
588,
734,
9334,
3340,
6793,
1133,
18,
18546,
16,
333,
10019,
202,
565,
327,
638,
31,
202,
97,
1044,
261,
14106,
10847,
13,
288,
202,
565,
327,
629,
31,
202,
97,
202,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1250,
752,
1435,
288,
202,
759,
9198,
358,
741,
326,
1122,
813,
316,
202,
759,
444,
326,
1599,
16,
326,
8657,
16,
471,
326,
770,
618,
202,
734,
770,
734,
273,
394,
10034,
5621,
202,
3374,
18,
542,
734,
12,
1615,
734,
1769,
202,
3374,
18,
542,
13649,
12,
14027,
18,
957,
18,
345,
13617,
87,
10663,
202,
3374,
18,
542,
3759,
2335,
12,
2704,
9874,
12,
20,
10019,
202,
3374,
18,
542,
3024,
2335,
12,
2704,
9874,
12,
20,
10019,
202,
1615,
559,
273,
3340,
559,
18,
706,
5997,
31,
202,
698,
288,
202,
565,
1446,
2465,
3362,
18,
2640,
12,
588,
4771,
10663,
202,
565,
368,
514,
770,
5359,
273,
1446,
2465,
3362,
18,
588,
2
] |
} else if (c > M_MAXCHARACTER) { if (i != 0) closeCDATA();
|
} else if (m_encodingInfo.isInEncoding(c)) { writer.write(c); } else if (Encodings.isHighUTF16Surrogate(c)) { final int codePoint = writeUTF16Surrogate(c, ch, i, end); if (codePoint != 0) { final String integralValue = Integer.toString(codePoint); final String msg = Utils.messages.createMessage( MsgKey.ER_ILLEGAL_CHARACTER, new Object[] { integralValue, encoding }); System.err.println(msg);
|
void writeNormalizedChars( final char ch[], final int start, final int length, final boolean isCData, final boolean useLineSep) throws IOException, org.xml.sax.SAXException{ final java.io.Writer writer = m_writer; final int end = start + length; /* copy a few "constants" before the loop for performance */ final char S_LINEFEED = CharInfo.S_LINEFEED; final int M_MAXCHARACTER = this.m_maxCharacter; if (isCData) { // This for() loop always increments i by one at the end // of the loop. Additional increments of i adjust for when // two input characters are processed. for (int i = start; i < end; i++) { final char c = ch[i]; if (S_LINEFEED == c && useLineSep) { writer.write(m_lineSep, 0, m_lineSepLen); } else if (c > M_MAXCHARACTER) { if (i != 0) closeCDATA(); // This needs to go into a function... if (isUTF16Surrogate(c)) { writeUTF16Surrogate(c, ch, i, end); i++; // two input characters processed } else { writer.write(c); } if ((i != 0) && (i < (end - 1))) { writer.write(CDATA_DELIMITER_OPEN); m_cdataTagOpen = true; } } else if ( ((i < (end - 2)) && (']' == c) && (']' == ch[i + 1]) && ('>' == ch[i + 2]))) { writer.write(CDATA_CONTINUE); i += 2; } else { if (c <= M_MAXCHARACTER) { writer.write(c); } else if (isUTF16Surrogate(c)) { writeUTF16Surrogate(c, ch, i, end); i++; // two input characters processed } else { /* The character is greater than the allowed * maximum value and it is not part of a UTF-16 * pair that would be put out as a character reference. */ String encoding = getEncoding(); if (encoding != null) { /* The output encoding is known, * so somthing is wrong. */ String integralValue = Integer.toString(c); throw new SAXException(Utils.messages.createMessage( MsgKey.ER_ILLEGAL_CHARACTER, new Object[]{ integralValue, encoding})); } else { /* The output encoding is not known, * so just write it out as-is. */ writer.write(c); } } } } } else { // not in CDATA section for (int i = start; i < end; i++) { final char c = ch[i]; if (S_LINEFEED == c && useLineSep) { writer.write(m_lineSep, 0, m_lineSepLen); } else if (c <= M_MAXCHARACTER) { writer.write(c); } else if (isUTF16Surrogate(c)) { writeUTF16Surrogate(c, ch, i, end); i++; // two input characters processed } else { /* The character is greater than the allowed * maximum value and it is not part of a UTF-16 * pair that would be put out as a character reference. */ String encoding = getEncoding(); if (encoding != null) { /* The output encoding is known, * so somthing is wrong. */ String integralValue = Integer.toString(c); throw new SAXException(Utils.messages.createMessage( MsgKey.ER_ILLEGAL_CHARACTER, new Object[]{ integralValue, encoding})); } else { /* The output encoding is not known, * so just write it out as-is. */ writer.write(c); } } } }}
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/487b3b254394e1bdcb1c753d7caa0066fecdd4a0/ToTextStream.java/buggy/src/org/apache/xml/serializer/ToTextStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
1045,
15577,
7803,
12,
565,
727,
1149,
462,
63,
6487,
565,
727,
509,
787,
16,
565,
727,
509,
769,
16,
565,
727,
1250,
25249,
751,
16,
565,
727,
1250,
999,
1670,
5097,
13,
565,
1216,
1860,
16,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
95,
565,
727,
2252,
18,
1594,
18,
2289,
2633,
273,
312,
67,
6299,
31,
565,
727,
509,
679,
273,
787,
397,
769,
31,
565,
1748,
1610,
279,
11315,
315,
13358,
6,
1865,
326,
2798,
364,
9239,
1195,
565,
727,
1149,
348,
67,
5997,
29195,
273,
3703,
966,
18,
55,
67,
5997,
29195,
31,
565,
727,
509,
490,
67,
6694,
27858,
273,
333,
18,
81,
67,
1896,
7069,
31,
565,
309,
261,
291,
39,
751,
13,
565,
288,
3639,
368,
1220,
364,
1435,
2798,
3712,
17071,
277,
635,
1245,
622,
326,
679,
3639,
368,
434,
326,
2798,
18,
225,
15119,
17071,
434,
277,
5765,
364,
1347,
3639,
368,
2795,
810,
3949,
854,
5204,
18,
3639,
364,
261,
474,
277,
273,
787,
31,
277,
411,
679,
31,
277,
27245,
3639,
288,
5411,
727,
1149,
276,
273,
462,
63,
77,
15533,
5411,
309,
261,
55,
67,
5997,
29195,
422,
276,
597,
999,
1670,
5097,
13,
5411,
288,
7734,
2633,
18,
2626,
12,
81,
67,
1369,
5097,
16,
374,
16,
312,
67,
1369,
5097,
2891,
1769,
5411,
289,
5411,
469,
309,
261,
71,
405,
490,
67,
6694,
27858,
13,
5411,
288,
7734,
309,
261,
77,
480,
374,
13,
10792,
1746,
18375,
5621,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
1045,
15577,
7803,
12,
565,
727,
1149,
462,
63,
6487,
565,
727,
509,
787,
16,
565,
727,
509,
769,
16,
565,
727,
1250,
25249,
751,
16,
565,
727,
1250,
999,
1670,
5097,
13,
565,
1216,
1860,
16,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
95,
565,
727,
2252,
18,
1594,
18,
2289,
2633,
273,
312,
67,
6299,
31,
565,
727,
509,
679,
273,
787,
397,
769,
31,
565,
1748,
1610,
279,
11315,
315,
13358,
6,
1865,
326,
2798,
364,
9239,
1195,
565,
727,
1149,
348,
67,
5997,
29195,
273,
3703,
966,
18,
55,
67,
5997,
29195,
31,
565,
727,
509,
490,
67,
6694,
27858,
273,
333,
18,
81,
67,
1896,
7069,
31,
565,
309,
261,
2
] |
Rectangle2D r = clip.getBounds2D(); double[] coords = new double[] { r.getX(), r.getY(), r.getX() + r.getWidth(), r.getY() + r.getHeight() }; try { tx.createInverse().transform(coords, 0, coords, 0, 2); r.setRect(coords[0], coords[1], coords[2] - coords[0], coords[3] - coords[1]); clip = r; } catch (java.awt.geom.NoninvertibleTransformException e) { }
|
Rectangle2D r = clip.getBounds2D(); double[] coords = new double[] { r.getX(), r.getY(), r.getX() + r.getWidth(), r.getY() + r.getHeight() }; try { tx.createInverse().transform(coords, 0, coords, 0, 2); r.setRect(coords[0], coords[1], coords[2] - coords[0], coords[3] - coords[1]); clip = r; } catch (java.awt.geom.NoninvertibleTransformException e) { }
|
public void transform (AffineTransform tx) { if (transform == null) transform = new AffineTransform (tx); else transform.concatenate (tx); setTransform (transform); if (clip != null) { // FIXME: this should actuall try to transform the shape // rather than degrade to bounds. Rectangle2D r = clip.getBounds2D(); double[] coords = new double[] { r.getX(), r.getY(), r.getX() + r.getWidth(), r.getY() + r.getHeight() }; try { tx.createInverse().transform(coords, 0, coords, 0, 2); r.setRect(coords[0], coords[1], coords[2] - coords[0], coords[3] - coords[1]); clip = r; } catch (java.awt.geom.NoninvertibleTransformException e) { } } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b23a69766b998a4a095a0e59631aa072d973a7fe/GdkGraphics2D.java/clean/gnu/java/awt/peer/gtk/GdkGraphics2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2510,
261,
13785,
558,
4059,
2229,
13,
225,
288,
565,
309,
261,
6547,
422,
446,
13,
1377,
2510,
273,
394,
23906,
558,
4059,
261,
978,
1769,
565,
469,
1377,
2510,
18,
16426,
275,
340,
261,
978,
1769,
565,
444,
4059,
261,
6547,
1769,
565,
309,
261,
14161,
480,
446,
13,
1377,
288,
3639,
368,
9852,
30,
333,
1410,
1328,
89,
454,
775,
358,
2510,
326,
2179,
3639,
368,
9178,
2353,
443,
3994,
358,
4972,
18,
3639,
13264,
22,
40,
436,
273,
6807,
18,
588,
5694,
22,
40,
5621,
3639,
1645,
8526,
6074,
273,
394,
1645,
8526,
288,
436,
18,
588,
60,
9334,
436,
18,
588,
61,
9334,
4766,
1850,
436,
18,
588,
60,
1435,
397,
436,
18,
588,
2384,
9334,
29159,
436,
18,
588,
61,
1435,
397,
436,
18,
588,
2686,
1435,
289,
31,
3639,
775,
6647,
288,
5411,
2229,
18,
2640,
16376,
7675,
6547,
12,
9076,
16,
374,
16,
6074,
16,
374,
16,
576,
1769,
5411,
436,
18,
542,
6120,
12,
9076,
63,
20,
6487,
6074,
63,
21,
6487,
8227,
6074,
63,
22,
65,
300,
6074,
63,
20,
6487,
15604,
6074,
63,
23,
65,
300,
6074,
63,
21,
19226,
5411,
6807,
273,
436,
31,
1850,
289,
3639,
1044,
261,
6290,
18,
2219,
88,
18,
10049,
18,
3989,
267,
1097,
1523,
4059,
503,
425,
13,
1850,
288,
1850,
289,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2510,
261,
13785,
558,
4059,
2229,
13,
225,
288,
565,
309,
261,
6547,
422,
446,
13,
1377,
2510,
273,
394,
23906,
558,
4059,
261,
978,
1769,
565,
469,
1377,
2510,
18,
16426,
275,
340,
261,
978,
1769,
565,
444,
4059,
261,
6547,
1769,
565,
309,
261,
14161,
480,
446,
13,
1377,
288,
3639,
368,
9852,
30,
333,
1410,
1328,
89,
454,
775,
358,
2510,
326,
2179,
3639,
368,
9178,
2353,
443,
3994,
358,
4972,
18,
3639,
13264,
22,
40,
436,
273,
6807,
18,
588,
5694,
22,
40,
5621,
3639,
1645,
8526,
6074,
273,
394,
1645,
8526,
288,
436,
18,
588,
60,
9334,
436,
18,
588,
61,
9334,
4766,
1850,
436,
18,
588,
60,
1435,
397,
436,
2
] |
int _m166 = mark(); synPredMatched166 = true;
|
int _m278 = mark(); synPredMatched278 = true;
|
public final void mMODULE_NAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = MODULE_NAME; int _saveIndex; boolean synPredMatched158 = false; if (((LA(1)=='A') && (LA(2)=='R') && (LA(3)=='R') && (LA(4)=='A'))) { int _m158 = mark(); synPredMatched158 = true; inputState.guessing++; try { { match("ARRAY"); } } catch (RecognitionException pe) { synPredMatched158 = false; } rewind(_m158); inputState.guessing--; } if ( synPredMatched158 ) { match("ARRAY"); if ( inputState.guessing==0 ) { _ttype = ARRAY_REF; } } else { boolean synPredMatched160 = false; if (((LA(1)=='S') && (LA(2)=='C') && (LA(3)=='A') && (LA(4)=='L'))) { int _m160 = mark(); synPredMatched160 = true; inputState.guessing++; try { { match("SCALAR"); } } catch (RecognitionException pe) { synPredMatched160 = false; } rewind(_m160); inputState.guessing--; } if ( synPredMatched160 ) { match("SCALAR"); if ( inputState.guessing==0 ) { _ttype = SCALAR_REF; } } else { boolean synPredMatched162 = false; if (((LA(1)=='H') && (LA(2)=='A') && (LA(3)=='S') && (LA(4)=='H'))) { int _m162 = mark(); synPredMatched162 = true; inputState.guessing++; try { { match("HASH"); } } catch (RecognitionException pe) { synPredMatched162 = false; } rewind(_m162); inputState.guessing--; } if ( synPredMatched162 ) { match("HASH"); if ( inputState.guessing==0 ) { _ttype = HASH_REF; } } else { boolean synPredMatched164 = false; if (((LA(1)=='C') && (LA(2)=='O') && (LA(3)=='D') && (LA(4)=='E'))) { int _m164 = mark(); synPredMatched164 = true; inputState.guessing++; try { { match("CODE"); } } catch (RecognitionException pe) { synPredMatched164 = false; } rewind(_m164); inputState.guessing--; } if ( synPredMatched164 ) { match("CODE"); if ( inputState.guessing==0 ) { _ttype = CODE_REF; } } else { boolean synPredMatched168 = false; if (((LA(1)=='F') && (LA(2)=='i') && (LA(3)=='l') && (LA(4)=='e'))) { int _m168 = mark(); synPredMatched168 = true; inputState.guessing++; try { { match("FileHandle"); } } catch (RecognitionException pe) { synPredMatched168 = false; } rewind(_m168); inputState.guessing--; } if ( synPredMatched168 ) { match("FileHandle"); if ( inputState.guessing==0 ) { _ttype = FILE_HANDLE; } } else { boolean synPredMatched170 = false; if (((LA(1)=='f') && (LA(2)=='i') && (LA(3)=='l') && (LA(4)=='e'))) { int _m170 = mark(); synPredMatched170 = true; inputState.guessing++; try { { match("fileno("); } } catch (RecognitionException pe) { synPredMatched170 = false; } rewind(_m170); inputState.guessing--; } if ( synPredMatched170 ) { { match("fileno("); } { int _cnt173=0; _loop173: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { if ( _cnt173>=1 ) { break _loop173; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt173++; } while (true); } match(')'); if ( inputState.guessing==0 ) { _ttype = FILE_NO; } } else { boolean synPredMatched166 = false; if (((LA(1)=='R') && (LA(2)=='E') && (LA(3)=='F') && (true))) { int _m166 = mark(); synPredMatched166 = true; inputState.guessing++; try { { match("REF"); } } catch (RecognitionException pe) { synPredMatched166 = false; } rewind(_m166); inputState.guessing--; } if ( synPredMatched166 ) { match("REF"); if ( inputState.guessing==0 ) { _ttype = REF; } } else if ((_tokenSet_0.member(LA(1))) && (true) && (true) && (true)) { mPURE_NAME(false); if ( inputState.guessing==0 ) { _ttype = PURE_NAME; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/6ddba15fc8496d0818a1a3e2f6a771c7d36dd1f8/PerlBaseLexer.java/buggy/org.epic.debug/src/org/epic/debug/varparser/PerlBaseLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
12194,
67,
1985,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
14057,
67,
1985,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
6494,
6194,
10391,
15400,
25984,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
37,
6134,
597,
261,
2534,
12,
22,
13,
18920,
54,
6134,
597,
261,
2534,
12,
23,
13,
18920,
54,
6134,
597,
261,
2534,
12,
24,
13,
18920,
37,
11,
20349,
288,
1082,
202,
474,
389,
81,
25984,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
25984,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
1916,
2932,
8552,
8863,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
9506,
202,
11982,
10391,
15400,
25984,
273,
629,
31,
1082,
202,
97,
1082,
202,
266,
10094,
24899,
81,
25984,
1769,
1082,
202,
2630,
1119,
18,
20885,
310,
413,
31,
202,
202,
97,
202,
202,
430,
261,
6194,
10391,
15400,
25984,
262,
288,
1082,
202,
1916,
2932,
8552,
8863,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
14884,
67,
10771,
31,
1082,
202,
97,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
12194,
67,
1985,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
14057,
67,
1985,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
6494,
6194,
10391,
15400,
25984,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
37,
6134,
597,
261,
2534,
12,
22,
13,
18920,
54,
6134,
597,
261,
2534,
12,
23,
13,
18920,
54,
6134,
597,
261,
2534,
12,
24,
13,
18920,
37,
11,
20349,
288,
1082,
202,
474,
389,
2
] |
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException { // internal subset string if (fInternalSubset != null && !fInDTDExternalSubset) { fInternalSubset.append("<!ATTLIST "); fInternalSubset.append(elementName); fInternalSubset.append(' '); fInternalSubset.append(attributeName); fInternalSubset.append(' '); if (type.equals("ENUMERATION")) { fInternalSubset.append('('); for (int i = 0; i < enumeration.length; i++) { if (i > 0) { fInternalSubset.append('|'); } fInternalSubset.append(enumeration[i]); } fInternalSubset.append(')'); } else { fInternalSubset.append(type); } if (defaultType != null) { fInternalSubset.append(' '); fInternalSubset.append(defaultType); } if (defaultValue != null) { fInternalSubset.append(" '"); for (int i = 0; i < defaultValue.length; i++) { char c = defaultValue.ch[defaultValue.offset + i]; if (c == '\'') { fInternalSubset.append("'"); } else { fInternalSubset.append(c); } } fInternalSubset.append('\''); } fInternalSubset.append(">\n"); } // REVISIT: This code applies to the support of domx/grammar-access // feature in Xerces 1 // deferred expansion if (fDeferredDocumentImpl != null) { // get the default value if (defaultValue != null) { // get element definition int elementDefIndex = fDeferredDocumentImpl.lookupElementDefinition(elementName); // create element definition if not already there if (elementDefIndex == -1) { elementDefIndex = fDeferredDocumentImpl.createDeferredElementDefinition(elementName); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, elementDefIndex); } // add default attribute int attrIndex = fDeferredDocumentImpl.createDeferredAttribute( attributeName, defaultValue.toString(), false); if ("ID".equals(type)) { fDeferredDocumentImpl.setIdAttribute(attrIndex); } // REVISIT: set ID type correctly fDeferredDocumentImpl.appendChild(elementDefIndex, attrIndex); } } // if deferred // full expansion else if (fDocumentImpl != null) { // get the default value if (defaultValue != null) { // get element definition node NamedNodeMap elements = ((DocumentTypeImpl)fDocumentType).getElements(); ElementDefinitionImpl elementDef = (ElementDefinitionImpl)elements.getNamedItem(elementName); if (elementDef == null) { elementDef = fDocumentImpl.createElementDefinition(elementName); ((DocumentTypeImpl)fDocumentType).getElements().setNamedItem(elementDef); } // REVISIT: Check for uniqueness of element name? -Ac // create attribute and set properties boolean nsEnabled = fNamespaceAware; AttrImpl attr; if (nsEnabled) { String namespaceURI = null; // DOM Level 2 wants all namespace declaration attributes // to be bound to "http://www.w3.org/2000/xmlns/" // So as long as the XML parser doesn't do it, it needs to // done here. if (attributeName.startsWith("xmlns:") || attributeName.equals("xmlns")) { namespaceURI = NamespaceContext.XMLNS_URI; } attr = (AttrImpl)fDocumentImpl.createAttributeNS(namespaceURI, attributeName); } else { attr = (AttrImpl)fDocumentImpl.createAttribute(attributeName); } attr.setValue(defaultValue.toString()); attr.setSpecified(false); attr.setIdAttribute("ID".equals(type)); // add default attribute to element definition if (nsEnabled){ elementDef.getAttributes().setNamedItemNS(attr); } else { elementDef.getAttributes().setNamedItem(attr); } } } // if NOT defer-node-expansion } // attributeDecl(String,String,String,String[],String,XMLString, XMLString, Augmentations)
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1566,
3456,
12,
780,
14453,
16,
514,
9734,
16,
1171,
9079,
514,
618,
16,
514,
8526,
16836,
16,
1171,
9079,
514,
805,
559,
16,
3167,
780,
4593,
16,
17311,
3167,
780,
1661,
15577,
15646,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
2713,
7931,
533,
3639,
309,
261,
74,
3061,
20315,
480,
446,
597,
401,
74,
382,
25728,
6841,
20315,
13,
288,
5411,
284,
3061,
20315,
18,
6923,
2932,
5586,
789,
56,
7085,
315,
1769,
5411,
284,
3061,
20315,
18,
6923,
12,
2956,
461,
1769,
5411,
284,
3061,
20315,
18,
6923,
2668,
28005,
5411,
284,
3061,
20315,
18,
6923,
12,
4589,
461,
1769,
5411,
284,
3061,
20315,
18,
6923,
2668,
28005,
5411,
309,
261,
723,
18,
14963,
2932,
16509,
654,
2689,
6,
3719,
288,
7734,
284,
3061,
20315,
18,
6923,
2668,
2668,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
16836,
18,
2469,
31,
277,
27245,
288,
10792,
309,
261,
77,
405,
374,
13,
288,
13491,
284,
3061,
20315,
18,
6923,
2668,
96,
8284,
10792,
289,
10792,
284,
3061,
20315,
18,
6923,
12,
7924,
7067,
63,
77,
19226,
7734,
289,
7734,
284,
3061,
20315,
18,
6923,
2668,
2506,
1769,
5411,
289,
5411,
469,
288,
7734,
284,
3061,
20315,
18,
6923,
12,
723,
1769,
5411,
289,
5411,
309,
261,
1886,
559,
480,
446,
13,
288,
7734,
284,
3061,
20315,
18,
6923,
2668,
28005,
7734,
284,
3061,
20315,
18,
6923,
12,
1886,
559,
1769,
5411,
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,
918,
1566,
3456,
12,
780,
14453,
16,
514,
9734,
16,
1171,
9079,
514,
618,
16,
514,
8526,
16836,
16,
1171,
9079,
514,
805,
559,
16,
3167,
780,
4593,
16,
17311,
3167,
780,
1661,
15577,
15646,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
2713,
7931,
533,
3639,
309,
261,
74,
3061,
20315,
480,
446,
597,
401,
74,
382,
25728,
6841,
20315,
13,
288,
5411,
284,
3061,
20315,
18,
6923,
2932,
5586,
789,
56,
7085,
315,
1769,
5411,
284,
3061,
20315,
18,
6923,
12,
2956,
461,
1769,
5411,
284,
3061,
20315,
18,
6923,
2668,
28005,
5411,
284,
3061,
20315,
18,
6923,
12,
4589,
461,
1769,
5411,
284,
3061,
20315,
18,
6923,
2
] |
||
contentProvider = new WizardContentProvider(true);
|
contentProvider = new WizardContentProvider(false);
|
private void createViewer(Composite parent) { // category tree pane...create SWT tree directly to // get single selection mode instead of multi selection. Composite treeParent = new Composite(parent, SWT.NONE); treeParent.setFont(parent.getFont()); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = SIZING_VIEWER_WIDTH; boolean needsHint = DialogUtil.inRegularFontMode(treeParent.getParent()); //Only give a height hint if the dialog is going to be too small if (needsHint) { data.heightHint = SIZING_LISTS_HEIGHT; } treeParent.setLayoutData(data); GridLayout layout = new GridLayout(1, true); layout.marginHeight = 0; layout.marginWidth = 0; treeParent.setLayout(layout); Label wizardLabel = new Label(treeParent, SWT.NONE); wizardLabel.setFont(parent.getFont()); wizardLabel.setText(WorkbenchMessages.getString("NewWizardNewPage.wizardsLabel")); //$NON-NLS-1$ data = new GridData(GridData.FILL_HORIZONTAL); wizardLabel.setLayoutData(data); Tree tree = new Tree( treeParent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer = new TreeViewer(tree); contentProvider = new WizardContentProvider(true); viewer.setContentProvider(contentProvider); viewer.setLabelProvider(new WorkbenchLabelProvider()); viewer.setSorter(NewWizardCollectionSorter.INSTANCE); viewer.addSelectionChangedListener(this); viewer.addDoubleClickListener(this); ArrayList inputArray = new ArrayList(); for (int i = 0; i < primaryWizards.length; i++) { inputArray.add(primaryWizards[i]); } if (wizardCategories != null) { if (wizardCategories.getParent(wizardCategories) == null) { Object [] children = wizardCategories.getChildren(); for (int i = 0; i < children.length; i++) { inputArray.add(children[i]); } } else { //inputArray.add(new RootElementProxy(wizardCategories)); inputArray.add(wizardCategories); } } AdaptableList input = new AdaptableList(inputArray); viewer.setInput(input); tree.setFont(parent.getFont()); viewer.addDoubleClickListener(new IDoubleClickListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent) */ public void doubleClick(DoubleClickEvent event) { IStructuredSelection s = (IStructuredSelection) event.getSelection(); Object element = s.getFirstElement(); if (viewer.isExpandable(element)) { viewer.setExpandedState(element, !viewer.getExpandedState(element)); } else if (element instanceof WorkbenchWizardElement) { page.advanceToNextPage(); } } }); data = new GridData(GridData.FILL_BOTH); tree.setLayoutData(data); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/649cc7025075bd62f19564473e20fb17ee70ffae/NewWizardNewPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15193,
264,
12,
9400,
982,
13,
288,
202,
202,
759,
3150,
2151,
13618,
2777,
2640,
348,
8588,
2151,
5122,
358,
202,
202,
759,
336,
2202,
4421,
1965,
3560,
434,
3309,
4421,
18,
202,
377,
202,
565,
14728,
2151,
3054,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
565,
2151,
3054,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
67,
12145,
654,
67,
10023,
31,
9506,
202,
6494,
4260,
7002,
273,
17242,
1304,
18,
267,
17974,
5711,
2309,
12,
3413,
3054,
18,
588,
3054,
10663,
202,
202,
759,
3386,
8492,
279,
2072,
7380,
309,
326,
6176,
353,
8554,
358,
506,
4885,
5264,
202,
202,
430,
261,
20600,
7002,
13,
288,
1082,
202,
892,
18,
4210,
7002,
273,
5705,
62,
1360,
67,
7085,
55,
67,
14595,
31,
202,
202,
97,
202,
202,
3413,
3054,
18,
542,
3744,
751,
12,
892,
1769,
9506,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
21,
16,
638,
1769,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
3413,
3054,
18,
542,
3744,
12,
6741,
1769,
9506,
377,
202,
565,
5287,
24204,
2224,
273,
394,
5287,
12,
3413,
3054,
16,
348,
8588,
18,
9826,
1769,
1082,
565,
24204,
2224,
18,
542,
5711,
12,
2938,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15193,
264,
12,
9400,
982,
13,
288,
202,
202,
759,
3150,
2151,
13618,
2777,
2640,
348,
8588,
2151,
5122,
358,
202,
202,
759,
336,
2202,
4421,
1965,
3560,
434,
3309,
4421,
18,
202,
377,
202,
565,
14728,
2151,
3054,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
565,
2151,
3054,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2819,
7002,
273,
5705,
62,
1360,
67,
12145,
654,
67,
10023,
31,
9506,
202,
6494,
4260,
7002,
273,
17242,
1304,
18,
267,
17974,
5711,
2309,
12,
3413,
3054,
18,
588,
2
] |
public org.quickfix.field.CashMargin getCashMargin() throws FieldNotFound { org.quickfix.field.CashMargin value = new org.quickfix.field.CashMargin();
|
public quickfix.field.CashMargin getCashMargin() throws FieldNotFound { quickfix.field.CashMargin value = new quickfix.field.CashMargin();
|
public org.quickfix.field.CashMargin getCashMargin() throws FieldNotFound { org.quickfix.field.CashMargin value = new org.quickfix.field.CashMargin(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix43/NewOrderSingle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
1927,
961,
9524,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
1927,
961,
9524,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
961,
9524,
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
] |
AST __t1838 = _t;
|
AST __t1839 = _t;
|
public final void putcursorstate(AST _t) throws RecognitionException { AST putcursorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1838 = _t; AST tmp1341_AST_in = (AST)_t; match(_t,PUT); _t = _t.getFirstChild(); AST tmp1342_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OFF: { AST tmp1343_AST_in = (AST)_t; match(_t,OFF); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMN: case ROW: { { _loop1843: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ROW: { AST __t1841 = _t; AST tmp1344_AST_in = (AST)_t; match(_t,ROW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1841; _t = _t.getNextSibling(); break; } case COLUMN: { AST __t1842 = _t; AST tmp1345_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1842; _t = _t.getNextSibling(); break; } default: { break _loop1843; } } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1838; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1378,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1378,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2643,
7414,
273,
389,
88,
31,
202,
202,
9053,
1853,
3437,
9803,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4762,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3437,
9452,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7509,
55,
916,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
95,
202,
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,
17511,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3437,
8942,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
8797,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
6431,
30,
202,
202,
3593,
10950,
21054,
30,
202,
202,
3593,
13473,
30,
202,
202,
3593,
29589,
30,
202,
202,
95,
1082,
202,
95,
1082,
202,
67,
6498,
2643,
8942,
30,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1378,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1378,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2643,
7414,
273,
389,
88,
31,
202,
202,
9053,
1853,
3437,
9803,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
4762,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3437,
9452,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7509,
55,
916,
1769,
202,
2
] |
break;
|
continue Loop;
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; 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; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and 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 = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double 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 Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/34e9dc56b7553f450b9015c8f4135584139686cf/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
return addSlot(id, index, getterSlot);
|
return addSlot(id, index, null);
|
private Slot getSlotToSet(String id, int index, boolean getterSlot) { // Get stable reference Slot[] array = slots; if (array == null) { return addSlot(id, index, getterSlot); } int start = (index & 0x7fffffff) % array.length; boolean sawRemoved = false; int i = start; do { Slot slot = array[i]; if (slot == null) { return addSlot(id, index, getterSlot); } if (slot == REMOVED) { sawRemoved = true; } else if (slot.intKey == index && (slot.stringKey == id || (id != null && id.equals(slot.stringKey)))) { return slot; } if (++i == array.length) i = 0; } while (i != start); if (Context.check && !sawRemoved) Context.codeBug(); // Table could be full, but with some REMOVED elements. // Call to addSlot will use a slot currently taken by // a REMOVED. return addSlot(id, index, getterSlot); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/b2d554a641c52cb997c67ace75f51bfe22d26e87/ScriptableObject.java/clean/src/org/mozilla/javascript/ScriptableObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
23195,
17718,
352,
25208,
12,
780,
612,
16,
509,
770,
16,
1250,
7060,
8764,
13,
288,
3639,
368,
968,
14114,
2114,
3639,
23195,
8526,
526,
273,
12169,
31,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
3639,
289,
3639,
509,
787,
273,
261,
1615,
473,
374,
92,
27,
18217,
74,
13,
738,
526,
18,
2469,
31,
3639,
1250,
19821,
10026,
273,
629,
31,
3639,
509,
277,
273,
787,
31,
3639,
741,
288,
5411,
23195,
4694,
273,
526,
63,
77,
15533,
5411,
309,
261,
14194,
422,
446,
13,
288,
7734,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
5411,
289,
5411,
309,
261,
14194,
422,
23769,
12135,
13,
288,
7734,
19821,
10026,
273,
638,
31,
5411,
289,
469,
309,
261,
14194,
18,
474,
653,
422,
770,
597,
13491,
261,
14194,
18,
1080,
653,
422,
612,
747,
7682,
261,
350,
480,
446,
597,
612,
18,
14963,
12,
14194,
18,
1080,
653,
3719,
3719,
5411,
288,
7734,
327,
4694,
31,
5411,
289,
5411,
309,
261,
9904,
77,
422,
526,
18,
2469,
13,
7734,
277,
273,
374,
31,
3639,
289,
1323,
261,
77,
480,
787,
1769,
3639,
309,
261,
1042,
18,
1893,
597,
401,
87,
2219,
10026,
13,
1772,
18,
710,
19865,
5621,
3639,
368,
3555,
3377,
506,
1983,
16,
1496,
598,
2690,
23769,
12135,
2186,
18,
540,
368,
3049,
358,
527,
8764,
903,
999,
279,
4694,
4551,
9830,
635,
540,
368,
279,
23769,
12135,
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,
23195,
17718,
352,
25208,
12,
780,
612,
16,
509,
770,
16,
1250,
7060,
8764,
13,
288,
3639,
368,
968,
14114,
2114,
3639,
23195,
8526,
526,
273,
12169,
31,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
3639,
289,
3639,
509,
787,
273,
261,
1615,
473,
374,
92,
27,
18217,
74,
13,
738,
526,
18,
2469,
31,
3639,
1250,
19821,
10026,
273,
629,
31,
3639,
509,
277,
273,
787,
31,
3639,
741,
288,
5411,
23195,
4694,
273,
526,
63,
77,
15533,
5411,
309,
261,
14194,
422,
446,
13,
288,
7734,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
5411,
289,
5411,
309,
261,
14194,
422,
2
] |
match(input,33,FOLLOW_33_in_word2592);
|
match(input,33,FOLLOW_33_in_word2595);
|
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt58=11; switch ( input.LA(1) ) { case ID: alt58=1; break; case 17: alt58=2; break; case 56: alt58=3; break; case 28: alt58=4; break; case 26: alt58=5; break; case 33: alt58=6; break; case 34: alt58=7; break; case 29: alt58=8; break; case 31: alt58=9; break; case 27: alt58=10; break; case STRING: alt58=11; break; default: NoViableAltException nvae = new NoViableAltException("866:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2538); word=id.getText(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:871:17: 'import' { match(input,17,FOLLOW_17_in_word2550); word="import"; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:872:17: 'use' { match(input,56,FOLLOW_56_in_word2559); word="use"; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:17: 'rule' { match(input,28,FOLLOW_28_in_word2571); word="rule"; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:874:17: 'query' { match(input,26,FOLLOW_26_in_word2582); word="query"; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:875:17: 'salience' { match(input,33,FOLLOW_33_in_word2592); word="salience"; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:876:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2600); word="no-loop"; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:877:17: 'when' { match(input,29,FOLLOW_29_in_word2608); word="when"; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:878:17: 'then' { match(input,31,FOLLOW_31_in_word2619); word="then"; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:879:17: 'end' { match(input,27,FOLLOW_27_in_word2630); word="end"; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:880:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2644); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
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,
28,
7301,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
8204,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
8204,
33,
21,
31,
7734,
898,
31,
5411,
648,
8043,
30,
7734,
3770,
8204,
33,
22,
31,
7734,
898,
31,
5411,
648,
13850,
30,
7734,
3770,
8204,
33,
23,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
8204,
33,
24,
31,
7734,
898,
31,
5411,
648,
10659,
30,
7734,
3770,
8204,
33,
25,
31,
7734,
898,
31,
5411,
648,
13159,
30,
7734,
3770,
8204,
33,
26,
31,
7734,
898,
31,
5411,
648,
13438,
30,
7734,
3770,
8204,
33,
27,
31,
7734,
898,
31,
5411,
648,
12899,
30,
7734,
3770,
8204,
33,
28,
31,
7734,
898,
31,
5411,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
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,
28,
7301,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
2
] |
result = RubyRange.newRange(ruby, eval(iVisited.getBeginNode()).toRubyObject(), eval(iVisited.getEndNode()).toRubyObject(), iVisited.isExclusive());
|
result = RubyRange.newRange(ruby, eval(iVisited.getBeginNode()), eval(iVisited.getEndNode()), iVisited.isExclusive());
|
public void visitDotNode(DotNode iVisited) { result = RubyRange.newRange(ruby, eval(iVisited.getBeginNode()).toRubyObject(), eval(iVisited.getEndNode()).toRubyObject(), iVisited.isExclusive()); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/f235ab756f32ea9496f8f880066b46ad95ebb692/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
10412,
907,
12,
10412,
907,
277,
30019,
13,
288,
3639,
563,
273,
19817,
2655,
18,
2704,
2655,
12,
27768,
16,
5302,
12,
77,
30019,
18,
588,
8149,
907,
1435,
3631,
5302,
12,
77,
30019,
18,
588,
1638,
907,
1435,
3631,
277,
30019,
18,
291,
17075,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
10412,
907,
12,
10412,
907,
277,
30019,
13,
288,
3639,
563,
273,
19817,
2655,
18,
2704,
2655,
12,
27768,
16,
5302,
12,
77,
30019,
18,
588,
8149,
907,
1435,
3631,
5302,
12,
77,
30019,
18,
588,
1638,
907,
1435,
3631,
277,
30019,
18,
291,
17075,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_bDumpAmmo.setActionCommand("dump");
|
m_bDumpAmmo.setActionCommand("dump");
|
public SystemPanel(ClientGUI clientgui) { super(); FontMetrics fm = getFontMetrics(FONT_VALUE); this.clientgui = clientgui; locLabel = new TransparentLabel("Location", fm, Color.white,TransparentLabel.CENTER); slotLabel = new TransparentLabel("Slot", fm, Color.white,TransparentLabel.CENTER); locList = new List(8, false); locList.addItemListener(this); locList.addKeyListener(clientgui.menuBar); slotList = new List(12, false); slotList.addItemListener(this); slotList.addKeyListener(clientgui.menuBar); //slotList.setEnabled(false); m_chMode = new Choice(); m_chMode.add(" "); m_chMode.setEnabled(false); m_chMode.addItemListener(this); m_chMode.addKeyListener(clientgui.menuBar); m_bDumpAmmo = new Button("Dump"); m_bDumpAmmo.setEnabled(false); m_bDumpAmmo.setActionCommand("dump"); m_bDumpAmmo.addActionListener(this); m_bDumpAmmo.addKeyListener(clientgui.menuBar); modeLabel = new TransparentLabel("Mode", fm, Color.white,TransparentLabel.RIGHT); //modeLabel.setEnabled(false); // layout main panel GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.insets = new Insets(15, 9, 1, 1); c.gridy = 0; c.gridx = 0; c.weightx = 0.5; c.weighty = 0.0; c.gridwidth = 1; c.gridheight = 1; gridbag.setConstraints(locLabel, c); add(locLabel); c.weightx = 0.0; c.gridy = 0; c.gridx = 1; c.gridwidth = GridBagConstraints.REMAINDER; c.insets = new Insets(15, 1, 1, 9); gridbag.setConstraints(slotLabel, c); add(slotLabel); c.weightx = 0.5; //c.weighty = 1.0; c.gridy = 1; c.gridx = 0; c.gridwidth = 1; c.insets = new Insets(1, 9, 15, 1); c.gridheight = GridBagConstraints.REMAINDER; gridbag.setConstraints(locList, c); add(locList); c.gridwidth = GridBagConstraints.REMAINDER; c.gridheight = 1; c.gridy = 1; c.gridx = 1; c.weightx = 0.0; c.weighty = 1.0; c.insets = new Insets(1, 1, 1, 9); gridbag.setConstraints(slotList, c); add(slotList); c.gridwidth = 1; c.gridy = 2; c.gridx = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(modeLabel, c); c.insets = new Insets(1, 1, 1, 1); add(modeLabel); c.weightx = 1.0; c.gridwidth = GridBagConstraints.REMAINDER; c.gridy = 2; c.gridx = 2; c.insets = new Insets(1, 1, 1, 9); gridbag.setConstraints(m_chMode, c); add(m_chMode); c.gridwidth = GridBagConstraints.REMAINDER; c.gridheight = GridBagConstraints.REMAINDER; c.gridy = 3; c.gridx = 1; c.insets = new Insets(4, 4, 15, 9); gridbag.setConstraints(m_bDumpAmmo, c); add(m_bDumpAmmo); setBackGround(); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/MechDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MechDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2332,
5537,
12,
1227,
43,
5370,
1004,
20292,
13,
288,
3639,
2240,
5621,
3639,
10063,
5653,
10940,
273,
18776,
5653,
12,
25221,
67,
4051,
1769,
3639,
333,
18,
2625,
20292,
273,
1004,
20292,
31,
3639,
1515,
2224,
273,
394,
2604,
2938,
2224,
2932,
2735,
3113,
10940,
16,
5563,
18,
14739,
16,
1429,
2938,
2224,
18,
19835,
1769,
3639,
4694,
2224,
273,
394,
2604,
2938,
2224,
2932,
8764,
3113,
10940,
16,
5563,
18,
14739,
16,
1429,
2938,
2224,
18,
19835,
1769,
3639,
1515,
682,
273,
394,
987,
12,
28,
16,
629,
1769,
3639,
1515,
682,
18,
1289,
1180,
2223,
12,
2211,
1769,
3639,
1515,
682,
18,
1289,
653,
2223,
12,
2625,
20292,
18,
5414,
5190,
1769,
3639,
4694,
682,
273,
394,
987,
12,
2138,
16,
629,
1769,
3639,
4694,
682,
18,
1289,
1180,
2223,
12,
2211,
1769,
3639,
4694,
682,
18,
1289,
653,
2223,
12,
2625,
20292,
18,
5414,
5190,
1769,
3639,
368,
14194,
682,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
67,
343,
2309,
273,
394,
16432,
5621,
3639,
312,
67,
343,
2309,
18,
1289,
2932,
282,
315,
1769,
3639,
312,
67,
343,
2309,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
67,
343,
2309,
18,
1289,
1180,
2223,
12,
2211,
1769,
3639,
312,
67,
343,
2309,
18,
1289,
653,
2223,
12,
2625,
20292,
18,
5414,
5190,
1769,
3639,
312,
67,
70,
10628,
37,
7020,
83,
273,
394,
12569,
2932,
10628,
8863,
3639,
312,
67,
70,
10628,
37,
7020,
83,
18,
542,
1526,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2332,
5537,
12,
1227,
43,
5370,
1004,
20292,
13,
288,
3639,
2240,
5621,
3639,
10063,
5653,
10940,
273,
18776,
5653,
12,
25221,
67,
4051,
1769,
3639,
333,
18,
2625,
20292,
273,
1004,
20292,
31,
3639,
1515,
2224,
273,
394,
2604,
2938,
2224,
2932,
2735,
3113,
10940,
16,
5563,
18,
14739,
16,
1429,
2938,
2224,
18,
19835,
1769,
3639,
4694,
2224,
273,
394,
2604,
2938,
2224,
2932,
8764,
3113,
10940,
16,
5563,
18,
14739,
16,
1429,
2938,
2224,
18,
19835,
1769,
3639,
1515,
682,
273,
394,
987,
12,
28,
16,
629,
1769,
3639,
1515,
682,
18,
1289,
1180,
2223,
12,
2211,
1769,
3639,
1515,
682,
18,
1289,
653,
2223,
12,
2625,
20292,
18,
5414,
5190,
1769,
3639,
4694,
2
] |
return new ATEStyledDocument();
|
return new DefaultStyledDocument();
|
public Document createDefaultDocument() { return new ATEStyledDocument(); }
|
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/7d10fc62dd364c5d7d612bfc98500e0202fd7f02/EditorATEEditorKit.java/buggy/src/org/antlr/works/editor/EditorATEEditorKit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4319,
27346,
2519,
1435,
288,
3639,
327,
394,
2989,
24273,
1259,
2519,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4319,
27346,
2519,
1435,
288,
3639,
327,
394,
2989,
24273,
1259,
2519,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IContentProvider provider = getContentProvider();
|
ProgressViewerContentProvider provider = getContentProvider();
|
void showJobDetails(Composite parent) { viewer = new NewProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); if (blockingJob != null) viewer.setHighlightJob(blockingJob); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); IContentProvider provider = getContentProvider(); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider()); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.FILL_BOTH); data.horizontalSpan = 2; int heightHint = convertHeightInCharsToPixels(10); data.heightHint = heightHint; viewer.getControl().setLayoutData(data); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
2278,
3790,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
1166,
5491,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
38,
7954,
1769,
202,
202,
430,
261,
18926,
2278,
480,
446,
13,
1082,
202,
25256,
18,
542,
16205,
2278,
12,
18926,
2278,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
25256,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
24952,
7,
9877,
12,
3341,
18,
20416,
18,
78,
865,
18,
1945,
414,
18,
18415,
16,
9506,
380,
1377,
2252,
18,
4936,
18,
921,
16,
2252,
18,
4936,
18,
921,
13,
9506,
1195,
1082,
202,
482,
509,
3400,
12,
18415,
1842,
18415,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
9506,
202,
2463,
14015,
799,
10207,
13,
425,
21,
2934,
9877,
774,
12,
73,
22,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
45,
1350,
2249,
2893,
273,
5154,
2249,
5621,
202,
202,
25256,
18,
542,
1350,
2249,
12,
6778,
1769,
202,
202,
25256,
18,
542,
1210,
12,
6778,
1769,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
10980,
2224,
2249,
10663,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
2278,
3790,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
1166,
5491,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
9506,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
38,
7954,
1769,
202,
202,
430,
261,
18926,
2278,
480,
446,
13,
1082,
202,
25256,
18,
542,
16205,
2278,
12,
18926,
2278,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
25256,
18,
542,
24952,
12,
2704,
4441,
264,
24952,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1945,
2
] |
public void actionPerformed(ActionEvent ae){ hourglassOn(); try{ uncommentLines(); } finally{ hourglassOff(); } }
|
public void actionPerformed(ActionEvent ae) { _model.resetConsole(); }
|
public void actionPerformed(ActionEvent ae){ hourglassOn(); try{ uncommentLines(); } finally{ hourglassOff(); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/32513407e5f8f41a21eb0336c92af1269f67953c/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
15329,
1377,
6126,
75,
459,
1398,
5621,
1377,
775,
95,
12704,
475,
5763,
5621,
289,
1377,
3095,
95,
6126,
75,
459,
7210,
5621,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26100,
12,
1803,
1133,
14221,
15329,
1377,
6126,
75,
459,
1398,
5621,
1377,
775,
95,
12704,
475,
5763,
5621,
289,
1377,
3095,
95,
6126,
75,
459,
7210,
5621,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static int FromReflectedField(VM_JNIEnvironment env) {
|
private static int FromReflectedField(VM_JNIEnvironment env, int fieldJREF) {
|
private static int FromReflectedField(VM_JNIEnvironment env) { if (traceJNI) VM.sysWrite("JNI called: FromReflectedField \n"); VM.sysWrite("JNI ERROR: FromReflectedField not implemented yet, exiting ...\n"); VM.sysExit(VM.exitStatusUnsupportedInternalOp); return -1; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/6092d61f50a21ad2a2c1edb89aa22449a5d0a9c1/VM_JNIFunctions.java/buggy/rvm/src/vm/jni/VM_JNIFunctions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
6338,
24452,
329,
974,
12,
7397,
67,
46,
50,
45,
5494,
1550,
16,
509,
652,
46,
10771,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
6338,
24452,
329,
974,
521,
82,
8863,
4202,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
5475,
30,
6338,
24452,
329,
974,
486,
8249,
4671,
16,
15702,
1372,
64,
82,
8863,
565,
8251,
18,
9499,
6767,
12,
7397,
18,
8593,
1482,
8544,
3061,
3817,
1769,
565,
327,
300,
21,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
6338,
24452,
329,
974,
12,
7397,
67,
46,
50,
45,
5494,
1550,
16,
509,
652,
46,
10771,
13,
288,
565,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
6338,
24452,
329,
974,
521,
82,
8863,
4202,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
5475,
30,
6338,
24452,
329,
974,
486,
8249,
4671,
16,
15702,
1372,
64,
82,
8863,
565,
8251,
18,
9499,
6767,
12,
7397,
18,
8593,
1482,
8544,
3061,
3817,
1769,
565,
327,
300,
21,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (synonym.startsWith("CG") || synonym.startsWith("CR") || synonym.startsWith("FB")) {
|
if (synonym.startsWith("CG") || synonym.startsWith("CR") || synonym.startsWith("FB")) {
|
public void process(GFF3Record record) { Item feature = getFeature(); String clsName = XmlUtil.getFragmentFromURI(feature.getClassName()); String tgtNs = getTargetModel().getNameSpace().toString(); boolean storeItems = true; // set Gene.organismDbId // name set in core - if no name symbol is CGxx? // create some synonyms if ("Gene".equals(clsName) || "Pseudogene".equals(clsName)) { Iterator fbgnIter = parseFlyBaseId(record.getDbxrefs(), "FBgn").iterator(); while (fbgnIter.hasNext()) { String organismDbId = (String) fbgnIter.next(); if (!feature.hasAttribute("organismDbId")) { feature.setAttribute("organismDbId", organismDbId); } addItem(createSynonym(feature, "identifier", organismDbId, "FlyBase")); } if (!feature.hasAttribute("organismDbId")) { feature.setAttribute("organismDbId", feature.getAttribute("identifier").getValue()); // if no FBgn found look in dbxref_2nd - does not seem to be in order but // nothing else we can do// fbgnIter = parseFlyBaseId((List) record.getAttributes().get("dbxref_2nd"),// "FBgn").iterator();// while (fbgnIter.hasNext()) {// String organismDbId = (String) fbgnIter.next();// if (!feature.hasAttribute("organismDbId")) {// feature.setAttribute("organismDbId", organismDbId);// }// addItem(createSynonym(feature, "identifier", organismDbId, "FlyBase"));// } // if still no FBgn then don't create the gene! //if (!feature.hasAttribute("organismDbId")) {// LOG.warn("FlyBase gene with no FBgn: "// + feature.getAttribute("identifier").getValue());// storeItems = false; //} } // if no name set for gene then use CGxx (FlyBase symbol rules) if (feature.getAttribute("name") == null) { feature.setAttribute("name", feature.getAttribute("identifier").getValue()); addItem(createSynonym(feature, "name", feature.getAttribute("name").getValue(), "FlyBase")); } } // release 4.0 GFF3 is incorrect for some insertion_sites - have Parent reference // to an unknown integer istead of a CG/CR number if (record.getParents() != null) { Iterator parentIter = record.getParents().iterator(); while (parentIter.hasNext()) { String parentId = (String) parentIter.next(); if (!parentId.startsWith("C")) { LOG.warn("removing parent relation for " + clsName + " (" + feature.getIdentifier() + ")" + " because it has Parent=" + parentId); Iterator relIter = getParentRelations().iterator(); while (relIter.hasNext()) { Item relation = (Item) relIter.next(); items.remove("_relation" + relation.getIdentifier()); } } } } // set MRNA.organismDbId if ("MRNA".equals(clsName)) { // FlyBase GFF3 release 4.0 has non-coding RNAs modelled badly (fixed in 4.1) Iterator fbIter = parseFlyBaseId(record.getDbxrefs(), "FBtr").iterator(); while (fbIter.hasNext()) { String organismDbId = (String) fbIter.next(); if (!feature.hasAttribute("organismDbId")) { feature.setAttribute("organismDbId", organismDbId); } addItem(createSynonym(feature, "identifier", organismDbId, "FlyBase")); } } // set TransposableElement.organismDbId if ("TransposableElement".equals(clsName)) { Iterator fbIter = parseFlyBaseId(record.getDbxrefs(), "FBti").iterator(); while (fbIter.hasNext()) { String organismDbId = (String) fbIter.next(); if (!feature.hasAttribute("organismDbId")) { feature.setAttribute("organismDbId", organismDbId); } addItem(createSynonym(feature, "identifier", organismDbId, "FlyBase")); } } // create additional referenced gene - this is parent of if ("SnRNA".equals(clsName) || "NcRNA".equals(clsName) || "SnoRNA".equals(clsName) || "TRNA".equals(clsName)) { Item gene = getItemFactory().makeItem(null, tgtNs + "Gene", ""); gene.setReference("organism", getOrganism().getIdentifier()); gene.addCollection(new ReferenceList("evidence", Arrays.asList(new Object[] {getSourceIdentifier("FlyBase")}))); Iterator fbIter = parseFlyBaseId(record.getDbxrefs(), "FBgn").iterator(); while (fbIter.hasNext()) { String organismDbId = (String) fbIter.next(); if (!gene.hasAttribute("organismDbId")) { gene.setAttribute("organismDbId", organismDbId); addItem(gene); feature.setReference("gene", gene.getIdentifier()); // add SimpleRelation between ?RNA and Gene Item simpleRelation = getItemFactory().makeItem(null, tgtNs + "SimpleRelation", ""); simpleRelation.setReference("object", gene.getIdentifier()); simpleRelation.setReference("subject", feature.getIdentifier()); addItem(simpleRelation); } addItem(createSynonym(gene, "identifier", organismDbId, "FlyBase")); // look in synonyms for a CG identifier for gene List list = (List) record.getAttributes().get("synonym_2nd"); if (list != null) { Iterator iter = list.iterator(); while (iter.hasNext()) { String synonym = (String) iter.next(); if (synonym.startsWith("CG") && Character.isDigit(synonym.charAt(2))) { // first CG as identifier, rest as synonyms if (!gene.hasAttribute("identifier")) { gene.setAttribute("identifier", synonym); } addItem(createSynonym(gene, "identifier", organismDbId, "FlyBase")); } } } } } // for CDS create additional Translation object if ("CDS".equals(clsName)) { // CDSs have identifiers like CG1234-PA - we want this to be the Translation // identifier, for the CDS add an _CDS to the end. String identifier = feature.getAttribute("identifier").getValue(); feature.setAttribute("identifier", identifier + "_CDS"); // create and reference additional Translation object, add to polypeptides collection Item translation = getItemFactory().makeItem(null, tgtNs + "Translation", ""); translation.setReference("organism", getOrganism().getIdentifier()); translation.setAttribute("identifier", identifier); translation.addCollection(new ReferenceList("evidence", Arrays.asList(new Object[] {getSourceIdentifier("FlyBase")}))); addItem(translation); addItem(createSynonym(translation, "identifier", identifier, "FlyBase")); feature.addCollection(new ReferenceList("polypeptides", new ArrayList(Collections.singleton(translation.getIdentifier())))); Iterator fbIter = parseFlyBaseId(record.getDbxrefs(), "FBpp").iterator(); while (fbIter.hasNext()) { String organismDbId = (String) fbIter.next(); if (!translation.hasAttribute("organismDbId")) { translation.setAttribute("organismDbId", organismDbId); } addItem(createSynonym(translation, "identifier", organismDbId, "FlyBase")); } // TODO add GenBank protein identifier as synonym } // make sure we have a set with all existing Synonyms and those that will // be created by GFF3Converter Set synonyms = new HashSet(); if (feature.hasAttribute("identifier")) { synonyms.add(feature.getAttribute("identifier").getValue()); } if (feature.hasAttribute("name")) { synonyms.add(feature.getAttribute("name").getValue()); } Iterator itemIter = getItems().iterator(); while (itemIter.hasNext()) { Item item = (Item) itemIter.next(); if (item.getClassName().endsWith("Synonym")) { synonyms.add(item.getAttribute("value").getValue()); } } List combined = new ArrayList(); List list = (List) record.getAttributes().get("synonym_2nd"); if (list != null) { combined.addAll(list); } list = (List) record.getAttributes().get("synonym"); if (list != null) { combined.addAll(list); } Iterator iter = combined.iterator(); while (iter.hasNext()) { String synonym = (String) iter.next(); if (!synonyms.contains(synonym)) { if (synonym.startsWith("CG") || synonym.startsWith("CR") || synonym.startsWith("FB")) { addItem(createSynonym(feature, "identifier", synonym, "FlyBase")); } else { addItem(createSynonym(feature, "name", synonym, "FlyBase")); } synonyms.add(synonym); } } // set references from parent relations setReferences(references); if (!storeItems) { clear(); } }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/e0bdef50d2afef87ce5a9f288052b0945ad8e5a5/ChadoGFF3RecordHandler.java/clean/flymine/model/chado/src/java/org/flymine/dataconversion/ChadoGFF3RecordHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
43,
2246,
23,
2115,
1409,
13,
288,
3639,
4342,
2572,
273,
17961,
5621,
3639,
514,
2028,
461,
273,
5714,
1304,
18,
588,
7456,
1265,
3098,
12,
7238,
18,
588,
3834,
10663,
3639,
514,
11680,
10386,
273,
8571,
1488,
7675,
17994,
3819,
7675,
10492,
5621,
3639,
1250,
1707,
3126,
273,
638,
31,
3639,
368,
444,
611,
4009,
18,
22543,
6228,
4331,
548,
3639,
368,
508,
444,
316,
2922,
300,
309,
1158,
508,
3273,
353,
29679,
5279,
35,
3639,
368,
752,
2690,
27260,
3639,
309,
7566,
24442,
9654,
14963,
12,
6429,
461,
13,
747,
315,
52,
23715,
30075,
9654,
14963,
12,
6429,
461,
3719,
288,
5411,
4498,
12754,
1600,
2360,
273,
1109,
42,
715,
2171,
548,
12,
3366,
18,
588,
4331,
92,
9316,
9334,
315,
22201,
1600,
20387,
9838,
5621,
5411,
1323,
261,
19192,
1600,
2360,
18,
5332,
2134,
10756,
288,
7734,
514,
15501,
6228,
4331,
548,
273,
261,
780,
13,
12754,
1600,
2360,
18,
4285,
5621,
7734,
309,
16051,
7238,
18,
5332,
1499,
2932,
22543,
6228,
4331,
548,
6,
3719,
288,
10792,
2572,
18,
542,
1499,
2932,
22543,
6228,
4331,
548,
3113,
15501,
6228,
4331,
548,
1769,
7734,
289,
7734,
15009,
12,
2640,
10503,
6435,
12,
7238,
16,
315,
5644,
3113,
15501,
6228,
4331,
548,
16,
315,
42,
715,
2171,
7923,
1769,
5411,
289,
5411,
309,
16051,
7238,
18,
5332,
1499,
2932,
22543,
6228,
4331,
548,
6,
3719,
288,
7734,
2572,
18,
542,
1499,
2932,
22543,
6228,
4331,
548,
3113,
2572,
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,
377,
1071,
918,
1207,
12,
43,
2246,
23,
2115,
1409,
13,
288,
3639,
4342,
2572,
273,
17961,
5621,
3639,
514,
2028,
461,
273,
5714,
1304,
18,
588,
7456,
1265,
3098,
12,
7238,
18,
588,
3834,
10663,
3639,
514,
11680,
10386,
273,
8571,
1488,
7675,
17994,
3819,
7675,
10492,
5621,
3639,
1250,
1707,
3126,
273,
638,
31,
3639,
368,
444,
611,
4009,
18,
22543,
6228,
4331,
548,
3639,
368,
508,
444,
316,
2922,
300,
309,
1158,
508,
3273,
353,
29679,
5279,
35,
3639,
368,
752,
2690,
27260,
3639,
309,
7566,
24442,
9654,
14963,
12,
6429,
461,
13,
747,
315,
52,
23715,
30075,
9654,
14963,
12,
6429,
461,
3719,
288,
5411,
4498,
12754,
1600,
2360,
273,
1109,
42,
715,
2171,
548,
2
] |
String rev = (String) revByFilename.get(filename);
|
String rev = SvnInfoUtils.getRevisionNumber(filename);
|
public String getRevision(String filename) throws IOException { String rev = (String) revByFilename.get(filename); if (rev != null) { return rev; } rev = SvnLogUtils.getRevisionNumber(filename); if (rev != null) { revByFilename.put(filename, rev); return rev; } else if (!SvnLogUtils.isDirectory()) throw new IOException("File " + filename + " has no revision"); else return null; // String baseDir = FileUtils.getParentDirectoryPath(filename); // String entriesFilename = baseDir + "CVS" + FileUtils.getDefaultDirSeparator() + "Entries"; // // // read CVS/Entries file // String absoluteName = FileUtils.getAbsoluteName(this.path, entriesFilename); // BufferedReader in = new BufferedReader(new FileReader(absoluteName)); // try { // String line; // while ((line = in.readLine()) != null) { // if (line.startsWith("D")) { // // ignore, directory entry // } // else { // // cache all entries // StringTokenizer t = new StringTokenizer(line, "/"); // if (t.countTokens() >= 2) { // revByFilename.put(baseDir + t.nextToken(), t.nextToken()); // } // else { // // invalid entry // } // } // } // // rev = (String)revByFilename.get(filename); // if (rev != null) { // return rev; // } // else { // throw new IOException("File " + filename + " has no revision"); // } // } // finally { // in.close(); }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/ddeac1ec6fae5298792168c73875a184f2b6f997/RepositoryFileManager.java/buggy/statsvn/src/net/sf/statcvs/input/RepositoryFileManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26911,
12,
780,
1544,
13,
1216,
1860,
288,
3639,
514,
5588,
273,
348,
25031,
966,
1989,
18,
588,
7939,
1854,
12,
3459,
1769,
3639,
309,
261,
9083,
480,
446,
13,
288,
5411,
327,
5588,
31,
3639,
289,
3639,
5588,
273,
348,
25031,
1343,
1989,
18,
588,
7939,
1854,
12,
3459,
1769,
3639,
309,
261,
9083,
480,
446,
13,
288,
5411,
5588,
858,
5359,
18,
458,
12,
3459,
16,
5588,
1769,
5411,
327,
5588,
31,
3639,
289,
469,
309,
16051,
55,
25031,
1343,
1989,
18,
291,
2853,
10756,
5411,
604,
394,
1860,
2932,
812,
315,
397,
1544,
397,
315,
711,
1158,
6350,
8863,
3639,
469,
5411,
327,
446,
31,
3639,
368,
514,
14078,
273,
13779,
18,
588,
3054,
31995,
12,
3459,
1769,
3639,
368,
514,
3222,
5359,
273,
14078,
397,
315,
39,
14640,
6,
397,
13779,
18,
588,
1868,
1621,
6581,
1435,
397,
315,
5400,
14432,
3639,
368,
540,
368,
368,
855,
385,
14640,
19,
5400,
585,
3639,
368,
514,
4967,
461,
273,
13779,
18,
588,
10368,
461,
12,
2211,
18,
803,
16,
3222,
5359,
1769,
3639,
368,
10633,
316,
273,
394,
10633,
12,
2704,
23010,
12,
12547,
461,
10019,
3639,
368,
775,
288,
3639,
368,
514,
980,
31,
3639,
368,
1323,
14015,
1369,
273,
316,
18,
896,
1670,
10756,
480,
446,
13,
288,
3639,
368,
309,
261,
1369,
18,
17514,
1190,
2932,
40,
6,
3719,
288,
3639,
368,
368,
2305,
16,
1867,
1241,
3639,
368,
289,
3639,
368,
469,
288,
3639,
368,
368,
1247,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26911,
12,
780,
1544,
13,
1216,
1860,
288,
3639,
514,
5588,
273,
348,
25031,
966,
1989,
18,
588,
7939,
1854,
12,
3459,
1769,
3639,
309,
261,
9083,
480,
446,
13,
288,
5411,
327,
5588,
31,
3639,
289,
3639,
5588,
273,
348,
25031,
1343,
1989,
18,
588,
7939,
1854,
12,
3459,
1769,
3639,
309,
261,
9083,
480,
446,
13,
288,
5411,
5588,
858,
5359,
18,
458,
12,
3459,
16,
5588,
1769,
5411,
327,
5588,
31,
3639,
289,
469,
309,
16051,
55,
25031,
1343,
1989,
18,
291,
2853,
10756,
5411,
604,
394,
1860,
2932,
812,
315,
397,
1544,
397,
315,
711,
1158,
6350,
8863,
3639,
469,
5411,
327,
446,
31,
3639,
368,
514,
14078,
273,
13779,
18,
588,
2
] |
if (diffReader.getCurrentLine().length() == 0)
|
if (diffReader.getCurrentLine().length() == 0) {
|
private static int[] parseDiff(LookaheadReader diffReader) throws IOException, BinaryDiffException { int lineDiff[] = { -1, -1 }; boolean propertyChange = false; if (!diffReader.hasNextLine()) { // diff has no output because we modified properties or the changes // are auto-generated ($id$ $author$ kind of thing) // http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.keywords lineDiff[0] = 0; lineDiff[1] = 0; } while (diffReader.hasNextLine()) { diffReader.nextLine(); if (diffReader.getCurrentLine().length() == 0) continue; // very simple algorithm if (diffReader.getCurrentLine().charAt(0) == '+') lineDiff[0]++; else if (diffReader.getCurrentLine().charAt(0) == '-') lineDiff[1]++; else if (diffReader.getCurrentLine().indexOf(PROPERTY_CHANGE) == 0) propertyChange = true; else if (diffReader.getCurrentLine().indexOf(BINARY_TYPE) == 0) throw new BinaryDiffException(); // System.out.println(diffReader.getCurrentLine()); } if (propertyChange && (lineDiff[0] == -1 || lineDiff[1] == -1)) { lineDiff[0] = 0; lineDiff[1] = 0; } // System.out.println(lineDiff[0] + " " + lineDiff[1]); return lineDiff; }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/57653c89911a6f0d5c928d7f3bef883748275bd0/SvnDiffUtils.java/clean/statsvn/src/net/sf/statcvs/util/SvnDiffUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
8526,
1109,
5938,
12,
9794,
11617,
2514,
3122,
2514,
13,
1216,
1860,
16,
7896,
5938,
503,
288,
202,
202,
474,
980,
5938,
8526,
273,
288,
300,
21,
16,
300,
21,
289,
31,
202,
202,
6494,
1272,
3043,
273,
629,
31,
202,
202,
430,
16051,
5413,
2514,
18,
5332,
2134,
1670,
10756,
288,
1082,
202,
759,
3122,
711,
1158,
876,
2724,
732,
4358,
1790,
578,
326,
3478,
1082,
202,
759,
854,
3656,
17,
11168,
9253,
350,
8,
271,
4161,
8,
3846,
434,
7757,
13,
1082,
202,
759,
1062,
2207,
31505,
3618,
18,
1118,
17,
14496,
18,
832,
19,
18840,
715,
19,
275,
19,
31505,
18,
27080,
18,
9693,
18,
2620,
7,
31505,
18,
27080,
18,
9693,
18,
9371,
18,
11771,
1082,
202,
1369,
5938,
63,
20,
65,
273,
374,
31,
1082,
202,
1369,
5938,
63,
21,
65,
273,
374,
31,
202,
202,
97,
202,
202,
17523,
261,
5413,
2514,
18,
5332,
2134,
1670,
10756,
288,
1082,
202,
5413,
2514,
18,
4285,
1670,
5621,
1082,
202,
430,
261,
5413,
2514,
18,
588,
3935,
1670,
7675,
2469,
1435,
422,
374,
13,
9506,
202,
17143,
31,
1082,
202,
759,
8572,
4143,
4886,
1082,
202,
430,
261,
5413,
2514,
18,
588,
3935,
1670,
7675,
3001,
861,
12,
20,
13,
422,
15126,
6134,
9506,
202,
1369,
5938,
63,
20,
3737,
15,
31,
1082,
202,
12107,
309,
261,
5413,
2514,
18,
588,
3935,
1670,
7675,
3001,
861,
12,
20,
13,
422,
4014,
13,
9506,
202,
1369,
5938,
63,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
8526,
1109,
5938,
12,
9794,
11617,
2514,
3122,
2514,
13,
1216,
1860,
16,
7896,
5938,
503,
288,
202,
202,
474,
980,
5938,
8526,
273,
288,
300,
21,
16,
300,
21,
289,
31,
202,
202,
6494,
1272,
3043,
273,
629,
31,
202,
202,
430,
16051,
5413,
2514,
18,
5332,
2134,
1670,
10756,
288,
1082,
202,
759,
3122,
711,
1158,
876,
2724,
732,
4358,
1790,
578,
326,
3478,
1082,
202,
759,
854,
3656,
17,
11168,
9253,
350,
8,
271,
4161,
8,
3846,
434,
7757,
13,
1082,
202,
759,
1062,
2207,
31505,
3618,
18,
1118,
17,
14496,
18,
832,
19,
18840,
715,
19,
275,
19,
31505,
18,
27080,
18,
9693,
18,
2620,
7,
31505,
18,
27080,
18,
2
] |
public boolean isDisposing() {
|
public boolean isDisposing() {
|
public boolean isDisposing() { return disposing.get(); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/7420340201875af86a039b716fb6bdff9281df21/AbstractConnector.java/clean/mule/src/java/org/mule/providers/AbstractConnector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
1669,
24014,
1435,
288,
3639,
327,
1015,
24014,
18,
588,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
353,
1669,
24014,
1435,
288,
3639,
327,
1015,
24014,
18,
588,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
choosePixelFormat(true);
|
try { choosePixelFormat(true); } catch (RuntimeException e) { unlockSurface(); throw e; }
|
public int lockSurface() throws GLException { if (!realized) { return LOCK_SURFACE_NOT_READY; } if (hdc != 0) { throw new GLException("Surface already locked"); } long startTime = 0; if (PROFILING) { startTime = System.currentTimeMillis(); } ds = JAWT.getJAWT().GetDrawingSurface(component); if (ds == null) { // Widget not yet realized return LOCK_SURFACE_NOT_READY; } int res = ds.Lock(); if ((res & JAWTFactory.JAWT_LOCK_ERROR) != 0) { throw new GLException("Unable to lock surface"); } // See whether the surface changed and if so destroy the old // OpenGL context so it will be recreated (NOTE: removeNotify // should handle this case, but it may be possible that race // conditions can cause this code to be triggered -- should test // more) int ret = LOCK_SUCCESS; if ((res & JAWTFactory.JAWT_LOCK_SURFACE_CHANGED) != 0) { ret = LOCK_SURFACE_CHANGED; } dsi = ds.GetDrawingSurfaceInfo(); if (dsi == null) { // Widget not yet realized ds.Unlock(); JAWT.getJAWT().FreeDrawingSurface(ds); ds = null; return LOCK_SURFACE_NOT_READY; } win32dsi = (JAWT_Win32DrawingSurfaceInfo) dsi.platformInfo(); hdc = win32dsi.hdc(); if (hdc == 0) { // Widget not yet realized ds.FreeDrawingSurfaceInfo(dsi); ds.Unlock(); JAWT.getJAWT().FreeDrawingSurface(ds); ds = null; dsi = null; win32dsi = null; return LOCK_SURFACE_NOT_READY; } if (!pixelFormatChosen) { choosePixelFormat(true); } if (PROFILING) { long endTime = System.currentTimeMillis(); profilingLockSurfaceTime += (endTime - startTime); int ticks = PROFILING_TICKS; if (++profilingLockSurfaceTicks == ticks) { System.err.println("LockSurface calls: " + profilingLockSurfaceTime + " ms / " + ticks + " calls (" + ((float) profilingLockSurfaceTime / (float) ticks) + " ms/call)"); profilingLockSurfaceTime = 0; profilingLockSurfaceTicks = 0; } } return ret; }
|
47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/d90cb8e2808e4f1109befaac9512a19629adea53/WindowsOnscreenGLDrawable.java/buggy/src/classes/com/sun/opengl/impl/windows/WindowsOnscreenGLDrawable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2176,
11508,
1435,
1216,
10252,
503,
288,
565,
309,
16051,
7688,
1235,
13,
288,
1377,
327,
14631,
67,
26397,
11300,
67,
4400,
67,
20305,
31,
565,
289,
565,
309,
261,
76,
7201,
480,
374,
13,
288,
1377,
604,
394,
10252,
503,
2932,
11508,
1818,
8586,
8863,
565,
289,
565,
1525,
8657,
273,
374,
31,
565,
309,
261,
3373,
10474,
1360,
13,
288,
1377,
8657,
273,
2332,
18,
2972,
28512,
5621,
565,
289,
565,
3780,
273,
804,
37,
8588,
18,
588,
46,
37,
8588,
7675,
967,
26885,
11508,
12,
4652,
1769,
565,
309,
261,
2377,
422,
446,
13,
288,
1377,
368,
11103,
486,
4671,
2863,
1235,
1377,
327,
14631,
67,
26397,
11300,
67,
4400,
67,
20305,
31,
565,
289,
565,
509,
400,
273,
3780,
18,
2531,
5621,
565,
309,
14015,
455,
473,
804,
37,
8588,
1733,
18,
46,
37,
8588,
67,
6589,
67,
3589,
13,
480,
374,
13,
288,
1377,
604,
394,
10252,
503,
2932,
3370,
358,
2176,
9034,
8863,
565,
289,
565,
368,
2164,
2856,
326,
9034,
3550,
471,
309,
1427,
5546,
326,
1592,
565,
368,
3502,
11261,
819,
1427,
518,
903,
506,
283,
4824,
261,
17857,
30,
1206,
9168,
565,
368,
1410,
1640,
333,
648,
16,
1496,
518,
2026,
506,
3323,
716,
17996,
565,
368,
4636,
848,
4620,
333,
981,
358,
506,
10861,
1493,
1410,
1842,
565,
368,
1898,
13,
565,
509,
325,
273,
14631,
67,
12778,
31,
565,
309,
14015,
455,
473,
804,
37,
8588,
1733,
18,
46,
37,
8588,
67,
6589,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2176,
11508,
1435,
1216,
10252,
503,
288,
565,
309,
16051,
7688,
1235,
13,
288,
1377,
327,
14631,
67,
26397,
11300,
67,
4400,
67,
20305,
31,
565,
289,
565,
309,
261,
76,
7201,
480,
374,
13,
288,
1377,
604,
394,
10252,
503,
2932,
11508,
1818,
8586,
8863,
565,
289,
565,
1525,
8657,
273,
374,
31,
565,
309,
261,
3373,
10474,
1360,
13,
288,
1377,
8657,
273,
2332,
18,
2972,
28512,
5621,
565,
289,
565,
3780,
273,
804,
37,
8588,
18,
588,
46,
37,
8588,
7675,
967,
26885,
11508,
12,
4652,
1769,
565,
309,
261,
2377,
422,
446,
13,
288,
1377,
368,
11103,
486,
4671,
2863,
1235,
1377,
327,
14631,
67,
26397,
11300,
67,
4400,
67,
20305,
31,
2
] |
File pom = new File( project.getFile().getParentFile(), "pom.xml" );
|
public void execute() throws PluginExecutionException { if ( deploymentRepository == null ) { String msg = "Deployment failed: repository element was not specified in the pom inside" + " distributionManagement element"; throw new PluginExecutionException( msg ); } if ( deploymentRepository.getAuthenticationInfo() == null ) { getLog().warn( "Deployment repository {id: \'" + deploymentRepository.getId() + "\'} has no associated authentication info!" ); } // Deploy the POM Artifact artifact = new DefaultArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging() ); if ( !"pom".equals( project.getPackaging() ) ) { File pom = new File( project.getFile().getParentFile(), "pom.xml" ); ArtifactMetadata metadata = new ModelMetadata( artifact, pom ); artifact.addMetadata( metadata ); } try { deployer.deploy( project.getBuild().getDirectory(), artifact, deploymentRepository, localRepository ); } catch ( ArtifactDeploymentException e ) { // TODO: deployment exception that does not give a trace throw new PluginExecutionException( "Error deploying artifact", e ); } }
|
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/b9de1512290d097c31311028a86381c50953a8cd/DeployMojo.java/clean/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
6258,
14576,
565,
288,
3639,
309,
261,
6314,
3305,
422,
446,
262,
3639,
288,
5411,
514,
1234,
273,
315,
6733,
2535,
30,
3352,
930,
1703,
486,
1269,
316,
326,
21400,
4832,
6,
397,
7734,
315,
7006,
10998,
930,
14432,
5411,
604,
394,
6258,
14576,
12,
1234,
11272,
3639,
289,
3639,
309,
261,
6314,
3305,
18,
588,
6492,
966,
1435,
422,
446,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
6733,
3352,
288,
350,
30,
521,
4970,
397,
6314,
3305,
18,
26321,
1435,
397,
21821,
1548,
11,
97,
711,
1158,
3627,
5107,
1123,
4442,
11272,
3639,
289,
3639,
368,
7406,
326,
453,
1872,
3639,
14022,
6462,
273,
394,
2989,
7581,
12,
1984,
18,
588,
8722,
9334,
1984,
18,
588,
7581,
548,
9334,
1984,
18,
588,
1444,
9334,
4766,
1171,
1984,
18,
588,
4420,
5755,
1435,
11272,
3639,
309,
261,
29054,
84,
362,
9654,
14963,
12,
1984,
18,
588,
4420,
5755,
1435,
262,
262,
3639,
288,
15604,
14022,
2277,
1982,
273,
394,
3164,
2277,
12,
6462,
16,
21400,
11272,
5411,
6462,
18,
1289,
2277,
12,
1982,
11272,
3639,
289,
3639,
775,
3639,
288,
5411,
7286,
264,
18,
12411,
12,
1984,
18,
588,
3116,
7675,
588,
2853,
9334,
6462,
16,
6314,
3305,
16,
1191,
3305,
11272,
3639,
289,
3639,
1044,
261,
14022,
6733,
503,
425,
262,
3639,
288,
5411,
368,
2660,
30,
6314,
1520,
716,
1552,
486,
8492,
279,
2606,
5411,
604,
394,
6258,
14576,
12,
315,
668,
7286,
310,
6462,
3113,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
6258,
14576,
565,
288,
3639,
309,
261,
6314,
3305,
422,
446,
262,
3639,
288,
5411,
514,
1234,
273,
315,
6733,
2535,
30,
3352,
930,
1703,
486,
1269,
316,
326,
21400,
4832,
6,
397,
7734,
315,
7006,
10998,
930,
14432,
5411,
604,
394,
6258,
14576,
12,
1234,
11272,
3639,
289,
3639,
309,
261,
6314,
3305,
18,
588,
6492,
966,
1435,
422,
446,
262,
3639,
288,
5411,
9189,
7675,
8935,
12,
315,
6733,
3352,
288,
350,
30,
521,
4970,
397,
6314,
3305,
18,
26321,
1435,
397,
21821,
1548,
11,
97,
711,
1158,
3627,
5107,
1123,
4442,
11272,
3639,
289,
3639,
368,
7406,
326,
453,
1872,
3639,
14022,
6462,
273,
394,
2989,
7581,
12,
1984,
2
] |
|
rules = ruleSetFactory.createRuleSet(ruleSetFiles, new AntClassLoader(project, classpath));
|
rules = ruleSetFactory.createRuleSet(ruleSetFiles, new AntClassLoader(getProject(), classpath));
|
public void execute() throws BuildException { validate(); RuleSet rules; try { RuleSetFactory ruleSetFactory = new RuleSetFactory(); if (classpath == null) { log("Using the normal ClassLoader", Project.MSG_VERBOSE); rules = ruleSetFactory.createRuleSet(ruleSetFiles); } else { log("Using the AntClassLoader", Project.MSG_VERBOSE); rules = ruleSetFactory.createRuleSet(ruleSetFiles, new AntClassLoader(project, classpath)); } } catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage()); } logRulesUsed(rules); PMD pmd; if (targetJDK13) { pmd = new PMD(new TargetJDK1_3()); } else { pmd = new PMD(); } RuleContext ctx = new RuleContext(); ctx.setReport(new Report()); for (Iterator i = filesets.iterator(); i.hasNext();) { FileSet fs = (FileSet) i.next(); DirectoryScanner ds = fs.getDirectoryScanner(project); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { File file = new File(ds.getBasedir() + System.getProperty("file.separator") + srcFiles[j]); log("Processing file " + file.getAbsoluteFile().toString(), Project.MSG_VERBOSE); ctx.setSourceCodeFilename(shortFilenames ? srcFiles[j] : file.getAbsolutePath()); try { pmd.processFile(new FileInputStream(file), encoding, rules, ctx); } catch (FileNotFoundException fnfe) { if (failOnError) { throw new BuildException(fnfe); } } catch (PMDException pmde) { log(pmde.toString(), Project.MSG_VERBOSE); if (pmde.getReason() != null && pmde.getReason().getMessage() != null) { log(pmde.getReason().getMessage(), Project.MSG_VERBOSE); } if (failOnError) { throw new BuildException(pmde); } ctx.getReport().addError(new Report.ProcessingError(pmde.getMessage(), ctx.getSourceCodeFilename())); } } } log(ctx.getReport().size() + " problems found", Project.MSG_VERBOSE); if (!ctx.getReport().isEmpty()) { for (Iterator i = formatters.iterator(); i.hasNext();) { Formatter formatter = (Formatter) i.next(); log("Sending a report to " + formatter, Project.MSG_VERBOSE); String buffer = formatter.getRenderer().render(ctx.getReport()) + EOL; try { Writer writer = formatter.getToFileWriter(project.getBaseDir().toString()); writer.write(buffer, 0, buffer.length()); writer.close(); } catch (IOException ioe) { throw new BuildException(ioe.getMessage()); } } if (failuresPropertyName != null && ctx.getReport().size() > 0) { getProject().setProperty(failuresPropertyName, String.valueOf(ctx.getReport().size())); log("Setting property " + failuresPropertyName + " to " + String.valueOf(ctx.getReport().size()), Project.MSG_VERBOSE); } if (printToConsole) { Renderer r = new TextRenderer(); log(r.render(ctx.getReport()), Project.MSG_INFO); } if (failOnRuleViolation) { throw new BuildException("Stopping build since PMD found " + ctx.getReport().size() + " rule violations in the code"); } } }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a1f6af542b982c799649acdbaf856a7992c439ad/PMDTask.java/clean/pmd/src/net/sourceforge/pmd/ant/PMDTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
1954,
5621,
3639,
6781,
694,
2931,
31,
3639,
775,
288,
5411,
6781,
694,
1733,
31897,
1733,
273,
394,
6781,
694,
1733,
5621,
5411,
309,
261,
26302,
422,
446,
13,
288,
7734,
613,
2932,
7736,
326,
2212,
9403,
3113,
5420,
18,
11210,
67,
21900,
1769,
7734,
2931,
273,
31897,
1733,
18,
2640,
21474,
12,
5345,
694,
2697,
1769,
5411,
289,
469,
288,
7734,
613,
2932,
7736,
326,
18830,
7805,
3113,
5420,
18,
11210,
67,
21900,
1769,
7734,
2931,
273,
31897,
1733,
18,
2640,
21474,
12,
5345,
694,
2697,
16,
394,
18830,
7805,
12,
588,
4109,
9334,
10006,
10019,
5411,
289,
3639,
289,
1044,
261,
21474,
3990,
425,
13,
288,
5411,
604,
394,
18463,
12,
73,
18,
24906,
10663,
3639,
289,
3639,
613,
4478,
6668,
12,
7482,
1769,
3639,
453,
6188,
293,
1264,
31,
3639,
309,
261,
3299,
46,
3398,
3437,
13,
288,
5411,
293,
1264,
273,
394,
453,
6188,
12,
2704,
5916,
46,
3398,
21,
67,
23,
10663,
3639,
289,
469,
288,
5411,
293,
1264,
273,
394,
453,
6188,
5621,
3639,
289,
3639,
6781,
1042,
1103,
273,
394,
6781,
1042,
5621,
3639,
1103,
18,
542,
4820,
12,
2704,
8706,
10663,
3639,
364,
261,
3198,
277,
273,
1390,
2413,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
1387,
694,
2662,
273,
261,
812,
694,
13,
277,
18,
4285,
5621,
5411,
8930,
11338,
3780,
273,
2662,
18,
588,
2853,
11338,
12,
4406,
1769,
5411,
514,
8526,
1705,
2697,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1435,
1216,
18463,
288,
3639,
1954,
5621,
3639,
6781,
694,
2931,
31,
3639,
775,
288,
5411,
6781,
694,
1733,
31897,
1733,
273,
394,
6781,
694,
1733,
5621,
5411,
309,
261,
26302,
422,
446,
13,
288,
7734,
613,
2932,
7736,
326,
2212,
9403,
3113,
5420,
18,
11210,
67,
21900,
1769,
7734,
2931,
273,
31897,
1733,
18,
2640,
21474,
12,
5345,
694,
2697,
1769,
5411,
289,
469,
288,
7734,
613,
2932,
7736,
326,
18830,
7805,
3113,
5420,
18,
11210,
67,
21900,
1769,
7734,
2931,
273,
31897,
1733,
18,
2640,
21474,
12,
5345,
694,
2697,
16,
394,
18830,
7805,
12,
588,
4109,
9334,
10006,
10019,
5411,
289,
3639,
289,
1044,
261,
21474,
3990,
425,
13,
288,
5411,
604,
2
] |
public static String getFormattedFileName( Artifact artifact, boolean removeVersion ) { //TODO: I used to sometimes pull the artifact directly from the artifact but this //causes problems with tests. Need to think about the implications of always //constructing the file name. Could the filename ever not match the constructed one? String destFileName = null; String versionString = null; if ( !removeVersion ) { versionString = "-" + artifact.getVersion(); } else { versionString = ""; } if ( StringUtils.isNotEmpty( artifact.getClassifier() ) ) { destFileName = artifact.getArtifactId() + "-" + artifact.getClassifier() + versionString + "." + artifact.getType(); } else { destFileName = artifact.getArtifactId() + versionString + "." + artifact.getType(); } return destFileName; }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/aa70957a3f9b16ed2c6e183fff194c5beaa57141/DependencyUtil.java/buggy/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/utils/DependencyUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
760,
514,
15562,
4771,
12,
14022,
6462,
16,
1250,
1206,
1444,
262,
288,
225,
368,
6241,
30,
467,
1399,
358,
16594,
6892,
326,
6462,
5122,
628,
326,
6462,
1496,
333,
759,
5353,
6117,
9688,
598,
7434,
18,
12324,
358,
15507,
2973,
326,
709,
1254,
87,
434,
3712,
225,
368,
10062,
310,
326,
585,
508,
18,
14312,
326,
1544,
14103,
486,
845,
326,
15688,
1245,
35,
225,
514,
1570,
4771,
273,
446,
31,
225,
514,
1177,
780,
273,
446,
31,
225,
309,
261,
401,
4479,
1444,
262,
225,
288,
1589,
780,
273,
7514,
397,
6462,
18,
588,
1444,
5621,
225,
289,
225,
469,
225,
288,
1589,
780,
273,
1408,
31,
225,
289,
225,
309,
261,
5778,
18,
291,
18431,
12,
6462,
18,
588,
13860,
1435,
262,
262,
225,
288,
10488,
4771,
273,
6462,
18,
588,
7581,
548,
1435,
397,
7514,
397,
6462,
18,
588,
13860,
1435,
397,
1177,
780,
397,
4585,
397,
6462,
18,
588,
559,
5621,
225,
289,
225,
469,
225,
288,
10488,
4771,
273,
6462,
18,
588,
7581,
548,
1435,
397,
1177,
780,
397,
4585,
397,
6462,
18,
588,
559,
5621,
225,
289,
225,
327,
1570,
4771,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
760,
514,
15562,
4771,
12,
14022,
6462,
16,
1250,
1206,
1444,
262,
288,
225,
368,
6241,
30,
467,
1399,
358,
16594,
6892,
326,
6462,
5122,
628,
326,
6462,
1496,
333,
759,
5353,
6117,
9688,
598,
7434,
18,
12324,
358,
15507,
2973,
326,
709,
1254,
87,
434,
3712,
225,
368,
10062,
310,
326,
585,
508,
18,
14312,
326,
1544,
14103,
486,
845,
326,
15688,
1245,
35,
225,
514,
1570,
4771,
273,
446,
31,
225,
514,
1177,
780,
273,
446,
31,
225,
309,
261,
401,
4479,
1444,
262,
225,
288,
1589,
780,
273,
7514,
397,
6462,
18,
588,
1444,
5621,
225,
289,
225,
469,
225,
288,
1589,
780,
273,
1408,
31,
225,
289,
225,
309,
261,
5778,
18,
291,
2
] |
||
rewrite.markAsReplaced(leftFieldAccess.getExpression(), invocation);
|
rewrite.markAsReplaced(leftFieldAccess.getExpression(), invocation, null);
|
public void testFieldAccess() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" foo().i= goo().i;\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); CompilationUnit astRoot= createAST(cu); NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST()); AST ast= astRoot.getAST(); assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0); TypeDeclaration type= findTypeDeclaration(astRoot, "E"); MethodDeclaration methodDecl= findMethodDeclaration(type, "foo"); Block block= methodDecl.getBody(); List statements= block.statements(); assertTrue("Number of statements not 1", statements.size() == 1); { // replace field expression, replace field name ExpressionStatement stmt= (ExpressionStatement) statements.get(0); Assignment assignment= (Assignment) stmt.getExpression(); FieldAccess leftFieldAccess= (FieldAccess) assignment.getLeftHandSide(); FieldAccess rightFieldAccess= (FieldAccess) assignment.getRightHandSide(); MethodInvocation invocation= ast.newMethodInvocation(); invocation.setName(ast.newSimpleName("xoo")); rewrite.markAsReplaced(leftFieldAccess.getExpression(), invocation); SimpleName newName= ast.newSimpleName("x"); rewrite.markAsReplaced(leftFieldAccess.getName(), newName); SimpleName rightHand= ast.newSimpleName("b"); rewrite.markAsReplaced(rightFieldAccess.getExpression(), rightHand); } String preview= evaluateRewrite(cu, rewrite); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" xoo().x= b.i;\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/57e3aa581b2bf9d9c15ee310aa69c71cec638595/ASTRewritingExpressionsTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingExpressionsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
974,
1862,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
1842,
21,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
512,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
8431,
7675,
77,
33,
1960,
83,
7675,
77,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
289,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
6280,
82,
8863,
1082,
202,
45,
19184,
2802,
15985,
33,
2298,
21,
18,
2640,
19184,
2802,
2932,
41,
18,
6290,
3113,
1681,
18,
10492,
9334,
629,
16,
446,
1769,
9506,
202,
19184,
2802,
3364,
2375,
33,
752,
9053,
12,
6319,
1769,
202,
202,
1908,
37,
3902,
12341,
10738,
33,
394,
1166,
37,
3902,
12341,
12,
689,
2375,
18,
588,
9053,
10663,
9506,
202,
9053,
3364,
33,
3364,
2375,
18,
588,
9053,
5621,
9506,
202,
11231,
5510,
2932,
3201,
1334,
3113,
261,
689,
2375,
18,
588,
5094,
1435,
473,
9183,
907,
18,
49,
1013,
7473,
25773,
13,
422,
374,
1769,
202,
202,
559,
6094,
618,
33,
1104,
559,
6094,
12,
689,
2375,
16,
315,
41,
8863,
202,
202,
1305,
6094,
707,
3456,
33,
1104,
1305,
6094,
12,
723,
16,
315,
11351,
8863,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
974,
1862,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
1842,
21,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
512,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
8431,
7675,
77,
33,
1960,
83,
7675,
77,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
289,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
6280,
82,
8863,
2
] |
callerList.removeFilter(filter[date]); filter[date] = new DateFilter(start, end); callerList.addFilter(filter[date]);
|
((DateFilter)filter[date]).setStartDate(start); ((DateFilter)filter[date]).setEndDate(end);
|
private void setThisMonthFilter() { dateFilterButton.setState(ThreeStateButton3.SELECTED); Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_MONTH, 1); Date start = cal.getTime(); cal.set(Calendar.DAY_OF_MONTH, cal .getActualMaximum(Calendar.DAY_OF_MONTH)); Date end = cal.getTime(); JFritzUtils.setStartOfDay(start); JFritzUtils.setEndOfDay(end); callerList.removeFilter(filter[date]); filter[date] = new DateFilter(start, end); callerList.addFilter(filter[date]); startDateChooser.setDate(start); endDateChooser.setDate(end); startDateChooser.setVisible(true); endDateChooser.setVisible(true); dateSpecialSaveString = THIS_MONTH; }
|
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/882f0a1e8ac98e1f86b073369c8d70360bdf1be4/CallerListPanel.java/clean/jfritz/src/de/moonflower/jfritz/callerlist/CallerListPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
444,
2503,
5445,
1586,
1435,
288,
202,
202,
712,
1586,
3616,
18,
542,
1119,
12,
28019,
1119,
3616,
23,
18,
4803,
2056,
1769,
202,
202,
7335,
1443,
273,
5542,
18,
588,
1442,
5621,
202,
202,
771,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
404,
1769,
202,
202,
1626,
787,
273,
1443,
18,
588,
950,
5621,
202,
202,
771,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
1443,
9506,
202,
18,
588,
11266,
13528,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
10019,
202,
202,
1626,
679,
273,
1443,
18,
588,
950,
5621,
202,
202,
46,
42,
583,
94,
1989,
18,
542,
1685,
17263,
12,
1937,
1769,
202,
202,
46,
42,
583,
94,
1989,
18,
542,
1638,
17263,
12,
409,
1769,
9506,
202,
16140,
682,
18,
4479,
1586,
12,
2188,
63,
712,
19226,
202,
202,
2188,
63,
712,
65,
273,
394,
2167,
1586,
12,
1937,
16,
679,
1769,
202,
202,
16140,
682,
18,
1289,
1586,
12,
2188,
63,
712,
19226,
9506,
202,
1937,
1626,
17324,
18,
542,
1626,
12,
1937,
1769,
202,
202,
409,
1626,
17324,
18,
542,
1626,
12,
409,
1769,
202,
202,
1937,
1626,
17324,
18,
542,
6207,
12,
3767,
1769,
202,
202,
409,
1626,
17324,
18,
542,
6207,
12,
3767,
1769,
202,
202,
712,
12193,
4755,
780,
273,
20676,
67,
13942,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
444,
2503,
5445,
1586,
1435,
288,
202,
202,
712,
1586,
3616,
18,
542,
1119,
12,
28019,
1119,
3616,
23,
18,
4803,
2056,
1769,
202,
202,
7335,
1443,
273,
5542,
18,
588,
1442,
5621,
202,
202,
771,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
404,
1769,
202,
202,
1626,
787,
273,
1443,
18,
588,
950,
5621,
202,
202,
771,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
1443,
9506,
202,
18,
588,
11266,
13528,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
10019,
202,
202,
1626,
679,
273,
1443,
18,
588,
950,
5621,
202,
202,
46,
42,
583,
94,
1989,
18,
542,
1685,
17263,
12,
1937,
1769,
202,
202,
2
] |
private void performUpdateChecks(ArrayList updatechecks) { ArrayList include_patterns = new ArrayList(); ArrayList exclude_patterns = new ArrayList (); RECompiler recompiler = new RECompiler (); this.absolute_installpath = new File (idata.getInstallPath()).getAbsoluteFile(); // at first, collect all patterns for (Iterator iter = updatechecks.iterator(); iter.hasNext();) { UpdateCheck uc = (UpdateCheck)iter.next(); if (uc.includesList != null) include_patterns.addAll(preparePatterns (uc.includesList, recompiler)); if (uc.excludesList != null) exclude_patterns.addAll(preparePatterns (uc.excludesList, recompiler)); } // do nothing if no update checks were specified if (include_patterns.size() == 0) return; // now collect all files in the installation directory and figure // out files to check for deletion // use a treeset for fast access TreeSet installed_files = new TreeSet (); for (Iterator if_it = this.udata.getFilesList().iterator(); if_it.hasNext();) { String fname = (String)if_it.next(); File f = new File (fname); if (! f.isAbsolute()) { f = new File (this.absolute_installpath, fname); } installed_files.add(f.getAbsolutePath()); } // now scan installation directory (breadth first), contains Files of directories to scan // (note: we'll recurse infinitely if there are circular links or similar nasty things) Stack scanstack = new Stack (); // contains File objects determined for deletion ArrayList files_to_delete = new ArrayList (); try { scanstack.add (absolute_installpath); while (! scanstack.empty ()) { File f = (File)scanstack.pop (); File[] files = f.listFiles(); if (files == null) { throw new IOException(f.getPath()+"is not a directory!"); } for (int i = 0; i < files.length; i++) { File newf = files[i]; String newfname = newf.getPath (); // skip files we just installed if (installed_files.contains(newfname)) continue; if (fileMatchesOnePattern(newfname, include_patterns) && (! fileMatchesOnePattern(newfname, exclude_patterns))) { files_to_delete.add (newf); } if (newf.isDirectory()) { scanstack.push (newf); } } } } catch (IOException e) { this.handler.emitError("error while performing update checks", e.toString()); } for (Iterator f_it = files_to_delete.iterator(); f_it.hasNext();) { File f = (File)f_it.next(); if (! f.isDirectory()) // skip directories - they cannot be removed safely yet { this.handler.emitNotification("deleting "+f.getPath()); f.delete(); } } }
|
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3073,
1891,
4081,
12,
19558,
1089,
12366,
13,
225,
288,
565,
2407,
2341,
67,
13317,
273,
394,
2407,
5621,
565,
2407,
4433,
67,
13317,
273,
394,
2407,
261,
1769,
565,
2438,
9213,
283,
9576,
273,
394,
2438,
9213,
261,
1769,
3639,
333,
18,
12547,
67,
5425,
803,
273,
394,
1387,
261,
350,
396,
18,
588,
6410,
743,
1435,
2934,
588,
10368,
812,
5621,
3639,
368,
622,
1122,
16,
3274,
777,
6884,
565,
364,
261,
3198,
1400,
273,
1089,
12366,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
565,
288,
1377,
2315,
1564,
6232,
273,
261,
1891,
1564,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
5286,
18,
18499,
682,
480,
446,
13,
3639,
2341,
67,
13317,
18,
1289,
1595,
12,
9366,
11268,
261,
5286,
18,
18499,
682,
16,
283,
9576,
10019,
5411,
309,
261,
5286,
18,
338,
8993,
682,
480,
446,
13,
3639,
4433,
67,
13317,
18,
1289,
1595,
12,
9366,
11268,
261,
5286,
18,
338,
8993,
682,
16,
283,
9576,
10019,
1850,
289,
3639,
368,
741,
5083,
309,
1158,
1089,
4271,
4591,
1269,
565,
309,
261,
6702,
67,
13317,
18,
1467,
1435,
422,
374,
13,
1377,
327,
31,
3639,
368,
2037,
3274,
777,
1390,
316,
326,
13193,
1867,
471,
7837,
565,
368,
596,
1390,
358,
866,
364,
10899,
3639,
368,
999,
279,
11491,
278,
364,
4797,
2006,
565,
19461,
5876,
67,
2354,
273,
394,
19461,
261,
1769,
3639,
364,
261,
3198,
309,
67,
305,
273,
333,
18,
89,
892,
18,
588,
2697,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3073,
1891,
4081,
12,
19558,
1089,
12366,
13,
225,
288,
565,
2407,
2341,
67,
13317,
273,
394,
2407,
5621,
565,
2407,
4433,
67,
13317,
273,
394,
2407,
261,
1769,
565,
2438,
9213,
283,
9576,
273,
394,
2438,
9213,
261,
1769,
3639,
333,
18,
12547,
67,
5425,
803,
273,
394,
1387,
261,
350,
396,
18,
588,
6410,
743,
1435,
2934,
588,
10368,
812,
5621,
3639,
368,
622,
1122,
16,
3274,
777,
6884,
565,
364,
261,
3198,
1400,
273,
1089,
12366,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
565,
288,
1377,
2315,
1564,
6232,
273,
261,
1891,
1564,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
5286,
18,
18499,
682,
480,
446,
13,
3639,
2341,
67,
2
] |
||
LOG.info("Got fatal exception while reinitializing TaskTracker: " + iex.toString());
|
LOG.error("Got fatal exception while reinitializing TaskTracker: " + StringUtils.stringifyException(iex));
|
public void run() { try { while (running && !shuttingDown) { boolean staleState = false; try { // This while-loop attempts reconnects if we get network errors while (running && ! staleState && !shuttingDown ) { try { if (offerService() == STALE_STATE) { staleState = true; } } catch (Exception ex) { if (!shuttingDown) { LOG.info("Lost connection to JobTracker [" + jobTrackAddr + "]. Retrying...", ex); try { Thread.sleep(5000); } catch (InterruptedException ie) { } } } } } finally { close(); } if (shuttingDown) { return; } LOG.info("Reinitializing local state"); initialize(); } } catch (IOException iex) { LOG.info("Got fatal exception while reinitializing TaskTracker: " + iex.toString()); return; } }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/1e24384b1f84e52afdfd79649a51a55574be4905/TaskTracker.java/clean/src/java/org/apache/hadoop/mapred/TaskTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
5411,
1323,
261,
8704,
597,
401,
674,
25387,
4164,
13,
288,
7734,
1250,
14067,
1119,
273,
629,
31,
7734,
775,
288,
10792,
368,
1220,
1323,
17,
6498,
7531,
11812,
87,
309,
732,
336,
2483,
1334,
10792,
1323,
261,
8704,
597,
401,
14067,
1119,
597,
401,
674,
25387,
4164,
262,
288,
13491,
775,
288,
18701,
309,
261,
23322,
1179,
1435,
422,
2347,
37,
900,
67,
7998,
13,
288,
27573,
14067,
1119,
273,
638,
31,
18701,
289,
13491,
289,
1044,
261,
503,
431,
13,
288,
18701,
309,
16051,
674,
25387,
4164,
13,
288,
27573,
2018,
18,
1376,
2932,
19024,
1459,
358,
3956,
8135,
8247,
397,
4766,
3639,
1719,
4402,
3178,
397,
315,
8009,
225,
9954,
310,
7070,
16,
431,
1769,
27573,
775,
288,
4766,
565,
4884,
18,
19607,
12,
25,
3784,
1769,
27573,
289,
1044,
261,
24485,
503,
9228,
13,
288,
27573,
289,
18701,
289,
13491,
289,
10792,
289,
7734,
289,
3095,
288,
10792,
1746,
5621,
7734,
289,
7734,
309,
261,
674,
25387,
4164,
13,
288,
327,
31,
289,
7734,
2018,
18,
1376,
2932,
426,
6769,
6894,
1191,
919,
8863,
7734,
4046,
5621,
5411,
289,
3639,
289,
1044,
261,
14106,
277,
338,
13,
288,
5411,
2018,
18,
1636,
2932,
15617,
10081,
1520,
1323,
283,
6769,
6894,
3837,
8135,
30,
315,
397,
5778,
18,
25650,
503,
12,
77,
338,
10019,
5411,
327,
31,
3639,
289,
565,
289,
2,
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,
1,
1,
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,
1086,
1435,
288,
3639,
775,
288,
5411,
1323,
261,
8704,
597,
401,
674,
25387,
4164,
13,
288,
7734,
1250,
14067,
1119,
273,
629,
31,
7734,
775,
288,
10792,
368,
1220,
1323,
17,
6498,
7531,
11812,
87,
309,
732,
336,
2483,
1334,
10792,
1323,
261,
8704,
597,
401,
14067,
1119,
597,
401,
674,
25387,
4164,
262,
288,
13491,
775,
288,
18701,
309,
261,
23322,
1179,
1435,
422,
2347,
37,
900,
67,
7998,
13,
288,
27573,
14067,
1119,
273,
638,
31,
18701,
289,
13491,
289,
1044,
261,
503,
431,
13,
288,
18701,
309,
16051,
674,
25387,
4164,
13,
288,
27573,
2018,
18,
1376,
2932,
19024,
1459,
358,
3956,
8135,
8247,
397,
4766,
3639,
1719,
4402,
3178,
397,
315,
2
] |
public void testCycloOcten() { try{ SmilesGenerator sg = new SmilesGenerator(); String filename = "data/mdl/cycloocten.mol"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); MDLReader reader = new MDLReader(new InputStreamReader(ins)); Molecule mol1 = (Molecule) reader.read(new Molecule()); String moleculeSmile = sg.createSMILES(mol1); assertEquals(moleculeSmile,"C1C=CCCCCC1"); } catch (Exception exc) { exc.printStackTrace(); System.out.println(exc); fail(exc.getMessage()); } }
|
public void testCycloOcten() { try { SmilesGenerator sg = new SmilesGenerator(); String filename = "data/mdl/cycloocten.mol"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); MDLReader reader = new MDLReader(new InputStreamReader(ins)); Molecule mol1 = (Molecule) reader.read(new Molecule()); String moleculeSmile = sg.createSMILES(mol1); assertEquals(moleculeSmile, "C1C=CCCCCC1"); } catch (Exception exc) { exc.printStackTrace(); System.out.println(exc); fail(exc.getMessage()); } }
|
public void testCycloOcten() { try{ SmilesGenerator sg = new SmilesGenerator(); String filename = "data/mdl/cycloocten.mol"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); MDLReader reader = new MDLReader(new InputStreamReader(ins)); Molecule mol1 = (Molecule) reader.read(new Molecule()); String moleculeSmile = sg.createSMILES(mol1); assertEquals(moleculeSmile,"C1C=CCCCCC1"); } catch (Exception exc) { exc.printStackTrace(); System.out.println(exc); fail(exc.getMessage()); } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/59606b04fc4a28c30470c452644c11af7cf211fa/SmilesGeneratorTest.java/clean/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
17992,
7550,
19320,
275,
1435,
288,
1377,
775,
95,
3639,
9425,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
3639,
514,
1544,
273,
315,
892,
19,
1264,
80,
19,
2431,
7550,
13410,
275,
18,
21260,
14432,
3639,
5037,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
3639,
490,
8914,
2514,
2949,
273,
394,
490,
8914,
2514,
12,
2704,
15322,
12,
2679,
10019,
3639,
490,
10545,
12629,
21,
273,
261,
29669,
13,
2949,
18,
896,
12,
2704,
490,
10545,
10663,
3639,
514,
13661,
9552,
398,
273,
11150,
18,
2640,
7303,
45,
11386,
12,
21260,
21,
1769,
3639,
1815,
8867,
12,
81,
10545,
9552,
398,
10837,
39,
21,
39,
33,
6743,
6743,
6743,
21,
8863,
1377,
289,
1044,
261,
503,
3533,
13,
288,
3639,
3533,
18,
1188,
6332,
5621,
3639,
2332,
18,
659,
18,
8222,
12,
10075,
1769,
3639,
2321,
12,
10075,
18,
24906,
10663,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
17992,
7550,
19320,
275,
1435,
288,
1377,
775,
95,
3639,
9425,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
3639,
514,
1544,
273,
315,
892,
19,
1264,
80,
19,
2431,
7550,
13410,
275,
18,
21260,
14432,
3639,
5037,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
3639,
490,
8914,
2514,
2949,
273,
394,
490,
8914,
2514,
12,
2704,
15322,
12,
2679,
10019,
3639,
490,
10545,
12629,
21,
273,
261,
29669,
13,
2949,
18,
896,
12,
2704,
490,
10545,
10663,
3639,
514,
13661,
9552,
398,
273,
11150,
18,
2640,
7303,
45,
11386,
12,
21260,
21,
1769,
3639,
1815,
8867,
12,
81,
10545,
9552,
398,
10837,
39,
21,
2
] |
Log.log(Log.TRACE, MODULE, "Server has protocol 1");
|
Log.log(Log.LEVEL_TRACE, MODULE, "Server has protocol 1");
|
public static GalleryComm getCommInstance(StatusUpdate su, URL url, Gallery g) { try { GalleryProperties p = GalleryRemote.getInstance().properties; // set proxy info if (p.getBooleanProperty(USE_PROXY)) { String hostname = p.getProperty(PROXY_HOST); int port = 80; try { port = p.getIntProperty(PROXY_PORT); } catch (NumberFormatException e) {} String username = p.getProperty(PROXY_USERNAME); Log.log(Log.TRACE, MODULE, "Setting proxy to " + hostname + ":" + port); HTTPConnection.setProxyServer(hostname, port); if (username != null && username.length() > 0) { AuthorizationInfo.addBasicAuthorization(hostname, port, "", username, p.getBase64Property(PROXY_PASSWORD)); } } else { HTTPConnection.setProxyServer(null, 0); } // create a connection HTTPConnection mConnection = new HTTPConnection( url ); if (g.getType() == Gallery.TYPE_STANDALONE) { // assemble the URL String urlPath = url.getFile(); Log.log(Log.TRACE, MODULE, "Trying protocol 2 for " + url); // Test GalleryComm2 String urlPath2 = urlPath + ( (urlPath.endsWith( "/" )) ? GalleryComm2.SCRIPT_NAME : "/" + GalleryComm2.SCRIPT_NAME ); if (tryComm(su, mConnection, urlPath2)) { Log.log(Log.TRACE, MODULE, "Server has protocol 2"); return new GalleryComm2(g); } Log.log(Log.TRACE, MODULE, "Trying protocol 1 for " + url); // Test GalleryComm1 // BUT: only if first try was not status code 401 = authorization failure String urlPath1 = urlPath + ( (urlPath.endsWith( "/" )) ? GalleryComm1.SCRIPT_NAME : "/" + GalleryComm1.SCRIPT_NAME ); if (lastRespCode != 401 && tryComm(su, mConnection, urlPath1)) { Log.log(Log.TRACE, MODULE, "Server has protocol 1"); return new GalleryComm1(g); } } else { // if Gallery is embedded, only support protocol 2 return new GalleryComm2(g); } } catch (HTTPClient.ProtocolNotSuppException e) { Log.logException(Log.ERROR, MODULE, e); } return null; }
|
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d180d723a9e594086228e902568d740d7e8649d8/GalleryComm.java/buggy/com/gallery/GalleryRemote/GalleryComm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
31398,
12136,
336,
12136,
1442,
12,
1482,
1891,
1597,
16,
1976,
880,
16,
31398,
314,
13,
288,
202,
202,
698,
288,
1082,
202,
18511,
2297,
293,
273,
31398,
5169,
18,
588,
1442,
7675,
4738,
31,
1082,
202,
759,
444,
2889,
1123,
1082,
202,
430,
261,
84,
18,
588,
5507,
1396,
12,
8001,
67,
16085,
3719,
288,
9506,
202,
780,
5199,
273,
293,
18,
588,
1396,
12,
16085,
67,
8908,
1769,
9506,
202,
474,
1756,
273,
8958,
31,
9506,
202,
698,
288,
1756,
273,
293,
18,
588,
1702,
1396,
12,
16085,
67,
6354,
1769,
289,
1044,
261,
1854,
9291,
425,
13,
2618,
9506,
202,
780,
2718,
273,
293,
18,
588,
1396,
12,
16085,
67,
21292,
1769,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
23827,
16,
14057,
16,
315,
5568,
2889,
358,
315,
397,
5199,
397,
6153,
397,
1756,
1769,
9506,
202,
3693,
1952,
18,
542,
3886,
2081,
12,
10358,
16,
1756,
1769,
6862,
9506,
202,
430,
261,
5053,
480,
446,
597,
2718,
18,
2469,
1435,
405,
374,
13,
288,
6862,
202,
6063,
966,
18,
1289,
8252,
6063,
12,
10358,
16,
1756,
16,
23453,
6862,
1082,
202,
5053,
16,
293,
18,
588,
2171,
1105,
1396,
12,
16085,
67,
13784,
10019,
9506,
202,
97,
1082,
202,
97,
469,
288,
9506,
202,
3693,
1952,
18,
542,
3886,
2081,
12,
2011,
16,
374,
1769,
1082,
202,
97,
1082,
202,
759,
752,
279,
1459,
1082,
202,
3693,
1952,
312,
1952,
273,
394,
2239,
1952,
12,
880,
11272,
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,
760,
31398,
12136,
336,
12136,
1442,
12,
1482,
1891,
1597,
16,
1976,
880,
16,
31398,
314,
13,
288,
202,
202,
698,
288,
1082,
202,
18511,
2297,
293,
273,
31398,
5169,
18,
588,
1442,
7675,
4738,
31,
1082,
202,
759,
444,
2889,
1123,
1082,
202,
430,
261,
84,
18,
588,
5507,
1396,
12,
8001,
67,
16085,
3719,
288,
9506,
202,
780,
5199,
273,
293,
18,
588,
1396,
12,
16085,
67,
8908,
1769,
9506,
202,
474,
1756,
273,
8958,
31,
9506,
202,
698,
288,
1756,
273,
293,
18,
588,
1702,
1396,
12,
16085,
67,
6354,
1769,
289,
1044,
261,
1854,
9291,
425,
13,
2618,
9506,
202,
780,
2718,
273,
293,
18,
588,
1396,
12,
16085,
67,
21292,
1769,
2
] |
repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer );
|
repoSearchLayer = factory.createRepositoryIndexSearchLayer( indexer );
|
public void testSearchExceptions() throws Exception { createTestIndex(); RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); ArtifactRepositoryIndex indexer = factory.createArtifactRepositoryIndex( indexPath, repository ); RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); try { Query qry = new SinglePhraseQuery( RepositoryIndex.FLD_VERSION, "~~~~~" ); List artifacts = repoSearcher.search( qry ); fail( "Must throw an exception on unparseable query." ); } catch ( RepositoryIndexSearchException re ) { assertTrue( true ); } indexer = factory.createArtifactRepositoryIndex( "target/index/sample", repository ); repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); try { Query qry = new SinglePhraseQuery( RepositoryIndex.FLD_VERSION, "1.0" ); List artifacts = repoSearcher.search( qry ); fail( "Must throw an exception on invalid index location." ); } catch ( RepositoryIndexSearchException re ) { assertTrue( true ); } }
|
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/b7fb3a7476ad4d7d36eae11d93f3d69c147a1205/ArtifactRepositoryIndexingTest.java/buggy/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndexingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2979,
11416,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
14022,
3305,
1016,
12635,
273,
3272,
18,
2640,
7581,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
6281,
1016,
2979,
264,
3538,
2979,
4576,
273,
3272,
18,
2640,
3305,
1016,
2979,
4576,
12,
12635,
11272,
3639,
775,
3639,
288,
5411,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
5757,
16,
315,
12485,
98,
6,
11272,
5411,
987,
16259,
273,
3538,
2979,
264,
18,
3072,
12,
16788,
11272,
5411,
2321,
12,
315,
10136,
604,
392,
1520,
603,
640,
2670,
429,
843,
1199,
11272,
3639,
289,
3639,
1044,
261,
6281,
1016,
2979,
503,
283,
262,
3639,
288,
5411,
1815,
5510,
12,
638,
11272,
3639,
289,
3639,
12635,
273,
3272,
18,
2640,
7581,
3305,
1016,
12,
315,
3299,
19,
1615,
19,
6358,
3113,
3352,
11272,
3639,
3538,
2979,
4576,
273,
3272,
18,
2640,
3305,
1016,
2979,
4576,
12,
12635,
11272,
3639,
775,
3639,
288,
5411,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
5757,
16,
315,
21,
18,
20,
6,
11272,
5411,
987,
16259,
273,
3538,
2979,
264,
18,
3072,
12,
16788,
11272,
5411,
2321,
12,
315,
10136,
604,
392,
1520,
603,
2057,
770,
2117,
1199,
11272,
3639,
289,
3639,
1044,
261,
6281,
1016,
2979,
503,
283,
262,
3639,
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,
1842,
2979,
11416,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
14022,
3305,
1016,
12635,
273,
3272,
18,
2640,
7581,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
6281,
1016,
2979,
264,
3538,
2979,
4576,
273,
3272,
18,
2640,
3305,
1016,
2979,
4576,
12,
12635,
11272,
3639,
775,
3639,
288,
5411,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
6281,
1016,
18,
42,
12069,
67,
5757,
16,
315,
12485,
98,
6,
11272,
5411,
987,
16259,
273,
3538,
2979,
264,
18,
3072,
12,
16788,
11272,
5411,
2321,
12,
315,
10136,
604,
392,
1520,
2
] |
if(this.manager!=null) this.manager.repaint();
|
Display.getDefault().asyncExec(this);
|
public void setState(State state){ switch (state) { // busy case SERVING_REQUEST: this.backgroundColor = AOFigure.COLOR_WHEN_SERVING_REQUEST; break; // waiting by necessity case WAITING_BY_NECESSITY_WHILE_ACTIVE: case WAITING_BY_NECESSITY_WHILE_SERVING: this.backgroundColor = AOFigure.COLOR_WHEN_WAITING_BY_NECESSITY; break; // waiting for request case WAITING_FOR_REQUEST: this.backgroundColor = AOFigure.COLOR_WHEN_WAITING_FOR_REQUEST; break; // active case ACTIVE: this.backgroundColor = AOFigure.COLOR_WHEN_ACTIVE; break; // not responding case NOT_RESPONDING: this.backgroundColor = AOFigure.COLOR_WHEN_NOT_RESPONDING; break; // migrate case MIGRATING: this.backgroundColor = AOFigure.COLOR_WHEN_MIGRATING; removeMouseListener(mouseListener); break; default: break; } //this.repaint(); if(this.manager!=null) this.manager.repaint(); }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/64a00b6d313fc2b3680346148d1257ba4095e408/AOFigure.java/clean/ic2d-plugins/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/figures/AOFigure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12947,
12,
1119,
919,
15329,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
759,
21697,
202,
202,
3593,
7758,
58,
1360,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
31066,
1360,
67,
5519,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
635,
290,
3957,
560,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
13301,
30,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
31066,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
6486,
67,
5407,
5119,
4107,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
364,
590,
202,
202,
3593,
26859,
1360,
67,
7473,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
7473,
67,
5519,
31,
1082,
202,
8820,
31,
9506,
202,
759,
2695,
202,
202,
3593,
21135,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
13301,
31,
1082,
202,
8820,
31,
1082,
202,
759,
486,
6846,
310,
202,
202,
3593,
4269,
67,
862,
10789,
40,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
4400,
67,
862,
10789,
40,
1360,
31,
1082,
202,
8820,
31,
1082,
202,
759,
13187,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12947,
12,
1119,
919,
15329,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
759,
21697,
202,
202,
3593,
7758,
58,
1360,
67,
5519,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
31066,
1360,
67,
5519,
31,
1082,
202,
8820,
31,
1082,
202,
759,
7336,
635,
290,
3957,
560,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
13301,
30,
202,
202,
3593,
26859,
1360,
67,
6486,
67,
5407,
5119,
4107,
67,
12557,
13578,
67,
31066,
1360,
30,
1082,
202,
2211,
18,
9342,
2957,
273,
432,
3932,
15906,
18,
10989,
67,
12557,
1157,
67,
19046,
1360,
67,
6486,
67,
5407,
2
] |
public void addInvitationListener(InvitationListener listener) { synchronized (invitationsListeners) { // If this is the first monitor's listener then initialize the listeners // on the connection to detect room invitations if (invitationsListeners.size() == 0) { init(); } if (!invitationsListeners.contains(listener)) { invitationsListeners.add(listener); } } }
|
47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/dd754e5a7f5cf0b0701477a405d7afae1c12feae/MultiUserChat.java/buggy/source/org/jivesoftware/smackx/muc/MultiUserChat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
527,
19896,
2223,
12,
19896,
2223,
2991,
13,
288,
5411,
3852,
261,
5768,
18282,
5583,
13,
288,
7734,
368,
971,
333,
353,
326,
1122,
6438,
1807,
2991,
1508,
4046,
326,
4679,
1171,
368,
603,
326,
1459,
358,
5966,
7725,
2198,
18282,
7734,
309,
261,
5768,
18282,
5583,
18,
1467,
1435,
422,
374,
13,
288,
10792,
1208,
5621,
7734,
289,
7734,
309,
16051,
5768,
18282,
5583,
18,
12298,
12,
12757,
3719,
288,
10792,
2198,
18282,
5583,
18,
1289,
12,
12757,
1769,
7734,
289,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
527,
19896,
2223,
12,
19896,
2223,
2991,
13,
288,
5411,
3852,
261,
5768,
18282,
5583,
13,
288,
7734,
368,
971,
333,
353,
326,
1122,
6438,
1807,
2991,
1508,
4046,
326,
4679,
1171,
368,
603,
326,
1459,
358,
5966,
7725,
2198,
18282,
7734,
309,
261,
5768,
18282,
5583,
18,
1467,
1435,
422,
374,
13,
288,
10792,
1208,
5621,
7734,
289,
7734,
309,
16051,
5768,
18282,
5583,
18,
12298,
12,
12757,
3719,
288,
10792,
2198,
18282,
5583,
18,
1289,
12,
12757,
1769,
7734,
289,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"change_img.html", lang_prefix) ;
|
String lang_prefix = user.getLangPrefix() ; htmlStr = imcref.parseDoc(vec,"change_img.html", lang_prefix) ;
|
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String image_url = Utility.getDomainPref( "image_url",host ) ; File image_path = Utility.getDomainPrefPath( "image_path",host ) ; imcode.server.User user ; String htmlStr = "" ; int meta_id ; int img_no ; res.setContentType("text/html"); PrintWriter out = res.getWriter(); String tmp = (req.getParameter("img_no") != null)?req.getParameter("img_no"):req.getParameter("img") ; img_no = Integer.parseInt(tmp) ; tmp = req.getParameter("meta_id") ; meta_id = Integer.parseInt(tmp) ; String label = req.getParameter("label") ; if (label == null) { label = "" ; } // Check if ChangeImage is invoked by ImageBrowse, hence containing // an image filename as option value (M. Wallin) String img_preset = (req.getParameter("imglist") == null)?"":java.net.URLDecoder.decode(req.getParameter("imglist")); // Get the session HttpSession session = req.getSession(true); // Does the session indicate this user already logged in? Object done = session.getAttribute("logon.isDone"); // marker object user = (imcode.server.User)done ; if (done == null) { // No logon.isDone means he hasn't logged in. // Save the request URL as the true target and redirect to the login page. String scheme = req.getScheme(); String serverName = req.getServerName(); int p = req.getServerPort(); String port = (p == 80) ? "" : ":" + p; res.sendRedirect(scheme + "://" + serverName + port + start_url) ; return ; } // Check if user has write rights if ( !IMCServiceRMI.checkDocAdminRights(imcserver, meta_id, user) ) { log("User "+user.getInt("user_id")+" was denied access to meta_id "+meta_id+" and was sent to "+start_url) ; String scheme = req.getScheme() ; String serverName = req.getServerName() ; int p = req.getServerPort() ; String port = ( p == 80 ) ? "" : ":" + p ; res.sendRedirect( scheme + "://" + serverName + port + start_url ) ; return ; } //*lets get the root_dir_name that we need later on String root_dir_name = image_path.getName(); //*lets get the dirlist, and add the rootdir to it List imageFolders = GetImages.getImageFolders(image_path, true) ; imageFolders.add(0,image_path); //ok we have the list, now lets setup the option list to send to browser StringBuffer folderOptions = new StringBuffer(); Iterator iter = imageFolders.iterator(); while (iter.hasNext()){ File fileObj = (File) iter.next(); String optionValue, optionName; //OBS! we only allowe on directory down from imageRoot, //so the current "directory" or the "parent" must be equal to root_dir_name //lets start and see if the parent is root_dir if ( root_dir_name.equals(fileObj.getParentFile().getName()) ){ optionValue = HTMLConv.toHTML("\\"+fileObj.getName()); optionName = HTMLConv.toHTML(" \\"+fileObj.getName()); }else if( root_dir_name.equals(fileObj.getName()) ){ optionValue = ""; optionName = HTMLConv.toHTML(fileObj.getName()); }else{ continue; } folderOptions.append("<option value=\"" + optionValue + "\">" + optionName + "</option>\r\n"); }//end while loop session.setAttribute("imageFolderOptionList",folderOptions.toString()); String sqlStr = "select image_name,imgurl,width,height,border,v_space,h_space,target,target_name,align,alt_text,low_scr,linkurl from images where meta_id = "+meta_id+" and name = "+img_no ; String[] sql = IMCServiceRMI.sqlQuery(imcserver,sqlStr) ; Vector vec = new Vector () ; String imageName = ("".equals(img_preset)&&sql.length>0?sql[1]:img_preset); // selected OPTION or "" //**************************************************************** ImageFileMetaData image = new ImageFileMetaData(new File(image_path,imageName)) ; int width = image.getWidth() ; int height = image.getHeight() ; //**************************************************************** imageName = imageName ; if ( sql.length > 0 ) { int current_width = 0 ; try { current_width = Integer.parseInt(img_preset.equals("")?sql[2]:"" + width) ; } catch ( NumberFormatException ex ) { } int current_height = 0 ; try { current_height = Integer.parseInt(img_preset.equals("")?sql[3]:"" + height) ; } catch ( NumberFormatException ex ) { } int aspect = 0 ; if (current_width * current_height != 0) { aspect = 100 * current_width / current_height ; } String keepAspect = "checked" ; if (width * height != 0 && aspect != (100 * width / height)) { keepAspect = "" ; } vec.add("#imgName#") ; vec.add(sql[0]) ; vec.add("#imgRef#") ; vec.add(imageName); vec.add("#imgWidth#") ; vec.add(current_width!=0?""+current_width:""+width); vec.add("#origW#"); // original imageWidth vec.add("" + width); vec.add("#imgHeight#") ; vec.add(current_height!=0?""+current_height:""+height); vec.add("#origH#"); vec.add("" + height); // original imageHeight vec.add("#keep_aspect#") ; vec.add(keepAspect) ; vec.add("#imgBorder#") ; vec.add(sql[4]) ; vec.add("#imgVerticalSpace#") ; vec.add(sql[5]) ; vec.add("#imgHorizontalSpace#") ; vec.add(sql[6]) ; if ( "_top".equals(sql[7]) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#top_checked#") ; } else if ( "_self".equals(sql[7]) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#self_checked#") ; } else if ( "_blank".equals(sql[7]) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#blank_checked#") ; } else if ( "_parent".equals(sql[7]) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#blank_checked#") ; } else { vec.add("#target_name#") ; vec.add(sql[8]) ; vec.add("#other_checked#") ; } vec.add("selected") ; if ( "baseline".equals(sql[9]) ) { vec.add("#baseline_selected#") ; } else if ( "top".equals(sql[9]) ) { vec.add("#top_selected#") ; } else if ( "middle".equals(sql[9]) ) { vec.add("#middle_selected#") ; } else if ( "bottom".equals(sql[9]) ) { vec.add("#bottom_selected#") ; } else if ( "texttop".equals(sql[9]) ) { vec.add("#texttop_selected#") ; } else if ( "absmiddle".equals(sql[9]) ) { vec.add("#absmiddle_selected#") ; } else if ( "absbottom".equals(sql[9]) ) { vec.add("#absbottom_selected#") ; } else if ( "left".equals(sql[9]) ) { vec.add("#left_selected#") ; } else if ( "right".equals(sql[9]) ) { vec.add("#right_selected#") ; } else { vec.add("#none_selected#") ; } vec.add("selected") ; vec.add("#imgAltText#") ; vec.add(sql[10]) ; vec.add("#imgLowScr#") ; vec.add(sql[11]) ; vec.add("#imgRefLink#") ; vec.add(sql[12]) ; } else { vec.add("#imgName#") ; vec.add("") ; vec.add("#imgRef#") ; vec.add(imageName); vec.add("#imgWidth#") ; vec.add("" + width) ; vec.add("#imgHeight#") ; vec.add("" + height) ; vec.add("#origW#"); vec.add("" + width); vec.add("#origH#"); vec.add("" + height); vec.add("#imgBorder#") ; vec.add("0") ; vec.add("#imgVerticalSpace#") ; vec.add("0") ; vec.add("#imgHorizontalSpace#") ; vec.add("0") ; vec.add("#target_name#") ; vec.add("") ; vec.add("#self_checked#") ; vec.add("selected") ; vec.add("#top_selected#") ; vec.add("selected") ; vec.add("#imgAltText#") ; vec.add("") ; vec.add("#imgLowScr#") ; vec.add("") ; vec.add("#imgRefLink#") ; vec.add("") ; } vec.add("#imgUrl#") ; vec.add(image_url) ; vec.add("#getMetaId#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#img_no#") ; vec.add(String.valueOf(img_no)) ; vec.add("#folders#"); vec.add(folderOptions.toString()); vec.add("#label#") ; vec.add(label) ; String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"change_img.html", lang_prefix) ; out.print(htmlStr) ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChangeImage.java/clean/servlets/ChangeImage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
1082,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
202,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
780,
1316,
67,
718,
7734,
273,
13134,
18,
588,
3748,
23218,
12,
315,
2730,
67,
718,
3113,
2564,
262,
274,
202,
812,
1316,
67,
803,
9079,
273,
13134,
18,
588,
3748,
23218,
743,
12,
315,
2730,
67,
803,
3113,
2564,
262,
274,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
780,
1729,
1585,
273,
1408,
274,
202,
474,
2191,
67,
350,
274,
202,
474,
3774,
67,
2135,
274,
202,
455,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
202,
5108,
2289,
596,
273,
400,
18,
588,
2289,
5621,
202,
780,
1853,
273,
261,
3658,
18,
588,
1662,
2932,
6081,
67,
2135,
7923,
480,
446,
9945,
3658,
18,
588,
1662,
2932,
6081,
67,
2135,
6,
4672,
3658,
18,
588,
1662,
2932,
6081,
7923,
274,
202,
6081,
67,
2135,
273,
2144,
18,
2670,
1702,
12,
5645,
13,
274,
202,
5645,
273,
1111,
18,
588,
1662,
2932,
3901,
67,
350,
7923,
274,
202,
3901,
67,
350,
273,
2144,
18,
2670,
1702,
12,
5645,
13,
274,
202,
780,
1433,
273,
1111,
18,
588,
1662,
2932,
1925,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
1082,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
780,
709,
71,
3567,
202,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
780,
1316,
67,
718,
7734,
273,
13134,
18,
588,
3748,
23218,
12,
315,
2730,
67,
718,
3113,
2564,
262,
274,
202,
812,
1316,
67,
803,
9079,
273,
13134,
18,
588,
3748,
23218,
743,
12,
315,
2730,
67,
803,
3113,
2564,
262,
274,
202,
381,
710,
18,
2
] |
retval.append(" " + XMLHandler.addTagValue("using_thread_priorities", usingThreadPriorityManagment));
|
public String getXML() { Props props = null; if (Props.isInitialized()) props=Props.getInstance(); StringBuffer retval = new StringBuffer(); retval.append("<transformation>" + Const.CR); //$NON-NLS-1$ retval.append(" <info>" + Const.CR); //$NON-NLS-1$ retval.append(" " + XMLHandler.addTagValue("name", name)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("directory", directory != null ? directory.getPath() : RepositoryDirectory.DIRECTORY_SEPARATOR)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" <log>" + Const.CR); //$NON-NLS-1$ retval.append(" " + XMLHandler.addTagValue("read", readStep == null ? "" : readStep.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("write", writeStep == null ? "" : writeStep.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("input", inputStep == null ? "" : inputStep.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("output", outputStep == null ? "" : outputStep.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("update", updateStep == null ? "" : updateStep.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("connection", logConnection == null ? "" : logConnection.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("table", logTable)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("use_batchid", useBatchId)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("use_logfield", logfieldUsed)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" </log>" + Const.CR); //$NON-NLS-1$ retval.append(" <maxdate>" + Const.CR); //$NON-NLS-1$ retval.append(" " + XMLHandler.addTagValue("connection", maxDateConnection == null ? "" : maxDateConnection.getName())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ retval.append(" " + XMLHandler.addTagValue("table", maxDateTable)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("field", maxDateField)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("offset", maxDateOffset)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("maxdiff", maxDateDifference)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" </maxdate>" + Const.CR); //$NON-NLS-1$ retval.append(" " + XMLHandler.addTagValue("size_rowset", sizeRowset)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("sleep_time_empty", sleepTimeEmpty)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("sleep_time_full", sleepTimeFull)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("unique_connections", usingUniqueConnections)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("feedback_shown", feedbackShown)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" " + XMLHandler.addTagValue("feedback_size", feedbackSize)); //$NON-NLS-1$ //$NON-NLS-2$ retval.append(" <dependencies>" + Const.CR); //$NON-NLS-1$ for (int i = 0; i < nrDependencies(); i++) { TransDependency td = getDependency(i); retval.append(td.getXML()); } retval.append(" </dependencies>" + Const.CR); //$NON-NLS-1$ // The database partitioning schemas... // retval.append(" <partitionschemas>" + Const.CR); //$NON-NLS-1$ for (int i = 0; i < partitionSchemas.size(); i++) { PartitionSchema partitionSchema = (PartitionSchema) partitionSchemas.get(i); retval.append(partitionSchema.getXML()); } retval.append(" </partitionschemas>" + Const.CR); //$NON-NLS-1$ // The cluster schemas... // retval.append(" <clusterschemas>" + Const.CR); //$NON-NLS-1$ for (int i = 0; i < clusterSchemas.size(); i++) { ClusterSchema clusterSchema = (ClusterSchema) clusterSchemas.get(i); retval.append(clusterSchema.getXML()); } retval.append(" </clusterschemas>" + Const.CR); //$NON-NLS-1$ retval.append(" "+XMLHandler.addTagValue("modified_user", modifiedUser)); retval.append(" "+XMLHandler.addTagValue("modified_date", modifiedDate!=null?modifiedDate.getString():"")); retval.append(" </info>" + Const.CR); //$NON-NLS-1$ retval.append(" <notepads>" + Const.CR); //$NON-NLS-1$ if (notes != null) for (int i = 0; i < nrNotes(); i++) { NotePadMeta ni = getNote(i); retval.append(ni.getXML()); } retval.append(" </notepads>" + Const.CR); //$NON-NLS-1$ // The database connections... for (int i = 0; i < nrDatabases(); i++) { DatabaseMeta dbMeta = getDatabase(i); if (props!=null && props.areOnlyUsedConnectionsSavedToXML()) { if (isDatabaseConnectionUsed(dbMeta)) retval.append(dbMeta.getXML()); } else { retval.append(dbMeta.getXML()); } } retval.append(" <order>" + Const.CR); //$NON-NLS-1$ for (int i = 0; i < nrTransHops(); i++) { TransHopMeta transHopMeta = getTransHop(i); retval.append(transHopMeta.getXML()); } retval.append(" </order>" + Const.CR + Const.CR); //$NON-NLS-1$ for (int i = 0; i < nrSteps(); i++) { StepMeta stepMeta = getStep(i); retval.append(stepMeta.getXML()); } retval.append("</transformation>" + Const.CR); //$NON-NLS-1$ return retval.toString(); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/82f517dadfef099f4d5dcbaf1f1676a345fa6d79/TransMeta.java/clean/src/be/ibridge/kettle/trans/TransMeta.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
1071,
18341,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
514,
18341,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
336,
4201,
1435,
18341,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
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,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
5221,
18,
6923,
2932,
565,
315,
397,
3167,
1503,
18,
1289,
1805,
620,
2932,
9940,
67,
5930,
67,
17927,
1961,
3113,
1450,
3830,
8183,
49,
940,
475,
10019,
225,
1071,
18341,
18,
2
] |
|
} else {
|
} else{
|
private String calculateReplacementExpression(PsiExpression expression) { final PsiBinaryExpression exp = (PsiBinaryExpression) expression; final PsiExpression lhs = exp.getLOperand(); final PsiExpression rhs = exp.getROperand(); final PsiJavaToken sign = exp.getOperationSign(); final IElementType tokenType = sign.getTokenType(); assert rhs != null; final PsiType expressionType = exp.getType(); if (tokenType.equals(JavaTokenType.AND)) { if (isZero(lhs, expressionType) || isAllOnes(rhs, expressionType)) { return lhs.getText(); } else { return rhs.getText(); } } else if (tokenType.equals(JavaTokenType.OR)) { if (isZero(lhs, expressionType) || isAllOnes(rhs, expressionType)) { return rhs.getText(); } else { return lhs.getText(); } } else if (tokenType.equals(JavaTokenType.XOR)) { if (isAllOnes(lhs, expressionType)) { return '~' + rhs.getText(); } else if (isAllOnes(rhs, expressionType)) { return '~' + lhs.getText(); } else if (isZero(rhs, expressionType)) { return lhs.getText(); } else { return rhs.getText(); } } else if (tokenType.equals(JavaTokenType.LTLT) || tokenType.equals(JavaTokenType.GTGT) || tokenType.equals(JavaTokenType.GTGTGT)) { return lhs.getText(); } else { return ""; } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e4dba42c27333ff3aa3a021da7c8754469f669b6/PointlessBitwiseExpressionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bitwise/PointlessBitwiseExpressionInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
4604,
15201,
2300,
12,
52,
7722,
2300,
2652,
13,
288,
3639,
727,
453,
7722,
5905,
2300,
1329,
273,
261,
52,
7722,
5905,
2300,
13,
2652,
31,
3639,
727,
453,
7722,
2300,
8499,
273,
1329,
18,
588,
1502,
457,
464,
5621,
3639,
727,
453,
7722,
2300,
7711,
273,
1329,
18,
588,
1457,
457,
464,
5621,
3639,
727,
453,
7722,
5852,
1345,
1573,
273,
1329,
18,
588,
2988,
2766,
5621,
3639,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
3639,
1815,
7711,
480,
446,
31,
3639,
727,
453,
7722,
559,
2652,
559,
273,
1329,
18,
588,
559,
5621,
3639,
309,
261,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
4307,
3719,
288,
5411,
309,
261,
291,
7170,
12,
80,
4487,
16,
2652,
559,
13,
747,
353,
1595,
1398,
281,
12,
86,
4487,
16,
2652,
559,
3719,
288,
7734,
327,
8499,
18,
588,
1528,
5621,
5411,
289,
469,
95,
7734,
327,
7711,
18,
588,
1528,
5621,
5411,
289,
3639,
289,
469,
309,
261,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
916,
3719,
288,
5411,
309,
261,
291,
7170,
12,
80,
4487,
16,
2652,
559,
13,
747,
353,
1595,
1398,
281,
12,
86,
4487,
16,
2652,
559,
3719,
288,
7734,
327,
7711,
18,
588,
1528,
5621,
5411,
289,
469,
95,
7734,
327,
8499,
18,
588,
1528,
5621,
5411,
289,
3639,
289,
469,
309,
261,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
60,
916,
3719,
288,
5411,
309,
261,
291,
1595,
1398,
281,
12,
80,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
4604,
15201,
2300,
12,
52,
7722,
2300,
2652,
13,
288,
3639,
727,
453,
7722,
5905,
2300,
1329,
273,
261,
52,
7722,
5905,
2300,
13,
2652,
31,
3639,
727,
453,
7722,
2300,
8499,
273,
1329,
18,
588,
1502,
457,
464,
5621,
3639,
727,
453,
7722,
2300,
7711,
273,
1329,
18,
588,
1457,
457,
464,
5621,
3639,
727,
453,
7722,
5852,
1345,
1573,
273,
1329,
18,
588,
2988,
2766,
5621,
3639,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
3639,
1815,
7711,
480,
446,
31,
3639,
727,
453,
7722,
559,
2652,
559,
273,
1329,
18,
588,
559,
5621,
3639,
309,
261,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
4307,
3719,
288,
5411,
309,
261,
291,
2
] |
multiActionHandler.addKeybindingScope(widget, "de.walware.statet.ui.contexts.TextEditorScope");
|
multiActionHandler.addKeybindingScope(widget, "de.walware.statet.ui.contexts.TextEditorScope");
|
public void createActions(MultiActionHandler multiActionHandler) { Widget widget = fSourceViewer.getTextWidget(); if (fPairMatcher != null) { GotoMatchingBracketAction fPairMatcherGotoAction = new GotoMatchingBracketAction(fPairMatcher, fEditorAdapter); multiActionHandler.addGlobalAction(widget, fPairMatcherGotoAction.getId(), fPairMatcherGotoAction); } multiActionHandler.addKeybindingScope(widget, "de.walware.statet.ui.contexts.TextEditorScope"); }
|
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/d3bba4266f35b585495a603d2b7a2630e87ff6c4/InputGroup.java/buggy/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/InputGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
6100,
12,
5002,
1803,
1503,
3309,
1803,
1503,
13,
288,
9506,
202,
4609,
3604,
273,
284,
1830,
18415,
18,
588,
1528,
4609,
5621,
202,
202,
430,
261,
74,
4154,
6286,
480,
446,
13,
288,
1082,
202,
43,
6302,
9517,
11450,
1803,
284,
4154,
6286,
43,
6302,
1803,
273,
9506,
202,
2704,
611,
6302,
9517,
11450,
1803,
12,
74,
4154,
6286,
16,
284,
6946,
4216,
1769,
1082,
202,
7027,
1803,
1503,
18,
1289,
5160,
1803,
12,
6587,
16,
4405,
202,
74,
4154,
6286,
43,
6302,
1803,
18,
26321,
9334,
284,
4154,
6286,
43,
6302,
1803,
1769,
202,
202,
97,
9506,
202,
7027,
1803,
1503,
18,
1289,
653,
7374,
3876,
12,
6587,
16,
315,
323,
18,
91,
287,
2726,
18,
5642,
278,
18,
4881,
18,
18332,
18,
1528,
6946,
3876,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
6100,
12,
5002,
1803,
1503,
3309,
1803,
1503,
13,
288,
9506,
202,
4609,
3604,
273,
284,
1830,
18415,
18,
588,
1528,
4609,
5621,
202,
202,
430,
261,
74,
4154,
6286,
480,
446,
13,
288,
1082,
202,
43,
6302,
9517,
11450,
1803,
284,
4154,
6286,
43,
6302,
1803,
273,
9506,
202,
2704,
611,
6302,
9517,
11450,
1803,
12,
74,
4154,
6286,
16,
284,
6946,
4216,
1769,
1082,
202,
7027,
1803,
1503,
18,
1289,
5160,
1803,
12,
6587,
16,
4405,
202,
74,
4154,
6286,
43,
6302,
1803,
18,
26321,
9334,
284,
4154,
6286,
43,
6302,
1803,
1769,
202,
202,
97,
9506,
202,
7027,
1803,
1503,
18,
1289,
653,
7374,
3876,
12,
6587,
16,
315,
323,
18,
2
] |
factory = AtomTypeFactory.getInstance("org/openscience/cdk/config/data/jmol_atomtypes.txt");
|
public InductiveAtomicHardnessDescriptor() throws IOException, ClassNotFoundException { logger = new LoggingTool(this); factory = AtomTypeFactory.getInstance("org/openscience/cdk/config/data/jmol_atomtypes.txt"); }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/13a1dde80ed28c205e325d7ac5ada2d3ead2c967/InductiveAtomicHardnessDescriptor.java/buggy/src/org/openscience/cdk/qsar/InductiveAtomicHardnessDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
657,
1828,
688,
23102,
29601,
4496,
3187,
1435,
1216,
1860,
16,
10403,
288,
202,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
6848,
273,
7149,
559,
1733,
18,
588,
1442,
2932,
3341,
19,
20346,
71,
6254,
19,
71,
2883,
19,
1425,
19,
892,
19,
78,
21260,
67,
7466,
2352,
18,
5830,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
657,
1828,
688,
23102,
29601,
4496,
3187,
1435,
1216,
1860,
16,
10403,
288,
202,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
6848,
273,
7149,
559,
1733,
18,
588,
1442,
2932,
3341,
19,
20346,
71,
6254,
19,
71,
2883,
19,
1425,
19,
892,
19,
78,
21260,
67,
7466,
2352,
18,
5830,
8863,
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
] |
|
allInOneAPI = new API(null);
|
TargetDescriptor target = new TargetDescriptor("http: CAPI allInOne = new CAPI(target); allInOneAPI = allInOne.getAPISpecification();
|
protected void setUp() throws Exception { allInOneAPI = new API(null); // TODO }
|
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/a4b518815aede9cb29ea686d04ad6bad85b9d4d0/APITests.java/buggy/src/tests/org/xins/tests/common/spec/APITests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
24292,
1435,
282,
1216,
1185,
288,
1377,
5916,
3187,
1018,
273,
394,
5916,
3187,
2932,
2505,
30,
385,
2557,
777,
382,
3335,
273,
394,
385,
2557,
12,
3299,
1769,
777,
382,
3335,
2557,
273,
777,
382,
3335,
18,
588,
2557,
8615,
5621,
368,
2660,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
24292,
1435,
282,
1216,
1185,
288,
1377,
5916,
3187,
1018,
273,
394,
5916,
3187,
2932,
2505,
30,
385,
2557,
777,
382,
3335,
273,
394,
385,
2557,
12,
3299,
1769,
777,
382,
3335,
2557,
273,
777,
382,
3335,
18,
588,
2557,
8615,
5621,
368,
2660,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"if ( !persistentCookies || !persistentCookies ) {\n"+ "document.write(\"";
|
"if (" + ( negate() ? "sessionCookies && persistentCookies" : "!sessionCookies || !persistentCookies") + " ) {\n" + " document.write(\"";
|
public String string1() { return "<script LANGUAGE=\"JavaScript\">\n"+ "<!--\n"+ "if (top.frames.length != 0) {\n"+ " top.location = self.document.location\n"+ "}\n"+ "var sessionCookies = true\n"+ "var persistentCookies = true\n"+ "document.cookie = \"session=on\"\n"+ "if (document.cookie.indexOf(\"session=on\") == -1){\n"+ "sessionCookies = false\n"+ " \n}"+ " var exp = new Date()\n"+ "var oneYearFromNow = exp.getTime() + (365*24*60*60*1000)\n"+ "exp.setTime(oneYearFromNow)\n"+ "document.cookie= \"persistent=on; expires=\" + exp.toGMTString();\n"+ "if (document.cookie.indexOf(\"persistent=on\") == -1 ){\n"+ "persistentCookies = false\n"+ "}\n"+ "if ( !persistentCookies || !persistentCookies ) {\n"+ "document.write(\""; }
|
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/e42d68092347516c40ef959feb68127a2384c344/ERXJSCookiesConditional.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXJSCookiesConditional.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
533,
21,
1435,
288,
3639,
327,
3532,
4263,
24748,
5189,
16634,
28219,
82,
6,
15,
3639,
3532,
22772,
64,
82,
6,
15,
3639,
315,
430,
261,
3669,
18,
10278,
18,
2469,
480,
374,
13,
18890,
82,
6,
15,
3639,
315,
282,
1760,
18,
3562,
273,
365,
18,
5457,
18,
3562,
64,
82,
6,
15,
3639,
315,
6280,
82,
6,
15,
3639,
315,
1401,
1339,
16089,
273,
638,
64,
82,
6,
15,
3639,
315,
1401,
9195,
16089,
273,
638,
64,
82,
6,
15,
3639,
315,
5457,
18,
8417,
273,
1239,
3184,
33,
265,
31670,
82,
6,
15,
3639,
315,
430,
261,
5457,
18,
8417,
18,
31806,
23031,
3184,
33,
265,
2412,
13,
422,
300,
21,
15329,
64,
82,
6,
15,
3639,
315,
3184,
16089,
273,
629,
64,
82,
6,
15,
3639,
315,
521,
82,
1532,
15,
3639,
315,
569,
1329,
273,
394,
2167,
1435,
64,
82,
6,
15,
3639,
315,
1401,
1245,
5593,
1265,
8674,
273,
1329,
18,
588,
950,
1435,
397,
261,
5718,
25,
14,
3247,
14,
4848,
14,
4848,
14,
18088,
5153,
82,
6,
15,
3639,
315,
2749,
18,
542,
950,
12,
476,
5593,
1265,
8674,
5153,
82,
6,
15,
3639,
315,
5457,
18,
8417,
33,
1239,
19393,
33,
265,
31,
7368,
5189,
397,
1329,
18,
869,
25315,
780,
5621,
64,
82,
6,
15,
3639,
315,
430,
261,
5457,
18,
8417,
18,
31806,
23031,
19393,
33,
265,
2412,
13,
422,
300,
21,
262,
23241,
82,
6,
15,
3639,
315,
19393,
16089,
273,
629,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
533,
21,
1435,
288,
3639,
327,
3532,
4263,
24748,
5189,
16634,
28219,
82,
6,
15,
3639,
3532,
22772,
64,
82,
6,
15,
3639,
315,
430,
261,
3669,
18,
10278,
18,
2469,
480,
374,
13,
18890,
82,
6,
15,
3639,
315,
282,
1760,
18,
3562,
273,
365,
18,
5457,
18,
3562,
64,
82,
6,
15,
3639,
315,
6280,
82,
6,
15,
3639,
315,
1401,
1339,
16089,
273,
638,
64,
82,
6,
15,
3639,
315,
1401,
9195,
16089,
273,
638,
64,
82,
6,
15,
3639,
315,
5457,
18,
8417,
273,
1239,
3184,
33,
265,
31670,
82,
6,
15,
3639,
315,
430,
261,
5457,
18,
8417,
18,
31806,
23031,
3184,
33,
265,
2412,
13,
422,
300,
21,
15329,
64,
2
] |
Messages.getMessage("paramIsNotSpecified", "ServiceClass"));
|
Messages.getMessage("paramIsNotSpecified", "ServiceClass"));
|
public void invokeBusinessLogic( MessageContext inMessage, MessageContext outMessage) throws AxisFault { try { AxisService service = inMessage .getOperationContext() .getServiceContext() .getAxisService(); Parameter implInfoParam = service.getParameter("GroovyClass"); if (implInfoParam == null) { throw new AxisFault( Messages.getMessage("paramIsNotSpecified", "ServiceClass")); } InputStream groovyFileStream = service.getClassLoader().getResourceAsStream( implInfoParam.getValue().toString()); if (groovyFileStream == null) { throw new AxisFault( Messages.getMessage("groovyUnableToLoad", implInfoParam.getValue().toString())); } //look at the method name. if available this should be a groovy method AxisOperation op = inMessage.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( Messages.getMessage("notFound", "Operation")); } String methodName = op.getName().getLocalPart(); OMElement firstChild = (OMElement) inMessage.getEnvelope().getBody().getFirstOMChild(); inMessage.getEnvelope().build(); StringWriter writer = new StringWriter(); firstChild.build(); firstChild.serialize(writer); writer.flush(); String value = writer.toString(); if (value != null) { GroovyClassLoader loader = new GroovyClassLoader(); Class groovyClass = loader.parseClass(groovyFileStream); GroovyObject groovyObject = (GroovyObject) groovyClass.newInstance(); Object[] arg = { new StringReader(value) }; Object obj = groovyObject.invokeMethod(methodName, arg); if (obj == null) { throw new AxisFault(Messages.getMessage("groovyNoanswer")); } SOAPFactory fac = null; if(inMessage.isSOAP11()){ fac = OMAbstractFactory.getSOAP11Factory(); }else{ fac = OMAbstractFactory.getSOAP12Factory(); } SOAPEnvelope envelope = fac.getDefaultEnvelope(); OMNamespace ns = fac.createOMNamespace("http://soapenc/", "res"); OMElement responseElement = fac.createOMElement(methodName + "Response", ns); String outMessageString = obj.toString(); // System.out.println("outMessageString = " + outMessageString); // responseElement.setText(outMessageString); responseElement.addChild(getpayLoad(outMessageString)); envelope.getBody().addChild(responseElement); outMessage.setEnvelope(envelope); } } catch (Exception e) { throw new AxisFault(e); } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9b2321c7ec68bbe298165ee2bf50b200069ebf01/GroovyReceiver.java/buggy/modules/samples/groovy/src/sample/groovy/GroovyReceiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
13423,
20556,
12,
3639,
2350,
1042,
316,
1079,
16,
3639,
2350,
1042,
596,
1079,
13,
3639,
1216,
15509,
7083,
288,
3639,
775,
288,
5411,
15509,
1179,
1156,
273,
7734,
316,
1079,
10792,
263,
588,
2988,
1042,
1435,
10792,
263,
588,
1179,
1042,
1435,
10792,
263,
588,
6558,
1179,
5621,
5411,
5498,
9380,
966,
786,
273,
1156,
18,
588,
1662,
2932,
43,
12859,
797,
8863,
5411,
309,
261,
11299,
966,
786,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
10792,
4838,
18,
24906,
2932,
891,
28041,
17068,
3113,
315,
1179,
797,
7923,
1769,
5411,
289,
5411,
5037,
24955,
812,
1228,
273,
7734,
1156,
18,
588,
7805,
7675,
588,
1420,
17052,
12,
10792,
9380,
966,
786,
18,
24805,
7675,
10492,
10663,
5411,
309,
261,
75,
12859,
812,
1228,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
10792,
4838,
18,
24906,
2932,
75,
12859,
3370,
26883,
3113,
9380,
966,
786,
18,
24805,
7675,
10492,
1435,
10019,
5411,
289,
5411,
368,
7330,
622,
326,
707,
508,
18,
309,
2319,
333,
1410,
506,
279,
24955,
707,
5411,
15509,
2988,
1061,
273,
7734,
316,
1079,
18,
588,
2988,
1042,
7675,
588,
6558,
2988,
5621,
5411,
309,
261,
556,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
10792,
4838,
18,
24906,
2932,
902,
2043,
3113,
315,
2988,
7923,
1769,
5411,
289,
5411,
514,
4918,
273,
1061,
18,
17994,
7675,
588,
2042,
1988,
5621,
5411,
531,
12310,
15070,
273,
7734,
261,
51,
12310,
13,
316,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
13423,
20556,
12,
3639,
2350,
1042,
316,
1079,
16,
3639,
2350,
1042,
596,
1079,
13,
3639,
1216,
15509,
7083,
288,
3639,
775,
288,
5411,
15509,
1179,
1156,
273,
7734,
316,
1079,
10792,
263,
588,
2988,
1042,
1435,
10792,
263,
588,
1179,
1042,
1435,
10792,
263,
588,
6558,
1179,
5621,
5411,
5498,
9380,
966,
786,
273,
1156,
18,
588,
1662,
2932,
43,
12859,
797,
8863,
5411,
309,
261,
11299,
966,
786,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
10792,
4838,
18,
24906,
2932,
891,
28041,
17068,
3113,
315,
1179,
797,
7923,
1769,
5411,
289,
5411,
5037,
24955,
812,
1228,
273,
7734,
1156,
18,
588,
7805,
7675,
588,
1420,
17052,
12,
10792,
9380,
966,
2
] |
String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
|
String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
|
private static int getLargerFontSizeIntValue( DesignElementHandle handle ) { if ( !( handle instanceof ReportItemHandle ) ) { if ( handle instanceof ModuleHandle ) { // return 10. String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) + 1; } if ( handle instanceof GroupHandle ) { handle = handle.getContainer( ); } } Object fontSizeValue = handle.getPrivateStyle( ) .getFontSize( ) .getValue( ); if ( fontSizeValue instanceof DimensionValue ) { int size = getFontSizeIntValue( handle.getContainer( ) ); return (int) CSSUtil.convertToPoint( fontSizeValue, size ) + 1; } else if ( fontSizeValue instanceof String ) { String fontSize = (String) fontSizeValue; if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) ) { return getLargerFontSizeIntValue( handle.getContainer( ) ); } else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) ) { return getSmallerFontSizeIntValue( handle.getContainer( ) ); } else { for ( int i = 0; i < DesignerConstants.fontSizes.length - 1; i++ ) { if ( fontSize.equals( DesignerConstants.fontSizes[i][0] ) ) { return Integer.parseInt( DesignerConstants.fontSizes[i + 1][1] ); } } return Integer.parseInt( DesignerConstants.fontSizes[DesignerConstants.fontSizes.length - 1][1] ); } } else { // return 10 + 1. String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) + 1; } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bd4d66f78a2177b14abd81505fa39cd4e4abe645/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
9014,
297,
693,
22688,
1702,
620,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
12,
1640,
1276,
8706,
1180,
3259,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
1640,
1276,
5924,
3259,
262,
1082,
202,
95,
9506,
202,
759,
327,
1728,
18,
9506,
202,
780,
963,
273,
261,
780,
13,
29703,
264,
2918,
18,
5776,
863,
18,
588,
12,
29703,
10538,
2918,
18,
25221,
67,
4574,
67,
15971,
2799,
11272,
9506,
202,
2463,
2144,
18,
2670,
1702,
12,
963,
262,
397,
404,
31,
1082,
202,
97,
1082,
202,
430,
261,
1640,
1276,
3756,
3259,
262,
1082,
202,
95,
9506,
202,
4110,
273,
1640,
18,
588,
2170,
12,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
921,
16746,
620,
273,
1640,
18,
588,
6014,
2885,
12,
262,
9506,
202,
18,
588,
22688,
12,
262,
9506,
202,
18,
24805,
12,
11272,
202,
202,
430,
261,
16746,
620,
1276,
13037,
620,
262,
202,
202,
95,
1082,
202,
474,
963,
273,
18776,
1225,
1702,
620,
12,
1640,
18,
588,
2170,
12,
262,
11272,
1082,
202,
2463,
261,
474,
13,
6765,
1304,
18,
6283,
774,
2148,
12,
16746,
620,
16,
963,
262,
397,
404,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
16746,
620,
1276,
514,
262,
202,
202,
95,
1082,
202,
780,
16746,
273,
261,
780,
13,
16746,
620,
31,
1082,
202,
430,
261,
16746,
18,
14963,
12,
29703,
10538,
2918,
18,
25221,
67,
4574,
67,
48,
985,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
9014,
297,
693,
22688,
1702,
620,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
12,
1640,
1276,
8706,
1180,
3259,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
1640,
1276,
5924,
3259,
262,
1082,
202,
95,
9506,
202,
759,
327,
1728,
18,
9506,
202,
780,
963,
273,
261,
780,
13,
29703,
264,
2918,
18,
5776,
863,
18,
588,
12,
29703,
10538,
2918,
18,
25221,
67,
4574,
67,
15971,
2799,
11272,
9506,
202,
2463,
2144,
18,
2670,
1702,
12,
963,
262,
397,
404,
31,
1082,
202,
97,
1082,
202,
430,
261,
1640,
1276,
3756,
3259,
262,
1082,
202,
95,
9506,
202,
4110,
273,
1640,
18,
588,
2170,
12,
11272,
2
] |
if( file.isAbsolute( ) )
|
if ( file.isAbsolute( ) )
|
public static String resolveAbsolutePath( String base, String relativePath ) { // make sure that must be file protocol File file = new File( relativePath ); if( file.isAbsolute( ) ) return relativePath; String baseDir = getLocalPath( base ); String relativeDir = getLocalPath( relativePath ); if ( baseDir == null || relativeDir == null ) return relativePath; File baseFile = new File( baseDir ); File resourceFile = new File( baseFile, relativeDir ); return resourceFile.getPath( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/22165bd0e5b8e6eae1e5acbdf5a7377ab1882684/URIUtil.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2245,
10368,
743,
12,
514,
1026,
16,
514,
12820,
262,
202,
95,
202,
202,
759,
1221,
3071,
716,
1297,
506,
585,
1771,
9506,
202,
812,
585,
273,
394,
1387,
12,
12820,
11272,
202,
202,
430,
12,
585,
18,
291,
10368,
12,
262,
262,
1082,
202,
2463,
12820,
31,
9506,
202,
780,
14078,
273,
6993,
743,
12,
1026,
11272,
202,
202,
780,
3632,
1621,
273,
6993,
743,
12,
12820,
11272,
202,
202,
430,
261,
14078,
422,
446,
747,
3632,
1621,
422,
446,
262,
1082,
202,
2463,
12820,
31,
202,
202,
812,
1026,
812,
273,
394,
1387,
12,
14078,
11272,
202,
202,
812,
1058,
812,
273,
394,
1387,
12,
1026,
812,
16,
3632,
1621,
11272,
202,
202,
2463,
1058,
812,
18,
588,
743,
12,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2245,
10368,
743,
12,
514,
1026,
16,
514,
12820,
262,
202,
95,
202,
202,
759,
1221,
3071,
716,
1297,
506,
585,
1771,
9506,
202,
812,
585,
273,
394,
1387,
12,
12820,
11272,
202,
202,
430,
12,
585,
18,
291,
10368,
12,
262,
262,
1082,
202,
2463,
12820,
31,
9506,
202,
780,
14078,
273,
6993,
743,
12,
1026,
11272,
202,
202,
780,
3632,
1621,
273,
6993,
743,
12,
12820,
11272,
202,
202,
430,
261,
14078,
422,
446,
747,
3632,
1621,
422,
446,
262,
1082,
202,
2463,
12820,
31,
202,
202,
812,
1026,
812,
273,
394,
1387,
12,
14078,
11272,
202,
202,
812,
1058,
812,
273,
394,
1387,
12,
1026,
812,
16,
3632,
1621,
11272,
202,
2
] |
String url = parent.getEntries().getEntry("", true).getURL(); url = PathUtil.append(url, PathUtil.encode(name));
|
String url = null; if (parent.getEntries() != null && parent.getEntries().getEntry("", false) != null) { url = parent.getEntries().getEntry("", false).getURL(); url = PathUtil.append(url, PathUtil.encode(name)); }
|
private void sendUnversionedStatus(SVNDirectory parent, String name) throws SVNException { boolean ignored = isIgnored(parent, name); String path = "".equals(name) ? parent.getPath() : PathUtil.append(parent.getPath(), name); path = PathUtil.removeLeadingSlash(path); String url = parent.getEntries().getEntry("", true).getURL(); url = PathUtil.append(url, PathUtil.encode(name)); SVNStatus status = createStatus(url, parent.getFile(name, false), parent, null, null, ignored, null, null); if (myExternalsMap.containsKey(path)) { status.markExternal(); } if (status != null) { if (myIsIncludeIgnored || !ignored || myExternalsMap.containsKey(path) || status.getRemoteLock() != null) { myHandler.handleStatus(status); } } }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/f51845935a8b484ae846dd998ab500f92aa59e42/SVNStatusEditor.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNStatusEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
984,
21415,
1482,
12,
23927,
50,
2853,
982,
16,
514,
508,
13,
1216,
29537,
50,
503,
288,
3639,
1250,
5455,
273,
353,
15596,
12,
2938,
16,
508,
1769,
3639,
514,
589,
273,
1408,
18,
14963,
12,
529,
13,
692,
982,
18,
588,
743,
1435,
294,
2666,
1304,
18,
6923,
12,
2938,
18,
588,
743,
9334,
508,
1769,
3639,
589,
273,
2666,
1304,
18,
4479,
19112,
11033,
12,
803,
1769,
3639,
514,
880,
273,
982,
18,
588,
5400,
7675,
588,
1622,
2932,
3113,
638,
2934,
588,
1785,
5621,
3639,
880,
273,
2666,
1304,
18,
6923,
12,
718,
16,
2666,
1304,
18,
3015,
12,
529,
10019,
3639,
29537,
50,
1482,
1267,
273,
752,
1482,
12,
718,
16,
982,
18,
29925,
12,
529,
16,
629,
3631,
982,
16,
446,
16,
446,
16,
5455,
16,
446,
16,
446,
1769,
3639,
309,
261,
4811,
29764,
1031,
863,
18,
12298,
653,
12,
803,
3719,
288,
5411,
1267,
18,
3355,
6841,
5621,
3639,
289,
3639,
309,
261,
2327,
480,
446,
13,
288,
5411,
309,
261,
4811,
2520,
8752,
15596,
747,
401,
24055,
747,
3399,
29764,
1031,
863,
18,
12298,
653,
12,
803,
13,
747,
1267,
18,
588,
5169,
2531,
1435,
480,
446,
13,
288,
7734,
3399,
1503,
18,
4110,
1482,
12,
2327,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
984,
21415,
1482,
12,
23927,
50,
2853,
982,
16,
514,
508,
13,
1216,
29537,
50,
503,
288,
3639,
1250,
5455,
273,
353,
15596,
12,
2938,
16,
508,
1769,
3639,
514,
589,
273,
1408,
18,
14963,
12,
529,
13,
692,
982,
18,
588,
743,
1435,
294,
2666,
1304,
18,
6923,
12,
2938,
18,
588,
743,
9334,
508,
1769,
3639,
589,
273,
2666,
1304,
18,
4479,
19112,
11033,
12,
803,
1769,
3639,
514,
880,
273,
982,
18,
588,
5400,
7675,
588,
1622,
2932,
3113,
638,
2934,
588,
1785,
5621,
3639,
880,
273,
2666,
1304,
18,
6923,
12,
718,
16,
2666,
1304,
18,
3015,
12,
529,
10019,
3639,
29537,
50,
1482,
1267,
273,
752,
1482,
12,
718,
16,
2
] |
getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)
|
public final static DateFormat getDateTimeInstance()
|
getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) { return get(dateStyle, timeStyle, ULocale.forLocale(aLocale)); }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/01ca33ee393290e592900ee5eebdd69cc16c18ad/DateFormat.java/buggy/icu4j/src/com/ibm/icu/text/DateFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
727,
760,
18371,
25562,
1442,
1435,
565,
288,
3639,
327,
336,
12,
712,
2885,
16,
813,
2885,
16,
29145,
18,
1884,
3916,
12,
69,
3916,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
727,
760,
18371,
25562,
1442,
1435,
565,
288,
3639,
327,
336,
12,
712,
2885,
16,
813,
2885,
16,
29145,
18,
1884,
3916,
12,
69,
3916,
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
] |
protected void drawCrossHair (final Graphics g, final int x_position, final String label, final int label_pos) { if (x_position >= 0) {
|
protected void drawCrossHair(final Graphics g, final int x_position, final String label, final int label_pos) { if (x_position >= 0) {
|
protected void drawCrossHair (final Graphics g, final int x_position, final String label, final int label_pos) { if (x_position >= 0) { g.drawLine (x_position, getLabelHeight (), x_position, canvas.getSize ().height); g.drawString (label, x_position + 2, getFontHeight () * (2 + label_pos) + 2); } }
|
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/3f8b7b6ffcb86966be6f254352d4d6ad54cfdebc/Plot.java/buggy/uk/ac/sanger/artemis/components/Plot.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3724,
13941,
44,
1826,
261,
6385,
16830,
314,
16,
727,
509,
619,
67,
3276,
16,
27573,
727,
514,
1433,
16,
727,
509,
1433,
67,
917,
13,
288,
565,
309,
261,
92,
67,
3276,
1545,
374,
13,
288,
1377,
314,
18,
9446,
1670,
261,
92,
67,
3276,
16,
11237,
2686,
1832,
16,
5375,
619,
67,
3276,
16,
5953,
18,
588,
1225,
1832,
18,
4210,
1769,
1377,
314,
18,
9446,
780,
261,
1925,
16,
619,
67,
3276,
397,
576,
16,
10792,
18776,
2686,
1832,
380,
261,
22,
397,
1433,
67,
917,
13,
397,
576,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3724,
13941,
44,
1826,
261,
6385,
16830,
314,
16,
727,
509,
619,
67,
3276,
16,
27573,
727,
514,
1433,
16,
727,
509,
1433,
67,
917,
13,
288,
565,
309,
261,
92,
67,
3276,
1545,
374,
13,
288,
1377,
314,
18,
9446,
1670,
261,
92,
67,
3276,
16,
11237,
2686,
1832,
16,
5375,
619,
67,
3276,
16,
5953,
18,
588,
1225,
1832,
18,
4210,
1769,
1377,
314,
18,
9446,
780,
261,
1925,
16,
619,
67,
3276,
397,
576,
16,
10792,
18776,
2686,
1832,
380,
261,
22,
397,
1433,
67,
917,
13,
397,
576,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (e.getActionCommand().equals("ok")) { for (int i = 0; i < useCheckBox.length; i++) { if (useCheckBox[i].isSelected()) { text[i] = new TagString[3]; for (int j = 0; j < textField[i].length; j++) { text[i][j] = new TagString(textField[i][j].getText()); } } else { text[i] = null; } } setVisible(false); } else if (e.getActionCommand().equals("cancel")) { for (int i = 0; i < useCheckBox.length; i++) { useCheckBox[i].setSelected(text[i] != null); for (int j = 0; j < textField[i].length; j++) { if (text[i] != null) { textField[i][j].setText(text[i][j].toString()); textField[i][j].setEnabled(true); } else { textField[i][j].setText(""); textField[i][j].setEnabled(false); } } } setVisible(false); }
|
if (e.getActionCommand().equals("ok")) { for (int i = 0; i < useCheckBox.length; i++) { if (useCheckBox[i].isSelected()) { text[i] = new TagString[3]; for (int j = 0; j < textField[i].length; j++) { text[i][j] = new TagString(textField[i][j].getText()); } } else { text[i] = null; } } setVisible(false); } else if (e.getActionCommand().equals("cancel")) { for (int i = 0; i < useCheckBox.length; i++) { useCheckBox[i].setSelected(text[i] != null); for (int j = 0; j < textField[i].length; j++) { if (text[i] != null) { textField[i][j].setText(text[i][j].toString()); textField[i][j].setEnabled(true); } else { textField[i][j].setText(""); textField[i][j].setEnabled(false); } } } setVisible(false); }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("ok")) { for (int i = 0; i < useCheckBox.length; i++) { if (useCheckBox[i].isSelected()) { text[i] = new TagString[3]; for (int j = 0; j < textField[i].length; j++) { text[i][j] = new TagString(textField[i][j].getText()); } } else { text[i] = null; } } setVisible(false); } else if (e.getActionCommand().equals("cancel")) { for (int i = 0; i < useCheckBox.length; i++) { useCheckBox[i].setSelected(text[i] != null); for (int j = 0; j < textField[i].length; j++) { if (text[i] != null) { textField[i][j].setText(text[i][j].toString()); textField[i][j].setEnabled(true); } else { textField[i][j].setText(""); textField[i][j].setEnabled(false); } } } setVisible(false); } }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/HeadFootDialog.java/buggy/freehep-graphicsio/src/main/java/org/freehep/graphicsio/exportchooser/HeadFootDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
430,
261,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
601,
6,
3719,
288,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
999,
19174,
18,
2469,
31,
277,
27245,
288,
202,
202,
430,
261,
1202,
19174,
63,
77,
8009,
291,
7416,
10756,
288,
1082,
565,
977,
63,
77,
65,
273,
394,
4034,
780,
63,
23,
15533,
1082,
565,
364,
261,
474,
525,
273,
374,
31,
525,
411,
977,
974,
63,
77,
8009,
2469,
31,
525,
27245,
288,
1082,
202,
955,
63,
77,
6362,
78,
65,
273,
394,
4034,
780,
12,
955,
974,
63,
77,
6362,
78,
8009,
588,
1528,
10663,
1082,
565,
289,
202,
202,
97,
469,
288,
1082,
565,
977,
63,
77,
65,
273,
446,
31,
202,
202,
97,
202,
565,
289,
202,
565,
16697,
12,
5743,
1769,
202,
97,
469,
309,
261,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
10996,
6,
3719,
288,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
999,
19174,
18,
2469,
31,
277,
27245,
288,
202,
202,
1202,
19174,
63,
77,
8009,
542,
7416,
12,
955,
63,
77,
65,
480,
446,
1769,
202,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
977,
974,
63,
77,
8009,
2469,
31,
525,
27245,
288,
1082,
565,
309,
261,
955,
63,
77,
65,
480,
446,
13,
288,
1082,
202,
955,
974,
63,
77,
6362,
78,
8009,
542,
1528,
12,
955,
63,
77,
6362,
78,
8009,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
430,
261,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
601,
6,
3719,
288,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
999,
19174,
18,
2469,
31,
277,
27245,
288,
202,
202,
430,
261,
1202,
19174,
63,
77,
8009,
291,
7416,
10756,
288,
1082,
565,
977,
63,
77,
65,
273,
394,
4034,
780,
63,
23,
15533,
1082,
565,
364,
261,
474,
525,
273,
374,
31,
525,
411,
977,
974,
63,
77,
8009,
2469,
31,
525,
27245,
288,
1082,
202,
955,
63,
77,
6362,
78,
65,
273,
394,
4034,
780,
12,
955,
974,
63,
77,
6362,
78,
8009,
588,
1528,
10663,
1082,
565,
289,
202,
202,
2
] |
iCodeTop = addShort(index, iCodeTop);
|
iCodeTop = addIndex(index, iCodeTop);
|
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, TokenStream.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { markTargetLabel(node, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || !itsSourceFile.equals(itsData.itsSourceFile))) { itsData.itsSourceFile = itsSourceFile; } iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; int nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { int childType = child.getType(); if (childType == TokenStream.NAME || childType == TokenStream.GETPROP) { nameIndex = lastStringIndex; } } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); } break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(target, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else { iCodeTop = addGoto(catchTarget, TokenStream.TRY, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippyJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); int finallyOffset = iCodeTop - tryStart; recordJumpOffset(tryStart + 3, finallyOffset); // on entry the stack will have the exception object itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addGoto(finallyTarget, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; resolveForwardGoto(skippyJumpStart, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.REGEXP : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.REGEXP, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/85132aacd6645eb0864e9deff934a25c44792a21/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
26794,
12,
1615,
16,
277,
1085,
3401,
1769,
10792,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
13491,
277,
1085,
3401,
273,
2103,
45,
1085,
12,
3624,
16,
277,
1085,
3401,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
13415,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
26794,
12,
1615,
16,
277,
2
] |
case 162: break;
|
case 164: break;
|
public Symbol next_token() throws java.io.IOException { int yyFlexInput; int yyFlexAction; int [] yyFlexTransL = YY_TRANS; int [] yyFlexRowMapL = YY_ROWMAP; int [] yyFlexAttrL = YY_ATTRIBUTE; int yyFlexPushbackPos_l = yyFlexPushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yyFlexCurrentPosL; int yyFlexMarkedPosL = yyFlexMarkedPos; int yyFlexEndReadL = yyFlexEndRead; char [] yyFlexBufferL = yyFlexBuffer; char [] yyCMapL = YY_CMAP; boolean yyFlexR = false; for (yyFlexCurrentPosL = yyFlexStartRead; yyFlexCurrentPosL < yyFlexMarkedPosL; yyFlexCurrentPosL++) { switch (yyFlexBufferL[yyFlexCurrentPosL]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yyFlexR = false; break; case '\r': yyline++; yycolumn = 0; yyFlexR = true; break; case '\n': if (yyFlexR) yyFlexR = false; else { yyline++; yycolumn = 0; } break; default: yyFlexR = false; yycolumn++; } } if (yyFlexR) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yyFlexPeek; if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; else if (yyFlexAtEOF) yyFlexPeek = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexPeek = false; else yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; } if (yyFlexPeek) yyline--; } if (yyFlexMarkedPosL > yyFlexStartRead) { switch (yyFlexBufferL[yyFlexMarkedPosL-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyFlexAtBOL = true; break; case '\r': if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; else if (yyFlexAtEOF) yyFlexAtBOL = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexAtBOL = false; else yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; } break; default: yyFlexAtBOL = false; } } yyFlexAction = -1; yyFlexCurrentPosL = yyFlexCurrentPos = yyFlexStartRead = yyFlexMarkedPosL; if (yyFlexAtBOL) yyFlexState = YY_LEXSTATE[yyFlexLexicalState+1]; else yyFlexState = YY_LEXSTATE[yyFlexLexicalState]; yy_was_pushback = false; yy_forAction: { while (true) { if (yyFlexCurrentPosL < yyFlexEndReadL) yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; else if (yyFlexAtEOF) { yyFlexInput = YYEOF; break yy_forAction; } else { // store back cached positions yyFlexCurrentPos = yyFlexCurrentPosL; yyFlexMarkedPos = yyFlexMarkedPosL; yyFlexPushbackPos = yyFlexPushbackPos_l; boolean eof = yyFlexRefill(); // get translated positions and possibly new buffer yyFlexCurrentPosL = yyFlexCurrentPos; yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; yyFlexEndReadL = yyFlexEndRead; yyFlexPushbackPos_l = yyFlexPushbackPos; if (eof) { yyFlexInput = YYEOF; break yy_forAction; } else { yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; } } int yyFlexNext = yyFlexTransL[ yyFlexRowMapL[yyFlexState] + yyCMapL[yyFlexInput] ]; if (yyFlexNext == -1) break yy_forAction; yyFlexState = yyFlexNext; int yyFlexAttributes = yyFlexAttrL[yyFlexState]; if ( (yyFlexAttributes & 2) == 2 ) yyFlexPushbackPos_l = yyFlexCurrentPosL; if ( (yyFlexAttributes & 1) == 1 ) { yy_was_pushback = (yyFlexAttributes & 4) == 4; yyFlexAction = yyFlexState; yyFlexMarkedPosL = yyFlexCurrentPosL; if ( (yyFlexAttributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yyFlexMarkedPos = yyFlexMarkedPosL; if (yy_was_pushback) yyFlexMarkedPos = yyFlexPushbackPos_l; switch (yyFlexAction < 0 ? yyFlexAction : YY_ACTION[yyFlexAction]) { case 85: { return symbol(FULL); } case 141: break; case 92: { debugOption = true; } case 142: break; case 57: { return symbol(CHAR,new Character('\t')); } case 143: break; case 107: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 144: break; case 91: { isYYEOF = true; } case 145: break; case 54: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 146: break; case 11: { yybegin(REGEXP); } case 147: break; case 112: { isAbstract = true; } case 148: break; case 101: { initCode = conc(initCode,string); yybegin(MACROS); } case 149: break; case 45: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 150: break; case 12: { return symbol_countUpdate(RBRACE, null); } case 151: break; case 74: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 152: break; case 55: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 153: break; case 97: { columnCount = true; } case 154: break; case 122: { return symbol(LETTERCLASS); } case 155: break; case 15: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 156: break; case 77: { inclusive_states = true; yybegin(STATELIST); } case 157: break; case 56: { return symbol(CHAR,new Character('\n')); } case 158: break; case 81: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 159: break; case 25: { return symbol(OPENBRACKET); } case 160: break; case 123: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 161: break; case 126: { visibility = "private"; Skeleton.makePrivate(); } case 162: break; case 49: { commentbalance++; } case 163: break; case 9: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 164: break; case 68: { string.append('\n'); } case 165: break; case 33: { balance++; actionText.append('{'); } case 166: break; case 48: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 167: break; case 67: { string.append('\"'); } case 168: break; case 95: { tokenType = yytext().substring(6).trim(); } case 169: break; case 79: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 170: break; case 14: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 171: break; case 32: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 172: break; case 108: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 173: break; case 120: { isExtending = yytext().substring(9).trim(); } case 174: break; case 113: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 175: break; case 63: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 176: break; case 88: { packed = true; useRowMap = true; } case 177: break; case 27: { return symbol(PLUS); } case 178: break; case 99: { isPublic = true; } case 179: break; case 70: { string.append('\r'); } case 180: break; case 76: { inclusive_states = false; yybegin(STATELIST); } case 181: break; case 3: { userCode.append(yytext()); } case 182: break; case 19: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 183: break; case 110: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 184: break; case 26: { return symbol(CLOSEBRACKET); } case 185: break; case 80: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 186: break; case 37: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 187: break; case 111: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 188: break; case 69: { string.append('\t'); } case 189: break; case 23: { return symbol(BANG); } case 190: break; case 17: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 191: break; case 114: { cupDebug = true; } case 192: break; case 87: { charCount = true; } case 193: break; case 58: { return symbol(CHAR,new Character('\r')); } case 194: break; case 66: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 195: break; case 134: { scanErrorException = yytext().substring(11).trim(); } case 196: break; case 60: { return symbol(CHAR,new Character('\b')); } case 197: break; case 35: { yybegin(REGEXP); return symbol(MORETHAN); } case 198: break; case 132: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 199: break; case 78: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 200: break; case 90: { isFinal = true; } case 201: break; case 137: { return symbol(UPPERCLASS); } case 202: break; case 46: { yybegin(REGEXP); return symbol(RBRACE); } case 203: break; case 51: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 204: break; case 28: { return symbol(QUESTION); } case 205: break; case 36: { string.append(yytext()); } case 206: break; case 135: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 207: break; case 140: { return symbol(JLETTERDIGITCLASS); } case 208: break; case 53: { nextState = REGEXPSTART; yybegin(COMMENT); } case 209: break; case 130: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 210: break; case 61: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 211: break; case 138: { return symbol(LOWERCLASS); } case 212: break; case 38: { yybegin(nextState); return symbol(STRING, string.toString()); } case 213: break; case 82: { classCode = conc(classCode,string); yybegin(MACROS); } case 214: break; case 8: { return symbol(IDENT, yytext()); } case 215: break; case 43: { return symbol(HAT); } case 216: break; case 29: { lookAheadUsed = true; return symbol(DOLLAR); } case 217: break; case 124: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 218: break; case 5: { states.insert(yytext(),inclusive_states); } case 219: break; case 84: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 220: break; case 127: { standalone = true; isInteger = true; } case 221: break; case 4: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 222: break; case 47: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 223: break; case 59: { return symbol(CHAR,new Character('\f')); } case 224: break; case 94: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 225: break; case 65: { string.append(yytext().charAt(1)); } case 226: break; case 115: { caseless = true; } case 227: break; case 39: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 228: break; case 117: { return symbol(DIGITCLASS); } case 229: break; case 64: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 230: break; case 30: { bolUsed = true; return symbol(HAT); } case 231: break; case 105: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 232: break; case 102: { isIntWrap = true; } case 233: break; case 41: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 234: break; case 116: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 235: break; case 31: { actionText.append(yytext()); } case 236: break; case 86: { lineCount = true; } case 237: break; case 128: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 238: break; case 104: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 239: break; case 83: { isInteger = true; } case 240: break; case 129: { return symbol(JLETTERCLASS); } case 241: break; case 98: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 242: break; case 18: { return symbol(STAR); } case 243: break; case 121: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 244: break; case 44: { return symbol(DASH); } case 245: break; case 106: { className = yytext().substring(7).trim(); } case 246: break; case 62: { nextState = REGEXP; yybegin(COMMENT); } case 247: break; case 136: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 248: break; case 22: { return symbol(BAR); } case 249: break; case 125: { functionName = yytext().substring(10).trim(); } case 250: break; case 13: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 251: break; case 119: { eofVal = string.toString(); yybegin(MACROS); } case 252: break; case 73: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 253: break; case 24: { return symbol(TILDE); } case 254: break; case 139: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 255: break; case 103: { notUnix = true; } case 256: break; case 89: { packed = false; useRowMap = true; } case 257: break; case 20: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 258: break; case 2: { /* ignore */ } case 259: break; case 93: { return symbol(UNICODE); } case 260: break; case 16: { return symbol(POINT); } case 261: break; case 72: { string.append('\b'); } case 262: break; case 21: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 263: break; case 131: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 264: break; case 96: { packed = false; useRowMap = false; } case 265: break; case 7: { yybegin(MACROS); } case 266: break; case 75: { string.setLength(0); yybegin(COPY); } case 267: break; case 42: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 268: break; case 118: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 269: break; case 52: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 270: break; case 50: { nextState = MACROS; yybegin(COMMENT); } case 271: break; case 10: { yybegin(REGEXP); return symbol(EQUALS); } case 272: break; case 34: { return symbol(COMMA); } case 273: break; case 1: { return symbol(EOF); } case 274: break; case 100: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 275: break; case 71: { string.append('\f'); } case 276: break; case 40: { balance++; return symbol(OPENCLASS); } case 277: break; case 133: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 278: break; case 109: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 279: break; case 6: { } case 280: break; default: if (yyFlexInput == YYEOF && yyFlexStartRead == yyFlexCurrentPos) { yyFlexAtEOF = true; yyFlexDoEOF(); switch (yyFlexLexicalState) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yyFlexScanError(YY_NO_MATCH); } } } }
|
6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/7127ef36c07cc747ba55753a94d44dca753c5c62/LexScan.java/buggy/src/JFlex/LexScan.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
19667,
1210,
31,
565,
509,
9016,
19667,
1803,
31,
565,
509,
5378,
9016,
19667,
1429,
48,
273,
1624,
61,
67,
16596,
31,
565,
509,
5378,
9016,
19667,
1999,
863,
48,
273,
1624,
61,
67,
11226,
8352,
31,
565,
509,
5378,
9016,
19667,
3843,
48,
273,
1624,
61,
67,
11616,
31,
565,
509,
9016,
19667,
7621,
823,
1616,
67,
80,
273,
9016,
19667,
7621,
823,
1616,
273,
300,
21,
31,
565,
1250,
9016,
67,
17416,
67,
6206,
823,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
3472,
1466,
30,
1377,
509,
9016,
19667,
3935,
1616,
48,
31,
1377,
509,
9016,
19667,
21486,
1616,
48,
273,
9016,
19667,
21486,
1616,
31,
1377,
509,
9016,
19667,
1638,
1994,
48,
273,
9016,
19667,
1638,
1994,
31,
1377,
1149,
5378,
9016,
19667,
1892,
48,
273,
9016,
19667,
1892,
31,
1377,
1149,
5378,
9016,
39,
863,
48,
273,
1624,
61,
67,
39,
8352,
31,
1377,
1250,
9016,
19667,
54,
273,
629,
31,
1377,
364,
261,
6795,
19667,
3935,
1616,
48,
273,
9016,
19667,
1685,
1994,
31,
9016,
19667,
3935,
1616,
48,
411,
9016,
19667,
21486,
1616,
48,
31,
4766,
11794,
9016,
19667,
3935,
1616,
48,
27245,
288,
3639,
1620,
261,
6795,
19667,
1892,
48,
63,
6795,
19667,
3935,
1616,
48,
5717,
288,
3639,
648,
2337,
89,
3784,
38,
4278,
3639,
648,
2337,
89,
3784,
39,
4278,
3639,
648,
2337,
89,
713,
7140,
4278,
3639,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
19667,
1210,
31,
565,
509,
9016,
19667,
1803,
31,
565,
509,
5378,
9016,
19667,
1429,
48,
273,
1624,
61,
67,
16596,
31,
565,
509,
5378,
9016,
19667,
1999,
863,
48,
273,
1624,
61,
67,
11226,
8352,
31,
565,
509,
5378,
9016,
19667,
3843,
48,
273,
1624,
61,
67,
11616,
31,
565,
509,
9016,
19667,
7621,
823,
1616,
67,
80,
273,
9016,
19667,
7621,
823,
1616,
273,
300,
21,
31,
565,
1250,
9016,
67,
17416,
67,
6206,
823,
31,
565,
1323,
261,
3767,
13,
288,
1377,
368,
3472,
1466,
30,
1377,
509,
9016,
19667,
3935,
1616,
48,
31,
1377,
509,
9016,
19667,
21486,
2
] |
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating();
|
public quickfix.field.CreditRating getCreditRating() throws FieldNotFound { quickfix.field.CreditRating value = new quickfix.field.CreditRating();
|
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/clean/src/java/src/quickfix/fix43/TradeCaptureReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
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,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
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
] |
protected static Boolean proxyEquals(Object aProxy, Object aOther) {
|
protected static Boolean proxyEquals(Object aProxy, Object aOther) {
|
protected static Boolean proxyEquals(Object aProxy, Object aOther) { return (aProxy == aOther ? Boolean.TRUE : Boolean.FALSE); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/ba8d2398273dbebab99f9d4960014aadef4a85f3/XPCOMJavaProxy.java/clean/extensions/java/xpcom/XPCOMJavaProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
3411,
2889,
8867,
12,
921,
279,
3886,
16,
1033,
279,
8290,
13,
225,
288,
565,
327,
261,
69,
3886,
422,
279,
8290,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
3411,
2889,
8867,
12,
921,
279,
3886,
16,
1033,
279,
8290,
13,
225,
288,
565,
327,
261,
69,
3886,
422,
279,
8290,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource();
|
public quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { quickfix.field.PartyIDSource value = new quickfix.field.PartyIDSource();
|
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Allocation.java/clean/src/java/src/quickfix/fix43/Allocation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
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
] |
this.prefix = prefix; this.workspacePath = workspacePath; this.resourcePath = resourcePath; this.factory = factory; }
|
this.prefix = prefix; this.workspacePath = workspacePath; this.resourcePath = resourcePath; this.factory = factory; StringBuffer buf = new StringBuffer(prefix); if (workspacePath != null) { buf.append(workspacePath); } if (resourcePath != null) { buf.append(Text.escapePath(resourcePath)); } if (buf.charAt(buf.length() - 1) != '/') { buf.append("/"); } href = buf.toString(); }
|
DavResourceLocatorImpl(String prefix, String workspacePath, String resourcePath, DavLocatorFactory factory) { this.prefix = prefix; this.workspacePath = workspacePath; this.resourcePath = resourcePath; this.factory = factory; }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/4fdade8a8a0ca260371a4274ff24ee70c758a80e/DavLocatorFactoryImpl.java/clean/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
40,
842,
1420,
5786,
2828,
12,
780,
1633,
16,
514,
6003,
743,
16,
514,
15467,
16,
463,
842,
5786,
1733,
3272,
13,
288,
202,
565,
333,
18,
3239,
273,
1633,
31,
202,
565,
333,
18,
14915,
743,
273,
6003,
743,
31,
202,
565,
333,
18,
3146,
743,
273,
15467,
31,
202,
565,
333,
18,
6848,
273,
3272,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
40,
842,
1420,
5786,
2828,
12,
780,
1633,
16,
514,
6003,
743,
16,
514,
15467,
16,
463,
842,
5786,
1733,
3272,
13,
288,
202,
565,
333,
18,
3239,
273,
1633,
31,
202,
565,
333,
18,
14915,
743,
273,
6003,
743,
31,
202,
565,
333,
18,
3146,
743,
273,
15467,
31,
202,
565,
333,
18,
6848,
273,
3272,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (notEmpty(_references))
|
if (notEmpty(_references)) {
|
protected String getReferencesParameter() { //bail on no references if (notEmpty(_references)) return "/reference:"+_references; else return null; }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/7a4e9ca2278d5e22a3492abb964312150d0286b9/CSharp.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
5561,
2980,
1662,
1435,
288,
3639,
368,
70,
671,
603,
1158,
5351,
3639,
309,
261,
902,
1921,
24899,
14353,
3719,
288,
2398,
327,
2206,
6180,
2773,
15,
67,
14353,
31,
3639,
469,
5411,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
4750,
514,
5561,
2980,
1662,
1435,
288,
3639,
368,
70,
671,
603,
1158,
5351,
3639,
309,
261,
902,
1921,
24899,
14353,
3719,
288,
2398,
327,
2206,
6180,
2773,
15,
67,
14353,
31,
3639,
469,
5411,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void runTest () { /* * lets make a Context and add the event cartridge */ VelocityContext inner = new VelocityContext(); /* * Now make an event cartridge, register all the * event handlers (at once) and attach it to the * Context */ EventCartridge ec = new EventCartridge(); ec.addEventHandler(this); ec.attachToContext( inner ); /* * now wrap the event cartridge - we want to make sure that * we can do this w/o harm */ VelocityContext context = new VelocityContext( inner ); context.put("name", "Velocity"); try { /* * First, the reference insertion handler */ String s = "$name"; StringWriter w = new StringWriter(); Velocity.evaluate( context, w, "mystring", s ); if ( !w.toString().equals( REFERENCE_VALUE )) { fail( "Reference insertion test 1"); } /* * using the same handler, we can deal with * null references as well */ s = "$floobie"; w = new StringWriter(); Velocity.evaluate( context, w, "mystring", s ); if ( !w.toString().equals( NO_REFERENCE_VALUE )) { fail( "Reference insertion test 2"); } /* * now lets test setting a null value - this test * should result in *no* log output. */ s = "#set($settest = $NotAReference)"; w = new StringWriter(); logString = null; Velocity.evaluate( context, w, "mystring", s ); if( logString != null) { fail( "NullSetEventHandler test 1"); } /* * now lets test setting a null value - this test * should result in log output. */ s = "#set($logthis = $NotAReference)"; w = new StringWriter(); logString = null; Velocity.evaluate( context, w, "mystring", s ); if( logString == null) { fail( "NullSetEventHandler test 1"); } /* * finally, we test a method exception event - we do this * by putting this class in the context, and calling * a method that does nothing but throw an exception. * we use a little switch to turn the event handling * on and off * * Note also how the reference insertion process * happens as well */ exceptionSwitch = true; context.put("this", this ); s = " $this.throwException()"; w = new StringWriter(); try { Velocity.evaluate( context, w, "mystring", s ); } catch( MethodInvocationException mee ) { fail("MethodExceptionEvent test 1"); } catch( Exception e ) { fail("MethodExceptionEvent test 1"); } /* * now, we turn the switch off, and we can see that the * exception will propgate all the way up here, and * wil be caught by the catch() block below */ exceptionSwitch = false; s = " $this.throwException()"; w = new StringWriter(); try { Velocity.evaluate( context, w, "mystring", s ); fail("MethodExceptionEvent test 2"); } catch( MethodInvocationException mee ) { /* * correct - should land here... */ } catch( Exception e ) { fail("MethodExceptionEvent test 2"); } } catch( ParseErrorException pee ) { fail("ParseErrorException" + pee); } catch( MethodInvocationException mee ) { fail("MethodInvocationException" + mee); } catch( Exception e ) { fail("Exception" + e); } }
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/59780514f566344db5c57333d6182e2f5f040af7/EventHandlingTestCase.java/buggy/src/java/org/apache/velocity/test/EventHandlingTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1832,
565,
288,
3639,
1748,
1850,
380,
225,
14557,
1221,
279,
1772,
471,
527,
326,
871,
5926,
313,
350,
908,
540,
1195,
7734,
24561,
1042,
3443,
273,
394,
24561,
1042,
5621,
3639,
1748,
540,
380,
225,
4494,
1221,
392,
871,
5926,
313,
350,
908,
16,
1744,
777,
326,
1850,
380,
225,
871,
4919,
261,
270,
3647,
13,
471,
3306,
518,
358,
326,
540,
380,
225,
1772,
540,
1195,
3639,
2587,
16321,
313,
350,
908,
6557,
273,
394,
2587,
16321,
313,
350,
908,
5621,
3639,
6557,
18,
1289,
16402,
12,
2211,
1769,
3639,
6557,
18,
7331,
774,
1042,
12,
3443,
11272,
1850,
1748,
540,
380,
225,
2037,
2193,
326,
871,
5926,
313,
350,
908,
300,
732,
2545,
358,
1221,
3071,
716,
540,
380,
225,
732,
848,
741,
333,
341,
19,
83,
366,
4610,
540,
1195,
3639,
24561,
1042,
819,
273,
394,
24561,
1042,
12,
3443,
11272,
3639,
819,
18,
458,
2932,
529,
3113,
315,
27522,
8863,
3639,
775,
3639,
288,
5411,
1748,
2398,
380,
225,
5783,
16,
326,
2114,
12626,
1838,
2398,
1195,
5411,
514,
272,
273,
4662,
529,
14432,
13491,
17436,
341,
273,
394,
17436,
5621,
5411,
24561,
18,
21024,
12,
819,
16,
341,
16,
315,
4811,
1080,
3113,
272,
11272,
13491,
309,
261,
401,
91,
18,
10492,
7675,
14963,
12,
22898,
67,
4051,
8623,
5411,
288,
7734,
2321,
12,
315,
2404,
12626,
1842,
404,
8863,
5411,
289,
5411,
1748,
2398,
380,
225,
1450,
326,
1967,
1838,
16,
732,
848,
10490,
598,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
4709,
1832,
565,
288,
3639,
1748,
1850,
380,
225,
14557,
1221,
279,
1772,
471,
527,
326,
871,
5926,
313,
350,
908,
540,
1195,
7734,
24561,
1042,
3443,
273,
394,
24561,
1042,
5621,
3639,
1748,
540,
380,
225,
4494,
1221,
392,
871,
5926,
313,
350,
908,
16,
1744,
777,
326,
1850,
380,
225,
871,
4919,
261,
270,
3647,
13,
471,
3306,
518,
358,
326,
540,
380,
225,
1772,
540,
1195,
3639,
2587,
16321,
313,
350,
908,
6557,
273,
394,
2587,
16321,
313,
350,
908,
5621,
3639,
6557,
18,
1289,
16402,
12,
2211,
1769,
3639,
6557,
18,
7331,
774,
1042,
12,
3443,
11272,
1850,
1748,
540,
380,
225,
2037,
2193,
326,
871,
5926,
313,
350,
908,
300,
2
] |
||
MenuManager menuMgr = new MenuManager("#PopupMenu"); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() {
|
MenuManager menuManager = new MenuManager("#PopupMenu"); menuManager.setRemoveAllWhenShown(true); menuManager.addMenuListener(new IMenuListener() {
|
private void hookContextMenu() { MenuManager menuMgr = new MenuManager("#PopupMenu"); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { TaskListView.this.fillContextMenu(manager); } }); Menu menu = menuMgr.createContextMenu(getViewer().getControl()); getViewer().getControl().setMenu(menu); getSite().registerContextMenu(menuMgr, getViewer()); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/19be06899ce2b836088a223d4e52e840e979a179/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
27315,
1435,
288,
202,
202,
4599,
1318,
3824,
9455,
273,
394,
9809,
1318,
2932,
7,
13770,
4599,
8863,
202,
202,
5414,
9455,
18,
542,
3288,
1595,
9434,
27042,
12,
3767,
1769,
202,
202,
5414,
9455,
18,
1289,
4599,
2223,
12,
2704,
467,
4599,
2223,
1435,
288,
1082,
202,
482,
918,
3824,
24813,
774,
5706,
12,
3445,
2104,
1318,
3301,
13,
288,
9506,
202,
2174,
682,
1767,
18,
2211,
18,
5935,
27315,
12,
4181,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
4599,
3824,
273,
3824,
9455,
18,
2640,
27315,
12,
588,
18415,
7675,
588,
3367,
10663,
202,
202,
588,
18415,
7675,
588,
3367,
7675,
542,
4599,
12,
5414,
1769,
202,
202,
588,
4956,
7675,
4861,
27315,
12,
5414,
9455,
16,
8893,
264,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
27315,
1435,
288,
202,
202,
4599,
1318,
3824,
9455,
273,
394,
9809,
1318,
2932,
7,
13770,
4599,
8863,
202,
202,
5414,
9455,
18,
542,
3288,
1595,
9434,
27042,
12,
3767,
1769,
202,
202,
5414,
9455,
18,
1289,
4599,
2223,
12,
2704,
467,
4599,
2223,
1435,
288,
1082,
202,
482,
918,
3824,
24813,
774,
5706,
12,
3445,
2104,
1318,
3301,
13,
288,
9506,
202,
2174,
682,
1767,
18,
2211,
18,
5935,
27315,
12,
4181,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
4599,
3824,
273,
3824,
9455,
18,
2640,
27315,
12,
588,
18415,
7675,
588,
3367,
10663,
202,
202,
588,
18415,
7675,
588,
3367,
7675,
542,
4599,
12,
5414,
1769,
202,
202,
588,
4956,
2
] |
return new Integer(rs.getInt( "role_id" )); }
|
return new Integer( rs.getInt( "role_id" ) ); }
|
Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { return new Integer(rs.getInt( "role_id" )); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a90e8dc58b604eb2343b8f739ed25f49188b96da/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
11794,
1033,
852,
3335,
1999,
1265,
1253,
542,
19121,
12,
10842,
3597,
262,
1216,
6483,
288,
27573,
327,
394,
2144,
12,
5453,
18,
588,
1702,
12,
315,
4615,
67,
350,
6,
262,
1769,
18701,
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,
11794,
1033,
852,
3335,
1999,
1265,
1253,
542,
19121,
12,
10842,
3597,
262,
1216,
6483,
288,
27573,
327,
394,
2144,
12,
5453,
18,
588,
1702,
12,
315,
4615,
67,
350,
6,
262,
1769,
18701,
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
] |
setOrientation((Orientation)newValue);
|
setOrientation((Orientation) newValue);
|
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case ModelPackage.CHART_WITH_AXES__VERSION: setVersion((String)newValue); return; case ModelPackage.CHART_WITH_AXES__TYPE: setType((String)newValue); return; case ModelPackage.CHART_WITH_AXES__SUB_TYPE: setSubType((String)newValue); return; case ModelPackage.CHART_WITH_AXES__DESCRIPTION: setDescription((Text)newValue); return; case ModelPackage.CHART_WITH_AXES__BLOCK: setBlock((Block)newValue); return; case ModelPackage.CHART_WITH_AXES__DIMENSION: setDimension((ChartDimension)newValue); return; case ModelPackage.CHART_WITH_AXES__SCRIPT: setScript((String)newValue); return; case ModelPackage.CHART_WITH_AXES__UNITS: setUnits((String)newValue); return; case ModelPackage.CHART_WITH_AXES__SERIES_THICKNESS: setSeriesThickness(((Double)newValue).doubleValue()); return; case ModelPackage.CHART_WITH_AXES__SERIES_HINTS: setSeriesHints((SeriesHint)newValue); return; case ModelPackage.CHART_WITH_AXES__GRID_COLUMN_COUNT: setGridColumnCount(((Integer)newValue).intValue()); return; case ModelPackage.CHART_WITH_AXES__EXTENDED_PROPERTIES: getExtendedProperties().clear(); getExtendedProperties().addAll((Collection)newValue); return; case ModelPackage.CHART_WITH_AXES__SAMPLE_DATA: setSampleData((SampleData)newValue); return; case ModelPackage.CHART_WITH_AXES__AXES: getAxes().clear(); getAxes().addAll((Collection)newValue); return; case ModelPackage.CHART_WITH_AXES__WALL_FILL: setWallFill((Fill)newValue); return; case ModelPackage.CHART_WITH_AXES__FLOOR_FILL: setFloorFill((Fill)newValue); return; case ModelPackage.CHART_WITH_AXES__ORIENTATION: setOrientation((Orientation)newValue); return; case ModelPackage.CHART_WITH_AXES__UNIT_SPACING: setUnitSpacing(((Double)newValue).doubleValue()); return; } eDynamicSet(eFeature, newValue); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ChartWithAxesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithAxesImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
5757,
30,
7734,
16770,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2399,
30,
7734,
8811,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
15911,
30,
7734,
13812,
12443,
1528,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
11403,
30,
7734,
444,
1768,
12443,
1768,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2565,
958,
3156,
1146,
30,
7734,
444,
8611,
12443,
7984,
8611,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
10885,
30,
7734,
444,
3651,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
24325,
30,
7734,
444,
7537,
12443,
780,
13,
2704,
620,
1769,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
5757,
30,
7734,
16770,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
2399,
30,
7734,
8811,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
9147,
67,
2501,
3991,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12443,
780,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
67,
2
] |
&& v.length >= 4 && lgv.length >= 4;
|
&& (v.length >= 4) && (lgv.length >= 4);
|
public static boolean sameArbitraryVersion(String[] v, String[] lgv) { return v[0].equals(lgv[0]) && v[1].equals(lgv[1]) && v.length >= 4 && lgv.length >= 4; }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Version.java/clean/src/freenet/node/Version.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
1967,
686,
3682,
3345,
1444,
12,
780,
8526,
331,
16,
514,
8526,
15266,
90,
13,
288,
202,
202,
2463,
331,
63,
20,
8009,
14963,
12,
23623,
90,
63,
20,
5717,
1082,
202,
10,
10,
331,
63,
21,
8009,
14963,
12,
23623,
90,
63,
21,
5717,
1082,
202,
10,
10,
331,
18,
2469,
1545,
1059,
1082,
202,
10,
10,
15266,
90,
18,
2469,
1545,
1059,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
1967,
686,
3682,
3345,
1444,
12,
780,
8526,
331,
16,
514,
8526,
15266,
90,
13,
288,
202,
202,
2463,
331,
63,
20,
8009,
14963,
12,
23623,
90,
63,
20,
5717,
1082,
202,
10,
10,
331,
63,
21,
8009,
14963,
12,
23623,
90,
63,
21,
5717,
1082,
202,
10,
10,
331,
18,
2469,
1545,
1059,
1082,
202,
10,
10,
15266,
90,
18,
2469,
1545,
1059,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
hosts.add(new IpAddress(host, i));
|
addr=new IpAddress(host, i); retval.add(addr);
|
private List createInitialHosts(String l) { List tmp=new List(); StringTokenizer tok=new StringTokenizer(l, ","); String t; while(tok.hasMoreTokens()) { try { t=tok.nextToken(); String host=t.substring(0, t.indexOf('[')); int port=Integer.parseInt(t.substring(t.indexOf('[') + 1, t.indexOf(']'))); List hosts = new List(); for(int i=port; i < port + port_range; i++) { hosts.add(new IpAddress(host, i)); } tmp.add(hosts); } catch(NumberFormatException e) { if(log.isErrorEnabled()) log.error("exeption is " + e); } } return tmp; }
|
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/a006476c9960c19a71b917e559878db2575b73a2/TCPPING.java/buggy/src/org/jgroups/protocols/TCPPING.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
752,
4435,
12172,
12,
780,
328,
13,
288,
3639,
987,
1853,
33,
2704,
987,
5621,
3639,
16370,
946,
33,
2704,
16370,
12,
80,
16,
5753,
1769,
3639,
514,
268,
31,
3639,
1323,
12,
17692,
18,
5332,
7417,
5157,
10756,
288,
5411,
775,
288,
7734,
268,
33,
17692,
18,
4285,
1345,
5621,
7734,
514,
1479,
33,
88,
18,
28023,
12,
20,
16,
268,
18,
31806,
2668,
3292,
10019,
7734,
509,
1756,
33,
4522,
18,
2670,
1702,
12,
88,
18,
28023,
12,
88,
18,
31806,
2668,
3292,
13,
397,
404,
16,
268,
18,
31806,
2668,
3864,
3719,
1769,
7734,
987,
7206,
273,
394,
987,
5621,
7734,
364,
12,
474,
277,
33,
655,
31,
277,
411,
1756,
397,
1756,
67,
3676,
31,
277,
27245,
288,
10402,
3091,
33,
2704,
14709,
1887,
12,
2564,
16,
277,
1769,
5221,
18,
1289,
12,
4793,
1769,
7734,
289,
7734,
1853,
18,
1289,
12,
11588,
1769,
5411,
289,
5411,
1044,
12,
1854,
9291,
425,
13,
288,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
14880,
375,
353,
315,
397,
425,
1769,
5411,
289,
3639,
289,
3639,
327,
1853,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
752,
4435,
12172,
12,
780,
328,
13,
288,
3639,
987,
1853,
33,
2704,
987,
5621,
3639,
16370,
946,
33,
2704,
16370,
12,
80,
16,
5753,
1769,
3639,
514,
268,
31,
3639,
1323,
12,
17692,
18,
5332,
7417,
5157,
10756,
288,
5411,
775,
288,
7734,
268,
33,
17692,
18,
4285,
1345,
5621,
7734,
514,
1479,
33,
88,
18,
28023,
12,
20,
16,
268,
18,
31806,
2668,
3292,
10019,
7734,
509,
1756,
33,
4522,
18,
2670,
1702,
12,
88,
18,
28023,
12,
88,
18,
31806,
2668,
3292,
13,
397,
404,
16,
268,
18,
31806,
2668,
3864,
3719,
1769,
7734,
987,
7206,
273,
394,
987,
5621,
7734,
364,
12,
474,
277,
33,
655,
31,
277,
411,
1756,
397,
1756,
2
] |
return rubyClass;
|
return parentModule;
|
public RubyModule getRubyClass() { if (classStack.empty()) { return null; } RubyModule rubyClass = (RubyModule) classStack.peek(); if (rubyClass.isIncluded()) { return ((IncludedModuleWrapper) rubyClass).getDelegate(); } return rubyClass; }
|
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/abfe85d15f992ecf4447b155d177050fe2239c3b/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4170,
10340,
797,
1435,
288,
3639,
309,
261,
1106,
2624,
18,
5531,
10756,
288,
5411,
327,
446,
31,
3639,
289,
3639,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,
667,
2624,
18,
347,
3839,
5621,
3639,
309,
261,
27768,
797,
18,
291,
19323,
10756,
288,
5411,
327,
14015,
19323,
3120,
3611,
13,
22155,
797,
2934,
588,
9586,
5621,
3639,
289,
3639,
327,
982,
3120,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4170,
10340,
797,
1435,
288,
3639,
309,
261,
1106,
2624,
18,
5531,
10756,
288,
5411,
327,
446,
31,
3639,
289,
3639,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,
667,
2624,
18,
347,
3839,
5621,
3639,
309,
261,
27768,
797,
18,
291,
19323,
10756,
288,
5411,
327,
14015,
19323,
3120,
3611,
13,
22155,
797,
2934,
588,
9586,
5621,
3639,
289,
3639,
327,
982,
3120,
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
] |
searchJob = new SearchJob(searcherModel, filter, searcherHistory);
|
searchJob = new SearchJob(contentProvider);
|
private void scheduleSearchJob() { stop(); searcherModel = new SearcherModel(); if (lastComplitedFilter != null && lastComplitedFilter.isSubFilter(filter)) { searchJob = new CachedResultSearchJob(lastCompletedResult, searcherModel, filter); } else { lastComplitedFilter = null; lastCompletedResult = null; searchJob = new SearchJob(searcherModel, filter, searcherHistory); } searchJob.schedule(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/FilteredItemsSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4788,
2979,
2278,
1435,
288,
202,
202,
5681,
5621,
202,
202,
3072,
264,
1488,
273,
394,
5167,
264,
1488,
5621,
202,
202,
430,
261,
2722,
799,
1127,
329,
1586,
480,
446,
9506,
202,
10,
10,
1142,
799,
1127,
329,
1586,
18,
291,
1676,
1586,
12,
2188,
3719,
288,
1082,
202,
3072,
2278,
273,
394,
15771,
1253,
2979,
2278,
12,
2722,
9556,
1253,
16,
6862,
202,
3072,
264,
1488,
16,
1034,
1769,
202,
202,
97,
469,
288,
1082,
202,
2722,
799,
1127,
329,
1586,
273,
446,
31,
1082,
202,
2722,
9556,
1253,
273,
446,
31,
1082,
202,
3072,
2278,
273,
394,
5167,
2278,
12,
3072,
264,
1488,
16,
1034,
16,
27349,
5623,
1769,
202,
202,
97,
202,
202,
3072,
2278,
18,
10676,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4788,
2979,
2278,
1435,
288,
202,
202,
5681,
5621,
202,
202,
3072,
264,
1488,
273,
394,
5167,
264,
1488,
5621,
202,
202,
430,
261,
2722,
799,
1127,
329,
1586,
480,
446,
9506,
202,
10,
10,
1142,
799,
1127,
329,
1586,
18,
291,
1676,
1586,
12,
2188,
3719,
288,
1082,
202,
3072,
2278,
273,
394,
15771,
1253,
2979,
2278,
12,
2722,
9556,
1253,
16,
6862,
202,
3072,
264,
1488,
16,
1034,
1769,
202,
202,
97,
469,
288,
1082,
202,
2722,
799,
1127,
329,
1586,
273,
446,
31,
1082,
202,
2722,
9556,
1253,
273,
446,
31,
1082,
202,
3072,
2278,
273,
394,
5167,
2278,
12,
3072,
264,
1488,
16,
1034,
16,
27349,
5623,
1769,
202,
202,
97,
2
] |
ByteBuffer a = (ByteBuffer) obj;
|
ByteBuffer other = (ByteBuffer) obj;
|
public int compareTo (Object obj) { ByteBuffer a = (ByteBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/a221385cec60e1ba526d292898aeb99953891407/ByteBuffer.java/clean/libjava/java/nio/ByteBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
7400,
1308,
273,
261,
12242,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
31,
565,
309,
16051,
711,
1076,
1832,
747,
3639,
401,
279,
18,
5332,
1076,
1832,
13,
1377,
288,
3639,
327,
404,
31,
1377,
289,
565,
509,
436,
273,
4463,
261,
1769,
565,
509,
277,
21,
273,
1754,
261,
1769,
565,
509,
277,
22,
273,
279,
18,
3276,
261,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
436,
31,
277,
27245,
1377,
288,
3639,
509,
268,
273,
261,
474,
13,
261,
588,
261,
77,
21,
13,
300,
279,
18,
588,
261,
77,
22,
10019,
3639,
309,
261,
88,
480,
374,
13,
1850,
288,
5411,
327,
261,
474,
13,
268,
31,
1850,
289,
1377,
289,
565,
327,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
261,
921,
1081,
13,
225,
288,
565,
7400,
1308,
273,
261,
12242,
13,
1081,
31,
565,
309,
261,
69,
18,
17956,
1832,
480,
4463,
1832,
13,
1377,
327,
404,
31,
565,
309,
16051,
711,
1076,
1832,
747,
3639,
401,
279,
18,
5332,
1076,
1832,
13,
1377,
288,
3639,
327,
404,
31,
1377,
289,
565,
509,
436,
273,
4463,
261,
1769,
565,
509,
277,
21,
273,
1754,
261,
1769,
565,
509,
277,
22,
273,
279,
18,
3276,
261,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
436,
31,
277,
27245,
1377,
288,
3639,
509,
268,
273,
261,
474,
13,
261,
588,
261,
77,
21,
13,
300,
279,
18,
588,
261,
77,
22,
10019,
2
] |
String nullFlag = r.getString(6); String typname = r.getString(10);
|
tuple[0] = null; tuple[1] = rs.getBytes("nspname"); tuple[2] = rs.getBytes("relname"); tuple[3] = rs.getBytes("attname"); tuple[4] = Integer.toString(connection.getSQLType(typeOid)).getBytes(); String pgType = connection.getPGType(typeOid); tuple[5] = pgType.getBytes();
|
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, NAME_SIZE); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, NAME_SIZE); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
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,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
2
] |
if (state.cx.getLanguageVersion() != Context.VERSION_DEFAULT && state.cx.getLanguageVersion() <= Context.VERSION_1_4) { /* octal escape */
|
/* * Under 'strict' ECMA 3, we interpret \0 as NUL and don't accept octal. * However, (XXX and since Rhino doesn't have a 'strict' mode) we'll just * behave the old way for compatibility reasons. * (see http: * */ /* octal escape */ num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': termStart = state.cp - 1; num = getDecimalValue(c, state); /* * n > 9 and > count of parentheses, * then treat as octal instead. */ if ((num > 9) && (num > state.parenCount)) { state.cp = termStart;
|
parseTerm(CompilerState state) { char[] src = state.cpbegin; char c = src[state.cp++]; int nDigits = 2; int parenBaseCount = state.parenCount; int num, tmp; RENode term; int termStart; int ocp = state.cp; switch (c) { /* assertions and atoms */ case '^': state.result = new RENode(REOP_BOL); if (state.result == null) return false; state.progLength++; return true; case '$': state.result = new RENode(REOP_EOL); if (state.result == null) return false; state.progLength++; return true; case '\\': if (state.cp < state.cpend) { c = src[state.cp++]; switch (c) { /* assertion escapes */ case 'b' : state.result = new RENode(REOP_WBDRY); if (state.result == null) return false; state.progLength++; return true; case 'B': state.result = new RENode(REOP_WNONBDRY); if (state.result == null) return false; state.progLength++; return true; /* Decimal escape */ case '0': if (state.cx.getLanguageVersion() != Context.VERSION_DEFAULT && state.cx.getLanguageVersion() <= Context.VERSION_1_4) { /* octal escape */ num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); } else c = 0; doFlat(state, c); break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': termStart = state.cp - 1; num = getDecimalValue(c, state); if (state.cx.getLanguageVersion() != Context.VERSION_DEFAULT && state.cx.getLanguageVersion() <= Context.VERSION_1_4) { /* * n in [8-9] and > count of parentheses, * then revert to '8' or '9', ignoring the '\' */ if (((num == 8) || (num == 9)) && (num > state.parenCount)) { c = (char)(num + '0'); doFlat(state, c); break; } /* * more than 1 digit, or a number greater than * the count of parentheses => it's an octal */ if (((state.cp - termStart) > 1) || (num > state.parenCount)) { state.cp = termStart; num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; } state.result = new RENode(REOP_BACKREF); if (state.result == null) return false; state.result.parenIndex = num - 1; state.progLength += 3; } else { state.result = new RENode(REOP_BACKREF); if (state.result == null) return false; state.result.parenIndex = num - 1; state.progLength += 3; } break; /* Control escape */ case 'f': c = 0xC; doFlat(state, c); break; case 'n': c = 0xA; doFlat(state, c); break; case 'r': c = 0xD; doFlat(state, c); break; case 't': c = 0x9; doFlat(state, c); break; case 'v': c = 0xB; doFlat(state, c); break; /* Control letter */ case 'c': if (((state.cp + 1) < state.cpend) && Character.isLetter(src[state.cp + 1])) c = (char)(src[state.cp++] & 0x1F); else { /* back off to accepting the original '\' as a literal */ --state.cp; c = '\\'; } doFlat(state, c); break; /* UnicodeEscapeSequence */ case 'u': nDigits += 2; // fall thru... /* HexEscapeSequence */ case 'x': { int n = 0; int i; for (i = 0; (i < nDigits) && (state.cp < state.cpend); i++) { int digit; c = src[state.cp++]; if (!isHex(c)) { /* * back off to accepting the original * 'u' or 'x' as a literal */ state.cp -= (i + 2); n = src[state.cp++]; break; } n = (n << 4) | unHex(c); } c = (char)(n); } doFlat(state, c); break; /* Character class escapes */ case 'd': state.result = new RENode(REOP_DIGIT); if (state.result == null) return false; state.progLength++; break; case 'D': state.result = new RENode(REOP_NONDIGIT); state.progLength++; break; case 's': state.result = new RENode(REOP_SPACE); state.progLength++; break; case 'S': state.result = new RENode(REOP_NONSPACE); state.progLength++; break; case 'w': state.result = new RENode(REOP_ALNUM); state.progLength++; break; case 'W': state.result = new RENode(REOP_NONALNUM); state.progLength++; break; /* IdentityEscape */ default: state.result = new RENode(REOP_FLAT); if (state.result == null) return false; state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } break; } else { /* a trailing '\' is an error */ reportError("msg.trail.backslash", "", state); return false; } case '(': { RENode result = null; termStart = state.cp; if ((src[state.cp] == '?') && ( (src[state.cp + 1] == '=') || (src[state.cp + 1] == '!') || (src[state.cp + 1] == ':') )) { ++state.cp; switch (src[state.cp++]) { case '=': result = new RENode(REOP_ASSERT); if (result == null) return false; /* ASSERT, <next>, ... ASSERTTEST */ state.progLength += 4; break; case '!': result = new RENode(REOP_ASSERT_NOT); if (result == null) return false; /* ASSERTNOT, <next>, ... ASSERTNOTTEST */ state.progLength += 4; break; } } else { result = new RENode(REOP_LPAREN); /* LPAREN, <index>, ... RPAREN, <index> */ state.progLength += 6; if (result == null) return false; result.parenIndex = state.parenCount++; } if (!parseDisjunction(state)) return false; if ((state.cp == state.cpend) || (src[state.cp] != ')')) { reportError("msg.unterm.paren", "", state); return false; } else ++state.cp; if (result != null) { result.kid = state.result; state.result = result; } break; } case '[': state.result = new RENode(REOP_CLASS); if (state.result == null) return false; termStart = state.cp; state.result.startIndex = termStart; while (true) { if (state.cp == state.cpend) { reportError("msg.unterm.class", "", state); return false; } if (src[state.cp] == '\\') state.cp++; else { if (src[state.cp] == ']') { state.result.kidlen = state.cp - termStart; break; } } state.cp++; } state.result.index = state.classCount++; /* * Call calculateBitmapSize now as we want any errors it finds * to be reported during the parse phase, not at execution. */ if (!calculateBitmapSize(state, state.result, src, termStart, state.cp++)) return false; state.progLength += 3; /* CLASS, <index> */ break; case '.': state.result = new RENode(REOP_DOT); state.progLength++; break; default: state.result = new RENode(REOP_FLAT); if (state.result == null) return false; state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } term = state.result; boolean hasQ = false; if (state.cp < state.cpend) { switch (src[state.cp]) { case '+': state.result = new RENode(REOP_QUANT); if (state.result == null) return false; state.result.min = 1; state.result.max = -1; /* <PLUS>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '*': state.result = new RENode(REOP_QUANT); if (state.result == null) return false; state.result.min = 0; state.result.max = -1; /* <STAR>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '?': state.result = new RENode(REOP_QUANT); if (state.result == null) return false; state.result.min = 0; state.result.max = 1; /* <OPT>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '{': { int min = 0; int max = -1; int errIndex = state.cp++; state.result = new RENode(REOP_QUANT); if (state.result == null) return false; c = src[state.cp]; if (isDigit(c)) { ++state.cp; min = getDecimalValue(c, state); c = src[state.cp]; } else { reportError("msg.bad.quant", String.valueOf(src[state.cp]), state); return false; } if ((min >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (c == ',') { c = src[++state.cp]; if (isDigit(c)) { ++state.cp; max = getDecimalValue(c, state); c = src[state.cp]; if ((max >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (min > max) { reportError("msg.max.lt.min", String.valueOf(src[state.cp]), state); return false; } } if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } else { max = min; if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } state.result.min = min; state.result.max = max; /* QUANT, <min>, <max>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 12; if (c == '}') { hasQ = true; break; } else { reportError("msg.unterm.quant", String.valueOf(src[state.cp]), state); return false; } } } } if (!hasQ) return true; ++state.cp; state.result.kid = term; state.result.parenIndex = parenBaseCount; state.result.parenCount = state.parenCount - parenBaseCount; if ((state.cp < state.cpend) && (src[state.cp] == '?')) { ++state.cp; state.result.greedy = false; } else state.result.greedy = true; return true; }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/fd5470f403474ee9b77a283d42d603b568990313/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
273,
576,
31,
3639,
509,
22146,
2171,
1380,
273,
919,
18,
13012,
1380,
31,
3639,
509,
818,
16,
1853,
31,
3639,
2438,
907,
2481,
31,
3639,
509,
2481,
1685,
31,
3639,
509,
320,
4057,
273,
919,
18,
4057,
31,
3639,
1620,
261,
71,
13,
288,
3639,
1748,
7820,
471,
9006,
1195,
3639,
648,
10731,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
38,
1741,
1769,
5411,
309,
261,
2019,
18,
2088,
422,
446,
13,
1171,
327,
629,
31,
5411,
919,
18,
14654,
1782,
9904,
31,
5411,
327,
638,
31,
3639,
648,
3365,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
5842,
1769,
5411,
309,
261,
2019,
18,
2088,
422,
446,
13,
1171,
327,
629,
31,
5411,
919,
18,
14654,
1782,
9904,
31,
5411,
327,
638,
31,
3639,
648,
3718,
4278,
5411,
309,
261,
2019,
18,
4057,
411,
919,
18,
71,
1302,
13,
288,
7734,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
7734,
1620,
261,
71,
13,
288,
7734,
1748,
11240,
23802,
1195,
7734,
648,
296,
70,
11,
294,
10792,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
59,
38,
6331,
61,
1769,
10792,
309,
261,
2019,
18,
2088,
422,
446,
13,
7682,
327,
629,
31,
10792,
919,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
273,
576,
31,
3639,
509,
22146,
2171,
1380,
273,
919,
18,
13012,
1380,
31,
3639,
509,
818,
16,
1853,
31,
3639,
2438,
907,
2481,
31,
3639,
509,
2481,
1685,
31,
3639,
509,
320,
4057,
273,
919,
18,
4057,
31,
3639,
1620,
261,
71,
13,
288,
3639,
1748,
7820,
471,
9006,
1195,
3639,
648,
10731,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
38,
1741,
1769,
5411,
309,
261,
2019,
18,
2088,
422,
446,
13,
1171,
327,
629,
31,
5411,
2
] |
else {report ("4 multiple back edges.\n"); return;}
|
else {report ("4 multiple back edges.\n"); return true;}
|
static void unrollLeaf (OPT_LSTNode t, OPT_IR ir) { int instructionsInLoop = 0; OPT_BasicBlock exitBlock = null, succBlock = null, predBlock = null; OPT_BitVector nloop = t.loop; OPT_BasicBlock header = t.header; OPT_Instruction tmp; if (nloop == null) return; // examine what we got... report ("Leaf loop in " + ir.method + ": "+nloop+"\n"); if (ir.hasReachableExceptionHandlers()){ report ("0 IR may have exception handlers\n"); return;} // determine loop structure by looking at its blocks OPT_BasicBlockEnumeration loopBlocks = ir.getBasicBlocks(nloop); int blocks = 0; while (loopBlocks.hasMoreElements()) { OPT_BasicBlock b = loopBlocks.next(); blocks++; // check for size instructionsInLoop += b.getNumberOfRealInstructions(); if (instructionsInLoop > MaxInstructions) { report ("1 is too big\n"); return;} // look at the in edges. We want the header to be the only // block with out of loop incoming edges. OPT_BasicBlockEnumeration e = b.getIn(); if (b != header) { while (e.hasMoreElements()) { OPT_BasicBlock o = e.next(); if (!nloop.get(o.getNumber())) { report ("2 interior pointers.\n"); return;} } } else { // check the headers predecessors: there should be // one out of loop input and one backedge. // We can extend this for loops with several backedges, // if they all have the same conditions. int inEdges = 0; while (e.hasMoreElements()) { inEdges++; OPT_BasicBlock o = e.next(); if (!nloop.get(o.getNumber())) { if (predBlock == null) predBlock = o; else {report ("3 multi entry header.\n"); return;} } else { if (exitBlock == null) exitBlock = o; else {report ("4 multiple back edges.\n"); return;} } } } } // exitBlock must exit while (exitBlock.getNumberOfOut() == 1 && exitBlock.getNumberOfIn() == 1) exitBlock = exitBlock.getIn().next(); OPT_BasicBlockEnumeration e = exitBlock.getOut(); boolean exits = false; while (e.hasMoreElements()) { OPT_BasicBlock b = e.next(); if (!nloop.get(b.getNumber())) {exits = true; break;} } if (!exits) {report ("5 exitBlock doesn't exit\n"); return;} if (exitBlock == header && blocks > 1) { report("6 while loop? ("+blocks+")\n"); return;} // So far, so good. Examine the exit test. OPT_Instruction origBranch = exitBlock.firstBranchInstruction(); if (origBranch != exitBlock.lastRealInstruction()) { OPT_Instruction aGoto = origBranch.nextInstructionInCodeOrder(); if (aGoto.operator.opcode != GOTO_opcode) { report ("7 too complex exit\n"); return;} succBlock = Label.getBlock(Goto.getTarget(aGoto).target).block; if (VM.VerifyAssertions) VM.assert (aGoto == exitBlock.lastRealInstruction()); } else { succBlock = exitBlock.getFallThroughBlock(); } if (origBranch.operator.opcode != INT_IFCMP_opcode) { report("8 branch isn't int_ifcmp: "+origBranch.operator+".\n"); return;} // examine operands: OPT_Operand op1 = follow(IfCmp.getVal1(origBranch)); OPT_Operand op2 = follow(IfCmp.getVal2(origBranch)); OPT_ConditionOperand cond = (OPT_ConditionOperand)IfCmp.getCond(origBranch).copy(); OPT_RegisterOperand ifcmpGuard = IfCmp.getGuardResult(origBranch); double backBranchProbability = IfCmp.getBranchProfile (origBranch).takenProbability; if (!loopInvariant (op2, nloop)) { if (loopInvariant (op1, nloop)) { OPT_Operand op = op1; op1 = op2; op2 = op; cond.flipOperands(); } else { report ("8a op1 and op2 may not be loop invariant\n"); return;} } OPT_BasicBlock target = Label.getBlock(IfCmp.getTarget(origBranch).target).block; if (!(op1 instanceof OPT_RegisterOperand)) { report ("9 op1 of ifcmp isn't a register\n"); return;} OPT_RegisterOperand rop1 = (OPT_RegisterOperand) op1; OPT_Register reg = rop1.register; if (reg.isPhysical()) {report("10 loops over physical register\n"); return;} if (succBlock == header && !nloop.get(target.getNumber())) { succBlock = target; target = header; cond.flipCode(); } if (target != header) {report ("11 ifcmp doesn't jump to header\n");return;} OPT_Instruction iterator = null; OPT_OperandEnumeration defs = new RealDefs (rop1); while (defs.hasMoreElements()) { OPT_Operand def = defs.next(); OPT_Instruction inst = def.instruction; OPT_BasicBlock block = inst.getBasicBlock(); //VM.sysWrite (""+block+": "+inst+"\n"); if (nloop.get(block.getNumber())) { if (iterator == null) { iterator = inst; } else {report("12 iterator not unique.\n"); return;} } } if (iterator == null) {report ("15 iterator not found.\n"); return;} if (iterator.operator.opcode != INT_ADD_opcode) { report ("16 iterator is no addition: "+iterator.operator+"\n"); return;} if (!rop1.similar(follow(Binary.getVal1(iterator)))) { //dumpIR (ir, "malformed"); report ("17 malformed iterator.\n"+iterator+"\n"); return;} OPT_Operand strideOp = follow (Binary.getVal2(iterator)); if (!(strideOp instanceof OPT_IntConstantOperand)) { report ("18 stride not constant\n"); return;} int stride = ((OPT_IntConstantOperand)strideOp).value; if (stride != 1 && stride != -1 ) { report ("18b stride != +/-1 ("+stride+")\n"); return;} if (( stride == 1 && (( cond.value != OPT_ConditionOperand.LESS) && cond.value != OPT_ConditionOperand.LESS_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL )) || (stride == -1 && (( cond.value != OPT_ConditionOperand.GREATER) && cond.value != OPT_ConditionOperand.GREATER_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL ))) { report ("19 unexpected condition: "+cond+"\n"+iterator+"\n\n"); return;} OPT_RegisterOperand outerGuard; OPT_BasicBlock outer = predBlock; while (outer.getNumberOfOut() == 1 && outer.getNumberOfIn() >= 1) { if (outer.getNumberOfIn() == 0) break; outer = outer.getIn().next(); } if (outer.getNumberOfIn() > 0 && outer.getNumberOfOut() < 2) { report ("23 no suitable outer guard found.\n"); return;} tmp = outer.firstBranchInstruction(); if (tmp != null && GuardResultCarrier.conforms(tmp)) outerGuard = GuardResultCarrier.getGuardResult(tmp); else { outerGuard = ir.regpool.makeTempValidation(); } //////////// // transfom // transform this: // // Orig: // B // if i CC b goto Orig // else goto exit // // exit: // // into this: ////// stride == 1: common: stride == -1://--------------------------------------------------------------------------// guard0:// limit = b;// if a > b goto Orig if b > a goto Orig// else guard1 // // // guard 1: // remainder = b - a; remainder = a - b;// if cond == '<=' if cond == '>='// remainder++; remainder++;// remainder = remainder & 3 // limit = a + remainder limit = a - remainder// if cond == '<=' if cond == '>='// limit--; limit++;// if remainder == 0 goto mllp // goto Orig // // Orig: // LOOP; // if i CC limit goto Orig // else guard2 // // guard2: if i CC b goto mllp // else exit// // mllp: // landing pad// goto ml// // ml: // LOOP;LOOP;LOOP;LOOP; // if i CC b goto ml // else exit// // exit://-------------------------------------------------------------------------- theCnt++; //if (theCnt > 0) return; report ("...transforming.\n"); if (ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) { //{report ("canceled\n"); return; } // dumpIR(ir, "before unroll"); } OPT_CFGTransformations.killFallThroughs (ir, nloop); OPT_BasicBlock handles[] = makeSomeCopies(unrollFactor, ir, nloop, blocks, header, exitBlock, exitBlock); OPT_BasicBlock mainHeader = handles[0]; OPT_BasicBlock mainExit = handles[1]; // test block for well formed bounds OPT_BasicBlock guardBlock0 = header.createSubBlock(header.firstInstruction().bcIndex, ir); predBlock.redirectOuts (header, guardBlock0, ir); // test block for iteration alignemnt OPT_BasicBlock guardBlock1 = header.createSubBlock(header.firstInstruction().bcIndex, ir); OPT_BasicBlock predSucc = predBlock.nextBasicBlockInCodeOrder(); if (predSucc != null) { ir.cfg.breakCodeOrder(predBlock, predSucc); ir.cfg.linkInCodeOrder(guardBlock1, predSucc); } ir.cfg.linkInCodeOrder(predBlock, guardBlock0); ir.cfg.linkInCodeOrder(guardBlock0, guardBlock1); // guard block for main loop OPT_BasicBlock guardBlock2 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for main loop OPT_BasicBlock landingPad = header.createSubBlock(header.firstInstruction().bcIndex, ir); OPT_BasicBlock mainLoop = exitBlock.nextBasicBlockInCodeOrder(); ir.cfg.breakCodeOrder (exitBlock, mainLoop); ir.cfg.linkInCodeOrder(exitBlock, guardBlock2); ir.cfg.linkInCodeOrder(guardBlock2, landingPad); ir.cfg.linkInCodeOrder(landingPad, mainLoop); OPT_RegisterOperand remainder = ir.regpool.makeTemp(rop1.type); OPT_RegisterOperand limit = ir.regpool.makeTemp(rop1.type); // test whether a <= b for stride == 1 and a >= b for stride == -1 tmp = guardBlock0.lastInstruction(); tmp.insertBefore (Move.create (INT_MOVE, limit, op2.copy())); OPT_ConditionOperand g0cond = OPT_ConditionOperand.GREATER(); if (stride == -1) g0cond = OPT_ConditionOperand.LESS(); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), rop1.copyD2U(), op2.copy(), g0cond, header.makeJumpTarget(), OPT_BranchProfileOperand.unlikely())); tmp.insertBefore(Goto.create(GOTO, guardBlock1.makeJumpTarget())); // jump over the original loop, if numbers of iteration is already aligned tmp = guardBlock1.lastInstruction(); if (stride == 1) tmp.insertBefore (Binary.create(INT_SUB, remainder, op2.copy(), rop1.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, remainder, rop1.copyD2U(), op2.copy())); if (cond.isGREATER_EQUAL() || cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (Binary.create(INT_AND, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(unrollFactor-1))); if (stride == 1) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2U(), op1.copy(), remainder.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, limit.copyD2U(), op1.copy(), remainder.copyD2U())); if (cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(-1))); if (cond.isGREATER_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(0), OPT_ConditionOperand.EQUAL(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(1.0/unrollFactor))); tmp.insertBefore(Goto.create(GOTO,header.makeJumpTarget())); // change the back branch in the original loop deleteBranches (exitBlock); tmp = exitBlock.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), limit.copyD2U(), (OPT_ConditionOperand) cond.copy(), header.makeJumpTarget(), new OPT_BranchProfileOperand(1.0 - 1.0 / unrollFactor))); tmp.insertBefore (Goto.create(GOTO,guardBlock2.makeJumpTarget())); // jump over main loop if no iterations left tmp = guardBlock2.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(1.0-backBranchProbability))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // landing pad jumps to mainHeader tmp = landingPad.lastInstruction(); tmp.insertBefore (Goto.create(GOTO, mainHeader.makeJumpTarget())); // repair back edge in mainExit if (VM.VerifyAssertions) VM.assert (mainExit != null); tmp = mainExit.lastInstruction(); if (VM.VerifyAssertions) VM.assert (( mainExit.lastRealInstruction() == null) || !mainExit.lastRealInstruction().isBranch()); tmp.insertBefore (IfCmp.create (INT_IFCMP, ifcmpGuard.copyU2U(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), mainHeader.makeJumpTarget(), new OPT_BranchProfileOperand(1.0 - (1.0-backBranchProbability) * unrollFactor))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // recompute normal outs guardBlock0.recomputeNormalOut(ir); guardBlock1.recomputeNormalOut(ir); guardBlock2.recomputeNormalOut(ir); exitBlock.recomputeNormalOut(ir); landingPad.recomputeNormalOut(ir); mainExit.recomputeNormalOut(ir); if (ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) { // dumpIR(ir, "after unroll"); } } static void report (String s) { if (DEBUG) VM.sysWrite ("] "+s); } private static int theVisit = 1; private static OPT_Operand follow (OPT_Operand use) { theVisit++; return _follow(use);}
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ba9176ee0d2adcd87c3b329bd79a0d01eff8449f/OPT_LoopUnrolling.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/control/OPT_LoopUnrolling.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
640,
2693,
9858,
261,
15620,
67,
48,
882,
907,
268,
16,
16456,
67,
7937,
9482,
13,
288,
565,
509,
12509,
382,
6452,
273,
374,
31,
565,
16456,
67,
8252,
1768,
2427,
1768,
273,
446,
16,
21043,
1768,
273,
446,
16,
3479,
1768,
273,
446,
31,
565,
16456,
67,
5775,
5018,
290,
6498,
273,
268,
18,
6498,
31,
565,
16456,
67,
8252,
1768,
1446,
273,
268,
18,
3374,
31,
565,
16456,
67,
11983,
1853,
31,
3639,
309,
261,
82,
6498,
422,
446,
13,
327,
31,
565,
368,
19707,
558,
4121,
732,
2363,
2777,
565,
2605,
7566,
9858,
2798,
316,
315,
397,
9482,
18,
2039,
397,
6398,
13773,
82,
6498,
9078,
64,
82,
8863,
565,
309,
261,
481,
18,
5332,
26136,
429,
503,
6919,
10756,
95,
1377,
2605,
7566,
20,
15908,
2026,
1240,
1520,
4919,
64,
82,
8863,
327,
31,
97,
565,
368,
4199,
2798,
3695,
635,
7849,
622,
2097,
4398,
565,
16456,
67,
8252,
1768,
21847,
2798,
6450,
273,
9482,
18,
588,
8252,
6450,
12,
82,
6498,
1769,
565,
509,
4398,
273,
374,
31,
565,
1323,
261,
6498,
6450,
18,
5332,
7417,
3471,
10756,
288,
1377,
16456,
67,
8252,
1768,
324,
273,
2798,
6450,
18,
4285,
5621,
1377,
4398,
9904,
31,
1377,
368,
866,
364,
963,
1377,
12509,
382,
6452,
1011,
324,
18,
588,
9226,
6955,
26712,
5621,
1377,
309,
261,
25758,
382,
6452,
405,
4238,
26712,
13,
288,
202,
6006,
7566,
21,
353,
4885,
5446,
64,
82,
8863,
327,
31,
97,
1377,
368,
2324,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
640,
2693,
9858,
261,
15620,
67,
48,
882,
907,
268,
16,
16456,
67,
7937,
9482,
13,
288,
565,
509,
12509,
382,
6452,
273,
374,
31,
565,
16456,
67,
8252,
1768,
2427,
1768,
273,
446,
16,
21043,
1768,
273,
446,
16,
3479,
1768,
273,
446,
31,
565,
16456,
67,
5775,
5018,
290,
6498,
273,
268,
18,
6498,
31,
565,
16456,
67,
8252,
1768,
1446,
273,
268,
18,
3374,
31,
565,
16456,
67,
11983,
1853,
31,
3639,
309,
261,
82,
6498,
422,
446,
13,
327,
31,
565,
368,
19707,
558,
4121,
732,
2363,
2777,
565,
2605,
7566,
9858,
2798,
316,
315,
397,
9482,
18,
2039,
397,
6398,
13773,
82,
6498,
9078,
64,
82,
8863,
565,
309,
261,
481,
2
] |
" WHEN 'pg_toast' THEN CASE c.relkind "+
|
" WHEN n.nspname = 'pg_toast' THEN CASE c.relkind "+
|
public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { String select; String orderby; String useSchemas; if (connection.haveMinimumServerVersion("7.3")) { useSchemas = "SCHEMAS"; select = "SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME, "+ " CASE n.nspname LIKE 'pg\\\\_%' "+ " WHEN true THEN CASE n.nspname "+ " WHEN 'pg_catalog' THEN CASE c.relkind "+ " WHEN 'r' THEN 'SYSTEM TABLE' "+ " WHEN 'v' THEN 'SYSTEM VIEW' "+ " WHEN 'i' THEN 'SYSTEM INDEX' "+ " ELSE NULL "+ " END "+ " WHEN 'pg_toast' THEN CASE c.relkind "+ " WHEN 'r' THEN 'SYSTEM TOAST TABLE' "+ " WHEN 'i' THEN 'SYSTEM TOAST INDEX' "+ " ELSE NULL "+ " END "+ " ELSE CASE c.relkind "+ " WHEN 'r' THEN 'TEMPORARY TABLE' "+ " WHEN 'i' THEN 'TEMPORARY INDEX' "+ " ELSE NULL "+ " END "+ " END "+ " WHEN false THEN CASE c.relkind "+ " WHEN 'r' THEN 'TABLE' "+ " WHEN 'i' THEN 'INDEX' "+ " WHEN 'S' THEN 'SEQUENCE' "+ " WHEN 'v' THEN 'VIEW' "+ " ELSE NULL "+ " END "+ " ELSE NULL "+ " END "+ " AS TABLE_TYPE, d.description AS REMARKS "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c "+ " LEFT JOIN pg_catalog.pg_description d ON (c.oid = d.objoid AND d.objsubid = 0) "+ " LEFT JOIN pg_catalog.pg_class dc ON (d.classoid=dc.oid AND dc.relname='pg_class') "+ " LEFT JOIN pg_catalog.pg_namespace dn ON (dn.oid=dc.relnamespace AND dn.nspname='pg_catalog') "+ " WHERE c.relnamespace = n.oid "; if (schemaPattern != null && !"".equals(schemaPattern)) { select += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern)+"' "; } orderby = " ORDER BY TABLE_TYPE,TABLE_SCHEM,TABLE_NAME "; } else { useSchemas = "NOSCHEMAS"; String tableType = ""+ " CASE c.relname LIKE 'pg\\\\_%' "+ " WHEN true THEN CASE c.relname LIKE 'pg\\\\_toast\\\\_%' "+ " WHEN true THEN CASE c.relkind "+ " WHEN 'r' THEN 'SYSTEM TOAST TABLE' "+ " WHEN 'i' THEN 'SYSTEM TOAST INDEX' "+ " ELSE NULL "+ " END "+ " WHEN false THEN CASE c.relname LIKE 'pg\\\\_temp\\\\_%' "+ " WHEN true THEN CASE c.relkind "+ " WHEN 'r' THEN 'TEMPORARY TABLE' "+ " WHEN 'i' THEN 'TEMPORARY INDEX' "+ " ELSE NULL "+ " END "+ " WHEN false THEN CASE c.relkind "+ " WHEN 'r' THEN 'SYSTEM TABLE' "+ " WHEN 'v' THEN 'SYSTEM VIEW' "+ " WHEN 'i' THEN 'SYSTEM INDEX' "+ " ELSE NULL "+ " END "+ " ELSE NULL "+ " END "+ " ELSE NULL "+ " END "+ " WHEN false THEN CASE c.relkind "+ " WHEN 'r' THEN 'TABLE' "+ " WHEN 'i' THEN 'INDEX' "+ " WHEN 'S' THEN 'SEQUENCE' "+ " WHEN 'v' THEN 'VIEW' "+ " ELSE NULL "+ " END "+ " ELSE NULL "+ " END "; orderby = " ORDER BY TABLE_TYPE,TABLE_NAME "; if (connection.haveMinimumServerVersion("7.2")) { select = "SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM, c.relname AS TABLE_NAME, "+tableType+" AS TABLE_TYPE, d.description AS REMARKS "+ " FROM pg_class c "+ " LEFT JOIN pg_description d ON (c.oid=d.objoid AND d.objsubid = 0) "+ " LEFT JOIN pg_class dc ON (d.classoid = dc.oid AND dc.relname='pg_class') "+ " WHERE true "; } else if (connection.haveMinimumServerVersion("7.1")) { select = "SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM, c.relname AS TABLE_NAME, "+tableType+" AS TABLE_TYPE, d.description AS REMARKS "+ " FROM pg_class c "+ " LEFT JOIN pg_description d ON (c.oid=d.objoid) "+ " WHERE true "; } else { select = "SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM, c.relname AS TABLE_NAME, "+tableType+" AS TABLE_TYPE, NULL AS REMARKS "+ " FROM pg_class c "+ " WHERE true "; } } if (types == null) { types = defaultTableTypes; } if (tableNamePattern != null) { select += " AND c.relname LIKE '"+escapeQuotes(tableNamePattern)+"' "; } String sql = select; sql += " AND (false "; for (int i=0; i<types.length; i++) { Hashtable clauses = (Hashtable)tableTypeClauses.get(types[i]); if (clauses != null) { String clause = (String)clauses.get(useSchemas); sql += " OR ( "+clause+" ) "; } } sql += ") "; sql += orderby; return connection.createStatement().executeQuery(sql); }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/9cf489e96d60a03e936f55964f177ad0b382c698/AbstractJdbc1DatabaseMetaData.java/buggy/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
202,
95,
202,
202,
780,
2027,
31,
202,
202,
780,
20519,
31,
202,
202,
780,
999,
16749,
31,
202,
202,
430,
261,
4071,
18,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
288,
1082,
202,
1202,
16749,
273,
315,
55,
10390,
3033,
14432,
1082,
202,
4025,
273,
315,
4803,
3206,
5355,
7567,
67,
14130,
16,
290,
18,
82,
1752,
529,
5355,
7567,
67,
55,
10390,
16,
276,
18,
2878,
529,
5355,
7567,
67,
1985,
16,
13773,
1082,
202,
6,
18403,
290,
18,
82,
1752,
529,
13161,
296,
8365,
13011,
67,
8604,
13773,
1082,
202,
6,
29707,
638,
27124,
18403,
290,
18,
82,
1752,
529,
13773,
1082,
202,
6,
202,
12557,
1157,
296,
8365,
67,
7199,
11,
27124,
18403,
276,
18,
2878,
9224,
13773,
1082,
202,
6,
202,
202,
12557,
1157,
296,
86,
11,
27124,
296,
14318,
7567,
11,
13773,
1082,
202,
6,
202,
202,
12557,
1157,
296,
90,
11,
27124,
296,
14318,
21794,
11,
13773,
1082,
202,
6,
202,
202,
12557,
1157,
296,
77,
11,
27124,
296,
14318,
12425,
11,
13773,
1082,
202,
6,
202,
202,
2247,
1090,
3206,
13773,
1082,
202,
6,
202,
202,
4415,
13773,
1082,
202,
6,
202,
12557,
1157,
296,
8365,
67,
869,
689,
11,
27124,
18403,
276,
18,
2878,
9224,
13773,
1082,
202,
6,
202,
202,
12557,
1157,
296,
86,
11,
27124,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
202,
95,
202,
202,
780,
2027,
31,
202,
202,
780,
20519,
31,
202,
202,
780,
999,
16749,
31,
202,
202,
430,
261,
4071,
18,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
288,
1082,
202,
1202,
16749,
273,
315,
55,
10390,
3033,
14432,
1082,
202,
4025,
273,
315,
4803,
3206,
5355,
7567,
67,
14130,
16,
290,
18,
82,
1752,
529,
5355,
7567,
67,
55,
10390,
16,
276,
18,
2878,
529,
5355,
7567,
67,
1985,
16,
13773,
1082,
202,
6,
18403,
290,
18,
82,
1752,
529,
13161,
296,
8365,
13011,
67,
2
] |
stringBuffer.append(TEXT_440);
|
stringBuffer.append(TEXT_442);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final GenEditorGenerator editorGen = genDiagram.getEditorGen();final GenModel genModel = editorGen.getDomainGenModel();final String pluginActivatorClass = importManager.getImportedName(editorGen.getPlugin().getActivatorQualifiedClassName());final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer);importManager.registerInnerClass("RootElementSelectorPage");if (isRichClientPlatform) { importManager.registerInnerClass("URISelectorPage"); importManager.registerInnerClass("SourceURISelectorPage"); importManager.registerInnerClass("DiagramURISelectorPage");} stringBuffer.append(TEXT_4); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_5); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_6); } if (needsCastToEObject) { stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_8); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_9); } stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_11); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_12); if (needsCastToResultType) { stringBuffer.append(TEXT_13); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_15); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_16); } stringBuffer.append(TEXT_17); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_18); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.Wizard")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_22); if (isRichClientPlatform) { stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_24); } else { stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_29); } stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_31); if (isRichClientPlatform) { stringBuffer.append(TEXT_32); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_43); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_44); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_45); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_46); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_47); } stringBuffer.append(TEXT_48); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_49); if (isRichClientPlatform) { stringBuffer.append(TEXT_50); } else { stringBuffer.append(TEXT_51); } stringBuffer.append(TEXT_52); if (isRichClientPlatform) { stringBuffer.append(TEXT_53); } else { stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_55); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IContainer")); stringBuffer.append(TEXT_58); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_61); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_62); } stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_64); if (isRichClientPlatform) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_67); } else { stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_71); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_82); if (editorGen.isSameFileForDiagramAndModel()) { stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_86); if (isRichClientPlatform) { stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_89); } else { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.ide.IDE")); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_103); if (isRichClientPlatform) { stringBuffer.append(TEXT_104); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_105); } else { stringBuffer.append(TEXT_106); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_108); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_109); } stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_113); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_114); if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.NaiveViewService")); stringBuffer.append(TEXT_116); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); final Comparator<GenContainerBase> comparator = new Comparator<GenContainerBase>() { public int compare(GenContainerBase o1, GenContainerBase o2) { return o1.getVisualID() - o2.getVisualID(); }};TreeSet<GenContainerBase> containers2Generate = new TreeSet<GenContainerBase>(comparator);for (Iterator containers = genDiagram.getAllContainers().iterator(); containers.hasNext();) { GenContainerBase nextContainer = (GenContainerBase) containers.next(); if (!nextContainer.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenDiagram) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenNode) { //May need to generate if contains compartments with children for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); break; } } }}for (Iterator<GenContainerBase> containers = containers2Generate.iterator(); containers.hasNext();) { GenContainerBase nextContainer = containers.next(); stringBuffer.append(TEXT_119); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_121); if (nextContainer instanceof GenNode) { boolean shouldIterateOverCompartments = false; for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { shouldIterateOverCompartments = true; break; } } if (shouldIterateOverCompartments) { stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_126); for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (nextCompartment.getContainedNodes().isEmpty()) { continue; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(nextCompartment.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_128); stringBuffer.append(nextCompartment.getUniqueIdentifier()); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); } } stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_132); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_138); boolean shouldIterateToGenerate = false; for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_140); for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_142); stringBuffer.append(nextNode.getUniqueIdentifier()); stringBuffer.append(TEXT_143); } } stringBuffer.append(TEXT_144); } stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_146); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_148); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); stringBuffer.append(TEXT_149); if (childNodes.size() == 0) { stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_151); } else { stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_154); Map genFeature2genNodeMap = new LinkedHashMap(); for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { GenNode nextNode = (GenNode) childNodes.get(nodeIndex); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } GenFeature childMetaFeature = typeModelFacet.getChildMetaFeature(); if (!genFeature2genNodeMap.containsKey(childMetaFeature)) { genFeature2genNodeMap.put(childMetaFeature, new ArrayList()); } ((Collection) genFeature2genNodeMap.get(childMetaFeature)).add(nextNode); } Set entrySet = genFeature2genNodeMap.entrySet(); if (entrySet.size() > 0) { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_156); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_159); } for (Iterator entries = entrySet.iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature childMetaFeature = (GenFeature) nextEntry.getKey(); Collection genNodesCollection = (Collection) nextEntry.getValue(); if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_161); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_163); } else { stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_165); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); stringBuffer.append(TEXT_166); } stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_168); boolean generateSwitch = genNodesCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_169); } for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { GenNode nextNode = (GenNode) genNodesIterator.next(); if (generateSwitch) { stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_171); } else { stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_173); } stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_175); if (generateSwitch) { stringBuffer.append(TEXT_176); } else { stringBuffer.append(TEXT_177); } } if (generateSwitch) { stringBuffer.append(TEXT_178); } if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_179); }} stringBuffer.append(TEXT_180); } } stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_182); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_185); { String _parentNode = "parentView"; List childNodes = nextContainer.getContainedNodes(); boolean isListLayout; if (nextContainer instanceof GenNode) { isListLayout = !org.eclipse.gmf.codegen.gmfgen.util.ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions((GenNode) nextContainer); } else if (nextContainer instanceof GenCompartment) { isListLayout = ((GenCompartment) nextContainer).isListLayout(); } else if (nextContainer instanceof GenDiagram) { isListLayout = false; } else { throw new RuntimeException("Unexpected container"); } stringBuffer.append(TEXT_186); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_188); for (Iterator it = childNodes.iterator(); it.hasNext(); ) { GenNode nextNode = (GenNode) it.next(); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(childNodeInterfaceName); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); stringBuffer.append(TEXT_192); stringBuffer.append(_parentNode); stringBuffer.append(TEXT_193); if (!isListLayout) { int defaultWidth = 40; int defaultHeight = 40; DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) nextNode.getViewmap().find(DefaultSizeAttributes.class); if (defSizeAttrs != null) { defaultWidth = defSizeAttrs.getWidth(); defaultHeight = defSizeAttrs.getHeight(); } stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_195); stringBuffer.append(defaultWidth); stringBuffer.append(TEXT_196); stringBuffer.append(defaultHeight); stringBuffer.append(TEXT_197); } else { stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_200); } stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); }class LinksCollection { private Collection<GenLink> myTypeModelFacetLinks = new LinkedList<GenLink>(); private Collection<GenLink> myFeatureModelFacetLinks = new LinkedList<GenLink>(); public void add(GenLink link) { if (link.getModelFacet() instanceof TypeLinkModelFacet) { myTypeModelFacetLinks.add(link); } else if (link.getModelFacet() instanceof FeatureLinkModelFacet) { myFeatureModelFacetLinks.add(link); } } public Iterator<GenLink> getContainedTypeModelFacetLinks() { return myTypeModelFacetLinks.iterator(); } public Iterator<GenLink> getContainedFeatureModelFacetLinks() { return myFeatureModelFacetLinks.iterator(); }}class CreateChildLinkElements { private TreeMap<GenContainerBase, LinksCollection> myElements; public CreateChildLinkElements() { myElements = new TreeMap<GenContainerBase, LinksCollection>(comparator); } public void add(GenContainerBase o, GenLink link) { buildAncestors(o); myElements.get(o).add(link); } private void buildAncestors(GenContainerBase o) { if (!myElements.containsKey(o)) { LinksCollection elements = new LinksCollection(); myElements.put(o, elements); addAncestors(o); } } private void addAncestors(GenContainerBase o) { if (o instanceof GenCompartment) { GenCompartment compartment = (GenCompartment) o; buildAncestors(compartment.getNode()); } else if (o instanceof GenTopLevelNode) { GenTopLevelNode node = (GenTopLevelNode) o; buildAncestors(node.getDiagram()); } else if (o instanceof GenChildNode) { GenChildNode node = (GenChildNode) o; for(Iterator it = node.getContainers().iterator(); it.hasNext(); ) { GenContainerBase next = (GenContainerBase) it.next(); buildAncestors(next); } } } public boolean contains(GenContainerBase o) { return myElements.containsKey(o); } public Iterator<Map.Entry<GenContainerBase, LinksCollection>> iterator() { return myElements.entrySet().iterator(); }}if (!genDiagram.getLinks().isEmpty()) { CreateChildLinkElements linkContainers2Generate = new CreateChildLinkElements(); //No need to explicitly add diagram, since we build the whole hierarchy up. for(Iterator links = genDiagram.getLinks().iterator(); links.hasNext(); ) { GenLink next = (GenLink) links.next(); GenClass containerClass; LinkModelFacet nextModelFacet = next.getModelFacet(); if (nextModelFacet instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) next.getModelFacet(); if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { //if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. containerClass = null; } else { containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); } } else if (nextModelFacet instanceof FeatureLinkModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) next.getModelFacet()).getMetaFeature(); containerClass = metaFeature.getGenClass(); } else { continue; } for (Iterator nodes = genDiagram.getAllNodes().iterator(); nodes.hasNext(); ) { GenNode nextNode = (GenNode) nodes.next(); if (containerClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) { linkContainers2Generate.add(nextNode, next); } } } for(Iterator<Map.Entry<GenContainerBase, LinksCollection>> entryIt = linkContainers2Generate.iterator(); entryIt.hasNext(); ) { Map.Entry<GenContainerBase, LinksCollection> next = entryIt.next(); GenContainerBase nextContainer = next.getKey(); LinksCollection linksCollection = next.getValue(); Iterator<GenLink> typeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks(); Iterator<GenLink> featureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks(); stringBuffer.append(TEXT_203); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_207); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_212); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_213); } boolean shouldIterateToGenerate = false; Collection childElements = new ArrayList(nextContainer.getContainedNodes()); if (nextContainer instanceof GenNode) { childElements.addAll(((GenNode) nextContainer).getCompartments()); } for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (linkContainers2Generate.contains(nextChild)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_218); for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (!linkContainers2Generate.contains(nextChild)) { continue; } stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName(nextChild.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_220); stringBuffer.append(nextChild.getUniqueIdentifier()); stringBuffer.append(TEXT_221); } stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_225); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_227); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_228); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_231); Map genFeature2genLinkMap = new LinkedHashMap();for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature metaFeature = modelFacet.getChildMetaFeature(); if (!genFeature2genLinkMap.containsKey(metaFeature)) { genFeature2genLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink);}Map genFeature2featureGenLinkMap = new LinkedHashMap();for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink);}if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_233); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_235); }if (!genFeature2genLinkMap.isEmpty()) { stringBuffer.append(TEXT_236); }for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_238); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_240); } else { stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_242); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_243); } stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_245); boolean generateSwitch = genLinksCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_246); } for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (generateSwitch) { stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_248); } else { stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_250); } if (modelFacet.getSourceMetaFeature() != null) { stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_253); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); stringBuffer.append(TEXT_254); } else { stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_256); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_257); } if (modelFacet.getTargetMetaFeature() != null) { stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_260); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); stringBuffer.append(TEXT_261); } else { stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_263); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_264); } stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_266); if (generateSwitch) { stringBuffer.append(TEXT_267); } else { stringBuffer.append(TEXT_268); } } //iterate over genLinksCollection if (generateSwitch) { stringBuffer.append(TEXT_269); } if (metaFeature.isListType()) { stringBuffer.append(TEXT_270); }}for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_272); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_274); } else { stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_276); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_277); } stringBuffer.append(TEXT_278); for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); stringBuffer.append(TEXT_279); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_280); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); if (metaFeature.isListType()) { stringBuffer.append(TEXT_283); }} stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_286); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_287); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_289); { String _diagramCode = "parentView.getDiagram()"; Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); stringBuffer.append(TEXT_294); for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (modelFacet == null) { continue; } stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_298); } for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_301); } stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); stringBuffer.append(TEXT_303); stringBuffer.append(_diagramCode); stringBuffer.append(TEXT_304); } stringBuffer.append(TEXT_305); } }}if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_308); } stringBuffer.append(TEXT_309); if (isRichClientPlatform) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_312); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_319); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_321); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_324); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_325); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_328); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_334); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_338); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_341); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionAdapter")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent")); stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyEvent")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_352); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_358); stringBuffer.append(editorGen.getDomainFileExtension()); stringBuffer.append(TEXT_359); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_361); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_362); stringBuffer.append(editorGen.getDomainGenModel().getModelName()); stringBuffer.append(TEXT_363); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_366); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_370); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_372); } stringBuffer.append(TEXT_373); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener")); stringBuffer.append(TEXT_375); if (isRichClientPlatform) { stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_377); } stringBuffer.append(TEXT_378); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_381); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_383); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_384); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_385); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_392); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_395); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_396); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_397); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_399); final String treeViewer = isRichClientPlatform ? "myTreeViewer" : "treeViewer"; stringBuffer.append(TEXT_400); if (!isRichClientPlatform){ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_401); } stringBuffer.append(treeViewer); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_404); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_405); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_406); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_410); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_411); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider")); stringBuffer.append(TEXT_413); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_414); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider")); stringBuffer.append(TEXT_416); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_417); if (!isRichClientPlatform) { stringBuffer.append(TEXT_418); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_419); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_421); } stringBuffer.append(TEXT_422); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_423); if (isRichClientPlatform) { stringBuffer.append(TEXT_424); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_426); } stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent")); stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_432); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_435); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_438); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_439); importManager.emitSortedImports(); stringBuffer.append(TEXT_440); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/88670058e3792eb12387f6a2bac58d878ca8f3f6/NewDiagramFileWizardGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/NewDiagramFileWizardGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
10938,
6946,
3908,
4858,
7642,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
5621,
6385,
10938,
1488,
3157,
1488,
273,
4858,
7642,
18,
588,
3748,
7642,
1488,
5621,
6385,
514,
1909,
12241,
639,
797,
273,
1930,
1318,
18,
588,
24934,
461,
12,
9177,
7642,
18,
588,
3773,
7675,
588,
12241,
639,
8708,
3834,
10663,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
514,
22245,
1528,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
2951,
4083,
1528,
5621,
430,
261,
29187,
1528,
480,
446,
597,
22245,
1528,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
29187,
1528,
18,
2079,
1595,
31458,
82,
3113,
1548,
82,
380,
9369,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
289,
565,
1930,
1318,
18,
18356,
2261,
3406,
12,
1080,
1892,
1769,
5666,
1318,
18,
3355,
5010,
2735,
12,
1080,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
14058,
1940,
3157,
14058,
1940,
273,
261,
7642,
14058,
1940,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
10938,
6946,
3908,
4858,
7642,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
5621,
6385,
10938,
1488,
3157,
1488,
273,
4858,
7642,
18,
588,
3748,
7642,
1488,
5621,
6385,
514,
1909,
12241,
639,
797,
273,
1930,
1318,
18,
588,
24934,
461,
12,
9177,
7642,
18,
588,
3773,
7675,
588,
12241,
639,
8708,
3834,
10663,
6385,
1250,
353,
2
] |
if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) {
|
if (allowMemberExprAsFunctionName) {
|
private Object function(TokenStream ts, boolean isExpr) throws IOException, JavaScriptException { int baseLineno = ts.getLineno(); // line number where source starts String name; Object memberExprNode = null; if (ts.matchToken(ts.NAME)) { name = ts.getString(); if (!ts.matchToken(ts.LP)) { if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr sourceAddString(ts.NAME, name); Object memberExprHead = nf.createName(name); name = null; memberExprNode = memberExprTail(ts, false, memberExprHead); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } } else if (ts.matchToken(ts.LP)) { // Anonymous function name = null; } else { name = null; if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Note that memberExpr can not start with '(' like // in (1+2).toString, because 'function (' already // processed as anonymous function memberExprNode = memberExpr(ts, false); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { // transform 'function' <memberExpr> to <memberExpr> = function // even in the decompilated source sourceAdd((char)ts.ASSIGN); sourceAdd((char)ts.NOP); } // save a reference to the function in the enclosing source. sourceAdd((char) ts.FUNCTION); sourceAdd((char)functionNumber); ++functionNumber; // Save current source top to restore it on exit not to include // function to parent source int savedSourceTop = sourceTop; int savedFunctionNumber = functionNumber; ObjArray args = new ObjArray(); Object body; String source; try { functionNumber = 0; // FUNCTION as the first token in a Source means it's a function // definition, and not a reference. sourceAdd((char) ts.FUNCTION); if (name != null) { sourceAddString(ts.NAME, name); } sourceAdd((char) ts.LP); if (!ts.matchToken(ts.RP)) { boolean first = true; do { if (!first) sourceAdd((char)ts.COMMA); first = false; mustMatchToken(ts, ts.NAME, "msg.no.parm"); String s = ts.getString(); args.add(s); sourceAddString(ts.NAME, s); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.parms"); } sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.body"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = parseFunctionBody(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); // skip the last EOL so nested functions work... // name might be null; source = sourceToString(savedSourceTop); } finally { sourceTop = savedSourceTop; functionNumber = savedFunctionNumber; } Object pn = nf.createFunction(name, args, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, isExpr || memberExprNode != null); if (memberExprNode != null) { pn = nf.createBinary(ts.ASSIGN, ts.NOP, memberExprNode, pn); } // Add EOL but only if function is not part of expression, in which // case it gets SEMI + EOL from Statement. if (!isExpr) { if (memberExprNode != null) { // Add ';' to make 'function x.f(){}' and 'x.f = function(){}' // to print the same strings when decompiling sourceAdd((char)ts.SEMI); } sourceAdd((char)ts.EOL); wellTerminated(ts, ts.FUNCTION); } return pn; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
1250,
353,
4742,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
514,
508,
31,
3639,
1033,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
1985,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
309,
16051,
3428,
18,
1916,
1345,
12,
3428,
18,
14461,
3719,
288,
7734,
309,
261,
1042,
18,
29120,
7675,
5332,
4595,
10792,
261,
1042,
18,
18257,
67,
19630,
67,
2294,
8025,
67,
3033,
67,
7788,
67,
1985,
3719,
7734,
288,
10792,
368,
10021,
358,
7773,
5535,
30,
309,
296,
915,
411,
529,
1870,
1552,
486,
2805,
10792,
368,
635,
7747,
2187,
6750,
411,
529,
34,
2542,
3140,
4742,
10792,
1084,
986,
780,
12,
3428,
18,
1985,
16,
508,
1769,
10792,
1033,
3140,
4742,
1414,
273,
13958,
18,
2640,
461,
12,
529,
1769,
10792,
508,
273,
446,
31,
10792,
3140,
4742,
907,
273,
3140,
4742,
12363,
12,
3428,
16,
629,
16,
3140,
4742,
1414,
1769,
7734,
289,
7734,
1297,
2060,
1345,
12,
3428,
16,
3742,
18,
14461,
16,
315,
3576,
18,
2135,
18,
13012,
18,
29927,
8863,
5411,
289,
3639,
289,
3639,
469,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
14461,
3719,
288,
5411,
368,
29775,
445,
5411,
508,
273,
446,
31,
3639,
289,
3639,
469,
288,
5411,
508,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
1250,
353,
4742,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,
368,
980,
1300,
1625,
1084,
2542,
3639,
514,
508,
31,
3639,
1033,
3140,
4742,
907,
273,
446,
31,
3639,
309,
261,
3428,
18,
1916,
1345,
12,
3428,
18,
1985,
3719,
288,
5411,
508,
273,
3742,
18,
588,
780,
5621,
5411,
309,
16051,
3428,
18,
1916,
1345,
12,
3428,
18,
14461,
3719,
288,
7734,
309,
261,
1042,
18,
29120,
7675,
5332,
4595,
10792,
261,
1042,
18,
18257,
67,
19630,
67,
2294,
8025,
67,
3033,
67,
7788,
67,
1985,
3719,
7734,
288,
10792,
368,
10021,
2
] |
dialog = new JDialog((JFrame)parent, getTitle(), modal); } else if (parent instanceof JDialog) { dialog = new JDialog((JDialog)parent, getTitle(), modal); } else {
|
dialog = new JDialog((JFrame) parent, getTitle(), modal); } else if (parent instanceof JDialog) { dialog = new JDialog((JDialog) parent, getTitle(), modal); } else {
|
private void constructDialog() { if (parent instanceof JFrame) { dialog = new JDialog((JFrame)parent, getTitle(), modal); } else if (parent instanceof JDialog) { dialog = new JDialog((JDialog)parent, getTitle(), modal); } else { if (logger.isInfoEnabled()) { logger.warn("Parent is not a JFrame or JDialog, it is " + parent + ". Using current active window as parent by default."); } if (getActiveWindow() != null) { dialog = new JDialog(getActiveWindow().getControl(), getTitle(), modal); } else { dialog = new JDialog((JFrame)null, getTitle(), modal); } } dialog.getContentPane().setLayout(new BorderLayout()); dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); dialog.setResizable(resizable); initStandardCommands(); addCancelByEscapeKey(); }
|
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/12092f65532044bf430a3ee144f3e48f78bb8d76/ApplicationDialog.java/clean/src/org/springframework/richclient/dialog/ApplicationDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4872,
6353,
1435,
288,
3639,
309,
261,
2938,
1276,
804,
3219,
13,
288,
5411,
6176,
273,
394,
804,
6353,
12443,
46,
3219,
13,
2938,
16,
10786,
9334,
13010,
1769,
3639,
289,
3639,
469,
309,
261,
2938,
1276,
804,
6353,
13,
288,
5411,
6176,
273,
394,
804,
6353,
12443,
46,
6353,
13,
2938,
16,
10786,
9334,
13010,
1769,
3639,
289,
3639,
469,
288,
5411,
309,
261,
4901,
18,
291,
966,
1526,
10756,
288,
7734,
1194,
18,
8935,
2932,
3054,
353,
486,
279,
804,
3219,
578,
804,
6353,
16,
518,
353,
315,
397,
982,
13491,
397,
3552,
11637,
783,
2695,
2742,
487,
982,
635,
805,
1199,
1769,
5411,
289,
5411,
309,
261,
588,
3896,
3829,
1435,
480,
446,
13,
288,
7734,
6176,
273,
394,
804,
6353,
12,
588,
3896,
3829,
7675,
588,
3367,
9334,
10786,
9334,
13010,
1769,
5411,
289,
5411,
469,
288,
7734,
6176,
273,
394,
804,
6353,
12443,
46,
3219,
13,
2011,
16,
10786,
9334,
13010,
1769,
5411,
289,
3639,
289,
3639,
6176,
18,
588,
1350,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
3639,
6176,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
3639,
6176,
18,
542,
607,
6934,
12,
455,
6934,
1769,
3639,
1208,
8336,
9127,
5621,
3639,
527,
6691,
858,
8448,
653,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4872,
6353,
1435,
288,
3639,
309,
261,
2938,
1276,
804,
3219,
13,
288,
5411,
6176,
273,
394,
804,
6353,
12443,
46,
3219,
13,
2938,
16,
10786,
9334,
13010,
1769,
3639,
289,
3639,
469,
309,
261,
2938,
1276,
804,
6353,
13,
288,
5411,
6176,
273,
394,
804,
6353,
12443,
46,
6353,
13,
2938,
16,
10786,
9334,
13010,
1769,
3639,
289,
3639,
469,
288,
5411,
309,
261,
4901,
18,
291,
966,
1526,
10756,
288,
7734,
1194,
18,
8935,
2932,
3054,
353,
486,
279,
804,
3219,
578,
804,
6353,
16,
518,
353,
315,
397,
982,
13491,
397,
3552,
11637,
783,
2695,
2742,
487,
982,
635,
805,
1199,
1769,
5411,
289,
5411,
309,
261,
588,
3896,
3829,
1435,
480,
446,
2
] |
if (owner instanceof Tool)
|
if (owner == null && error == false) ((HoldsOptions)holder).addChildCategory(this); else if (owner instanceof Tool)
|
public void resolveReferences() { if (!resolved) { resolved = true; if (ownerId != null) { owner = tool.getOptionCategory(ownerId); if (owner == null) { // Report error ManagedBuildManager.OutputResolveError( "owner", //$NON-NLS-1$ ownerId, "optionCategory", //$NON-NLS-1$ getId()); } } if (owner == null) { owner = tool; } // Hook me in if (owner instanceof Tool) ((Tool)owner).addChildCategory(this); else ((OptionCategory)owner).addChildCategory(this); } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0119b876950a205bdddabaad5e05a45b2a4dc387/OptionCategory.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionCategory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2245,
8221,
1435,
288,
202,
202,
430,
16051,
11792,
13,
288,
1082,
202,
11792,
273,
638,
31,
1082,
202,
430,
261,
8443,
548,
480,
446,
13,
288,
9506,
202,
8443,
273,
5226,
18,
588,
1895,
4457,
12,
8443,
548,
1769,
9506,
202,
430,
261,
8443,
422,
446,
13,
288,
6862,
202,
759,
8706,
555,
6862,
202,
10055,
3116,
1318,
18,
1447,
8460,
668,
12,
6862,
1082,
202,
6,
8443,
3113,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
8443,
548,
16,
6862,
1082,
202,
6,
3482,
4457,
3113,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
26321,
10663,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
261,
8443,
422,
446,
13,
288,
9506,
202,
8443,
273,
5226,
31,
1082,
202,
97,
25083,
202,
759,
13725,
1791,
316,
1082,
202,
430,
261,
8443,
1276,
13288,
13,
9506,
202,
12443,
6364,
13,
8443,
2934,
1289,
1763,
4457,
12,
2211,
1769,
1082,
202,
12107,
9506,
202,
12443,
1895,
4457,
13,
8443,
2934,
1289,
1763,
4457,
12,
2211,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2245,
8221,
1435,
288,
202,
202,
430,
16051,
11792,
13,
288,
1082,
202,
11792,
273,
638,
31,
1082,
202,
430,
261,
8443,
548,
480,
446,
13,
288,
9506,
202,
8443,
273,
5226,
18,
588,
1895,
4457,
12,
8443,
548,
1769,
9506,
202,
430,
261,
8443,
422,
446,
13,
288,
6862,
202,
759,
8706,
555,
6862,
202,
10055,
3116,
1318,
18,
1447,
8460,
668,
12,
6862,
1082,
202,
6,
8443,
3113,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
8443,
548,
16,
6862,
1082,
202,
6,
3482,
4457,
3113,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
26321,
10663,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
2
] |
String getFactoryMethodName = factoryGetter(); String className = TypeGenerator.className(type);
|
String getFactoryMethodName = factoryGetter(); String className = TypeGenerator.className(type);
|
protected void genToTerm() { String getFactoryMethodName = factoryGetter(); String className = TypeGenerator.className(type); println(" public aterm.ATerm toTerm() {"); println(" if (this.term == null) {"); println(" " + className + " reversed = (" + className + ")this.reverse();"); println(" aterm.ATermList tmp = " + getFactoryMethodName + ".getPureFactory().makeList();"); println(" for (; !reversed.isEmpty(); reversed = reversed.getTail()) {"); println(" aterm.ATerm elem = reversed.getHead().toTerm();"); println(" tmp = " + getFactoryMethodName + ".getPureFactory().makeList(elem, tmp);"); println(" }"); println(" this.term = tmp;"); println(" }"); println(" return this.term;"); println(" }"); println(); }
|
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/8a7f5eefd6d08ce575d82dee6d963fc83f20a5c0/ListTypeGenerator.java/clean/apigen/src/apigen/gen/java/ListTypeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3157,
774,
4065,
1435,
288,
202,
202,
780,
19352,
11666,
273,
3272,
8461,
5621,
202,
202,
780,
2658,
273,
1412,
3908,
18,
12434,
12,
723,
1769,
202,
202,
8222,
2932,
225,
1071,
622,
1035,
18,
789,
1035,
358,
4065,
1435,
288,
8863,
202,
202,
8222,
2932,
565,
309,
261,
2211,
18,
6408,
422,
446,
13,
288,
8863,
202,
202,
8222,
2932,
1377,
315,
397,
2658,
397,
315,
9553,
273,
7566,
397,
2658,
397,
9369,
2211,
18,
9845,
26994,
1769,
202,
202,
8222,
2932,
1377,
622,
1035,
18,
789,
1035,
682,
1853,
273,
315,
397,
19352,
11666,
397,
3552,
588,
13645,
1733,
7675,
6540,
682,
26994,
1769,
202,
202,
8222,
2932,
1377,
364,
261,
31,
401,
266,
7548,
18,
291,
1921,
5621,
9553,
273,
9553,
18,
588,
12363,
10756,
288,
8863,
202,
202,
8222,
2932,
540,
622,
1035,
18,
789,
1035,
3659,
273,
9553,
18,
588,
1414,
7675,
869,
4065,
26994,
1769,
202,
202,
8222,
2932,
540,
1853,
273,
315,
397,
19352,
11666,
397,
3552,
588,
13645,
1733,
7675,
6540,
682,
12,
10037,
16,
1853,
1769,
8863,
202,
202,
8222,
2932,
1377,
289,
8863,
202,
202,
8222,
2932,
1377,
333,
18,
6408,
273,
1853,
4868,
1769,
202,
202,
8222,
2932,
565,
289,
8863,
202,
202,
8222,
2932,
565,
327,
333,
18,
6408,
4868,
1769,
202,
202,
8222,
2932,
225,
289,
8863,
202,
202,
8222,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
774,
4065,
1435,
288,
202,
202,
780,
19352,
11666,
273,
3272,
8461,
5621,
202,
202,
780,
2658,
273,
1412,
3908,
18,
12434,
12,
723,
1769,
202,
202,
8222,
2932,
225,
1071,
622,
1035,
18,
789,
1035,
358,
4065,
1435,
288,
8863,
202,
202,
8222,
2932,
565,
309,
261,
2211,
18,
6408,
422,
446,
13,
288,
8863,
202,
202,
8222,
2932,
1377,
315,
397,
2658,
397,
315,
9553,
273,
7566,
397,
2658,
397,
9369,
2211,
18,
9845,
26994,
1769,
202,
202,
8222,
2932,
1377,
622,
1035,
18,
789,
1035,
682,
1853,
273,
315,
397,
19352,
11666,
397,
3552,
588,
13645,
1733,
7675,
6540,
682,
26994,
1769,
202,
202,
8222,
2932,
1377,
364,
261,
31,
401,
2
] |
String pageName, String iconName, HashMap filterProperties,
|
String pageName, String iconName, String categoryName, HashMap filterProperties,
|
public RegistryPageContributor(String pluginId, String pageId, String pageName, String iconName, HashMap filterProperties, String objectClassName, boolean adaptable, IConfigurationElement pageElement) { this.pluginId = pluginId; this.pageId = pageId; this.pageName = pageName; this.iconName = iconName; this.filterProperties = filterProperties; this.pageElement = pageElement; //Only adapt if explicitly allowed to do so if (adaptable) checkIsResourcePage(objectClassName); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f7f66f6861c41194f8a9cd7a5691f47fc5a8fb33/RegistryPageContributor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/RegistryPageContributor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5438,
1964,
442,
19293,
12,
780,
1909,
548,
16,
514,
18720,
16,
5411,
514,
30398,
16,
514,
4126,
461,
16,
514,
3150,
461,
16,
4317,
1034,
2297,
16,
5411,
514,
733,
3834,
16,
1250,
5855,
429,
16,
5411,
467,
1750,
1046,
1363,
1046,
13,
288,
3639,
333,
18,
4094,
548,
273,
1909,
548,
31,
3639,
333,
18,
2433,
548,
273,
18720,
31,
3639,
333,
18,
2433,
461,
273,
30398,
31,
3639,
333,
18,
3950,
461,
273,
4126,
461,
31,
3639,
333,
18,
2188,
2297,
273,
1034,
2297,
31,
3639,
333,
18,
2433,
1046,
273,
1363,
1046,
31,
3639,
368,
3386,
5855,
309,
8122,
2935,
358,
741,
1427,
3639,
309,
261,
19195,
429,
13,
5411,
866,
2520,
1420,
1964,
12,
1612,
3834,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5438,
1964,
442,
19293,
12,
780,
1909,
548,
16,
514,
18720,
16,
5411,
514,
30398,
16,
514,
4126,
461,
16,
514,
3150,
461,
16,
4317,
1034,
2297,
16,
5411,
514,
733,
3834,
16,
1250,
5855,
429,
16,
5411,
467,
1750,
1046,
1363,
1046,
13,
288,
3639,
333,
18,
4094,
548,
273,
1909,
548,
31,
3639,
333,
18,
2433,
548,
273,
18720,
31,
3639,
333,
18,
2433,
461,
273,
30398,
31,
3639,
333,
18,
3950,
461,
273,
4126,
461,
31,
3639,
333,
18,
2188,
2297,
273,
1034,
2297,
31,
3639,
333,
18,
2433,
1046,
273,
1363,
1046,
31,
3639,
368,
3386,
5855,
309,
8122,
2935,
358,
741,
1427,
3639,
309,
261,
19195,
429,
13,
5411,
866,
2520,
1420,
2
] |
new DataSetResultCache( rs, resultMetadata ), eventHandler );
|
new DataSetResultCache( rs, resultMetadata, session ), eventHandler, session );
|
public IResultIterator execute( IEventHandler eventHandler ) throws DataException { assert odaStatement != null; this.setInputParameterBinding(); // Execute the prepared statement if ( !odaStatement.execute( ) ) throw new DataException( ResourceConstants.NO_RESULT_SET ); ResultSet rs = odaStatement.getResultSet(); // If we did not get a result set metadata at prepare() time, get it now if ( resultMetadata == null ) { resultMetadata = rs.getMetaData(); if ( resultMetadata == null ) throw new DataException(ResourceConstants.METADATA_NOT_AVAILABLE); } // Initialize CachedResultSet using the ODA result set if ( DataSetCacheManager.getInstance( ).doesSaveToCache( ) == false ) { if ( !hasOutputParams( ) ) return new CachedResultSet( this, resultMetadata, rs, eventHandler ); else { IDataSetPopulator populator = new OdaResultSet( rs ); return new CachedResultSet( this, resultMetadata, populator, eventHandler ); } } else return new CachedResultSet( this, resultMetadata, new DataSetResultCache( rs, resultMetadata ), eventHandler ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0049044a5bef6d7cacb43d07aaac96e021a89ed5/DataSourceQuery.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1253,
3198,
1836,
12,
467,
16402,
30441,
262,
1082,
202,
15069,
1910,
503,
202,
95,
377,
202,
11231,
320,
2414,
3406,
480,
446,
31,
377,
202,
2211,
18,
542,
1210,
1662,
5250,
5621,
202,
202,
759,
7903,
326,
8208,
3021,
202,
202,
430,
261,
401,
21319,
3406,
18,
8837,
12,
262,
262,
1082,
202,
12849,
394,
1910,
503,
12,
2591,
2918,
18,
3417,
67,
12289,
67,
4043,
11272,
202,
202,
13198,
3597,
273,
320,
2414,
3406,
18,
588,
13198,
5621,
9506,
202,
759,
971,
732,
5061,
486,
336,
279,
563,
444,
1982,
622,
2911,
1435,
813,
16,
336,
518,
2037,
202,
202,
430,
261,
563,
2277,
422,
446,
262,
202,
202,
95,
1082,
202,
2088,
2277,
273,
3597,
18,
588,
6998,
5621,
5411,
309,
261,
563,
2277,
422,
446,
262,
377,
1082,
202,
12849,
394,
1910,
503,
12,
1420,
2918,
18,
22746,
67,
4400,
67,
23222,
1769,
202,
202,
97,
9506,
202,
759,
9190,
15771,
13198,
1450,
326,
531,
9793,
563,
444,
202,
202,
430,
261,
14065,
27706,
18,
588,
1442,
12,
262,
18,
20657,
4755,
774,
1649,
12,
262,
422,
629,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
5332,
1447,
1370,
12,
262,
262,
9506,
202,
2463,
394,
15771,
13198,
12,
333,
16,
25083,
202,
2088,
2277,
16,
25083,
202,
5453,
16,
25083,
202,
2575,
1503,
11272,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
734,
396,
694,
7049,
11775,
3650,
639,
273,
394,
531,
2414,
13198,
12,
3597,
11272,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1253,
3198,
1836,
12,
467,
16402,
30441,
262,
1082,
202,
15069,
1910,
503,
202,
95,
377,
202,
11231,
320,
2414,
3406,
480,
446,
31,
377,
202,
2211,
18,
542,
1210,
1662,
5250,
5621,
202,
202,
759,
7903,
326,
8208,
3021,
202,
202,
430,
261,
401,
21319,
3406,
18,
8837,
12,
262,
262,
1082,
202,
12849,
394,
1910,
503,
12,
2591,
2918,
18,
3417,
67,
12289,
67,
4043,
11272,
202,
202,
13198,
3597,
273,
320,
2414,
3406,
18,
588,
13198,
5621,
9506,
202,
759,
971,
732,
5061,
486,
336,
279,
563,
444,
1982,
622,
2911,
1435,
813,
16,
336,
518,
2037,
202,
202,
430,
261,
563,
2277,
422,
446,
262,
202,
202,
95,
1082,
202,
2088,
2277,
2
] |
columnArtifacts[i] = columnNames[i].endsWith(ARTIFACT_EXTENSION);
|
public ReportResult generateResults(Report report) { ReportResult rr = new ReportResult(); Connection connection = null; PreparedStatement stmt = null; try { ReportDefinition rd = report.getReportDefinition(); connection = getWarehouseConnection(); stmt = connection .prepareStatement(replaceSystemValues(rd.getQuery())); // get the query from the Definition and replace the values // no should be able to put in a system parameter into a report parameter and have it work // so replace the system values before processing the report parameters // replace the parameters with the values List reportParams = report.getReportParams(); //If there are params, place them with values in the query if(reportParams != null) { Iterator iter = reportParams.iterator(); int paramIndex = 0; // loop through all the parameters and find in query for replacement while(iter.hasNext()) { // get the paremeter and associated parameter definition ReportParam rp = (ReportParam)iter.next(); ReportDefinitionParam rdp = rp.getReportDefinitionParam(); if(rp.getValue() == null) throw new OspException("The Report Parameter Value was blank. Offending parameter: " + rdp.getParamName()); //TODO: what to do? // if a parameter is not valid, fail gracefully if(!rp.valid()) { //return null; } stmt.setString(paramIndex+1, rp.getValue()); paramIndex++; } } rr.setCreationDate(new Date()); // run the query ResultSet rs = null; int resultSetIndex = 0; rs = stmt.executeQuery(); int columns = rs.getMetaData().getColumnCount(); String []columnNames = new String[columns]; boolean []columnArtifacts = new boolean[columns]; for(int i = 0; i < columns; i++) { columnNames[i] = rs.getMetaData().getColumnName(i+1); columnArtifacts[i] = columnNames[i].endsWith(ARTIFACT_EXTENSION); } Element reportElement = new Element("reportResult"); Document document = new Document(reportElement); reportElement.setAttribute("title", report.getTitle()); reportElement.setAttribute("description", report.getDescription()); reportElement.setAttribute("keywords", report.getKeywords()); reportElement.setAttribute("runDate", rr.getCreationDate().toString()); Element paramsNode = new Element("parameters"); if(reportParams != null) { Iterator iter = report.getReportParams().iterator(); // loop through all the parameters while(iter.hasNext()) { // get the paremeter and associated parameter definition ReportParam rp = (ReportParam)iter.next(); ReportDefinitionParam rdp = rp.getReportDefinitionParam(); Element paramNode = new Element("parameter"); paramNode.setAttribute("title", rdp.getTitle()); paramNode.setAttribute("name", rdp.getParamName()); paramNode.setAttribute("type", rdp.getType()); paramNode.setAttribute("value", rp.getValue()); paramsNode.addContent(paramNode); } } reportElement.addContent(paramsNode); Element columnsNode = new Element("columns"); for(int i = 0; i < columnNames.length; i++) { Element column = new Element("column"); column.setAttribute("colIndex", "" + i); column.setAttribute("title", columnNames[i]); columnsNode.addContent(column); } reportElement.addContent(columnsNode); while(rs.next()) { Element dataRow = new Element("datarow"); dataRow.setAttribute("index", "" + resultSetIndex++); reportElement.addContent(dataRow); for(int i = 0; i < columns; i++) { String data = rs.getString(i+1); Element columnNode = new Element("element"); dataRow.addContent(columnNode); columnNode.setAttribute("colIndex", "" + i); columnNode.setAttribute("colName", columnNames[i]); if(data == null) { columnNode.setAttribute("isNull", "true"); data = ""; } if(columnArtifacts[i]) { Artifact art = artifactFinder.load(idManager.getId(data)); PresentableObjectHome home = (PresentableObjectHome) art.getHome(); Element node = home.getArtifactAsXml(art); node.setName("artifact"); columnNode.addContent(node); // place into the result xml } else columnNode.setText(data); } } rr.setReport(report); rr.setTitle(report.getTitle()); rr.setKeywords(report.getKeywords()); rr.setDescription(report.getDescription()); rr.setUserId(report.getUserId()); rr.setXml((new XMLOutputter()).outputString(document)); } catch (SQLException e) { logger.error("", e); throw new OspException(e); } catch (HibernateException e) { logger.error("", e); throw new OspException(e); } finally { try { stmt.close(); } catch (Exception e) { logger.error("", e); } } // create an xml string with the data // any xml file links are pulled and entered into the xml in turn return rr; }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/958e9e1c2e37d4380672ce72934ae25a93728917/ReportsManagerImpl.java/buggy/reports/reports-comp-shared/src/java/org/theospi/component/app/reports/ReportsManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
1253,
2103,
3447,
12,
4820,
2605,
13,
202,
95,
202,
202,
4820,
1253,
202,
202,
523,
273,
394,
8706,
1253,
5621,
9506,
202,
1952,
1082,
202,
4071,
273,
446,
31,
202,
202,
29325,
202,
10589,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
4820,
1852,
9437,
273,
2605,
18,
588,
4820,
1852,
5621,
25083,
202,
4071,
273,
13876,
14630,
1952,
5621,
1082,
202,
10589,
273,
1459,
6862,
202,
18,
9366,
3406,
12,
2079,
3163,
1972,
12,
13623,
18,
588,
1138,
1435,
10019,
25083,
202,
759,
202,
588,
326,
843,
628,
326,
10849,
471,
1453,
326,
924,
1082,
202,
759,
202,
2135,
1410,
506,
7752,
358,
1378,
316,
279,
2619,
1569,
1368,
279,
2605,
1569,
471,
1240,
518,
1440,
1082,
202,
759,
202,
202,
2048,
1453,
326,
2619,
924,
1865,
4929,
326,
2605,
1472,
25083,
202,
759,
202,
2079,
326,
1472,
598,
326,
924,
1082,
202,
682,
2605,
1370,
273,
2605,
18,
588,
4820,
1370,
5621,
25083,
202,
759,
2047,
1915,
854,
859,
16,
3166,
2182,
598,
924,
316,
326,
843,
1082,
202,
430,
12,
6006,
1370,
480,
446,
13,
288,
9506,
202,
3198,
202,
2165,
273,
2605,
1370,
18,
9838,
5621,
9506,
202,
474,
1082,
202,
891,
1016,
273,
374,
31,
6862,
9506,
202,
759,
202,
6498,
3059,
777,
326,
1472,
471,
1104,
316,
843,
364,
6060,
9506,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
288,
6862,
25083,
202,
759,
202,
588,
326,
293,
834,
81,
847,
471,
3627,
1569,
2379,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8706,
1253,
2103,
3447,
12,
4820,
2605,
13,
202,
95,
202,
202,
4820,
1253,
202,
202,
523,
273,
394,
8706,
1253,
5621,
9506,
202,
1952,
1082,
202,
4071,
273,
446,
31,
202,
202,
29325,
202,
10589,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
4820,
1852,
9437,
273,
2605,
18,
588,
4820,
1852,
5621,
25083,
202,
4071,
273,
13876,
14630,
1952,
5621,
1082,
202,
10589,
273,
1459,
6862,
202,
18,
9366,
3406,
12,
2079,
3163,
1972,
12,
13623,
18,
588,
1138,
1435,
10019,
25083,
202,
759,
202,
588,
326,
843,
628,
326,
10849,
471,
1453,
326,
924,
1082,
202,
759,
202,
2135,
1410,
506,
7752,
358,
1378,
316,
279,
2619,
1569,
1368,
279,
2605,
1569,
2
] |
|
public final void initializeHeader(ObjectReference object) throws InlinePragma {
|
public final void initializeHeader(ObjectReference object) throws InlinePragma {
|
public final void initializeHeader(ObjectReference object) throws InlinePragma { Word oldValue = ObjectModel.readAvailableBitsWord(object); Word newValue = oldValue.and(MARK_BIT_MASK.not()).or(markState); ObjectModel.writeAvailableBitsWord(object, newValue); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/LargeObjectSpace.java/clean/MMTk/src/org/mmtk/policy/LargeObjectSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
4046,
1864,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
273,
1033,
1488,
18,
896,
5268,
6495,
3944,
12,
1612,
1769,
565,
9926,
6129,
273,
11144,
18,
464,
12,
12693,
67,
15650,
67,
11704,
18,
902,
1435,
2934,
280,
12,
3355,
1119,
1769,
565,
1033,
1488,
18,
2626,
5268,
6495,
3944,
12,
1612,
16,
6129,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
4046,
1864,
12,
22101,
733,
13,
377,
1216,
16355,
2050,
9454,
288,
565,
9926,
11144,
273,
1033,
1488,
18,
896,
5268,
6495,
3944,
12,
1612,
1769,
565,
9926,
6129,
273,
11144,
18,
464,
12,
12693,
67,
15650,
67,
11704,
18,
902,
1435,
2934,
280,
12,
3355,
1119,
1769,
565,
1033,
1488,
18,
2626,
5268,
6495,
3944,
12,
1612,
16,
6129,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
scOA.computeTicks(ids, la, axOverlay.getLabelPosition(), aax.getOrientation(), dStart, dEnd, false, null);
|
scOA.computeTicks(ids, la, axOverlay.getLabelPosition(), aax.getOrientation(), dStart, dEnd, false, null);
|
private final void updateOverlayAxes(AllAxes aax) throws DataFormatException, GenerationException, UnexpectedInputException { int iDirection = (aax.getOrientation() == HORIZONTAL) ? 1 : -1; final Axis[] axa = cwa.getPrimaryBaseAxes(); final Axis axPrimaryBase = axa[0]; // NOTE: FOR REL 1 AXIS RENDERS, WE // SUPPORT A SINGLE PRIMARY BASE AXIS // ONLY final Axis[] axaOverlayOrthogonal = cwa.getOrthogonalAxes(axPrimaryBase, false); OneAxis axOverlay, axPrimary = aax.getPrimaryOrthogonal(); AutoScale scOA, sc = axPrimary.getScale(); double dMaxSS = Math.max(sc.getStartShift(), aax.getMaxStartShift()); double dMaxES = Math.max(sc.getEndShift(), aax.getMaxEndShift()); double dStart, dEnd; Object[] oaMinMax; FontDefinition fd = null; Object oaData; int iAxisType = (aax.getOverlayCount() > 0) ? aax.getOverlay(0).getScale().getType() : 0; Label la; for (int i = 0; i < aax.getOverlayCount(); i++) { axOverlay = aax.getOverlay(i); la = axOverlay.getLabel(); fd = la.getCaption().getFont(); scOA = axOverlay.getScale(); scOA.setEndPoints(scOA.getStart() - scOA.getStartShift() * iDirection, scOA.getEnd() + scOA.getEndShift() * iDirection); /* * dStart = scOA.getStart() + dMaxSS * iDirection; dEnd = scOA.getEnd() - dMaxES * iDirection; */ dStart = sc.getStart(); dEnd = sc.getEnd(); scOA.setEndPoints(dStart, dEnd); scOA.computeTicks(ids, la, axOverlay.getLabelPosition(), aax.getOrientation(), dStart, dEnd, false, null); if (!scOA.isStepFixed()) { oaMinMax = scOA.getMinMax(); while (!scOA.checkFit(ids, la, axOverlay.getLabelPosition())) { scOA.zoomOut(); scOA.updateAxisMinMax(oaMinMax[0], oaMinMax[1]); scOA.computeTicks(ids, la, axOverlay.getLabelPosition(), aax.getOrientation(), dStart, dEnd, false, null); } } // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS scOA.setData(getTypedDataSet(axaOverlayOrthogonal[i], iAxisType, 0)); } /* * if (aax.areAxesSwapped()) { final AutoScale scPrimaryHorizontal = aax.getPrimaryOrthogonal().getScale(); * scPrimaryHorizontal.setEndPoints( scPrimaryHorizontal.getStart() + scPrimaryHorizontal.getEndShift(), * scPrimaryHorizontal.getEnd() - scPrimaryHorizontal.getStartShift() ); } else { final AutoScale * scPrimaryHorizontal = aax.getPrimaryBase().getScale(); scPrimaryHorizontal.setEndPoints( * scPrimaryHorizontal.getStart() + scPrimaryHorizontal.getEndShift(), scPrimaryHorizontal.getEnd() - * scPrimaryHorizontal.getStartShift() ); } */ }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/PlotWith2DAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
1089,
11627,
26494,
12,
1595,
26494,
279,
651,
13,
1216,
1910,
9291,
16,
23234,
503,
16,
3639,
9649,
20518,
565,
288,
3639,
509,
277,
8212,
273,
261,
69,
651,
18,
588,
14097,
1435,
422,
24606,
13,
692,
404,
294,
300,
21,
31,
3639,
727,
15509,
8526,
1740,
69,
273,
14098,
69,
18,
588,
6793,
2171,
26494,
5621,
3639,
727,
15509,
1740,
6793,
2171,
273,
1740,
69,
63,
20,
15533,
368,
5219,
30,
12108,
15375,
404,
29539,
5127,
28332,
55,
16,
13880,
3639,
368,
16459,
6354,
432,
15915,
20058,
10250,
29539,
5127,
3639,
368,
20747,
3639,
727,
15509,
8526,
1740,
69,
11627,
1162,
451,
28396,
273,
14098,
69,
18,
588,
1162,
451,
28396,
26494,
12,
651,
6793,
2171,
16,
629,
1769,
3639,
6942,
6558,
1740,
11627,
16,
1740,
6793,
273,
279,
651,
18,
588,
6793,
1162,
451,
28396,
5621,
3639,
8064,
5587,
888,
28202,
16,
888,
273,
1740,
6793,
18,
588,
5587,
5621,
3639,
1645,
302,
2747,
1260,
273,
2361,
18,
1896,
12,
1017,
18,
588,
1685,
10544,
9334,
279,
651,
18,
588,
2747,
1685,
10544,
10663,
3639,
1645,
302,
2747,
3991,
273,
2361,
18,
1896,
12,
1017,
18,
588,
1638,
10544,
9334,
279,
651,
18,
588,
2747,
1638,
10544,
10663,
3639,
1645,
302,
1685,
16,
302,
1638,
31,
3639,
1033,
8526,
320,
69,
17454,
31,
3639,
10063,
1852,
5194,
273,
446,
31,
3639,
1033,
320,
69,
751,
31,
3639,
509,
277,
6558,
559,
273,
261,
69,
651,
18,
588,
11627,
1380,
1435,
405,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1089,
11627,
26494,
12,
1595,
26494,
279,
651,
13,
1216,
1910,
9291,
16,
23234,
503,
16,
3639,
9649,
20518,
565,
288,
3639,
509,
277,
8212,
273,
261,
69,
651,
18,
588,
14097,
1435,
422,
24606,
13,
692,
404,
294,
300,
21,
31,
3639,
727,
15509,
8526,
1740,
69,
273,
14098,
69,
18,
588,
6793,
2171,
26494,
5621,
3639,
727,
15509,
1740,
6793,
2171,
273,
1740,
69,
63,
20,
15533,
368,
5219,
30,
12108,
15375,
404,
29539,
5127,
28332,
55,
16,
13880,
3639,
368,
16459,
6354,
432,
15915,
20058,
10250,
29539,
5127,
3639,
368,
20747,
3639,
727,
15509,
8526,
1740,
69,
11627,
1162,
451,
28396,
273,
14098,
69,
18,
588,
1162,
451,
28396,
26494,
12,
651,
2
] |
ostream.flush();
|
ostream.close();
|
public void actionPerformed(ActionEvent e) { JFileChooser fileChooser = new JFileChooser(makeAbsolute(currentSavePath)); fileChooser.setDialogTitle(resources.getString("ExportAsTIFF.title")); fileChooser.setFileHidingEnabled(false); fileChooser.setFileSelectionMode (JFileChooser.FILES_ONLY); fileChooser.addChoosableFileFilter(new ImageFileFilter(".tiff")); int choice = fileChooser.showSaveDialog(JSVGViewerFrame.this); if (choice == JFileChooser.APPROVE_OPTION) { final File f = fileChooser.getSelectedFile(); BufferedImage buffer = svgCanvas.getOffScreen(); if (buffer != null) { statusBar.setMessage (resources.getString("Message.exportAsTIFF")); // create a BufferedImage of the appropriate type int w = buffer.getWidth(); int h = buffer.getHeight(); final ImageTranscoder trans = new TIFFTranscoder(); trans.addTranscodingHint (TIFFTranscoder.KEY_XML_PARSER_CLASSNAME, application.getXMLParserClassName()); final BufferedImage img = trans.createImage(w, h); // paint the buffer to the image Graphics2D g2d = img.createGraphics(); g2d.drawImage(buffer, null, 0, 0); new Thread() { public void run() { try { currentSavePath = f; OutputStream ostream = new BufferedOutputStream (new FileOutputStream(f)); trans.writeImage (img, new TranscoderOutput(ostream)); ostream.flush(); } catch (Exception ex) {} statusBar.setMessage (resources.getString("Message.done")); } }.start(); } } }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/288d0e473bacb99bcc26e3082045e995dd862c55/JSVGViewerFrame.java/clean/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
812,
17324,
585,
17324,
273,
7734,
394,
804,
812,
17324,
12,
6540,
10368,
12,
2972,
4755,
743,
10019,
5411,
585,
17324,
18,
542,
6353,
4247,
12,
4683,
18,
588,
780,
2932,
6144,
1463,
56,
16962,
18,
2649,
7923,
1769,
5411,
585,
17324,
18,
542,
812,
44,
10415,
1526,
12,
5743,
1769,
5411,
585,
17324,
18,
542,
812,
6233,
2309,
7734,
261,
46,
812,
17324,
18,
12669,
67,
10857,
1769,
5411,
585,
17324,
18,
1289,
9636,
538,
429,
29837,
12,
2704,
3421,
29837,
2932,
18,
88,
3048,
7923,
1769,
5411,
509,
6023,
273,
585,
17324,
18,
4500,
4755,
6353,
12,
6479,
9266,
18415,
3219,
18,
2211,
1769,
5411,
309,
261,
11569,
422,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
7734,
727,
1387,
284,
273,
585,
17324,
18,
588,
7416,
812,
5621,
7734,
12362,
1613,
273,
9804,
12971,
18,
588,
7210,
7956,
5621,
7734,
309,
261,
4106,
480,
446,
13,
288,
10792,
1267,
5190,
18,
542,
1079,
13491,
261,
4683,
18,
588,
780,
2932,
1079,
18,
6530,
1463,
56,
16962,
7923,
1769,
10792,
368,
752,
279,
12362,
434,
326,
5505,
618,
10792,
509,
341,
273,
1613,
18,
588,
2384,
5621,
10792,
509,
366,
273,
1613,
18,
588,
2686,
5621,
10792,
727,
3421,
1429,
3396,
906,
273,
394,
27491,
1429,
3396,
5621,
10792,
906,
18,
1289,
1429,
2014,
7002,
13491,
261,
56,
16962,
1429,
3396,
18,
3297,
67,
4201,
67,
30692,
67,
5237,
1985,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
812,
17324,
585,
17324,
273,
7734,
394,
804,
812,
17324,
12,
6540,
10368,
12,
2972,
4755,
743,
10019,
5411,
585,
17324,
18,
542,
6353,
4247,
12,
4683,
18,
588,
780,
2932,
6144,
1463,
56,
16962,
18,
2649,
7923,
1769,
5411,
585,
17324,
18,
542,
812,
44,
10415,
1526,
12,
5743,
1769,
5411,
585,
17324,
18,
542,
812,
6233,
2309,
7734,
261,
46,
812,
17324,
18,
12669,
67,
10857,
1769,
5411,
585,
17324,
18,
1289,
9636,
538,
429,
29837,
12,
2704,
3421,
29837,
2932,
18,
88,
3048,
7923,
1769,
5411,
509,
6023,
273,
585,
17324,
18,
4500,
4755,
6353,
12,
6479,
9266,
18415,
3219,
18,
2211,
1769,
5411,
2
] |
int firstIndent = MiscUtilities.getLeadingWhiteSpace(getLineText(line)); int firstOfLine = getLineStartOffset(line);
|
scrollToCaret(true);
|
public void goToStartOfWhiteSpace(boolean select) { // do this here, for weird reasons Macros.Recorder recorder = view.getMacroRecorder(); if(recorder != null) recorder.record("textArea.goToStartOfWhiteSpace(" + select + ");"); Selection s = getSelectionAtOffset(caret); int line = (select || s == null || !homeEndSelectionHack ? caretLine : s.startLine); int firstIndent = MiscUtilities.getLeadingWhiteSpace(getLineText(line)); int firstOfLine = getLineStartOffset(line); firstIndent = firstOfLine + firstIndent; if(firstIndent == getLineEndOffset(line) - 1) firstIndent = firstOfLine; if(select) extendSelection(caret,firstIndent); else if(!multi) selectNone(); moveCaretPosition(firstIndent); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/0dd723c3694db491cff88aad5a0eee98b1bb8e01/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1960,
28939,
951,
23108,
12,
6494,
2027,
13,
202,
95,
202,
202,
759,
741,
333,
2674,
16,
364,
20843,
14000,
202,
202,
9990,
6973,
18,
10777,
15766,
273,
1476,
18,
588,
17392,
10777,
5621,
202,
202,
430,
12,
3366,
264,
480,
446,
13,
1082,
202,
3366,
264,
18,
3366,
2932,
955,
5484,
18,
3240,
28939,
951,
23108,
2932,
397,
2027,
397,
315,
1769,
8863,
202,
202,
6233,
272,
273,
23204,
861,
2335,
12,
71,
20731,
1769,
202,
202,
474,
980,
273,
261,
4025,
747,
272,
422,
446,
1082,
202,
20081,
401,
8712,
1638,
6233,
44,
484,
1082,
202,
35,
21683,
1670,
294,
272,
18,
1937,
1670,
1769,
202,
202,
474,
1122,
7790,
273,
16584,
71,
11864,
18,
588,
19112,
23108,
12,
588,
1670,
1528,
12,
1369,
10019,
202,
202,
474,
1122,
951,
1670,
273,
9851,
1685,
2335,
12,
1369,
1769,
202,
202,
3645,
7790,
273,
1122,
951,
1670,
397,
1122,
7790,
31,
202,
202,
430,
12,
3645,
7790,
422,
9851,
1638,
2335,
12,
1369,
13,
300,
404,
13,
1082,
202,
3645,
7790,
273,
1122,
951,
1670,
31,
202,
202,
430,
12,
4025,
13,
1082,
202,
14313,
6233,
12,
71,
20731,
16,
3645,
7790,
1769,
202,
202,
12107,
309,
12,
5,
7027,
13,
1082,
202,
4025,
7036,
5621,
202,
202,
8501,
39,
20731,
2555,
12,
3645,
7790,
1769,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1960,
28939,
951,
23108,
12,
6494,
2027,
13,
202,
95,
202,
202,
759,
741,
333,
2674,
16,
364,
20843,
14000,
202,
202,
9990,
6973,
18,
10777,
15766,
273,
1476,
18,
588,
17392,
10777,
5621,
202,
202,
430,
12,
3366,
264,
480,
446,
13,
1082,
202,
3366,
264,
18,
3366,
2932,
955,
5484,
18,
3240,
28939,
951,
23108,
2932,
397,
2027,
397,
315,
1769,
8863,
202,
202,
6233,
272,
273,
23204,
861,
2335,
12,
71,
20731,
1769,
202,
202,
474,
980,
273,
261,
4025,
747,
272,
422,
446,
1082,
202,
20081,
401,
8712,
1638,
6233,
44,
484,
1082,
202,
35,
21683,
1670,
294,
272,
18,
1937,
1670,
1769,
202,
202,
474,
1122,
7790,
273,
16584,
71,
2
] |
return copyOfOldMap.get(key);
|
return oldValue;
|
public Object getOldValue(Object key) { return copyOfOldMap.get(key); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/646de6c1228ca0820a97e225df84d75e3993e272/Diffs.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/Diffs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
336,
7617,
620,
12,
921,
498,
13,
288,
9506,
202,
2463,
13571,
7617,
863,
18,
588,
12,
856,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
336,
7617,
620,
12,
921,
498,
13,
288,
9506,
202,
2463,
13571,
7617,
863,
18,
588,
12,
856,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
public Value eval(StaticContext context, DocumentSet docs, NodeSet contextSet, NodeProxy contextNode) throws XPathException { NodeSet nodes = (NodeSet) path.eval(context, docs, contextSet, contextNode).getNodeList(); if (hits == null) processQuery(docs); long pid; NodeProxy current; NodeProxy parent; NodeSet temp; long start = System.currentTimeMillis(); for (int j = 0; j < hits.length; j++) { temp = new ArraySet(100); for (int k = 0; k < hits[j].length; k++) { if (hits[j][k] == null) continue; for (Iterator i = hits[j][k].iterator(); i.hasNext();) { current = (NodeProxy) i.next(); parent = nodes.parentWithChild(current, false, true); if (parent != null) { if (temp.contains(parent)) { parent.addMatches(current.matches); } else { parent.addMatches(current.matches); temp.add(parent); } } } } hits[j][0] = temp; } NodeSet t0 = null; NodeSet t1; for (int j = 0; j < hits.length; j++) { t1 = hits[j][0]; if (t0 == null) t0 = t1; else t0 = t0.intersection(t1); } if (t0 == null) { t0 = new ArraySet(1); return new ValueNodeSet(t0); } // generate list of search term patterns Pattern terms[] = new Pattern[containsExpr.size()]; for (int i = 0; i < terms.length; i++) try { terms[i] = globCompiler.compile( containsExpr.get(i).toString(), GlobCompiler.CASE_INSENSITIVE_MASK | GlobCompiler.QUESTION_MATCHES_ZERO_OR_ONE_MASK); } catch (MalformedPatternException e) { LOG.warn("malformed pattern", e); return new ValueNodeSet(NodeSet.EMPTY_SET); } // walk through hits and calculate term-distances String value; Pattern term; String word; TextToken token; ArraySet result = new ArraySet(100); DBBroker broker = null; PatternMatcher matcher = new Perl5Matcher(); try { broker = pool.get(); Tokenizer tok = broker.getTextEngine().getTokenizer(); int j; int distance; for (Iterator i = t0.iterator(); i.hasNext();) { current = (NodeProxy) i.next(); value = broker.getNodeValue(current); tok.setText(value); j = 0; if (j < terms.length) term = terms[j]; else break; distance = -1; while ((token = tok.nextToken()) != null) { word = token.getText().toLowerCase(); if (distance > max_distance) { // reset j = 0; term = terms[j]; distance = -1; continue; } if (matcher.matches(word, term)) { distance = 0; j++; if (j == terms.length) { // all terms found result.add(current); break; } else term = terms[j]; } else if (j > 0 && matcher.matches(word, terms[0])) { // first search term found: start again j = 0; term = terms[j]; distance = -1; continue; } else if (-1 < distance) ++distance; } } } catch (EXistException e) { e.printStackTrace(); } finally { pool.release(broker); } return new ValueNodeSet(result); }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/ExtNear.java/buggy/src/org/exist/xpath/ExtNear.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
5302,
12,
5788,
1042,
819,
16,
4319,
694,
3270,
16,
2029,
694,
819,
694,
16,
3196,
202,
907,
3886,
819,
907,
13,
1216,
10172,
503,
288,
202,
202,
907,
694,
2199,
273,
261,
907,
694,
13,
589,
18,
8622,
12,
2472,
16,
3270,
16,
819,
694,
16,
819,
907,
2934,
588,
19914,
5621,
202,
202,
430,
261,
15173,
422,
446,
13,
1082,
202,
2567,
1138,
12,
8532,
1769,
202,
202,
5748,
4231,
31,
202,
202,
907,
3886,
783,
31,
202,
202,
907,
3886,
982,
31,
202,
202,
907,
694,
1906,
31,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
11076,
18,
2469,
31,
525,
27245,
288,
1082,
202,
5814,
273,
394,
1510,
694,
12,
6625,
1769,
1082,
202,
1884,
261,
474,
417,
273,
374,
31,
417,
411,
11076,
63,
78,
8009,
2469,
31,
417,
27245,
288,
9506,
202,
430,
261,
15173,
63,
78,
6362,
79,
65,
422,
446,
13,
6862,
202,
17143,
31,
9506,
202,
1884,
261,
3198,
277,
273,
11076,
63,
78,
6362,
79,
8009,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
6862,
202,
2972,
273,
261,
907,
3886,
13,
277,
18,
4285,
5621,
6862,
202,
2938,
273,
2199,
18,
2938,
1190,
1763,
12,
2972,
16,
629,
16,
638,
1769,
6862,
202,
430,
261,
2938,
480,
446,
13,
288,
25083,
202,
430,
261,
5814,
18,
12298,
12,
2938,
3719,
288,
6862,
1082,
202,
2938,
18,
1289,
6869,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
5302,
12,
5788,
1042,
819,
16,
4319,
694,
3270,
16,
2029,
694,
819,
694,
16,
3196,
202,
907,
3886,
819,
907,
13,
1216,
10172,
503,
288,
202,
202,
907,
694,
2199,
273,
261,
907,
694,
13,
589,
18,
8622,
12,
2472,
16,
3270,
16,
819,
694,
16,
819,
907,
2934,
588,
19914,
5621,
202,
202,
430,
261,
15173,
422,
446,
13,
1082,
202,
2567,
1138,
12,
8532,
1769,
202,
202,
5748,
4231,
31,
202,
202,
907,
3886,
783,
31,
202,
202,
907,
3886,
982,
31,
202,
202,
907,
694,
1906,
31,
202,
202,
5748,
787,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
11076,
18,
2469,
2
] |
|
{ String hierName = mdxHierarchy.getUniqueName(); if (limitedMembers == null || hierName == null) { return null; } for (int i = 0; i < limitedMembers.length; i++) { Hierarchy limitedHierarchy = limitedMembers[i].getHierarchy(); if (hierName.equalsIgnoreCase( limitedHierarchy.getUniqueName())) { return limitedMembers[i]; } } return null; }
|
{ String hierName = mdxHierarchy.getUniqueName(); if (limitedMembers == null || hierName == null) { return null; } for (int i = 0; i < limitedMembers.length; i++) { Hierarchy limitedHierarchy = limitedMembers[i].getHierarchy(); if (hierName.equalsIgnoreCase( limitedHierarchy.getUniqueName())) { return limitedMembers[i]; } } return null; }
|
public Member getLimitedMemberForHierarchy(Hierarchy mdxHierarchy) { String hierName = mdxHierarchy.getUniqueName(); if (limitedMembers == null || hierName == null) { return null; } for (int i = 0; i < limitedMembers.length; i++) { Hierarchy limitedHierarchy = limitedMembers[i].getHierarchy(); if (hierName.equalsIgnoreCase( limitedHierarchy.getUniqueName())) { return limitedMembers[i]; } } return null; }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/CubeAccess.java/buggy/src/main/mondrian/olap/CubeAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8596,
19563,
329,
4419,
1290,
12074,
12,
12074,
3481,
92,
12074,
13,
202,
95,
202,
202,
780,
366,
2453,
461,
273,
3481,
92,
12074,
18,
588,
6303,
461,
5621,
202,
202,
430,
261,
21325,
6918,
422,
446,
747,
366,
2453,
461,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
13594,
6918,
18,
2469,
31,
277,
27245,
288,
1082,
202,
12074,
13594,
12074,
273,
9506,
202,
21325,
6918,
63,
77,
8009,
588,
12074,
5621,
1082,
202,
430,
261,
76,
2453,
461,
18,
14963,
5556,
12,
13594,
12074,
18,
588,
6303,
461,
1435,
3719,
288,
9506,
202,
2463,
13594,
6918,
63,
77,
15533,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8596,
19563,
329,
4419,
1290,
12074,
12,
12074,
3481,
92,
12074,
13,
202,
95,
202,
202,
780,
366,
2453,
461,
273,
3481,
92,
12074,
18,
588,
6303,
461,
5621,
202,
202,
430,
261,
21325,
6918,
422,
446,
747,
366,
2453,
461,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
13594,
6918,
18,
2469,
31,
277,
27245,
288,
1082,
202,
12074,
13594,
12074,
273,
9506,
202,
21325,
6918,
63,
77,
8009,
588,
12074,
5621,
1082,
202,
430,
261,
76,
2453,
461,
18,
14963,
5556,
12,
13594,
12074,
18,
588,
6303,
461,
1435,
3719,
288,
9506,
202,
2463,
13594,
6918,
63,
77,
15533,
2
] |
File viewDir = getViewerDriverLocation( );
|
public void copyJarToODADir( ) { File source = new File( filePath ); File odaDir = getDriverLocation( ); File viewDir = getViewerDriverLocation( ); File dest1 = null, dest2 = null; if ( odaDir != null ) { dest1 = new File( odaDir.getAbsolutePath( ) + File.separator + source.getName( ) ); } if ( viewDir != null ) { dest2 = new File( viewDir.getAbsolutePath( ) + File.separator + source.getName( ) ); } if ( source.exists( ) ) { FileChannel in = null, out1 = null, out2 = null; try { if ( dest1 != null ) { try { out1 = new FileOutputStream( dest1 ).getChannel( ); } catch ( FileNotFoundException e ) { //does nothing. } } if ( dest2 != null ) { try { out2 = new FileOutputStream( dest2 ).getChannel( ); } catch ( FileNotFoundException e ) { //does nothing. } } if ( out1 != null ) { in = new FileInputStream( source ).getChannel( ); long size = in.size( ); MappedByteBuffer buf = in.map( FileChannel.MapMode.READ_ONLY, 0, size ); out1.write( buf ); } try { if ( in != null ) { in.close( ); } } catch ( IOException e1 ) { //does nothing. } if ( out2 != null ) { in = new FileInputStream( source ).getChannel( ); long size = in.size( ); MappedByteBuffer buf = in.map( FileChannel.MapMode.READ_ONLY, 0, size ); out2.write( buf ); } } catch ( FileNotFoundException e ) { //does nothing. } catch ( IOException e ) { //does nothing. } finally { try { if ( in != null ) { in.close( ); } if ( out1 != null ) { out1.close( ); } if ( out2 != null ) { out2.close( ); } } catch ( IOException e1 ) { //does nothing. } } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c4e72ab8921fec2ae4b19bfe0e6ba3f5903220a2/JarFile.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/util/JarFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1610,
10813,
774,
1212,
37,
1621,
12,
262,
202,
95,
202,
202,
812,
1084,
273,
394,
1387,
12,
4612,
11272,
202,
202,
812,
320,
2414,
1621,
273,
15885,
2735,
12,
11272,
202,
202,
812,
1476,
1621,
273,
8893,
264,
4668,
2735,
12,
11272,
202,
202,
812,
1570,
21,
273,
446,
16,
1570,
22,
273,
446,
31,
202,
202,
430,
261,
320,
2414,
1621,
480,
446,
262,
202,
202,
95,
1082,
202,
10488,
21,
273,
394,
1387,
12,
320,
2414,
1621,
18,
588,
10368,
743,
12,
262,
6862,
202,
15,
1387,
18,
11287,
6862,
202,
15,
1084,
18,
17994,
12,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
1476,
1621,
480,
446,
262,
202,
202,
95,
1082,
202,
10488,
22,
273,
394,
1387,
12,
1476,
1621,
18,
588,
10368,
743,
12,
262,
6862,
202,
15,
1387,
18,
11287,
6862,
202,
15,
1084,
18,
17994,
12,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
1084,
18,
1808,
12,
262,
262,
202,
202,
95,
1082,
202,
812,
2909,
316,
273,
446,
16,
596,
21,
273,
446,
16,
596,
22,
273,
446,
31,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
1570,
21,
480,
446,
262,
9506,
202,
95,
6862,
202,
698,
6862,
202,
95,
25083,
202,
659,
21,
273,
394,
12942,
12,
1570,
21,
262,
18,
588,
2909,
12,
11272,
6862,
202,
97,
6862,
202,
14683,
261,
13707,
425,
262,
6862,
202,
95,
25083,
202,
759,
20657,
5083,
18,
6862,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1610,
10813,
774,
1212,
37,
1621,
12,
262,
202,
95,
202,
202,
812,
1084,
273,
394,
1387,
12,
4612,
11272,
202,
202,
812,
320,
2414,
1621,
273,
15885,
2735,
12,
11272,
202,
202,
812,
1476,
1621,
273,
8893,
264,
4668,
2735,
12,
11272,
202,
202,
812,
1570,
21,
273,
446,
16,
1570,
22,
273,
446,
31,
202,
202,
430,
261,
320,
2414,
1621,
480,
446,
262,
202,
202,
95,
1082,
202,
10488,
21,
273,
394,
1387,
12,
320,
2414,
1621,
18,
588,
10368,
743,
12,
262,
6862,
202,
15,
1387,
18,
11287,
6862,
202,
15,
1084,
18,
17994,
12,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
1476,
1621,
480,
446,
262,
202,
202,
2
] |
|
throw new MojoExecutionException( "Error parsing existing IML file", e );
|
throw new MojoExecutionException( "Error parsing existing IML file " + moduleFile.getAbsolutePath(), e );
|
private void rewriteModule() throws MojoExecutionException { try { File moduleFile = new File( project.getBasedir(), project.getArtifactId() + ".iml" ); Reader reader; if ( moduleFile.exists() ) { reader = new FileReader( moduleFile ); } else { reader = new InputStreamReader( getClass().getResourceAsStream( "/templates/default/module.xml" ) ); } Xpp3Dom module; try { module = Xpp3DomBuilder.build( reader ); } finally { IOUtil.close( reader ); } // TODO: how can we let the WAR/EJBs plugin hook in and provide this? // TODO: merge in ejb-module, etc. if ( project.getPackaging().equals( "war" ) ) { addWebModule( module ); } else if ( project.getPackaging().equals( "ejb" ) ) { module.setAttribute( "type", "J2EE_EJB_MODULE" ); } Xpp3Dom component = findComponent( module, "NewModuleRootManager" ); Xpp3Dom output = findElement( component, "output" ); output.setAttribute( "url", getModuleFileUrl( project.getBuild().getOutputDirectory() ) ); Xpp3Dom outputTest = findElement( component, "output-test" ); outputTest.setAttribute( "url", getModuleFileUrl( project.getBuild().getTestOutputDirectory() ) ); Xpp3Dom content = findElement( component, "content" ); removeOldElements( content, "sourceFolder" ); for ( Iterator i = executedProject.getCompileSourceRoots().iterator(); i.hasNext(); ) { String directory = (String) i.next(); addSourceFolder( content, directory, false ); } for ( Iterator i = executedProject.getTestCompileSourceRoots().iterator(); i.hasNext(); ) { String directory = (String) i.next(); addSourceFolder( content, directory, true ); } for ( Iterator i = project.getBuild().getResources().iterator(); i.hasNext(); ) { Resource resource = (Resource) i.next(); String directory = resource.getDirectory(); addSourceFolder( content, directory, false ); } for ( Iterator i = project.getBuild().getTestResources().iterator(); i.hasNext(); ) { Resource resource = (Resource) i.next(); String directory = resource.getDirectory(); addSourceFolder( content, directory, true ); } removeOldDependencies( component ); // Must loop artifacts, not dependencies to resolve transitivity for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); ) { Artifact a = (Artifact) i.next(); // TODO: resolve projects in reactor as references Xpp3Dom dep = createElement( component, "orderEntry" ); dep.setAttribute( "type", "module-library" ); dep = createElement( dep, "library" ); dep.setAttribute( "name", a.getArtifactId() ); Xpp3Dom el = createElement( dep, "CLASSES" ); el = createElement( el, "root" ); el.setAttribute( "url", "jar://" + a.getFile().getAbsolutePath().replace( '\\', '/' ) + "!/" ); createElement( dep, "JAVADOC" ); createElement( dep, "SOURCES" ); } FileWriter writer = new FileWriter( moduleFile ); try { Xpp3DomWriter.write( writer, module ); } finally { IOUtil.close( writer ); } } catch ( XmlPullParserException e ) { throw new MojoExecutionException( "Error parsing existing IML file", e ); } catch ( IOException e ) { throw new MojoExecutionException( "Error parsing existing IML file", e ); } }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/82ac502e78e333c9a776096909aa9cc1b3565b57/IdeaMojo.java/clean/maven-plugins/maven-idea-plugin/src/main/java/org/apache/maven/plugin/idea/IdeaMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10738,
3120,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
1387,
1605,
812,
273,
394,
1387,
12,
1984,
18,
588,
2171,
1214,
9334,
1984,
18,
588,
7581,
548,
1435,
397,
3552,
381,
80,
6,
11272,
5411,
5393,
2949,
31,
5411,
309,
261,
1605,
812,
18,
1808,
1435,
262,
5411,
288,
7734,
2949,
273,
394,
23010,
12,
1605,
812,
11272,
5411,
289,
5411,
469,
5411,
288,
7734,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
2206,
8502,
19,
1886,
19,
2978,
18,
2902,
6,
262,
11272,
5411,
289,
5411,
1139,
11858,
23,
8832,
1605,
31,
5411,
775,
5411,
288,
7734,
1605,
273,
1139,
11858,
23,
8832,
1263,
18,
3510,
12,
2949,
11272,
5411,
289,
5411,
3095,
5411,
288,
7734,
1665,
1304,
18,
4412,
12,
2949,
11272,
5411,
289,
5411,
368,
2660,
30,
3661,
848,
732,
2231,
326,
678,
985,
19,
22719,
87,
1909,
3953,
316,
471,
5615,
333,
35,
5411,
368,
2660,
30,
2691,
316,
18024,
17,
2978,
16,
5527,
18,
5411,
309,
261,
1984,
18,
588,
4420,
5755,
7675,
14963,
12,
315,
905,
6,
262,
262,
5411,
288,
7734,
527,
4079,
3120,
12,
1605,
11272,
5411,
289,
5411,
469,
309,
261,
1984,
18,
588,
4420,
5755,
7675,
14963,
12,
315,
73,
10649,
6,
262,
262,
5411,
288,
7734,
1605,
18,
542,
1499,
12,
315,
723,
3113,
315,
46,
22,
9383,
67,
22719,
67,
12194,
6,
11272,
5411,
289,
5411,
1139,
11858,
23,
8832,
1794,
273,
1104,
1841,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10738,
3120,
1435,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
1387,
1605,
812,
273,
394,
1387,
12,
1984,
18,
588,
2171,
1214,
9334,
1984,
18,
588,
7581,
548,
1435,
397,
3552,
381,
80,
6,
11272,
5411,
5393,
2949,
31,
5411,
309,
261,
1605,
812,
18,
1808,
1435,
262,
5411,
288,
7734,
2949,
273,
394,
23010,
12,
1605,
812,
11272,
5411,
289,
5411,
469,
5411,
288,
7734,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
2206,
8502,
19,
1886,
19,
2978,
18,
2902,
6,
262,
11272,
5411,
289,
5411,
1139,
11858,
23,
8832,
1605,
31,
5411,
775,
5411,
288,
7734,
1605,
273,
1139,
11858,
23,
8832,
1263,
18,
3510,
12,
2949,
2
] |
paintButtonNormal(g, br, c);
|
paintButtonNormal(g, vr, c);
|
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, br); SwingUtilities.calculateInsetArea(br, b.getMargin(), vr); String text = SwingUtilities.layoutCompoundLabel(c, g.getFontMetrics(f), b.getText(), currentIcon(b), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if ((b.getModel().isArmed() && b.getModel().isPressed()) || b.isSelected()) paintButtonPressed(g, b); else paintButtonNormal(g, br, c); paintIcon(g, c, ir); if (text != null) paintText(g, b, tr, text); paintFocus(g, b, vr, tr, ir); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/a941958a5690f419f5341420c99470b098f4ddc2/BasicButtonUI.java/buggy/libraries/javalib/javax/swing/plaf/basic/BasicButtonUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
12,
17558,
314,
16,
29058,
276,
13,
225,
288,
1850,
4115,
3616,
324,
273,
261,
7469,
3616,
13,
276,
31,
565,
13264,
433,
273,
394,
13264,
5621,
565,
13264,
9482,
273,
394,
13264,
5621,
565,
13264,
16612,
273,
394,
13264,
5621,
565,
13264,
5186,
273,
394,
13264,
5621,
565,
10063,
284,
273,
276,
18,
588,
5711,
5621,
565,
314,
18,
542,
5711,
12,
74,
1769,
565,
26145,
11864,
18,
11162,
2857,
5484,
12,
70,
16,
5186,
1769,
565,
26145,
11864,
18,
11162,
382,
542,
5484,
12,
2848,
16,
324,
18,
588,
9524,
9334,
16612,
1769,
3639,
514,
977,
273,
26145,
11864,
18,
6741,
16835,
2224,
12,
71,
16,
314,
18,
588,
5711,
5653,
12,
74,
3631,
4766,
8227,
324,
18,
588,
1528,
9334,
4766,
5397,
783,
5554,
12,
70,
3631,
4766,
5397,
324,
18,
588,
15704,
11535,
9334,
4766,
8227,
324,
18,
588,
14457,
11535,
9334,
4766,
5397,
324,
18,
588,
15704,
1528,
2555,
9334,
4766,
8227,
324,
18,
588,
14457,
1528,
2555,
9334,
4766,
5397,
16612,
16,
9482,
16,
433,
16,
4766,
8227,
324,
18,
588,
5554,
1528,
14001,
1435,
4766,
8227,
397,
805,
1528,
10544,
2335,
1769,
3639,
309,
14015,
70,
18,
588,
1488,
7675,
291,
686,
2937,
1435,
597,
324,
18,
588,
1488,
7675,
291,
24624,
10756,
540,
747,
324,
18,
291,
7416,
10756,
1377,
12574,
3616,
24624,
12,
75,
16,
324,
1769,
565,
469,
1377,
12574,
3616,
5506,
12,
75,
16,
5186,
16,
276,
1769,
202,
565,
12574,
5554,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
12,
17558,
314,
16,
29058,
276,
13,
225,
288,
1850,
4115,
3616,
324,
273,
261,
7469,
3616,
13,
276,
31,
565,
13264,
433,
273,
394,
13264,
5621,
565,
13264,
9482,
273,
394,
13264,
5621,
565,
13264,
16612,
273,
394,
13264,
5621,
565,
13264,
5186,
273,
394,
13264,
5621,
565,
10063,
284,
273,
276,
18,
588,
5711,
5621,
565,
314,
18,
542,
5711,
12,
74,
1769,
565,
26145,
11864,
18,
11162,
2857,
5484,
12,
70,
16,
5186,
1769,
565,
26145,
11864,
18,
11162,
382,
542,
5484,
12,
2848,
16,
324,
18,
588,
9524,
9334,
16612,
1769,
3639,
514,
977,
273,
26145,
11864,
18,
6741,
16835,
2224,
12,
71,
16,
314,
18,
588,
5711,
5653,
12,
74,
2
] |
m_gtpShellText.setPositionToEnd();
|
private void comboBoxEdited() { m_gtpShellText.setPositionToEnd(); String command = m_comboBox.getSelectedItem().toString(); if (command.trim().equals("")) return; sendCommand(command, null, false); appendToHistory(command); m_comboBox.hidePopup(); addAllCompletions(m_history); m_editor.setItem(null); m_comboBox.requestFocusInWindow(); m_textField.requestFocusInWindow(); }
|
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/95c80efd9c47ec118d0f92323d08945e6e60e950/GtpShell.java/clean/src/net/sf/gogui/gui/GtpShell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
16778,
3514,
4666,
329,
1435,
565,
288,
9079,
514,
1296,
273,
312,
67,
25053,
3514,
18,
588,
7416,
1180,
7675,
10492,
5621,
7734,
309,
261,
3076,
18,
5290,
7675,
14963,
2932,
6,
3719,
5411,
327,
31,
3639,
1366,
2189,
12,
3076,
16,
446,
16,
629,
1769,
3639,
16022,
5623,
12,
3076,
1769,
3639,
312,
67,
25053,
3514,
18,
11248,
13770,
5621,
3639,
5428,
6297,
1115,
12,
81,
67,
8189,
1769,
3639,
312,
67,
9177,
18,
542,
1180,
12,
2011,
1769,
3639,
312,
67,
25053,
3514,
18,
2293,
9233,
382,
3829,
5621,
3639,
312,
67,
955,
974,
18,
2293,
9233,
382,
3829,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
16778,
3514,
4666,
329,
1435,
565,
288,
9079,
514,
1296,
273,
312,
67,
25053,
3514,
18,
588,
7416,
1180,
7675,
10492,
5621,
7734,
309,
261,
3076,
18,
5290,
7675,
14963,
2932,
6,
3719,
5411,
327,
31,
3639,
1366,
2189,
12,
3076,
16,
446,
16,
629,
1769,
3639,
16022,
5623,
12,
3076,
1769,
3639,
312,
67,
25053,
3514,
18,
11248,
13770,
5621,
3639,
5428,
6297,
1115,
12,
81,
67,
8189,
1769,
3639,
312,
67,
9177,
18,
542,
1180,
12,
2011,
1769,
3639,
312,
67,
25053,
3514,
18,
2293,
9233,
382,
3829,
5621,
3639,
312,
67,
955,
974,
18,
2293,
9233,
382,
3829,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public Dimension ( int w, int h ) { width = w; height = h;
|
public Dimension() {
|
public Dimension ( int w, int h ) { width = w; height = h;}
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5a82ba09076f60d5bbf462a3bd2ea629909d5dab/Dimension.java/buggy/libraries/javalib/java/awt/Dimension.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
13037,
261,
509,
341,
16,
509,
366,
262,
288,
202,
2819,
225,
273,
341,
31,
202,
4210,
273,
366,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
13037,
261,
509,
341,
16,
509,
366,
262,
288,
202,
2819,
225,
273,
341,
31,
202,
4210,
273,
366,
31,
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
] |
protected double operator(double left, double right) { return Math.pow( left, right ); }
|
protected double operator( double left, double right ) { return Math.pow(left, right); }
|
protected double operator(double left, double right) { return Math.pow( left, right ); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/Power.java/buggy/jmock/examples/calculator/src/org/jmock/examples/calculator/expression/Power.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1645,
3726,
12,
9056,
2002,
16,
1645,
2145,
13,
288,
3639,
327,
2361,
18,
23509,
12,
2002,
16,
2145,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1645,
3726,
12,
9056,
2002,
16,
1645,
2145,
13,
288,
3639,
327,
2361,
18,
23509,
12,
2002,
16,
2145,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.