rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
registerFunctions("g", getFunctions());
|
registerFunctions("", PrimitiveFunctions.class); registerFunctions(GENESIS_FUNCTIONS_NS, getFunctions());
|
protected ELScriptContext(Object root, ExpressionEvaluator evaluator) { this.evaluator = evaluator; variables.put("form", root); registerFunctions("", Functions.class); registerFunctions("g", getFunctions()); }
|
4173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4173/7d641649383cd74780e1acc9278d113b3412b132/ELScriptContext.java/clean/genesis/modules/client/src/net/java/dev/genesis/script/el/ELScriptContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
14801,
3651,
1042,
12,
921,
1365,
16,
5371,
15876,
18256,
13,
288,
1377,
333,
18,
14168,
639,
273,
18256,
31,
1377,
3152,
18,
458,
2932,
687,
3113,
1365,
1769,
1377,
1744,
7503,
2932,
3113,
15486,
18,
1106,
1769,
1377,
1744,
7503,
2932,
3113,
14488,
7503,
18,
1106,
1769,
1744,
7503,
12,
16652,
41,
15664,
67,
7788,
55,
67,
3156,
16,
336,
7503,
10663,
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,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,
639,
273,
18256,
31,
1377,
3152,
18,
458,
2932,
687,
3113,
1365,
1769,
1377,
1744,
7503,
2932,
3113,
15486,
18,
1106,
1769,
1377,
1744,
7503,
2932,
3113,
14488,
7503,
18,
1106,
1769,
1744,
7503,
12,
16652,
41,
15664,
67,
7788,
55,
67,
3156,
16,
336,
7503,
10663,
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
] |
return null;
|
throw new UnsupportedOperationException();
|
public WellKnownTimeZone getTimeZoneById(String tzId) throws ServiceException { // TODO Auto-generated method stub return null; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/8b2329a0f119117b07dfcc6de696a1f67f2c78e9/SoapProvisioning.java/buggy/ZimbraServer/src/java/com/zimbra/cs/account/soap/SoapProvisioning.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
1165,
11925,
16760,
28556,
5132,
12,
780,
6016,
548,
13,
5411,
1216,
16489,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
604,
394,
13172,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
1165,
11925,
16760,
28556,
5132,
12,
780,
6016,
548,
13,
5411,
1216,
16489,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
604,
394,
13172,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new UnsupportedOperationException("Method not supported by implementation");
|
return Collections.EMPTY_MAP;
|
public Map getBeansOfType(Class type) throws BeansException { throw new UnsupportedOperationException("Method not supported by implementation"); }
|
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/4dd32b01c0729bd786d2d753318d8d04d7948418/MockApplicationContext.java/buggy/test/commons/org/codehaus/groovy/grails/MockApplicationContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
336,
14495,
18859,
12,
797,
618,
13,
1216,
4823,
634,
503,
288,
202,
202,
12849,
394,
13172,
2932,
1305,
486,
3260,
635,
4471,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
336,
14495,
18859,
12,
797,
618,
13,
1216,
4823,
634,
503,
288,
202,
202,
12849,
394,
13172,
2932,
1305,
486,
3260,
635,
4471,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ out.println("\t\t\t\tcdata = _parser.getText();"); }
|
{ out.println("\t\t\t\tcdata = _parser.getText();"); }
|
public void writeJavaGetCDataContent(PrintWriter out) { out.println("\t\t\t\tcdata = _parser.getText();"); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/MetaGenerator.java/clean/src/main/mondrian/xom/Met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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
5852,
967,
39,
751,
1350,
12,
5108,
2289,
596,
13,
202,
95,
202,
202,
659,
18,
8222,
31458,
88,
64,
88,
64,
88,
64,
5111,
892,
273,
389,
4288,
18,
588,
1528,
26994,
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
] |
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker tracker) { return getStrategy().createWalker(agentConfig, name, createTooBigTracker(agentConfig, tracker));
|
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker[] trackers) { return getStrategy().createWalker(agentConfig, name, createTooBigTracker(agentConfig, trackers));
|
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker tracker) { return getStrategy().createWalker(agentConfig, name, createTooBigTracker(agentConfig, tracker)); }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/539c22ef488bf686089f0f9bba3695e1ee959078/SnmpUtils.java/buggy/opennms-snmp/opennms-snmp-api/src/main/java/org/opennms/netmgt/snmp/SnmpUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
18961,
1291,
16246,
752,
16246,
12,
10461,
1291,
3630,
809,
4040,
809,
16,
514,
508,
16,
2200,
8135,
9745,
13,
288,
3639,
327,
24017,
3131,
7675,
2640,
16246,
12,
5629,
809,
16,
508,
16,
752,
10703,
9901,
8135,
12,
5629,
809,
16,
9745,
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,
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16,
514,
508,
16,
2200,
8135,
9745,
13,
288,
3639,
327,
24017,
3131,
7675,
2640,
16246,
12,
5629,
809,
16,
508,
16,
752,
10703,
9901,
8135,
12,
5629,
809,
16,
9745,
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
] |
AST tmp2383_AST_in = (AST)_t;
|
AST tmp2385_AST_in = (AST)_t;
|
public final void sql_comp_query(AST _t) throws RecognitionException { AST sql_comp_query_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2506 = _t; AST tmp2380_AST_in = (AST)_t; match(_t,Sql_comp_query); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ANY: { AST tmp2381_AST_in = (AST)_t; match(_t,ANY); _t = _t.getNextSibling(); break; } case ALL: { AST tmp2382_AST_in = (AST)_t; match(_t,ALL); _t = _t.getNextSibling(); break; } case SOME: { AST tmp2383_AST_in = (AST)_t; match(_t,SOME); _t = _t.getNextSibling(); break; } case LEFTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2384_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; AST tmp2385_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2506; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1847,
67,
2919,
67,
2271,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
2919,
67,
2271,
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,
2947,
7677,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
3672,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
5101,
67,
2919,
67,
2271,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
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,
16743,
30,
202,
202,
95,
1082,
202,
9053,
1853,
4366,
11861,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
15409,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
8061,
30,
202,
202,
95,
1082,
202,
9053,
1853,
4366,
11149,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4685,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
7460,
958,
30,
202,
202,
95,
1082,
202,
9053,
1853,
4366,
10261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1847,
67,
2919,
67,
2271,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
2919,
67,
2271,
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,
2947,
7677,
273,
389,
88,
31,
202,
202,
9053,
1853,
4366,
3672,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
5101,
67,
2919,
67,
2271,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
2
] |
dataSet = new JDBCCategoryDataset(conn, chart.getJdbcDataSet().getSql());
|
dataSet = new JDBCCategoryDataset(conn, chartConfig.getJdbcDataSet().getSql());
|
public static JFreeChart getBarChart(String chartName) throws MarshalException, ValidationException, IOException, SQLException { BarChart chart = null; Connection conn = null; CategoryDataset dataSet = null; chart = getBarChartConfigByName(chartName); conn = DatabaseConnectionFactory.getInstance().getConnection(); dataSet = new JDBCCategoryDataset(conn, chart.getJdbcDataSet().getSql()); PlotOrientation po = (chart.getPlotOrientation() == "horizontal" ? PlotOrientation.HORIZONTAL : PlotOrientation.VERTICAL); JFreeChart barChart = ChartFactory.createBarChart(chart.getTitle().getValue(), chart.getDomainAxisLabel(), chart.getRangeAxisLabel(), dataSet, po, chart.getShowLegend(), chart.getShowToolTips(), chart.getShowUrls()); return barChart; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/e7715c9c76a90c6265fa2b25cd514bcb3e17b59c/ChartUtils.java/buggy/src/services/org/opennms/netmgt/charts/ChartUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
804,
9194,
7984,
2882,
297,
7984,
12,
780,
4980,
461,
13,
1216,
5884,
503,
16,
15614,
16,
1860,
16,
6483,
288,
3639,
16654,
7984,
4980,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
9856,
10656,
14837,
273,
446,
31,
3639,
4980,
273,
2882,
297,
7984,
809,
5911,
12,
11563,
461,
1769,
3639,
1487,
273,
5130,
18749,
18,
588,
1442,
7675,
588,
1952,
5621,
3639,
14837,
273,
394,
16364,
4457,
10656,
12,
4646,
16,
4980,
809,
18,
588,
25316,
13676,
7675,
588,
5101,
10663,
7734,
15211,
14097,
8275,
273,
261,
11563,
18,
588,
11532,
14097,
1435,
422,
315,
18396,
6,
692,
15211,
14097,
18,
44,
20344,
294,
15211,
14097,
18,
21654,
10109,
1769,
7734,
804,
9194,
7984,
4653,
7984,
273,
14804,
1733,
18,
2640,
5190,
7984,
12,
11563,
18,
588,
4247,
7675,
24805,
9334,
7734,
4980,
18,
588,
3748,
6558,
2224,
9334,
7734,
4980,
18,
588,
2655,
6558,
2224,
9334,
7734,
14837,
16,
7734,
8275,
16,
7734,
4980,
18,
588,
5706,
16812,
9334,
7734,
4980,
18,
588,
5706,
6364,
56,
7146,
9334,
7734,
4980,
18,
588,
5706,
10509,
10663,
7734,
327,
4653,
7984,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
804,
9194,
7984,
2882,
297,
7984,
12,
780,
4980,
461,
13,
1216,
5884,
503,
16,
15614,
16,
1860,
16,
6483,
288,
3639,
16654,
7984,
4980,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
9856,
10656,
14837,
273,
446,
31,
3639,
4980,
273,
2882,
297,
7984,
809,
5911,
12,
11563,
461,
1769,
3639,
1487,
273,
5130,
18749,
18,
588,
1442,
7675,
588,
1952,
5621,
3639,
14837,
273,
394,
16364,
4457,
10656,
12,
4646,
16,
4980,
809,
18,
588,
25316,
13676,
7675,
588,
5101,
10663,
7734,
15211,
14097,
8275,
273,
261,
11563,
18,
588,
11532,
14097,
1435,
422,
315,
18396,
6,
692,
15211,
14097,
18,
44,
20344,
294,
15211,
14097,
18,
21654,
10109,
1769,
7734,
804,
2
] |
{ if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
|
{ if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
|
void initialize(AnnotatorView view) { if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorControl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4046,
12,
11280,
639,
1767,
1476,
13,
225,
288,
1377,
309,
261,
1945,
422,
446,
13,
604,
394,
10108,
2932,
2279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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
4046,
12,
11280,
639,
1767,
1476,
13,
225,
288,
1377,
309,
261,
1945,
422,
446,
13,
604,
394,
10108,
2932,
2279,
1476,
1199,
1769,
1377,
333,
18,
1945,
273,
1476,
31,
1377,
752,
6100,
5621,
1377,
3306,
5583,
5621,
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
] |
onFailure(new InserterException(InserterException.INTERNAL_ERROR, "Did not expect to get metadata for metadata inserter", null), state);
|
public void onMetadata(Metadata meta, ClientPutState state) { if(finished) return; if(state == metadataPutter) { Logger.error(this, "Got metadata for metadata"); // FIXME kill? } else if(state != sfi) { Logger.error(this, "Got unknown metadata"); // FIXME kill? } if(reportMetadataOnly) { cb.onMetadata(meta, this); metaInsertSuccess = true; } else { synchronized(this) { Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { InserterException ex = new InserterException(InserterException.BUCKET_ERROR, e, null); fail(ex); return; } InsertBlock newBlock = new InsertBlock(metadataBucket, null, block.desiredURI); try { metadataPutter = new SingleFileInserter(parent, this, newBlock, true, ctx, false, getCHKOnly, false, false); Logger.minor(this, "Putting metadata on "+metadataPutter); } catch (InserterException e) { cb.onFailure(e, this); return; } } try { ((SingleFileInserter)metadataPutter).start(); } catch (InserterException e) { fail(e); return; } } }
|
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/ef788311cb05dcb7cfb25e8730cf1116e0107574/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
918,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
603,
2277,
12,
2277,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
2191,
16,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
2445,
6426,
1119,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
919,
13,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
288,
1082,
202,
430,
12,
13527,
13,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
918,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
603,
2277,
12,
2277,
265,
5247,
12,
2704,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
3631,
919,
1769,
2191,
16,
265,
5247,
12,
2704,
2
] |
|
public final int hashCode() { return namespaceURI.hashCode() ^ localPart.hashCode();
|
public int hashCode() { int result; result = namespaceURI.hashCode(); result = 29 * result + localPart.hashCode(); return result;
|
public final int hashCode() { return namespaceURI.hashCode() ^ localPart.hashCode(); }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/4ef6328facf58c73897cfdfdcab277b98ab67825/QName.java/clean/src/main/groovy/xml/QName.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
13374,
1435,
288,
3639,
327,
19421,
18,
2816,
1085,
1435,
3602,
1191,
1988,
18,
2816,
1085,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
13374,
1435,
288,
3639,
327,
19421,
18,
2816,
1085,
1435,
3602,
1191,
1988,
18,
2816,
1085,
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
] |
public Object clone() { /* RuntimeException e = new RuntimeException(); e.printStackTrace(); */ // Shallow clone PropertyGroupSchedule schedule = new PropertyGroupSchedule(this); schedule.lockPGs(); return schedule; }
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/2386c7862747e16d8ca30e91fb5ca94ae411b1ee/PropertyGroupSchedule.java/clean/core/src/org/cougaar/planning/ldm/asset/PropertyGroupSchedule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
921,
14056,
1435,
95,
20308,
11949,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
921,
14056,
1435,
95,
20308,
11949,
73,
33,
2704,
11949,
5621,
73,
18,
1188,
6332,
5621,
14,
28111,
1555,
5965,
14056,
1396,
1114,
27073,
2847,
33,
2704,
1396,
1114,
6061,
12,
2211,
1769,
10676,
18,
739,
18679,
87,
5621,
6154,
2847,
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
] |
||
LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + Insert);
|
LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + Insert);
|
public Document getUserLayout (IPerson person, UserProfile profile) throws Exception { int userId = person.getID(); int realUserId = userId; ResultSet rs; Connection con = RDBMServices.getConnection(); RDBMServices.setAutoCommit(con, false); // May speed things up, can't hurt try { Document doc = DocumentFactory.getNewDocument(); Element root = doc.createElement("layout"); Statement stmt = con.createStatement(); // A separate statement is needed so as not to interfere with ResultSet // of statements used for queries Statement insertStmt = con.createStatement(); try { long startTime = System.currentTimeMillis(); // eventually, we need to fix template layout implementations so you can just do this: // int layoutId=profile.getLayoutId(); // but for now: String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profile.getProfileId(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId = 0; rs = stmt.executeQuery(subSelectString); try { if (rs.next()) { layoutId = rs.getInt(1); if (rs.wasNull()) { layoutId = 0; } } } finally { rs.close(); } if (layoutId == 0) { // First time, grab the default layout for this user String sQuery = "SELECT USER_DFLT_USR_ID, USER_DFLT_LAY_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); userId = rs.getInt(1); layoutId = rs.getInt(2); } finally { rs.close(); } // Make sure the next struct id is set in case the user adds a channel sQuery = "SELECT NEXT_STRUCT_ID FROM UP_USER WHERE USER_ID=" + userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); int nextStructId; rs = stmt.executeQuery(sQuery); try { rs.next(); nextStructId = rs.getInt(1); } finally { rs.close(); } sQuery = "UPDATE UP_USER SET NEXT_STRUCT_ID=" + nextStructId + " WHERE USER_ID=" + realUserId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); /* insert row(s) into up_ss_user_atts */ sQuery = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID=" + realUserId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); // modifed INSERT INTO SELECT statement for MySQL support sQuery = " SELECT "+realUserId+", PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL "+ " FROM UP_SS_USER_ATTS WHERE USER_ID="+userId; rs = stmt.executeQuery(sQuery); while (rs.next()) { String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) " + "VALUES("+realUserId+","+ rs.getInt("PROFILE_ID")+","+ rs.getInt("SS_ID")+"," + rs.getInt("SS_TYPE")+"," + rs.getInt("STRUCT_ID")+"," + "'"+rs.getString("PARAM_NAME")+"'," + rs.getInt("PARAM_TYPE")+"," + "'"+rs.getString("PARAM_VAL")+"')";// old code// String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) "+// " SELECT "+realUserId+", USUA.PROFILE_ID, USUA.SS_ID, USUA.SS_TYPE, USUA.STRUCT_ID, USUA.PARAM_NAME, USUA.PARAM_TYPE, USUA.PARAM_VAL "+// " FROM UP_SS_USER_ATTS USUA WHERE USUA.USER_ID="+userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + Insert); insertStmt.executeUpdate(Insert); } // Close Result Set if ( rs != null ) rs.close(); RDBMServices.commit(con); // Make sure it appears in the store } int firstStructId = -1; String sQuery = "SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if (rs.next()) { firstStructId = rs.getInt(1); } else { throw new Exception("RDBMUserLayoutStore::getUserLayout(): No INIT_STRUCT_ID in UP_USER_LAYOUT for " + userId + " and LAYOUT_ID " + layoutId); } } finally { rs.close(); } String sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; if (RDBMServices.supportsOuterJoins) { sql += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM " + RDBMServices.joinQuery.getQuery("layout"); } else { sql += " FROM UP_LAYOUT_STRUCT ULS WHERE "; } sql += " ULS.USER_ID=" + userId + " AND ULS.LAYOUT_ID=" + layoutId + " ORDER BY ULS.STRUCT_ID"; HashMap layoutStructure = new HashMap(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structChanIds = new StringBuffer(); rs = stmt.executeQuery(sql); try { int lastStructId = 0; LayoutStructure ls = null; String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); // Result Set returns 0 by default if structId was null // Except if you are using poolman 2.0.4 in which case you get -1 back if (rs.wasNull()) { structId = 0; } readLayout: while (true) { if (DEBUG > 1) System.err.println("Found layout structureID " + structId); int nextId = rs.getInt(2); if (rs.wasNull()) { nextId = 0; } int childId = rs.getInt(3); if (rs.wasNull()) { childId = 0; } int chanId = rs.getInt(4); if (rs.wasNull()) { chanId = 0; } String temp5=rs.getString(5); // Some JDBC drivers require columns accessed in order String temp6=rs.getString(6); // Access 5 and 6 now, save till needed. ls = new LayoutStructure(structId, nextId, childId, chanId, rs.getString(7),rs.getString(8),rs.getString(9)); layoutStructure.put(new Integer(structId), ls); lastStructId = structId; if (!ls.isChannel()) { ls.addFolderData(temp5, temp6); // Plug in saved column values } if (RDBMServices.supportsOuterJoins) { do { String name = rs.getString(10); String value = rs.getString(11); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join ls.addParameter(name, value); } if (!rs.next()) { break readLayout; } structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } while (structId == lastStructId); } else { // Do second SELECT later on for structure parameters if (ls.isChannel()) { structChanIds.append(sepChar + ls.chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } } // while } } finally { rs.close(); } if (!RDBMServices.supportsOuterJoins) { // Pick up structure parameters // first, get the struct ids for the channels sql = "SELECT STRUCT_ID FROM UP_LAYOUT_STRUCT WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND CHAN_ID IN (" + structChanIds.toString() + ") ORDER BY STRUCT_ID"; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structIdsSB = new StringBuffer( "" ); String sep = ""; rs = stmt.executeQuery(sql); try { // use the results to build a correct list of struct ids to look for while( rs.next()) { structIdsSB.append(sep + rs.getString(1)); sep = ","; }// while } finally { rs.close(); } // be a good doobie sql = "SELECT STRUCT_ID, STRUCT_PARM_NM,STRUCT_PARM_VAL FROM UP_LAYOUT_PARAM WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND STRUCT_ID IN (" + structIdsSB.toString() + ") ORDER BY STRUCT_ID"; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); int lastStructId = structId; do { ls.addParameter(rs.getString(2), rs.getString(3)); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } } } finally { rs.close(); } } if (layoutStructure.size() > 0) { // We have a layout to work with createLayout(layoutStructure, doc, root, firstStructId); layoutStructure.clear(); long stopTime = System.currentTimeMillis(); LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); doc.appendChild(root); if (DEBUG > 1) { System.err.println("--> created document"); dumpDoc(doc, ""); System.err.println("<--"); } } } finally { stmt.close(); insertStmt.close(); } return doc; } finally { RDBMServices.releaseConnection(con); } }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4527a20fd7a468af6fc839c07129679e1de8693e/RDBMUserLayoutStore.java/buggy/source/org/jasig/portal/RDBMUserLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4319,
4735,
3744,
261,
2579,
3565,
6175,
16,
2177,
4029,
3042,
13,
1216,
1185,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
565,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
1850,
368,
16734,
8632,
9198,
731,
16,
848,
1404,
366,
295,
88,
565,
775,
288,
1377,
4319,
997,
273,
4319,
1733,
18,
588,
1908,
2519,
5621,
1377,
3010,
1365,
273,
997,
18,
2640,
1046,
2932,
6741,
8863,
1377,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
1377,
368,
432,
9004,
3021,
353,
3577,
1427,
487,
486,
358,
1554,
586,
73,
598,
10842,
1377,
368,
434,
6317,
1399,
364,
6218,
1377,
8056,
2243,
8952,
273,
356,
18,
2640,
3406,
5621,
1377,
775,
288,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
18011,
16,
732,
1608,
358,
2917,
1542,
3511,
16164,
1427,
1846,
848,
2537,
741,
333,
30,
3639,
368,
3639,
509,
3511,
548,
33,
5040,
18,
588,
3744,
548,
5621,
3639,
368,
1496,
364,
2037,
30,
3639,
514,
720,
3391,
780,
273,
315,
4803,
25239,
5069,
67,
734,
4571,
7376,
67,
4714,
67,
22462,
4852,
7443,
67,
734,
1546,
397,
6249,
397,
315,
4116,
4629,
3776,
67,
734,
1546,
397,
3042,
18,
588,
4029,
548,
5621,
3639,
1827,
1179,
18,
1330,
12,
1343,
1179,
18,
9394,
16,
315,
54,
2290,
49,
1299,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
4735,
3744,
261,
2579,
3565,
6175,
16,
2177,
4029,
3042,
13,
1216,
1185,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
565,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
629,
1769,
1850,
368,
16734,
8632,
9198,
731,
16,
848,
1404,
366,
295,
88,
565,
775,
288,
1377,
4319,
997,
273,
4319,
1733,
18,
588,
1908,
2519,
5621,
1377,
3010,
1365,
273,
997,
18,
2640,
1046,
2932,
6741,
8863,
1377,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
1377,
368,
432,
9004,
3021,
353,
3577,
1427,
487,
486,
2
] |
public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re;
|
public static RubyRegexp newRegexp(RubyString str, int options) { return newRegexp(str.getRuntime(), str.getValue(), options);
|
public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re; }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyRegexp.java/buggy/org/jruby/RubyRegexp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
14621,
394,
14621,
12,
54,
10340,
22155,
16,
514,
609,
16,
509,
702,
13,
288,
3639,
19817,
14621,
283,
273,
394,
19817,
14621,
12,
27768,
1769,
3639,
283,
18,
11160,
12,
701,
16,
702,
1769,
3639,
327,
283,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
14621,
394,
14621,
12,
54,
10340,
22155,
16,
514,
609,
16,
509,
702,
13,
288,
3639,
19817,
14621,
283,
273,
394,
19817,
14621,
12,
27768,
1769,
3639,
283,
18,
11160,
12,
701,
16,
702,
1769,
3639,
327,
283,
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
] |
node.removeARKFetcher(identity,this); isFetching = false;
|
synchronized(this){ node.removeARKFetcher(identity,this); isFetching = false; }
|
public void onSuccess(FetchResult result, ClientGetter state) { Logger.minor(this, "Fetched ARK for "+peer, new Exception("debug")); // Fetcher context specifies an upper bound on size. backoff = MIN_BACKOFF; if(isFetching) { node.removeARKFetcher(identity,this); isFetching = false; } ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); String ref; try { ref = new String(data, "UTF-8"); } catch (UnsupportedEncodingException e) { // Yeah, right. throw new Error(e); } SimpleFieldSet fs; try { fs = new SimpleFieldSet(ref, true); peer.gotARK(fs); } catch (IOException e) { // Corrupt ref. Logger.error(this, "Corrupt ARK reference? Fetched "+fetchingURI+" got while parsing: "+e+" from:\n"+ref, e); } }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/946d621b138f491e00f9e5389f50568a303aaa69/ARKFetcher.java/buggy/src/freenet/node/ARKFetcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30771,
6052,
47,
364,
13773,
12210,
16,
394,
1185,
2932,
4148,
7923,
1769,
202,
202,
759,
8065,
264,
819,
11470,
392,
3854,
2489,
603,
963,
18,
202,
202,
823,
3674,
273,
6989,
67,
8720,
8797,
31,
202,
202,
430,
12,
291,
30806,
13,
288,
1082,
202,
2159,
18,
4479,
9584,
16855,
12,
10781,
16,
2211,
1769,
1082,
202,
291,
30806,
273,
629,
31,
202,
202,
97,
202,
202,
1076,
4103,
2783,
273,
261,
1076,
4103,
13,
563,
18,
345,
4103,
5621,
202,
202,
7229,
8526,
501,
273,
2783,
18,
869,
8826,
5621,
202,
202,
780,
1278,
31,
202,
202,
698,
288,
1082,
202,
1734,
273,
394,
514,
12,
892,
16,
315,
5159,
17,
28,
8863,
202,
202,
97,
1044,
261,
8544,
13836,
425,
13,
288,
1082,
202,
759,
1624,
73,
9795,
16,
2145,
18,
1082,
202,
12849,
394,
1068,
12,
73,
1769,
202,
202,
97,
202,
202,
5784,
974,
694,
2662,
31,
202,
202,
698,
288,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
1734,
16,
638,
1769,
1082,
202,
12210,
18,
13212,
9584,
12,
2556,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
759,
9557,
10433,
1278,
18,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
22701,
6052,
47,
2114,
35,
8065,
329,
13773,
5754,
310,
3098,
9078,
2363,
1323,
5811,
30,
13773,
73,
9078,
628,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30771,
6052,
47,
364,
13773,
12210,
16,
394,
1185,
2932,
4148,
7923,
1769,
202,
202,
759,
8065,
264,
819,
11470,
392,
3854,
2489,
603,
963,
18,
202,
202,
823,
3674,
273,
6989,
67,
8720,
8797,
31,
202,
202,
430,
12,
291,
30806,
13,
288,
1082,
202,
2159,
18,
4479,
9584,
16855,
12,
10781,
16,
2211,
1769,
1082,
202,
291,
30806,
273,
629,
31,
202,
202,
97,
202,
202,
1076,
4103,
2783,
273,
261,
1076,
4103,
13,
563,
18,
345,
4103,
5621,
202,
202,
7229,
8526,
501,
273,
2783,
18,
869,
8826,
5621,
202,
202,
780,
2
] |
securityDomain, true, false);
|
securityDomain, true, null);
|
public final Function compileFunction(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) { try { return (Function) compile(scope, null, source, sourceName, lineno, securityDomain, true, false); } catch (IOException ioe) { // Should never happen because we just made the reader // from a String throw new RuntimeException(); } }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/31ff23cd2e6b5190dbe92f81b7d5dc732adb75d6/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
4284,
4074,
2083,
12,
3651,
429,
2146,
16,
514,
1084,
16,
4766,
1850,
514,
28337,
16,
509,
7586,
16,
4766,
1850,
1033,
4373,
3748,
13,
565,
288,
3639,
775,
288,
5411,
327,
261,
2083,
13,
4074,
12,
4887,
16,
446,
16,
1084,
16,
28337,
16,
7586,
16,
4766,
1377,
4373,
3748,
16,
638,
16,
446,
1769,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
288,
5411,
368,
9363,
5903,
5865,
2724,
732,
2537,
7165,
326,
2949,
5411,
368,
628,
279,
514,
5411,
604,
394,
3235,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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651,
429,
2146,
16,
514,
1084,
16,
4766,
1850,
514,
28337,
16,
509,
7586,
16,
4766,
1850,
1033,
4373,
3748,
13,
565,
288,
3639,
775,
288,
5411,
327,
261,
2083,
13,
4074,
12,
4887,
16,
446,
16,
1084,
16,
28337,
16,
7586,
16,
4766,
1377,
4373,
3748,
16,
638,
16,
446,
1769,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
288,
5411,
368,
9363,
5903,
5865,
2724,
732,
2537,
7165,
326,
2949,
5411,
368,
628,
279,
514,
5411,
604,
394,
3235,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new DefaultHTTPConnection(location, repository);
|
return new DefaultHTTPConnection(repository);
|
public IHTTPConnection createHTTPConnection(SVNURL location, SVNRepository repository) { try { Class httpClientClass = getClass().getClassLoader().loadClass(HTTP_CLIENT_CLASS_NAME); if (httpClientClass != null && HTTP_CLIENT_JAKARTA.equalsIgnoreCase(System.getProperty(HTTP_CLIENT_PROPERTY))) { return new CommonsHTTPConnection(location, repository); } } catch (ClassNotFoundException e) { } return new DefaultHTTPConnection(location, repository); }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/f1ee3a99fba995e9050cc58f5e26f058076e96ed/IHTTPConnectionFactory.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/IHTTPConnectionFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
3693,
1952,
752,
3693,
1952,
12,
23927,
50,
1785,
2117,
16,
29537,
50,
3305,
3352,
13,
288,
5411,
775,
288,
7734,
1659,
10898,
797,
273,
2900,
7675,
588,
7805,
7675,
945,
797,
12,
3693,
67,
11935,
67,
5237,
67,
1985,
1769,
7734,
309,
261,
2505,
1227,
797,
480,
446,
597,
2239,
67,
11935,
67,
46,
14607,
4928,
37,
18,
14963,
5556,
12,
3163,
18,
588,
1396,
12,
3693,
67,
11935,
67,
9900,
20349,
288,
10792,
327,
394,
5658,
87,
3693,
1952,
12,
3562,
16,
3352,
1769,
7734,
289,
5411,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
289,
5411,
327,
394,
2989,
3693,
1952,
12,
9071,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
3693,
1952,
752,
3693,
1952,
12,
23927,
50,
1785,
2117,
16,
29537,
50,
3305,
3352,
13,
288,
5411,
775,
288,
7734,
1659,
10898,
797,
273,
2900,
7675,
588,
7805,
7675,
945,
797,
12,
3693,
67,
11935,
67,
5237,
67,
1985,
1769,
7734,
309,
261,
2505,
1227,
797,
480,
446,
597,
2239,
67,
11935,
67,
46,
14607,
4928,
37,
18,
14963,
5556,
12,
3163,
18,
588,
1396,
12,
3693,
67,
11935,
67,
9900,
20349,
288,
10792,
327,
394,
5658,
87,
3693,
1952,
12,
3562,
16,
3352,
1769,
7734,
289,
5411,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
289,
5411,
327,
394,
2989,
3693,
1952,
12,
9071,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
resetDict(0, context().session().sessionID() + context().contextID());
|
currentStage = 0; resetDict();
|
public void takeValuesFromRequest(WORequest aRequest, WOContext aContext) { resetDict(0, context().session().sessionID() + context().contextID()); super.takeValuesFromRequest(aRequest,aContext); }
|
46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/38786e0af1c60c3e71cff6c2482d0e58bed49af1/ERXOncePerRequestConditional.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXOncePerRequestConditional.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4862,
1972,
25074,
12,
59,
51,
691,
279,
691,
16,
678,
51,
1042,
279,
1042,
13,
288,
202,
6208,
5014,
12,
20,
16,
819,
7675,
3184,
7675,
17255,
1435,
397,
819,
7675,
2472,
734,
10663,
202,
9565,
18,
22188,
1972,
25074,
12,
69,
691,
16,
69,
1042,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4862,
1972,
25074,
12,
59,
51,
691,
279,
691,
16,
678,
51,
1042,
279,
1042,
13,
288,
202,
6208,
5014,
12,
20,
16,
819,
7675,
3184,
7675,
17255,
1435,
397,
819,
7675,
2472,
734,
10663,
202,
9565,
18,
22188,
1972,
25074,
12,
69,
691,
16,
69,
1042,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } org.tn5250j.tools.system.OperatingSystem.displayURL(eb .toString()); // take out the log statement when we are sure it is // working log.info("Send to external Browser: " + eb.toString()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x, aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option. // if (gui.rubberband.isAreaSelected()) { // gui.rubberband.reset(); // gui.repaint(); // } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true; // } } } return false; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6494,
8501,
6688,
12,
9186,
1133,
73,
16,
474,
917,
15329,
202,
202,
430,
12,
5,
83,
1155,
18,
291,
653,
22233,
8966,
10756,
95,
1082,
202,
430,
12,
917,
32,
20,
13,
9506,
202,
2463,
5743,
31,
1082,
202,
759,
26274,
588,
1999,
914,
1265,
2148,
6154,
3348,
792,
21,
16,
21,
91,
4009,
329,
869,
1082,
202,
759,
2338,
4801,
11453,
3348,
20,
16,
20,
1082,
202,
759,
917,
17,
28657,
2107,
8011,
15,
21,
1769,
1082,
202,
474,
75,
33,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
917,
1769,
1082,
202,
759,
17307,
1893,
1884,
15224,
1752,
6968,
1082,
202,
430,
12,
75,
34,
33,
20068,
67,
10066,
10,
10,
75,
32,
33,
20068,
67,
14378,
15329,
9506,
202,
780,
1892,
20736,
33,
2704,
780,
1892,
5621,
9506,
202,
6494,
20736,
4678,
33,
3767,
31,
9506,
202,
9610,
12,
75,
15329,
9506,
202,
3593,
20068,
67,
11847,
30,
9506,
202,
3593,
20068,
67,
49,
25578,
30,
6862,
202,
17523,
12,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
413,
917,
13,
5,
33,
20068,
67,
10066,
15329,
6862,
202,
97,
9506,
202,
3593,
20068,
67,
10066,
30,
6862,
202,
430,
12,
7088,
281,
18,
588,
2156,
12,
917,
13,
18920,
42,
6134,
95,
25083,
202,
917,
9904,
31,
6862,
202,
97,
12107,
25083,
202,
20736,
4678,
33,
5743,
31,
6862,
202,
430,
12,
7088,
281,
18,
588,
2156,
12,
917,
15,
21,
13,
5,
2218,
2218,
6862,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6494,
8501,
6688,
12,
9186,
1133,
73,
16,
474,
917,
15329,
202,
202,
430,
12,
5,
83,
1155,
18,
291,
653,
22233,
8966,
10756,
95,
1082,
202,
430,
12,
917,
32,
20,
13,
9506,
202,
2463,
5743,
31,
1082,
202,
759,
26274,
588,
1999,
914,
1265,
2148,
6154,
3348,
792,
21,
16,
21,
91,
4009,
329,
869,
1082,
202,
759,
2338,
4801,
11453,
3348,
20,
16,
20,
1082,
202,
759,
917,
17,
28657,
2107,
8011,
15,
21,
1769,
1082,
202,
474,
75,
33,
7088,
281,
18,
588,
2888,
1354,
43,
5370,
12,
917,
1769,
1082,
202,
759,
17307,
1893,
1884,
15224,
1752,
6968,
1082,
202,
430,
12,
75,
34,
33,
20068,
67,
10066,
10,
10,
75,
2
] |
||
caption = (s == null ? "" : s ).getBytes(); if (created) { observer.setUpdate(false); observer = new AnimationObserver(); updateIcon(null); }
|
setToolTip(s);
|
public void setCaption(String s) { caption = (s == null ? "" : s ).getBytes(); if (created) { observer.setUpdate(false); observer = new AnimationObserver(); updateIcon(null); } }
|
4176 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4176/ee7784b3075d4b224e5a7cd16d8ae91bc6b1fb9b/WinTrayIconService.java/buggy/src/jdic/src/win32/classes/org/jdesktop/jdic/tray/internal/impl/WinTrayIconService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11440,
13507,
12,
780,
272,
13,
288,
3639,
11006,
273,
261,
87,
422,
446,
692,
1408,
294,
272,
262,
18,
588,
2160,
5621,
3639,
309,
261,
4824,
13,
288,
5411,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11440,
13507,
12,
780,
272,
13,
288,
3639,
11006,
273,
261,
87,
422,
446,
692,
1408,
294,
272,
262,
18,
588,
2160,
5621,
3639,
309,
261,
4824,
13,
288,
5411,
9655,
18,
542,
1891,
12,
5743,
1769,
5411,
9655,
273,
394,
22685,
11048,
5621,
5411,
1089,
5554,
12,
2011,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff();
|
if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) {
|
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } else { keysBuffered = true; setKBIndicatorOn(); if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } } else { if (keysBuffered) { text = bufferedKeys + text; keysBuffered = false; setKBIndicatorOff(); bufferedKeys = ""; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) { simulateKeyStroke(text.charAt(0)); } else { strokenizer.setKeyStrokes(text); String s; boolean done = false; while (strokenizer.hasMoreKeyStrokes() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0)); } else { if (s != null) simulateMnemonic(getMnemonicValue(s)); else System.out.println(" mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) { keysBuffered = true; setKBIndicatorOn(); } done = true; } } } } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1366,
2396,
12,
780,
977,
13,
288,
1377,
309,
261,
31486,
8966,
13,
288,
540,
309,
12,
955,
18,
14963,
2932,
63,
6208,
4279,
13,
747,
977,
18,
14963,
2932,
63,
9499,
3658,
4279,
13,
747,
977,
18,
14963,
2932,
63,
4558,
82,
4279,
3719,
288,
5411,
11445,
2396,
273,
1408,
31,
5411,
1311,
17947,
273,
629,
31,
5411,
444,
16024,
13140,
7210,
5621,
5411,
20089,
29668,
20918,
12,
588,
29668,
20918,
620,
12,
955,
10019,
540,
289,
540,
469,
288,
5411,
1311,
17947,
273,
638,
31,
5411,
444,
16024,
13140,
1398,
5621,
5411,
309,
12,
26385,
2396,
422,
446,
15329,
9079,
11445,
2396,
273,
977,
31,
9079,
327,
31,
5411,
289,
5411,
469,
288,
9079,
11445,
2396,
1011,
977,
31,
5375,
327,
31,
5411,
289,
540,
289,
1377,
289,
1377,
469,
288,
540,
309,
261,
2452,
17947,
13,
288,
5411,
977,
273,
11445,
2396,
397,
977,
31,
5411,
1311,
17947,
273,
629,
31,
5411,
444,
16024,
13140,
7210,
5621,
5411,
11445,
2396,
273,
1408,
31,
540,
289,
540,
368,
866,
358,
2621,
309,
1754,
353,
316,
279,
652,
471,
309,
518,
353,
1508,
2549,
540,
368,
282,
783,
652,
358,
716,
652,
540,
8048,
974,
12,
2722,
1616,
16,
3767,
1769,
540,
309,
261,
955,
18,
2469,
1435,
422,
404,
597,
401,
955,
18,
14963,
2932,
63,
7923,
597,
401,
955,
18,
14963,
2932,
4279,
3719,
288,
9079,
20089,
653,
14602,
12,
955,
18,
3001,
861,
12,
20,
10019,
540,
289,
540,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1366,
2396,
12,
780,
977,
13,
288,
1377,
309,
261,
31486,
8966,
13,
288,
540,
309,
12,
955,
18,
14963,
2932,
63,
6208,
4279,
13,
747,
977,
18,
14963,
2932,
63,
9499,
3658,
4279,
13,
747,
977,
18,
14963,
2932,
63,
4558,
82,
4279,
3719,
288,
5411,
11445,
2396,
273,
1408,
31,
5411,
1311,
17947,
273,
629,
31,
5411,
444,
16024,
13140,
7210,
5621,
5411,
20089,
29668,
20918,
12,
588,
29668,
20918,
620,
12,
955,
10019,
540,
289,
540,
469,
288,
5411,
1311,
17947,
273,
638,
31,
5411,
444,
16024,
13140,
1398,
5621,
5411,
309,
12,
26385,
2396,
422,
446,
15329,
9079,
11445,
2396,
273,
977,
31,
9079,
327,
31,
5411,
289,
5411,
469,
288,
9079,
2
] |
protected String getCacheKey() { return getEntityIdentifier().getKey();// return getKey() + new Boolean(isGroup()).hashCode();}
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/a4edc9270482fc3984166f95f0cd9b1c2c4058b7/GroupMemberImpl.java/clean/source/org/jasig/portal/groups/GroupMemberImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
780,
588,
15554,
1435,
95,
2463,
588,
1943,
3004,
7675,
588,
653,
5621,
759,
2463,
588,
653,
1435,
15,
2704,
5507,
12,
291,
1114,
1435,
2934,
2816,
1085,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
780,
588,
15554,
1435,
95,
2463,
588,
1943,
3004,
7675,
588,
653,
5621,
759,
2463,
588,
653,
1435,
15,
2704,
5507,
12,
291,
1114,
1435,
2934,
2816,
1085,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
public TA_RetCode LINEARREG_SLOPE( int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx; int today, lookbackTotal; double SumX, SumXY, SumY, SumXSqr, Divisor; int i; double tempValue1; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; lookbackTotal = LINEARREG_SLOPE_Lookback ( optInTimePeriod ); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; today = startIdx; SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; Divisor = SumX * SumX - optInTimePeriod * SumXSqr; while( today <= endIdx ) { SumXY = 0; SumY = 0; for( i = optInTimePeriod; i-- != 0; ) { SumY += tempValue1 = inReal[today - i]; SumXY += (double)i * tempValue1; } outReal[outIdx++] = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; today++; } outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
14340,
985,
5937,
67,
55,
1502,
1423,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
596,
4223,
31,
509,
10074,
16,
2324,
823,
5269,
31,
1645,
9352,
60,
16,
9352,
8546,
16,
9352,
61,
16,
9352,
60,
19643,
86,
16,
21411,
12385,
31,
509,
277,
31,
1645,
1906,
620,
21,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
309,
12,
261,
474,
13,
3838,
382,
26540,
422,
12,
2144,
18,
6236,
67,
4051,
8623,
2153,
382,
26540,
273,
5045,
31,
469,
309,
12,
14015,
474,
13,
3838,
382,
26540,
411,
576,
13,
747,
14015,
474,
13,
3838,
382,
26540,
405,
25259,
13,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
16234,
67,
8388,
31,
2324,
823,
5269,
273,
5997,
985,
5937,
67,
55,
1502,
1423,
67,
9794,
823,
261,
2153,
382,
26540,
11272,
309,
12,
27108,
411,
2324,
823,
5269,
262,
27108,
273,
2324,
823,
5269,
31,
309,
12,
27108,
405,
679,
4223,
262,
288,
659,
24059,
4223,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
14340,
985,
5937,
67,
55,
1502,
1423,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
596,
4223,
31,
509,
10074,
16,
2324,
823,
5269,
31,
1645,
9352,
60,
16,
9352,
8546,
16,
9352,
61,
16,
9352,
60,
19643,
86,
16,
21411,
12385,
31,
509,
277,
31,
1645,
1906,
620,
21,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
2
] |
||
private String getConvertedOrthogonalSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); NumberFormat nf = NumberFormat.getNumberInstance(); StringBuffer sbNewRepresentation = new StringBuffer(""); int iValueCount = 0; while(strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); try { if(nf.parse(sElement).doubleValue() < 0) { // If the value is negative, use an arbitrary positive value sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } } catch (ParseException e ) { sElement = String.valueOf(4.0 + iValueCount); iValueCount++; } sbNewRepresentation.append("H"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" L"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" O"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(" "); sbNewRepresentation.append(" C"); sbNewRepresentation.append(sElement); sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
780,
272,
7617,
13742,
13,
565,
288,
3639,
16370,
609,
17692,
273,
394,
16370,
12,
87,
7617,
13742,
16,
5753,
1769,
3639,
29587,
13958,
273,
29587,
18,
588,
1854,
1442,
5621,
3639,
6674,
2393,
1908,
13742,
273,
394,
6674,
2932,
8863,
3639,
509,
277,
620,
1380,
273,
374,
31,
3639,
1323,
12,
701,
17692,
18,
5332,
7417,
5157,
10756,
3639,
288,
5411,
514,
272,
1046,
273,
609,
17692,
18,
4285,
1345,
7675,
5290,
5621,
5411,
775,
5411,
288,
7734,
309,
12,
82,
74,
18,
2670,
12,
87,
1046,
2934,
9056,
620,
1435,
411,
374,
13,
7734,
288,
10792,
368,
971,
326,
460,
353,
6092,
16,
999,
392,
11078,
6895,
460,
10792,
272,
1046,
273,
514,
18,
1132,
951,
12,
24,
18,
20,
397,
277,
620,
1380,
1769,
10792,
277,
620,
1380,
9904,
31,
7734,
289,
5411,
289,
5411,
1044,
261,
13047,
425,
262,
5411,
288,
7734,
272,
1046,
273,
514,
18,
1132,
951,
12,
24,
18,
20,
397,
277,
620,
1380,
1769,
7734,
277,
620,
1380,
9904,
31,
5411,
289,
5411,
2393,
1908,
13742,
18,
6923,
2932,
44,
8863,
5411,
2393,
1908,
13742,
18,
6923,
12,
87,
1046,
1769,
5411,
2393,
1908,
13742,
18,
6923,
2932,
315,
1769,
13491,
2393,
1908,
13742,
18,
6923,
2932,
511,
8863,
5411,
2393,
1908,
13742,
18,
6923,
12,
87,
1046,
1769,
5411,
2393,
1908,
13742,
18,
6923,
2932,
315,
1769,
5411,
2393,
1908,
13742,
18,
6923,
2932,
531,
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,
377,
3238,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
780,
272,
7617,
13742,
13,
565,
288,
3639,
16370,
609,
17692,
273,
394,
16370,
12,
87,
7617,
13742,
16,
5753,
1769,
3639,
29587,
13958,
273,
29587,
18,
588,
1854,
1442,
5621,
3639,
6674,
2393,
1908,
13742,
273,
394,
6674,
2932,
8863,
3639,
509,
277,
620,
1380,
273,
374,
31,
3639,
1323,
12,
701,
17692,
18,
5332,
7417,
5157,
10756,
3639,
288,
5411,
514,
272,
1046,
273,
609,
17692,
18,
4285,
1345,
7675,
5290,
5621,
5411,
775,
5411,
288,
7734,
309,
12,
82,
74,
18,
2670,
12,
87,
1046,
2934,
9056,
620,
1435,
411,
374,
13,
7734,
288,
10792,
368,
971,
326,
460,
353,
6092,
16,
999,
392,
2
] |
||
DataColumnBindingDialog dialog = new DataColumnBindingDialog( );
|
DataColumnBindingDialog dialog = new DataColumnBindingDialog( true );
|
protected void handleAddEvent( ) { DataColumnBindingDialog dialog = new DataColumnBindingDialog( ); dialog.setInput( inputElement ); dialog.setExpressionProvider( expressionProvider ); if ( dialog.open( ) == Dialog.OK ) { if ( bindingTable != null ) { refreshBindingTable( ); bindingTable.getTable( ).setSelection( bindingTable.getTable( ) .getItemCount( ) - 1 ); } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4bc5580c6c26ba1cb9f558db9f3d1ef255754c46/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
986,
1133,
12,
262,
202,
95,
202,
202,
751,
1494,
5250,
6353,
6176,
273,
394,
1910,
1494,
5250,
6353,
12,
11272,
202,
202,
12730,
18,
542,
1210,
12,
810,
1046,
11272,
202,
202,
12730,
18,
542,
2300,
2249,
12,
2652,
2249,
11272,
202,
202,
430,
261,
6176,
18,
3190,
12,
262,
422,
17242,
18,
3141,
262,
202,
202,
95,
1082,
202,
430,
261,
5085,
1388,
480,
446,
262,
1082,
202,
95,
9506,
202,
9144,
5250,
1388,
12,
11272,
9506,
202,
7374,
1388,
18,
588,
1388,
12,
262,
18,
542,
6233,
12,
5085,
1388,
18,
588,
1388,
12,
262,
25083,
202,
18,
588,
30687,
12,
262,
300,
404,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
986,
1133,
12,
262,
202,
95,
202,
202,
751,
1494,
5250,
6353,
6176,
273,
394,
1910,
1494,
5250,
6353,
12,
11272,
202,
202,
12730,
18,
542,
1210,
12,
810,
1046,
11272,
202,
202,
12730,
18,
542,
2300,
2249,
12,
2652,
2249,
11272,
202,
202,
430,
261,
6176,
18,
3190,
12,
262,
422,
17242,
18,
3141,
262,
202,
202,
95,
1082,
202,
430,
261,
5085,
1388,
480,
446,
262,
1082,
202,
95,
9506,
202,
9144,
5250,
1388,
12,
11272,
9506,
202,
7374,
1388,
18,
588,
1388,
12,
262,
18,
542,
6233,
12,
5085,
1388,
18,
588,
1388,
12,
262,
25083,
202,
18,
588,
30687,
12,
262,
300,
404,
11272,
1082,
202,
97,
202,
202,
97,
2
] |
String username = st.nextToken().trim(); String timeStamp = st.nextToken().trim(); String elementName = st.nextToken().trim(); String operationType = st.nextToken().trim(); String comment; if ( st.countTokens() > 0 ) { comment = st.nextToken().trim(); } else { comment = ""; } /* * a branch event shouldn't trigger a build */ if (operationType.equals("mkbranch")) { return null; } Modification mod = new Modification(); mod.userName = username; elementName = elementName.substring(elementName.indexOf(File.separator)); String fileName = elementName.substring(0, elementName.indexOf("@@")); mod.fileName = fileName.substring(fileName.lastIndexOf(File.separator)); mod.folderName = fileName.substring(0, fileName.lastIndexOf(File.separator)); try { mod.modifiedTime = OUT_DATE_FORMAT.parse(timeStamp); } catch (ParseException e) { mod.modifiedTime = null; } mod.type = operationType; mod.comment = comment; if(_property != null) _properties.put(_property, "true"); return mod; }
|
private Modification parseEntry(String line) { System.out.println("parsing entry: " + line); StringTokenizer st = new StringTokenizer(line, DELIMITER); // we should get either 4 (w/o comments) or 5 tokens (w/ comments) if ( (st.countTokens()<4) || (st.countTokens()>5) ) { return null; } String username = st.nextToken().trim(); String timeStamp = st.nextToken().trim(); String elementName = st.nextToken().trim(); String operationType = st.nextToken().trim(); String comment; if ( st.countTokens() > 0 ) { comment = st.nextToken().trim(); } else { comment = ""; } /* * a branch event shouldn't trigger a build */ if (operationType.equals("mkbranch")) { return null; } Modification mod = new Modification(); mod.userName = username; elementName = elementName.substring(elementName.indexOf(File.separator)); String fileName = elementName.substring(0, elementName.indexOf("@@")); mod.fileName = fileName.substring(fileName.lastIndexOf(File.separator)); mod.folderName = fileName.substring(0, fileName.lastIndexOf(File.separator)); try { mod.modifiedTime = OUT_DATE_FORMAT.parse(timeStamp); } catch (ParseException e) { mod.modifiedTime = null; } mod.type = operationType; mod.comment = comment; if(_property != null) _properties.put(_property, "true"); //TO DO: check if operation type is a delete return mod; }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/cf8bdb14d59ffc7bba2335627d25f68867c5a366/ClearCase.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/ClearCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3431,
1480,
1109,
1622,
12,
780,
980,
13,
288,
565,
2332,
18,
659,
18,
8222,
2932,
24979,
1241,
30,
315,
397,
980,
1769,
565,
16370,
384,
273,
394,
16370,
12,
1369,
16,
2030,
15832,
1769,
565,
368,
732,
1410,
336,
3344,
1059,
261,
91,
19,
83,
5678,
13,
578,
1381,
2430,
261,
91,
19,
5678,
13,
565,
309,
261,
261,
334,
18,
1883,
5157,
1435,
32,
24,
13,
747,
261,
334,
18,
1883,
5157,
1435,
34,
25,
13,
262,
288,
1377,
327,
446,
31,
565,
289,
565,
514,
2718,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
18198,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
14453,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
15754,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
2879,
31,
565,
309,
261,
384,
18,
1883,
5157,
1435,
405,
374,
262,
288,
1377,
2879,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
289,
565,
469,
288,
1377,
2879,
273,
1408,
31,
565,
289,
565,
1748,
377,
380,
225,
279,
3803,
871,
12044,
1404,
3080,
279,
1361,
377,
1195,
565,
309,
261,
7624,
559,
18,
14963,
2932,
24816,
7500,
6,
3719,
288,
1377,
327,
446,
31,
565,
289,
565,
3431,
1480,
681,
273,
394,
3431,
1480,
5621,
565,
681,
18,
1355,
461,
273,
2718,
31,
565,
14453,
273,
14453,
18,
28023,
12,
2956,
461,
18,
31806,
12,
812,
18,
11287,
10019,
565,
514,
3968,
273,
14453,
18,
28023,
12,
20,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3431,
1480,
1109,
1622,
12,
780,
980,
13,
288,
565,
2332,
18,
659,
18,
8222,
2932,
24979,
1241,
30,
315,
397,
980,
1769,
565,
16370,
384,
273,
394,
16370,
12,
1369,
16,
2030,
15832,
1769,
565,
368,
732,
1410,
336,
3344,
1059,
261,
91,
19,
83,
5678,
13,
578,
1381,
2430,
261,
91,
19,
5678,
13,
565,
309,
261,
261,
334,
18,
1883,
5157,
1435,
32,
24,
13,
747,
261,
334,
18,
1883,
5157,
1435,
34,
25,
13,
262,
288,
1377,
327,
446,
31,
565,
289,
565,
514,
2718,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
18198,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
565,
514,
14453,
273,
384,
18,
4285,
1345,
7675,
2
] |
|
if (!info.exists()) {
|
if (!store.fetchInfo().exists()) {
|
public static String getLocationText(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; URI resolvedLocation = resource.getLocationURI(); URI location = resolvedLocation; if (resource.isLinked()) { location = resource.getRawLocationURI(); } if (location == null) { return NOT_EXIST_TEXT; } if (resolvedLocation != null && !isPathVariable(resource)) { // No path variable used. Display the file not exist message // in the location. Fixes bug 33318. IFileInfo info = getFileInfo(location); if (info == null) return UNKNOWN_LABEL; if (!info.exists()) { return NLS.bind(FILE_NOT_EXIST_TEXT, location.toString()); } } return location.toString(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/eb48d331be04e291f334df0895937b2de30fab69/IDEResourceInfoUtils.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
13312,
1528,
12,
45,
1420,
1058,
13,
288,
202,
202,
430,
16051,
3146,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
1082,
202,
2463,
4269,
67,
14922,
67,
5151,
31,
202,
202,
3098,
4640,
2735,
273,
1058,
18,
588,
2735,
3098,
5621,
202,
202,
3098,
2117,
273,
4640,
2735,
31,
202,
202,
430,
261,
3146,
18,
291,
13174,
10756,
288,
1082,
202,
3562,
273,
1058,
18,
588,
4809,
2735,
3098,
5621,
202,
202,
97,
202,
202,
430,
261,
3562,
422,
446,
13,
288,
1082,
202,
2463,
4269,
67,
11838,
67,
5151,
31,
202,
202,
97,
202,
202,
430,
261,
11792,
2735,
480,
446,
597,
401,
291,
743,
3092,
12,
3146,
3719,
288,
1082,
202,
759,
2631,
589,
2190,
1399,
18,
9311,
326,
585,
486,
1005,
883,
1082,
202,
759,
316,
326,
2117,
18,
12139,
281,
7934,
890,
3707,
2643,
18,
1082,
202,
45,
11995,
1123,
273,
6034,
966,
12,
3562,
1769,
1082,
202,
430,
261,
1376,
422,
446,
13,
9506,
202,
2463,
13598,
67,
13545,
31,
1082,
202,
430,
16051,
1376,
18,
1808,
10756,
288,
9506,
202,
2463,
29117,
18,
4376,
12,
3776,
67,
4400,
67,
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,
16051,
3146,
18,
291,
2042,
12,
45,
1420,
18,
27479,
67,
24968,
3719,
1082,
202,
2463,
4269,
67,
14922,
67,
5151,
31,
202,
202,
3098,
4640,
2735,
273,
1058,
18,
588,
2735,
3098,
5621,
202,
202,
3098,
2117,
273,
4640,
2735,
31,
202,
202,
430,
261,
3146,
18,
291,
13174,
10756,
288,
1082,
202,
3562,
273,
1058,
18,
588,
4809,
2735,
3098,
5621,
202,
202,
97,
202,
202,
430,
261,
3562,
422,
446,
13,
288,
1082,
202,
2463,
4269,
67,
11838,
67,
5151,
31,
202,
202,
97,
202,
202,
430,
261,
11792,
2735,
480,
446,
597,
401,
291,
743,
3092,
12,
3146,
3719,
2
] |
public Poll(String question) { this.question = question ; }
|
public Poll(String question) { this.question = question ; }
|
public Poll(String question) { this.question = question ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/21a0b77300dd614ba5c69cec52b6fe058bfbb3c9/Poll.java/buggy/server/src/imcode/util/fortune/Poll.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19160,
12,
780,
5073,
13,
288,
202,
2211,
18,
4173,
273,
5073,
274,
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,
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0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19160,
12,
780,
5073,
13,
288,
202,
2211,
18,
4173,
273,
5073,
274,
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
] |
return areDisjointOneWay(a, b) || areDisjointOneWay(b, a); }
|
if(a.equals(b)) { return false; } if (a instanceof FeatureFilter.AcceptAllFilter || b instanceof FeatureFilter.AcceptAllFilter) { return false; } else if (a instanceof FeatureFilter.AcceptNoneFilter || b instanceof FeatureFilter.AcceptNoneFilter) { return true; } if (a instanceof FeatureFilter.And) { FeatureFilter.And and_a = (FeatureFilter.And) a; return areDisjoint(and_a.getChild1(), b) || areDisjoint(and_a.getChild2(), b); } else if (b instanceof FeatureFilter.And) { FeatureFilter.And and_b = (FeatureFilter.And) b; return areDisjoint(a, and_b.getChild1()) || areDisjoint(a, and_b.getChild2()); } else if (a instanceof FeatureFilter.Or) { FeatureFilter.Or or_a = (FeatureFilter.Or) a; return areDisjoint(or_a.getChild1(), b) && areDisjoint(or_a.getChild2(), b); } else if (b instanceof FeatureFilter.Or) { FeatureFilter.Or or_b = (FeatureFilter.Or) b; return areDisjoint(a, or_b.getChild1()) && areDisjoint(a, or_b.getChild2()); } else if (a instanceof FeatureFilter.Not) { FeatureFilter not_a = ((FeatureFilter.Not) a).getChild(); return areProperSubset(b, not_a); } else if (b instanceof FeatureFilter.Not) { FeatureFilter not_b = ((FeatureFilter.Not) b).getChild(); return areProperSubset(a, not_b); } else if (a instanceof OptimizableFilter) { return ((OptimizableFilter) a).isDisjoint(b); } else if (b instanceof OptimizableFilter) { return ((OptimizableFilter) b).isDisjoint(a); } return false; }
|
public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { return areDisjointOneWay(a, b) || areDisjointOneWay(b, a); }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/243635c6645478f78793ec9479bb0a53880098ce/FilterUtils.java/clean/src/org/biojava/bio/seq/FilterUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
854,
1669,
16452,
12,
4595,
1586,
279,
16,
7881,
1586,
324,
13,
288,
1377,
327,
854,
1669,
16452,
3335,
21831,
12,
69,
16,
324,
13,
747,
854,
1669,
16452,
3335,
21831,
12,
70,
16,
279,
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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,
327,
854,
1669,
16452,
3335,
21831,
12,
69,
16,
324,
13,
747,
854,
1669,
16452,
3335,
21831,
12,
70,
16,
279,
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
] |
for (int i = 0; i < initializers.length; i++) { final PsiClassInitializer initializer = initializers[i];
|
for(final PsiClassInitializer initializer : initializers){
|
private static int calculateInitializerComplexity(PsiClass aClass) { final ComplexityVisitor visitor = new ComplexityVisitor(); int complexity = 0; final PsiClassInitializer[] initializers = aClass.getInitializers(); for (int i = 0; i < initializers.length; i++) { final PsiClassInitializer initializer = initializers[i]; visitor.reset(); initializer.accept(visitor); complexity += visitor.getComplexity(); } return complexity; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2d46d291193579a7564649b4881c7ea8e02eda5b/AnonymousClassComplexityInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classmetrics/AnonymousClassComplexityInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
4604,
14729,
12795,
560,
12,
52,
7722,
797,
20148,
13,
288,
3639,
727,
16060,
560,
7413,
8000,
273,
394,
16060,
560,
7413,
5621,
3639,
509,
21610,
273,
374,
31,
3639,
727,
453,
7722,
797,
14729,
8526,
2172,
8426,
273,
20148,
18,
588,
4435,
8426,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2172,
8426,
18,
2469,
31,
277,
27245,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
4604,
14729,
12795,
560,
12,
52,
7722,
797,
20148,
13,
288,
3639,
727,
16060,
560,
7413,
8000,
273,
394,
16060,
560,
7413,
5621,
3639,
509,
21610,
273,
374,
31,
3639,
727,
453,
7722,
797,
14729,
8526,
2172,
8426,
273,
20148,
18,
588,
4435,
8426,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2172,
8426,
18,
2469,
31,
277,
27245,
288,
5411,
727,
453,
7722,
797,
14729,
12562,
273,
2172,
8426,
63,
77,
15533,
5411,
8000,
18,
6208,
5621,
5411,
12562,
18,
9436,
12,
3516,
1811,
1769,
5411,
21610,
1011,
8000,
18,
588,
12795,
560,
5621,
3639,
289,
3639,
327,
21610,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mapDispNameToQuery.put( displayName, query ); mapResultSetToQuery.put( resultSetName, query );
|
this.mapResultSetToReportItem.put( resultSetName, reportItem );
|
private void prepareMetaData( ) throws EngineException { ReportQueryBuilder queryBuilder = new ReportQueryBuilder( ); // load query -> report item design queryBuilder.build( report, executionContext ); mapQueryToReportItem = queryBuilder.getQueryToReportItemMap( ); // load query -> result set name loadResultSetMetaData( ); assert mapQueryIDToResultSetName != null; // set query -> query id if (mapQueryToId == null) { mapQueryToId = new HashMap(); } mapQueryToId.putAll(report.getQueryIDs()); // set displayName -> result set name if (mapDispNameToResultSetName == null) { mapDispNameToResultSetName = new HashMap(); } else { mapDispNameToResultSetName.clear( ); } // set displayName -> query if( mapDispNameToQuery == null ) { mapDispNameToQuery = new HashMap( ); } else { mapDispNameToQuery.clear( ); } // set result set name -> query if( mapResultSetToQuery == null ) { mapResultSetToQuery = new HashMap( ); } else { mapResultSetToQuery.clear( ); } if( mapReportItemToDisplayName == null ) { mapReportItemToDisplayName = new HashMap( ); } else { mapReportItemToDisplayName.clear( ); } ArrayList queryList = report.getQueries(); int counter = 0; for (int i = 0; i < queryList.size(); i++) { IQueryDefinition query = (IQueryDefinition) queryList.get(i); assert query != null; String queryId = (String) mapQueryToId.get(query); List resultSetList = (List) mapQueryIDToResultSetName.get(queryId); if (resultSetList == null) { continue; } // create display name ReportItemDesign reportItem = (ReportItemDesign) mapQueryToReportItem .get(query); String displayName = null; if (reportItem.getName() != null) { displayName = reportItem.getName() + "_" + counter; } else { displayName = "ELEMENT_" + reportItem.getID() + "_" + counter; } counter++; mapReportItemToDisplayName.put( reportItem, displayName ); // get result set name Iterator resultSetIter = resultSetList.iterator(); while (resultSetIter.hasNext()) { String resultSetName = (String) resultSetIter.next(); mapDispNameToResultSetName.put(displayName, resultSetName); mapDispNameToQuery.put( displayName, query ); mapResultSetToQuery.put( resultSetName, query ); } } isMetaDataPrepared = true; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1dcd377fadf82fab37b0b0e582d66281873338c5/DataExtractionTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2911,
6998,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
4820,
9073,
7579,
273,
394,
8706,
9073,
12,
11272,
202,
202,
759,
1262,
843,
317,
2605,
761,
8281,
202,
202,
2271,
1263,
18,
3510,
12,
2605,
16,
30521,
11272,
202,
202,
1458,
1138,
774,
4820,
1180,
273,
7579,
18,
588,
1138,
774,
4820,
1180,
863,
12,
11272,
9506,
202,
759,
1262,
843,
317,
563,
444,
508,
202,
202,
945,
13198,
6998,
12,
11272,
202,
202,
11231,
852,
1138,
734,
774,
1253,
11924,
480,
446,
31,
202,
202,
759,
444,
843,
317,
843,
612,
202,
202,
430,
261,
1458,
1138,
774,
548,
422,
446,
13,
288,
1082,
202,
1458,
1138,
774,
548,
273,
394,
4317,
5621,
202,
202,
97,
202,
202,
1458,
1138,
774,
548,
18,
458,
1595,
12,
6006,
18,
588,
1138,
5103,
10663,
1082,
3196,
202,
759,
444,
16218,
317,
563,
444,
508,
202,
202,
430,
261,
1458,
1669,
84,
28455,
1253,
11924,
422,
446,
13,
202,
202,
95,
1082,
202,
1458,
1669,
84,
28455,
1253,
11924,
273,
394,
4317,
5621,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1458,
1669,
84,
28455,
1253,
11924,
18,
8507,
12,
11272,
202,
202,
97,
9506,
202,
759,
444,
16218,
317,
843,
202,
202,
430,
12,
852,
1669,
84,
28455,
1138,
422,
446,
262,
202,
202,
95,
1082,
202,
1458,
1669,
84,
28455,
1138,
273,
394,
4317,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1458,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2911,
6998,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
4820,
9073,
7579,
273,
394,
8706,
9073,
12,
11272,
202,
202,
759,
1262,
843,
317,
2605,
761,
8281,
202,
202,
2271,
1263,
18,
3510,
12,
2605,
16,
30521,
11272,
202,
202,
1458,
1138,
774,
4820,
1180,
273,
7579,
18,
588,
1138,
774,
4820,
1180,
863,
12,
11272,
9506,
202,
759,
1262,
843,
317,
563,
444,
508,
202,
202,
945,
13198,
6998,
12,
11272,
202,
202,
11231,
852,
1138,
734,
774,
1253,
11924,
480,
446,
31,
202,
202,
759,
444,
843,
317,
843,
612,
202,
202,
430,
261,
1458,
1138,
774,
548,
422,
446,
13,
288,
1082,
202,
1458,
1138,
774,
548,
273,
394,
4317,
2
] |
logger.error("Created RTP session: " + ip + " " + port);
|
System.err.println("Created RTP session: " + ip + " " + port);
|
private void transmitManager(Processor p) { logger.debug("Dmarrage: transmitManager"); logger.info("Transmission d'un flux audio avec un RTPManager"); try { DataSource output = p.getDataOutput(); PushBufferDataSource pbds = (PushBufferDataSource) output; RTPManager rtpMgr = RTPManager.newInstance(); SessionAddress canal = new SessionAddress(InetAddress.getLocalHost(), port); SessionAddress destAddr = new SessionAddress(InetAddress.getByName(ip), port); rtpMgr.initialize(canal); rtpMgr.addTarget(destAddr); logger.error("Created RTP session: " + ip + " " + port); OutputStream = rtpMgr.createSendStream(output, 0); OutputStream.start(); p.start(); logger.info("Transmission lance!"); logger.debug("Arrt: transmitManager"); } catch(Exception e) { logger.error("ERREUR:", e); logger.debug("Arrt: transmitManager"); } }
|
55998 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55998/c81ac69bb7bcbac171df56170098b62d506718d3/RTPServer.java/buggy/NetJukeBox/src/proto/serveur/RTPServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
23323,
1318,
12,
5164,
293,
13,
288,
202,
202,
4901,
18,
4148,
2932,
40,
3684,
86,
410,
30,
23323,
1318,
8863,
202,
202,
4901,
18,
1376,
2932,
1429,
3951,
302,
11,
318,
11772,
7447,
279,
8799,
640,
534,
11130,
1318,
8863,
202,
202,
698,
288,
1082,
202,
8597,
876,
273,
293,
18,
588,
751,
1447,
5621,
25083,
202,
7621,
1892,
8597,
6386,
2377,
273,
261,
7621,
1892,
8597,
13,
876,
31,
1082,
202,
54,
11130,
1318,
436,
6834,
9455,
273,
534,
11130,
1318,
18,
2704,
1442,
5621,
1082,
202,
2157,
1887,
848,
287,
273,
394,
3877,
1887,
12,
382,
278,
1887,
18,
588,
2042,
2594,
9334,
1756,
1769,
1082,
202,
2157,
1887,
1570,
3178,
273,
394,
3877,
1887,
12,
382,
278,
1887,
18,
588,
5911,
12,
625,
3631,
1756,
1769,
25083,
202,
3797,
84,
9455,
18,
11160,
12,
4169,
287,
1769,
1082,
202,
3797,
84,
9455,
18,
1289,
2326,
12,
10488,
3178,
1769,
25083,
202,
4901,
18,
1636,
2932,
6119,
534,
11130,
1339,
30,
315,
397,
2359,
397,
315,
315,
397,
1756,
1769,
25083,
202,
4632,
273,
436,
6834,
9455,
18,
2640,
3826,
1228,
12,
2844,
16,
374,
1769,
6862,
202,
4632,
18,
1937,
5621,
1082,
202,
84,
18,
1937,
5621,
1082,
202,
4901,
18,
1376,
2932,
1429,
3951,
328,
1359,
4442,
1769,
1082,
202,
4901,
18,
4148,
2932,
5715,
88,
30,
23323,
1318,
8863,
202,
202,
97,
202,
202,
14683,
12,
503,
425,
13,
288,
1082,
202,
4901,
18,
1636,
2932,
654,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23323,
1318,
12,
5164,
293,
13,
288,
202,
202,
4901,
18,
4148,
2932,
40,
3684,
86,
410,
30,
23323,
1318,
8863,
202,
202,
4901,
18,
1376,
2932,
1429,
3951,
302,
11,
318,
11772,
7447,
279,
8799,
640,
534,
11130,
1318,
8863,
202,
202,
698,
288,
1082,
202,
8597,
876,
273,
293,
18,
588,
751,
1447,
5621,
25083,
202,
7621,
1892,
8597,
6386,
2377,
273,
261,
7621,
1892,
8597,
13,
876,
31,
1082,
202,
54,
11130,
1318,
436,
6834,
9455,
273,
534,
11130,
1318,
18,
2704,
1442,
5621,
1082,
202,
2157,
1887,
848,
287,
273,
394,
3877,
1887,
12,
382,
278,
1887,
18,
588,
2042,
2594,
9334,
1756,
1769,
1082,
202,
2157,
1887,
1570,
3178,
273,
2
] |
selectedTopic.setReadFullDesciption(false);
|
selectedTopic.setReadFullDesciption(true);
|
public String processActionToggleDisplayExtendedDescription() { LOG.debug("processActionToggleDisplayExtendedDescription()"); String redirectTo = getExternalParameterByKey(REDIRECT_PROCESS_ACTION); if (redirectTo == null) { setErrorMessage("Could not find a redirect page : Read / Hide full descriptions"); return MAIN; } if (redirectTo.equals("displayHome")) { return displayHomeWithExtendedTopicDescription(); } if (redirectTo.equals("processActionDisplayTopic")) { if (selectedTopic.isReadFullDesciption()) { selectedTopic.setReadFullDesciption(true); } else { selectedTopic.setReadFullDesciption(false); } return ALL_MESSAGES; } if (redirectTo.equals("processActionDisplayMessage")) { if (selectedTopic.isReadFullDesciption()) { selectedTopic.setReadFullDesciption(true); } else { selectedTopic.setReadFullDesciption(false); } return MESSAGE_VIEW; } return MAIN; }
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/d7728ba67a3c81571b9acce0832591c356f54418/DiscussionForumTool.java/buggy/msgcntr/messageforums-app/src/java/org/sakaiproject/tool/messageforums/DiscussionForumTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
1803,
17986,
4236,
11456,
3291,
1435,
225,
288,
565,
2018,
18,
4148,
2932,
2567,
1803,
17986,
4236,
11456,
3291,
1435,
8863,
565,
514,
19200,
273,
22319,
1662,
14560,
12,
25103,
67,
16560,
67,
12249,
1769,
565,
309,
261,
7590,
774,
422,
446,
13,
565,
288,
1377,
9967,
1079,
2932,
4445,
486,
1104,
279,
3136,
1363,
294,
2720,
342,
25180,
1983,
15550,
8863,
1377,
327,
22299,
31,
565,
289,
565,
309,
261,
7590,
774,
18,
14963,
2932,
5417,
8684,
6,
3719,
565,
288,
1377,
327,
2562,
8684,
1190,
11456,
6657,
3291,
5621,
565,
289,
565,
309,
261,
7590,
774,
18,
14963,
2932,
2567,
1803,
4236,
6657,
6,
3719,
565,
288,
1377,
309,
261,
8109,
6657,
18,
291,
1994,
5080,
4217,
77,
375,
10756,
1377,
288,
3639,
3170,
6657,
18,
542,
1994,
5080,
4217,
77,
375,
12,
3767,
1769,
1377,
289,
1377,
469,
1377,
288,
3639,
3170,
6657,
18,
542,
1994,
5080,
4217,
77,
375,
12,
3767,
1769,
1377,
289,
1377,
327,
8061,
67,
26195,
31,
565,
289,
565,
309,
261,
7590,
774,
18,
14963,
2932,
2567,
1803,
4236,
1079,
6,
3719,
565,
288,
1377,
309,
261,
8109,
6657,
18,
291,
1994,
5080,
4217,
77,
375,
10756,
1377,
288,
3639,
3170,
6657,
18,
542,
1994,
5080,
4217,
77,
375,
12,
3767,
1769,
1377,
289,
1377,
469,
1377,
288,
3639,
3170,
6657,
18,
542,
1994,
5080,
4217,
77,
375,
12,
3767,
1769,
1377,
289,
1377,
327,
9841,
67,
12145,
31,
565,
289,
565,
327,
22299,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
1803,
17986,
4236,
11456,
3291,
1435,
225,
288,
565,
2018,
18,
4148,
2932,
2567,
1803,
17986,
4236,
11456,
3291,
1435,
8863,
565,
514,
19200,
273,
22319,
1662,
14560,
12,
25103,
67,
16560,
67,
12249,
1769,
565,
309,
261,
7590,
774,
422,
446,
13,
565,
288,
1377,
9967,
1079,
2932,
4445,
486,
1104,
279,
3136,
1363,
294,
2720,
342,
25180,
1983,
15550,
8863,
1377,
327,
22299,
31,
565,
289,
565,
309,
261,
7590,
774,
18,
14963,
2932,
5417,
8684,
6,
3719,
565,
288,
1377,
327,
2562,
8684,
1190,
11456,
6657,
3291,
5621,
565,
289,
565,
309,
261,
7590,
774,
18,
14963,
2932,
2567,
1803,
4236,
6657,
6,
3719,
565,
288,
1377,
309,
261,
8109,
6657,
18,
2
] |
if (Layout.joiners.contains(node) && !KjcOptions.decoupled) {
|
if (Layout.getJoiners().contains(node) && !KjcOptions.decoupled) {
|
public void visitNode(FlatNode node) { //this is a mapped joiner, we do not want to generate code for //joiners in the decoupled case if (Layout.joiners.contains(node) && !KjcOptions.decoupled) { realTiles.add(Layout.getTile(node.contents)); joinerCode(node); //After done with node drops its contents for garbage collection //node.contents=null; //node.edges=null; //for(int i=0;i<node.incoming.length;i++) { //node.incoming[i].contents=null; //} //node.incoming=null; } if (node.contents instanceof SIRFilter) { //do not generate code for the file manipulators if (FileVisitor.fileNodes.contains(node)) return; if (!Layout.isAssigned(node)) return; realTiles.add(Layout.getTile(node.contents)); FlatIRToC.generateCode(node); //After done with node drops its contents for garbage collection //Need to keep contents for filter type checking but dropping methods ((SIRFilter)node.contents).setMethods(JMethodDeclaration.EMPTY()); } }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/5b2a87706aed7992affe11d823069f4e5bc6fc36/TileCode.java/buggy/streams/src/at/dms/kjc/raw/TileCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
907,
12,
16384,
907,
756,
13,
377,
288,
202,
759,
2211,
353,
279,
5525,
29620,
16,
732,
741,
486,
2545,
358,
2103,
981,
364,
202,
759,
5701,
414,
316,
326,
2109,
83,
416,
1259,
648,
202,
430,
261,
3744,
18,
5701,
414,
18,
12298,
12,
2159,
13,
597,
401,
47,
78,
71,
1320,
18,
323,
2894,
416,
1259,
13,
288,
202,
565,
2863,
27669,
18,
1289,
12,
3744,
18,
588,
9337,
12,
2159,
18,
3980,
10019,
202,
565,
29620,
1085,
12,
2159,
1769,
202,
565,
368,
4436,
2731,
598,
756,
29535,
2097,
2939,
364,
15340,
1849,
202,
565,
368,
2159,
18,
3980,
33,
2011,
31,
202,
565,
368,
2159,
18,
8746,
33,
2011,
31,
202,
565,
368,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
2159,
18,
31033,
18,
2469,
31,
77,
27245,
288,
202,
565,
368,
2159,
18,
31033,
63,
77,
8009,
3980,
33,
2011,
31,
202,
565,
19363,
202,
565,
368,
2159,
18,
31033,
33,
2011,
31,
202,
97,
202,
430,
261,
2159,
18,
3980,
1276,
5705,
54,
1586,
13,
288,
202,
565,
368,
2896,
486,
2103,
981,
364,
326,
585,
13441,
332,
3062,
202,
565,
309,
261,
812,
7413,
18,
768,
3205,
18,
12298,
12,
2159,
3719,
202,
202,
2463,
31,
202,
565,
309,
16051,
3744,
18,
291,
20363,
12,
2159,
3719,
202,
202,
2463,
31,
202,
565,
2863,
27669,
18,
1289,
12,
3744,
18,
588,
9337,
12,
2159,
18,
3980,
10019,
202,
565,
20396,
7937,
774,
39,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
907,
12,
16384,
907,
756,
13,
377,
288,
202,
759,
2211,
353,
279,
5525,
29620,
16,
732,
741,
486,
2545,
358,
2103,
981,
364,
202,
759,
5701,
414,
316,
326,
2109,
83,
416,
1259,
648,
202,
430,
261,
3744,
18,
5701,
414,
18,
12298,
12,
2159,
13,
597,
401,
47,
78,
71,
1320,
18,
323,
2894,
416,
1259,
13,
288,
202,
565,
2863,
27669,
18,
1289,
12,
3744,
18,
588,
9337,
12,
2159,
18,
3980,
10019,
202,
565,
29620,
1085,
12,
2159,
1769,
202,
565,
368,
4436,
2731,
598,
756,
29535,
2097,
2939,
364,
15340,
1849,
202,
565,
368,
2159,
18,
3980,
33,
2011,
31,
202,
565,
368,
2159,
18,
8746,
33,
2011,
31,
202,
2
] |
return (String) columnIdentifiers.get(column);
|
} return result;
|
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // Return Column name return (String) columnIdentifiers.get(column); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableModel.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
20248,
12,
474,
1057,
13,
288,
202,
202,
759,
2073,
364,
4753,
202,
202,
430,
261,
2827,
12745,
422,
446,
747,
1057,
1545,
6716,
1380,
10756,
288,
1082,
202,
2463,
2240,
18,
588,
8516,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
20248,
12,
474,
1057,
13,
288,
202,
202,
759,
2073,
364,
4753,
202,
202,
430,
261,
2827,
12745,
422,
446,
747,
1057,
1545,
6716,
1380,
10756,
288,
1082,
202,
2463,
2240,
18,
588,
8516,
12,
2827,
1769,
565,
289,
202,
202,
759,
2000,
4753,
508,
202,
202,
2463,
261,
780,
13,
1057,
12745,
18,
588,
12,
2827,
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
] |
sbKey.append("userId:").append(staticData.getPerson().getID()).append(", ");
|
if(staticData.getPerson().isGuest()) { k.setKeyScope(ChannelCacheKey.SYSTEM_KEY_SCOPE); sbKey.append("userId:").append(staticData.getPerson().getID()).append(", "); } else { k.setKeyScope(ChannelCacheKey.INSTANCE_KEY_SCOPE); } sbKey.append("authenticated:").append(staticData.getPerson().getSecurityContext().isAuthenticated()).append(", ");
|
public ChannelCacheKey generateKey () { ChannelCacheKey k = new ChannelCacheKey(); StringBuffer sbKey = new StringBuffer(1024); // guest pages are cached system-wide k.setKeyScope(ChannelCacheKey.SYSTEM_KEY_SCOPE); sbKey.append("org.jasig.portal.CHeader: "); sbKey.append("userId:").append(staticData.getPerson().getID()).append(", "); sbKey.append("baseActionURL:").append(runtimeData.getBaseActionURL()); sbKey.append("stylesheetURI:"); try { String sslUri = ResourceLoader.getResourceAsURLString(this.getClass(), sslLocation); sbKey.append(XSLT.getStylesheetURI(sslUri, runtimeData.getBrowserInfo())); } catch (Exception e) { sbKey.append("not defined"); } k.setKey(sbKey.toString()); k.setKeyValidity(new Long(System.currentTimeMillis())); return k; }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/b12b54cabe9ce0d489b77b62e04152e5602d41ec/CHeader.java/buggy/source/org/jasig/portal/channels/CHeader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5307,
15554,
2103,
653,
1832,
288,
565,
5307,
15554,
417,
273,
394,
5307,
15554,
5621,
565,
6674,
2393,
653,
273,
394,
6674,
12,
2163,
3247,
1769,
565,
368,
13051,
4689,
854,
3472,
2619,
17,
26767,
565,
417,
18,
542,
653,
3876,
12,
2909,
15554,
18,
14318,
67,
3297,
67,
19444,
1769,
565,
2393,
653,
18,
6923,
2932,
3341,
18,
78,
345,
360,
18,
24386,
18,
39,
1864,
30,
315,
1769,
377,
309,
12,
3845,
751,
18,
588,
8346,
7675,
291,
12978,
10756,
288,
225,
417,
18,
542,
653,
3876,
12,
2909,
15554,
18,
14318,
67,
3297,
67,
19444,
1769,
2393,
653,
18,
6923,
2932,
18991,
2773,
2934,
6923,
12,
3845,
751,
18,
588,
8346,
7675,
588,
734,
1435,
2934,
6923,
2932,
16,
315,
1769,
289,
469,
288,
225,
417,
18,
542,
653,
3876,
12,
2909,
15554,
18,
13341,
67,
3297,
67,
19444,
1769,
289,
2393,
653,
18,
6923,
2932,
14454,
2773,
2934,
6923,
12,
3845,
751,
18,
588,
8346,
7675,
588,
28646,
7675,
291,
15606,
1435,
2934,
6923,
2932,
16,
315,
1769,
565,
2393,
653,
18,
6923,
2932,
1969,
1803,
1785,
2773,
2934,
6923,
12,
9448,
751,
18,
588,
2171,
1803,
1785,
10663,
565,
2393,
653,
18,
6923,
2932,
19403,
3098,
2773,
1769,
565,
775,
288,
1377,
514,
5832,
3006,
273,
2591,
2886,
18,
588,
1420,
1463,
1785,
780,
12,
2211,
18,
588,
797,
9334,
5832,
2735,
1769,
1377,
2393,
653,
18,
6923,
12,
60,
4559,
56,
18,
588,
24656,
3098,
12,
8157,
3006,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5307,
15554,
2103,
653,
1832,
288,
565,
5307,
15554,
417,
273,
394,
5307,
15554,
5621,
565,
6674,
2393,
653,
273,
394,
6674,
12,
2163,
3247,
1769,
565,
368,
13051,
4689,
854,
3472,
2619,
17,
26767,
565,
417,
18,
542,
653,
3876,
12,
2909,
15554,
18,
14318,
67,
3297,
67,
19444,
1769,
565,
2393,
653,
18,
6923,
2932,
3341,
18,
78,
345,
360,
18,
24386,
18,
39,
1864,
30,
315,
1769,
377,
309,
12,
3845,
751,
18,
588,
8346,
7675,
291,
12978,
10756,
288,
225,
417,
18,
542,
653,
3876,
12,
2909,
15554,
18,
14318,
67,
3297,
67,
19444,
1769,
2393,
653,
18,
6923,
2932,
18991,
2773,
2934,
6923,
12,
3845,
751,
18,
588,
8346,
7675,
588,
734,
2
] |
super.setContents(model);
|
doSetContents(model);
|
public void fireModelUpdate() { // remove all the connections (they will be recreated) NestedGraphModelNode previousNode = model.getPreviousRootNode(); NestedGraphModelNode nodeToMoveTo = model.getCurrentNode(); NestedGraphModelNode nodeToSelect = nodeToMoveTo; // node to select in the TreeViewer //@tag bug(152393-TopSelection(fix)) : set-up the colors for selected nodes. //@tag bug(151327-Styles(todo)) : this set-up should be done by the GraphItemStyler, not hard-coded. if (previousNode != null) { //reset the color previousNode.setBackgroundColor(ZestPlugin.getDefault().getColor(IZestColorConstants.LIGHT_BLUE)); previousNode.setForegroundColor(ZestPlugin.getDefault().getColor(IZestColorConstants.BLACK)); } if (nodeToMoveTo != null) { //set the color to dark-blue nodeToMoveTo.setBackgroundColor(ZestPlugin.getDefault().getColor(IZestColorConstants.BLUE)); nodeToMoveTo.setForegroundColor(ZestPlugin.getDefault().getColor(IZestColorConstants.GRAY)); } if (this.getRootEditPart() instanceof NestedGraphRootEditPart) { NestedGraphRootEditPart rootEditPart = (NestedGraphRootEditPart)getRootEditPart(); if ( previousNode == null ) { rootEditPart.getNestedEditPart().zoomInOnNode( (NestedGraphNodeEditPart) nodeToMoveTo.getEditPart() ); //removeConnections(); super.setContents(model); } else if ( nodeToMoveTo.getRelationshipBetweenNodes( previousNode ) == NestedGraphModelNode.DESCENDANT ) { //removeConnections(); rootEditPart.getNestedEditPart().zoomInOnNode( (NestedGraphNodeEditPart) nodeToMoveTo.getEditPart() ); super.setContents(model); } else if ( nodeToMoveTo.getRelationshipBetweenNodes( previousNode ) == NestedGraphModelNode.ANCESTOR) { checkScaling(previousNode); super.setContents(model); getLightweightSystem().getUpdateManager().performValidation(); nodeToSelect = previousNode; // select the previous node if (getEditPartRegistry().containsKey(nodeToSelect)) { //nodeToSelect.setSelected(true); //setSelection(new StructuredSelection(getEditPartRegistry().get(nodeToSelect))); //this.setFocus(this.getRootEditPart()); } // now do the zoom (sizes and locations should be set) rootEditPart = (NestedGraphRootEditPart)getRootEditPart(); rootEditPart.getNestedEditPart().zoomOutOnNode((NestedGraphNodeEditPart)previousNode.getEditPart()); super.setContents(model); } else { super.setContents(model); } } else { super.setContents(model); } // layout the children in a grid layout // only happens the first time a node is the current node doLayout(nodeToMoveTo,500, 500); }
|
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/518bb12d99a5eb06787b0b371913d8fe0277378e/NestedGraphViewerImpl.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/nestedgraphviewer/NestedGraphViewerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
1488,
1891,
1435,
288,
202,
202,
759,
1206,
777,
326,
5921,
261,
451,
402,
903,
506,
283,
4824,
13,
25083,
202,
8649,
4137,
1488,
907,
2416,
907,
273,
938,
18,
588,
8351,
29658,
5621,
202,
202,
8649,
4137,
1488,
907,
756,
774,
7607,
774,
273,
938,
18,
588,
3935,
907,
5621,
202,
202,
8649,
4137,
1488,
907,
756,
774,
3391,
273,
756,
774,
7607,
774,
31,
202,
759,
756,
358,
2027,
316,
326,
4902,
18415,
25083,
202,
759,
36,
2692,
7934,
12,
3600,
4366,
11180,
17,
3401,
6233,
12,
904,
3719,
294,
444,
17,
416,
326,
5740,
364,
3170,
2199,
18,
202,
202,
759,
36,
2692,
7934,
12,
3600,
22152,
27,
17,
9725,
12,
9012,
3719,
294,
333,
444,
17,
416,
1410,
506,
2731,
635,
326,
5601,
1180,
24273,
749,
16,
486,
7877,
17,
24808,
18,
202,
202,
430,
261,
11515,
907,
480,
446,
13,
288,
1082,
202,
759,
6208,
326,
2036,
1082,
202,
11515,
907,
18,
542,
21699,
12,
62,
395,
3773,
18,
588,
1868,
7675,
588,
2957,
12,
6867,
395,
2957,
2918,
18,
23516,
67,
14618,
1821,
10019,
1082,
202,
11515,
907,
18,
542,
23206,
2957,
12,
62,
395,
3773,
18,
588,
1868,
7675,
588,
2957,
12,
6867,
395,
2957,
2918,
18,
14618,
3649,
10019,
202,
202,
97,
202,
202,
430,
261,
2159,
774,
7607,
774,
480,
446,
13,
288,
1082,
202,
759,
542,
326,
2036,
358,
23433,
17,
14081,
1082,
202,
2159,
774,
7607,
774,
18,
542,
21699,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
1488,
1891,
1435,
288,
202,
202,
759,
1206,
777,
326,
5921,
261,
451,
402,
903,
506,
283,
4824,
13,
25083,
202,
8649,
4137,
1488,
907,
2416,
907,
273,
938,
18,
588,
8351,
29658,
5621,
202,
202,
8649,
4137,
1488,
907,
756,
774,
7607,
774,
273,
938,
18,
588,
3935,
907,
5621,
202,
202,
8649,
4137,
1488,
907,
756,
774,
3391,
273,
756,
774,
7607,
774,
31,
202,
759,
756,
358,
2027,
316,
326,
4902,
18415,
25083,
202,
759,
36,
2692,
7934,
12,
3600,
4366,
11180,
17,
3401,
6233,
12,
904,
3719,
294,
444,
17,
416,
326,
5740,
364,
3170,
2199,
18,
202,
202,
759,
36,
2692,
7934,
12,
3600,
22152,
27,
17,
9725,
12,
2
] |
String extrainfo )
|
String extrainfo)
|
public static String getHeader(Context context, String action, String extrainfo ) { String email = "anonymous"; EPerson e = context.getCurrentUser(); if (e != null ) { email = e.getEmail(); } String result = new String( email + ":" + context.getExtraLogInfo() + ":" + action + ":" + extrainfo ); return result; }
|
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/85c7430ba7691f831fafc420459d280408310eb9/LogManager.java/clean/dspace/src/org/dspace/core/LogManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
7911,
12,
1042,
819,
16,
514,
1301,
16,
3639,
514,
7582,
28935,
13,
565,
288,
3639,
514,
2699,
273,
315,
19070,
14432,
3639,
512,
8346,
425,
273,
819,
18,
588,
3935,
1299,
5621,
3639,
309,
261,
73,
480,
446,
262,
3639,
288,
5411,
2699,
273,
425,
18,
588,
4134,
5621,
3639,
289,
3639,
514,
563,
273,
394,
514,
12,
2699,
397,
6153,
397,
819,
18,
588,
7800,
1343,
966,
1435,
397,
5411,
6153,
397,
1301,
397,
6153,
397,
7582,
28935,
11272,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
7911,
12,
1042,
819,
16,
514,
1301,
16,
3639,
514,
7582,
28935,
13,
565,
288,
3639,
514,
2699,
273,
315,
19070,
14432,
3639,
512,
8346,
425,
273,
819,
18,
588,
3935,
1299,
5621,
3639,
309,
261,
73,
480,
446,
262,
3639,
288,
5411,
2699,
273,
425,
18,
588,
4134,
5621,
3639,
289,
3639,
514,
563,
273,
394,
514,
12,
2699,
397,
6153,
397,
819,
18,
588,
7800,
1343,
966,
1435,
397,
5411,
6153,
397,
1301,
397,
6153,
397,
7582,
28935,
11272,
3639,
327,
563,
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
] |
String fromFile = (String)enum.nextElement(); String toFile = (String)filecopyList.get(fromFile);
|
String fromFile = (String) enum.nextElement(); String toFile = (String) filecopyList.get(fromFile);
|
private void copyFilesToDestination() { if (filecopyList.size() > 0) { log("Copying " + filecopyList.size() + " file" + (filecopyList.size() == 1 ? "" : "s") + " to " + destDir.getAbsolutePath()); Enumeration enum = filecopyList.keys(); while (enum.hasMoreElements()) { String fromFile = (String)enum.nextElement(); String toFile = (String)filecopyList.get(fromFile); try { project.copyFile(fromFile, toFile); } catch (IOException ioe) { String msg = "Failed to copy " + fromFile + " to " + toFile + " due to " + ioe.getMessage(); throw new BuildException(msg, ioe); } } }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/c6c232893c39257745a8f7a618bcdb5c59791cae/NetRexxC.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
2697,
774,
5683,
1435,
288,
3639,
309,
261,
768,
3530,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
613,
2932,
2951,
310,
315,
397,
585,
3530,
682,
18,
1467,
1435,
397,
315,
585,
6,
7734,
397,
261,
768,
3530,
682,
18,
1467,
1435,
422,
404,
692,
1408,
294,
315,
87,
7923,
7734,
397,
315,
358,
315,
397,
26231,
18,
588,
10368,
743,
10663,
5411,
13864,
2792,
273,
585,
3530,
682,
18,
2452,
5621,
5411,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
7734,
514,
31000,
273,
261,
780,
13,
7924,
18,
4285,
1046,
5621,
7734,
514,
24381,
273,
261,
780,
13,
768,
3530,
682,
18,
588,
12,
2080,
812,
1769,
7734,
775,
288,
10792,
1984,
18,
3530,
812,
12,
2080,
812,
16,
24381,
1769,
7734,
289,
1044,
261,
14106,
10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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
2697,
774,
5683,
1435,
288,
3639,
309,
261,
768,
3530,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
613,
2932,
2951,
310,
315,
397,
585,
3530,
682,
18,
1467,
1435,
397,
315,
585,
6,
7734,
397,
261,
768,
3530,
682,
18,
1467,
1435,
422,
404,
692,
1408,
294,
315,
87,
7923,
7734,
397,
315,
358,
315,
397,
26231,
18,
588,
10368,
743,
10663,
5411,
13864,
2792,
273,
585,
3530,
682,
18,
2452,
5621,
5411,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
7734,
514,
31000,
273,
261,
780,
13,
7924,
18,
4285,
1046,
5621,
7734,
514,
24381,
273,
261,
780,
13,
768,
3530,
682,
18,
588,
12,
2080,
812,
1769,
7734,
775,
288,
2
] |
Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- "
|
Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + ' ' + _sock.getLocalPort() + " <- "
|
public void checkFilters(Message m) { if ((m.getSource()) instanceof PeerNode) { ((PeerNode)m.getSource()).addToLocalNodeReceivedMessagesFromStatistic(m); } boolean matched = false; if ((!(m.getSpec().equals(DMT.packetTransmit))) && logMINOR) { if ((m.getSpec().equals(DMT.ping) || m.getSpec().equals(DMT.pong)) && Logger.shouldLog(Logger.DEBUG, this)) { Logger.debug(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } else { Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } } synchronized (_filters) { for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } if(logMINOR) Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } } // Feed unmatched messages to the dispatcher if ((!matched) && (_dispatcher != null)) { try { if(logMINOR) Logger.minor(this, "Feeding to dispatcher: "+m); matched = _dispatcher.handleMessage(m); } catch (Throwable t) { Logger.error(this, "Dispatcher threw "+t, t); } } // Keep the last few _unclaimed messages around in case the intended receiver isn't receiving yet if (!matched) { if(logMINOR) Logger.minor(this, "Unclaimed: "+m); /** Check filters and then add to _unmatched is ATOMIC * It has to be atomic, because otherwise we can get a * race condition that results in timeouts on MFs. * * Specifically: * - Thread A receives packet * - Thread A checks filters. It doesn't match any. * - Thread A feeds to Dispatcher. * - Thread B creates filter. * - Thread B checks _unmatched. * - Thread B adds filter. * - Thread B sleeps. * - Thread A returns from Dispatcher. Which didn't match. * - Thread A adds to _unmatched. * * OOPS! * The only way to fix this is to have checking the * filters and unmatched be a single atomic operation. * Another race is possible if we merely recheck the * filters after we return from dispatcher, for example. */ synchronized (_filters) { if(logMINOR) Logger.minor(this, "Rechecking filters and adding message"); for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } if(logMINOR) Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } if(!matched) { while (_unclaimed.size() > MAX_UNMATCHED_FIFO_SIZE) { Message removed = (Message)_unclaimed.removeFirst(); long messageLifeTime = System.currentTimeMillis() - removed.localInstantiationTime; if ((removed.getSource()) instanceof PeerNode) { Logger.normal(this, "Dropping unclaimed from "+removed.getSource().getPeer()+", lived "+TimeUtil.formatTime(messageLifeTime, 2, true)+" : "+removed); } else { Logger.normal(this, "Dropping unclaimed, lived "+TimeUtil.formatTime(messageLifeTime, 2, true)+" : "+removed); } } _unclaimed.addLast(m); if(logMINOR) Logger.minor(this, "Done"); } } } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/UdpSocketManager.java/clean/src/freenet/io/comm/UdpSocketManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
5422,
12,
1079,
312,
13,
288,
202,
202,
430,
14015,
81,
18,
588,
1830,
10756,
1276,
10669,
907,
13,
202,
202,
95,
1082,
202,
12443,
6813,
907,
13,
81,
18,
588,
1830,
1435,
2934,
1289,
774,
2042,
907,
8872,
5058,
1265,
20673,
12,
81,
1769,
202,
202,
97,
202,
202,
6494,
4847,
273,
629,
31,
202,
202,
430,
14015,
5,
12,
81,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
11482,
1429,
1938,
20349,
597,
613,
6236,
916,
13,
288,
1082,
202,
430,
14015,
81,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
1382,
13,
747,
312,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
500,
75,
3719,
597,
4242,
18,
13139,
1343,
12,
3328,
18,
9394,
16,
333,
3719,
288,
9506,
202,
3328,
18,
4148,
12,
2211,
16,
1408,
397,
261,
3163,
18,
2972,
28512,
1435,
738,
1666,
2787,
13,
397,
315,
315,
397,
389,
15031,
18,
588,
2042,
2617,
1435,
397,
315,
3290,
315,
25083,
202,
15,
312,
18,
588,
1830,
1435,
397,
315,
294,
315,
397,
312,
1769,
1082,
202,
97,
469,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
1408,
397,
261,
3163,
18,
2972,
28512,
1435,
738,
1666,
2787,
13,
397,
315,
315,
397,
389,
15031,
18,
588,
2042,
2617,
1435,
397,
315,
3290,
315,
25083,
202,
15,
312,
18,
588,
1830,
1435,
397,
315,
294,
315,
397,
312,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
22043,
261,
67,
6348,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
5422,
12,
1079,
312,
13,
288,
202,
202,
430,
14015,
81,
18,
588,
1830,
10756,
1276,
10669,
907,
13,
202,
202,
95,
1082,
202,
12443,
6813,
907,
13,
81,
18,
588,
1830,
1435,
2934,
1289,
774,
2042,
907,
8872,
5058,
1265,
20673,
12,
81,
1769,
202,
202,
97,
202,
202,
6494,
4847,
273,
629,
31,
202,
202,
430,
14015,
5,
12,
81,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
11482,
1429,
1938,
20349,
597,
613,
6236,
916,
13,
288,
1082,
202,
430,
14015,
81,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
1382,
13,
747,
312,
18,
588,
1990,
7675,
14963,
12,
40,
6152,
18,
500,
75,
3719,
597,
4242,
18,
2
] |
Checkpoint toSend = (Checkpoint)((ArrayList)(storage.get(current))).get(globalState);
|
Checkpoint toSend = (Checkpoint)((ArrayList)(storage.get(current))).get(globalState);
|
private void recoverFrom(int globalState, UniqueID failed){ try { if (globalState==0){ // recovery line is not given // use last recovery line globalState=this.recoveryLine; } logger.info("[RECOVERY] Recovering system from " + globalState); this.globalIncarnation++; Enumeration itBodies = this.storage.keys(); this.lastGlobalState = globalState; this.lastRegisteredCkpt = globalState; this.recoveryLine = globalState; this.stateMonitor = new int[NB_CKPT_MAX]; this.recoveryLineMonitor = new int[NB_CKPT_MAX]; // delete unusable checkpoints Iterator it = this.storage.values().iterator(); while (it.hasNext()){ ArrayList ckpts = ((ArrayList)(it.next())); while(ckpts.size()>globalState+1){ ckpts.remove(globalState+1); } } // set all the system in recovery state while(itBodies.hasMoreElements()){ UniqueID current = (UniqueID)(itBodies.nextElement()); this.bodies.put(current, new Integer(RECOVERING)); } //reinit the iterator itBodies = this.storage.keys(); // for waiting the end of the recovery ArrayList recoveryThreads = new ArrayList(); // send checkpoints while(itBodies.hasMoreElements()){ UniqueID current = (UniqueID)(itBodies.nextElement()); Checkpoint toSend = (Checkpoint)((ArrayList)(storage.get(current))).get(globalState); if (current.equals(failed)){ //look for a new Runtime for this oa Node node = this.getFreeNode(); Thread t = new RecoveryThread(toSend, this.globalIncarnation, node); recoveryThreads.add(t); t.start(); } else { UniversalBody toRecover = (UniversalBody)(this.locations.get(current)); // test current OA so as to handle mutliple failures boolean isDead=false; try{isDead = this.isUnreachable(toRecover);}catch(Exception e){} if (isDead){ Node node = this.getFreeNode(); Thread t = new RecoveryThread(toSend, this.globalIncarnation, node); recoveryThreads.add(t); t.start(); }else{ String nodeURL = toRecover.getNodeURL(); Node node = NodeFactory.getNode(nodeURL); Thread t = new RecoveryThread(toSend, this.globalIncarnation, node); recoveryThreads.add(t); t.start(); } } } // MUST WAIT THE TERMINAISON OF THE RECOVERY ! Iterator itrt = recoveryThreads.iterator(); while (it.hasNext()){ try { ((Thread)(itrt.next())).join(); } catch (InterruptedException e1) { e1.printStackTrace(); } } } catch (NodeException e) { logger.error("[RECOVERY] **ERROR** Unable to send checkpoint for recovery"); e.printStackTrace(); } }
|
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/03d8487529d188b68ec5675e0fa984ce37dd9045/GlobalFTServer.java/clean/src/org/objectweb/proactive/core/body/ft/util/GlobalFTServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5910,
1265,
12,
474,
2552,
1119,
16,
14584,
734,
2535,
15329,
202,
202,
698,
288,
1082,
202,
430,
261,
6347,
1119,
631,
20,
15329,
9506,
565,
368,
11044,
980,
353,
486,
864,
9506,
565,
368,
999,
1142,
11044,
980,
9506,
565,
2552,
1119,
33,
2211,
18,
23963,
1670,
31,
1082,
202,
97,
1082,
377,
25083,
202,
4901,
18,
1376,
2932,
63,
30724,
17529,
65,
868,
3165,
310,
2619,
628,
315,
397,
2552,
1119,
1769,
1082,
202,
2211,
18,
6347,
14559,
1303,
367,
9904,
31,
1082,
565,
13864,
518,
38,
18134,
273,
333,
18,
5697,
18,
2452,
5621,
1082,
202,
2211,
18,
2722,
5160,
1119,
273,
2552,
1119,
31,
1082,
202,
2211,
18,
2722,
10868,
39,
79,
337,
273,
2552,
1119,
31,
1082,
202,
2211,
18,
23963,
1670,
273,
2552,
1119,
31,
1082,
202,
2211,
18,
2019,
7187,
273,
394,
509,
63,
20626,
67,
3507,
1856,
67,
6694,
15533,
1082,
202,
2211,
18,
23963,
1670,
7187,
273,
394,
509,
63,
20626,
67,
3507,
1856,
67,
6694,
15533,
6862,
6862,
202,
759,
1430,
640,
16665,
26402,
1082,
202,
3198,
518,
273,
333,
18,
5697,
18,
2372,
7675,
9838,
5621,
1082,
565,
1323,
261,
305,
18,
5332,
2134,
10756,
95,
1082,
3639,
2407,
12622,
1092,
273,
14015,
19558,
21433,
305,
18,
4285,
1435,
10019,
1082,
3639,
1323,
12,
363,
1092,
18,
1467,
1435,
34,
6347,
1119,
15,
21,
15329,
1082,
5411,
12622,
1092,
18,
4479,
12,
6347,
1119,
15,
21,
1769,
1082,
3639,
289,
1082,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5910,
1265,
12,
474,
2552,
1119,
16,
14584,
734,
2535,
15329,
202,
202,
698,
288,
1082,
202,
430,
261,
6347,
1119,
631,
20,
15329,
9506,
565,
368,
11044,
980,
353,
486,
864,
9506,
565,
368,
999,
1142,
11044,
980,
9506,
565,
2552,
1119,
33,
2211,
18,
23963,
1670,
31,
1082,
202,
97,
1082,
377,
25083,
202,
4901,
18,
1376,
2932,
63,
30724,
17529,
65,
868,
3165,
310,
2619,
628,
315,
397,
2552,
1119,
1769,
1082,
202,
2211,
18,
6347,
14559,
1303,
367,
9904,
31,
1082,
565,
13864,
518,
38,
18134,
273,
333,
18,
5697,
18,
2452,
5621,
1082,
202,
2211,
18,
2722,
5160,
1119,
273,
2552,
1119,
31,
1082,
202,
2211,
18,
2722,
10868,
39,
2
] |
case Dict.VERS_UNKNOWN: return HTMLVersion();
|
case Dict.VERS_UNKNOWN : return HTMLVersion();
|
public short apparentVersion() { switch (this.doctype) { case Dict.VERS_UNKNOWN: return HTMLVersion(); case Dict.VERS_HTML20: if ((this.versions & Dict.VERS_HTML20) != 0) return Dict.VERS_HTML20; break; case Dict.VERS_HTML32: if ((this.versions & Dict.VERS_HTML32) != 0) return Dict.VERS_HTML32; break; /* to replace old version by new */ case Dict.VERS_HTML40_STRICT: if ((this.versions & Dict.VERS_HTML40_STRICT) != 0) return Dict.VERS_HTML40_STRICT; break; case Dict.VERS_HTML40_LOOSE: if ((this.versions & Dict.VERS_HTML40_LOOSE) != 0) return Dict.VERS_HTML40_LOOSE; break; /* to replace old version by new */ case Dict.VERS_FRAMES: if ((this.versions & Dict.VERS_FRAMES) != 0) return Dict.VERS_FRAMES; break; } Report.warning(this, null, null, Report.INCONSISTENT_VERSION); return this.HTMLVersion(); }
|
53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/d0c0d9bb39e0a2afdc246686412b72747622e53b/Lexer.java/buggy/jtidy/src/main/org/w3c/tidy/Lexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
29614,
1444,
1435,
565,
288,
3639,
1620,
261,
2211,
18,
2896,
12387,
13,
3639,
288,
3639,
648,
9696,
18,
21510,
67,
14737,
30,
5411,
327,
3982,
1444,
5621,
3639,
648,
9696,
18,
21510,
67,
4870,
3462,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
3462,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
3462,
31,
5411,
898,
31,
3639,
648,
9696,
18,
21510,
67,
4870,
1578,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
1578,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
1578,
31,
5411,
898,
31,
1748,
358,
1453,
1592,
1177,
635,
394,
1195,
3639,
648,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
31,
5411,
898,
31,
3639,
648,
9696,
18,
21510,
67,
4870,
7132,
67,
1502,
51,
1090,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
7132,
67,
1502,
51,
1090,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
7132,
67,
1502,
51,
1090,
31,
5411,
898,
31,
1748,
358,
1453,
1592,
1177,
635,
394,
1195,
3639,
648,
9696,
18,
21510,
67,
15072,
55,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
15072,
55,
13,
480,
374,
13,
7734,
327,
9696,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
29614,
1444,
1435,
565,
288,
3639,
1620,
261,
2211,
18,
2896,
12387,
13,
3639,
288,
3639,
648,
9696,
18,
21510,
67,
14737,
30,
5411,
327,
3982,
1444,
5621,
3639,
648,
9696,
18,
21510,
67,
4870,
3462,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
3462,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
3462,
31,
5411,
898,
31,
3639,
648,
9696,
18,
21510,
67,
4870,
1578,
30,
5411,
309,
14015,
2211,
18,
10169,
473,
9696,
18,
21510,
67,
4870,
1578,
13,
480,
374,
13,
7734,
327,
9696,
18,
21510,
67,
4870,
1578,
31,
5411,
898,
31,
1748,
358,
1453,
1592,
1177,
635,
394,
1195,
3639,
648,
9696,
18,
2
] |
return realThis(thisObj, f).jsFunction_strike();
|
return realThis(thisObj, f).tagify("strike", null, null);
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case ConstructorId_fromCharCode: return jsStaticFunction_fromCharCode(args); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f).jsFunction_toString(); case Id_valueOf: return realThis(thisObj, f).jsFunction_valueOf(); case Id_charAt: return jsFunction_charAt (ScriptRuntime.toString(thisObj), args); case Id_charCodeAt: return wrap_double(jsFunction_charCodeAt (ScriptRuntime.toString(thisObj), args)); case Id_indexOf: return wrap_int(jsFunction_indexOf (ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int(jsFunction_lastIndexOf (ScriptRuntime.toString(thisObj), args)); case Id_split: return jsFunction_split (cx, ScriptRuntime.toString(thisObj), args, f); case Id_substring: return jsFunction_substring (cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: return jsFunction_toLowerCase (ScriptRuntime.toString(thisObj)); case Id_toUpperCase: return jsFunction_toUpperCase (ScriptRuntime.toString(thisObj)); case Id_substr: return jsFunction_substr (ScriptRuntime.toString(thisObj), args); case Id_concat: return jsFunction_concat (ScriptRuntime.toString(thisObj), args); case Id_slice: return jsFunction_slice (ScriptRuntime.toString(thisObj), args); case Id_bold: return realThis(thisObj, f).jsFunction_bold(); case Id_italics: return realThis(thisObj, f).jsFunction_italics(); case Id_fixed: return realThis(thisObj, f).jsFunction_fixed(); case Id_strike: return realThis(thisObj, f).jsFunction_strike(); case Id_small: return realThis(thisObj, f).jsFunction_small(); case Id_big: return realThis(thisObj, f).jsFunction_big(); case Id_blink: return realThis(thisObj, f).jsFunction_blink(); case Id_sup: return realThis(thisObj, f).jsFunction_sup(); case Id_sub: return realThis(thisObj, f).jsFunction_sub(); case Id_fontsize: return realThis(thisObj, f). jsFunction_fontsize(ScriptRuntime.toString(args, 0)); case Id_fontcolor: return realThis(thisObj, f). jsFunction_fontcolor(ScriptRuntime.toString(args, 0)); case Id_link: return realThis(thisObj, f). jsFunction_link(ScriptRuntime.toString(args, 0)); case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); case Id_equals: return wrap_boolean(jsFunction_equals (ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_equalsIgnoreCase: return wrap_boolean(jsFunction_equalsIgnoreCase (ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_match: return jsFunction_match(cx, thisObj, args, f); case Id_search: return jsFunction_search(cx, thisObj, args, f); case Id_replace: return jsFunction_replace(cx, thisObj, args, f); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/NativeString.java/clean/js/rhino/src/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
30,
5397,
327,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
3124,
67,
10492,
30,
10792,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
2924,
2083,
67,
10492,
5621,
7734,
648,
3124,
67,
1132,
951,
30,
10792,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
2924,
2083,
67,
1132,
951,
5621,
7734,
648,
3124,
67,
3001,
861,
30,
5397,
327,
3828,
2083,
67,
3001,
861,
13491,
261,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
1769,
7734,
648,
3124,
67,
3001,
1085,
861,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
2083,
67,
3001,
1085,
861,
13491,
261,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
7734,
648,
3124,
67,
31806,
30,
10792,
327,
2193,
67,
474,
12,
2924,
2083,
67,
31806,
13491,
261,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
7734,
648,
3124,
67,
2722,
31985,
30,
5397,
327,
2193,
67,
474,
12,
2924,
2083,
67,
2722,
31985,
13491,
261,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
7734,
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,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
30,
5397,
327,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
3124,
67,
10492,
30,
10792,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
2924,
2083,
67,
10492,
5621,
7734,
648,
3124,
67,
1132,
951,
30,
10792,
327,
2863,
2503,
12,
2211,
2
] |
super(msg);
|
public InvalidParameterException(String msg) { super(msg); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/375948b746a7ee130ddcfdc51ac2e51092612050/InvalidParameterException.java/buggy/core/src/classpath/java/java/security/InvalidParameterException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26669,
12,
780,
1234,
13,
225,
288,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26669,
12,
780,
1234,
13,
225,
288,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
setTitle("Preferences"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout());
|
setTitle("Preferences"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout());
|
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents dialogPane = new JPanel(); contentPane = new JPanel(); tabbedPane1 = new JTabbedPane(); panel1 = new JPanel(); label2 = new JLabel(); startupActionCombo = new JComboBox(); tabWidthField = new JTextField(); label1 = new JLabel(); label3 = new JLabel(); editorFontCombo = new JComboBox(); editorFontSizeSpinner = new JSpinner(); panel2 = new JPanel(); jikesRadio = new JRadioButton(); integratedRadio = new JRadioButton(); javacRadio = new JRadioButton(); label4 = new JLabel(); jikesPathField = new JTextField(); browseJikesPath = new JButton(); buttonBar = new JPanel(); applyButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Preferences"); Container contentPane2 = getContentPane(); contentPane2.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setPreferredSize(new Dimension(550, 300)); dialogPane.setLayout(new BorderLayout()); //======== contentPane ======== { contentPane.setLayout(new FormLayout( "default, default:grow", "fill:default:grow")); //======== tabbedPane1 ======== { //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- label2 ---- label2.setText("At startup:"); panel1.add(label2, cc.xy(3, 3)); //---- startupActionCombo ---- startupActionCombo.setModel(new DefaultComboBoxModel(new String[] { "Create a new document", "Open the last used document" })); panel1.add(startupActionCombo, cc.xywh(5, 3, 3, 1)); //---- tabWidthField ---- tabWidthField.setText("8"); panel1.add(tabWidthField, cc.xy(5, 5)); //---- label1 ---- label1.setHorizontalAlignment(SwingConstants.RIGHT); label1.setText("Tab width:"); panel1.add(label1, cc.xy(3, 5)); //---- label3 ---- label3.setText("Editor Font:"); panel1.add(label3, cc.xy(3, 7)); //---- editorFontCombo ---- editorFontCombo.setActionCommand("editorFontCombo"); panel1.add(editorFontCombo, cc.xywh(5, 7, 3, 1)); //---- editorFontSizeSpinner ---- editorFontSizeSpinner.setModel(new SpinnerNumberModel(new Integer(12), new Integer(8), null, new Integer(1))); panel1.add(editorFontSizeSpinner, cc.xy(9, 7)); } tabbedPane1.addTab("General", panel1); //======== panel2 ======== { panel2.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- jikesRadio ---- jikesRadio.setActionCommand("jikes"); jikesRadio.setText("jikes"); panel2.add(jikesRadio, cc.xy(5, 5)); //---- integratedRadio ---- integratedRadio.setActionCommand("integrated"); integratedRadio.setText("com.sun.tools.javac"); panel2.add(integratedRadio, cc.xywh(5, 9, 2, 1)); //---- javacRadio ---- javacRadio.setSelected(true); javacRadio.setActionCommand("javac"); javacRadio.setText("javac"); panel2.add(javacRadio, cc.xy(5, 3)); //---- label4 ---- label4.setText("Path:"); panel2.add(label4, cc.xywh(5, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panel2.add(jikesPathField, cc.xy(6, 7)); //---- browseJikesPath ---- browseJikesPath.setText("Browse..."); panel2.add(browseJikesPath, cc.xy(7, 7)); } tabbedPane1.addTab("Compiler", panel2); } contentPane.add(tabbedPane1, cc.xywh(1, 1, 2, 1)); } dialogPane.add(contentPane, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- applyButton ---- applyButton.setText("Apply"); buttonBar.add(applyButton, cc.xy(2, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane2.add(dialogPane, BorderLayout.CENTER); //---- buttonGroup1 ---- compilerRadioButtonGroup = new ButtonGroup(); compilerRadioButtonGroup.add(jikesRadio); compilerRadioButtonGroup.add(integratedRadio); compilerRadioButtonGroup.add(javacRadio); // JFormDesigner - End of component initialization //GEN-END:initComponents }
|
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/fe7a9c9f3de6f8ae9a60f9e9c118c31baf44de7f/DialogPrefs.java/buggy/src/org/antlr/works/dialog/DialogPrefs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
394,
24048,
5621,
3639,
913,
8485,
273,
394,
24048,
5621,
3639,
3246,
2992,
8485,
21,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
6594,
21,
273,
394,
24048,
5621,
3639,
1433,
22,
273,
394,
21403,
5621,
3639,
11850,
1803,
16156,
273,
394,
804,
22199,
5621,
3639,
3246,
2384,
974,
273,
394,
804,
16157,
5621,
3639,
1433,
21,
273,
394,
21403,
5621,
3639,
1433,
23,
273,
394,
21403,
5621,
3639,
4858,
5711,
16156,
273,
394,
804,
22199,
5621,
3639,
4858,
22688,
31676,
273,
394,
804,
31676,
5621,
3639,
6594,
22,
273,
394,
24048,
5621,
3639,
525,
25235,
19984,
273,
394,
804,
19984,
3616,
5621,
3639,
31121,
19984,
273,
394,
804,
19984,
3616,
5621,
3639,
5152,
1077,
19984,
273,
394,
804,
19984,
3616,
5621,
3639,
1433,
24,
273,
394,
21403,
5621,
3639,
525,
25235,
743,
974,
273,
394,
804,
16157,
5621,
3639,
21670,
46,
25235,
743,
273,
394,
28804,
5621,
3639,
3568,
5190,
273,
394,
24048,
5621,
3639,
2230,
3616,
273,
394,
28804,
5621,
3639,
8614,
4878,
4946,
273,
394,
8614,
4878,
5621,
3639,
368,
1432,
333,
422,
894,
631,
3639,
14109,
2932,
12377,
8863,
3639,
4039,
913,
8485,
22,
273,
5154,
8485,
5621,
3639,
913,
8485,
22,
18,
542,
3744,
12,
2704,
30814,
10663,
3639,
368,
1432,
6176,
8485,
422,
894,
631,
3639,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
368,
804,
1204,
15478,
264,
300,
5435,
10313,
300,
5467,
4269,
8663,
12096,
225,
368,
16652,
17,
16061,
30,
2738,
7171,
3639,
6176,
8485,
273,
394,
24048,
5621,
3639,
913,
8485,
273,
394,
24048,
5621,
3639,
3246,
2992,
8485,
21,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
6594,
21,
273,
394,
24048,
5621,
3639,
1433,
22,
273,
394,
21403,
5621,
3639,
11850,
1803,
16156,
273,
394,
804,
22199,
5621,
3639,
3246,
2384,
974,
273,
394,
804,
16157,
5621,
3639,
1433,
21,
273,
394,
21403,
5621,
3639,
1433,
23,
273,
394,
21403,
5621,
3639,
4858,
5711,
16156,
273,
394,
804,
22199,
5621,
3639,
4858,
22688,
31676,
273,
394,
804,
31676,
5621,
2
] |
OXFProperties.PropertySet propertySet = OXFProperties.instance().getPropertySet(); config.setIsolationDegree(isolationDegree != null ? isolationDegree : propertySet.getString(ISOLATION_DEGREE_PROPERTY));
|
OXFProperties.PropertySet propertySet = getPropertySet(); config.setIsolationDegree(isolationDegree != null ? isolationDegree : propertySet.getString(ISOLATION_DEGREE_PROPERTY));
|
protected Config readConfig(Document doc) { Config config = new Config(); // Try local configuration first String url = XPathUtils.selectStringValueNormalize(doc, "/config/url"); String username = XPathUtils.selectStringValueNormalize(doc, "/config/username"); String password = XPathUtils.selectStringValueNormalize(doc, "/config/password"); String isolationDegree = XPathUtils.selectStringValueNormalize(doc, "/config/isolation-degree"); String lockMode = XPathUtils.selectStringValueNormalize(doc, "/config/lock-mode"); String lockWait = XPathUtils.selectStringValueNormalize(doc, "/config/lock-wait"); // Override with properties if needed config.setUrl(url != null ? url : getPropertySet().getString(URL_PROPERTY)); config.setUsername(username != null ? username : getPropertySet().getString(USERNAME_PROPERTY)); config.setPassword(password != null ? password : getPropertySet().getString(PASSWORD_PROPERTY)); // Set isolation and locking properties, override from global if set OXFProperties.PropertySet propertySet = OXFProperties.instance().getPropertySet(); config.setIsolationDegree(isolationDegree != null ? isolationDegree : propertySet.getString(ISOLATION_DEGREE_PROPERTY)); config.setLockMode(lockMode != null ? lockMode : propertySet.getString(LOCK_MODE_PROPERTY)); config.setLockWait(lockWait != null ? lockWait : propertySet.getString(LOCK_WAIT_PROPERTY)); config.setCollection(TAccessLocation.newInstance(XPathUtils.selectStringValueNormalize(doc, "/config/collection"))); return config; }
|
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/03b10db10c1f51db8b613ae7a3179c296e11f816/TaminoProcessor.java/buggy/src/java/org/orbeon/oxf/processor/tamino/TaminoProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1903,
855,
809,
12,
2519,
997,
13,
288,
3639,
1903,
642,
273,
394,
1903,
5621,
3639,
368,
6161,
1191,
1664,
1122,
3639,
514,
880,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
718,
8863,
3639,
514,
2718,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
5053,
8863,
3639,
514,
2201,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
3664,
8863,
202,
202,
780,
25155,
22885,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
291,
12255,
17,
21361,
8863,
202,
202,
780,
2176,
2309,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
739,
17,
3188,
8863,
202,
202,
780,
2176,
5480,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
739,
17,
7048,
8863,
3639,
368,
1439,
598,
1790,
309,
3577,
3639,
642,
18,
542,
1489,
12,
718,
480,
446,
692,
880,
294,
3911,
694,
7675,
588,
780,
12,
1785,
67,
9900,
10019,
3639,
642,
18,
542,
8575,
12,
5053,
480,
446,
692,
2718,
294,
3911,
694,
7675,
588,
780,
12,
21292,
67,
9900,
10019,
3639,
642,
18,
542,
3913,
12,
3664,
480,
446,
692,
2201,
294,
3911,
694,
7675,
588,
780,
12,
13784,
67,
9900,
10019,
202,
202,
759,
1000,
25155,
471,
18887,
1790,
16,
3849,
628,
2552,
309,
444,
202,
202,
22550,
42,
2297,
18,
1396,
694,
1272,
694,
273,
531,
60,
42,
2297,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1903,
855,
809,
12,
2519,
997,
13,
288,
3639,
1903,
642,
273,
394,
1903,
5621,
3639,
368,
6161,
1191,
1664,
1122,
3639,
514,
880,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
718,
8863,
3639,
514,
2718,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
5053,
8863,
3639,
514,
2201,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
3664,
8863,
202,
202,
780,
25155,
22885,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
291,
12255,
17,
21361,
8863,
202,
202,
780,
2176,
2309,
273,
10172,
1989,
18,
4025,
19733,
14380,
12,
2434,
16,
2206,
1425,
19,
739,
2
] |
if (!okay) { throw exception; } return result;
|
chain.checkForExceptions();
|
public synchronized PacketResult submitProcedure(String sql, SQLWarningChain chain) throws SQLException { PacketResult result = null; PacketResult tmp = null; boolean okay = true; byte tmpByte; SQLException exception = null; try { executeQuery(sql, null, 0); tmpByte = (byte) (comm.peek() & 0xff); boolean done; do // skip to end, why not ? { tmp = processSubPacket(); done = (tmp instanceof PacketEndTokenResult) && (! ((PacketEndTokenResult)tmp).moreResults()); } while (! done); /* while (!((tmp = processSubPacket()) instanceof PacketEndTokenResult)) { if (tmp instanceof PacketErrorResult) { result = tmp; okay = false; // XXX I'm sure we need to do more here. // how about throwing an Exception? --SB exception = ((PacketErrorResult) tmp).getMsg().toSQLException(); } else if (tmp instanceof PacketMsgResult) { chain.addOrReturn((PacketMsgResult) tmp); } else { throw new SQLException( "Confused. Was expecting the " + "end of result, found a " + tmp.getClass().getName()); } } if (result == null) { result = tmp; } */ } catch (java.io.IOException e) { throw new SQLException("Network error" + e.getMessage()); } catch (com.internetcds.jdbc.tds.TdsUnknownPacketSubType e) { throw new SQLException(e.getMessage()); } catch (com.internetcds.jdbc.tds.TdsException e) { throw new SQLException(e.getMessage()); } if (!okay) { throw exception; } return result; }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/82db06b5ace2496789b551dd8bd53aa218a17088/Tds.java/clean/src.old/main/com/internetcds/jdbc/tds/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
11114,
1253,
4879,
17213,
12,
780,
1847,
16,
5411,
3063,
6210,
3893,
2687,
13,
2398,
1216,
6483,
565,
288,
3639,
11114,
1253,
563,
273,
446,
31,
3639,
11114,
1253,
1853,
273,
446,
31,
3639,
1250,
21194,
273,
638,
31,
3639,
1160,
1853,
3216,
31,
3639,
6483,
1520,
273,
446,
31,
3639,
775,
288,
5411,
14304,
12,
4669,
16,
446,
16,
374,
1769,
5411,
1853,
3216,
273,
261,
7229,
13,
261,
5702,
18,
347,
3839,
1435,
473,
374,
5297,
1769,
5411,
1250,
2731,
31,
5411,
741,
225,
368,
2488,
358,
679,
16,
11598,
486,
692,
5411,
288,
9079,
1853,
273,
1207,
1676,
6667,
5621,
9079,
2731,
273,
261,
5645,
1276,
11114,
1638,
1345,
1253,
13,
5375,
597,
16051,
14015,
6667,
1638,
1345,
1253,
13,
5645,
2934,
10161,
3447,
10663,
5411,
289,
1323,
16051,
2731,
1769,
6647,
1748,
5411,
1323,
16051,
12443,
5645,
273,
1207,
1676,
6667,
10756,
5397,
1276,
11114,
1638,
1345,
1253,
3719,
288,
7734,
309,
261,
5645,
1276,
11114,
668,
1253,
13,
288,
10792,
563,
273,
1853,
31,
10792,
21194,
273,
629,
31,
10792,
368,
11329,
467,
17784,
3071,
732,
1608,
358,
741,
1898,
2674,
18,
10792,
368,
377,
3661,
2973,
19440,
392,
1185,
35,
1493,
14541,
10792,
1520,
273,
14015,
6667,
668,
1253,
13,
1853,
2934,
588,
3332,
7675,
869,
23116,
5621,
7734,
289,
7734,
469,
309,
261,
5645,
1276,
11114,
3332,
1253,
13,
288,
10792,
2687,
18,
1289,
1162,
990,
12443,
6667,
3332,
1253,
13,
1853,
1769,
7734,
289,
7734,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
11114,
1253,
4879,
17213,
12,
780,
1847,
16,
5411,
3063,
6210,
3893,
2687,
13,
2398,
1216,
6483,
565,
288,
3639,
11114,
1253,
563,
273,
446,
31,
3639,
11114,
1253,
1853,
273,
446,
31,
3639,
1250,
21194,
273,
638,
31,
3639,
1160,
1853,
3216,
31,
3639,
6483,
1520,
273,
446,
31,
3639,
775,
288,
5411,
14304,
12,
4669,
16,
446,
16,
374,
1769,
5411,
1853,
3216,
273,
261,
7229,
13,
261,
5702,
18,
347,
3839,
1435,
473,
374,
5297,
1769,
5411,
1250,
2731,
31,
5411,
741,
225,
368,
2488,
358,
679,
16,
11598,
486,
692,
5411,
288,
9079,
1853,
273,
1207,
1676,
6667,
5621,
9079,
2731,
273,
261,
5645,
1276,
11114,
1638,
1345,
1253,
13,
5375,
597,
2
] |
alloc = (Allocation)task.getPlanElement(); publishRemove(alloc);
|
if (!(task.beforeCommitment(new Date(currentTimeMillis())))) { if (logger.isWarnEnabled()) { logger.warn("rescind unprovided Task Allocations: will not rescind allocation ... after commitment"+ task.getCommitmentDate()+ " task:"+task); } } else { alloc = (Allocation)task.getPlanElement(); publishRemove(alloc); }
|
private void rescindTaskAllocations(Collection tasks) { Task task; Allocation alloc; Iterator taskIt = tasks.iterator(); while (taskIt.hasNext()) { task = (Task) taskIt.next(); // System.out.println("SDSD rescind: " + task + "\n"); alloc = (Allocation)task.getPlanElement(); publishRemove(alloc); } }
|
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/6f7a6528363a7e44e153e2de579ac547406d79db/InventoryPlugin.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/InventoryPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
400,
71,
728,
2174,
8763,
1012,
12,
2532,
4592,
13,
288,
565,
3837,
1562,
31,
565,
24242,
4767,
31,
565,
4498,
1562,
7193,
273,
4592,
18,
9838,
5621,
565,
1323,
261,
4146,
7193,
18,
5332,
2134,
10756,
288,
1377,
1562,
273,
261,
2174,
13,
1562,
7193,
18,
4285,
5621,
1377,
368,
202,
225,
2332,
18,
659,
18,
8222,
2932,
55,
3948,
40,
400,
71,
728,
30,
315,
397,
1562,
397,
1548,
82,
8863,
1377,
4767,
273,
261,
17353,
13,
4146,
18,
588,
5365,
1046,
5621,
1377,
3808,
3288,
12,
9853,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
400,
71,
728,
2174,
8763,
1012,
12,
2532,
4592,
13,
288,
565,
3837,
1562,
31,
565,
24242,
4767,
31,
565,
4498,
1562,
7193,
273,
4592,
18,
9838,
5621,
565,
1323,
261,
4146,
7193,
18,
5332,
2134,
10756,
288,
1377,
1562,
273,
261,
2174,
13,
1562,
7193,
18,
4285,
5621,
1377,
368,
202,
225,
2332,
18,
659,
18,
8222,
2932,
55,
3948,
40,
400,
71,
728,
30,
315,
397,
1562,
397,
1548,
82,
8863,
1377,
4767,
273,
261,
17353,
13,
4146,
18,
588,
5365,
1046,
5621,
1377,
3808,
3288,
12,
9853,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fFilesToIndex= changed.size() + removed.size();
|
fTotalTasks= changed.size() + removed.size();
|
public PDOMFastHandleDelta(PDOMFastIndexer indexer, ICElementDelta delta) throws CoreException { super(indexer); processDelta(delta, changed, changed, removed); fFilesToIndex= changed.size() + removed.size(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2d8f966f3b06d96391a0bfd91b2bae084e95bcda/PDOMFastHandleDelta.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/fast/PDOMFastHandleDelta.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
453,
8168,
12305,
3259,
9242,
12,
52,
8168,
12305,
20877,
12635,
16,
26899,
1046,
9242,
3622,
13,
1216,
30015,
288,
202,
202,
9565,
12,
24541,
1769,
202,
202,
2567,
9242,
12,
9878,
16,
3550,
16,
3550,
16,
3723,
1769,
202,
202,
74,
2697,
19418,
33,
3550,
18,
1467,
1435,
397,
3723,
18,
1467,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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046,
9242,
3622,
13,
1216,
30015,
288,
202,
202,
9565,
12,
24541,
1769,
202,
202,
2567,
9242,
12,
9878,
16,
3550,
16,
3550,
16,
3723,
1769,
202,
202,
74,
2697,
19418,
33,
3550,
18,
1467,
1435,
397,
3723,
18,
1467,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
protected void recoverJobs() throws JobPersistenceException { Connection conn = null; boolean transOwner = false; try { conn = getNonManagedTXConnection(); getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS); transOwner = true; //getLockHandler().obtainLock(conn, LOCK_JOB_ACCESS); recoverJobs(conn); conn.commit(); } catch (JobPersistenceException e) { rollbackConnection(conn); throw e; } catch (Exception e) { rollbackConnection(conn); throw new JobPersistenceException("Error recovering jobs: " + e.getMessage(), e); } finally { if (conn != null) { releaseLock(conn, LOCK_TRIGGER_ACCESS, transOwner); closeConnection(conn); } } }
|
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/a1e34efab77120ec8bb75b6dd44ed5d8a9b59918/JobStoreCMT.java/buggy/src/java/org/quartz/impl/jdbcjobstore/JobStoreCMT.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5910,
7276,
1435,
1216,
3956,
13182,
503,
288,
3639,
4050,
1487,
273,
446,
31,
3639,
1250,
906,
5541,
273,
629,
31,
3639,
775,
288,
5411,
1487,
273,
28207,
10055,
16556,
1952,
5621,
5411,
22206,
1503,
7675,
947,
5977,
2531,
12,
4646,
16,
14631,
67,
6566,
27399,
67,
13204,
1769,
5411,
906,
5541,
273,
638,
31,
5411,
368,
588,
2531,
1503,
7675,
947,
5977,
2531,
12,
4646,
16,
14631,
67,
18321,
67,
13204,
1769,
5411,
5910,
7276,
12,
4646,
1769,
5411,
1487,
18,
7371,
5621,
3639,
289,
1044,
261,
2278,
13182,
503,
425,
13,
288,
5411,
8006,
1952,
12,
4646,
1769,
5411,
604,
425,
31,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
8006,
1952,
12,
4646,
1769,
5411,
604,
394,
3956,
13182,
503,
2932,
668,
5910,
310,
6550,
30,
315,
10792,
397,
425,
18,
24906,
9334,
425,
1769,
3639,
289,
3095,
288,
5411,
309,
261,
4646,
480,
446,
13,
288,
7734,
3992,
2531,
12,
4646,
16,
14631,
67,
6566,
27399,
67,
13204,
16,
906,
5541,
1769,
7734,
1746,
1952,
12,
4646,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5910,
7276,
1435,
1216,
3956,
13182,
503,
288,
3639,
4050,
1487,
273,
446,
31,
3639,
1250,
906,
5541,
273,
629,
31,
3639,
775,
288,
5411,
1487,
273,
28207,
10055,
16556,
1952,
5621,
5411,
22206,
1503,
7675,
947,
5977,
2531,
12,
4646,
16,
14631,
67,
6566,
27399,
67,
13204,
1769,
5411,
906,
5541,
273,
638,
31,
5411,
368,
588,
2531,
1503,
7675,
947,
5977,
2531,
12,
4646,
16,
14631,
67,
18321,
67,
13204,
1769,
5411,
5910,
7276,
12,
4646,
1769,
5411,
1487,
18,
7371,
5621,
3639,
289,
1044,
261,
2278,
13182,
503,
425,
13,
288,
5411,
8006,
1952,
12,
4646,
1769,
5411,
604,
425,
31,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
8006,
1952,
12,
2
] |
Dbxref dbxref = tsn.getFeatureDbxref();
|
public int deleteFeatureAlias(final String schema, final ChadoTransaction tsn) throws SQLException { final Alias alias = tsn.getAlias(); alias.setSchema(schema); Dbxref dbxref = tsn.getFeatureDbxref(); SqlMapClient sqlMap = DbSqlConfig.getSqlMapInstance(); Integer synonym_id = (Integer)sqlMap.queryForObject("getSynonymId", dbxref); return 0; }
|
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/4952c5c9afc9ea04749712cf2c41382433cee365/IBatisDAO.java/clean/uk/ac/sanger/artemis/chado/IBatisDAO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1430,
4595,
2936,
12,
6385,
514,
1963,
16,
727,
1680,
6821,
3342,
3742,
82,
13,
5397,
1216,
6483,
225,
288,
565,
727,
11873,
2308,
273,
3742,
82,
18,
588,
2936,
5621,
565,
2308,
18,
542,
3078,
12,
4821,
1769,
6647,
8855,
863,
1227,
1847,
863,
273,
8408,
5101,
809,
18,
588,
5101,
863,
1442,
5621,
565,
2144,
26308,
67,
350,
273,
261,
4522,
13,
4669,
863,
18,
2271,
1290,
921,
2932,
588,
10503,
6435,
548,
3113,
1319,
22044,
1769,
3639,
327,
374,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1430,
4595,
2936,
12,
6385,
514,
1963,
16,
727,
1680,
6821,
3342,
3742,
82,
13,
5397,
1216,
6483,
225,
288,
565,
727,
11873,
2308,
273,
3742,
82,
18,
588,
2936,
5621,
565,
2308,
18,
542,
3078,
12,
4821,
1769,
6647,
8855,
863,
1227,
1847,
863,
273,
8408,
5101,
809,
18,
588,
5101,
863,
1442,
5621,
565,
2144,
26308,
67,
350,
273,
261,
4522,
13,
4669,
863,
18,
2271,
1290,
921,
2932,
588,
10503,
6435,
548,
3113,
1319,
22044,
1769,
3639,
327,
374,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return summary;
|
StringBuffer sum = new StringBuffer(); Fragment[] fragments = summary.getFragments(); for (int j=0; j<fragments.length; j++) { if (fragments[j].isHighlight()) { sum.append("<span class=\"highlight\">") .append(Entities.encode(fragments[j].getText())) .append("</span>"); } else if (fragments[j].isEllipsis()) { sum.append("<span class=\"ellipsis\"> ... </span>"); } else { sum.append(Entities.encode(fragments[j].getText())); } } return sum.toString();
|
public String getSummary() { return summary; }
|
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/b7a3ad29b18ba39c24bc510d9eb4132607b657dc/SearchResultBean.java/buggy/contrib/web2/src/main/java/org/apache/nutch/webapp/common/SearchResultBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1322,
27804,
1435,
288,
377,
6674,
2142,
273,
394,
6674,
5621,
18009,
8526,
14656,
273,
4916,
18,
588,
27588,
5621,
364,
261,
474,
525,
33,
20,
31,
525,
32,
29528,
18,
2469,
31,
525,
27245,
288,
309,
261,
29528,
63,
78,
8009,
291,
16205,
10756,
288,
2142,
18,
6923,
2932,
32,
3969,
667,
5189,
15978,
21121,
13,
263,
6923,
12,
8108,
18,
3015,
12,
29528,
63,
78,
8009,
588,
1528,
1435,
3719,
263,
6923,
2932,
1757,
3969,
2984,
1769,
289,
469,
309,
261,
29528,
63,
78,
8009,
291,
4958,
17829,
10756,
288,
2142,
18,
6923,
2932,
32,
3969,
667,
5189,
292,
17829,
24735,
1372,
7765,
3969,
2984,
1769,
289,
469,
288,
2142,
18,
6923,
12,
8108,
18,
3015,
12,
29528,
63,
78,
8009,
588,
1528,
1435,
10019,
289,
289,
327,
2142,
18,
10492,
5621,
225,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1322,
27804,
1435,
288,
377,
6674,
2142,
273,
394,
6674,
5621,
18009,
8526,
14656,
273,
4916,
18,
588,
27588,
5621,
364,
261,
474,
525,
33,
20,
31,
525,
32,
29528,
18,
2469,
31,
525,
27245,
288,
309,
261,
29528,
63,
78,
8009,
291,
16205,
10756,
288,
2142,
18,
6923,
2932,
32,
3969,
667,
5189,
15978,
21121,
13,
263,
6923,
12,
8108,
18,
3015,
12,
29528,
63,
78,
8009,
588,
1528,
1435,
3719,
263,
6923,
2932,
1757,
3969,
2984,
1769,
289,
469,
309,
261,
29528,
63,
78,
8009,
291,
4958,
17829,
10756,
288,
2142,
18,
6923,
2932,
32,
3969,
667,
5189,
292,
17829,
24735,
1372,
7765,
3969,
2984,
1769,
289,
469,
288,
2142,
18,
6923,
12,
8108,
2
] |
if (paramExtPositions == null) paramExtPositions = new ArrayList(); paramExtPositions.add(new Integer(i));
|
stmt.addExtPosition(i);
|
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator drdaType = ((drdaType | 0x01) & 0x000000ff); if (ps instanceof CallableStatement) { if (stmt.isOutputParam(i+1)) { CallableStatement cs = (CallableStatement) ps; cs.registerOutParameter(i+1, stmt.getOutputParamType(i+1)); } } switch (drdaType) { case DRDAConstants.DRDA_TYPE_NSMALL: { short paramVal = (short) reader.readShort(getByteOrder()); if (SanityManager.DEBUG) trace("short parameter value is: "+paramVal); // DB2 does not have a BOOLEAN java.sql.bit type, it's sent as small if (pmeta.getParameterType(i+1) == JDBC30Translation.BOOLEAN) ps.setBoolean(i+1, (paramVal == 1)); else ps.setShort(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NINTEGER: { int paramVal = reader.readInt(getByteOrder()); if (SanityManager.DEBUG) trace("integer parameter value is: "+paramVal); ps.setInt(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NINTEGER8: { long paramVal = reader.readLong(getByteOrder()); if (SanityManager.DEBUG) trace("parameter value is: "+paramVal); ps.setLong(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NFLOAT4: { float paramVal = reader.readFloat(getByteOrder()); if (SanityManager.DEBUG) trace("parameter value is: "+paramVal); ps.setFloat(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NFLOAT8: { double paramVal = reader.readDouble(getByteOrder()); if (SanityManager.DEBUG) trace("nfloat8 parameter value is: "+paramVal); ps.setDouble(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NDECIMAL: { int precision = (paramLenNumBytes >> 8) & 0xff; int scale = paramLenNumBytes & 0xff; BigDecimal paramVal = reader.readBigDecimal(precision, scale); if (SanityManager.DEBUG) trace("ndecimal parameter value is: "+paramVal); ps.setBigDecimal(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NDATE: { String paramVal = reader.readStringData(10).trim(); //parameter may be char value if (SanityManager.DEBUG) trace("ndate parameter value is: \""+paramVal+"\""); try { ps.setDate(i+1, java.sql.Date.valueOf(paramVal)); } catch (java.lang.IllegalArgumentException e) { // Just use SQLSTATE as message since, if user wants to // retrieve it, the message will be looked up by the // sqlcamessage() proc, which will get the localized // message based on SQLSTATE, and will ignore the // the message we use here... throw new SQLException(SQLState.LANG_DATE_SYNTAX_EXCEPTION, SQLState.LANG_DATE_SYNTAX_EXCEPTION.substring(0,5)); } break; } case DRDAConstants.DRDA_TYPE_NTIME: { String paramVal = reader.readStringData(8).trim(); //parameter may be char value if (SanityManager.DEBUG) trace("ntime parameter value is: "+paramVal); try { ps.setTime(i+1, java.sql.Time.valueOf(paramVal)); } catch (java.lang.IllegalArgumentException e) { throw new SQLException(SQLState.LANG_DATE_SYNTAX_EXCEPTION, SQLState.LANG_DATE_SYNTAX_EXCEPTION.substring(0,5)); } break; } case DRDAConstants.DRDA_TYPE_NTIMESTAMP: { // JCC represents ts in a slightly different format than Java standard, so // we do the conversion to Java standard here. String paramVal = reader.readStringData(26).trim(); //parameter may be char value if (SanityManager.DEBUG) trace("ntimestamp parameter value is: "+paramVal); try { String tsString = paramVal.substring(0,10) + " " + paramVal.substring(11,19).replace('.', ':') + paramVal.substring(19); if (SanityManager.DEBUG) trace("tsString is: "+tsString); ps.setTimestamp(i+1, java.sql.Timestamp.valueOf(tsString)); } catch (java.lang.IllegalArgumentException e1) { // thrown by Timestamp.valueOf(...) for bad syntax... throw new SQLException(SQLState.LANG_DATE_SYNTAX_EXCEPTION, SQLState.LANG_DATE_SYNTAX_EXCEPTION.substring(0,5)); } catch (java.lang.StringIndexOutOfBoundsException e2) { // can be thrown by substring(...) if syntax is invalid... throw new SQLException(SQLState.LANG_DATE_SYNTAX_EXCEPTION, SQLState.LANG_DATE_SYNTAX_EXCEPTION.substring(0,5)); } break; } case DRDAConstants.DRDA_TYPE_NCHAR: case DRDAConstants.DRDA_TYPE_NVARCHAR: case DRDAConstants.DRDA_TYPE_NLONG: case DRDAConstants.DRDA_TYPE_NVARMIX: case DRDAConstants.DRDA_TYPE_NLONGMIX: { String paramVal = reader.readLDStringData(stmt.ccsidMBCEncoding); if (SanityManager.DEBUG) trace("char/varchar parameter value is: "+paramVal); ps.setString(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NFIXBYTE: { byte[] paramVal = reader.readBytes(); if (SanityManager.DEBUG) trace("fix bytes parameter value is: "+ convertToHexString(paramVal)); ps.setBytes(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NVARBYTE: case DRDAConstants.DRDA_TYPE_NLONGVARBYTE: { int length = reader.readNetworkShort(); //protocol control data always follows big endian if (SanityManager.DEBUG) trace("===== binary param length is: " + length); byte[] paramVal = reader.readBytes(length); ps.setBytes(i+1, paramVal); break; } case DRDAConstants.DRDA_TYPE_NLOBBYTES: case DRDAConstants.DRDA_TYPE_NLOBCMIXED: case DRDAConstants.DRDA_TYPE_NLOBCSBCS: case DRDAConstants.DRDA_TYPE_NLOBCDBCS: { long length = readLobLength(paramLenNumBytes); if (length != 0) //can be -1 for CLI if "data at exec" mode, see clifp/exec test { if (paramExtPositions == null) paramExtPositions = new ArrayList(); paramExtPositions.add(new Integer(i)); } else /* empty */ { if (drdaType == DRDAConstants.DRDA_TYPE_NLOBBYTES) ps.setBytes(i+1, new byte[0]); else ps.setString(i+1, ""); } break; } default: { String paramVal = reader.readLDStringData(stmt.ccsidMBCEncoding); if (SanityManager.DEBUG) trace("default type parameter value is: "+paramVal); ps.setObject(i+1, paramVal); } } return paramExtPositions; }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/c050ed4389184bd98d905532a3c1ad5a2c6c6862/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2407,
855,
13152,
1370,
12,
474,
277,
16,
16801,
9793,
3406,
3480,
16,
509,
6862,
25083,
282,
5081,
2414,
559,
16,
10507,
1662,
6998,
293,
3901,
16,
6862,
25083,
282,
2407,
579,
2482,
11024,
16,
6862,
25083,
282,
509,
579,
2891,
2578,
2160,
13,
9506,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
29325,
4250,
273,
3480,
18,
588,
29325,
5621,
202,
202,
759,
3066,
596,
446,
10664,
202,
202,
3069,
2414,
559,
273,
14015,
3069,
2414,
559,
571,
374,
92,
1611,
13,
473,
374,
92,
9449,
1403,
1769,
202,
202,
430,
261,
1121,
1276,
10464,
3406,
13,
202,
202,
95,
1082,
202,
430,
261,
10589,
18,
291,
1447,
786,
12,
77,
15,
21,
3719,
1082,
202,
95,
9506,
202,
11452,
3406,
2873,
273,
261,
11452,
3406,
13,
4250,
31,
9506,
202,
2143,
18,
4861,
1182,
1662,
12,
77,
15,
21,
16,
3480,
18,
588,
1447,
786,
559,
12,
77,
15,
21,
10019,
1082,
202,
97,
202,
202,
97,
202,
202,
9610,
261,
3069,
2414,
559,
13,
202,
202,
95,
1082,
202,
3593,
16801,
9793,
2918,
18,
6331,
9793,
67,
2399,
67,
3156,
49,
4685,
30,
1082,
202,
95,
9506,
202,
6620,
579,
3053,
273,
261,
6620,
13,
2949,
18,
896,
4897,
12,
588,
3216,
2448,
10663,
9506,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
6862,
202,
5129,
2932,
6620,
1569,
460,
353,
30,
13773,
891,
3053,
1769,
4697,
202,
759,
2383,
22,
1552,
486,
1240,
279,
18993,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2407,
855,
13152,
1370,
12,
474,
277,
16,
16801,
9793,
3406,
3480,
16,
509,
6862,
25083,
282,
5081,
2414,
559,
16,
10507,
1662,
6998,
293,
3901,
16,
6862,
25083,
282,
2407,
579,
2482,
11024,
16,
6862,
25083,
282,
509,
579,
2891,
2578,
2160,
13,
9506,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
29325,
4250,
273,
3480,
18,
588,
29325,
5621,
202,
202,
759,
3066,
596,
446,
10664,
202,
202,
3069,
2414,
559,
273,
14015,
3069,
2414,
559,
571,
374,
92,
1611,
13,
473,
374,
92,
9449,
1403,
1769,
202,
202,
430,
261,
1121,
1276,
10464,
3406,
13,
202,
202,
95,
1082,
202,
430,
261,
10589,
18,
291,
1447,
786,
12,
77,
2
] |
addTrim(control, location, position, SWT.DEFAULT, SWT.DEFAULT);
|
removeTrim(control); int index = convertSwtConstantToIndex(location); List list = controls[index]; insertBefore(list, control, position); mapPartOntoPosition.put(control, new Integer(index));
|
public void addTrim(Control control, int location, Control position) { addTrim(control, location, position, SWT.DEFAULT, SWT.DEFAULT); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0731fa1db55907d17ca28e7373a41200fb6354b8/TrimLayout.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/TrimLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
14795,
12,
3367,
3325,
16,
509,
2117,
16,
8888,
1754,
13,
288,
202,
202,
1289,
14795,
12,
7098,
16,
2117,
16,
1754,
16,
348,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
1769,
202,
97,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
14795,
12,
3367,
3325,
16,
509,
2117,
16,
8888,
1754,
13,
288,
202,
202,
1289,
14795,
12,
7098,
16,
2117,
16,
1754,
16,
348,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
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
] |
public void testBlockIndent() { try { BraceReduction rm = doc._reduced; doc.insertString(0, "hello\n{\n{\n {", null); doc.indentBlock(8, 13); assertEquals("0.1", "hello\n{\n {\n {", doc.getText(0, doc.getLength())); } catch( javax.swing.text.BadLocationException e) { System.out.println(e.toString()); } }
|
public void testBlockIndent() throws BadLocationException { BraceReduction rm = doc._reduced; doc.insertString(0, "hello\n{\n{\n {", null); doc.indentBlock(8, 13); assertEquals("0.1", "hello\n{\n {\n {", doc.getText(0, doc.getLength())); }
|
public void testBlockIndent() { try { // just paren BraceReduction rm = doc._reduced; doc.insertString(0, "hello\n{\n{\n {", null); doc.indentBlock(8, 13); assertEquals("0.1", "hello\n{\n {\n {", doc.getText(0, doc.getLength())); } catch( javax.swing.text.BadLocationException e) { System.out.println(e.toString()); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/62cd56918db49abf5170cd3da7ff92f86724ef97/IndentTest.java/clean/drjava/src/edu/rice/cs/drjava/IndentTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1768,
7790,
1435,
202,
202,
95,
1082,
202,
698,
288,
9506,
202,
759,
2537,
22146,
9506,
202,
21965,
3715,
4062,
6692,
273,
997,
6315,
1118,
26372,
31,
9506,
202,
2434,
18,
6387,
780,
12,
20,
16,
315,
23711,
64,
82,
23241,
82,
23241,
82,
225,
288,
3113,
446,
1769,
9506,
202,
2434,
18,
9355,
1768,
12,
28,
16,
5958,
1769,
9506,
202,
11231,
8867,
2932,
20,
18,
21,
3113,
315,
23711,
64,
82,
23241,
82,
225,
18890,
82,
565,
288,
3113,
997,
18,
588,
1528,
12,
20,
16,
997,
18,
588,
1782,
1435,
10019,
1082,
202,
97,
1082,
202,
14683,
12,
6863,
18,
5328,
310,
18,
955,
18,
6434,
2735,
503,
425,
13,
9506,
202,
95,
4405,
225,
202,
3163,
18,
659,
18,
8222,
12,
73,
18,
10492,
10663,
9506,
202,
97,
21114,
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,
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,
9506,
202,
21965,
3715,
4062,
6692,
273,
997,
6315,
1118,
26372,
31,
9506,
202,
2434,
18,
6387,
780,
12,
20,
16,
315,
23711,
64,
82,
23241,
82,
23241,
82,
225,
288,
3113,
446,
1769,
9506,
202,
2434,
18,
9355,
1768,
12,
28,
16,
5958,
1769,
9506,
202,
11231,
8867,
2932,
20,
18,
21,
3113,
315,
23711,
64,
82,
23241,
82,
225,
18890,
82,
565,
288,
3113,
997,
18,
588,
1528,
12,
20,
16,
997,
18,
588,
1782,
1435,
10019,
1082,
202,
97,
1082,
202,
14683,
12,
6863,
18,
5328,
310,
18,
955,
18,
6434,
2735,
503,
425,
13,
9506,
2
] |
newObject = (SimpleScriptable) Context.getCurrentContext().newObject( pageInfo.getScope(), className); initJavaScriptObject( newObject ); return newObject;
|
final SimpleScriptable scriptable = (SimpleScriptable) c.newObject(this, className); return scriptable;
|
public SimpleScriptable makeJavaScriptObject( final String className ) { final JavaScriptEngine.PageInfo pageInfo = getPageInfo(); final SimpleScriptable newObject; try { newObject = (SimpleScriptable) Context.getCurrentContext().newObject( pageInfo.getScope(), className); initJavaScriptObject( newObject ); return newObject; } catch( final Exception e ) { throw new ScriptException(e); } }
|
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/9ada24d275eb4c948830a5fbefb54293d8fa03f5/SimpleScriptable.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
3651,
429,
1221,
16634,
921,
12,
727,
514,
2658,
262,
288,
3639,
727,
11905,
4410,
18,
1964,
966,
1363,
966,
273,
8957,
966,
5621,
3639,
727,
4477,
3651,
429,
24518,
31,
3639,
775,
288,
5411,
24518,
273,
261,
5784,
3651,
429,
13,
1772,
18,
588,
3935,
1042,
7675,
2704,
921,
12,
7734,
1363,
966,
18,
588,
3876,
9334,
2658,
1769,
5411,
1208,
16634,
921,
12,
24518,
11272,
5411,
327,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
3651,
429,
1221,
16634,
921,
12,
727,
514,
2658,
262,
288,
3639,
727,
11905,
4410,
18,
1964,
966,
1363,
966,
273,
8957,
966,
5621,
3639,
727,
4477,
3651,
429,
24518,
31,
3639,
775,
288,
5411,
24518,
273,
261,
5784,
3651,
429,
13,
1772,
18,
588,
3935,
1042,
7675,
2704,
921,
12,
7734,
1363,
966,
18,
588,
3876,
9334,
2658,
1769,
5411,
1208,
16634,
921,
12,
24518,
11272,
5411,
327,
24518,
31,
3639,
289,
3639,
1044,
12,
727,
1185,
425,
262,
288,
5411,
604,
394,
7739,
503,
12,
73,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
categoryBuilder.addOutageService(monitoredService.getNodeId(), ipInterface.getId(), ipInterface.getIpAddress(), ipInterface.getNode().getLabel(), monitoredService.getServiceType().getName());
|
categoryBuilder.addOutageService( monitoredService.getNodeId(), ipInterface.getId(), ipInterface.getIpAddress(), ipInterface.getNode().getLabel(), serviceType.getName());
|
private StatusCategory createCategory(String category) { Collection <OnmsOutage>outages; CategoryBuilder categoryBuilder = new CategoryBuilder(); StatusCategory statusCategory = new StatusCategory(); Category categoryDetail = m_categorydao.getCategoryByLabel(category); //statusCategory.setComment(categoryDetail.getCategoryComment()); statusCategory.setLabel(category); ServiceSelector selector = new ServiceSelector(categoryDetail.getRule(),categoryDetail.getServiceCollection()); outages = m_outagedao.matchingCurrentOutages(selector); for (OnmsOutage outage : outages) { OnmsMonitoredService monitoredService = outage.getMonitoredService(); OnmsServiceType serviceType = monitoredService.getServiceType(); OnmsIpInterface ipInterface = monitoredService.getIpInterface(); categoryBuilder.addOutageService(monitoredService.getNodeId(), ipInterface.getId(), ipInterface.getIpAddress(), ipInterface.getNode().getLabel(), monitoredService.getServiceType().getName()); } for (StatusNode node : categoryBuilder.getNodes()) { statusCategory.addNode(node); } return statusCategory; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/49de4bd3739d9f15161ba889e7e5e7a110829dbc/DefaultCategoryStatusService.java/buggy/opennms-webapp/src/main/java/org/opennms/web/svclayer/catstatus/support/DefaultCategoryStatusService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2685,
4457,
752,
4457,
12,
780,
3150,
13,
288,
202,
202,
2532,
411,
1398,
959,
1182,
410,
34,
659,
1023,
31,
4697,
202,
4457,
1263,
3150,
1263,
273,
394,
9856,
1263,
5621,
9506,
202,
1482,
4457,
1267,
4457,
273,
394,
2685,
4457,
5621,
202,
202,
4457,
3150,
6109,
273,
225,
312,
67,
4743,
2414,
83,
18,
588,
4457,
858,
2224,
12,
4743,
1769,
9506,
202,
759,
2327,
4457,
18,
542,
4469,
12,
4743,
6109,
18,
588,
4457,
4469,
10663,
1082,
202,
2327,
4457,
18,
542,
2224,
12,
4743,
1769,
9506,
202,
1179,
4320,
3451,
273,
394,
1956,
4320,
12,
4743,
6109,
18,
588,
2175,
9334,
4743,
6109,
18,
588,
1179,
2532,
10663,
202,
202,
659,
1023,
273,
312,
67,
659,
11349,
6033,
18,
16271,
3935,
1182,
1023,
12,
9663,
1769,
9506,
202,
1884,
261,
1398,
959,
1182,
410,
596,
410,
294,
596,
1023,
13,
288,
1082,
202,
1398,
959,
11415,
20425,
1179,
28651,
1179,
273,
596,
410,
18,
588,
11415,
20425,
1179,
5621,
1082,
202,
1398,
959,
1179,
559,
29548,
273,
28651,
1179,
18,
588,
1179,
559,
5621,
1082,
202,
1398,
959,
5273,
1358,
2359,
1358,
273,
28651,
1179,
18,
588,
5273,
1358,
5621,
1082,
202,
4743,
1263,
18,
1289,
1182,
410,
1179,
12,
2586,
20425,
1179,
18,
588,
15883,
9334,
2359,
1358,
18,
26321,
9334,
2359,
1358,
18,
588,
16875,
9334,
2359,
1358,
18,
588,
907,
7675,
588,
2224,
9334,
28651,
1179,
18,
588,
1179,
559,
7675,
17994,
10663,
6862,
1082,
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,
1152,
2685,
4457,
752,
4457,
12,
780,
3150,
13,
288,
202,
202,
2532,
411,
1398,
959,
1182,
410,
34,
659,
1023,
31,
4697,
202,
4457,
1263,
3150,
1263,
273,
394,
9856,
1263,
5621,
9506,
202,
1482,
4457,
1267,
4457,
273,
394,
2685,
4457,
5621,
202,
202,
4457,
3150,
6109,
273,
225,
312,
67,
4743,
2414,
83,
18,
588,
4457,
858,
2224,
12,
4743,
1769,
9506,
202,
759,
2327,
4457,
18,
542,
4469,
12,
4743,
6109,
18,
588,
4457,
4469,
10663,
1082,
202,
2327,
4457,
18,
542,
2224,
12,
4743,
1769,
9506,
202,
1179,
4320,
3451,
273,
394,
1956,
4320,
12,
4743,
6109,
18,
588,
2175,
9334,
4743,
6109,
18,
588,
1179,
2532,
10663,
202,
202,
659,
1023,
2
] |
cfw.startMethod(methodName, methodDesc, (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL));
|
void generateBodyCode(Context cx) { initBodyGeneration(cx); String methodName, methodDesc; if (inDirectCallFunction) { methodName = "callDirect"; methodDesc = fnCurrent.getDirectCallMethodSignature(); } else { methodName = "call"; methodDesc = "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"; } cfw.startMethod(methodName, methodDesc, (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); generatePrologue(cx); Node codegenBase; if (fnCurrent != null) { codegenBase = scriptOrFn.getLastChild(); } else { codegenBase = scriptOrFn; } generateCodeFromNode(codegenBase, null); generateEpilogue(); cfw.stopMethod((short)(localsMax + 1), debugVars); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2103,
2250,
1085,
12,
1042,
9494,
13,
565,
288,
3639,
1208,
2250,
13842,
12,
71,
92,
1769,
3639,
514,
4918,
16,
707,
4217,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
4918,
273,
315,
1991,
5368,
14432,
5411,
707,
4217,
273,
2295,
3935,
18,
588,
5368,
1477,
1305,
5374,
5621,
3639,
289,
469,
288,
5411,
4918,
273,
315,
1991,
14432,
5411,
707,
4217,
273,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
7682,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7682,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7682,
397,
6,
63,
21159,
19,
4936,
19,
921,
30943,
21159,
19,
4936,
19,
921,
4868,
31,
3639,
289,
3639,
6080,
91,
18,
1937,
1305,
12,
2039,
461,
16,
707,
4217,
16,
13491,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
14939,
27573,
571,
30614,
2289,
18,
31414,
67,
7263,
1013,
10019,
3639,
2103,
626,
1330,
344,
12,
71,
92,
1769,
3639,
2029,
23198,
2171,
31,
3639,
309,
261,
4293,
3935,
480,
446,
13,
288,
5411,
23198,
2171,
273,
2728,
1162,
5372,
18,
588,
3024,
1763,
5621,
3639,
289,
469,
288,
5411,
23198,
2171,
273,
2728,
1162,
5372,
31,
3639,
289,
3639,
2103,
1085,
28570,
12,
710,
4507,
2171,
16,
446,
1769,
3639,
2103,
18918,
21947,
344,
5621,
3639,
6080,
91,
18,
5681,
1305,
12443,
6620,
21433,
17977,
2747,
397,
404,
3631,
1198,
5555,
1769,
565,
289,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2103,
2250,
1085,
12,
1042,
9494,
13,
565,
288,
3639,
1208,
2250,
13842,
12,
71,
92,
1769,
3639,
514,
4918,
16,
707,
4217,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
4918,
273,
315,
1991,
5368,
14432,
5411,
707,
4217,
273,
2295,
3935,
18,
588,
5368,
1477,
1305,
5374,
5621,
3639,
289,
469,
288,
5411,
4918,
273,
315,
1991,
14432,
5411,
707,
4217,
273,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
7682,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7682,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
7682,
397,
6,
63,
21159,
19,
4936,
19,
921,
30943,
21159,
2
] |
|
assertNull(envProvider.getVariable(NAME_CWD, worksp, true, false)); assertNull(envProvider.getVariable(NAME_CWD, mproj, true, false));
|
public void testEnvCWDPWD(){ doInit(); IConfiguration cfg = mproj.getConfigurations()[0]; // CWD/PWD vars should NOT be overwritten anywhere assertNull(envProvider.getVariable(NAME_CWD, worksp, true, false)); assertNull(envProvider.getVariable(NAME_CWD, mproj, true, false)); IBuildEnvironmentVariable a = envProvider.getVariable(NAME_CWD, cfg, true, false); assertNotNull(a); if (VAL_CWDPWD.equals(a.getValue())) fail("CWD should not be rewritten !"); //$NON-NLS-1$ assertNull(envProvider.getVariable(NAME_PWD, worksp, true, false)); assertNull(envProvider.getVariable(NAME_PWD, mproj, true, false)); a = envProvider.getVariable(NAME_PWD, cfg, true, false); assertNotNull(a); if (VAL_CWDPWD.equals(a.getValue())) fail("PWD should not be rewritten !"); //$NON-NLS-1$ // try to delete: should fail UserDefinedEnvironmentSupplier usup = getSupplier(cfg, cfg.getName()); assertNull(usup.deleteVariable(NAME_CWD, cfg)); assertNull(usup.deleteVariable(NAME_PWD, cfg)); assertNotNull(envProvider.getVariable(NAME_CWD, cfg, true, false)); assertNotNull(envProvider.getVariable(NAME_PWD, cfg, true, false)); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f6656c68c4680b5da0f8224556983d4273800ae8/ManagedBuildEnvironmentTests.java/clean/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/ManagedBuildEnvironmentTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3491,
12844,
8640,
16006,
1435,
95,
202,
202,
2896,
2570,
5621,
202,
202,
45,
1750,
2776,
273,
312,
17995,
18,
588,
9698,
1435,
63,
20,
15533,
202,
202,
759,
385,
16006,
19,
31243,
4153,
1410,
4269,
506,
15345,
25651,
202,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
1440,
1752,
16,
638,
16,
629,
10019,
3196,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
312,
17995,
16,
638,
16,
629,
10019,
202,
202,
45,
3116,
5494,
3092,
279,
273,
1550,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
2776,
16,
638,
16,
629,
1769,
202,
202,
11231,
5962,
12,
69,
1769,
202,
202,
430,
261,
2669,
67,
12844,
8640,
16006,
18,
14963,
12,
69,
18,
24805,
1435,
3719,
2321,
2932,
12844,
40,
1410,
486,
506,
26768,
401,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
31243,
16,
1440,
1752,
16,
638,
16,
629,
10019,
3196,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
31243,
16,
312,
17995,
16,
638,
16,
629,
10019,
202,
202,
69,
273,
1550,
2249,
18,
588,
3092,
12,
1985,
67,
31243,
16,
2776,
16,
638,
16,
629,
1769,
202,
202,
11231,
5962,
12,
69,
1769,
202,
202,
430,
261,
2669,
67,
12844,
8640,
16006,
18,
14963,
12,
69,
18,
24805,
1435,
3719,
2321,
2932,
31243,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3491,
12844,
8640,
16006,
1435,
95,
202,
202,
2896,
2570,
5621,
202,
202,
45,
1750,
2776,
273,
312,
17995,
18,
588,
9698,
1435,
63,
20,
15533,
202,
202,
759,
385,
16006,
19,
31243,
4153,
1410,
4269,
506,
15345,
25651,
202,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
1440,
1752,
16,
638,
16,
629,
10019,
3196,
202,
11231,
2041,
12,
3074,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
312,
17995,
16,
638,
16,
629,
10019,
202,
202,
45,
3116,
5494,
3092,
279,
273,
1550,
2249,
18,
588,
3092,
12,
1985,
67,
12844,
40,
16,
2776,
16,
638,
16,
629,
1769,
202,
202,
11231,
5962,
2
] |
|
public org.quickfix.field.StipulationType get(org.quickfix.field.StipulationType value)
|
public quickfix.field.StipulationType get(quickfix.field.StipulationType value)
|
public org.quickfix.field.StipulationType get(org.quickfix.field.StipulationType value) throws FieldNotFound { getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/buggy/src/java/src/quickfix/fix43/QuoteRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
510,
625,
6234,
559,
336,
12,
19525,
904,
18,
1518,
18,
510,
625,
6234,
559,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
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,
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,
282,
1071,
9549,
904,
18,
1518,
18,
510,
625,
6234,
559,
336,
12,
19525,
904,
18,
1518,
18,
510,
625,
6234,
559,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
a.putValue(Action.DEFAULT, icon);
|
a.putValue(Action.DEFAULT, name);
|
private void _setUpAction(Action a, String icon, String shortDesc) { a.putValue(Action.SMALL_ICON, _getIcon(icon + "16.gif")); a.putValue(Action.DEFAULT, icon); a.putValue(Action.SHORT_DESCRIPTION, shortDesc); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/b4e48852da60211c31b0141438d3f04d6c627263/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
542,
1211,
1803,
12,
1803,
279,
16,
514,
4126,
16,
514,
3025,
4217,
13,
288,
565,
279,
18,
458,
620,
12,
1803,
18,
23882,
67,
21745,
16,
389,
588,
5554,
12,
3950,
397,
315,
2313,
18,
13905,
7923,
1769,
565,
279,
18,
458,
620,
12,
1803,
18,
5280,
16,
508,
1769,
565,
279,
18,
458,
620,
12,
1803,
18,
15993,
67,
15911,
16,
3025,
4217,
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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,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
542,
1211,
1803,
12,
1803,
279,
16,
514,
4126,
16,
514,
3025,
4217,
13,
288,
565,
279,
18,
458,
620,
12,
1803,
18,
23882,
67,
21745,
16,
389,
588,
5554,
12,
3950,
397,
315,
2313,
18,
13905,
7923,
1769,
565,
279,
18,
458,
620,
12,
1803,
18,
5280,
16,
508,
1769,
565,
279,
18,
458,
620,
12,
1803,
18,
15993,
67,
15911,
16,
3025,
4217,
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
] |
public AnnogenTestCase(String name) { super(name); }
|
public AnnogenTestCase() {}
|
public AnnogenTestCase(String name) { super(name); }
|
4519 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4519/b1deed3c7d9c1c9325f9de7cd36b0c47902debfa/AnnogenTestCase.java/buggy/annogen/trunk/annogen/test/cases/src/org/codehaus/annogen/test/cases/AnnogenTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24936,
19409,
4709,
2449,
12,
780,
508,
13,
288,
2240,
12,
529,
1769,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24936,
19409,
4709,
2449,
12,
780,
508,
13,
288,
2240,
12,
529,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.5 2001-07-27 20:57:51 ashuk%eng.sun.com Exp $");
|
Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.6 2001-09-10 22:02:05 edburns%acm.org Exp $");
|
public static void main(String [] args){ System.out.println("doing asserts"); Assert.setEnabled(true); Log.setApplicationName("BrowserControlFactory"); Log.setApplicationVersion("0.0"); Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.5 2001-07-27 20:57:51 ashuk%eng.sun.com Exp $"); BrowserControlCanvas canvas = null; BrowserControl control = null; try { BrowserControlFactory.setAppData("nonnative", args[0]); control = BrowserControlFactory.newBrowserControl(); Assert.assert_it(control != null); canvas = (BrowserControlCanvas) control.queryInterface("webclient.BrowserControlCanvas"); Assert.assert_it(canvas != null); } catch (Exception e) { System.out.println("\n BrowserControl not getting created \n"); System.out.println(e.getMessage()); }}
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/f79c48d1fb1cdaa145f672cd60115868156db7a9/BrowserControlFactory.java/clean/java/webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
2774,
12,
780,
5378,
833,
15329,
565,
2332,
18,
659,
18,
8222,
2932,
2896,
310,
26124,
8863,
565,
5452,
18,
542,
1526,
12,
3767,
1769,
565,
1827,
18,
542,
3208,
461,
2932,
9132,
3367,
1733,
8863,
565,
1827,
18,
542,
3208,
1444,
2932,
20,
18,
20,
8863,
565,
1827,
18,
542,
3208,
1444,
1626,
2932,
8,
548,
30,
15408,
3367,
1733,
18,
6290,
16,
90,
404,
18,
26,
4044,
21,
17,
5908,
17,
2163,
11201,
30,
3103,
30,
6260,
1675,
70,
321,
87,
9,
26279,
18,
3341,
7784,
271,
8863,
565,
15408,
3367,
12971,
5953,
273,
446,
31,
565,
15408,
3367,
3325,
273,
446,
31,
565,
775,
288,
3639,
15408,
3367,
1733,
18,
542,
3371,
751,
2932,
5836,
13635,
3113,
833,
63,
20,
19226,
3639,
3325,
273,
15408,
3367,
1733,
18,
2704,
9132,
3367,
5621,
3639,
5452,
18,
11231,
67,
305,
12,
7098,
480,
446,
1769,
3639,
5953,
273,
261,
9132,
3367,
12971,
13,
3325,
18,
2271,
1358,
2932,
4875,
2625,
18,
9132,
3367,
12971,
8863,
3639,
5452,
18,
11231,
67,
305,
12,
15424,
480,
446,
1769,
565,
289,
565,
1044,
261,
503,
425,
13,
288,
3639,
2332,
18,
659,
18,
8222,
31458,
82,
15408,
3367,
486,
8742,
2522,
521,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
12,
73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208,
461,
2932,
9132,
3367,
1733,
8863,
565,
1827,
18,
542,
3208,
1444,
2932,
20,
18,
20,
8863,
565,
1827,
18,
542,
3208,
1444,
1626,
2932,
8,
548,
30,
15408,
3367,
1733,
18,
6290,
16,
90,
404,
18,
26,
4044,
21,
17,
5908,
17,
2163,
11201,
30,
3103,
30,
6260,
1675,
70,
321,
87,
9,
26279,
18,
3341,
7784,
271,
8863,
565,
15408,
3367,
12971,
5953,
273,
446,
31,
565,
15408,
3367,
3325,
273,
446,
31,
565,
775,
288,
3639,
15408,
3367,
1733,
18,
542,
3371,
751,
2
] |
mColor = TagColor.fromString(e.getAttribute(MailService.A_COLOR, "0"));
|
mColor = Color.fromString(e.getAttribute(MailService.A_COLOR, "0"));
|
ZSoapTag(Element e) throws ServiceException { mColor = TagColor.fromString(e.getAttribute(MailService.A_COLOR, "0")); mId = e.getAttribute(MailService.A_ID); mName = e.getAttribute(MailService.A_NAME); mUnreadCount = (int) e.getAttributeLong(MailService.A_UNREAD, 0); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/73c855ea0bf07338901172eda084470dae3433e3/ZSoapTag.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/soap/ZSoapTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2285,
20601,
1805,
12,
1046,
425,
13,
1216,
16489,
288,
3639,
312,
2957,
273,
5563,
18,
2080,
780,
12,
73,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
10989,
16,
315,
20,
7923,
1769,
3639,
312,
548,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
734,
1769,
3639,
312,
461,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
1985,
1769,
3639,
312,
984,
896,
1380,
273,
261,
474,
13,
425,
18,
588,
1499,
3708,
12,
6759,
1179,
18,
37,
67,
2124,
6949,
16,
374,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2285,
20601,
1805,
12,
1046,
425,
13,
1216,
16489,
288,
3639,
312,
2957,
273,
5563,
18,
2080,
780,
12,
73,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
10989,
16,
315,
20,
7923,
1769,
3639,
312,
548,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
734,
1769,
3639,
312,
461,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
1985,
1769,
3639,
312,
984,
896,
1380,
273,
261,
474,
13,
425,
18,
588,
1499,
3708,
12,
6759,
1179,
18,
37,
67,
2124,
6949,
16,
374,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (dbTblCol==null) dbTblCol = new GenericColumn(dbTblColName, existingTable);
|
if (dbTblCol==null) dbTblCol = new GenericColumn(dbTblColName, existingTable); removedCols.remove(dbTblCol);
|
public void synchronise() throws SQLException, BuilderException { // Get database metadata. DatabaseMetaData dmd = this.getConnection().getMetaData(); String catalog = this.getConnection().getCatalog(); String schema = dmd.getUserName(); // Identify and temporarily preserve previously known tables. Refer // to them as the removed tables as by the end of this the set will // only contain those tables which have been dropped. Set removedTables = new HashSet(); removedTables.addAll(this.tables.keySet()); Set removedFKs = new HashSet(); // for the foreign keys. // Load tables and columns from database. // Catalog = database name/SID from connection string, Schema = username. ResultSet dbTables = dmd.getTables(catalog, schema, "%", new String[]{"TABLE", "VIEW"}); while (dbTables.next()) { String dbTableName = dbTables.getString("TABLE_NAME"); // If its a new table, create and add it. Otherwise, just look it up. Table existingTable = this.getTableByName(dbTableName); if (existingTable==null) existingTable = new GenericTable(dbTableName, this); // For each table loaded, temporarily preserve existing columns. Refer // to them as removed columns as by the end of this the set will only // contain those columns which are to be dropped. Set removedCols = new HashSet(); removedCols.addAll(existingTable.getColumns()); // Get the table columns from the database. ResultSet dbTblCols = dmd.getColumns(catalog, schema, dbTableName, "%"); while (dbTblCols.next()) { String dbTblColName = dbTblCols.getString("COLUMN_NAME"); // If its a new column, create and add it. Otherwise, just look it up. Column dbTblCol = existingTable.getColumnByName(dbTblColName); if (dbTblCol==null) dbTblCol = new GenericColumn(dbTblColName, existingTable); } dbTblCols.close(); // Remove from table all columns not found in database. for (Iterator i = removedCols.iterator(); i.hasNext(); ) { Column colName = (Column)i.next(); existingTable.removeColumn(colName); i.remove(); // really get rid of it so we don't have any references left behind. } // Remove table from previously known list. removedTables.remove(dbTableName); // Load the table's primary key. ResultSet dbTblPKCols = dmd.getPrimaryKeys(catalog, schema, dbTableName); Map pkCols = new TreeMap(); // sorts by key while (dbTblPKCols.next()) { String pkColName = dbTblPKCols.getString("COLUMN_NAME"); Short pkKeySeq = new Short(dbTblPKCols.getShort("KEY_SEQ")); pkCols.put(pkKeySeq, existingTable.getColumnByName(pkColName)); } dbTblPKCols.close(); // Did we find a PK? PrimaryKey existingPK = existingTable.getPrimaryKey(); if (!pkCols.isEmpty()) { // Create and set the primary key (only if existing one is not the same). if (existingPK == null || !existingPK.getColumns().equals(pkCols)) new GenericPrimaryKey(new ArrayList(pkCols.values())); } else { // Remove the primary key on this table, but only if the existing one is not handmade. if (existingPK!=null && !existingPK.getStatus().equals(ComponentStatus.HANDMADE)) existingTable.setPrimaryKey(null); } // For each table loaded, note the foreign keys that already exist. for (Iterator i = existingTable.getForeignKeys().iterator(); i.hasNext(); ) { Key k = (Key)i.next(); removedFKs.add(k); } } dbTables.close(); // Remove from schema all tables not found in database. for (Iterator i = removedTables.iterator(); i.hasNext(); ) { String tableName = (String)i.next(); Table existingTable = (Table)this.tables.get(tableName); existingTable.destroy(); this.tables.remove(existingTable); i.remove(); // really get rid of it so we don't have any references left behind. } // Go through the tables we found and update relations. for (Iterator i = this.tables.values().iterator(); i.hasNext(); ) { Table existingTable = (Table)i.next(); PrimaryKey existingPK = existingTable.getPrimaryKey(); if (existingPK==null) continue; // no need to do this to tables without PKs // Build up a set of relations that already exist. Call it removed because by the end // of this it will contain a set of relations that no longer exist and should be dropped. Set removedRels = new HashSet(); for (Iterator j = existingPK.getRelations().iterator(); j.hasNext(); ) { Relation r = (Relation)j.next(); removedRels.add(r); } // Load relations from db referring to this primary key. TreeMap dbFKs = new TreeMap(); ResultSet dbTblFKCols = dmd.getExportedKeys(catalog, schema, existingTable.getName()); // Build a map of key positions to lists of columns. So, if a table has two keys, it will // have two entries at each key position. while (dbTblFKCols.next()) { // FK cols are assumed to be in the same order as their associated PK cols. String fkTblName = dbTblFKCols.getString("FKTABLE_NAME"); String fkColName = dbTblFKCols.getString("FKCOLUMN_NAME"); Short fkKeySeq = new Short(dbTblFKCols.getShort("KEY_SEQ")); // Note the column. if (!dbFKs.containsKey(fkKeySeq)) dbFKs.put(fkKeySeq, new ArrayList()); ((List)dbFKs.get(fkKeySeq)).add(this.getTableByName(fkTblName).getColumnByName(fkColName)); } dbTblFKCols.close(); // Only construct FKs if we actually found any. if (!dbFKs.isEmpty()) { // How many keys do we have? int lowestKeySeq = ((Short)dbFKs.firstKey()).intValue(); int colCount = existingTable.getPrimaryKey().countColumns(); int keyCount = ((List)dbFKs.get(dbFKs.firstKey())).size(); // Construct the FKs we found. for (int j = 0; j < keyCount; j++) { Column[] candidateFKColumns = new Column[colCount]; for (Iterator k = dbFKs.keySet().iterator(); k.hasNext(); ) { Short keySeq = (Short)k.next(); int keySeqValue = keySeq.intValue() - lowestKeySeq; // ensures 0-index List l = (List)dbFKs.get(keySeq); candidateFKColumns[keySeqValue] = (Column)l.get(j); } ForeignKey newFK = new GenericForeignKey(Arrays.asList(candidateFKColumns)); boolean newFKAlreadyExists = false; // If we've already got one like that, reuse it, otherwise add it. for (Iterator f = newFK.getTable().getForeignKeys().iterator(); f.hasNext() && !newFKAlreadyExists; ) { ForeignKey candidateFK = (ForeignKey)f.next(); if (candidateFK.equals(newFK)) { // Found one. Reuse it! newFK = candidateFK; removedFKs.remove(candidateFK); // don't drop it any more. newFKAlreadyExists =true; } } if (!newFKAlreadyExists) { // If its new, go ahead and make the relation. newFK.getTable().addForeignKey(newFK); new GenericRelation(existingPK, newFK, Cardinality.MANY); } else { // If its not new, check to see if it already has a relation. // Check to see if this FK already has a link to this PK. // If it has a correctly inferred connection to any other PK, // complain bitterly. If it has an incorrect or handmade connection // to any other PK, remove that one. boolean relationExists = false; for (Iterator f = newFK.getRelations().iterator(); f.hasNext() && !relationExists; ) { Relation r = (Relation)f.next(); if (r.getPrimaryKey().equals(existingPK)) { removedRels.remove(r); // don't drop it, just leave it untouched and reuse it. relationExists = true; } else if (r.getStatus().equals(ComponentStatus.INFERRED)) { throw new AssertionError(BuilderBundle.getString("fkHasMultiplePKs")); } else { // It'll get removed later if we leave it in removedRels. // To do that, we need do nothing. } } // If checks returned false, create a new relation. if (!relationExists) new GenericRelation(existingPK, newFK, Cardinality.MANY); } } } // Remove any relations that we don't find in the database (but leave // the handmade ones behind). for (Iterator j = removedRels.iterator(); j.hasNext(); ) { Relation r = (Relation)j.next(); if (r.getStatus().equals(ComponentStatus.HANDMADE)) continue; r.destroy(); j.remove(); // just to make sure it's really gone properly } } // Drop any foreign keys that are left over (but not handmade ones). for (Iterator i = removedFKs.iterator(); i.hasNext(); ) { Key k = (Key)i.next(); if (k.getStatus().equals(ComponentStatus.HANDMADE)) continue; k.destroy(); i.remove(); // just to make sure it really has gone. } // Check and convert any 1:M relations that should be 1:1 for (Iterator i = this.getTables().iterator(); i.hasNext(); ) { Table pkTable = (Table)i.next(); PrimaryKey pk = pkTable.getPrimaryKey(); if (pk == null) continue; // Skip tables without PKs. for (Iterator j = pk.getRelations().iterator(); j.hasNext(); ) { Relation rel = (Relation)j.next(); if (!rel.getStatus().equals(ComponentStatus.INFERRED)) continue; // Skip incorrect and user-defined ones. ForeignKey fk = rel.getForeignKey(); Table fkTable = fk.getTable(); PrimaryKey fkTablePK = fkTable.getPrimaryKey(); if (fkTablePK == null) continue; // Skip FK tables without PKs. // If foreign key = primary key on fkTable then cardinality should be 1:1 if (fk.getColumns().equals(fkTablePK.getColumns())) rel.setFKCardinality(Cardinality.ONE); } } }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/4293a62eb131d88b6fc4c1e945c1b65a0e176963/JDBCTableProvider.java/clean/src/java/org/biomart/builder/controller/JDBCTableProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3248,
784,
1435,
1216,
6483,
16,
5008,
503,
288,
3639,
368,
968,
2063,
1982,
18,
3639,
5130,
6998,
302,
1264,
273,
333,
18,
588,
1952,
7675,
588,
6998,
5621,
3639,
514,
6222,
273,
333,
18,
588,
1952,
7675,
588,
9769,
5621,
3639,
514,
1963,
273,
302,
1264,
18,
588,
15296,
5621,
7734,
368,
25622,
471,
18917,
9420,
7243,
4846,
4606,
18,
868,
586,
3639,
368,
358,
2182,
487,
326,
3723,
4606,
487,
635,
326,
679,
434,
333,
326,
444,
903,
3639,
368,
1338,
912,
5348,
4606,
1492,
1240,
2118,
14611,
18,
3639,
1000,
3723,
6905,
273,
394,
6847,
5621,
3639,
3723,
6905,
18,
1289,
1595,
12,
2211,
18,
9373,
18,
856,
694,
10663,
3639,
1000,
3723,
13121,
87,
273,
394,
6847,
5621,
368,
364,
326,
5523,
1311,
18,
7734,
368,
4444,
4606,
471,
2168,
628,
2063,
18,
3639,
368,
14953,
273,
2063,
508,
19,
30287,
628,
1459,
533,
16,
4611,
273,
2718,
18,
3639,
10842,
1319,
6905,
273,
302,
1264,
18,
588,
6905,
12,
7199,
16,
1963,
16,
2213,
3113,
394,
514,
63,
7073,
6,
7775,
3113,
315,
12145,
6,
22938,
3639,
1323,
261,
1966,
6905,
18,
4285,
10756,
288,
5411,
514,
1319,
7147,
273,
1319,
6905,
18,
588,
780,
2932,
7775,
67,
1985,
8863,
5411,
368,
971,
2097,
279,
394,
1014,
16,
752,
471,
527,
518,
18,
5272,
16,
2537,
2324,
518,
731,
18,
5411,
3555,
2062,
1388,
273,
333,
18,
588,
1388,
5911,
12,
1966,
7147,
1769,
5411,
309,
261,
11711,
1388,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3248,
784,
1435,
1216,
6483,
16,
5008,
503,
288,
3639,
368,
968,
2063,
1982,
18,
3639,
5130,
6998,
302,
1264,
273,
333,
18,
588,
1952,
7675,
588,
6998,
5621,
3639,
514,
6222,
273,
333,
18,
588,
1952,
7675,
588,
9769,
5621,
3639,
514,
1963,
273,
302,
1264,
18,
588,
15296,
5621,
7734,
368,
25622,
471,
18917,
9420,
7243,
4846,
4606,
18,
868,
586,
3639,
368,
358,
2182,
487,
326,
3723,
4606,
487,
635,
326,
679,
434,
333,
326,
444,
903,
3639,
368,
1338,
912,
5348,
4606,
1492,
1240,
2118,
14611,
18,
3639,
1000,
3723,
6905,
273,
394,
6847,
5621,
3639,
3723,
6905,
18,
1289,
1595,
12,
2211,
18,
9373,
18,
856,
694,
10663,
3639,
1000,
3723,
2
] |
e.printStackTrace(); fail("There is a problem that is preventing the tests to continue!");
|
fail("" + e.getMessage());
|
private void runMyTest(String whichTest){ request.setAttribute("runTest", whichTest); try { pageContext.forward( request.getRequestURI() + "/org/apache/struts/taglib/bean/TestIncludeTag.jsp"); } catch (Exception e) { e.printStackTrace(); fail("There is a problem that is preventing the tests to continue!"); } }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/41f313c7dd7ac74b5445118d14aee50b24296729/TestIncludeTag.java/clean/src/test/org/apache/struts/taglib/bean/TestIncludeTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
12062,
4709,
12,
780,
1492,
4709,
15329,
202,
202,
2293,
18,
542,
1499,
2932,
2681,
4709,
3113,
1492,
4709,
1769,
3639,
775,
288,
1082,
202,
2433,
1042,
18,
11565,
12,
9506,
202,
2293,
18,
588,
691,
3098,
1435,
397,
2206,
3341,
19,
19211,
19,
701,
12940,
19,
2692,
2941,
19,
14496,
19,
4709,
8752,
1805,
18,
24926,
8863,
202,
202,
97,
202,
202,
14683,
261,
503,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
12062,
4709,
12,
780,
1492,
4709,
15329,
202,
202,
2293,
18,
542,
1499,
2932,
2681,
4709,
3113,
1492,
4709,
1769,
3639,
775,
288,
1082,
202,
2433,
1042,
18,
11565,
12,
9506,
202,
2293,
18,
588,
691,
3098,
1435,
397,
2206,
3341,
19,
19211,
19,
701,
12940,
19,
2692,
2941,
19,
14496,
19,
4709,
8752,
1805,
18,
24926,
8863,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
6870,
2932,
9828,
353,
279,
6199,
716,
353,
5309,
310,
326,
7434,
358,
1324,
4442,
1769,
202,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
courseMemberMap = membershipManager.getAllCourseMembers(true, true);
|
courseMemberMap = membershipManager.getAllCourseMembers(true, false, true);
|
public Map getAllCourseMembers() { if (LOG.isDebugEnabled()) { LOG.debug("getAllCourseMembers()"); } if (courseMemberMap == null) { courseMemberMap = membershipManager.getAllCourseMembers(true, true); } return courseMemberMap; }
|
52248 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52248/3289e84369eeee6ad88e4b93fa7ab64a1b53ccc7/DiscussionForumManagerImpl.java/buggy/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/ui/DiscussionForumManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1635,
5514,
39,
3117,
6918,
1435,
225,
288,
565,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
565,
288,
1377,
2018,
18,
4148,
2932,
588,
1595,
39,
3117,
6918,
1435,
8863,
565,
289,
565,
309,
261,
5566,
4419,
863,
422,
446,
13,
565,
288,
1377,
4362,
4419,
863,
273,
12459,
1318,
18,
588,
1595,
39,
3117,
6918,
12,
3767,
16,
629,
16,
638,
1769,
565,
289,
565,
327,
4362,
4419,
863,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1635,
5514,
39,
3117,
6918,
1435,
225,
288,
565,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
565,
288,
1377,
2018,
18,
4148,
2932,
588,
1595,
39,
3117,
6918,
1435,
8863,
565,
289,
565,
309,
261,
5566,
4419,
863,
422,
446,
13,
565,
288,
1377,
4362,
4419,
863,
273,
12459,
1318,
18,
588,
1595,
39,
3117,
6918,
12,
3767,
16,
629,
16,
638,
1769,
565,
289,
565,
327,
4362,
4419,
863,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < mygroups.size(); i++) { FieldMap groupFields = (FieldMap)mygroups.get(i);
|
for (int i = 0; i < groups.size(); i++) { FieldMap groupFields = (FieldMap)groups.get(i);
|
void calculateString(StringBuffer buffer, int[] preFields, int[] postFields) { if (preFields != null) { for (int i = 0; i < preFields.length; i++) { Field field = getField(preFields[i], null); field.toString(buffer); buffer.append('\001'); } } for (Iterator iter = fields.values().iterator(); iter.hasNext();) { Field field = (Field) iter.next(); // Patch from David VINCENT if (!isOrderedField(field.getField(), preFields) && !isOrderedField(field.getField(), postFields) && !isGroupField(field.getField())) { // End Patch from David VINCENT field.toString(buffer); buffer.append('\001'); } } // TODO fix group rendering -- Should ok now ( David VINCENT) for (Iterator iter = groups.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); List mygroups = (List)entry.getValue(); IntField groupField = new IntField(((Integer)entry.getKey()).intValue()); groupField.setValue(mygroups.size()); groupField.toString(buffer); buffer.append('\001'); // Acceptance test copies message with group length field already present // This causes two fields to be sent. //buffer.append(entry.getKey()).append("=").append(groups.size()).append('\001'); for (int i = 0; i < mygroups.size(); i++) { FieldMap groupFields = (FieldMap)mygroups.get(i); groupFields.calculateString(buffer, preFields, postFields); } } if (postFields != null) { for (int i = 0; i < postFields.length; i++) { Field field = getField(postFields[i], null); field.toString(buffer); buffer.append('\001'); } } }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/ed98aa4c43f995af0db9d3ab676beb630d753e59/FieldMap.java/buggy/src/quickfix/FieldMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4604,
780,
12,
780,
1892,
1613,
16,
509,
8526,
675,
2314,
16,
509,
8526,
1603,
2314,
13,
288,
3639,
309,
261,
1484,
2314,
480,
446,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
675,
2314,
18,
2469,
31,
277,
27245,
288,
7734,
2286,
652,
273,
5031,
12,
1484,
2314,
63,
77,
6487,
446,
1769,
7734,
652,
18,
10492,
12,
4106,
1769,
7734,
1613,
18,
6923,
2668,
64,
11664,
8284,
5411,
289,
3639,
289,
3639,
364,
261,
3198,
1400,
273,
1466,
18,
2372,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
2286,
652,
273,
261,
974,
13,
1400,
18,
4285,
5621,
5411,
368,
12042,
628,
463,
842,
350,
776,
706,
19666,
5411,
309,
16051,
291,
16756,
974,
12,
1518,
18,
588,
974,
9334,
675,
2314,
13,
10792,
597,
401,
291,
16756,
974,
12,
1518,
18,
588,
974,
9334,
1603,
2314,
13,
7682,
597,
401,
291,
1114,
974,
12,
1518,
18,
588,
974,
1435,
3719,
288,
2398,
368,
4403,
12042,
628,
463,
842,
350,
776,
706,
19666,
7734,
652,
18,
10492,
12,
4106,
1769,
7734,
1613,
18,
6923,
2668,
64,
11664,
8284,
5411,
289,
3639,
289,
3639,
368,
2660,
2917,
1041,
9782,
1493,
9363,
1529,
2037,
261,
463,
842,
350,
776,
706,
19666,
13,
3639,
364,
261,
3198,
1400,
273,
3252,
18,
4099,
694,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4604,
780,
12,
780,
1892,
1613,
16,
509,
8526,
675,
2314,
16,
509,
8526,
1603,
2314,
13,
288,
3639,
309,
261,
1484,
2314,
480,
446,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
675,
2314,
18,
2469,
31,
277,
27245,
288,
7734,
2286,
652,
273,
5031,
12,
1484,
2314,
63,
77,
6487,
446,
1769,
7734,
652,
18,
10492,
12,
4106,
1769,
7734,
1613,
18,
6923,
2668,
64,
11664,
8284,
5411,
289,
3639,
289,
3639,
364,
261,
3198,
1400,
273,
1466,
18,
2372,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
2286,
652,
273,
261,
974,
13,
1400,
18,
4285,
5621,
5411,
368,
12042,
628,
463,
842,
350,
776,
706,
19666,
2
] |
CPElement removed = removePathFromResourceGroups((CPElement) elem, fIncludeSymPathsList.getElements()); if (removed != null) { fCPathList.removeElement(removed);
|
if (removePathFromResourceGroups((CPElement)elem, fIncludeSymPathsList.getElements()) == null) { updatePathOnResourceGroups(((CPElement)elem).getInherited(), fIncludeSymPathsList.getElements());
|
private void removeEntry() { List selected = getSelection(); Object elem = selected.get(0); if (elem instanceof CPElement) { CPElement removed = removePathFromResourceGroups((CPElement) elem, fIncludeSymPathsList.getElements()); if (removed != null) { fCPathList.removeElement(removed); } fCPathList.dialogFieldChanged(); // validate fIncludeSymPathsList.refresh(); } else if (elem instanceof CPElementAttribute) { CPElementAttribute attrib = (CPElementAttribute) elem; String key = attrib.getKey(); Object value = key.equals(CPElement.EXCLUSION) ? new Path[0] : null; attrib.getParent().setAttribute(key, value); updatePathOnResourceGroups(attrib.getParent(), fIncludeSymPathsList.getElements()); fIncludeSymPathsList.refresh(); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/53738dc5bfed46178452b79843ccf0ac0f233d45/CPathIncludeSymbolEntryPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
1622,
1435,
288,
202,
202,
682,
3170,
273,
23204,
5621,
202,
202,
921,
3659,
273,
3170,
18,
588,
12,
20,
1769,
202,
202,
430,
261,
10037,
1276,
5181,
1046,
13,
288,
1082,
202,
4258,
1046,
3723,
273,
1206,
743,
1265,
1420,
3621,
12443,
4258,
1046,
13,
3659,
16,
284,
8752,
11901,
4466,
682,
18,
588,
3471,
10663,
1082,
202,
430,
261,
14923,
480,
446,
13,
288,
9506,
202,
74,
39,
743,
682,
18,
4479,
1046,
12,
14923,
1769,
1082,
202,
97,
1082,
202,
74,
39,
743,
682,
18,
12730,
974,
5033,
5621,
368,
1954,
1082,
202,
74,
8752,
11901,
4466,
682,
18,
9144,
5621,
202,
202,
97,
469,
309,
261,
10037,
1276,
5181,
1046,
1499,
13,
288,
1082,
202,
4258,
1046,
1499,
5885,
273,
261,
4258,
1046,
1499,
13,
3659,
31,
1082,
202,
780,
498,
273,
5885,
18,
588,
653,
5621,
1082,
202,
921,
460,
273,
498,
18,
14963,
12,
4258,
1046,
18,
2294,
5017,
3378,
1146,
13,
692,
394,
2666,
63,
20,
65,
294,
446,
31,
1082,
202,
14588,
18,
588,
3054,
7675,
542,
1499,
12,
856,
16,
460,
1769,
1082,
202,
2725,
743,
1398,
1420,
3621,
12,
14588,
18,
588,
3054,
9334,
284,
8752,
11901,
4466,
682,
18,
588,
3471,
10663,
1082,
202,
74,
8752,
11901,
4466,
682,
18,
9144,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
1622,
1435,
288,
202,
202,
682,
3170,
273,
23204,
5621,
202,
202,
921,
3659,
273,
3170,
18,
588,
12,
20,
1769,
202,
202,
430,
261,
10037,
1276,
5181,
1046,
13,
288,
1082,
202,
4258,
1046,
3723,
273,
1206,
743,
1265,
1420,
3621,
12443,
4258,
1046,
13,
3659,
16,
284,
8752,
11901,
4466,
682,
18,
588,
3471,
10663,
1082,
202,
430,
261,
14923,
480,
446,
13,
288,
9506,
202,
74,
39,
743,
682,
18,
4479,
1046,
12,
14923,
1769,
1082,
202,
97,
1082,
202,
74,
39,
743,
682,
18,
12730,
974,
5033,
5621,
368,
1954,
1082,
202,
74,
8752,
11901,
4466,
682,
18,
9144,
5621,
202,
202,
97,
469,
309,
261,
10037,
1276,
5181,
1046,
2
] |
return name; }
|
Alphabet a = getMatches(); if (this instanceof BasisSymbol) { List l = ((BasisSymbol) this).getSymbols(); if (l.size() > 1) { StringBuffer sb = new StringBuffer(); sb.append('('); for (Iterator si = l.iterator(); si.hasNext(); ) { Symbol sym = (Symbol) si.next(); sb.append(sym.getName()); if (si.hasNext()) sb.append(' '); } sb.append(')'); return sb.toString(); } } if (a instanceof FiniteAlphabet) { FiniteAlphabet fa = (FiniteAlphabet) a; if (fa.size() <= 1) return null; StringBuffer sb = new StringBuffer(); sb.append('['); for (Iterator si = fa.iterator(); si.hasNext(); ) { Symbol sym = (Symbol) si.next(); sb.append(sym.getName()); if (si.hasNext()) sb.append(' '); } sb.append(']'); return sb.toString(); } else { return "Infinite"; } }
|
public String getName() { return name; }
|
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/50df2bb038e847e65fa3345d040faec4b21c5bc8/SimpleSymbol.java/clean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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1723,
1435,
288,
565,
327,
508,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
void _switchDefScrollPane() { // demoted to package private protection to test the disabling editing while compiling functionality. // and to support brute force fix to DefinitionsPane bug on return from compile with errors // Added 2004-May-27 // Notify the definitions pane that is being replaced (becoming inactive) _currentDefPane.notifyInactive(); // Utilities.showDebug("_switchDefScrollPane called");// Utilities.showDebug("Right before getting the scrollPane"); JScrollPane scroll = _defScrollPanes.get(_model.getActiveDocument()); if (scroll == null) scroll = _createDefScrollPane(_model.getActiveDocument()); // Fix OS X scrollbar bug before switching _reenableScrollBar(); int oldLocation = _docSplitPane.getDividerLocation(); _docSplitPane.setRightComponent(scroll); //crazy line _docSplitPane.setDividerLocation(oldLocation); // if the current def pane is uneditable, that means we arrived here from a compile with errors. We're // guaranteed to make it editable again when we return from the compilation, so we take the state // with us. We guarantee only one definitions pane is un-editable at any time. if (_currentDefPane.isEditable()) { _currentDefPane = (DefinitionsPane) scroll.getViewport().getView(); _currentDefPane.notifyActive(); } else { try { _currentDefPane.setEditable(true); } catch(NoSuchDocumentException e) { /* It's OK */ } _currentDefPane = (DefinitionsPane) scroll.getViewport().getView(); _currentDefPane.notifyActive(); _currentDefPane.setEditable(false); } // reset the undo/redo menu items resetUndo(); if (inDebugMode()) _updateDebugStatus(); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/2de653a0c121f420695cbc85c38fd5c41317e81a/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
389,
9610,
3262,
26360,
1435,
288,
565,
368,
9626,
16474,
358,
2181,
3238,
17862,
358,
1842,
326,
1015,
17912,
15755,
1323,
1161,
4973,
14176,
18,
565,
368,
471,
358,
2865,
5186,
624,
2944,
2917,
358,
10849,
87,
8485,
7934,
603,
327,
628,
4074,
598,
1334,
565,
368,
25808,
4044,
24,
17,
49,
528,
17,
5324,
565,
368,
10918,
326,
6377,
13618,
716,
353,
3832,
8089,
261,
70,
30433,
310,
16838,
13,
565,
389,
2972,
3262,
8485,
18,
12336,
24384,
5621,
565,
368,
565,
26703,
18,
4500,
2829,
2932,
67,
9610,
3262,
26360,
2566,
8863,
759,
565,
26703,
18,
4500,
2829,
2932,
4726,
1865,
8742,
326,
5532,
8485,
8863,
565,
804,
26360,
5532,
273,
389,
536,
6806,
4069,
281,
18,
588,
24899,
2284,
18,
588,
3896,
2519,
10663,
4202,
309,
261,
12033,
422,
446,
13,
225,
5532,
273,
389,
2640,
3262,
26360,
24899,
2284,
18,
588,
3896,
2519,
10663,
565,
368,
12139,
5932,
1139,
27123,
7934,
1865,
30882,
565,
389,
2842,
429,
6806,
5190,
5621,
565,
509,
1592,
2735,
273,
389,
2434,
5521,
8485,
18,
588,
25558,
2735,
5621,
565,
389,
2434,
5521,
8485,
18,
542,
4726,
1841,
12,
12033,
1769,
368,
71,
354,
21832,
980,
565,
389,
2434,
5521,
8485,
18,
542,
25558,
2735,
12,
1673,
2735,
1769,
565,
368,
309,
326,
783,
1652,
13618,
353,
640,
19653,
16,
716,
4696,
732,
2454,
2950,
2674,
628,
279,
4074,
598,
1334,
18,
225,
1660,
4565,
565,
368,
15403,
358,
1221,
518,
13754,
3382,
1347,
732,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
389,
9610,
3262,
26360,
1435,
288,
565,
368,
9626,
16474,
358,
2181,
3238,
17862,
358,
1842,
326,
1015,
17912,
15755,
1323,
1161,
4973,
14176,
18,
565,
368,
471,
358,
2865,
5186,
624,
2944,
2917,
358,
10849,
87,
8485,
7934,
603,
327,
628,
4074,
598,
1334,
565,
368,
25808,
4044,
24,
17,
49,
528,
17,
5324,
565,
368,
10918,
326,
6377,
13618,
716,
353,
3832,
8089,
261,
70,
30433,
310,
16838,
13,
565,
389,
2972,
3262,
8485,
18,
12336,
24384,
5621,
565,
368,
565,
26703,
18,
4500,
2829,
2932,
67,
9610,
3262,
26360,
2566,
8863,
759,
565,
26703,
18,
4500,
2829,
2932,
4726,
1865,
8742,
326,
5532,
8485,
8863,
565,
804,
26360,
5532,
273,
389,
536,
6806,
4069,
2
] |
||
boolean synPredMatched295 = false;
|
boolean synPredMatched294 = false;
|
public final void checkSuspiciousExpressionStatement( int prevToken ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST checkSuspiciousExpressionStatement_AST = null; boolean synPredMatched295 = false; if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))) { int _m295 = mark(); synPredMatched295 = true; inputState.guessing++; try { { if ((_tokenSet_106.member(LA(1)))) { matchNot(LCURLY); } else if ((LA(1)==LCURLY)) { match(LCURLY); closureParametersStart(); } else { throw new NoViableAltException(LT(1), getFilename()); } } } catch (RecognitionException pe) { synPredMatched295 = false; } rewind(_m295); inputState.guessing--; } if ( synPredMatched295 ) { { if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))&&(prevToken == NLS)) { if ( inputState.guessing==0 ) { addWarning( "Expression statement looks like it may continue a previous statement.", "Either remove previous newline, or add an explicit semicolon ';'."); } } else if ((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } checkSuspiciousExpressionStatement_AST = (AST)currentAST.root; } else if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))&&(prevToken == NLS)) { if ( inputState.guessing==0 ) { require(false, "Closure expression looks like it may be an isolated open block, "+ "or it may continue a previous statement." , "Add an explicit parameter list, as in {it :: ...}, or label it as L:{...}, "+ "and also either remove previous newline, or add an explicit semicolon ';'." ); } checkSuspiciousExpressionStatement_AST = (AST)currentAST.root; } else if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))&&(prevToken != NLS)) { if ( inputState.guessing==0 ) { require(false, "Closure expression looks like it may be an isolated open block.", "Add an explicit parameter list, as in {it :: ...}, or label it as L:{...}."); } checkSuspiciousExpressionStatement_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = checkSuspiciousExpressionStatement_AST; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
866,
55,
407,
84,
28728,
2300,
3406,
12,
202,
202,
474,
2807,
1345,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
866,
55,
407,
84,
28728,
2300,
3406,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
29286,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
2643,
18,
5990,
12,
2534,
12,
21,
20349,
597,
261,
67,
2316,
694,
67,
28,
18,
5990,
12,
2534,
12,
22,
20349,
597,
261,
67,
2316,
694,
67,
3657,
18,
5990,
12,
2534,
12,
23,
3719,
20349,
288,
1082,
202,
474,
389,
81,
29286,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
29286,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
430,
14015,
67,
2316,
694,
67,
22135,
18,
5990,
12,
2534,
12,
21,
3719,
3719,
288,
6862,
202,
1916,
1248,
12,
13394,
1785,
61,
1769,
9506,
202,
97,
9506,
202,
12107,
309,
14015,
2534,
12,
21,
13,
631,
13394,
1785,
61,
3719,
288,
6862,
202,
1916,
12,
13394,
1785,
61,
1769,
6862,
202,
20823,
2402,
1685,
5621,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
12849,
394,
17114,
12,
12050,
12,
21,
3631,
14632,
10663,
9506,
202,
97,
6862,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
55,
407,
84,
28728,
2300,
3406,
12,
202,
202,
474,
2807,
1345,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
866,
55,
407,
84,
28728,
2300,
3406,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
29286,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
2643,
18,
5990,
12,
2534,
12,
21,
20349,
597,
261,
67,
2316,
694,
67,
28,
18,
5990,
12,
2534,
12,
22,
20349,
597,
261,
67,
2316,
694,
67,
3657,
18,
5990,
12,
2534,
12,
23,
3719,
20349,
288,
1082,
202,
2
] |
BitSet bits2 = new BitSet(); for (int i = 0; i < tree.getChildCount(node); i++) {
|
BitSet bits2 = new BitSet(); for (int i = 0; i < tree.getChildCount(node); i++) {
|
public double getSumCladeFrequency(Tree tree, NodeRef node, BitSet bits) { double sumCladeFrequency = 0.0; if (tree.isExternal(node)) { if (taxonList != null) { int index = taxonList.getTaxonIndex(tree.getNodeTaxon(node).getId()); bits.set(index); } else { bits.set(node.getNumber()); } } else { BitSet bits2 = new BitSet(); for (int i = 0; i < tree.getChildCount(node); i++) { NodeRef node1 = tree.getChild(node, i); sumCladeFrequency += getSumCladeFrequency(tree, node1, bits2); } sumCladeFrequency += getCladeFrequency(bits2); if (bits != null) { bits.or(bits2); } } return sumCladeFrequency; }
|
51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/4d3679b1480cd31578aa6667987b40643898c07f/TreeAnnotator.java/buggy/src/dr/app/tools/TreeAnnotator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1645,
1322,
379,
2009,
2486,
13865,
12,
2471,
2151,
16,
2029,
1957,
756,
16,
21199,
4125,
13,
288,
5411,
1645,
2142,
2009,
2486,
13865,
273,
374,
18,
20,
31,
5411,
309,
261,
3413,
18,
291,
6841,
12,
2159,
3719,
288,
7734,
309,
261,
8066,
265,
682,
480,
446,
13,
288,
10792,
509,
770,
273,
25458,
682,
18,
588,
7731,
265,
1016,
12,
3413,
18,
588,
907,
7731,
265,
12,
2159,
2934,
26321,
10663,
10792,
4125,
18,
542,
12,
1615,
1769,
7734,
289,
469,
288,
10792,
4125,
18,
542,
12,
2159,
18,
588,
1854,
10663,
7734,
289,
5411,
289,
469,
288,
7734,
21199,
4125,
22,
273,
394,
21199,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2151,
18,
588,
1763,
1380,
12,
2159,
1769,
277,
27245,
288,
10792,
2029,
1957,
756,
21,
273,
2151,
18,
588,
1763,
12,
2159,
16,
277,
1769,
10792,
2142,
2009,
2486,
13865,
1011,
1322,
379,
2009,
2486,
13865,
12,
3413,
16,
756,
21,
16,
4125,
22,
1769,
7734,
289,
7734,
2142,
2009,
2486,
13865,
1011,
13674,
2486,
13865,
12,
6789,
22,
1769,
7734,
309,
261,
6789,
480,
446,
13,
288,
10792,
4125,
18,
280,
12,
6789,
22,
1769,
7734,
289,
5411,
289,
5411,
327,
2142,
2009,
2486,
13865,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1645,
1322,
379,
2009,
2486,
13865,
12,
2471,
2151,
16,
2029,
1957,
756,
16,
21199,
4125,
13,
288,
5411,
1645,
2142,
2009,
2486,
13865,
273,
374,
18,
20,
31,
5411,
309,
261,
3413,
18,
291,
6841,
12,
2159,
3719,
288,
7734,
309,
261,
8066,
265,
682,
480,
446,
13,
288,
10792,
509,
770,
273,
25458,
682,
18,
588,
7731,
265,
1016,
12,
3413,
18,
588,
907,
7731,
265,
12,
2159,
2934,
26321,
10663,
10792,
4125,
18,
542,
12,
1615,
1769,
7734,
289,
469,
288,
10792,
4125,
18,
542,
12,
2159,
18,
588,
1854,
10663,
7734,
289,
5411,
289,
469,
288,
7734,
21199,
4125,
22,
273,
394,
21199,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
2
] |
ruby.getRubyFrame().getLastFunc(), argsObj, 3);
|
ruby.getRubyFrame().getLastFunc(), args, 3);
|
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.getIter().push(ruby.getIter().getIter() != RubyIter.ITER_NOT ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); RubyObject result = ruby.getRubyFrame().getLastClass().getSuperClass().call( ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), argsObj, 3); ruby.getIter().pop(); return result; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/f629550c5947df9c1dbe414645f3dc76bcb70df4/SuperNode.java/clean/org/jruby/nodes/SuperNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
368,
399,
4566,
67,
3373,
1448,
1268,
31,
7734,
309,
261,
27768,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
797,
1435,
422,
446,
13,
288,
5411,
604,
394,
19817,
26771,
2932,
9565,
1106,
707,
2119,
397,
5397,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
2622,
7675,
869,
461,
1435,
397,
2491,
5673,
8863,
3639,
289,
7734,
19817,
1768,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
27768,
1769,
3639,
19817,
921,
8526,
833,
2675,
273,
6634,
1304,
18,
8401,
2615,
12,
27768,
16,
365,
16,
30169,
907,
10663,
3639,
6634,
1304,
18,
409,
1477,
2615,
12,
27768,
16,
1853,
1768,
1769,
7734,
22155,
18,
588,
2360,
7675,
6206,
12,
27768,
18,
588,
2360,
7675,
588,
2360,
1435,
480,
19817,
2360,
18,
11844,
67,
4400,
692,
4766,
1850,
19817,
2360,
18,
11844,
67,
3670,
294,
19817,
2360,
18,
11844,
67,
4400,
1769,
3639,
19817,
921,
563,
273,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
797,
7675,
588,
8051,
797,
7675,
1991,
12,
27573,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
10084,
9334,
4766,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
2622,
9334,
833,
16,
890,
1769,
3639,
22155,
18,
588,
2360,
7675,
5120,
5621,
7734,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
368,
399,
4566,
67,
3373,
1448,
1268,
31,
7734,
309,
261,
27768,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
797,
1435,
422,
446,
13,
288,
5411,
604,
394,
19817,
26771,
2932,
9565,
1106,
707,
2119,
397,
5397,
22155,
18,
588,
54,
10340,
3219,
7675,
588,
3024,
2622,
7675,
869,
461,
1435,
397,
2491,
5673,
8863,
3639,
289,
7734,
19817,
1768,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
27768,
1769,
3639,
19817,
921,
8526,
833,
2675,
273,
6634,
1304,
18,
8401,
2615,
12,
27768,
16,
365,
16,
30169,
907,
10663,
3639,
6634,
1304,
18,
409,
1477,
2615,
12,
27768,
16,
2
] |
IJavaProject javaProject = JavaCore.create(project); String path = name.replace('.', '/') + ".java";
|
protected void openReference() { String name = text.getText(); IProject project = part.getPage().getPDEEditor().getCommonProject(); IJavaProject javaProject = JavaCore.create(project); String path = name.replace('.', '/') + ".java"; try { IJavaElement result = javaProject.findElement(new Path(path)); if (result != null) { JavaUI.openInEditor(result); } } catch (PartInitException e) { PDEPlugin.logException(e); } catch (JavaModelException e) { // nothing Display.getCurrent().beep(); } }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d31a9651542b0f36656cd04a3038389b779eb239/ClassAttributeRow.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/rows/ClassAttributeRow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1696,
2404,
1435,
288,
202,
202,
780,
508,
273,
977,
18,
588,
1528,
5621,
202,
202,
45,
4109,
1984,
273,
1087,
18,
588,
1964,
7675,
588,
52,
1639,
6946,
7675,
588,
6517,
4109,
5621,
202,
202,
45,
5852,
4109,
2252,
4109,
273,
5110,
4670,
18,
2640,
12,
4406,
1769,
202,
202,
780,
589,
273,
508,
18,
2079,
2668,
1093,
16,
2023,
13,
397,
3552,
6290,
14432,
202,
202,
698,
288,
1082,
202,
45,
5852,
1046,
563,
273,
2252,
4109,
18,
4720,
1046,
12,
2704,
2666,
12,
803,
10019,
1082,
202,
430,
261,
2088,
480,
446,
13,
288,
9506,
202,
5852,
5370,
18,
3190,
382,
6946,
12,
2088,
1769,
1082,
202,
97,
202,
202,
97,
1044,
261,
1988,
2570,
503,
425,
13,
288,
1082,
202,
52,
1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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1696,
2404,
1435,
288,
202,
202,
780,
508,
273,
977,
18,
588,
1528,
5621,
202,
202,
45,
4109,
1984,
273,
1087,
18,
588,
1964,
7675,
588,
52,
1639,
6946,
7675,
588,
6517,
4109,
5621,
202,
202,
45,
5852,
4109,
2252,
4109,
273,
5110,
4670,
18,
2640,
12,
4406,
1769,
202,
202,
780,
589,
273,
508,
18,
2079,
2668,
1093,
16,
2023,
13,
397,
3552,
6290,
14432,
202,
202,
698,
288,
1082,
202,
45,
5852,
1046,
563,
273,
2252,
4109,
18,
4720,
1046,
12,
2704,
2666,
12,
803,
10019,
1082,
202,
430,
261,
2088,
480,
446,
13,
288,
9506,
202,
5852,
5370,
18,
3190,
382,
6946,
12,
2088,
1769,
1082,
202,
97,
202,
202,
97,
1044,
2
] |
|
if ( element != selectedParameter )
|
if ( element != selectedParameter || property.equals( COLUMN_NAME ) )
|
public boolean canModify( Object element, String property ) { if ( element != selectedParameter ) { return false; } if ( element == newParameter ) { if ( !property.equals( COLUMN_VALUE ) ) { return false; } } else if ( property.equals( COLUMN_NAME ) ) { return false; } if ( property.equals( COLUMN_VALUE ) ) { if ( getDataSetColumns( (ScalarParameterHandle) element ).length == 0 ) { return false; } } setCellEditorItems( ); return true; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ffe25c84db39ac36a136a2b6d3c13bc9dc6b6fd2/CascadingParametersDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
848,
11047,
12,
1033,
930,
16,
514,
1272,
262,
202,
202,
95,
1082,
202,
430,
261,
930,
480,
3170,
1662,
262,
1082,
202,
95,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
930,
422,
394,
1662,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
4468,
18,
14963,
12,
13473,
67,
4051,
262,
262,
9506,
202,
95,
6862,
202,
2463,
629,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
309,
261,
1272,
18,
14963,
12,
13473,
67,
1985,
262,
262,
1082,
202,
95,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
1272,
18,
14963,
12,
13473,
67,
4051,
262,
262,
1082,
202,
95,
9506,
202,
430,
261,
4303,
694,
3380,
12,
261,
13639,
1662,
3259,
13,
930,
262,
18,
2469,
422,
374,
262,
9506,
202,
95,
6862,
202,
2463,
629,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
542,
4020,
6946,
3126,
12,
11272,
1082,
202,
2463,
638,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
848,
11047,
12,
1033,
930,
16,
514,
1272,
262,
202,
202,
95,
1082,
202,
430,
261,
930,
480,
3170,
1662,
262,
1082,
202,
95,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
930,
422,
394,
1662,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
4468,
18,
14963,
12,
13473,
67,
4051,
262,
262,
9506,
202,
95,
6862,
202,
2463,
629,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
309,
261,
1272,
18,
14963,
12,
13473,
67,
1985,
262,
262,
1082,
202,
95,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
1272,
18,
14963,
12,
13473,
67,
4051,
262,
262,
1082,
202,
95,
9506,
202,
2
] |
if (line.startsWith("@=\"")) { browserString = line.substring(3, line.toLowerCase().indexOf(".exe") + 3);
|
if (line.startsWith("@=")) { browserString = "\"" + line.substring(3, line.toLowerCase().indexOf(".exe") + 4) + "\"";
|
public boolean openUrl(String url) throws Exception { String osName = System.getProperty("os.name"); if (validateUrlFormat(url)) { if (osName.toLowerCase().indexOf("mac") > -1) { if (osName.toLowerCase().startsWith("mac os x")) { if (_shellCommand.executeSilentAndWaitTimed("safari " + url, 5)) return true; } else { return false; } if (_shellCommand.executeSilentAndWaitTimed("iexplore " + url, 5)) return true; } else if (osName.startsWith("Windows")) { String browserString = "\"C:\\Program Files\\Internet Explorer\\iexplore.exe\""; BufferedReader bufferedReader = null; _shellCommand.executeSilentAndWaitTimed("regedit /E default_browser.reg \"HKEY_CLASSES_ROOT\\http\\shell\\open\\command\"", 5); try { bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream("default_browser.reg"))); for (String line; (line = bufferedReader.readLine()) != null; ) { if (line.startsWith("@=\"")) { browserString = line.substring(3, line.toLowerCase().indexOf(".exe") + 3); } } } catch (Exception e) { // Defaults to IE. } try { bufferedReader.close(); } catch (IOException e) { // No worries. } new File("default_browser.reg").delete(); if (_shellCommand.executeSilentAndWaitTimed(browserString + " " + url, 5)) return true; } else { if (_shellCommand.executeSilentAndWaitTimed("konqueror " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("galeon " + url, 5)) return true; } if (_shellCommand.executeSilentAndWaitTimed("opera -newpage " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("firefox " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("mozilla " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("netscape " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("links " + url, 5)) return true; if (_shellCommand.executeSilentAndWaitTimed("lynx " + url, 5)) return true; } return false; }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/4783b09f03f47576f9e3a655405fa42b10116ee3/UrlLauncher.java/buggy/apps/systray/java/src/net/i2p/apps/systray/UrlLauncher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1696,
1489,
12,
780,
880,
13,
1216,
1185,
288,
3639,
514,
1140,
461,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
3639,
309,
261,
5662,
1489,
1630,
12,
718,
3719,
288,
5411,
309,
261,
538,
461,
18,
869,
5630,
7675,
31806,
2932,
5821,
7923,
405,
300,
21,
13,
288,
7734,
309,
261,
538,
461,
18,
869,
5630,
7675,
17514,
1190,
2932,
5821,
1140,
619,
6,
3719,
288,
10792,
309,
261,
67,
10304,
2189,
18,
8837,
55,
8125,
1876,
5480,
19336,
2932,
87,
19328,
315,
397,
880,
16,
1381,
3719,
13491,
327,
638,
31,
7734,
289,
469,
288,
10792,
327,
629,
31,
7734,
289,
7734,
309,
261,
67,
10304,
2189,
18,
8837,
55,
8125,
1876,
5480,
19336,
2932,
77,
2749,
383,
266,
315,
397,
880,
16,
1381,
3719,
10792,
327,
638,
31,
5411,
289,
469,
309,
261,
538,
461,
18,
17514,
1190,
2932,
10399,
6,
3719,
288,
7734,
514,
540,
4748,
780,
225,
273,
7023,
39,
31027,
9459,
6471,
1695,
26562,
1312,
11766,
1695,
77,
2749,
383,
266,
18,
14880,
8530,
31,
7734,
10633,
11445,
2514,
273,
446,
31,
7734,
389,
10304,
2189,
18,
8837,
55,
8125,
1876,
5480,
19336,
2932,
1574,
4619,
342,
41,
805,
67,
11213,
18,
1574,
1239,
44,
3297,
67,
27337,
67,
9185,
1695,
2505,
1695,
10304,
1695,
3190,
1695,
3076,
2412,
3113,
1381,
1769,
7734,
775,
288,
10792,
11445,
2514,
273,
394,
10633,
12,
2704,
15322,
12,
2704,
11907,
2932,
1886,
67,
11213,
18,
1574,
6,
3719,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1696,
1489,
12,
780,
880,
13,
1216,
1185,
288,
3639,
514,
1140,
461,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
3639,
309,
261,
5662,
1489,
1630,
12,
718,
3719,
288,
5411,
309,
261,
538,
461,
18,
869,
5630,
7675,
31806,
2932,
5821,
7923,
405,
300,
21,
13,
288,
7734,
309,
261,
538,
461,
18,
869,
5630,
7675,
17514,
1190,
2932,
5821,
1140,
619,
6,
3719,
288,
10792,
309,
261,
67,
10304,
2189,
18,
8837,
55,
8125,
1876,
5480,
19336,
2932,
87,
19328,
315,
397,
880,
16,
1381,
3719,
13491,
327,
638,
31,
7734,
289,
469,
288,
10792,
327,
629,
31,
7734,
289,
7734,
309,
261,
67,
10304,
2189,
18,
8837,
55,
8125,
1876,
2
] |
public void sendClientError(byte icmpType, byte icmpCode, ByteBuffer icmpData, IPPacketHeader header)
|
public void sendClientError(byte icmpType, byte icmpCode, ByteBuffer icmpData, InetAddress icmpSource, IPPacketHeader header)
|
public void sendClientError(byte icmpType, byte icmpCode, ByteBuffer icmpData, IPPacketHeader header) { sendError(CLIENT, icmpType, icmpCode, icmpData, header); }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/17431bd5d4fe75d9d026f2bb886da3b07d0d5ac1/UDPSessionImpl.java/clean/mvvm/main/com/metavize/mvvm/tapi/impl/UDPSessionImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
1227,
668,
12,
7229,
277,
9625,
559,
16,
1160,
277,
9625,
1085,
16,
7400,
277,
9625,
751,
16,
14218,
277,
9625,
1830,
16,
2971,
6667,
1864,
1446,
13,
565,
288,
3639,
17538,
12,
11935,
16,
277,
9625,
559,
16,
277,
9625,
1085,
16,
277,
9625,
751,
16,
1446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
6667,
1864,
1446,
13,
565,
288,
3639,
17538,
12,
11935,
16,
277,
9625,
559,
16,
277,
9625,
1085,
16,
277,
9625,
751,
16,
1446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tracker.getHttpPort()));
|
tracker.getPort()));
|
locateMapOutputs(String jobId, int[] mapTasksNeeded, int reduce) { ArrayList result = new ArrayList(mapTasksNeeded.length); JobInProgress job = getJob(jobId); for (int i = 0; i < mapTasksNeeded.length; i++) { TaskStatus status = job.findFinishedMap(mapTasksNeeded[i]); if (status != null) { String trackerId = (String) taskidToTrackerMap.get(status.getTaskId()); TaskTrackerStatus tracker; synchronized (taskTrackers) { tracker = (TaskTrackerStatus) taskTrackers.get(trackerId); } result.add(new MapOutputLocation(status.getTaskId(), mapTasksNeeded[i], tracker.getHost(), tracker.getHttpPort())); } } return (MapOutputLocation[]) result.toArray(new MapOutputLocation[result.size()]); }
|
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/a21c4ae0ea3a8edfbfaa69f83a9db4043e99186c/JobTracker.java/clean/src/java/org/apache/hadoop/mapred/JobTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2868,
10627,
863,
13856,
12,
780,
13845,
16,
509,
8526,
852,
6685,
11449,
16,
509,
5459,
13,
288,
3639,
2407,
563,
273,
394,
2407,
12,
1458,
6685,
11449,
18,
2469,
1769,
3639,
3956,
13434,
1719,
273,
13024,
12,
4688,
548,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
852,
6685,
11449,
18,
2469,
31,
277,
27245,
288,
1850,
29628,
1267,
273,
1719,
18,
4720,
10577,
863,
12,
1458,
6685,
11449,
63,
77,
19226,
1850,
309,
261,
2327,
480,
446,
13,
288,
2398,
514,
9745,
548,
273,
7734,
261,
780,
13,
29035,
774,
8135,
863,
18,
588,
12,
2327,
18,
588,
30182,
10663,
2398,
3837,
8135,
1482,
9745,
31,
2398,
3852,
261,
4146,
4402,
414,
13,
288,
9079,
9745,
273,
261,
2174,
8135,
1482,
13,
1562,
4402,
414,
18,
588,
12,
16543,
548,
1769,
2398,
289,
2398,
563,
18,
1289,
12,
2704,
1635,
1447,
2735,
12,
2327,
18,
588,
30182,
9334,
4766,
9079,
852,
6685,
11449,
63,
77,
6487,
4766,
2868,
9745,
18,
588,
2594,
9334,
4766,
9079,
9745,
18,
588,
2617,
1435,
10019,
1850,
289,
3639,
289,
3639,
327,
261,
863,
1447,
2735,
63,
5717,
7734,
563,
18,
31447,
12,
2704,
1635,
1447,
2735,
63,
2088,
18,
1467,
1435,
19226,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2868,
10627,
863,
13856,
12,
780,
13845,
16,
509,
8526,
852,
6685,
11449,
16,
509,
5459,
13,
288,
3639,
2407,
563,
273,
394,
2407,
12,
1458,
6685,
11449,
18,
2469,
1769,
3639,
3956,
13434,
1719,
273,
13024,
12,
4688,
548,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
852,
6685,
11449,
18,
2469,
31,
277,
27245,
288,
1850,
29628,
1267,
273,
1719,
18,
4720,
10577,
863,
12,
1458,
6685,
11449,
63,
77,
19226,
1850,
309,
261,
2327,
480,
446,
13,
288,
2398,
514,
9745,
548,
273,
7734,
261,
780,
13,
29035,
774,
8135,
863,
18,
588,
12,
2327,
18,
588,
30182,
10663,
2398,
3837,
8135,
1482,
9745,
31,
2398,
3852,
261,
4146,
4402,
414,
13,
288,
2
] |
for (int i = colStart; i <= colEnd; i++) { boolean nullable = (hasRs ? (rsmeta.isNullable(i) == rsmeta.columnNullable) : (pmeta.isNullable(i) == JDBC30Translation.PARAMETER_NULLABLE)); int colType = (hasRs ? rsmeta.getColumnType(i) : pmeta.getParameterType(i)); int[] outlen = {-1}; int drdaType = (hasRs ?FdocaConstants.mapJdbcTypeToDrdaType(appRequester,colType,nullable,outlen): stmt.getParamDRDAType(i));
|
for (int i = colStart; i <= colEnd; i++) { boolean nullable = (hasRs ? (rsmeta.isNullable(i) == rsmeta.columnNullable) : (pmeta.isNullable(i) == JDBC30Translation.PARAMETER_NULLABLE)); int colType = (hasRs ? rsmeta.getColumnType(i) : pmeta.getParameterType(i)); int[] outlen = {-1}; int drdaType = (hasRs ?FdocaConstants.mapJdbcTypeToDrdaType(appRequester,colType,nullable,outlen): stmt.getParamDRDAType(i));
|
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(length); if (first) { writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { //continued writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); } boolean hasRs = (rsmeta != null); // if don't have result, then we look at parameter meta for (int i = colStart; i <= colEnd; i++) { boolean nullable = (hasRs ? (rsmeta.isNullable(i) == rsmeta.columnNullable) : (pmeta.isNullable(i) == JDBC30Translation.PARAMETER_NULLABLE)); int colType = (hasRs ? rsmeta.getColumnType(i) : pmeta.getParameterType(i)); int[] outlen = {-1}; int drdaType = (hasRs ?FdocaConstants.mapJdbcTypeToDrdaType(appRequester,colType,nullable,outlen): stmt.getParamDRDAType(i)); boolean isDecimal = ((drdaType | 1) == DRDAConstants.DRDA_TYPE_NDECIMAL); int precision = 0, scale = 0; if (hasRs) { precision = rsmeta.getPrecision(i); scale = rsmeta.getScale(i); stmt.setRsDRDAType(i,drdaType); stmt.setRsPrecision(i, precision); stmt.setRsScale(i,scale); } else if (isDecimal) { if (stmt.isOutputParam(i)) ((CallableStatement) stmt.ps).registerOutParameter(i,Types.DECIMAL); precision = pmeta.getPrecision(i); scale = pmeta.getScale(i); } if (SanityManager.DEBUG) trace("jdbcType=" + colType + " \tdrdaType=" + Integer.toHexString(drdaType)); // Length or precision and scale for decimal values. writer.writeByte(drdaType); if (isDecimal) { writer.writeByte(precision); writer.writeByte(scale); } else if (outlen[0] != -1) writer.writeShort(outlen[0]); else if (hasRs) writer.writeShort(rsmeta.getColumnDisplaySize(i)); else writer.writeShort(stmt.getParamLen(i)); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
20982,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
6862,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
4405,
202,
12443,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
202,
430,
261,
3645,
13,
202,
202,
95,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
4960,
9793,
67,
6566,
52,
15146,
67,
2399,
1769,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
28447,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
1213,
267,
5957,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
39,
1856,
67,
6566,
52,
15146,
67,
2399,
1769,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
8560,
67,
28447,
1769,
202,
202,
97,
6862,
1082,
565,
202,
202,
6494,
711,
18880,
273,
261,
5453,
3901,
480,
446,
1769,
202,
759,
225,
309,
2727,
1404,
1240,
563,
16,
1508,
732,
2324,
622,
1569,
2191,
202,
202,
1884,
261,
474,
277,
273,
645,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
20982,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
6862,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
4405,
202,
12443,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
202,
430,
261,
3645,
13,
202,
202,
95,
1082,
202,
6299,
18,
2626,
3216,
2
] |
private static final HashMap parseAttributes(String html) { HashMap attrs = new HashMap(); String name; String value; // Loop over the attributes. // We maintain counter is so that we don't accidentally enter // an infinite loop int i = 0; int count = 0; while (i < html.length() && html.charAt(i) != '>') { if (count++ > 100) { throw new RuntimeException ("Infinite loop in HtmlToText.parseAttributes"); } if (html.startsWith("/>", i)) { // This is an XML-style tag ending: <... /> break; } // This regexp matches an attribute name and an equal // sign, if present. Also eats whitespace before or // after. if (!s_re.match("/\\s*([^\\s=>]+)\\s*(=?)\\s*/", html.substring(i))) { // Apparantly there's no attribute name here. Let's // eat all whitespace and lonely equal signs. s_re.match("/[\\s=]*/", html.substring(i)); i += s_re.end(0); } else { name = s_re.group(1).toLowerCase(); // Move past the current match i += s_re.end(0); // If there is an equal sign, we're expecting the next // token to be a value if (s_re.group(2) == "") { // No equal sign, no value attrs.put(name,null); } else { // is there a single or double quote sign as the // first character? String exp; if (html.charAt(i) == '"') { exp = "/\"([^\"]*)\"\\s*/"; } else if (html.charAt(i) == '\'') { exp = "/\'([^\']*)\'\\s*/"; } else { exp = "/([^\\s>]*)\\s*/"; } if (!s_re.match(exp,html.substring(i))) { // No end quote. value = html.substring(i); i = html.length(); } else { value = s_re.group(1); i += s_re.end(0); } attrs.put(name,expandEntities(value)); } } } return attrs; }
|
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/HtmlToText.java/buggy/archive/core-platform/src/com/arsdigita/util/HtmlToText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
4317,
1109,
2498,
12,
780,
1729,
13,
288,
7734,
4317,
3422,
273,
394,
4317,
5621,
3639,
514,
508,
31,
3639,
514,
460,
31,
3639,
368,
9720,
1879,
326,
1677,
18,
3639,
368,
1660,
17505,
3895,
353,
1427,
716,
732,
2727,
1404,
25961,
1230,
6103,
3639,
368,
392,
14853,
2798,
540,
509,
277,
273,
374,
31,
3639,
509,
1056,
273,
374,
31,
3639,
1323,
261,
77,
411,
1729,
18,
2469,
1435,
597,
1729,
18,
3001,
861,
12,
77,
13,
480,
7481,
13,
288,
5411,
309,
261,
1883,
9904,
405,
2130,
13,
288,
7734,
604,
394,
3235,
10792,
7566,
382,
9551,
2798,
316,
5430,
774,
1528,
18,
2670,
2498,
8863,
5411,
289,
5411,
309,
261,
2620,
18,
17514,
1190,
2932,
26293,
16,
277,
3719,
288,
7734,
368,
1220,
353,
392,
3167,
17,
4060,
1047,
11463,
30,
411,
2777,
20954,
7734,
898,
31,
5411,
289,
5411,
368,
1220,
7195,
1885,
392,
1566,
508,
471,
392,
3959,
5411,
368,
1573,
16,
309,
3430,
18,
225,
8080,
425,
2323,
7983,
1865,
578,
5411,
368,
1839,
18,
5411,
309,
16051,
87,
67,
266,
18,
1916,
2932,
19,
1695,
87,
14,
8178,
1695,
87,
9207,
7941,
1695,
87,
21556,
33,
8535,
1695,
87,
5549,
3113,
1729,
18,
28023,
12,
77,
20349,
288,
7734,
368,
1716,
1065,
970,
715,
1915,
1807,
1158,
1566,
508,
2674,
18,
10559,
1807,
7734,
368,
20729,
777,
7983,
471,
4281,
2357,
3959,
21588,
18,
7734,
272,
67,
266,
18,
1916,
2932,
19,
63,
1695,
87,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
4317,
1109,
2498,
12,
780,
1729,
13,
288,
7734,
4317,
3422,
273,
394,
4317,
5621,
3639,
514,
508,
31,
3639,
514,
460,
31,
3639,
368,
9720,
1879,
326,
1677,
18,
3639,
368,
1660,
17505,
3895,
353,
1427,
716,
732,
2727,
1404,
25961,
1230,
6103,
3639,
368,
392,
14853,
2798,
540,
509,
277,
273,
374,
31,
3639,
509,
1056,
273,
374,
31,
3639,
1323,
261,
77,
411,
1729,
18,
2469,
1435,
597,
1729,
18,
3001,
861,
12,
77,
13,
480,
7481,
13,
288,
5411,
309,
261,
1883,
9904,
405,
2130,
13,
288,
7734,
604,
394,
3235,
10792,
7566,
382,
9551,
2798,
316,
5430,
774,
1528,
18,
2670,
2498,
8863,
5411,
289,
5411,
309,
261,
2620,
18,
2
] |
||
if (amplicon == null) { amplicon = newItem("Amplicon"); String ampliconIdentifier = getColumnValue(columnNameMap, thisRow, DRSC_AMPLICON_COLUMN); String ampliconLength = getColumnValue(columnNameMap, thisRow, AMPLICON_LENGTH_COLUMN); screenHit.setReference("amplicon", amplicon); amplicon.setAttribute("identifier", ampliconIdentifier); amplicon.setAttribute("length", ampliconLength); amplicon.setReference("organism", organism); }
|
screenHit.setReference("amplicon", amplicon);
|
public void process(Reader reader) throws Exception { BufferedReader br = new BufferedReader(reader); if (organism == null) { organism = tgtItemFactory.makeItem(); organism.setAttribute("taxonId", taxonId); writer.store(ItemHelper.convert(organism)); } System.err .println("Processing file: " + getCurrentFile().getName()); Map headerFieldValues = getHeaderFields(br); Item publication = newItem("Publication"); publication.setAttribute("pubMedId", (String) headerFieldValues.get(PMID_PREFIX)); writer.store(ItemHelper.convert(publication)); dataSet = newItem("DataSet"); dataSet.setAttribute("title", "DRSC RNAi data set: " + headerFieldValues.get(SCREEN_NAME_PREFIX)); if (dataSource == null) { dataSource = newItem("DataSource"); dataSource.setAttribute("name", "Drosophila RNAi Screening Center"); writer.store(ItemHelper.convert(dataSource)); } dataSet.setReference("dataSource", dataSource); writer.store(ItemHelper.convert(dataSet)); Item rnaiScreen= newItem("RNAiScreen"); rnaiScreen.setAttribute("name", (String) headerFieldValues.get(SCREEN_NAME_PREFIX)); rnaiScreen.setAttribute("phenotypeDescription", (String) headerFieldValues.get(PHENOTYPE_DESCRIPTION_PREFIX)); rnaiScreen.setAttribute("cellLine", (String) headerFieldValues.get(CELL_LINE_PREFIX)); rnaiScreen.setReference("organism", organism); rnaiScreen.setReference("publication", publication); writer.store(ItemHelper.convert(rnaiScreen)); String[] columnNameRow = null; // a Map from column name to column index Map columnNameMap = new HashMap(); Iterator tsvIter; try { tsvIter = TextFileUtil.parseTabDelimitedReader(br); } catch (Exception e) { throw new BuildException("cannot parse file: " + getCurrentFile(), e); } while (tsvIter.hasNext()) { String [] thisRow = (String[]) tsvIter.next(); if (columnNameRow == null) { // the first row has the column headings columnNameRow = thisRow; for (int i = 0; i < columnNameRow.length; i++) { columnNameMap.put(columnNameRow[i], new Integer(i)); } continue; } String hitsColumn = getColumnValue(columnNameMap, thisRow, HIT_COLUMN); String [] hitStrengths = hitsColumn.split("[ \\t]*,[ \\t]*"); System.err.println(hitsColumn); if (hitsColumn.equals("")) { continue; } System.err.println(hitStrengths[0] + " - l: " + hitStrengths.length); Item amplicon = null; for (int hitStrengthIndex = 0; hitStrengthIndex < hitStrengths.length; hitStrengthIndex++) { String hitStrength = hitStrengths[hitStrengthIndex]; // get columns using the column names from the header line String geneNameColumn = getColumnValue(columnNameMap, thisRow, FBGN_COLUMN); String [] geneNames = geneNameColumn.split("[ \\t]*,[ \\t]*"); for (int geneIndex = 0; geneIndex < geneNames.length; geneIndex++) { String geneName = geneNames[geneIndex]; int geneNameColonIndex = geneName.indexOf(':'); if (geneNameColonIndex != -1) { geneName = geneName.substring(geneNameColonIndex + 1).trim(); } Item gene = newGene(geneName); Item screenHit = newItem("ScreenHit"); screenHit.setReference("screen", rnaiScreen); screenHit.setReference("gene", gene); String phenotype = getColumnValue(columnNameMap, thisRow, PHENOTYPE_COLUMN); screenHit.setAttribute("phenotype", phenotype); if (hitStrength != null && hitStrength.trim().length() > 0) { screenHit.setAttribute("strength", hitStrength); } if (amplicon == null) { amplicon = newItem("Amplicon"); String ampliconIdentifier = getColumnValue(columnNameMap, thisRow, DRSC_AMPLICON_COLUMN); String ampliconLength = getColumnValue(columnNameMap, thisRow, AMPLICON_LENGTH_COLUMN); screenHit.setReference("amplicon", amplicon); amplicon.setAttribute("identifier", ampliconIdentifier); amplicon.setAttribute("length", ampliconLength); amplicon.setReference("organism", organism); } writer.store(ItemHelper.convert(screenHit)); } } writer.store(ItemHelper.convert(amplicon)); } }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/e4074b352c282fceb2f3597e362c3e42321951e8/FlyRNAiScreenConverter.java/buggy/bio/sources/flyrnai-screens/main/src/org/intermine/bio/dataconversion/FlyRNAiScreenConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
10633,
5186,
273,
394,
10633,
12,
10530,
1769,
3639,
309,
261,
22543,
6228,
422,
446,
13,
288,
5411,
15501,
6228,
273,
11680,
1180,
1733,
18,
6540,
1180,
5621,
5411,
15501,
6228,
18,
542,
1499,
2932,
8066,
265,
548,
3113,
25458,
548,
1769,
5411,
2633,
18,
2233,
12,
1180,
2276,
18,
6283,
12,
22543,
6228,
10019,
3639,
289,
7734,
2332,
18,
370,
263,
8222,
2932,
7798,
585,
30,
315,
397,
5175,
812,
7675,
17994,
10663,
7734,
1635,
1446,
974,
1972,
273,
7911,
2314,
12,
2848,
1769,
7734,
4342,
20574,
273,
26536,
2932,
4782,
367,
8863,
3639,
20574,
18,
542,
1499,
2932,
10174,
13265,
548,
3113,
261,
780,
13,
1446,
974,
1972,
18,
588,
12,
12728,
734,
67,
6307,
10019,
3639,
2633,
18,
2233,
12,
1180,
2276,
18,
6283,
12,
28631,
10019,
3639,
14837,
273,
26536,
2932,
13676,
8863,
3639,
14837,
18,
542,
1499,
2932,
2649,
3113,
315,
6331,
2312,
534,
11277,
77,
501,
444,
30,
315,
11794,
397,
1446,
974,
1972,
18,
588,
12,
27908,
67,
1985,
67,
6307,
10019,
3639,
309,
261,
892,
1830,
422,
446,
13,
288,
5411,
10233,
273,
26536,
2932,
8597,
8863,
5411,
10233,
18,
542,
1499,
2932,
529,
3113,
315,
40,
6973,
23169,
330,
69,
534,
11277,
77,
10146,
310,
25766,
8863,
5411,
2633,
18,
2233,
12,
1180,
2276,
18,
6283,
12,
892,
1830,
10019,
3639,
289,
3639,
14837,
18,
542,
2404,
2932,
892,
1830,
3113,
10233,
1769,
3639,
2633,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
10633,
5186,
273,
394,
10633,
12,
10530,
1769,
3639,
309,
261,
22543,
6228,
422,
446,
13,
288,
5411,
15501,
6228,
273,
11680,
1180,
1733,
18,
6540,
1180,
5621,
5411,
15501,
6228,
18,
542,
1499,
2932,
8066,
265,
548,
3113,
25458,
548,
1769,
5411,
2633,
18,
2233,
12,
1180,
2276,
18,
6283,
12,
22543,
6228,
10019,
3639,
289,
7734,
2332,
18,
370,
263,
8222,
2932,
7798,
585,
30,
315,
397,
5175,
812,
7675,
17994,
10663,
7734,
1635,
1446,
974,
1972,
273,
7911,
2314,
12,
2848,
1769,
7734,
4342,
20574,
273,
26536,
2932,
4782,
367,
8863,
3639,
20574,
18,
542,
1499,
2932,
10174,
13265,
548,
3113,
261,
780,
13,
2
] |
public static String buildUPFile(String tagId,int method,String methodNodeId,String targetNodeId,List extraElements) throws PortalException {
|
public static String buildUPFile(String tagId,int method,String methodNodeId,String targetNodeId,String extraElements) throws PortalException {
|
public static String buildUPFile(String tagId,int method,String methodNodeId,String targetNodeId,List extraElements) throws PortalException { return (buildUPFileBase(tagId,method,methodNodeId,targetNodeId,extraElements)).concat(PORTAL_URL_SUFFIX); }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/d380e1dd88f17d8f6b24e104a67b0adc9af2df86/UPFileSpec.java/buggy/source/org/jasig/portal/UPFileSpec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
3079,
812,
12,
780,
29238,
16,
474,
707,
16,
780,
707,
15883,
16,
780,
1018,
15883,
16,
780,
2870,
3471,
13,
1216,
25478,
503,
288,
3639,
327,
261,
3510,
3079,
812,
2171,
12,
2692,
548,
16,
2039,
16,
2039,
15883,
16,
3299,
15883,
16,
7763,
3471,
13,
2934,
16426,
12,
6354,
1013,
67,
1785,
67,
14964,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
3079,
812,
12,
780,
29238,
16,
474,
707,
16,
780,
707,
15883,
16,
780,
1018,
15883,
16,
780,
2870,
3471,
13,
1216,
25478,
503,
288,
3639,
327,
261,
3510,
3079,
812,
2171,
12,
2692,
548,
16,
2039,
16,
2039,
15883,
16,
3299,
15883,
16,
7763,
3471,
13,
2934,
16426,
12,
6354,
1013,
67,
1785,
67,
14964,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String getLocalPart(String qname)
|
public String getLocalPart()
|
public static String getLocalPart(String qname) { int index = qname.indexOf(':'); return (index < 0) ? qname : qname.substring(index+1); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0a59c863c802607a229820e928e851db21b9d055/QName.java/buggy/src/org/apache/xalan/utils/QName.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
6993,
1988,
1435,
225,
288,
565,
509,
770,
273,
12621,
18,
31806,
2668,
2497,
1769,
565,
327,
261,
1615,
411,
374,
13,
692,
12621,
294,
12621,
18,
28023,
12,
1615,
15,
21,
1769,
225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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
6993,
1988,
1435,
225,
288,
565,
509,
770,
273,
12621,
18,
31806,
2668,
2497,
1769,
565,
327,
261,
1615,
411,
374,
13,
692,
12621,
294,
12621,
18,
28023,
12,
1615,
15,
21,
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
] |
boot()
|
boot() throws VM_PragmaInterruptible
|
boot() { if (eventLoggers == null) { int n = VM_Scheduler.numProcessors; eventLoggers = new VM_EventLogger[n]; for (int i = 0; i < n; ++i) eventLoggers[i] = new VM_EventLogger(); } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b3eb8a5fcae0dc552de280cd4760954770ad3f0d/VM_EventLogger.java/buggy/rvm/src/vm/profiler/VM_EventLogger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4835,
1435,
1216,
8251,
67,
2050,
9454,
14126,
1523,
1377,
288,
1377,
309,
261,
2575,
1343,
6215,
422,
446,
13,
540,
288,
540,
509,
290,
273,
8251,
67,
11870,
18,
2107,
18155,
31,
540,
871,
1343,
6215,
273,
394,
8251,
67,
1133,
3328,
63,
82,
15533,
540,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
965,
77,
13,
5411,
871,
1343,
6215,
63,
77,
65,
273,
394,
8251,
67,
1133,
3328,
5621,
540,
289,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4835,
1435,
1216,
8251,
67,
2050,
9454,
14126,
1523,
1377,
288,
1377,
309,
261,
2575,
1343,
6215,
422,
446,
13,
540,
288,
540,
509,
290,
273,
8251,
67,
11870,
18,
2107,
18155,
31,
540,
871,
1343,
6215,
273,
394,
8251,
67,
1133,
3328,
63,
82,
15533,
540,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
965,
77,
13,
5411,
871,
1343,
6215,
63,
77,
65,
273,
394,
8251,
67,
1133,
3328,
5621,
540,
289,
1377,
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
] |
final StringBuffer sbChangenumber = new StringBuffer();
|
final List changeNumbers = new ArrayList();
|
public List getHistory(Date lastBuild, Date now, long quietPeriod) { ArrayList mods = null; final Perl5Util util = new Perl5Util(); //Init last modified to last build date. _lastModified = lastBuild; // next line is a trick to get the variable usable within the adhoc handler. final StringBuffer sbChangenumber = new StringBuffer(); final StringBuffer sbModifiedTime = new StringBuffer(); //if this._P4lastChange != p4 changes -m 1 -s submitted <depotpath> execP4Command("changes -m 1 -s submitted " + _P4View, new P4HandlerAdapter() { public void process(String line) { if (util.match("/Change/", line)) { //Parse out the change number sbChangenumber.append(util.substitute("s/Change\\s([0-9]*?)\\son\\s.*/$1/gx", line)); log("Latest change is " + sbChangenumber, Project.MSG_INFO); } else if (util.match("/error/", line)) { throw new BuildException("Perforce Error, check client settings and/or server"); } } }); // and collect info for this change final StringBuffer sbDescription = new StringBuffer(); execP4Command("describe -s " + sbChangenumber.toString(), new P4HandlerAdapter() { public void process(String line) { if (util.match("/error/", line)) { throw new BuildException("Perforce Error, check client settings and/or server"); } sbDescription.append(line); sbDescription.append("\n"); } }); // now, lets parse the data out String userName = util.substitute("s/Change\\s([0-9]*?)\\sby\\s(.*?)\\@.*?\\son\\s(.*?\\s.*?)\\n\\n(.*)\\n\\nAffected\\sfiles.*/$2/s", sbDescription.toString()); String sModifiedTime = util.substitute("s/Change\\s([0-9]*?)\\sby\\s(.*?)\\@.*?\\son\\s(.*?\\s.*?)\\n\\n(.*)\\n\\nAffected\\sfiles.*/$3/s", sbDescription.toString()); String comment = util.substitute("s/Change\\s([0-9]*?)\\sby\\s(.*?)\\@.*?\\son\\s(.*?\\s.*?)\\n\\n(.*)\\n\\nAffected\\sfiles.*/$4/s", sbDescription.toString()); comment = util.substitute("s/\\t//g", comment); Date modifiedTime; try { modifiedTime = p4Date.parse(sModifiedTime); } catch (Exception ex) { log("Wrong date format exception caught. Using lastModified date from project instead."); modifiedTime = _lastModified; } if (modifiedTime.compareTo(lastBuild) > 0) { // if it differs, we build, _P4lastChange = Integer.parseInt(sbChangenumber.toString()); getAntTask().getProject().setProperty("p4element.change", sbChangenumber.toString()); // the rest should be a list of the files affected and the resp action String affectedFiles = util.substitute("s/Change\\s([0-9]*?)\\sby\\s(.*?)\\@.*?\\son\\s(.*?\\s.*?)\\n\\n(.*)\\n\\nAffected\\sfiles.*?\\n\\n(.*)\\n\\n/$5/s", sbDescription.toString()); ArrayList files = new ArrayList(); util.split(files, "/\\n/s", affectedFiles); Iterator iter = files.iterator(); while (iter.hasNext()) { String file = (String) iter.next(); String folderName = util.substitute("s/\\.\\.\\.\\s(\\/\\/.*\\/)(.*?)\\s(.*)/$1/s", file); String fileName = util.substitute("s/\\.\\.\\.\\s(\\/\\/.*\\/)(.*?)\\s(.*)/$2/s", file); String action = util.substitute("s/\\.\\.\\.\\s(\\/\\/.*\\/)(.*?)\\s(.*)/$3/s", file); Modification mod = new Modification(); mod.comment = comment; mod.fileName = fileName; mod.folderName = folderName; mod.modifiedTime = modifiedTime; mod.type = action; mod.userName = userName; if (mods == null) { mods = new ArrayList(); } mods.add(mod); } } else { // otherwise we don't build } if (mods == null) { mods = new ArrayList(); } return mods; }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/99e89aac36b1f68976a3f45bd6743c06961b90e9/P4Element.java/buggy/main/src/net/sourceforge/cruisecontrol/element/P4Element.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
202,
202,
19558,
15546,
273,
446,
31,
202,
202,
6385,
5722,
80,
25,
1304,
1709,
273,
394,
5722,
80,
25,
1304,
5621,
202,
202,
759,
2570,
1142,
4358,
358,
1142,
1361,
1509,
18,
202,
202,
67,
2722,
4575,
273,
1142,
3116,
31,
202,
202,
759,
1024,
980,
353,
279,
28837,
358,
336,
326,
2190,
15603,
3470,
326,
1261,
76,
504,
1838,
18,
202,
202,
6385,
6674,
2393,
782,
539,
21998,
273,
394,
6674,
5621,
202,
202,
6385,
6674,
2393,
4575,
950,
273,
394,
6674,
5621,
202,
202,
759,
430,
333,
6315,
52,
24,
2722,
3043,
480,
293,
24,
3478,
300,
81,
404,
300,
87,
9638,
411,
323,
13130,
803,
34,
202,
202,
4177,
52,
24,
2189,
2932,
6329,
300,
81,
404,
300,
87,
9638,
315,
397,
389,
52,
24,
1767,
16,
1082,
202,
2704,
453,
24,
1503,
4216,
1435,
288,
9506,
202,
482,
918,
1207,
12,
780,
980,
13,
288,
6862,
202,
430,
261,
1367,
18,
1916,
2932,
19,
3043,
19,
3113,
980,
3719,
288,
25083,
202,
759,
3201,
596,
326,
2549,
1300,
25083,
202,
18366,
782,
539,
21998,
18,
6923,
12,
1367,
18,
1717,
17207,
2932,
87,
19,
3043,
1695,
87,
3816,
20,
17,
29,
5772,
8535,
1695,
816,
1695,
87,
4509,
11141,
21,
19,
75,
92,
3113,
980,
10019,
25083,
202,
1330,
2932,
18650,
2549,
353,
315,
397,
2393,
782,
539,
21998,
16,
5420,
18,
11210,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
202,
202,
19558,
15546,
273,
446,
31,
202,
202,
6385,
5722,
80,
25,
1304,
1709,
273,
394,
5722,
80,
25,
1304,
5621,
202,
202,
759,
2570,
1142,
4358,
358,
1142,
1361,
1509,
18,
202,
202,
67,
2722,
4575,
273,
1142,
3116,
31,
202,
202,
759,
1024,
980,
353,
279,
28837,
358,
336,
326,
2190,
15603,
3470,
326,
1261,
76,
504,
1838,
18,
202,
202,
6385,
6674,
2393,
782,
539,
21998,
273,
394,
6674,
5621,
202,
202,
6385,
6674,
2393,
4575,
950,
273,
394,
6674,
5621,
202,
202,
759,
430,
333,
6315,
52,
24,
2722,
3043,
480,
293,
24,
3478,
300,
2
] |
public boolean deleteRaw(File f) throws IOException {
|
public boolean deleteRaw(Path f) throws IOException {
|
public boolean deleteRaw(File f) throws IOException { return dfs.delete(getPath(f)); }
|
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DistributedFileSystem.java/clean/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
|
[
1,
8585,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1430,
4809,
12,
743,
284,
13,
1216,
1860,
288,
3639,
327,
13868,
18,
3733,
12,
588,
743,
12,
74,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void compileApplyImports(ClassGenerator classGen, int min, int max) { final XSLTC xsltc = classGen.getParser().getXSLTC(); final ConstantPoolGen cpg = classGen.getConstantPool(); final Vector names = xsltc.getNamesIndex(); // Clear some datastructures _namedTemplates = new Hashtable(); _neededTemplates = new Hashtable(); _templateIHs = new Hashtable(); _templateILs = new Hashtable(); _patternGroups = new Vector[32]; _rootPattern = null; // IMPORTANT: Save orignal & complete set of templates!!!! Vector oldTemplates = _templates; // Gather templates that are within the scope of this import _templates = new Vector(); final Enumeration templates = oldTemplates.elements(); while (templates.hasMoreElements()) { final Template template = (Template)templates.nextElement(); final int prec = template.getImportPrecedence(); if ((prec >= min) && (prec < max)) addTemplate(template); } // Process all patterns from those templates processPatterns(_keys); // Create the applyTemplates() method final org.apache.bcel.generic.Type[] argTypes = new org.apache.bcel.generic.Type[3]; argTypes[0] = Util.getJCRefType(DOM_INTF_SIG); argTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG); argTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG); final String[] argNames = new String[3]; argNames[0] = DOCUMENT_PNAME; argNames[1] = ITERATOR_PNAME; argNames[2] = TRANSLET_OUTPUT_PNAME; final InstructionList mainIL = new InstructionList(); final MethodGenerator methodGen = new MethodGenerator(ACC_PUBLIC | ACC_FINAL, org.apache.bcel.generic.Type.VOID, argTypes, argNames, functionName()+'_'+max, getClassName(), mainIL, classGen.getConstantPool()); methodGen.addException("org.apache.xalan.xsltc.TransletException"); // No templates? Then just stuff in a single 'return' instruction if (_neededTemplates.size() == 0) { mainIL.append(new RETURN()); methodGen.stripAttributes(true); methodGen.setMaxLocals(); methodGen.setMaxStack(); methodGen.removeNOPs(); classGen.addMethod(methodGen.getMethod()); // Restore original/complete set of templates for the transformation _templates = oldTemplates; return; } // Create the local variablea final LocalVariableGen current; current = methodGen.addLocalVariable2("current", org.apache.bcel.generic.Type.INT, mainIL.getEnd()); _currentIndex = current.getIndex(); // Create the "body" instruction list that will eventually hold the // code for the entire method (other ILs will be appended). final InstructionList body = new InstructionList(); body.append(NOP); // Create an instruction list that contains the default next-node // iteration final InstructionList ilLoop = new InstructionList(); ilLoop.append(methodGen.loadIterator()); ilLoop.append(methodGen.nextNode()); ilLoop.append(DUP); ilLoop.append(new ISTORE(_currentIndex)); // The body of this code can get very large - large than can be handled // by a single IFNE(body.getStart()) instruction - need workaround: final BranchHandle ifeq = ilLoop.append(new IFEQ(null)); final BranchHandle loop = ilLoop.append(new GOTO_W(null)); ifeq.setTarget(ilLoop.append(RETURN)); // applyTemplates() ends here! final InstructionHandle ihLoop = ilLoop.getStart(); // Distinguish attribute/element/namespace tests for further processing final int[] types = new int[DOM.NTYPES + names.size()]; for (int i = 0; i < types.length; i++) { types[i] = i; } final boolean[] isAttribute = new boolean[types.length]; final boolean[] isNamespace = new boolean[types.length]; for (int i = 0; i < names.size(); i++) { final String name = (String)names.elementAt(i); isAttribute[i+DOM.NTYPES] = isAttributeName(name); isNamespace[i+DOM.NTYPES] = isNamespaceName(name); } // Compile all templates - regardless of pattern type compileTemplateCalls(classGen, methodGen, ihLoop, min, max); // Handle template with explicit "*" pattern final TestSeq elemTest = _testSeq[DOM.ELEMENT]; InstructionHandle ihElem = ihLoop; if (elemTest != null) { ihElem = elemTest.compile(classGen, methodGen, ihLoop); } // Handle template with explicit "@*" pattern final TestSeq attrTest = _testSeq[DOM.ATTRIBUTE]; InstructionHandle ihAttr = ihLoop; if (attrTest != null) { ihAttr = attrTest.compile(classGen, methodGen, ihAttr); } // Do tests for id() and key() patterns first InstructionList ilKey = null; if (_idxTestSeq != null) { loop.setTarget(_idxTestSeq.compile(classGen, methodGen, body.getStart())); ilKey = _idxTestSeq.getInstructionList(); } else { loop.setTarget(body.getStart()); } // If there is a match on node() we need to replace ihElem // and ihText if the priority of node() is higher InstructionHandle ihText = ihLoop; if (_nodeTestSeq != null) { // Compare priorities of node() and "*" double nodePrio = _nodeTestSeq.getPriority(); int nodePos = _nodeTestSeq.getPosition(); double elemPrio = (0 - Double.MAX_VALUE); int elemPos = Integer.MIN_VALUE; if (elemTest != null) { elemPrio = elemTest.getPriority(); elemPos = elemTest.getPosition(); } if (elemPrio == Double.NaN || elemPrio < nodePrio || (elemPrio == nodePrio && elemPos < nodePos)) { ihElem = _nodeTestSeq.compile(classGen, methodGen, ihLoop); } // Compare priorities of node() and text() final TestSeq textTest = _testSeq[DOM.TEXT]; double textPrio = (0 - Double.MAX_VALUE); int textPos = Integer.MIN_VALUE; if (textTest != null) { textPrio = textTest.getPriority(); textPos = textTest.getPosition(); } if (textPrio == Double.NaN || textPrio < nodePrio || (textPrio == nodePrio && textPos < nodePos)) { ihText = _nodeTestSeq.compile(classGen, methodGen, ihLoop); _testSeq[DOM.TEXT] = _nodeTestSeq; } } // Handle templates with "ns:*" pattern InstructionHandle elemNamespaceHandle = ihElem; InstructionList nsElem = compileNamespaces(classGen, methodGen, isNamespace, isAttribute, false, ihElem); if (nsElem != null) elemNamespaceHandle = nsElem.getStart(); // Handle templates with "ns:@*" pattern InstructionList nsAttr = compileNamespaces(classGen, methodGen, isNamespace, isAttribute, true, ihAttr); InstructionHandle attrNamespaceHandle = ihAttr; if (nsAttr != null) attrNamespaceHandle = nsAttr.getStart(); // Handle templates with "ns:elem" or "ns:@attr" pattern final InstructionHandle[] targets = new InstructionHandle[types.length]; for (int i = DOM.NTYPES; i < targets.length; i++) { final TestSeq testSeq = _testSeq[i]; // Jump straight to namespace tests ? if (isNamespace[i]) { if (isAttribute[i]) targets[i] = attrNamespaceHandle; else targets[i] = elemNamespaceHandle; } // Test first, then jump to namespace tests else if (testSeq != null) { if (isAttribute[i]) targets[i] = testSeq.compile(classGen, methodGen, attrNamespaceHandle); else targets[i] = testSeq.compile(classGen, methodGen, elemNamespaceHandle); } else { targets[i] = ihLoop; } } // Handle pattern with match on root node - default: loop targets[DOM.ROOT] = _rootPattern != null ? getTemplateInstructionHandle(_rootPattern.getTemplate()) : ihLoop; // Handle any pattern with match on text nodes - default: loop targets[DOM.TEXT] = _testSeq[DOM.TEXT] != null ? _testSeq[DOM.TEXT].compile(classGen, methodGen, ihText) : ihText; // This DOM-type is not in use - default: process next node targets[DOM.NAMESPACE] = ihLoop; // Match unknown element in DOM - default: check for namespace match targets[DOM.ELEMENT] = elemNamespaceHandle; // Match unknown attribute in DOM - default: check for namespace match targets[DOM.ATTRIBUTE] = attrNamespaceHandle; // Match on processing instruction - default: loop InstructionHandle ihPI = ihLoop; if (_nodeTestSeq != null) ihPI = ihElem; if (_testSeq[DOM.PROCESSING_INSTRUCTION] != null) { targets[DOM.PROCESSING_INSTRUCTION] = _testSeq[DOM.PROCESSING_INSTRUCTION]. compile(classGen, methodGen, ihPI); } else { targets[DOM.PROCESSING_INSTRUCTION] = ihPI; } // Match on comments - default: process next node InstructionHandle ihComment = ihLoop; if (_nodeTestSeq != null) ihComment = ihElem; targets[DOM.COMMENT] = _testSeq[DOM.COMMENT] != null ? _testSeq[DOM.COMMENT].compile(classGen, methodGen, ihComment) : ihComment; // Now compile test sequences for various match patterns: for (int i = DOM.NTYPES; i < targets.length; i++) { final TestSeq testSeq = _testSeq[i]; // Jump straight to namespace tests ? if ((testSeq == null) || (isNamespace[i])) { if (isAttribute[i]) targets[i] = attrNamespaceHandle; else targets[i] = elemNamespaceHandle; } // Match on node type else { if (isAttribute[i]) targets[i] = testSeq.compile(classGen, methodGen, attrNamespaceHandle); else targets[i] = testSeq.compile(classGen, methodGen, elemNamespaceHandle); } } if (ilKey != null) body.insert(ilKey); // Append first code in applyTemplates() - get type of current node final int getType = cpg.addInterfaceMethodref(DOM_INTF, "getType", "(I)I"); body.append(methodGen.loadDOM()); body.append(new ILOAD(_currentIndex)); body.append(new INVOKEINTERFACE(getType, 2)); // Append switch() statement - main dispatch loop in applyTemplates() InstructionHandle disp = body.append(new SWITCH(types,targets,ihLoop)); // Append all the "case:" statements appendTestSequences(body); // Append the actual template code appendTemplateCode(body); // Append NS:* node tests (if any) if (nsElem != null) body.append(nsElem); // Append NS:@* node tests (if any) if (nsAttr != null) body.append(nsAttr); // putting together constituent instruction lists mainIL.append(new GOTO_W(ihLoop)); mainIL.append(body); // fall through to ilLoop mainIL.append(ilLoop); peepHoleOptimization(methodGen); methodGen.stripAttributes(true); methodGen.setMaxLocals(); methodGen.setMaxStack(); methodGen.removeNOPs(); classGen.addMethod(methodGen.getMethod()); // Restore original (complete) set of templates for this transformation _templates = oldTemplates; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/44e30452db6dad6cb68d165edcd789692589832e/Mode.java/clean/src/org/apache/xalan/xsltc/compiler/Mode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11100,
7001,
13347,
12,
797,
3908,
1106,
7642,
16,
474,
1154,
16,
474,
1896,
15329,
202,
6385,
60,
4559,
15988,
30903,
5111,
33,
1106,
7642,
18,
588,
2678,
7675,
588,
60,
4559,
15988,
5621,
202,
6385,
6902,
2864,
43,
1331,
8365,
33,
1106,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
5018,
1973,
33,
30903,
5111,
18,
588,
1557,
1016,
5621,
202,
759,
18188,
362,
329,
20637,
8813,
1823,
202,
67,
13188,
8218,
33,
2704,
5582,
14544,
5621,
202,
67,
17471,
8218,
33,
2704,
5582,
14544,
5621,
202,
67,
3202,
45,
44,
87,
33,
2704,
5582,
14544,
5621,
202,
67,
3202,
2627,
87,
33,
2704,
5582,
14544,
5621,
202,
67,
4951,
3621,
33,
2704,
5018,
63,
1578,
15533,
202,
67,
3085,
3234,
33,
2011,
31,
202,
759,
20445,
6856,
30,
4755,
280,
724,
287,
10,
7806,
281,
278,
792,
8502,
23045,
202,
5018,
1673,
8218,
33,
67,
8502,
31,
202,
759,
26092,
27380,
270,
395,
76,
396,
266,
25850,
451,
742,
1306,
792,
2211,
5666,
202,
67,
8502,
33,
2704,
5018,
5621,
202,
6385,
21847,
8502,
33,
1673,
8218,
18,
6274,
5621,
202,
17523,
12,
8502,
18,
5332,
7417,
3471,
10756,
95,
202,
6385,
26033,
270,
278,
29761,
28657,
2283,
13,
8502,
18,
4285,
1046,
5621,
202,
6385,
474,
4036,
33,
3202,
18,
588,
5010,
1386,
24092,
5621,
202,
430,
12443,
4036,
34,
33,
1154,
13,
10,
10,
12,
4036,
32,
1896,
3719,
1289,
2283,
12,
3202,
1769,
202,
97,
202,
759,
2227,
454,
13317,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11100,
7001,
13347,
12,
797,
3908,
1106,
7642,
16,
474,
1154,
16,
474,
1896,
15329,
202,
6385,
60,
4559,
15988,
30903,
5111,
33,
1106,
7642,
18,
588,
2678,
7675,
588,
60,
4559,
15988,
5621,
202,
6385,
6902,
2864,
43,
1331,
8365,
33,
1106,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
5018,
1973,
33,
30903,
5111,
18,
588,
1557,
1016,
5621,
202,
759,
18188,
362,
329,
20637,
8813,
1823,
202,
67,
13188,
8218,
33,
2704,
5582,
14544,
5621,
202,
67,
17471,
8218,
33,
2704,
5582,
14544,
5621,
202,
67,
3202,
45,
44,
87,
33,
2704,
5582,
14544,
5621,
202,
67,
3202,
2627,
87,
33,
2704,
5582,
14544,
5621,
202,
67,
4951,
3621,
33,
2704,
5018,
63,
1578,
2
] |
||
if (this.pushbackToken != EOF && tt != ERROR) { String message = Context.getMessage2("msg.token.replaces.pushback", tokenToString(tt), tokenToString(this.pushbackToken)); throw new RuntimeException(message); }
|
if (this.pushbackToken != EOF && tt != ERROR) Context.codeBug();
|
public void ungetToken(int tt) { if (this.pushbackToken != EOF && tt != ERROR) { String message = Context.getMessage2("msg.token.replaces.pushback", tokenToString(tt), tokenToString(this.pushbackToken)); throw new RuntimeException(message); } this.pushbackToken = tt; tokenno--; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/5739d875ab983543fdf729f70a15773fdbe9b1bd/TokenStream.java/clean/src/org/mozilla/javascript/TokenStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
588,
1345,
12,
474,
3574,
13,
288,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
597,
3574,
480,
5475,
13,
288,
5411,
514,
883,
273,
1772,
18,
24906,
22,
2932,
3576,
18,
2316,
18,
266,
11350,
18,
6206,
823,
3113,
7734,
1147,
5808,
12,
748,
3631,
1147,
5808,
12,
2211,
18,
6206,
823,
1345,
10019,
5411,
604,
394,
3235,
12,
2150,
1769,
3639,
289,
3639,
333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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
588,
1345,
12,
474,
3574,
13,
288,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
597,
3574,
480,
5475,
13,
288,
5411,
514,
883,
273,
1772,
18,
24906,
22,
2932,
3576,
18,
2316,
18,
266,
11350,
18,
6206,
823,
3113,
7734,
1147,
5808,
12,
748,
3631,
1147,
5808,
12,
2211,
18,
6206,
823,
1345,
10019,
5411,
604,
394,
3235,
12,
2150,
1769,
3639,
289,
3639,
333,
18,
6206,
823,
1345,
273,
3574,
31,
3639,
1147,
2135,
413,
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
] |
return ValueFormatter.format( oValue, fs, rtc.getLocale( ), df );
|
return ValueFormatter.format( oValue, fs, rtc.getULocale( ), df );
|
public final String formatCategoryValue( int iType, Object oValue, int iDateTimeUnit ) { if ( oValue == null ) { return IConstants.NULL_STRING; } if ( iType == IConstants.TEXT ) // MOST LIKELY { return oValue.toString( ); } else if ( iType == IConstants.DATE_TIME ) { final Calendar ca = (Calendar) oValue; SimpleDateFormat sdf = null; if ( fs == null ) // ONLY COMPUTE INTERNALLY IF FORMAT SPECIFIER // ISN'T DEFINED { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iDateTimeUnit ) ); } // ADJUST THE START POSITION try { return ValueFormatter.format( ca, fs, rtc.getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); return IConstants.NULL_STRING; } } else if ( ( iType & IConstants.NUMERICAL ) == IConstants.NUMERICAL ) { DecimalFormat df = null; if ( fs == null ) // ONLY COMPUTE INTERNALLY IF FORMAT SPECIFIER // ISN'T DEFINED { df = new DecimalFormat( getNumericPattern( ) ); } try { return ValueFormatter.format( oValue, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); return IConstants.NULL_STRING; } } return IConstants.NULL_STRING; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/AutoScale.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
740,
4457,
620,
12,
509,
277,
559,
16,
1033,
320,
620,
16,
1082,
202,
474,
277,
5096,
2802,
262,
202,
95,
202,
202,
430,
261,
320,
620,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
467,
2918,
18,
8560,
67,
5804,
31,
202,
202,
97,
202,
202,
430,
261,
277,
559,
422,
467,
2918,
18,
5151,
262,
368,
490,
4005,
8961,
47,
2247,
61,
202,
202,
95,
1082,
202,
2463,
320,
620,
18,
10492,
12,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
277,
559,
422,
467,
2918,
18,
4594,
67,
4684,
262,
202,
202,
95,
1082,
202,
6385,
5542,
3474,
273,
261,
7335,
13,
320,
620,
31,
1082,
202,
5784,
11878,
31789,
273,
446,
31,
1082,
202,
430,
261,
2662,
422,
446,
262,
368,
20747,
13846,
9099,
17361,
4685,
61,
11083,
10449,
22872,
10591,
1082,
202,
759,
4437,
50,
11,
56,
2030,
7263,
2056,
1082,
202,
95,
9506,
202,
87,
2180,
273,
394,
17005,
12,
385,
5096,
18,
588,
16028,
1630,
12,
277,
5096,
2802,
262,
11272,
1082,
202,
97,
1082,
202,
759,
11738,
46,
5996,
12786,
10485,
26808,
1082,
202,
698,
1082,
202,
95,
9506,
202,
2463,
1445,
5074,
18,
2139,
12,
3474,
16,
2662,
16,
436,
5111,
18,
588,
3916,
12,
262,
16,
31789,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
14804,
503,
3013,
338,
262,
1082,
202,
95,
9506,
202,
4901,
18,
1330,
12,
3013,
338,
11272,
9506,
202,
2463,
467,
2918,
18,
8560,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
740,
4457,
620,
12,
509,
277,
559,
16,
1033,
320,
620,
16,
1082,
202,
474,
277,
5096,
2802,
262,
202,
95,
202,
202,
430,
261,
320,
620,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
467,
2918,
18,
8560,
67,
5804,
31,
202,
202,
97,
202,
202,
430,
261,
277,
559,
422,
467,
2918,
18,
5151,
262,
368,
490,
4005,
8961,
47,
2247,
61,
202,
202,
95,
1082,
202,
2463,
320,
620,
18,
10492,
12,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
277,
559,
422,
467,
2918,
18,
4594,
67,
4684,
262,
202,
202,
95,
1082,
202,
6385,
5542,
3474,
273,
261,
7335,
13,
320,
620,
31,
1082,
202,
5784,
11878,
2
] |
MinSizeConstraint c = (MinSizeConstraint)this.appliedConstraints.get( MIN_LENGTH_CONSTRAINT ); if(c == null) {
|
MinSizeConstraint c = (MinSizeConstraint)this.appliedConstraints.get( MIN_LENGTH_CONSTRAINT ); if(c == null) {
|
public int getMinLength() { MinSizeConstraint c = (MinSizeConstraint)this.appliedConstraints.get( MIN_LENGTH_CONSTRAINT ); if(c == null) { if(this.appliedConstraints.containsKey( LENGTH_CONSTRAINT )) { SizeConstraint sc = (SizeConstraint)this.appliedConstraints.get(LENGTH_CONSTRAINT); return sc.getRange().getFromInt(); } return 0; } return c.getMinSize(); }
|
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9555,
1782,
1435,
288,
202,
202,
2930,
1225,
5806,
276,
273,
261,
2930,
1225,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
6989,
67,
7096,
67,
15199,
11272,
202,
202,
430,
12,
71,
422,
446,
13,
288,
5411,
309,
12,
2211,
18,
438,
3110,
4878,
18,
12298,
653,
12,
24967,
67,
15199,
8623,
288,
7734,
6321,
5806,
888,
273,
261,
1225,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
7096,
67,
15199,
1769,
7734,
327,
888,
18,
588,
2655,
7675,
588,
1265,
1702,
5621,
5411,
289,
5411,
327,
374,
31,
3639,
289,
202,
202,
2463,
276,
18,
588,
2930,
1225,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
9555,
1782,
1435,
288,
202,
202,
2930,
1225,
5806,
276,
273,
261,
2930,
1225,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
6989,
67,
7096,
67,
15199,
11272,
202,
202,
430,
12,
71,
422,
446,
13,
288,
5411,
309,
12,
2211,
18,
438,
3110,
4878,
18,
12298,
653,
12,
24967,
67,
15199,
8623,
288,
7734,
6321,
5806,
888,
273,
261,
1225,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
7096,
67,
15199,
1769,
7734,
327,
888,
18,
588,
2655,
7675,
588,
1265,
1702,
5621,
5411,
289,
5411,
327,
374,
31,
3639,
289,
202,
202,
2463,
276,
18,
588,
2930,
1225,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
public void buildAllMarkers(IProgressMonitor monitor) { building = true; try { int markerLimit = view.getMarkerLimit(); monitor.beginTask(MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); try { monitor.subTask(MarkerMessages.MarkerView_waiting_on_changes); if (monitor.isCanceled()) { return; } monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); lastMarkers = MarkerList.compute(view.getEnabledFilters(), subMonitor, true); if (monitor.isCanceled()) { return; } view.refreshMarkerCounts(monitor); } catch (CoreException e) { Util.log(e); lastMarkers = new MarkerList(); return; } if (monitor.isCanceled()) { return; } ViewerSorter sorter = view.getViewer().getSorter(); if (markerLimit == -1 || isShowingHierarchy()) { sorter.sort(view.getViewer(), lastMarkers.toArray()); } else { monitor.subTask(MarkerMessages.MarkerView_18); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); lastMarkers = SortUtil.getFirst(lastMarkers, (Comparator) sorter, markerLimit, mon); if (monitor.isCanceled()) { return; } sorter.sort(view.getViewer(), lastMarkers.toArray()); } if (lastMarkers.getSize() == 0) { categories = new MarkerCategory[0]; monitor.done(); return; } monitor.subTask(MarkerMessages.MarkerView_queueing_updates); if (isShowingHierarchy()) { categories = buildHierarchy(lastMarkers, 0, lastMarkers .getSize() - 1, 0); } if (monitor.isCanceled()) { return; } monitor.done(); } finally { building = false; } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/463fb046537cc5974ca1c2e10d796b2225e725a8/MarkerAdapter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
1595,
21644,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
3510,
310,
273,
638,
31,
202,
202,
698,
288,
1082,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
1082,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
6862,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
1082,
202,
698,
288,
9506,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
9506,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
10259,
25083,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3072,
310,
67,
1884,
67,
22807,
1769,
9506,
202,
1676,
5491,
7187,
720,
7187,
273,
394,
2592,
5491,
7187,
12,
10259,
16,
25083,
202,
2163,
1769,
9506,
202,
2722,
21644,
273,
14742,
682,
18,
9200,
12,
1945,
18,
588,
1526,
5422,
9334,
25083,
202,
1717,
7187,
16,
638,
1769,
9506,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
1945,
18,
9144,
7078,
9211,
12,
10259,
1769,
1082,
202,
14683,
261,
25341,
425,
13,
288,
9506,
202,
1304,
18,
1330,
12,
73,
1769,
9506,
202,
2722,
21644,
273,
394,
14742,
682,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
18415,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
1595,
21644,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
3510,
310,
273,
638,
31,
202,
202,
698,
288,
1082,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
5621,
1082,
202,
10259,
18,
10086,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
3657,
16,
6862,
202,
11145,
3039,
422,
300,
21,
692,
4752,
294,
2130,
1769,
1082,
202,
698,
288,
9506,
202,
10259,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
20241,
67,
265,
67,
6329,
1769,
9506,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
10259,
25083,
202,
18,
1717,
2174,
12,
7078,
5058,
18,
7078,
1767,
67,
2
] |
|
if (comparer == null) return a.equals(b); else return comparer.equals(a, b);
|
if (comparer == null) { return a.equals(b); } else { return comparer.equals(a, b); }
|
private boolean keyEquals(Object a, Object b) { if (comparer == null) return a.equals(b); else return comparer.equals(a, b); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/CustomHashtable.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CustomHashtable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
498,
8867,
12,
921,
279,
16,
1033,
324,
13,
288,
3639,
309,
261,
832,
21804,
422,
446,
13,
5411,
327,
279,
18,
14963,
12,
70,
1769,
3639,
469,
5411,
327,
532,
21804,
18,
14963,
12,
69,
16,
324,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
498,
8867,
12,
921,
279,
16,
1033,
324,
13,
288,
3639,
309,
261,
832,
21804,
422,
446,
13,
5411,
327,
279,
18,
14963,
12,
70,
1769,
3639,
469,
5411,
327,
532,
21804,
18,
14963,
12,
69,
16,
324,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw newValue.getRuntime().newNameError(name + " is a read-only variable");
|
throw newValue.getRuntime().newNameError(name + " is a read-only variable", name);
|
public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; throw newValue.getRuntime().newNameError(name + " is a read-only variable"); }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/1278c5bb3507a052d150d814f15453542ae41aed/ReadonlyAccessor.java/buggy/src/org/jruby/internal/runtime/ReadonlyAccessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5524,
12,
7937,
10340,
921,
6129,
13,
288,
3639,
1815,
6129,
480,
446,
31,
3639,
604,
6129,
18,
588,
5576,
7675,
2704,
461,
668,
12,
529,
397,
315,
353,
279,
855,
17,
3700,
2190,
3113,
508,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5524,
12,
7937,
10340,
921,
6129,
13,
288,
3639,
1815,
6129,
480,
446,
31,
3639,
604,
6129,
18,
588,
5576,
7675,
2704,
461,
668,
12,
529,
397,
315,
353,
279,
855,
17,
3700,
2190,
3113,
508,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!path.endsWith("/")) path += "/"; String fullpath = path + getName(); try { ProjectBrowser pb = ProjectBrowser.TheInstance; System.out.println("Writing " + fullpath + "..."); pb.showStatus("Writing " + fullpath + "..."); File f = new File(fullpath); if (f.exists() && !overwrite) { String t = "Overwrite " + fullpath; int response = JOptionPane.showConfirmDialog(pb, t, t, JOptionPane.YES_NO_OPTION); if (response == JOptionPane.NO_OPTION) return; } XMIWriter writer = new XMIWriter(_model,fullpath); writer.gen(); System.out.println("Wrote " + fullpath); pb.showStatus("Wrote " + fullpath); } catch (Exception ex) { ex.printStackTrace(); }
|
save(path, overwrite, null);
|
public void save(String path, boolean overwrite) { if (!path.endsWith("/")) path += "/"; String fullpath = path + getName(); try { ProjectBrowser pb = ProjectBrowser.TheInstance; System.out.println("Writing " + fullpath + "..."); pb.showStatus("Writing " + fullpath + "..."); File f = new File(fullpath); if (f.exists() && !overwrite) { String t = "Overwrite " + fullpath; int response = JOptionPane.showConfirmDialog(pb, t, t, JOptionPane.YES_NO_OPTION); if (response == JOptionPane.NO_OPTION) return; } XMIWriter writer = new XMIWriter(_model,fullpath); writer.gen(); System.out.println("Wrote " + fullpath); pb.showStatus("Wrote " + fullpath); } catch (Exception ex) { ex.printStackTrace(); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/fdac7178d0d34f5b115168dbf474159070f17350/ProjectMemberModel.java/clean/src_new/org/argouml/uml/ProjectMemberModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
12,
780,
589,
16,
1250,
6156,
13,
288,
565,
309,
16051,
803,
18,
5839,
1190,
2932,
4898,
3719,
589,
1011,
4016,
31,
565,
514,
15170,
273,
589,
397,
1723,
5621,
565,
775,
288,
1377,
5420,
9132,
6386,
273,
5420,
9132,
18,
1986,
1442,
31,
1377,
2332,
18,
659,
18,
8222,
2932,
18835,
315,
397,
15170,
397,
26456,
1769,
1377,
6386,
18,
4500,
1482,
2932,
18835,
315,
397,
15170,
397,
26456,
1769,
1377,
1387,
284,
273,
394,
1387,
12,
2854,
803,
1769,
1377,
309,
261,
74,
18,
1808,
1435,
597,
401,
19274,
13,
288,
202,
780,
268,
273,
315,
20832,
315,
397,
15170,
31,
202,
474,
766,
273,
202,
225,
804,
1895,
8485,
18,
4500,
11269,
6353,
12,
5733,
16,
268,
16,
268,
16,
6862,
202,
46,
1895,
8485,
18,
29081,
67,
3417,
67,
7425,
1769,
202,
430,
261,
2740,
422,
804,
1895,
8485,
18,
3417,
67,
7425,
13,
327,
31,
1377,
289,
1377,
1139,
7492,
2289,
2633,
273,
394,
1139,
7492,
2289,
24899,
2284,
16,
2854,
803,
1769,
1377,
2633,
18,
4507,
5621,
1377,
2332,
18,
659,
18,
8222,
2932,
59,
21436,
315,
397,
15170,
1769,
1377,
6386,
18,
4500,
1482,
2932,
59,
21436,
315,
397,
15170,
1769,
565,
289,
565,
1044,
261,
503,
431,
13,
288,
1377,
431,
18,
1188,
6332,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
12,
780,
589,
16,
1250,
6156,
13,
288,
565,
309,
16051,
803,
18,
5839,
1190,
2932,
4898,
3719,
589,
1011,
4016,
31,
565,
514,
15170,
273,
589,
397,
1723,
5621,
565,
775,
288,
1377,
5420,
9132,
6386,
273,
5420,
9132,
18,
1986,
1442,
31,
1377,
2332,
18,
659,
18,
8222,
2932,
18835,
315,
397,
15170,
397,
26456,
1769,
1377,
6386,
18,
4500,
1482,
2932,
18835,
315,
397,
15170,
397,
26456,
1769,
1377,
1387,
284,
273,
394,
1387,
12,
2854,
803,
1769,
1377,
309,
261,
74,
18,
1808,
1435,
597,
401,
19274,
13,
288,
202,
780,
268,
273,
315,
20832,
315,
397,
15170,
31,
202,
474,
766,
273,
202,
225,
804,
1895,
8485,
18,
4500,
11269,
2
] |
throw new RubyBugException("can't convert to UTF8");
|
Asserts.assertNotReached("can't convert to UTF8");
|
public static RubyString pack(ArrayList list, RubyString iFmt) { Ruby ruby = iFmt.getRuntime(); char[] lFmt = iFmt.getValue().toCharArray(); int lFmtLength = lFmt.length; int idx = 0; int lLeftInArray = list.size(); StringBuffer lResult = new StringBuffer(); IRubyObject lFrom; String lCurElemString; for (int i = 0; i < lFmtLength;) { int lLength = 1; //first skip all spaces char lType = lFmt[i++]; if (Character.isWhitespace(lType)) continue; char lNext = i < lFmtLength ? lFmt[i] : '\0'; if (lNext == '!' || lNext == '_') { if (sNatStr.indexOf(lType) != -1) { lNext = ++i < lFmtLength ? lFmt[i] : '\0'; } else throw new ArgumentError(ruby, "'" + lNext + "' allowed only after types " + sNatStr); } if (lNext == '*') { lLength = "@Xxu".indexOf(lType) == -1 ? lLeftInArray : 0; lNext = ++i < lFmtLength ? lFmt[i] : '\0'; } else if (Character.isDigit(lNext)) { int lEndIndex = i; for (; lEndIndex < lFmtLength; lEndIndex++) if (!Character.isDigit(lFmt[lEndIndex])) break; lLength = Integer.parseInt(new String(lFmt, i, lEndIndex - i)); //an exception may occur here if an int can't hold this but ... i = lEndIndex; lNext = i < lFmtLength ? lFmt[i] : '\0'; } //no else, the original value of length is correct switch (lType) { case '%' : throw new ArgumentError(ruby, "% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) lCurElemString = ""; else lCurElemString = convert2String(lFrom); if (lFmt[i - 1] == '*') lLength = lCurElemString.length(); switch (lType) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= lLength) lResult.append(lCurElemString.toCharArray(), 0, lLength); else //need padding { //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it lResult.append(lCurElemString); lLength -= lCurElemString.length(); grow(lResult, (lType == 'a') ? sNil10 : sSp10, lLength); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int lByte = 0; int lIndex = 0; char lCurChar; int lPadLength = 0; if (lLength > lCurElemString.length()) { //I don't understand this, why divide by 2 lPadLength = (lLength - lCurElemString.length() + 1) / 2; lLength = lCurElemString.length(); } for (lIndex = 0; lIndex < lLength;) { lCurChar = lCurElemString.charAt(lIndex++); if ((lCurChar & 1) != 0) //if the low bit of the current char is set lByte |= 128; //set the high bit of the result if ((lIndex & 7) != 0) //if the index is not a multiple of 8, we are not on a byte boundary lByte >>= 1; //shift the byte else { //we are done with one byte, append it to the result and go for the next lResult.append((char) (lByte & 0xff)); lByte = 0; } } if ((lLength & 7) != 0) //if the length is not a multiple of 8 { //we need to pad the last byte lByte >>= 7 - (lLength & 7); lResult.append((char) (lByte & 0xff)); } //do some padding, I don't understand the padding strategy lLength = lResult.length(); lResult.setLength(lLength + lPadLength); } break; case 'B' : { int lByte = 0; int lIndex = 0; char lCurChar; int lPadLength = 0; if (lLength > lCurElemString.length()) { //I don't understand this, why divide by 2 lPadLength = (lLength - lCurElemString.length() + 1) / 2; lLength = lCurElemString.length(); } for (lIndex = 0; lIndex < lLength;) { lCurChar = lCurElemString.charAt(lIndex++); lByte |= lCurChar & 1; if ((lIndex & 7) != 0) //if the index is not a multiple of 8, we are not on a byte boundary lByte <<= 1; //shift the byte else { //we are done with one byte, append it to the result and go for the next lResult.append((char) (lByte & 0xff)); lByte = 0; } } if ((lLength & 7) != 0) //if the length is not a multiple of 8 { //we need to pad the last byte lByte <<= 7 - (lLength & 7); lResult.append((char) (lByte & 0xff)); } //do some padding, I don't understand the padding strategy lLength = lResult.length(); lResult.setLength(lLength + lPadLength); } break; case 'h' : { int lByte = 0; int lIndex = 0; char lCurChar; int lPadLength = 0; if (lLength > lCurElemString.length()) { //I don't undestand this why divide by 2 lPadLength = (lLength - lCurElemString.length() + 1) / 2; lLength = lCurElemString.length(); } for (lIndex = 0; lIndex < lLength;) { lCurChar = lCurElemString.charAt(lIndex++); if (Character.isJavaIdentifierStart(lCurChar)) //this test may be too lax but it is the same as in MRI lByte |= (((lCurChar & 15) + 9) & 15) << 4; else lByte |= (lCurChar & 15) << 4; if ((lIndex & 1) != 0) lByte >>= 4; else { lResult.append((char) (lByte & 0xff)); lByte = 0; } } if ((lLength & 1) != 0) { lResult.append((char) (lByte & 0xff)); } //do some padding, I don't understand the padding strategy lLength = lResult.length(); lResult.setLength(lLength + lPadLength); } break; case 'H' : { int lByte = 0; int lIndex = 0; char lCurChar; int lPadLength = 0; if (lLength > lCurElemString.length()) { //I don't undestand this why divide by 2 lPadLength = (lLength - lCurElemString.length() + 1) / 2; lLength = lCurElemString.length(); } for (lIndex = 0; lIndex < lLength;) { lCurChar = lCurElemString.charAt(lIndex++); if (Character.isJavaIdentifierStart(lCurChar)) //this test may be too lax but it is the same as in MRI lByte |= ((lCurChar & 15) + 9) & 15; else lByte |= (lCurChar & 15); if ((lIndex & 1) != 0) lByte <<= 4; else { lResult.append((char) (lByte & 0xff)); lByte = 0; } } if ((lLength & 1) != 0) { lResult.append((char) (lByte & 0xff)); } //do some padding, I don't understand the padding strategy lLength = lResult.length(); lResult.setLength(lLength + lPadLength); } break; } break; case 'x' : grow(lResult, sNil10, lLength); break; case 'X' : shrink(lResult, lLength); break; case '@' : lLength -= lResult.length(); if (lLength > 0) grow(lResult, sNil10, lLength); lLength = -lLength; if (lLength > 0) shrink(lResult, lLength); break; case 'c' : case 'C' : while (lLength-- > 0) { char c; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) c = 0; else { c = (char) (RubyNumeric.num2long(lFrom) & 0xff); } lResult.append(c); } break; case 's' : case 'v' : case 'S' : while (lLength-- > 0) { int s; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) s = 0; else { s = (int) (RubyNumeric.num2long(lFrom) & 0xffff); } lResult.append((char) (s & 0xff)); lResult.append((char) ((s & 0xff00) >> 8)); } break; case 'n' : while (lLength-- > 0) { int s; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) s = 0; else { s = (int) (RubyNumeric.num2long(lFrom) & 0xffff); } lResult.append((char) ((s & 0xff00) >> 8)); lResult.append((char) (s & 0xff)); } break; case 'i' : case 'I' : case 'l' : case 'L' : case 'V' : while (lLength-- > 0) { int s; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) s = 0; else { s = (int) (RubyNumeric.num2long(lFrom)); } lResult.append((char) (s & 0xff)); lResult.append((char) ((s >> 8) & 0xff)); lResult.append((char) ((s >> 16) & 0xff)); lResult.append((char) ((s >> 24) & 0xff)); } break; case 'N' : while (lLength-- > 0) { int s; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) s = 0; else { s = (int) (RubyNumeric.num2long(lFrom)); } lResult.append((char) ((s >> 24) & 0xff)); lResult.append((char) ((s >> 16) & 0xff)); lResult.append((char) ((s >> 8) & 0xff)); lResult.append((char) (s & 0xff)); } break; case 'u' : case 'm' : if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) lCurElemString = ""; else lCurElemString = convert2String(lFrom); if (lLength <= 2) lLength = 45; else lLength = lLength / 3 * 3; for (;;) { encodes(ruby, lResult, lCurElemString, lLength, lType); if (lLength < lCurElemString.length()) lCurElemString = lCurElemString.substring(lLength); else break; } break; case 'M' : if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) lCurElemString = ""; else lCurElemString = convert2String(lFrom); if (lLength <= 1) lLength = 72; qpencode(lResult, lCurElemString, lLength); break; case 'U' : char[] c = new char[lLength]; for (int lCurCharIdx = 0; lLength-- > 0; lCurCharIdx++) { long l; if (lLeftInArray-- > 0) lFrom = (IRubyObject) list.get(idx++); else throw new ArgumentError(ruby, sTooFew); if (lFrom == ruby.getNil()) l = 0; else { l = RubyNumeric.num2long(lFrom); } c[lCurCharIdx] = (char) l; } String s = new String(c); try { lResult.append(RubyString.bytesToString(s.getBytes("UTF-8"))); } catch (java.io.UnsupportedEncodingException e) { throw new RubyBugException("can't convert to UTF8"); } break; } } return RubyString.newString(ruby, lResult.toString()); }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/071973606d94103b2d5cb6c793aa1e8809fc7b2a/Pack.java/buggy/org/jruby/util/Pack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
19558,
666,
16,
19817,
780,
277,
16090,
13,
288,
3639,
19817,
22155,
273,
277,
16090,
18,
588,
5576,
5621,
3639,
1149,
8526,
328,
16090,
273,
277,
16090,
18,
24805,
7675,
869,
15936,
5621,
3639,
509,
328,
16090,
1782,
273,
328,
16090,
18,
2469,
31,
3639,
509,
2067,
273,
374,
31,
3639,
509,
328,
3910,
382,
1076,
273,
666,
18,
1467,
5621,
3639,
6674,
328,
1253,
273,
394,
6674,
5621,
3639,
15908,
10340,
921,
328,
1265,
31,
3639,
514,
328,
2408,
7498,
780,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
328,
16090,
1782,
30943,
288,
5411,
509,
328,
1782,
273,
404,
31,
5411,
368,
3645,
2488,
777,
7292,
5411,
1149,
328,
559,
273,
328,
16090,
63,
77,
9904,
15533,
5411,
309,
261,
7069,
18,
291,
9431,
12,
80,
559,
3719,
7734,
1324,
31,
5411,
1149,
328,
2134,
273,
277,
411,
328,
16090,
1782,
692,
328,
16090,
63,
77,
65,
294,
2337,
20,
13506,
5411,
309,
261,
80,
2134,
422,
15502,
747,
328,
2134,
422,
4427,
13,
288,
7734,
309,
261,
87,
23779,
1585,
18,
31806,
12,
80,
559,
13,
480,
300,
21,
13,
288,
10792,
328,
2134,
273,
965,
77,
411,
328,
16090,
1782,
692,
328,
16090,
63,
77,
65,
294,
2337,
20,
13506,
7734,
289,
469,
10792,
604,
394,
9236,
12,
27768,
16,
5862,
397,
328,
2134,
397,
2491,
2935,
1338,
1839,
1953,
315,
397,
272,
23779,
1585,
1769,
5411,
289,
5411,
309,
261,
80,
2134,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
19558,
666,
16,
19817,
780,
277,
16090,
13,
288,
3639,
19817,
22155,
273,
277,
16090,
18,
588,
5576,
5621,
3639,
1149,
8526,
328,
16090,
273,
277,
16090,
18,
24805,
7675,
869,
15936,
5621,
3639,
509,
328,
16090,
1782,
273,
328,
16090,
18,
2469,
31,
3639,
509,
2067,
273,
374,
31,
3639,
509,
328,
3910,
382,
1076,
273,
666,
18,
1467,
5621,
3639,
6674,
328,
1253,
273,
394,
6674,
5621,
3639,
15908,
10340,
921,
328,
1265,
31,
3639,
514,
328,
2408,
7498,
780,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
328,
16090,
1782,
30943,
288,
5411,
509,
328,
1782,
273,
404,
31,
5411,
368,
3645,
2488,
777,
7292,
5411,
2
] |
if ((args.length >= 4) && args[3].equalsIgnoreCase("bypass")== true) {
|
if ((args.length >= 5) && args[4].equalsIgnoreCase("bypass")== true) {
|
public static void main(String[] args) { String certnick = "JSSCATestCert"; int testCipher = 0; String testhost = "localhost"; int testport = 29753; String certDbPath = null; String passwdFile = "passwords"; boolean bypass = false; String usage = "USAGE:\n" + "java org.mozilla.jss.tests.JSS_SSLClient" + " <cert db path> <password file>\n" + " [server port] [bypass] [test cipher] [server host] "; try { if ( ((String)args[0]).toLowerCase().equals("-h") || args.length < 2) { System.out.println(usage); System.exit(1); } if ( args.length >= 2 ) { certDbPath = (String)args[0]; passwdFile = (String)args[1]; } if ( certDbPath != null) setCertDbPath(certDbPath); if ( args.length >= 3) { testport = new Integer(args[2]).intValue(); System.out.println("using port: " + testport); } if ((args.length >= 4) && args[3].equalsIgnoreCase("bypass")== true) { bypass = true; } if ( args.length >= 5 ) { testCipher = new Integer(args[4]).intValue(); System.out.println("testCipher " + testCipher); } if ( args.length == 6 ) { testhost = (String)args[5]; System.out.println("testhost" + testhost); } Thread.sleep(5000); } catch (Exception e) { System.out.println("Exception caught " + e.toString()); e.printStackTrace(); } JSS_SSLClient jssTest = new JSS_SSLClient(); try { if ( !testhost.equals("localhost") ) jssTest.setHostName(testhost); if ( testport != 29753 ) jssTest.setPort(testport); jssTest.setBypass(bypass); jssTest.setTestCertCallback(true); jssTest.setClientCertNick(certnick); if ( passwdFile != null ) jssTest.setPasswordFile(passwdFile); if ( testCipher != 0 ) { try { jssTest.setCipher(testCipher); jssTest.setEOF(new Integer(testCipher).toString()); jssTest.doIt(); while (!jssTest.isHandshakeCompleted()) { // Put the main thread to sleep. In case we do not // get any response within 10 sec, then we shutdown. try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) { System.out.println("Thread Interrupted ...\n"); } } jssTest.clearHandshakeCompleted(); } catch (Exception ex) { System.out.println("Exception caught " + ex.getMessage()); ex.printStackTrace(); System.exit(1); } // Set EOF to null to trigger server socket close jssTest.setCipher(testCipher); jssTest.setEOF("null"); jssTest.doIt(); while (!jssTest.isHandshakeCompleted()) { // Put the main thread to sleep. In case we do not // get any response within 10 sec, then we shutdown. try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) { System.out.println("Thread Interrupted ...\n"); } } jssTest.clearHandshakeCompleted(); } else { for ( int i=0; i<Constants.jssCipherSuites.length; i++ ) { try { jssTest.setCipher(Constants.jssCipherSuites[i]); jssTest.setEOF(new Integer( Constants.jssCipherSuites[i]).toString()); jssTest.doIt(); while (!jssTest.isHandshakeCompleted()) { // Put the main thread to sleep. In case we do not // get any response within 10 sec, then we shutdown. try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) { System.out.println("Thread Interrupted ...\n"); } } jssTest.clearHandshakeCompleted(); } catch (Exception ex) { } } // Set EOF to null to trigger server socket close jssTest.setCipher(1); jssTest.setEOF("null"); jssTest.doIt(); while (!jssTest.isHandshakeCompleted()) { //Do nothing } jssTest.clearHandshakeCompleted(); } } catch (Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); System.exit(1); } }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/509a25cea2e0a8b08b0acb656da604fd0b0d8181/JSS_SSLClient.java/buggy/security/jss/org/mozilla/jss/tests/JSS_SSLClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
7734,
514,
225,
3320,
17091,
282,
273,
315,
46,
1260,
14130,
395,
5461,
14432,
3639,
509,
377,
1842,
13896,
273,
374,
31,
3639,
514,
225,
1842,
2564,
282,
273,
315,
13014,
14432,
3639,
509,
377,
1842,
655,
282,
273,
12899,
5877,
23,
31,
3639,
514,
225,
3320,
4331,
743,
273,
446,
31,
3639,
514,
225,
19093,
812,
273,
315,
3664,
87,
14432,
3639,
1250,
17587,
273,
629,
31,
7734,
514,
225,
4084,
1377,
273,
315,
29550,
5581,
82,
6,
397,
7734,
315,
6290,
2358,
18,
8683,
15990,
18,
78,
1049,
18,
16341,
18,
46,
1260,
67,
6745,
1227,
6,
397,
7734,
315,
411,
7593,
1319,
589,
34,
411,
3664,
585,
5333,
82,
6,
397,
7734,
315,
306,
3567,
1756,
65,
306,
29604,
65,
306,
3813,
5867,
65,
306,
3567,
1479,
65,
13636,
7734,
775,
288,
5411,
309,
261,
14015,
780,
13,
1968,
63,
20,
65,
2934,
869,
5630,
7675,
14963,
2932,
17,
76,
7923,
747,
5397,
833,
18,
2469,
411,
576,
13,
288,
7734,
2332,
18,
659,
18,
8222,
12,
9167,
1769,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
13491,
309,
261,
833,
18,
2469,
1545,
576,
262,
288,
7734,
3320,
4331,
743,
273,
261,
780,
13,
1968,
63,
20,
15533,
7734,
19093,
812,
273,
261,
780,
13,
1968,
63,
21,
15533,
5411,
289,
13491,
309,
261,
3320,
4331,
743,
480,
446,
13,
7734,
444,
5461,
4331,
743,
12,
7593,
4331,
743,
1769,
13491,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
7734,
514,
225,
3320,
17091,
282,
273,
315,
46,
1260,
14130,
395,
5461,
14432,
3639,
509,
377,
1842,
13896,
273,
374,
31,
3639,
514,
225,
1842,
2564,
282,
273,
315,
13014,
14432,
3639,
509,
377,
1842,
655,
282,
273,
12899,
5877,
23,
31,
3639,
514,
225,
3320,
4331,
743,
273,
446,
31,
3639,
514,
225,
19093,
812,
273,
315,
3664,
87,
14432,
3639,
1250,
17587,
273,
629,
31,
7734,
514,
225,
4084,
1377,
273,
315,
29550,
5581,
82,
6,
397,
7734,
315,
6290,
2358,
18,
8683,
15990,
18,
78,
1049,
18,
16341,
18,
46,
1260,
67,
6745,
1227,
6,
397,
7734,
315,
411,
7593,
1319,
589,
34,
411,
2
] |
return reallyCalcChecksum(aLine);
|
return super.calcChecksum(aLine);
|
private long calcChecksum(String aLine) { if (aLine.startsWith("import ")) { return IGNORE; } else { return reallyCalcChecksum(aLine); } }
|
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/741454e7f18b1714499eda0c44dbdf75518683b0/StrictDuplicateCodeCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/StrictDuplicateCodeCheck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1525,
7029,
10723,
12,
780,
279,
1670,
13,
3639,
288,
5411,
309,
261,
69,
1670,
18,
17514,
1190,
2932,
5666,
315,
3719,
288,
7734,
327,
14919,
31,
5411,
289,
5411,
469,
288,
7734,
327,
2240,
18,
12448,
10723,
12,
69,
1670,
1769,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
309,
261,
69,
1670,
18,
17514,
1190,
2932,
5666,
315,
3719,
288,
7734,
327,
14919,
31,
5411,
289,
5411,
469,
288,
7734,
327,
2240,
18,
12448,
10723,
12,
69,
1670,
1769,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 boolean validatePage() { if (super.validatePage()) { if (getContainerFullPath().segmentCount() > 0) { IProject actualProject = ResourcesPlugin.getWorkspace().getRoot().getProject( getContainerFullPath().segment(0)); switch (getContainerFullPath().segmentCount()) { case 0 : // no project selected setErrorMessage( Messages.getString( "WizardNewWOResourcePage.errorMessage.containerNoProject")); return false; case 1 : if (!actualProject .getFile(IWOLipsPluginConstants.PROJECT_FILE_NAME) .exists()) { // no webobjects project selected setErrorMessage( Messages.getString( "WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } break; default : if (!actualProject .getFile(IWOLipsPluginConstants.PROJECT_FILE_NAME) .exists()) { // no webobjects project selected setErrorMessage( Messages.getString( "WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } else { // project is selected and wo project - now check for subproject IPath projectFilePath = getContainerFullPath().removeFirstSegments( 1).append( IWOLipsPluginConstants.PROJECT_FILE_NAME); if (!actualProject .getFile(projectFilePath) .exists()) { // no webobjects subproject selected setErrorMessage( Messages.getString( "WizardNewWOResourcePage.errorMessage.containerNoWOSubproject")); return false; } } break; } // selection validated return true; } else { // no project selected (container path is < 1) setErrorMessage( Messages.getString( "WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } } else { // super validation failed return false; } }
|
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/d534a64502ae1e8eae9b0e0806af6e349690d4ae/WizardNewWOResourcePage.java/clean/src/wolips/java/org/objectstyle/wolips/wizards/WizardNewWOResourcePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6494,
5662,
1964,
1435,
95,
202,
202,
430,
12,
9565,
18,
5662,
1964,
10756,
95,
1082,
202,
430,
12,
588,
2170,
24173,
7675,
9273,
1380,
1435,
34,
20,
15329,
9506,
202,
45,
4109,
18672,
4109,
33,
6862,
202,
3805,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
4109,
12,
25083,
202,
588,
2170,
24173,
7675,
9273,
12,
20,
10019,
9506,
202,
9610,
12,
588,
2170,
24173,
7675,
9273,
1380,
10756,
95,
6862,
202,
3593,
20,
30,
25083,
202,
759,
82,
556,
28290,
8109,
25083,
202,
542,
14935,
12,
6862,
1082,
202,
5058,
18,
588,
780,
12,
6862,
9506,
202,
6,
27130,
1908,
59,
51,
1420,
1964,
18,
1636,
1079,
18,
3782,
2279,
4109,
7923,
1769,
25083,
202,
2463,
5743,
31,
6862,
202,
3593,
21,
30,
25083,
202,
430,
12,
5,
18672,
4109,
6862,
1082,
202,
18,
29925,
12,
45,
59,
1741,
7146,
3773,
2918,
18,
17147,
67,
3776,
67,
1985,
13,
6862,
1082,
202,
18,
1808,
10756,
95,
6862,
1082,
202,
759,
3338,
73,
1075,
489,
87,
4406,
8109,
6862,
1082,
202,
542,
14935,
12,
6862,
9506,
202,
5058,
18,
588,
780,
12,
6862,
6862,
202,
6,
27130,
1908,
59,
51,
1420,
1964,
18,
1636,
1079,
18,
3782,
2279,
59,
51,
4109,
7923,
1769,
6862,
1082,
202,
2463,
5743,
31,
25083,
202,
97,
25083,
202,
8820,
31,
6862,
202,
1886,
30,
25083,
202,
430,
12,
5,
18672,
4109,
6862,
1082,
202,
18,
29925,
12,
45,
59,
1741,
7146,
3773,
2918,
18,
17147,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6494,
5662,
1964,
1435,
95,
202,
202,
430,
12,
9565,
18,
5662,
1964,
10756,
95,
1082,
202,
430,
12,
588,
2170,
24173,
7675,
9273,
1380,
1435,
34,
20,
15329,
9506,
202,
45,
4109,
18672,
4109,
33,
6862,
202,
3805,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
4109,
12,
25083,
202,
588,
2170,
24173,
7675,
9273,
12,
20,
10019,
9506,
202,
9610,
12,
588,
2170,
24173,
7675,
9273,
1380,
10756,
95,
6862,
202,
3593,
20,
30,
25083,
202,
759,
82,
556,
28290,
8109,
25083,
202,
542,
14935,
12,
6862,
1082,
202,
5058,
18,
588,
780,
12,
6862,
9506,
202,
6,
27130,
1908,
59,
51,
1420,
1964,
18,
1636,
1079,
18,
3782,
2279,
4109,
7923,
1769,
2
] |
||
} } } } } if (bondCount == 3) {
|
} } } } }else if (bondCount == 3) {
|
public DescriptorValue calculate(AtomContainer ac) throws CDKException { RingSet rs = (new AllRingsFinder()).findAllRings(ac); HueckelAromaticityDetector.detectAromaticity(ac, rs, true); double xlogP = 0; org.openscience.cdk.interfaces.Atom[] atoms = ac.getAtoms(); String symbol = ""; int bondCount = 0; int hsCount = 0; double maxBondOrder = 0; for (int i = 0; i < atoms.length; i++) { symbol = atoms[i].getSymbol(); bondCount = ac.getBondCount(atoms[i]); hsCount = getHydrogenCount(ac, atoms[i]); maxBondOrder = ac.getMaximumBondOrder(atoms[i]); if (symbol.equals("C")) { if (bondCount == 2) { // C sp if (hsCount >= 1) { xlogP += 0.209; // // System.out...println("XLOGP: 1"); } else { if (maxBondOrder == 2.0) { xlogP += 2.073; // // System.out...println("XLOGP: 2"); } else if (maxBondOrder == 3.0) { xlogP += 0.33; // // System.out...println("XLOGP: 3"); } } } if (bondCount == 3) { // C sp2 if (atoms[i].getFlag(CDKConstants.ISAROMATIC)) { if (getAromaticCarbonsCount(ac, atoms[i]) == 2) { if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP += 0.296; // // System.out...println("XLOGP: 4"); } else { xlogP -= 0.151; // // System.out...println("XLOGP: 5"); } } else { xlogP += 0.337; // // System.out...println("XLOGP: 6"); } } else if (getAromaticCarbonsCount(ac, atoms[i]) < 2 && getAromaticNitrogensCount(ac, atoms[i]) > 1) { if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP += 0.174; // // System.out...println("XLOGP: 7"); } else { xlogP += 0.366; // // System.out...println("XLOGP: 8"); } } else if (getHydrogenCount(ac, atoms[i]) == 1) { xlogP += 0.126; // // System.out...println("XLOGP: 9"); } } } else { if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.05; // // System.out...println("XLOGP: 10"); } else { xlogP += 0.013; // // System.out...println("XLOGP: 11"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.03; // // System.out...println("XLOGP: 12"); } else { xlogP -= 0.027; // // System.out...println("XLOGP: 13"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 2) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.005; // // System.out...println("XLOGP: 14"); } else { xlogP -= 0.315; // // System.out...println("XLOGP: 15"); } } } if (hsCount == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.466; // // System.out...println("XLOGP: 16"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.136; // // System.out...println("XLOGP: 17"); } } else { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.001; // // System.out...println("XLOGP: 18"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.31; // // System.out...println("XLOGP: 19"); } } } if (hsCount == 2) { xlogP += 0.42; // // System.out...println("XLOGP: 20"); } } if (getIfCarbonIsHydrophobic(ac, atoms[i]) >= 0) { xlogP += 0.211; // // System.out...println("XLOGP: 21"); } } if (bondCount == 4) { // C sp3 if (getIfCarbonIsHydrophobic(ac, atoms[i]) >= 0) { xlogP += 0.211; // // System.out...println("XLOGP: 22"); } if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.006; // // System.out...println("XLOGP: 23"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.57; // // System.out...println("XLOGP: 24"); } if (getPiSystemsCount(ac, atoms[i]) >= 2) { xlogP -= 0.317; // // System.out...println("XLOGP: 25"); } } else { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.316; // // System.out...println("XLOGP: 26"); } else { xlogP -= 0.723; // // System.out...println("XLOGP: 27"); } } } if (hsCount == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.127; // // System.out...println("XLOGP: 28"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.243; // // System.out...println("XLOGP: 29"); } if (getPiSystemsCount(ac, atoms[i]) >= 2) { xlogP -= 0.499; // // System.out...println("XLOGP: 30"); } } else { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.205; // // System.out...println("XLOGP: 31"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.305; // // System.out...println("XLOGP: 32"); } if (getPiSystemsCount(ac, atoms[i]) >= 2) { xlogP -= 0.709; // // System.out...println("XLOGP: 33"); } } } if (hsCount == 2) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.358; // // System.out...println("XLOGP: 34"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.008; // // System.out...println("XLOGP: 35"); } if (getPiSystemsCount(ac, atoms[i]) == 2) { xlogP -= 0.185; // // System.out...println("XLOGP: 36"); } } else { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.137; // // System.out...println("XLOGP: 37"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.303; // // System.out...println("XLOGP: 38"); } if (getPiSystemsCount(ac, atoms[i]) == 2) { xlogP -= 0.815; // // System.out...println("XLOGP: 39"); } } } if (hsCount > 2) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.528; // // System.out...println("XLOGP: 40"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.267; // // System.out...println("XLOGP: 41"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP -= 0.032; // // System.out...println("XLOGP: 42"); } } } } if (symbol.equals("N")) { if (ac.getBondOrderSum(atoms[i]) == 5.0) { xlogP += 1.178; // // System.out...println("XLOGP: 43"); } // NO2 else { if (getPresenceOfCarbonil(ac, atoms[i]) == 1) { // amidic nitrogen if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP += 0.078; // // System.out...println("XLOGP: 44"); } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP -= 0.118; // // System.out...println("XLOGP: 45"); } } if (hsCount == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP -= 0.096; // // System.out...println("XLOGP: 46"); } else { xlogP -= 0.044; // // System.out...println("XLOGP: 47"); } } if (hsCount == 2) { xlogP -= 0.646; // // System.out...println("XLOGP: 48"); } } else { if (bondCount == 1) { // -C#N if (getCarbonsCount(ac, atoms[i]) == 1) { xlogP -= 0.566; // // System.out...println("XLOGP: 49"); } } if (bondCount == 2) { // N sp2 if (atoms[i].getFlag(CDKConstants.ISAROMATIC)) { xlogP -= 0.493; // // System.out...println("XLOGP: 50"); } else { if (getDoubleBondedCarbonsCount(ac, atoms[i]) == 0) { if (getDoubleBondedNitrogenCount(ac, atoms[i]) == 0) { if (getDoubleBondedOxygenCount(ac, atoms[i]) == 1) { xlogP += 0.427; // // System.out...println("XLOGP: 51"); } } if (getDoubleBondedNitrogenCount(ac, atoms[i]) == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP += 0.536; // // System.out...println("XLOGP: 52"); } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP -= 0.597; // // System.out...println("XLOGP: 53"); } } } if (getDoubleBondedCarbonsCount(ac, atoms[i]) == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.007; // // System.out...println("XLOGP: 54"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.275; // // System.out...println("XLOGP: 55"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.366; // // System.out...println("XLOGP: 56"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.251; // // System.out...println("XLOGP: 57"); } } } } } if (bondCount == 3) { // N sp3 if (hsCount == 0) { if (rs.contains(atoms[i])) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { xlogP += 0.881; // // System.out...println("XLOGP: 58"); } else { xlogP -= 0.01; // // System.out...println("XLOGP: 59"); } } else { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.159; // // System.out...println("XLOGP: 60"); } if (getPiSystemsCount(ac, atoms[i]) > 0) { xlogP += 0.761; // // System.out...println("XLOGP: 61"); } } else { xlogP -= 0.239; } } } if (hsCount == 1) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (atoms[i].getFlag(CDKConstants.ISAROMATIC)) { xlogP += 0.545; // // System.out...println("XLOGP: 62"); } // like pyrrole else { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.112; // // System.out...println("XLOGP: 63"); } if (getPiSystemsCount(ac, atoms[i]) > 0) { xlogP += 0.166; // // System.out...println("XLOGP: 64"); } } } else { if (rs.contains(atoms[i])) { xlogP += 0.153; // // System.out...println("XLOGP: 65"); } else { xlogP += 0.324; // // System.out...println("XLOGP: 66"); } } } if (hsCount == 2) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.534; // // System.out...println("XLOGP: 66"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP -= 0.329; // // System.out...println("XLOGP: 67"); } } else { xlogP -= 1.082; // // System.out...println("XLOGP: 68"); } } } } } } if (symbol.equals("O")) { if (bondCount == 1) { xlogP -= 0.399; // // System.out...println("XLOGP: 69"); } if (bondCount == 2) { if (hsCount == 0) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.084; // // System.out...println("XLOGP: 70"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.435; // // System.out...println("XLOGP: 71"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP += 0.105; // // System.out...println("XLOGP: 72"); } } else { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 0) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP -= 0.467; // // System.out...println("XLOGP: 73"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.082; // // System.out...println("XLOGP: 74"); } } if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP -= 0.522; // // System.out...println("XLOGP: 75"); } } } } if (symbol.equals("S")) { if (bondCount == 1) { xlogP -= 0.148; // // System.out...println("XLOGP: 76"); } if (bondCount == 2) { if (hsCount == 0) { xlogP += 0.255; // // System.out...println("XLOGP: 77"); } else { xlogP += 0.419; // // System.out...println("XLOGP: 78"); } } if (bondCount == 3) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 1) { xlogP -= 1.375; // // System.out...println("XLOGP: 79"); } } if (bondCount == 4) { if (getNitrogenOrOxygenCount(ac, atoms[i]) == 2) { xlogP -= 0.168; // // System.out...println("XLOGP: 80"); } } } if (symbol.equals("P")) { if (getDoubleBondedSulfurCount(ac, atoms[i]) == 1) { xlogP += 1.253; // // System.out...println("XLOGP: 81"); } if (getDoubleBondedOxygenCount(ac, atoms[i]) == 1) { xlogP -= 0.477; // // System.out...println("XLOGP: 82"); } } if (symbol.equals("F")) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.375; // // System.out...println("XLOGP: 84"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.202; // // System.out...println("XLOGP: 85"); } } if (symbol.equals("Cl")) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.512; // // System.out...println("XLOGP: 86"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.663; // // System.out...println("XLOGP: 87"); } } if (symbol.equals("Br")) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 0.85; // // System.out...println("XLOGP: 88"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 0.839; // // System.out...println("XLOGP: 89"); } } if (symbol.equals("I")) { if (getPiSystemsCount(ac, atoms[i]) == 0) { xlogP += 1.05; // // System.out...println("XLOGP: 90"); } if (getPiSystemsCount(ac, atoms[i]) == 1) { xlogP += 1.109; // // System.out...println("XLOGP: 91"); } } if (getAlogenCount(ac, atoms[i]) >= 2) { xlogP += 0.137; // // System.out...println("XLOGP: 92"); } // more than 2 alogens on the same atom if (getPresenceOfCarbonil(ac, atoms[i]) == 2) {// sp2 oxygen 1-5 pair if(!rs.contains(atoms[i])) { xlogP += 0.580; } } } Descriptor acc = new HBondAcceptorCountDescriptor(); Object[] paramsAcc = {new Boolean(false)}; acc.setParameters(paramsAcc); Descriptor don = new HBondDonorCountDescriptor(); Object[] paramsDon = {new Boolean(false)}; don.setParameters(paramsDon); int acceptors = ((IntegerResult) acc.calculate(ac).getValue()).intValue(); int donors = ((IntegerResult) don.calculate(ac).getValue()).intValue(); if (donors > 0 && acceptors > 0) { xlogP += 0.429; // internal H-bonds } SmilesParser sp = new SmilesParser(); AtomContainer paba = sp.parseSmiles("CS(=O)(=O)c1ccc(N)cc1"); // p-amino sulphonic acid if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, paba)) { xlogP -= 0.501; } AtomContainer aminoacid = sp.parseSmiles("NC=O"); // alpha amino acid if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, aminoacid)) { xlogP -= 2.166; } AtomContainer salicilic = sp.parseSmiles("O=C(O)c1ccccc1O"); // salicylic acid if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, salicilic)) { xlogP += 0.554; } AtomContainer orthopair = sp.parseSmiles("OCCO"); // ortho oxygen pair if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, orthopair)) { xlogP -= 0.268; } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(xlogP)); }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/11cd872c3dbcc51a117ad375706e7a5334b88daa/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
1721,
13,
1216,
24570,
288,
202,
202,
10369,
694,
3597,
273,
261,
2704,
4826,
54,
899,
8441,
1435,
2934,
4720,
1595,
54,
899,
12,
1077,
1769,
202,
202,
44,
344,
363,
292,
37,
27468,
560,
12594,
18,
16518,
37,
27468,
560,
12,
1077,
16,
3597,
16,
638,
1769,
202,
202,
9056,
619,
1330,
52,
273,
374,
31,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
9006,
273,
1721,
18,
588,
14280,
5621,
202,
202,
780,
3273,
273,
1408,
31,
202,
202,
474,
8427,
1380,
273,
374,
31,
202,
202,
474,
12670,
1380,
273,
374,
31,
202,
202,
9056,
943,
9807,
2448,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9006,
18,
2469,
31,
277,
27245,
288,
1082,
202,
7175,
273,
9006,
63,
77,
8009,
588,
5335,
5621,
1082,
202,
26425,
1380,
273,
1721,
18,
588,
9807,
1380,
12,
14937,
63,
77,
19226,
1082,
202,
4487,
1380,
273,
7628,
93,
24096,
1380,
12,
1077,
16,
9006,
63,
77,
19226,
1082,
202,
1896,
9807,
2448,
273,
1721,
18,
588,
13528,
9807,
2448,
12,
14937,
63,
77,
19226,
1082,
202,
430,
261,
7175,
18,
14963,
2932,
39,
6,
3719,
288,
9506,
202,
430,
261,
26425,
1380,
422,
576,
13,
288,
6862,
202,
759,
385,
1694,
6862,
202,
430,
261,
4487,
1380,
1545,
404,
13,
288,
25083,
202,
92,
1330,
52,
1011,
374,
18,
3462,
29,
31,
25083,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
1721,
13,
1216,
24570,
288,
202,
202,
10369,
694,
3597,
273,
261,
2704,
4826,
54,
899,
8441,
1435,
2934,
4720,
1595,
54,
899,
12,
1077,
1769,
202,
202,
44,
344,
363,
292,
37,
27468,
560,
12594,
18,
16518,
37,
27468,
560,
12,
1077,
16,
3597,
16,
638,
1769,
202,
202,
9056,
619,
1330,
52,
273,
374,
31,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
8526,
9006,
273,
1721,
18,
588,
14280,
5621,
202,
202,
780,
3273,
273,
1408,
31,
202,
202,
474,
8427,
1380,
273,
374,
31,
202,
202,
474,
12670,
1380,
273,
374,
31,
202,
202,
9056,
943,
9807,
2448,
273,
374,
2
] |
subtask.setSource( clusterId_ ); return subtask; }
|
subtask.setSource(clusterId_); return subtask; }
|
private NewTask createLoadTask (Task parent_task, Task wdraw_task) { NewTask subtask = ldmFactory_.newTask(); Asset asset = parent_task.getDirectObject(); // Quantity Preference int quantity = (int)TaskUtils.getPreference(wdraw_task, AspectType.QUANTITY); Preference quantity_pf = createQuantityPreference(AspectType.QUANTITY, quantity); subtask.addPreference(quantity_pf);// // START TIME & END TIME addStartTimePref(subtask, TaskUtils.getEndTime(wdraw_task)); addEndTimePref(subtask, TaskUtils.getEndTime(wdraw_task) + LOAD_TIME); // For Vector pps = new Vector(); NewPrepositionalPhrase prep_phrase = ldmFactory_.newPrepositionalPhrase(); prep_phrase.setPreposition( Constants.Preposition.FOR ); String orgName = myOrganization_.getItemIdentificationPG().getItemIdentification(); prep_phrase.setIndirectObject(orgName);// prep_phrase.setIndirectObject(myOrganization_); pps.addElement(prep_phrase); subtask.setParentTask( parent_task ); subtask.setDirectObject(asset); // Fill in verb. subtask.setPrepositionalPhrases( pps.elements() ); subtask.setVerb(LOADVERB); subtask.setPlan(parent_task.getPlan()); subtask.setSource( clusterId_ ); // printDebug("Created transport task:" + taskDesc(subtask)); return subtask; }
|
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/e676429fb19749fc9df199a7a11f66b846876e07/SupplyExpander.java/clean/glm/src/org/cougaar/glm/plugins/inventory/SupplyExpander.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1166,
2174,
752,
2563,
2174,
261,
2174,
982,
67,
4146,
16,
3837,
341,
9446,
67,
4146,
13,
288,
202,
1908,
2174,
720,
4146,
273,
328,
10956,
1733,
27799,
2704,
2174,
5621,
202,
6672,
3310,
273,
982,
67,
4146,
18,
588,
5368,
921,
5621,
202,
759,
18189,
29125,
225,
202,
474,
10457,
273,
261,
474,
13,
2174,
1989,
18,
588,
9624,
12,
3623,
1899,
67,
4146,
16,
2970,
1181,
559,
18,
3500,
6856,
4107,
1769,
202,
9624,
10457,
67,
14241,
273,
752,
12035,
9624,
12,
17468,
559,
18,
3500,
6856,
4107,
16,
10457,
1769,
202,
1717,
4146,
18,
1289,
9624,
12,
16172,
67,
14241,
1769,
759,
282,
202,
759,
10485,
8721,
473,
7273,
8721,
202,
1289,
13649,
23218,
12,
1717,
4146,
16,
3837,
1989,
18,
588,
25255,
12,
3623,
1899,
67,
4146,
10019,
202,
1289,
25255,
23218,
12,
1717,
4146,
16,
3837,
1989,
18,
588,
25255,
12,
3623,
1899,
67,
4146,
13,
397,
24089,
67,
4684,
1769,
202,
759,
2457,
202,
5018,
293,
1121,
273,
394,
5589,
5621,
202,
1908,
1386,
3276,
287,
12812,
13237,
67,
9429,
273,
328,
10956,
1733,
27799,
2704,
1386,
3276,
287,
12812,
5621,
202,
19109,
67,
9429,
18,
542,
1386,
3276,
12,
5245,
18,
1386,
3276,
18,
7473,
11272,
202,
780,
2358,
461,
273,
3399,
8113,
27799,
588,
1180,
24371,
18679,
7675,
588,
1180,
24371,
5621,
202,
19109,
67,
9429,
18,
542,
24943,
921,
12,
3341,
461,
1769,
759,
225,
202,
19109,
67,
9429,
18,
542,
24943,
921,
12,
4811,
8113,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1166,
2174,
752,
2563,
2174,
261,
2174,
982,
67,
4146,
16,
3837,
341,
9446,
67,
4146,
13,
288,
202,
1908,
2174,
720,
4146,
273,
328,
10956,
1733,
27799,
2704,
2174,
5621,
202,
6672,
3310,
273,
982,
67,
4146,
18,
588,
5368,
921,
5621,
202,
759,
18189,
29125,
225,
202,
474,
10457,
273,
261,
474,
13,
2174,
1989,
18,
588,
9624,
12,
3623,
1899,
67,
4146,
16,
2970,
1181,
559,
18,
3500,
6856,
4107,
1769,
202,
9624,
10457,
67,
14241,
273,
752,
12035,
9624,
12,
17468,
559,
18,
3500,
6856,
4107,
16,
10457,
1769,
202,
1717,
4146,
18,
1289,
9624,
12,
16172,
67,
14241,
1769,
759,
282,
202,
759,
10485,
8721,
473,
7273,
8721,
202,
1289,
13649,
23218,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.