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 |
|---|---|---|---|---|---|---|
if ((followers = isBigramLoaded(firstWordID)) == null) { | if ((followers = queryBigramCache(firstWordID)) == null) { | private BigramFollowers loadBigramFollowers(int firstWordID, int numberFollowers) { BigramFollowers followers = null; if ((followers = isBigramLoaded(firstWordID)) == null) { System.out.println("Loading BigramFollowers from disk"); int firstBigramEntry = unigrams[firstWordID].getFirstBigramEntry(); long position = (long) (bigramOffset + (firstBigramEntry * BYTES_PER_BIGRAM)); int size = (numberFollowers + 1) * BYTES_PER_BIGRAM; try { assert ((position + size) <= fileChannel.size()); ByteBuffer buffer = loadBigramBuffer(position, size); if (!bigEndian) { buffer.order(ByteOrder.LITTLE_ENDIAN); } followers = new BigramFollowers(buffer, numberFollowers); } catch (IOException ioe) { ioe.printStackTrace(); throw new Error("Error loading bigram followers"); } loadedBigramFollowers.put(new Integer(firstWordID), followers); } return followers; } | 47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/873f5e96c9e00cd686194a286e5d4ee133eee3e2/LargeTrigramModel.java/clean/sphinx4/edu/cmu/sphinx/knowledge/language/large/LargeTrigramModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4454,
1940,
8328,
414,
1262,
9901,
1940,
8328,
414,
12,
474,
1122,
3944,
734,
16,
4766,
1171,
509,
1300,
8328,
414,
13,
288,
3639,
4454,
1940,
8328,
414,
2805,
414,
273,
446,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4454,
1940,
8328,
414,
1262,
9901,
1940,
8328,
414,
12,
474,
1122,
3944,
734,
16,
4766,
1171,
509,
1300,
8328,
414,
13,
288,
3639,
4454,
1940,
8328,
414,
2805,
414,
273,
446,
31,
... |
} | } | public static boolean errorOccurred() { return error; } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/65bb6a2acf338a840d8b22d96810ba924d55277b/VFSManager.java/clean/org/gjt/sp/jedit/io/VFSManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
555,
30096,
1435,
202,
95,
202,
202,
2463,
555,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
555,
30096,
1435,
202,
95,
202,
202,
2463,
555,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return mgm.connect(newNode, _content.getOwner(), | return mgm.connect(newNode, getContent().getOwner(), | protected Object createEdgeAbove(MutableGraphModel mgm, Object newNode) { return mgm.connect(newNode, _content.getOwner(), (Class) Model.getMetaTypes().getTransition()); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/55b1a2bf9e5a1ff91e4f97c63ed8d76eb2a68f27/SelectionActionState.java/buggy/src_new/org/argouml/uml/diagram/activity/ui/SelectionActionState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
752,
6098,
25477,
12,
19536,
4137,
1488,
11174,
81,
16,
1033,
10942,
13,
288,
3639,
327,
11174,
81,
18,
3612,
12,
2704,
907,
16,
389,
1745,
18,
588,
5541,
9334,
9506,
282,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
752,
6098,
25477,
12,
19536,
4137,
1488,
11174,
81,
16,
1033,
10942,
13,
288,
3639,
327,
11174,
81,
18,
3612,
12,
2704,
907,
16,
389,
1745,
18,
588,
5541,
9334,
9506,
282,
2... |
public void update(Graphics g) { | public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } | public void update(Graphics g) { paint(g); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
17558,
314,
13,
288,
202,
202,
84,
1598,
12,
75,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
17558,
314,
13,
288,
202,
202,
84,
1598,
12,
75,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return (char) Math.floor(d); | return (char) Math.floor(d); | public static char toUint16(Object val) { long int16 = 0x10000; double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } d = Math.IEEEremainder(d, int16); d = d >= 0 ? d : d + int16; return (char) Math.floor(d); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5e0b2ebaed49fc9dc92fb0127fd9256424173c6e/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... |
MessageReference rref = state.remove(); | MessageReference rref = state.removeFirst(); | public void testNonRecoverableState_remove_5() throws Throwable { if (state.isRecoverable()) { // only non-recoverable state is tested now return; } if (!state.acceptReliableMessages()) { // only state that accepts reliable messages is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); state.add(ref, null); MessageReference rref = state.remove(); assertEquals("message0", rref.getMessageID()); assertNull(state.remove()); log.info("ok"); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b808cf059a2bd5d2b256a4cae82cef505669b216/StateTestBase.java/clean/tests/src/org/jboss/test/messaging/core/base/StateTestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3989,
426,
17399,
1119,
67,
4479,
67,
25,
1435,
1216,
4206,
282,
288,
1377,
309,
261,
2019,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
1338,
1661,
17,
25864,
919,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
3989,
426,
17399,
1119,
67,
4479,
67,
25,
1435,
1216,
4206,
282,
288,
1377,
309,
261,
2019,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
1338,
1661,
17,
25864,
919,
... |
} | protected void disconnect() throws NamingException { try { if (ctx!=null) { ctx.close(); } } catch (NamingException e) { ctx = null; env.clear(); throw new NamingException(e.toString()); } ctx = null; env.clear(); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/1581e769a869eecca67fa6eec33b342cac1cf145/LDAPTransformer.java/buggy/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
9479,
1435,
1216,
26890,
288,
5411,
775,
288,
7734,
309,
261,
5900,
5,
33,
2011,
13,
288,
10792,
1103,
18,
4412,
5621,
21821,
1044,
261,
24102,
503,
425,
13,
288,
7734,
1103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
9479,
1435,
1216,
26890,
288,
5411,
775,
288,
7734,
309,
261,
5900,
5,
33,
2011,
13,
288,
10792,
1103,
18,
4412,
5621,
21821,
1044,
261,
24102,
503,
425,
13,
288,
7734,
1103,
... | |
if (! accept) | if (! accept) { System.err.println("rejecting drop."); | public void drop(DropTargetDropEvent dtde) { boolean accept = false; // first see if we accept this drag. if (mTransferHandler.canImport(folderTree, dtde.getCurrentDataFlavors())) { Point e = dtde.getLocation(); TreePath path = folderTree.getClosestPathForLocation(e.x, e.y); if (folderTree.getPathBounds(path).contains(e.x, e.y)) { // check to see if this is a folder node or not. at the moment, // we only support dropping into folder nodes. if (path.getLastPathComponent() instanceof FolderNode) { // this means that we're over a node. make it selected. if (!folderTree.isPathSelected(path)) folderTree.setSelectionPath(path); // and now drop here. accept = true; dtde.acceptDrop(dtde.getDropAction()); } } } if (! accept) dtde.rejectDrop(); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/a22c22b27a2f15f5adb5986d56573f2a96875f48/FolderPanel.java/clean/src/net/suberic/pooka/gui/FolderPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3640,
12,
7544,
2326,
7544,
1133,
3681,
323,
13,
288,
1377,
1250,
2791,
273,
629,
31,
1377,
368,
1122,
2621,
309,
732,
2791,
333,
8823,
18,
1377,
309,
261,
81,
5912,
1503,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3640,
12,
7544,
2326,
7544,
1133,
3681,
323,
13,
288,
1377,
1250,
2791,
273,
629,
31,
1377,
368,
1122,
2621,
309,
732,
2791,
333,
8823,
18,
1377,
309,
261,
81,
5912,
1503,
18... |
following.push(FOLLOW_opt_eol_in_constraints2167); | following.push(FOLLOW_opt_eol_in_constraints2172); | public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:862:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:862:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints2167); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:863:17: ( constraint[constraints] | predicate[constraints] ) int alt53=2; int LA53_0 = input.LA(1); if ( LA53_0==EOL||LA53_0==15 ) { alt53=1; } else if ( LA53_0==ID ) { int LA53_2 = input.LA(2); if ( LA53_2==33 ) { int LA53_3 = input.LA(3); if ( LA53_3==ID ) { int LA53_17 = input.LA(4); if ( LA53_17==48 ) { alt53=2; } else if ( LA53_17==EOL||LA53_17==15||(LA53_17>=24 && LA53_17<=25)||(LA53_17>=57 && LA53_17<=66) ) { alt53=1; } else { NoViableAltException nvae = new NoViableAltException("863:17: ( constraint[constraints] | predicate[constraints] )", 53, 17, input); throw nvae; } } else if ( LA53_3==EOL||LA53_3==15 ) { alt53=1; } else { NoViableAltException nvae = new NoViableAltException("863:17: ( constraint[constraints] | predicate[constraints] )", 53, 3, input); throw nvae; } } else if ( LA53_2==EOL||LA53_2==15||(LA53_2>=24 && LA53_2<=25)||(LA53_2>=57 && LA53_2<=66) ) { alt53=1; } else { NoViableAltException nvae = new NoViableAltException("863:17: ( constraint[constraints] | predicate[constraints] )", 53, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("863:17: ( constraint[constraints] | predicate[constraints] )", 53, 0, input); throw nvae; } switch (alt53) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:863:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints2172); constraint(constraints); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:863:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints2175); predicate(constraints); following.pop(); } break; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop55: do { int alt55=2; alt55 = dfa55.predict(input); switch (alt55) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints2183); opt_eol(); following.pop(); match(input,24,FOLLOW_24_in_constraints2185); following.push(FOLLOW_opt_eol_in_constraints2187); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:39: ( constraint[constraints] | predicate[constraints] ) int alt54=2; int LA54_0 = input.LA(1); if ( LA54_0==EOL||LA54_0==15 ) { alt54=1; } else if ( LA54_0==ID ) { int LA54_2 = input.LA(2); if ( LA54_2==33 ) { int LA54_3 = input.LA(3); if ( LA54_3==ID ) { int LA54_17 = input.LA(4); if ( LA54_17==48 ) { alt54=2; } else if ( LA54_17==EOL||LA54_17==15||(LA54_17>=24 && LA54_17<=25)||(LA54_17>=57 && LA54_17<=66) ) { alt54=1; } else { NoViableAltException nvae = new NoViableAltException("864:39: ( constraint[constraints] | predicate[constraints] )", 54, 17, input); throw nvae; } } else if ( LA54_3==EOL||LA54_3==15 ) { alt54=1; } else { NoViableAltException nvae = new NoViableAltException("864:39: ( constraint[constraints] | predicate[constraints] )", 54, 3, input); throw nvae; } } else if ( LA54_2==EOL||LA54_2==15||(LA54_2>=24 && LA54_2<=25)||(LA54_2>=57 && LA54_2<=66) ) { alt54=1; } else { NoViableAltException nvae = new NoViableAltException("864:39: ( constraint[constraints] | predicate[constraints] )", 54, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("864:39: ( constraint[constraints] | predicate[constraints] )", 54, 0, input); throw nvae; } switch (alt54) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints2190); constraint(constraints); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:864:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints2193); predicate(constraints); following.pop(); } break; } } break; default : break loop55; } } while (true); following.push(FOLLOW_opt_eol_in_constraints2201); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/12c8feffd968f958100f654d836fa3c2ee21ded8/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
540,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
540,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582... |
EMIT(CPOS(s,MIR_BinaryAcc.create(IA32_ADD, R(lval), R(lval)))); EMIT(MIR_BinaryAcc.mutate(s,IA32_ADC, R(hval), R(hval))); | EMIT(CPOS(s,MIR_BinaryAcc.create(IA32_ADD, new OPT_RegisterOperand(lval, VM_TypeReference.Int), new OPT_RegisterOperand(lval, VM_TypeReference.Int)))); EMIT(MIR_BinaryAcc.mutate(s,IA32_ADC, new OPT_RegisterOperand(hval, VM_TypeReference.Int), new OPT_RegisterOperand(hval, VM_TypeReference.Int))); | protected final void LONG_SHL(OPT_Instruction s) { OPT_Register hval = BinaryAcc.getResult(s).register; OPT_Register lval = burs.ir.regpool.getSecondReg(hval); OPT_Operand shiftOp = BinaryAcc.getClearValue(s); if (shiftOp instanceof OPT_IntConstantOperand) { int shift = ((OPT_IntConstantOperand)shiftOp).value; shift = shift & 0x3F; // only bottom six bits matter; if (shift == 0) { s.remove(); // operation is a nop. } else if (shift == 1) { EMIT(CPOS(s,MIR_BinaryAcc.create(IA32_ADD, R(lval), R(lval)))); EMIT(MIR_BinaryAcc.mutate(s,IA32_ADC, R(hval), R(hval))); } else if (shift == 32) { EMIT(CPOS(s,MIR_Move.create(IA32_MOV, R(hval), R(lval)))); EMIT(MIR_Move.mutate(s, IA32_MOV, R(lval), IC(0))); } else if (shift > 32) { EMIT(CPOS(s,MIR_Move.create(IA32_MOV, R(hval), R(lval)))); EMIT(CPOS(s,MIR_BinaryAcc.create(IA32_SHL, R(hval), IC(shift-32)))); EMIT(MIR_Move.mutate(s, IA32_MOV, R(lval), IC(0))); } else { EMIT(CPOS(s,MIR_DoubleShift.create(IA32_SHLD, R(hval), R(lval), IC(shift)))); EMIT(MIR_BinaryAcc.mutate(s, IA32_SHL, R(lval), IC(shift))); } } else { OPT_RegisterOperand zero = burs.ir.regpool.makeTempInt(); OPT_Register ecx = getECX(); // Set up ecx and zero EMIT(CPOS(s,MIR_Move.create(IA32_MOV, R(ecx), shiftOp))); EMIT(CPOS(s,MIR_Move.create(IA32_MOV, zero, IC(0)))); // Perform shift EMIT(CPOS(s,MIR_DoubleShift.create(IA32_SHLD, R(hval), R(lval), R(ecx)))); EMIT(CPOS(s,MIR_BinaryAcc.create(IA32_SHL, R(lval), R(ecx)))); // Check for > 32bit shift EMIT(CPOS(s,MIR_Test.create(IA32_TEST, R(ecx), IC(32)))); // ZF = ((ecx & 32) != 0) // if (shift > 32) {hval = lval; lval = 0} EMIT(CPOS(s,MIR_CondMove.create(IA32_CMOV, R(hval),R(lval),OPT_IA32ConditionOperand.NE()))); // ZF == 0 EMIT(MIR_CondMove.mutate(s,IA32_CMOV, R(lval), zero.copyRO(),OPT_IA32ConditionOperand.NE())); // ZF == 0 } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/34d593e20db098ebb2906460112536d78ee1592a/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
14011,
67,
2664,
48,
12,
15620,
67,
11983,
272,
13,
288,
565,
16456,
67,
3996,
366,
1125,
273,
7896,
8973,
18,
588,
1253,
12,
87,
2934,
4861,
31,
565,
16456,
67,
3996,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
14011,
67,
2664,
48,
12,
15620,
67,
11983,
272,
13,
288,
565,
16456,
67,
3996,
366,
1125,
273,
7896,
8973,
18,
588,
1253,
12,
87,
2934,
4861,
31,
565,
16456,
67,
3996,
... |
return JMXConnectorFactory.connect(url); | String[] credentials = new String[] { getUsername(), getPassword() }; Map environment = new HashMap(); environment.put(JMXConnector.CREDENTIALS, credentials); return JMXConnectorFactory.connect(url, environment); | public JMXConnector getJMXConnector (JMXServiceURL url) throws IOException { return JMXConnectorFactory.connect(url); } | 6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/6afe7f43298db4733572d6448cb12f5a380d07ea/JbiTask.java/clean/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28845,
7487,
9285,
13874,
7487,
261,
46,
13874,
1179,
1785,
880,
13,
1216,
1860,
288,
3639,
514,
8526,
4448,
273,
394,
514,
8526,
288,
17827,
9334,
17397,
1435,
289,
31,
1635,
3330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28845,
7487,
9285,
13874,
7487,
261,
46,
13874,
1179,
1785,
880,
13,
1216,
1860,
288,
3639,
514,
8526,
4448,
273,
394,
514,
8526,
288,
17827,
9334,
17397,
1435,
289,
31,
1635,
3330,
... |
(prefix != Constants.EMPTYSTRING)) { | (prefix == Constants.EMPTYSTRING)) { | public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); // Compile code to emit element start tag il.append(methodGen.loadHandler()); il.append(new PUSH(cpg, _name)); il.append(DUP2); // duplicate these 2 args for endElement il.append(methodGen.startElement()); // Output all attributes if (_attributeElements != null) { final int count = _attributeElements.size(); for (int i = 0; i < count; i++) { SyntaxTreeNode node = (SyntaxTreeNode)_attributeElements.elementAt(i); node.translate(classGen, methodGen); } } // Compile code to emit namespace attributes if (_accessedPrefixes != null) { Enumeration e = _accessedPrefixes.keys(); while (e.hasMoreElements()) { final String prefix = (String)e.nextElement(); final String uri = (String)_accessedPrefixes.get(prefix); if ((uri != Constants.EMPTYSTRING) || (prefix != Constants.EMPTYSTRING)) { il.append(methodGen.loadHandler()); il.append(new PUSH(cpg,prefix)); il.append(new PUSH(cpg,uri)); il.append(methodGen.namespace()); } } } // Compile code to emit attributes and child elements translateContents(classGen, methodGen); // Compile code to emit element end tag il.append(methodGen.endElement()); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/06a7b109b3daf50d7080578bbcc6ea6587937789/LiteralElement.java/clean/src/org/apache/xalan/xsltc/compiler/LiteralElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
... |
return new StringBuffer().append(getName()).append(" the ").append(levels).append(getOrdinal(levels)) .append(" level ").append(getDisplayRaceName()).append(' ') .append((classList.size() < 2) ? getDisplayClassName() : getFullDisplayClassName()).toString(); | return new StringBuffer().append(getName()).append(" the ").append( levels).append(getOrdinal(levels)).append(" level ").append( getDisplayRaceName()).append(' ').append( (classList.size() < 2) ? getDisplayClassName() : getFullDisplayClassName()).toString(); | public String getFullDisplayName() { final int levels = getTotalLevels(); // If you aren't multi-classed, don't display redundant class level information in addition to the total PC level return new StringBuffer().append(getName()).append(" the ").append(levels).append(getOrdinal(levels)) .append(" level ").append(getDisplayRaceName()).append(' ') .append((classList.size() < 2) ? getDisplayClassName() : getFullDisplayClassName()).toString(); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10208,
20524,
1435,
202,
95,
202,
202,
6385,
509,
7575,
273,
12831,
12240,
5621,
202,
202,
759,
971,
1846,
11526,
1404,
3309,
17,
830,
2185,
16,
2727,
1404,
2562,
19530,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
10208,
20524,
1435,
202,
95,
202,
202,
6385,
509,
7575,
273,
12831,
12240,
5621,
202,
202,
759,
971,
1846,
11526,
1404,
3309,
17,
830,
2185,
16,
2727,
1404,
2562,
19530,
66... |
"Both details null. Can't have changed!"); | "These circumstances should never happen."); } else if (new_d.getPermissions()==null) { return true; | public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( dirty != null ) { if ( dirty.length > 1 ) return false; if ( ! DETAILS.equals( names[dirty[0]] )) return false; Details new_d = getDetails(current, names); Details old_d = getDetails(state, names); // have to handle nulls because of ticket:307 if (old_d == null || new_d == null) { if (new_d == null && old_d == null) { throw new InternalException( "Both details null. Can't have changed!"); } else if (new_d == null) { // don't worry about it. return true; } else { // then new_d != null. What's up? if (new_d.getPermissions() != null && new_d.getPermissions().isSet(Flag.SOFT)) return true; return false; } } else { if ( ! onlyPermissionsChanged(new_d, old_d)) return false; Permissions new_p = new Permissions( new_d.getPermissions() ); Permissions old_p = new Permissions( old_d.getPermissions() ); old_p.set( Flag.LOCKED ); return new_p.identical( old_p ); } } return false; } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/33553b0a2381da2d421d9d7aa0f393e0228ee623/HibernateUtils.java/clean/components/server/src/ome/tools/hibernate/HibernateUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1338,
2531,
5033,
12,
3877,
5726,
280,
1339,
16,
377,
202,
202,
1943,
19680,
23861,
16,
467,
921,
1522,
16,
1033,
8526,
919,
16,
514,
8526,
1257,
262,
565,
288,
377,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1338,
2531,
5033,
12,
3877,
5726,
280,
1339,
16,
377,
202,
202,
1943,
19680,
23861,
16,
467,
921,
1522,
16,
1033,
8526,
919,
16,
514,
8526,
1257,
262,
565,
288,
377,
20... |
private void loadLicence() { try { // We read it String resNamePrifix = "LicencePanel.licence"; String resName = resNamePrifix + "_" + idata.localeISO3; InputStream in = parent.getResource(resName); if (null == in ) { in = parent.getResource(resNamePrifix); } ByteArrayOutputStream licenceData = new ByteArrayOutputStream(); byte[] buffer = new byte[5120]; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { licenceData.write(buffer, 0, bytesInBuffer); } licence = licenceData.toString(); } catch (Exception err) { licence = "Error : could not load the licence text !"; } } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/95bf184084817e28f3314235b2783ff0239c47e0/LicencePanel.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/panels/LicencePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
945,
48,
335,
802,
1435,
95,
698,
95,
759,
59,
264,
684,
305,
780,
455,
461,
2050,
430,
697,
1546,
48,
335,
802,
5537,
18,
80,
335,
802,
14432,
780,
455,
461,
33,
455,
461,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
945,
48,
335,
802,
1435,
95,
698,
95,
759,
59,
264,
684,
305,
780,
455,
461,
2050,
430,
697,
1546,
48,
335,
802,
5537,
18,
80,
335,
802,
14432,
780,
455,
461,
33,
455,
461,
2... | ||
&& current.getNodeType() == Node.ELEMENT_NODE && (tagName.equals("*") || ((ElementImpl) current).getTagName().equals(tagName)) && (!enableNS || ( enableNS && ((ElementImpl) current).getNamespaceURI() != null && ((ElementImpl) current).getNamespaceURI().equals(nsName) ) ) ) { return current; | && current.getNodeType() == Node.ELEMENT_NODE) { if (!enableNS) { if (tagName.equals("*") || ((ElementImpl) current).getTagName().equals(tagName)) { return current; } } else { if (tagName.equals("*")) { if (nsName != null && nsName.equals("*")) { return current; } else { ElementImpl el = (ElementImpl) current; if ((nsName == null && el.getNamespaceURI() == null) || (nsName != null && nsName.equals(el.getNamespaceURI()))) { return current; } } } else { ElementImpl el = (ElementImpl) current; if (el.getLocalName() != null && el.getLocalName().equals(tagName)) { if (nsName != null && nsName.equals("*")) { return current; } else { if ((nsName == null && el.getNamespaceURI() == null) || (nsName != null && nsName.equals(el.getNamespaceURI()))) { return current; } } } } | private Node nextMatchingElementAfter(Node current) { Node next; while (current != null) { // Look down to first child. if (current.hasChildNodes()) { current = (current.getFirstChild()); } // Look right to sibling (but not from root!) else if (current != rootNode && null != (next = current.getNextSibling())) { current = next; } // Look up and right (but not past root!) else { next = null; for (; current != rootNode; // Stop when we return to starting point current = current.getParentNode()) { next = current.getNextSibling(); if (next != null) break; } current = next; } // Have we found an Element with the right tagName? // ("*" matches anything.) if (current != rootNode && current != null && current.getNodeType() == Node.ELEMENT_NODE && (tagName.equals("*") || ((ElementImpl) current).getTagName().equals(tagName)) // DOM2: Namespace logic. && (!enableNS || ( enableNS && ((ElementImpl) current).getNamespaceURI() != null && ((ElementImpl) current).getNamespaceURI().equals(nsName) ) ) ) { return current; } // Otherwise continue walking the tree } // Fell out of tree-walk; no more instances found return null; } // nextMatchingElementAfter(int):Node | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/49ec7ad184ed94080007ea5f307b100eaa5bf2a6/DeepNodeListImpl.java/buggy/src/org/apache/xerces/dom/DeepNodeListImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
1024,
9517,
1046,
4436,
12,
907,
783,
13,
288,
202,
565,
2029,
1024,
31,
202,
565,
1323,
261,
2972,
480,
446,
13,
288,
1082,
565,
368,
10176,
2588,
358,
1122,
1151,
18,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
1024,
9517,
1046,
4436,
12,
907,
783,
13,
288,
202,
565,
2029,
1024,
31,
202,
565,
1323,
261,
2972,
480,
446,
13,
288,
1082,
565,
368,
10176,
2588,
358,
1122,
1151,
18,
1082... |
public void runAutomated (XMLElement panelRoot) { // ---------------------------------------------------- // if shortcuts are not supported, then we can not // create shortcuts, even if there was any install // data. Just return. // ---------------------------------------------------- if (!shortcut.supported ()) { return; } shortcuts = new Vector (); Vector shortcutElements; ShortcutData data; XMLElement dataElement; // ---------------------------------------------------- // set the name of the program group // ---------------------------------------------------- dataElement = panelRoot.getFirstChildNamed (AUTO_KEY_PROGRAM_GROUP); groupName = dataElement.getAttribute (AUTO_ATTRIBUTE_NAME); if (groupName == null) { groupName = ""; } // ---------------------------------------------------- // add the details for each of the shortcuts // ---------------------------------------------------- shortcutElements = panelRoot.getChildrenNamed (AUTO_KEY_SHORTCUT); for (int i = 0; i < shortcutElements.size (); i++) { data = new ShortcutData (); dataElement = (XMLElement)shortcutElements.elementAt (i); data.name = dataElement.getAttribute (AUTO_ATTRIBUTE_NAME); data.addToGroup = Boolean.valueOf (dataElement.getAttribute (AUTO_ATTRIBUTE_GROUP)).booleanValue (); data.type = Integer.valueOf (dataElement.getAttribute (AUTO_ATTRIBUTE_TYPE)).intValue (); data.commandLine = dataElement.getAttribute (AUTO_ATTRIBUTE_COMMAND); data.description = dataElement.getAttribute (AUTO_ATTRIBUTE_DESCRIPTION); data.iconFile = dataElement.getAttribute (AUTO_ATTRIBUTE_ICON); data.iconIndex = Integer.valueOf (dataElement.getAttribute (AUTO_ATTRIBUTE_ICON_INDEX)).intValue (); data.initialState = Integer.valueOf (dataElement.getAttribute (AUTO_ATTRIBUTE_INITIAL_STATE)).intValue (); data.target = dataElement.getAttribute (AUTO_ATTRIBUTE_TARGET); data.workingDirectory = dataElement.getAttribute (AUTO_ATTRIBUTE_WORKING_DIR); shortcuts.add (data); } createShortcuts (); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/b53d45daf2df638e2901af901229c94720f04b27/ShortcutPanel.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/panels/ShortcutPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
22932,
690,
261,
15223,
6594,
2375,
13,
225,
288,
565,
368,
13420,
6062,
565,
368,
309,
25641,
854,
486,
3260,
16,
1508,
732,
848,
486,
565,
368,
752,
25641,
16,
5456,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
22932,
690,
261,
15223,
6594,
2375,
13,
225,
288,
565,
368,
13420,
6062,
565,
368,
309,
25641,
854,
486,
3260,
16,
1508,
732,
848,
486,
565,
368,
752,
25641,
16,
5456,
... | ||
Vector figs = dd.getLayer().getContents(); VectorSet offs = null; int size = figs.size(); for (int i=0; i<size; i++) { Object obj = figs.elementAt(i); if (!(obj instanceof FigMNodeInstance)) continue; FigMNodeInstance fn = (FigMNodeInstance) obj; if (fn.getEnclosingFig() != null) { if (offs == null) { offs = new VectorSet(); offs.addElement(dd); } offs.addElement(fn); } | Vector figs = dd.getLayer().getContents(); VectorSet offs = null; int size = figs.size(); for (int i = 0; i < size; i++) { Object obj = figs.elementAt(i); if (!(obj instanceof FigMNodeInstance)) continue; FigMNodeInstance fn = (FigMNodeInstance) obj; if (fn.getEnclosingFig() != null) { if (offs == null) { offs = new VectorSet(); offs.addElement(dd); } offs.addElement(fn); } } return offs; | public VectorSet computeOffenders(UMLDeploymentDiagram dd) { Vector figs = dd.getLayer().getContents(); VectorSet offs = null; int size = figs.size(); for (int i=0; i<size; i++) { Object obj = figs.elementAt(i); if (!(obj instanceof FigMNodeInstance)) continue; FigMNodeInstance fn = (FigMNodeInstance) obj; if (fn.getEnclosingFig() != null) { if (offs == null) { offs = new VectorSet(); offs.addElement(dd); } offs.addElement(fn); } } return offs; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CrNodeInstanceInsideElement.java/buggy/src_new/org/argouml/uml/cognitive/critics/CrNodeInstanceInsideElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5589,
694,
3671,
7210,
10130,
12,
57,
1495,
6733,
14058,
1940,
6957,
13,
288,
377,
5589,
4291,
87,
273,
6957,
18,
588,
4576,
7675,
588,
6323,
5621,
565,
5589,
694,
21174,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
694,
3671,
7210,
10130,
12,
57,
1495,
6733,
14058,
1940,
6957,
13,
288,
377,
5589,
4291,
87,
273,
6957,
18,
588,
4576,
7675,
588,
6323,
5621,
565,
5589,
694,
21174,
273,
446,
... |
} else if (key.equals(BY_ID)) { | } else if (key.equals(AdminService.BY_NAME)) { | public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext lc = getZimbraSoapContext(context); Provisioning prov = Provisioning.getInstance(); boolean applyConfig = request.getAttributeBool(AdminService.A_APPLY_CONFIG, true); Element d = request.getElement(AdminService.E_DOMAIN); String key = d.getAttribute(AdminService.A_BY); String value = d.getText(); Domain domain = null; if (key.equals(BY_NAME)) { domain = prov.get(DomainBy.NAME, value); } else if (key.equals(BY_ID)) { domain = prov.get(DomainBy.ID, value); } else { throw ServiceException.INVALID_REQUEST("unknown value for by: "+key, null); } if (domain == null) throw AccountServiceException.NO_SUCH_DOMAIN(value); Element response = lc.createElement(AdminService.GET_DOMAIN_RESPONSE); doDomain(response, domain, applyConfig); return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/92fb4a7ffb990b49853e0b4f110104bbb0c31562/GetDomain.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/admin/GetDomain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
202,
5411,
2285,
381,
15397,
20601,
1042,
9109,
273,
23448,
381,
15397,
20601,
1042,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
202,
5411,
2285,
381,
15397,
20601,
1042,
9109,
273,
23448,
381,
15397,
20601,
1042,
12,
... |
return cond1(node, 0); | if (node == null) { return null; } if (node.getType() == Constants.NODE_NEWLINE) { node.setNextNode(cond0(node.getNextNode()/*, logop*/)); return node; } return cond0(node/*, logop*/); | public Node cond(Node node) { return cond1(node, 0); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
6941,
12,
907,
756,
13,
288,
1850,
309,
261,
2159,
422,
446,
13,
288,
327,
446,
31,
289,
225,
309,
261,
2159,
18,
588,
559,
1435,
422,
5245,
18,
8744,
67,
12917,
5997,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
6941,
12,
907,
756,
13,
288,
1850,
309,
261,
2159,
422,
446,
13,
288,
327,
446,
31,
289,
225,
309,
261,
2159,
18,
588,
559,
1435,
422,
5245,
18,
8744,
67,
12917,
5997,
13,... |
debugln("Done with battleMove"); | Log.debug("Done with battleMove"); | public void battleMove(Game game) { debugln("Called battleMove()"); // Consider one critter at a time, in order of importance. // Examine all possible moves for that critter not already // taken by a more important one. // TODO Handle summoned/recruited critters, in particular // getting stuff out of the way so that a reinforcement // has room to enter. ArrayList bestOrder = findBattleMoves(game); // Now that critters are sorted into the order in which they // should move, start moving them for real. If the preferred // move fails, fall back to the critter's remaining moves. Battle battle = game.getBattle(); BattleMap map = battle.getBattleMap(); Legion legion = battle.getActiveLegion(); if (bestOrder != null) { Iterator it = bestOrder.iterator(); while (it.hasNext()) { ArrayList moveList = (ArrayList)it.next(); Iterator it2 = moveList.iterator(); while (it2.hasNext()) { CritterMove cm = (CritterMove)it2.next(); Critter fakeCritter = cm.getCritter(); // Get the critter in this legion with the same tag. Critter critter = legion.getCritterByTag( fakeCritter.getTag()); BattleHex hex = cm.getEndingHex(map); debugln("applymove: try " + critter + " to " + hex.getLabel()); if (battle.doMove(critter, hex)) { // The move was okay, so continue to the next critter. break; } } } } debugln("Done with battleMove"); } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/86902f81e383916ddb285ab20096b96c43d25f36/SimpleAI.java/clean/Colossus/SimpleAI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
324,
4558,
298,
7607,
12,
12496,
7920,
13,
565,
288,
3639,
1198,
2370,
2932,
8185,
324,
4558,
298,
7607,
1435,
8863,
3639,
368,
23047,
1245,
7921,
387,
622,
279,
813,
16,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
324,
4558,
298,
7607,
12,
12496,
7920,
13,
565,
288,
3639,
1198,
2370,
2932,
8185,
324,
4558,
298,
7607,
1435,
8863,
3639,
368,
23047,
1245,
7921,
387,
622,
279,
813,
16,
316,
... |
result.setContinue(continueTarget); | loop.setContinue(continueTarget); | private Node createLoop(int loopType, Node body, Node cond, Node init, Node incr, int lineno) { Node.Target bodyTarget = new Node.Target(); Node.Target condTarget = new Node.Target(); if (loopType == LOOP_FOR && cond.getType() == Token.EMPTY) { cond = new Node(Token.TRUE); } Node.Jump IFEQ = new Node.Jump(Token.IFEQ, cond); IFEQ.target = bodyTarget; Node.Target breakTarget = new Node.Target(); Node.Jump result = new Node.Jump(Token.LOOP, lineno); result.addChildToBack(bodyTarget); result.addChildrenToBack(body); if (loopType == LOOP_WHILE || loopType == LOOP_FOR) { // propagate lineno to condition result.addChildrenToBack(new Node(Token.EMPTY, lineno)); } result.addChildToBack(condTarget); result.addChildToBack(IFEQ); result.addChildToBack(breakTarget); result.target = breakTarget; Node.Target continueTarget = condTarget; if (loopType == LOOP_WHILE || loopType == LOOP_FOR) { // Just add a GOTO to the condition in the do..while Node.Jump GOTO = new Node.Jump(Token.GOTO); GOTO.target = condTarget; result.addChildToFront(GOTO); if (loopType == LOOP_FOR) { if (init.getType() != Token.EMPTY) { if (init.getType() != Token.VAR) { init = new Node(Token.EXPR_VOID, init); } result.addChildToFront(init); } Node.Target incrTarget = new Node.Target(); result.addChildAfter(incrTarget, body); if (incr.getType() != Token.EMPTY) { incr = new Node(Token.EXPR_VOID, incr); result.addChildAfter(incr, incrTarget); } continueTarget = incrTarget; } } result.setContinue(continueTarget); return result; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/792304a2a96cea5a80c02ff6a02a98f830f7393d/IRFactory.java/clean/js/rhino/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
752,
6452,
12,
474,
2798,
559,
16,
2029,
1417,
16,
2029,
6941,
16,
18701,
2029,
1208,
16,
2029,
17633,
16,
509,
7586,
13,
565,
288,
3639,
2029,
18,
2326,
1417,
2326,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
752,
6452,
12,
474,
2798,
559,
16,
2029,
1417,
16,
2029,
6941,
16,
18701,
2029,
1208,
16,
2029,
17633,
16,
509,
7586,
13,
565,
288,
3639,
2029,
18,
2326,
1417,
2326,
273,
39... |
reportGenericSchemaError("could not find global element : '" + localpart | reportGenericSchemaError("could not find global element : '" + localpart | DatatypeValidator getElementDeclTypeValidatorFromNS(String newSchemaURI, String localpart) throws Exception { Grammar grammar = fGrammarResolver.getGrammar(newSchemaURI); if (grammar != null && grammar instanceof SchemaGrammar) { SchemaGrammar sGrammar = (SchemaGrammar) grammar; int eltIndex = sGrammar.getElementDeclIndex(fStringPool.addSymbol(newSchemaURI), fStringPool.addSymbol(localpart), TOP_LEVEL_SCOPE); DatatypeValidator dv = null; if (eltIndex>-1) { sGrammar.getElementDecl(eltIndex, fTempElementDecl); dv = fTempElementDecl.datatypeValidator; } else { reportGenericSchemaError("could not find global element : '" + localpart + " in the SchemaGrammar "+newSchemaURI); } return dv; } else { reportGenericSchemaError("could not resolve URI : " + newSchemaURI + " to a SchemaGrammar in getELementDeclTypeValidatorFromNS"); } return null; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
21168,
5126,
7426,
3456,
559,
5126,
1265,
3156,
12,
780,
394,
3078,
3098,
16,
514,
1191,
2680,
13,
1216,
1185,
288,
3639,
27809,
6473,
273,
284,
18576,
4301,
18,
588,
18576,
12,
2704,
307... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21168,
5126,
7426,
3456,
559,
5126,
1265,
3156,
12,
780,
394,
3078,
3098,
16,
514,
1191,
2680,
13,
1216,
1185,
288,
3639,
27809,
6473,
273,
284,
18576,
4301,
18,
588,
18576,
12,
2704,
307... |
protected void createDescriptionLayout(FormToolkit toolkit, final ScrolledForm form) { Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_DESCRIPTION); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); // GridLayout compLayout = new GridLayout();// compLayout.numColumns = 2;// container.setLayout(compLayout);// container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // Description Area Composite descriptionComposite = toolkit.createComposite(section); GridLayout descriptionLayout = new GridLayout(); descriptionLayout.numColumns = 4; descriptionComposite.setLayout(descriptionLayout);// descriptionComposite.setBackground(background); GridData descriptionData = new GridData(GridData.FILL_HORIZONTAL); descriptionData.horizontalSpan = 1; descriptionData.grabExcessVerticalSpace = false;// descriptionComposite.setLayoutData(descriptionData); // End Description Area section.setClient(descriptionComposite); // FormText t = newLayout(descriptionComposite, 4, "Description:", HEADER); // t.addListener(SWT.FocusIn, new DescriptionListener()); FormText t = newLayout(descriptionComposite, 4, bug.getDescription(), VALUE); t.setFont(COMMENT_FONT); t.addListener(SWT.FocusIn, new DescriptionListener()); texts.add(textsindex, t); textHash.put(bug.getDescription(), t); textsindex++; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ba5345422277783a8697e4b02ef47ab7b1021488/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3291,
3744,
12,
1204,
6364,
8691,
5226,
8691,
16,
727,
2850,
25054,
1204,
646,
13,
288,
9506,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3291,
3744,
12,
1204,
6364,
8691,
5226,
8691,
16,
727,
2850,
25054,
1204,
646,
13,
288,
9506,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
22... | ||
yaccValue = "<="; src.unread(c); | src.unread(c); yaccValue = new Token("<=", getPosition(null, false)); | private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... |
return username != null; | return username == null; | public boolean isAnonymous() { return username != null; } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/ad2907f48bc6ea0babac36df125c2430d1fe191a/AuthTokenImpl.java/buggy/src/java/org/jivesoftware/messenger/auth/spi/AuthTokenImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
18792,
1435,
288,
3639,
327,
2718,
422,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
18792,
1435,
288,
3639,
327,
2718,
422,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID()) | BitstreamFormat unknown = null;; try { unknown = findUnknown(bfContext); } catch (IllegalStateException e) { } if (unknown == null || unknown.getID() != getID()) { | public void setShortDescription(String s) throws SQLException { // You can not reset the unknown's registry's name BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID()) bfRow.setColumn("short_description", s); } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/b1f9fd2d4f8f5a194f5770c224795f089f004bd4/BitstreamFormat.java/buggy/dspace/src/org/dspace/content/BitstreamFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4897,
3291,
12,
780,
272,
13,
4202,
1216,
6483,
565,
288,
3639,
368,
4554,
848,
486,
2715,
326,
5917,
1807,
4023,
1807,
508,
3639,
6539,
3256,
1630,
5917,
273,
1104,
4874,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4897,
3291,
12,
780,
272,
13,
4202,
1216,
6483,
565,
288,
3639,
368,
4554,
848,
486,
2715,
326,
5917,
1807,
4023,
1807,
508,
3639,
6539,
3256,
1630,
5917,
273,
1104,
4874,... |
getButton(IDialogConstants.OK_ID).setEnabled(false); errorOccurred = false; try { Iterator nodes = preferenceManager.getElements( PreferenceManager.PRE_ORDER).iterator(); while (nodes.hasNext()) { IPreferenceNode node = (IPreferenceNode) nodes.next(); IPreferencePage page = node.getPage(); if (page != null) { if (!page.performOk()) return; } } } catch (Exception e) { handleException(e); } finally { if (!errorOccurred) handleSave(); close(); } } | getButton(IDialogConstants.OK_ID).setEnabled(false); errorOccurred = false; try { Iterator nodes = preferenceManager.getElements( PreferenceManager.PRE_ORDER).iterator(); while (nodes.hasNext()) { IPreferenceNode node = (IPreferenceNode) nodes.next(); IPreferencePage page = node.getPage(); if (page != null) { if (!page.performOk()) return; } } } catch (Exception e) { handleException(e); } finally { if (!errorOccurred) handleSave(); close(); } } | public void run() { getButton(IDialogConstants.OK_ID).setEnabled(false); errorOccurred = false; try { // Notify all the pages and give them a chance to abort Iterator nodes = preferenceManager.getElements( PreferenceManager.PRE_ORDER).iterator(); while (nodes.hasNext()) { IPreferenceNode node = (IPreferenceNode) nodes.next(); IPreferencePage page = node.getPage(); if (page != null) { if (!page.performOk()) return; } } } catch (Exception e) { handleException(e); } finally { // Give subclasses the choice to save the state of the // preference pages. if (!errorOccurred) handleSave(); // Need to restore state close(); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d6d458c4d729d92f70d2e5d4166fe0c3ff50c883/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
2882,
2644,
12,
734,
3529,
2918,
18,
3141,
67,
734,
2934,
542,
1526,
12,
5743,
1769,
7734,
555,
30096,
273,
629,
31,
7734,
775,
288,
10792,
368,
10918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
2882,
2644,
12,
734,
3529,
2918,
18,
3141,
67,
734,
2934,
542,
1526,
12,
5743,
1769,
7734,
555,
30096,
273,
629,
31,
7734,
775,
288,
10792,
368,
10918,
... |
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr); else s.checkConnect(addr.getHostAddress(), p.getPort()); } // FIXME: if this is a subclass of MulticastSocket, // use getTimeToLive for TTL val. impl.send(p); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/36e953e19158aa2f7e16ad8534450b58f07fea36/DatagramSocket.java/buggy/libjava/java/net/DatagramSocket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1366,
12,
5139,
17049,
6667,
293,
13,
1216,
1860,
225,
288,
565,
368,
24387,
21,
18,
22,
30,
7615,
1404,
741,
4373,
4271,
309,
2987,
353,
5840,
31,
2621,
525,
2883,
21,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1366,
12,
5139,
17049,
6667,
293,
13,
1216,
1860,
225,
288,
565,
368,
24387,
21,
18,
22,
30,
7615,
1404,
741,
4373,
4271,
309,
2987,
353,
5840,
31,
2621,
525,
2883,
21,
18,
... | ||
super(owner, tagName); | super(owner, tagName); | public WMLElementImpl (WMLDocumentImpl owner, String tagName) { super(owner, tagName); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/a0ba982304fe9f3700209293da4d2533e292e5d2/WMLElementImpl.java/buggy/src/org/apache/wml/dom/WMLElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
11155,
2828,
261,
59,
1495,
2519,
2828,
3410,
16,
514,
7196,
13,
288,
202,
9565,
12,
8443,
16,
7196,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
11155,
2828,
261,
59,
1495,
2519,
2828,
3410,
16,
514,
7196,
13,
288,
202,
9565,
12,
8443,
16,
7196,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_log.log(this + ".quit() failed!"); | public final void quit() { beforeQuit(); _slaveExited = false;// Utilities.showDebug("quit() called"); // put exit into another thread to allow this RMI call to return normally. Thread t = new Thread(_quitSlaveThreadName) { public void run() { try { // wait for parent thread to exit synchronized(_slaveJVMLock) { while (! _slaveExited) _slaveJVMLock.wait(); }// SecurityManager mgr = System.getSecurityManager();// Utilities.showDebug("Got the security manager. mgr = " + mgr);// if (mgr instanceof PreventExitSecurityManager) {// PreventExitSecurityManager pemgr = (PreventExitSecurityManager) System.getSecurityManager();// pemgr.exitVM(0);// }// else System.exit(0); } catch (Throwable th) { // Utilities.showDebug("Quit failed"); quitFailed(th); } } }; t.start(); synchronized(_slaveJVMLock) { _slaveExited = true; _slaveJVMLock.notify(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/fa54651cc7ac0d03884ebcafd7e8520df74651a1/AbstractSlaveJVM.java/clean/drjava/src/edu/rice/cs/util/newjvm/AbstractSlaveJVM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
1330,
18,
1330,
12,
2211,
397,
3552,
27176,
1435,
2535,
4442,
1769,
389,
1330,
18,
1330,
12,
2211,
397,
3552,
27176,
1435,
2535,
4442,
1769,
1071,
67,
1330,
18,
1330,
12,
2211,
397,
3552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
1330,
18,
1330,
12,
2211,
397,
3552,
27176,
1435,
2535,
4442,
1769,
389,
1330,
18,
1330,
12,
2211,
397,
3552,
27176,
1435,
2535,
4442,
1769,
1071,
67,
1330,
18,
1330,
12,
2211,
397,
3552,... | |
public static String valueOf( int i) { return Integer.toString(i); | public static String valueOf( Object obj) { return (obj == null) ? "null" : obj.toString(); | public static String valueOf( int i) { return Integer.toString(i);} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/024615eb43331d7cde632e5a471987591a24bcf1/String.java/buggy/libraries/javalib/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
514,
4323,
12,
509,
277,
13,
288,
202,
2463,
2144,
18,
10492,
12,
77,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
1071,
760,
514,
4323,
12,
509,
277,
13,
288,
202,
2463,
2144,
18,
10492,
12,
77,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
nanos = x.nanoSeconds + k * nanos; long millis = x.calendar.getTimeInMillis(); millis += nanos / 1000000L; | if ((x.mask & TIME_MASK) == 0) { long nanosPerDay = 1000000000L * 24 * 60 * 60; long mod = nanos % nanosPerDay; if (mod < 0) mod += nanosPerDay; nanos -= mod; } long millis = r.calendar.getTimeInMillis(); millis += (nanos / 1000000000L) * 1000; | public static DateTime add (DateTime x, Duration y, int k) { DateTime r = new DateTime(x.mask, (GregorianCalendar) x.calendar.clone()); if (y.months != 0) { int month = 12 * r.getYear() + r.calendar.get(Calendar.MONTH); month += k * y.months; int day = r.calendar.get(Calendar.DATE); int year, daysInMonth; if (month >= 12) { year = month / 12; month = month % 12; r.calendar.set(Calendar.ERA, GregorianCalendar.AD); daysInMonth = daysInMonth(month, year); } else { month = 11 - month; r.calendar.set(Calendar.ERA, GregorianCalendar.BC); year = (month / 12) + 1; month = 11 - (month % 12); daysInMonth = daysInMonth(month, 1); } if (day > daysInMonth) day = daysInMonth; r.calendar.set(year, month, day); } long nanos = y.seconds * 1000000000L + y.nanos; if (nanos != 0) { nanos = x.nanoSeconds + k * nanos; long millis = x.calendar.getTimeInMillis(); millis += nanos / 1000000L; r.calendar.setTimeInMillis(millis); r.nanoSeconds = (int) (nanos % 1000000L); } return r; } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/d2335ffab30210ba9f6f2c03a2f5386ecf29bd57/DateTime.java/clean/gnu/math/DateTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3716,
527,
261,
5096,
619,
16,
4822,
677,
16,
509,
417,
13,
225,
288,
565,
3716,
436,
273,
394,
3716,
12,
92,
18,
4455,
16,
261,
31560,
7335,
13,
619,
18,
11650,
18,
14056,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3716,
527,
261,
5096,
619,
16,
4822,
677,
16,
509,
417,
13,
225,
288,
565,
3716,
436,
273,
394,
3716,
12,
92,
18,
4455,
16,
261,
31560,
7335,
13,
619,
18,
11650,
18,
14056,... |
m_inspectionClasses.add(UnnecessaryInterfaceModifierInspection.class); m_inspectionClasses.add(UnnecessaryEnumModifierInspection.class); | m_inspectionClasses.add(com.siyeh.ig.verbose.UnnecessaryInterfaceModifierInspection.class); m_inspectionClasses.add(com.siyeh.ig.verbose.UnnecessaryEnumModifierInspection.class); | private void registerVerboseInspections(){ m_inspectionClasses.add(UnnecessaryLabelOnBreakStatementInspection.class); m_inspectionClasses.add(UnnecessaryLabelOnContinueStatementInspection.class); m_inspectionClasses.add(PointlessBooleanExpressionInspection.class); m_inspectionClasses.add(ReplaceAssignmentWithOperatorAssignmentInspection.class); m_inspectionClasses.add(TrivialIfInspection.class); m_inspectionClasses.add(UnnecessaryConditionalExpressionInspection.class); m_inspectionClasses.add(ConstantConditionalExpressionInspection.class); m_inspectionClasses.add(ConstantIfStatementInspection.class); m_inspectionClasses.add(UnnecessaryParenthesesInspection.class); m_inspectionClasses.add(UnnecessaryLocalVariableInspection.class); m_inspectionClasses.add(UnnecessaryThisInspection.class); m_inspectionClasses.add(UnnecessaryBlockStatementInspection.class); m_inspectionClasses.add(UnnecessaryInterfaceModifierInspection.class); m_inspectionClasses.add(UnnecessaryEnumModifierInspection.class); m_inspectionClasses.add(UnnecessaryReturnInspection.class); m_inspectionClasses.add(UnnecessaryContinueInspection.class); m_inspectionClasses.add(UnnecessarySemicolonInspection.class); m_inspectionClasses.add(UnnecessaryFullyQualifiedNameInspection.class); m_inspectionClasses.add(UnnecessaryQualifierForThisInspection.class); m_inspectionClasses.add(UnusedLabelInspection.class); m_inspectionClasses.add(RedundantFieldInitializationInspection.class); m_inspectionClasses.add(RedundantImplementsInspection.class); m_inspectionClasses.add(ExtendsObjectInspection.class); m_inspectionClasses.add(TypeParameterExtendsObjectInspection.class); m_inspectionClasses.add(PointlessArithmeticExpressionInspection.class); m_inspectionClasses.add(PointlessBitwiseExpressionInspection.class); m_inspectionClasses.add(UnnecessarySuperConstructorInspection.class); m_inspectionClasses.add(UnnecessaryConstructorInspection.class); m_inspectionClasses.add(ForLoopReplaceableByWhileInspection.class); m_inspectionClasses.add(UnnecessaryDefaultInspection.class); m_inspectionClasses.add(UnnecessaryBoxingInspection.class); m_inspectionClasses.add(UnnecessaryUnboxingInspection.class); m_inspectionClasses.add(UnnecessaryFinalOnParameterInspection.class); m_inspectionClasses.add(UnnecessaryFinalOnLocalVariableInspection.class); m_inspectionClasses.add(ForCanBeForeachInspection.class); m_inspectionClasses.add(WhileCanBeForeachInspection.class); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6ba145fb0f240b22c23ab071ce546e5d315606f1/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1744,
14489,
14985,
87,
1435,
95,
3639,
312,
67,
2679,
7017,
4818,
18,
1289,
12,
984,
82,
4128,
2224,
1398,
7634,
3406,
14985,
18,
1106,
1769,
3639,
312,
67,
2679,
7017,
4818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
14489,
14985,
87,
1435,
95,
3639,
312,
67,
2679,
7017,
4818,
18,
1289,
12,
984,
82,
4128,
2224,
1398,
7634,
3406,
14985,
18,
1106,
1769,
3639,
312,
67,
2679,
7017,
4818,
... |
public IASTClassSpecifier createClassSpecifier(IASTScope scope, ITokenDuple name, ASTClassKind kind, ClassNameType type, ASTAccessVisibility access, int startingOffset, int nameOffset, int nameEndOffset ) { return new ASTClassSpecifier( scope, name == null ? "" : name.toString() , kind, type, startingOffset, nameOffset, nameEndOffset, access ); | public IASTClassSpecifier createClassSpecifier(IASTScope scope, ITokenDuple name, ASTClassKind kind, ClassNameType type, ASTAccessVisibility access, int startingOffset, int startingLine, int nameOffset, int nameEndOffset, int nameLine ) { return new ASTClassSpecifier( scope, name == null ? "" : name.toString() , kind, type, startingOffset, startingLine, nameOffset, nameEndOffset, nameLine, access ); | public IASTClassSpecifier createClassSpecifier(IASTScope scope, ITokenDuple name, ASTClassKind kind, ClassNameType type, ASTAccessVisibility access, int startingOffset, int nameOffset, int nameEndOffset ) { return new ASTClassSpecifier( scope, name == null ? "" : name.toString() , kind, type, startingOffset, nameOffset, nameEndOffset, access ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/QuickParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/QuickParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
797,
21416,
752,
797,
21416,
12,
45,
9053,
3876,
2146,
16,
467,
1345,
40,
2268,
508,
16,
9183,
797,
5677,
3846,
16,
19811,
559,
618,
16,
9183,
1862,
10135,
2006,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
797,
21416,
752,
797,
21416,
12,
45,
9053,
3876,
2146,
16,
467,
1345,
40,
2268,
508,
16,
9183,
797,
5677,
3846,
16,
19811,
559,
618,
16,
9183,
1862,
10135,
2006,
16... |
String initializer_prefix = | String initializer_prefix = | public static Vector getORBInitializers() { Enumeration prop_names = _props.propertyNames(); Vector orb_initializers = new Vector(); String initializer_prefix = "org.omg.PortableInterceptor.ORBInitializerClass."; //Test EVERY property if prefix matches. //I'm open to suggestions for more efficient ways (noffke) while(prop_names.hasMoreElements()) { String prop = (String) prop_names.nextElement(); if ( prop.startsWith( initializer_prefix )) { String name = _props.getProperty( prop ); if( name == null || name.length() == 0 ) { if( prop.length() > initializer_prefix.length() ) { name = prop.substring( initializer_prefix.length() ); } } if( name == null ) { continue; } try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); orb_initializers.addElement(cl.loadClass(name).newInstance()); Debug.output(Debug.INTERCEPTOR | Debug.DEBUG1, "Build: " + name); } catch (Exception e) { Debug.output(1, e); Debug.output( 1, "Unable to build ORBInitializer from >>" + name + "<<" ); } } } return orb_initializers; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/427b81af6905dd67a3d2e38369db7effb2834f87/Environment.java/buggy/src/org/jacorb/util/Environment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5589,
336,
916,
38,
4435,
8426,
1435,
565,
288,
3639,
13864,
2270,
67,
1973,
273,
389,
9693,
18,
4468,
1557,
5621,
3639,
5589,
16823,
67,
6769,
8426,
273,
394,
5589,
5621,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
336,
916,
38,
4435,
8426,
1435,
565,
288,
3639,
13864,
2270,
67,
1973,
273,
389,
9693,
18,
4468,
1557,
5621,
3639,
5589,
16823,
67,
6769,
8426,
273,
394,
5589,
5621,
3639... |
log.debug("Found " + segments.size() + " segments "); if (segments.size() > 0) | try | private void mergeAndUpdate() throws IOException { FSDirectory.setDisableLocks(true); // get the tmp index File tmpSegment = clusterFS.getTemporarySegment(false); Directory[] tmpDirectory = new Directory[1]; tmpDirectory[0] = FSDirectory.getDirectory(tmpSegment, false); List segments = clusterFS.updateSegments(); // create a size sorted list if ( segments.size() > 10 ) { long[] segmentSize = new long[segments.size()-1]; File[] segmentName = new File[segments.size()-1]; for (int i = 0; i < segmentSize.length; i++ ) { segmentName[i] = new File((String)segments.get(i)); segmentSize[i] = clusterFS.getTotalSize(segmentName[i]); } boolean moved = true; while (moved) { moved = false; for (int i = 1; i < segmentSize.length; i++) { if (segmentSize[i] > segmentSize[i - 1]) { long size = segmentSize[i]; File name = segmentName[i]; segmentSize[i] = segmentSize[i - 1]; segmentName[i] = segmentName[i - 1]; segmentSize[i - 1] = size; segmentName[i - 1] = name; moved = true; } } } long sizeBlock = 0; int ninblock = 0; int mergegroupno = 1; int[] mergegroup = new int[segmentSize.length]; int[] groupstomerge = new int[segmentSize.length]; mergegroup[0] = mergegroupno; { int j = 0; for ( int i = 0; i < segmentSize.length; i++ ) { groupstomerge[i] = 0; if ( ninblock == 0 ) { sizeBlock = segmentSize[0]; ninblock = 1; } if ( segmentSize[i] > sizeBlock/10 ) { ninblock++; } else { ninblock = 1; mergegroupno++; sizeBlock = segmentSize[i]; } mergegroup[i] = mergegroupno; if ( ninblock >= 10 ) { if ( sizeBlock < 200L*1024L*1024L) { // only perform merge for segments < 200M // oterwise we risk a 2G segment. groupstomerge[j++] = mergegroupno; } mergegroupno++; ninblock = 0; } } if ( j > 0 ) { StringBuffer status = new StringBuffer(); for ( int i = 0; i < segmentSize.length; i++ ) { status.append("Segment ").append(i).append(" n").append(segmentName[i]).append(" s").append(segmentSize[i]).append(" g").append(mergegroup[i]).append("\n"); } for ( int i = 0; i < groupstomerge.length; i++ ) { status.append("Merge group ").append(i).append(" m").append(groupstomerge[i]).append("\n"); } log.info("Search Merge \n"+status); } } // groups to merge contains a list of group numbers that need to be // merged. // mergegroup marks each segment with a group number. for ( int i = 0; i < groupstomerge.length; i++ ) { if ( groupstomerge[i] != 0 ) { StringBuffer status = new StringBuffer(); status.append("Group ").append(i).append(" Merge ").append(groupstomerge[i]).append("\n"); File mergeSegment = clusterFS.newSegment(); IndexWriter mergeIndexWriter = null; boolean mergeOk = false; try { mergeIndexWriter = new IndexWriter(FSDirectory.getDirectory(mergeSegment,false), getAnalyzer(), true); mergeIndexWriter.setUseCompoundFile(true); //indexWriter.setInfoStream(System.out); mergeIndexWriter.setMaxMergeDocs(50); mergeIndexWriter.setMergeFactor(50); ArrayList indexes = new ArrayList(); for ( int j = 0; j < mergegroup.length; j++ ) { if ( mergegroup[j] == groupstomerge[i]) { Directory d = FSDirectory.getDirectory(segmentName[j],false); if ( d.fileExists("segments") ) { status.append(" Merge ").append(segmentName[j].getName()).append(" >> ").append(mergeSegment.getName()).append("\n"); indexes.add(d); } } } log.info("Merging \n"+status); mergeIndexWriter.addIndexes((Directory[]) indexes.toArray(new Directory[indexes.size()])); mergeIndexWriter.close(); log.info("Done "+groupstomerge[i]); mergeIndexWriter = null; // remove old segments mergeOk = true; } catch ( Exception ex ) { log.error("Failed to merge search segments "+ex.getMessage()); try { mergeIndexWriter.close(); } catch ( Exception ex2 ) {} try { clusterFS.removeLocalSegment(mergeSegment); } catch ( Exception ex2 ) { log.error("Failed to remove merge segment "+mergeSegment.getName()+" "+ex2.getMessage()); } } finally { try { mergeIndexWriter.close(); } catch ( Exception ex) { } } if ( mergeOk ) { for ( int j = 0; j < mergegroup.length; j++ ) { if ( mergegroup[j] == groupstomerge[i]) { clusterFS.removeLocalSegment(segmentName[j]); } } } } } } // merge it with the current index File currentSegment = null; IndexWriter indexWriter = null; log.debug("Found " + segments.size() + " segments "); if (segments.size() > 0) { currentSegment = new File((String) segments .get(segments.size() - 1)); if (!currentSegment.exists() || clusterFS.getTotalSize(currentSegment) > segmentThreshold) { currentSegment = null; } } if (currentSegment == null) { currentSegment = clusterFS.newSegment(); log.debug("Created new segment " + currentSegment.getName()); indexWriter = new IndexWriter(FSDirectory.getDirectory(currentSegment,false), getAnalyzer(), true); indexWriter.setUseCompoundFile(true); //indexWriter.setInfoStream(System.out); indexWriter.setMaxMergeDocs(50); indexWriter.setMergeFactor(50); } else { clusterFS.touchSegment(currentSegment); indexWriter = new IndexWriter(FSDirectory.getDirectory(currentSegment,false), getAnalyzer(), false); indexWriter.setUseCompoundFile(true); //indexWriter.setInfoStream(System.out); indexWriter.setMaxMergeDocs(50); indexWriter.setMergeFactor(50); } if ( tmpDirectory[0].fileExists("segments") ) { indexWriter.addIndexes(tmpDirectory); } indexWriter.close(); clusterFS.removeTemporarySegment(); clusterFS.saveSegments(); log.debug("End Index Cycle"); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/da209afb6cdb7bdb76749fe0201660fc4840fbac/ClusterFSIndexStorage.java/clean/search/search-impl/impl/src/java/org/sakaiproject/search/index/impl/ClusterFSIndexStorage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2691,
1876,
1891,
1435,
1216,
1860,
202,
95,
202,
202,
4931,
2853,
18,
542,
11879,
19159,
12,
3767,
1769,
202,
202,
759,
336,
326,
1853,
770,
202,
202,
812,
1853,
4131,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
1876,
1891,
1435,
1216,
1860,
202,
95,
202,
202,
4931,
2853,
18,
542,
11879,
19159,
12,
3767,
1769,
202,
202,
759,
336,
326,
1853,
770,
202,
202,
812,
1853,
4131,
... |
private void endPath() throws SAXException { checkLastElement(PATHS); // relies on the fact that absoluteToRelativePath returns null for paths that are not on the branch. String filename = repositoryFileManager.absoluteToRelativePath(stringData); final RevisionData data = (RevisionData) currentRevisionData.createCopy(); if (!pathAction.equals("D")) { data.setStateExp(true); if (pathAction.equals("A") || pathAction.equals("R")) { data.setStateAdded(true); } } else { data.setStateDead(true); } // if (filename == null) {// SvnConfigurationOptions.getTaskLogger().log("### Null Filename" + stringData);// } if (copyfromRev!=null && filename == null && stringData!=null && stringData.indexOf("/tags/")>=0) { SvnConfigurationOptions.getTaskLogger().log("=========== TAG " + stringData+" rev:"+copyfromRev); String tag = stringData.substring("/tags/".length()); if (tag.indexOf("/")>0) { tag = tag.substring(0,tag.indexOf("/")); } if (!tagsMap.containsKey(tag)) { tagsMap.put(tag, copyfromRev); } } data.setCopyfromPath(copyfromPath); data.setCopyfromRevision(copyfromRev); currentRevisions.add(data); currentFilenames.add(filename); } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/ef07130d90f16778fea045de5bbda08053b1a533/SvnXmlLogFileHandler.java/buggy/src/net/sf/statsvn/input/SvnXmlLogFileHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
679,
743,
1435,
1216,
14366,
288,
202,
202,
1893,
3024,
1046,
12,
4211,
55,
1769,
202,
202,
759,
14719,
281,
603,
326,
5410,
716,
4967,
774,
16519,
1135,
446,
364,
2953,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
743,
1435,
1216,
14366,
288,
202,
202,
1893,
3024,
1046,
12,
4211,
55,
1769,
202,
202,
759,
14719,
281,
603,
326,
5410,
716,
4967,
774,
16519,
1135,
446,
364,
2953,
... | ||
public void addToolbarButton(GrendelToolBar aToolBar, UIAction aActionListener, String aImageName, String aToolTip) { JButton b = new JButton(); b.setHorizontalTextPosition(JButton.CENTER); b.setVerticalTextPosition(JButton.BOTTOM); b.setToolTipText(aToolTip);// URL iconUrl = getClass().getResource("images/" + gifName + ".gif"); // b.setIcon(new ImageIcon(getClass().getResource(aImageName))); // FIXME - need the toolbar graphics for this sub-app // (Jeff) b.setIcon(new ImageIcon(getClass().getResource("markAllRead.gif")));// iconUrl = getClass().getResource("images/" + gifName + "-disabled.gif");// button.setDisabledIcon(ImageIcon.createImageIcon(iconUrl));// iconUrl = getClass().getResource("images/" + gifName + "-depressed.gif");// button.setPressedIcon(ImageIcon.createImageIcon(iconUrl));// iconUrl = getClass().getResource("images/" + gifName + "-rollover.gif");// button.setRolloverIcon(ImageIcon.createImageIcon(iconUrl));// JButton b = new JButton(new ImageIcon(aImageName)); b.setToolTipText(aToolTip);// b.setPad(new Insets(3,3,3,3)); if (aActionListener != null) { b.addActionListener(aActionListener);} aToolBar.add(b); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/clean/grendel/addressbook/AddressBook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
17907,
3616,
12,
43,
1187,
3771,
6364,
5190,
279,
6364,
5190,
16,
6484,
1803,
279,
1803,
2223,
16,
514,
279,
2040,
461,
16,
514,
279,
29250,
13,
288,
3639,
28804,
324,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
17907,
3616,
12,
43,
1187,
3771,
6364,
5190,
279,
6364,
5190,
16,
6484,
1803,
279,
1803,
2223,
16,
514,
279,
2040,
461,
16,
514,
279,
29250,
13,
288,
3639,
28804,
324,
2... | ||
server = new TestServer(false); | server = new LocalTestServer(); | public static synchronized void create() throws Exception { if (server != null) { return; } if (isLocal()) { server = new TestServer(false); return; } server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES); if (server != null) { // RMI server started return; } // the remote RMI server is not started // I could attempt to start the remote server VM from the test itself (see commented out code) // but when running such a test from a forking ant, ant blocks forever waiting for *this* VM // to exit. That's why I require the remote server to be started in advance. throw new IllegalStateException("The RMI server doesn't seem to be started. " + "Start it and re-run the test.");// // start the service container and the JMS server in a different VM// vmStarter = new Thread(new VMStarter(), "External VM Starter Thread");// vmStarter.setDaemon(true);// vmStarter.start();//// server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES);//// if (server == null)// {// throw new IllegalStateException("Cannot find remote server " +// TestServer.RMI_SERVER_NAME + " in registry");// } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7bd784746aeaf6b749d60d883b9a5b59d28b10d/ServerManagement.java/clean/tests/src/org/jboss/test/messaging/tools/ServerManagement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
3852,
918,
752,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
3567,
480,
446,
13,
1377,
288,
540,
327,
31,
1377,
289,
1377,
309,
261,
291,
2042,
10756,
1377,
288,
540,
1438,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
3852,
918,
752,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
3567,
480,
446,
13,
1377,
288,
540,
327,
31,
1377,
289,
1377,
309,
261,
291,
2042,
10756,
1377,
288,
540,
1438,
27... |
activePart = newPart; | private void setActivePart(IWorkbenchPart newPart) { // Optimize it. if (activePart == newPart) return; //No need to change the history if the active editor is becoming the // active part boolean markLocation = newPart != lastActiveEditor; String label = null; // debugging only if (UIStats.isDebugging(UIStats.ACTIVATE_PART)) { label = newPart != null ? newPart.getTitle() : "none"; //$NON-NLS-1$ } try { UIStats.start(UIStats.ACTIVATE_PART, label); // Notify perspective. It may deactivate fast view. Perspective persp = getActivePerspective(); if (persp != null) persp.partActivated(newPart); // Deactivate old part IWorkbenchPart oldPart = activePart; if (oldPart != null) { deactivatePart(oldPart); } // Set active part. activePart = newPart; if (newPart != null) { activationList.setActive(newPart); if (newPart instanceof IEditorPart) { lastActiveEditor = (IEditorPart) newPart; IEditorReference ref = (IEditorReference) getReference(lastActiveEditor); editorMgr.setVisibleEditor(ref, true); } } activatePart(activePart); if (markLocation && activePart != null && activePart instanceof IEditorPart) navigationHistory.markEditor((IEditorPart) activePart); // Fire notifications if (oldPart != null) firePartDeactivated(oldPart); // Update actions now so old actions have heard part deactivated // and // new actions can hear part activated. actionSwitcher.updateActivePart(newPart); if (newPart != null) firePartActivated(newPart); } finally { Object blame = newPart == null ? (Object)this : newPart; UIStats.end(UIStats.ACTIVATE_PART, blame, label); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/45ab2bee3420234882ba61c9b99fecd868b62e8f/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
20669,
1988,
12,
45,
2421,
22144,
1988,
394,
1988,
13,
288,
3639,
368,
12056,
10153,
518,
18,
3639,
309,
261,
3535,
1988,
422,
394,
1988,
13,
5411,
327,
31,
3639,
368,
2279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20669,
1988,
12,
45,
2421,
22144,
1988,
394,
1988,
13,
288,
3639,
368,
12056,
10153,
518,
18,
3639,
309,
261,
3535,
1988,
422,
394,
1988,
13,
5411,
327,
31,
3639,
368,
2279,
... | |
SubString getParenSubString(int i) { if (i < parens.size()) { SubString parsub = (SubString)parens.get(i); | SubString getParenSubString(int i) { if (parens != null && i < parens.length) { SubString parsub = parens[i]; | SubString getParenSubString(int i) { if (i < parens.size()) { SubString parsub = (SubString)parens.get(i); if (parsub != null) { return parsub; } } return SubString.emptySubString; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/4325425450cad0841e37f55e5fb5c6024e71485c/RegExpImpl.java/buggy/src/org/mozilla/javascript/regexp/RegExpImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2592,
780,
1689,
7892,
1676,
780,
12,
474,
277,
13,
288,
3639,
309,
261,
77,
411,
30821,
18,
1467,
10756,
288,
5411,
2592,
780,
779,
1717,
273,
261,
1676,
780,
13,
1848,
2387,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2592,
780,
1689,
7892,
1676,
780,
12,
474,
277,
13,
288,
3639,
309,
261,
77,
411,
30821,
18,
1467,
10756,
288,
5411,
2592,
780,
779,
1717,
273,
261,
1676,
780,
13,
1848,
2387,
18,
588,
... |
throws SchedulerException { | throws SchedulerException { | public void initialize(QuartzScheduler qs, TriggerFiredBundle firedBundle) throws SchedulerException { this.qs = qs; Job job = null; JobDetail jobDetail = firedBundle.getJobDetail(); try { job = qs.getJobFactory().newJob(firedBundle); } catch (SchedulerException se) { qs.notifySchedulerListenersError( "An error occured instantiating job to be executed. job= '" + jobDetail.getFullName() + "'", se); throw se; } catch (Throwable ncdfe) { // such as NoClassDefFoundError SchedulerException se = new SchedulerException( "Problem instantiating class '" + jobDetail.getJobClass().getName() + "' - ", ncdfe); qs.notifySchedulerListenersError( "An error occured instantiating job to be executed. job= '" + jobDetail.getFullName() + "'", se); throw se; } this.jec = new JobExecutionContext(scheduler, firedBundle, job); } | 55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/4025763e26e5df8d31922c934176d658ea8fbbe3/JobRunShell.java/clean/src/java/org/quartz/core/JobRunShell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
12099,
94,
11870,
8719,
16,
11321,
42,
2921,
3405,
15950,
3405,
13,
5411,
1216,
12620,
503,
288,
3639,
333,
18,
12926,
273,
8719,
31,
3639,
3956,
1719,
273,
446,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
12099,
94,
11870,
8719,
16,
11321,
42,
2921,
3405,
15950,
3405,
13,
5411,
1216,
12620,
503,
288,
3639,
333,
18,
12926,
273,
8719,
31,
3639,
3956,
1719,
273,
446,
31,
... |
log.info("Old DD does not contain an entry for EJB Reference "+bean.getText(EjbLocalRefBean.EJB_REF_NAME_XPATH)+"; adding a default entry"); | log.info("Old DD does not contain an entry for EJB Reference "+bean.getText(EjbLocalRefBean.EJB_REF_NAME_XPATH)[0]+"; adding a default entry"); | private static void assignEjbLocalRefs(BaseEjbBean dest, EjbLocalRef[] refs, DDBean[] beans) throws ConfigurationException { Set found = new HashSet(); for(int i=0; i<refs.length; i++) { DDBean match = null; for(int j = 0; j < beans.length; j++) { if(beans[j].getText(EjbLocalRefBean.EJB_REF_NAME_XPATH).equals(refs[i].getEjbRefName())) { match = beans[j]; } } if(match == null) { log.warn("EJB Reference "+refs[i].getEjbRefName()+" in old DD is no longer present; removing."); continue; } found.add(match); EjbLocalRefBean bean = (EjbLocalRefBean)dest.getDConfigBean(match); bean.setEjbRefName(refs[i].getEjbRefName()); bean.setJndiName(refs[i].getJndiName()); JndiContextParam[] params = refs[i].getJndiContextParams().getJndiContextParam(); ContextParam[] cp = new ContextParam[params.length]; for(int j=0; j<params.length; j++) { cp[j] = new ContextParam(); cp[j].setParamName(params[j].getParamName()); cp[j].setParamValue(params[j].getParamValue()); } bean.setContextParam(cp); } for(int i = 0; i < beans.length; i++) { DDBean bean = beans[i]; if(found.contains(bean)) { continue; } log.info("Old DD does not contain an entry for EJB Reference "+bean.getText(EjbLocalRefBean.EJB_REF_NAME_XPATH)+"; adding a default entry"); dest.getDConfigBean(bean); } } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/a43316686998f033c67331d824c8eeb422eda90b/EjbConverter.java/buggy/modules/core/src/java/org/apache/geronimo/enterprise/deploy/provider/jar/EjbConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2683,
41,
10649,
2042,
9837,
12,
2171,
41,
10649,
3381,
1570,
16,
512,
10649,
2042,
1957,
8526,
9047,
16,
25177,
3381,
8526,
15709,
13,
1216,
22196,
288,
3639,
1000,
1392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2683,
41,
10649,
2042,
9837,
12,
2171,
41,
10649,
3381,
1570,
16,
512,
10649,
2042,
1957,
8526,
9047,
16,
25177,
3381,
8526,
15709,
13,
1216,
22196,
288,
3639,
1000,
1392,
... |
XSDocumentInfo schemaDoc, SchemaGrammar grammar) { | XSDocumentInfo schemaDoc, SchemaGrammar grammar) { | XSSimpleType traverseGlobal(Element elmNode, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(elmNode, true, schemaDoc); String nameAtt = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; XSSimpleType type = traverseSimpleTypeDecl(elmNode, attrValues, schemaDoc, grammar, true); fAttrChecker.returnAttrArray(attrValues, schemaDoc); if (nameAtt == null) reportSchemaError("s4s-att-must-appear", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, SchemaSymbols.ATT_NAME}, elmNode); return type; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/9937a7538f627abf2baddaf9a6dee38e610e4394/XSDSimpleTypeTraverser.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
1260,
2052,
559,
10080,
5160,
12,
1046,
12531,
907,
16,
19694,
1139,
55,
2519,
966,
1963,
1759,
16,
19694,
4611,
18576,
6473,
13,
288,
3639,
368,
9544,
3601,
24471,
3639,
1033,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
1260,
2052,
559,
10080,
5160,
12,
1046,
12531,
907,
16,
19694,
1139,
55,
2519,
966,
1963,
1759,
16,
19694,
4611,
18576,
6473,
13,
288,
3639,
368,
9544,
3601,
24471,
3639,
1033,
8526,
... |
public HttpAuthenticationFactory(NutchConf conf) { | public HttpAuthenticationFactory(Configuration conf) { | public HttpAuthenticationFactory(NutchConf conf) { setConf(conf); } | 57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/HttpAuthenticationFactory.java/buggy/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpAuthenticationFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2541,
6492,
1733,
12,
1750,
2195,
13,
288,
1377,
444,
3976,
12,
3923,
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,... | [
1,
1,
1,
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,
377,
1071,
2541,
6492,
1733,
12,
1750,
2195,
13,
288,
1377,
444,
3976,
12,
3923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
break _loop625; | break _loop610; | public final void definetemptablestate(AST _t) throws RecognitionException { AST definetemptablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST bt = null; AST __t606 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case PRIVATE: case PUBLIC: case TEMPTABLE: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case TEMPTABLE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1179_AST_in = (AST)_t; match(_t,TEMPTABLE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defineTemptable(def, id); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNDO: { AST tmp1180_AST_in = (AST)_t; match(_t,UNDO); _t = _t.getNextSibling(); break; } case NOUNDO: { AST tmp1181_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case NAMESPACEURI: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEURI: { namespace_uri(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEPREFIX: { namespace_prefix(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case REFERENCEONLY: { AST tmp1182_AST_in = (AST)_t; match(_t,REFERENCEONLY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LIKE: { def_table_like(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BEFORETABLE: { AST __t616 = _t; AST tmp1183_AST_in = (AST)_t; match(_t,BEFORETABLE); _t = _t.getFirstChild(); bt = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defineBuffer(bt, bt, id, false); } _t = __t616; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RCODEINFORMATION: { AST tmp1184_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: { break; } default: { throw new NoViableAltException(_t); } } } { _loop619: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==FIELD)) { def_table_field(_t); _t = _retTree; } else { break _loop619; } } while (true); } { _loop630: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==INDEX)) { AST __t621 = _t; AST tmp1185_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); AST tmp1186_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop625: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_17.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST tmp1187_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); break; } case IS: { AST tmp1188_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); break; } case PRIMARY: case UNIQUE: case WORDINDEX: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1189_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case PRIMARY: { AST tmp1190_AST_in = (AST)_t; match(_t,PRIMARY); _t = _t.getNextSibling(); break; } case WORDINDEX: { AST tmp1191_AST_in = (AST)_t; match(_t,WORDINDEX); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop625; } } while (true); } { int _cnt629=0; _loop629: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ID)) { AST tmp1192_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop628: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASCENDING: { AST tmp1193_AST_in = (AST)_t; match(_t,ASCENDING); _t = _t.getNextSibling(); break; } case DESCENDING: { AST tmp1194_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case CASESENSITIVE: { AST tmp1195_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } default: { break _loop628; } } } while (true); } } else { if ( _cnt629>=1 ) { break _loop629; } else {throw new NoViableAltException(_t);} } _cnt629++; } while (true); } _t = __t621; _t = _t.getNextSibling(); } else { break _loop630; } } while (true); } state_end(_t); _t = _retTree; _t = __t606; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2217,
278,
5744,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2217,
278,
5744,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2217,
278,
5744,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2217,
278,
5744,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422... |
updateAttributesFromRepository(repository.getUrl(), product.getSelection(), false); | if(product.getSelection().length > 0) { updateAttributesFromRepository(repository.getUrl(), product.getSelection(), false); } | public void setVisible(boolean visible) { if (visible && summaryPattern != null) { if (firstTime) { if (repository == null) { repository = TasksUiPlugin.getRepositoryManager().getDefaultRepository( BugzillaPlugin.REPOSITORY_KIND); } Set<TaskRepository> repositories = TasksUiPlugin.getRepositoryManager().getRepositories( BugzillaPlugin.REPOSITORY_KIND); String[] repositoryUrls = new String[repositories.size()]; int i = 0; int indexToSelect = 0; for (Iterator<TaskRepository> iter = repositories.iterator(); iter.hasNext();) { TaskRepository currRepsitory = iter.next(); // if (i == 0 && repository == null) { // repository = currRepsitory; // indexToSelect = 0; // } if (repository != null && repository.equals(currRepsitory)) { indexToSelect = i; } repositoryUrls[i] = currRepsitory.getUrl(); i++; } IDialogSettings settings = getDialogSettings(); if (repositoryCombo != null) { repositoryCombo.setItems(repositoryUrls); if (repositoryUrls.length == 0) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); } else { String selectRepo = settings.get(STORE_REPO_ID); if (selectRepo != null) { repositoryCombo.setText(selectRepo); repository = TasksUiPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryCombo.getText()); if (repository == null) { repository = TasksUiPlugin.getRepositoryManager().getDefaultRepository( BugzillaPlugin.REPOSITORY_KIND); } } else { repositoryCombo.select(indexToSelect); } updateAttributesFromRepository(repositoryCombo.getText(), null, false); } } firstTime = false; // Set item and text here to prevent page from resizing for (String searchPattern : getPreviousPatterns(previousSummaryPatterns)) { summaryPattern.add(searchPattern); } // summaryPattern.setItems(getPreviousPatterns(previousSummaryPatterns)); for (String comment : getPreviousPatterns(previousCommentPatterns)) { commentPattern.add(comment); } // commentPattern.setItems(getPreviousPatterns(previousCommentPatterns)); for (String email : getPreviousPatterns(previousEmailPatterns)) { emailPattern.add(email); } // emailPattern.setItems(getPreviousPatterns(previousEmailPatterns)); // TODO: update status, resolution, severity etc if possible... if (repository != null) { updateAttributesFromRepository(repository.getUrl(), null, false); if (product.getItemCount() == 0) { updateAttributesFromRepository(repository.getUrl(), null, true); } } if (originalQuery != null) { try { updateDefaults(originalQuery.getUrl(), String.valueOf(originalQuery.getMaxHits())); } catch (UnsupportedEncodingException e) { // ignore } } } /* * hack: we have to select the correct product, then update the * attributes so the component/version/milestone lists have the * proper values, then we can restore all the widget selections. */ if (repository != null) { IDialogSettings settings = getDialogSettings(); String repoId = "." + repository.getUrl(); if (getWizard() == null && restoreQueryOptions && settings.getArray(STORE_PRODUCT_ID + repoId) != null && product != null) { product.setSelection(nonNullArray(settings, STORE_PRODUCT_ID + repoId)); updateAttributesFromRepository(repository.getUrl(), product.getSelection(), false); restoreWidgetValues(); } } if (scontainer != null) { scontainer.setPerformActionEnabled(canQuery()); } if (getWizard() == null) { // TODO: wierd check summaryPattern.setFocus(); } } super.setVisible(visible); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/6b5fb0a94792efaf79df48a6c061edb6c3a78067/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
12,
6494,
6021,
13,
288,
202,
202,
430,
261,
8613,
597,
4916,
3234,
480,
446,
13,
288,
1082,
202,
430,
261,
3645,
950,
13,
288,
9506,
202,
430,
261,
9071,
422,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16697,
12,
6494,
6021,
13,
288,
202,
202,
430,
261,
8613,
597,
4916,
3234,
480,
446,
13,
288,
1082,
202,
430,
261,
3645,
950,
13,
288,
9506,
202,
430,
261,
9071,
422,
4... |
public RubyString newString(String s) { | public RubyString newString(CharSequence s) { | public RubyString newString(String s) { return new RubyString(getRuntime(), getType(), s); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
780,
394,
780,
12,
780,
272,
13,
288,
202,
202,
2463,
394,
19817,
780,
12,
588,
5576,
9334,
3130,
9334,
272,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
19817,
780,
394,
780,
12,
780,
272,
13,
288,
202,
202,
2463,
394,
19817,
780,
12,
588,
5576,
9334,
3130,
9334,
272,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.floatArrayClass)); | variant = mb.createCPrimitivePointerVariant(-1, javaType(ArrayTypes.floatArrayClass)); | private List/*<MethodBinding>*/ expandMethodBinding(MethodBinding binding) { List result = new ArrayList(); result.add(binding); int i = 0; while (i < result.size()) { MethodBinding mb = (MethodBinding) result.get(i); boolean shouldRemoveCurrent = false; for (int j = 0; j < mb.getNumArguments(); j++) { JavaType t = mb.getJavaArgumentType(j); if (t.isCPrimitivePointerType()) { // Remove original from list shouldRemoveCurrent = true; MethodBinding variant = null; // Non-NIO variants for void* and other C primitive pointer types if (!cfg.nioOnly(mb.getCSymbol().getName())) { if (t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.booleanArrayClass)); if (! result.contains(variant)) result.add(variant); variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.charArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCCharPointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.byteArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCShortPointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.shortArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCInt32PointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.intArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCInt64PointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.longArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCFloatPointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.floatArrayClass)); if (! result.contains(variant)) result.add(variant); } if (t.isCDoublePointerType() || t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, javaType(ArrayTypes.doubleArrayClass)); if (! result.contains(variant)) result.add(variant); } } // NIO variants for void* and other C primitive pointer types if (!cfg.noNio(mb.getCSymbol().getName())) { if (t.isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOBufferClass()); if (! result.contains(variant)) result.add(variant); } } if ((cfg.nioMode() == JavaConfiguration.NIO_MODE_ALL_POINTERS && !cfg.noNio(mb.getCSymbol().getName())) || (cfg.nioMode() == JavaConfiguration.NIO_MODE_VOID_ONLY && cfg.forcedNio(mb.getCSymbol().getName()))) { if (t.isCCharPointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOByteBufferClass()); if (! result.contains(variant)) result.add(variant); } if (t.isCShortPointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOShortBufferClass()); if (! result.contains(variant)) result.add(variant); } if (t.isCInt32PointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOIntBufferClass()); if (! result.contains(variant)) result.add(variant); } if (t.isCInt64PointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOLongBufferClass()); if (! result.contains(variant)) result.add(variant); } if (t.isCFloatPointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIOFloatBufferClass()); if (! result.contains(variant)) result.add(variant); } if (t.isCDoublePointerType()) { variant = mb.createCPrimitivePointerVariant(j, JavaType.forNIODoubleBufferClass()); if (! result.contains(variant)) result.add(variant); } } } } if (mb.getJavaReturnType().isCPrimitivePointerType()) { MethodBinding variant = null; if (mb.getJavaReturnType().isCVoidPointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.forNIOByteBufferClass()); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCCharPointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.byteArrayClass)); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCShortPointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.shortArrayClass)); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCInt32PointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.intArrayClass)); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCInt64PointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.longArrayClass)); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCFloatPointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.floatArrayClass)); if (! result.contains(variant)) result.add(variant); } else if (mb.getJavaReturnType().isCDoublePointerType()) { variant = mb.createCPrimitivePointerVariant(-1, JavaType.createForClass(ArrayTypes.doubleArrayClass)); if (! result.contains(variant)) result.add(variant); } shouldRemoveCurrent = true; } if (shouldRemoveCurrent) { result.remove(i); --i; } ++i; } // Honor the flattenNIOVariants directive in the configuration file if (cfg.flattenNIOVariants()) { i = 0; while (i < result.size()) { boolean shouldRemoveCurrent = false; MethodBinding mb = (MethodBinding) result.get(i); for (int j = 0; j < binding.getNumArguments() && !shouldRemoveCurrent; j++) { JavaType t1 = binding.getJavaArgumentType(j); if (t1.isCPrimitivePointerType() && !t1.isCVoidPointerType()) { for (int k = j + 1; k < binding.getNumArguments() && !shouldRemoveCurrent; k++) { JavaType t2 = binding.getJavaArgumentType(k); if (t2.isCPrimitivePointerType() && !t2.isCVoidPointerType()) { // The "NIO-ness" of the converted arguments in the // new binding must match JavaType nt1 = mb.getJavaArgumentType(j); JavaType nt2 = mb.getJavaArgumentType(k); if (nt1.isNIOBuffer() != nt2.isNIOBuffer()) { shouldRemoveCurrent = true; } } } } } if (shouldRemoveCurrent) { result.remove(i); --i; } ++i; } } return result; } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/4b93bb531605fa082bdad6452d3e6a51cbb15bed/JavaEmitter.java/buggy/src/net/java/games/gluegen/JavaEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
987,
20308,
32,
1305,
5250,
34,
5549,
4542,
1305,
5250,
12,
1305,
5250,
5085,
13,
288,
565,
987,
563,
273,
394,
2407,
5621,
565,
563,
18,
1289,
12,
7374,
1769,
565,
509,
277,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
20308,
32,
1305,
5250,
34,
5549,
4542,
1305,
5250,
12,
1305,
5250,
5085,
13,
288,
565,
987,
563,
273,
394,
2407,
5621,
565,
563,
18,
1289,
12,
7374,
1769,
565,
509,
277,
273,... |
VM.sysWrite(right(GPR_NAMES[R0] + " ", DEST_AREA_SIZE)); | VM.sysWrite(right(isFP(op)?FPR_NAMES[R0]:GPR_NAMES[R0] + " ", DEST_AREA_SIZE)); | final void RRN (int i, String op, byte R0, byte R1) { VM.sysWrite(right(hex(i),6) + "| "); VM.sysWrite(right("", PREFIX_AREA_SIZE) + " "); VM.sysWrite( left(op, OP_AREA_SIZE)); VM.sysWrite(right(GPR_NAMES[R0] + " ", DEST_AREA_SIZE)); VM.sysWrite(right("[" + GPR_NAMES[R1] + "]", SOURCE_AREA_SIZE) + " | "); asm.writeLastInstruction(i); VM.sysWrite("\n"); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9063e1907da2ef6c3d56bb7697025dc65b42c4bd/VM_Lister.java/buggy/rvm/src/vm/arch/intel/assembler/VM_Lister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
21618,
50,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
1160,
534,
21,
13,
288,
565,
8251,
18,
9499,
3067,
12,
4083,
12,
7118,
12,
77,
3631,
26,
13,
397,
11747,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
21618,
50,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
1160,
534,
21,
13,
288,
565,
8251,
18,
9499,
3067,
12,
4083,
12,
7118,
12,
77,
3631,
26,
13,
397,
11747,
31... |
case AscensionSnapshotTable.SAUCEROR: stringForm.append( "S" ); break; | case AscensionSnapshotTable.SAUCEROR: stringForm.append( "S" ); break; | private void setData( String playerName, String playerID, String[] columns ) { this.playerName = playerName; this.playerID = playerID; try { // The level at which the ascension took place is found // in the third column, or index 2 in the array. this.timestamp = ASCEND_DATE_FORMAT.parse( columns[1] ); this.level = StaticEntity.parseInt( columns[2] ); this.classID = columns[3].startsWith( "SC" ) ? AscensionSnapshotTable.SEAL_CLUBBER : columns[3].startsWith( "T" ) ? AscensionSnapshotTable.TURTLE_TAMER : columns[3].startsWith( "P" ) ? AscensionSnapshotTable.PASTAMANCER : columns[3].startsWith( "S" ) ? AscensionSnapshotTable.SAUCEROR : columns[3].startsWith( "D" ) ? AscensionSnapshotTable.DISCO_BANDIT : AscensionSnapshotTable.ACCORDION_THIEF; this.sign = columns[4]; this.turnCount = StaticEntity.parseInt( columns[5] ); this.dayCount = StaticEntity.parseInt( columns[6] ); String [] path = columns[7].split( "," ); this.isSoftcore = path[0].equals( "Normal" ); this.pathID = path[1].equals( "NoPath" ) ? AscensionSnapshotTable.NOPATH : path[1].equals( "Teetotaler" ) ? AscensionSnapshotTable.TEETOTALER : path[1].equals( "Boozetafarian" ) ? AscensionSnapshotTable.BOOZETAFARIAN : AscensionSnapshotTable.OXYGENARIAN; } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e ); } stringForm = new StringBuffer(); stringForm.append( "<tr><td><a href=\"ascensions/" + this.playerID + ".htm\"><b>" + this.playerName + "</b></a> (" ); switch ( this.classID ) { case AscensionSnapshotTable.SEAL_CLUBBER: stringForm.append( "SC" ); break; case AscensionSnapshotTable.TURTLE_TAMER: stringForm.append( "TT" ); break; case AscensionSnapshotTable.PASTAMANCER: stringForm.append( "P" ); break; case AscensionSnapshotTable.SAUCEROR: stringForm.append( "S" ); break; case AscensionSnapshotTable.DISCO_BANDIT: stringForm.append( "DB" ); break; case AscensionSnapshotTable.ACCORDION_THIEF: stringForm.append( "AT" ); break; } stringForm.append( ") </td><td align=right>" ); stringForm.append( this.dayCount ); stringForm.append( "</td><td align=right>" ); stringForm.append( this.turnCount ); stringForm.append( "</td></tr>" ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/eb8203b0add11024f00f9d7ed2ad7b2b63269aab/AscensionDataRequest.java/buggy/src/net/sourceforge/kolmafia/AscensionDataRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
7929,
12,
514,
7291,
461,
16,
514,
7291,
734,
16,
514,
8526,
2168,
262,
202,
202,
95,
1082,
202,
2211,
18,
14872,
461,
273,
7291,
461,
31,
1082,
202,
2211,
18,
14872,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
7929,
12,
514,
7291,
461,
16,
514,
7291,
734,
16,
514,
8526,
2168,
262,
202,
202,
95,
1082,
202,
2211,
18,
14872,
461,
273,
7291,
461,
31,
1082,
202,
2211,
18,
14872,
... |
writeSuccessFractionCell(p, buf); | writeProgressFractionCell(p, buf); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { StringBuffer buf = new StringBuffer(2048); ctx.getPageMaker().makeHead(buf, "Queued Requests"); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } if(!(completedDownloadToTemp.isEmpty() && completedDownloadToDisk.isEmpty() && completedUpload.isEmpty() && completedDirUpload.isEmpty())) { writeBigHeading("Completed requests", buf); if(!completedDownloadToTemp.isEmpty()) { writeTableHead("Completed downloads to temporary space", new String[] { "", "Identifier", "Size", "Type", "Download", "Persistence", "Key" }, buf ); for(Iterator i = completedDownloadToTemp.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDownloadToDisk.isEmpty()) { writeTableHead("Completed downloads to disk", new String[] { "", "Identifier", "Filename", "Size", "Type", "Download", "Persistence", "Key" }, buf); for(Iterator i=completedDownloadToDisk.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedUpload.isEmpty()) { writeTableHead("Completed uploads", new String[] { "", "Key", "Filename", "Size", "Type", "Persistence", "Identifier" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDirUpload.isEmpty()) { // FIXME include filename?? writeTableHead("Completed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Persistence", "Key" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } /* FIXME color-coded progress bars. * It would be really nice to have a color-coded progress bar. * We can then show what part is successful, what part isn't tried yet, * what part has each different well known error code... */ if(!(failedDownload.isEmpty() && failedUpload.isEmpty())) { writeBigHeading("Failed requests", buf); if(!failedDownload.isEmpty()) { writeTableHead("Failed downloads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedUpload.isEmpty()) { writeTableHead("Failed uploads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedDirUpload.isEmpty()) { writeTableHead("Failed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } if(!(uncompletedDownload.isEmpty() && uncompletedUpload.isEmpty() && uncompletedDirUpload.isEmpty())) { writeBigHeading("Requests in progress", buf); if(!uncompletedDownload.isEmpty()) { writeTableHead("Downloads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedUpload.isEmpty()) { writeTableHead("Uploads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedDirUpload.isEmpty()) { writeTableHead("Directory uploads in progress", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Persistence", "Key" }, buf); for(Iterator i=uncompletedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/2a50af2c7d1c8c3a5ad945e6a509003db2cd8d7f/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... |
public CmpField toCmpField() { | public CmpField toCmpField() throws XavaException { | public CmpField toCmpField() { CmpField f = new CmpField(); f.setCmpTypeName(getCmpTypeName()); f.setColumn(f.getColumn()); return f; } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/bb55d319c3d36bb6e749a1706ac75b2b08018f35/PropertyMapping.java/buggy/OpenXava/src/org/openxava/mapping/PropertyMapping.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26460,
974,
358,
31832,
974,
1435,
288,
202,
202,
31832,
974,
284,
273,
394,
26460,
974,
5621,
202,
202,
74,
18,
542,
31832,
7947,
12,
588,
31832,
7947,
10663,
202,
202,
74,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26460,
974,
358,
31832,
974,
1435,
288,
202,
202,
31832,
974,
284,
273,
394,
26460,
974,
5621,
202,
202,
74,
18,
542,
31832,
7947,
12,
588,
31832,
7947,
10663,
202,
202,
74,
1... |
doc.insertString(0, | doc.insertString(doc.getLength(), | private void _updateNoErrors(boolean haveTestsRun) throws BadLocationException { DefaultStyledDocument doc = new DefaultStyledDocument(); String msg = (haveTestsRun) ? "All tests completed successfully." : ""; doc.insertString(0, msg, NORMAL_ATTRIBUTES); setDocument(doc); selectNothing(); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/1acb7e79f21833d9f8611e81be6afdbc403d9516/JUnitPanel.java/buggy/drjava/src/edu/rice/cs/drjava/ui/JUnitPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
2725,
2279,
4229,
12,
6494,
1240,
14650,
1997,
13,
1216,
6107,
2735,
503,
288,
1377,
2989,
24273,
1259,
2519,
997,
273,
394,
2989,
24273,
1259,
2519,
5621,
5411,
514,
1234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2725,
2279,
4229,
12,
6494,
1240,
14650,
1997,
13,
1216,
6107,
2735,
503,
288,
1377,
2989,
24273,
1259,
2519,
997,
273,
394,
2989,
24273,
1259,
2519,
5621,
5411,
514,
1234,
... |
" ( begin ( select ( send ( send (symbol object) ( apply (symbol no) ) ) ( apply (symbol demeter) ) ) (symbol law) ) )"); | " ( begin ( select ( send ( send (symbol object) ( apply (symbol no) (table)) ) ( apply (symbol demeter) (table) ) ) (symbol law) ) )"); | public void testMessageSending() { testParse( "object.no().demeter().law", " ( begin ( select ( send ( send (symbol object) ( apply (symbol no) ) ) ( apply (symbol demeter) ) ) (symbol law) ) )"); testParse( "object.keyworded: message send: test", " ( begin ( send (symbol object) ( apply ( symbol keyworded:send:) (table (symbol message) (symbol test) ) ) ) )"); } | 57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/f1ae6cd6391846e6108256607861caa30e274ebc/ATParserTest.java/clean/edu/vub/at/parser/test/ATParserTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1079,
16322,
1435,
288,
202,
565,
1842,
3201,
12,
202,
377,
202,
202,
6,
1612,
18,
2135,
7675,
19117,
847,
7675,
80,
2219,
3113,
202,
377,
202,
202,
6,
261,
2376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1079,
16322,
1435,
288,
202,
565,
1842,
3201,
12,
202,
377,
202,
202,
6,
1612,
18,
2135,
7675,
19117,
847,
7675,
80,
2219,
3113,
202,
377,
202,
202,
6,
261,
2376,
... |
return getProject().getWorkspace().getRoot().getFile(path); | return getProject().getWorkspace().getRoot().findMember(path); | private IFile getFile() { String value = text.getText(); if (value.length()==0) return null; IPath path = getProject().getFullPath().append(value); return getProject().getWorkspace().getRoot().getFile(path); } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/bf09c34dc1fe3e235e18bcb78f5b87e0a2d6e83f/ResourceAttributeRow.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/rows/ResourceAttributeRow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
812,
6034,
1435,
288,
202,
202,
780,
460,
273,
977,
18,
588,
1528,
5621,
202,
202,
430,
261,
1132,
18,
2469,
1435,
631,
20,
13,
327,
446,
31,
202,
202,
45,
743,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
812,
6034,
1435,
288,
202,
202,
780,
460,
273,
977,
18,
588,
1528,
5621,
202,
202,
430,
261,
1132,
18,
2469,
1435,
631,
20,
13,
327,
446,
31,
202,
202,
45,
743,
589,
... |
if (comments != null) { for (Iterator cItr = comments.iterator(); cItr.hasNext();) { | if (comments != null) { for (Iterator cItr = comments.iterator(); cItr.hasNext();) { | protected Document getDocument(WeblogEntryData data) { StringBuffer commentEmail = new StringBuffer(); StringBuffer commentContent = new StringBuffer(); StringBuffer commentName = new StringBuffer(); List comments = data.getComments(); if (comments != null) { for (Iterator cItr = comments.iterator(); cItr.hasNext();) { CommentData comment = (CommentData) cItr.next(); if (comment.getSpam() == null || !comment.getSpam().booleanValue()) { if (comment.getContent() != null) { commentContent.append(comment.getContent()); commentContent.append(","); } if (comment.getEmail() != null) { commentEmail.append(comment.getEmail()); commentEmail.append(","); } if (comment.getName() != null) { commentName.append(comment.getName()); commentName.append(","); } } } } Document doc = new Document(); doc.add(Field.Keyword(FieldConstants.ID, data.getId())); doc.add(Field.Keyword(FieldConstants.WEBSITE_HANDLE, data.getWebsite().getHandle())); doc.add(Field.UnIndexed(FieldConstants.ANCHOR, data.getAnchor())); doc.add(Field.Text(FieldConstants.USERNAME, data.getCreator().getUserName())); doc.add(Field.Text(FieldConstants.TITLE, data.getTitle())); // index the entry text, but don't store it - moved to end of block doc.add(Field.UnStored(FieldConstants.CONTENT, data.getText())); // store an abbreviated version of the entry text, but don't index doc.add(Field.UnIndexed(FieldConstants.CONTENT_STORED, Utilities .truncateNicely(Utilities.removeHTML(data.getText()), 240, 260, "..."))); doc.add(Field.Keyword(FieldConstants.UPDATED, data.getUpdateTime() .toString())); doc.add(Field.Keyword(FieldConstants.PUBLISHED, data.getPubTime() .toString())); // index Comments doc.add(Field.UnStored(FieldConstants.C_CONTENT, commentContent .toString())); doc .add(Field.UnStored(FieldConstants.C_EMAIL, commentEmail .toString())); doc.add(Field.UnStored(FieldConstants.C_NAME, commentName.toString())); doc.add(Field.UnStored(FieldConstants.CONSTANT, FieldConstants.CONSTANT_V)); // index Category WeblogCategoryData categorydata = data.getCategory(); Field category = (categorydata == null) ? Field.UnStored( FieldConstants.CATEGORY, "") : Field.Text( FieldConstants.CATEGORY, categorydata.getName()); doc.add(category); return doc; } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/77aab6dabe55ba4c89c29d9798938c44daa0daf9/IndexOperation.java/clean/src/org/roller/business/search/operations/IndexOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4319,
9956,
12,
4079,
1330,
1622,
751,
501,
13,
565,
288,
3639,
6674,
2879,
4134,
273,
394,
6674,
5621,
3639,
6674,
2879,
1350,
273,
394,
6674,
5621,
3639,
6674,
2879,
461,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
9956,
12,
4079,
1330,
1622,
751,
501,
13,
565,
288,
3639,
6674,
2879,
4134,
273,
394,
6674,
5621,
3639,
6674,
2879,
1350,
273,
394,
6674,
5621,
3639,
6674,
2879,
461,
273,
394... |
setName("testMethod"); } | setName("testMethod"); } | public ExampleTestCase() { setName("testMethod"); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/VerifyingTestCaseTest.java/buggy/jmock/core/src/test/jmock/core/VerifyingTestCaseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
5090,
4709,
2449,
1435,
288,
540,
202,
542,
461,
2932,
3813,
1305,
8863,
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,
... | [
1,
1,
1,
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,
3196,
565,
1071,
5090,
4709,
2449,
1435,
288,
540,
202,
542,
461,
2932,
3813,
1305,
8863,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
NamedNodeMap entities = fDocumentType.getEntities(); fCurrentEntityDecl = (EntityImpl) entities.getNamedItem(name); | NamedNodeMap entities = fDocumentType.getEntities (); fCurrentEntityDecl = (EntityImpl) entities.getNamedItem (name); | public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>startGeneralEntity ("+name+")"); if (DEBUG_BASEURI) { System.out.println(" expandedSystemId( **baseURI): "+identifier.getExpandedSystemId()); System.out.println(" baseURI:"+ identifier.getBaseSystemId()); } } // Always create entity reference nodes to be able to recreate // entity as a part of doctype if (!fDeferNodeExpansion) { if (fFilterReject) { return; } setCharacterData(true); EntityReference er = fDocument.createEntityReference(name); if (fDocumentImpl != null) { // REVISIT: baseURI/actualEncoding // remove dependency on our implementation when DOM L3 is REC // EntityReferenceImpl erImpl =(EntityReferenceImpl)er; // set base uri erImpl.setBaseURI(identifier.getExpandedSystemId()); if (fDocumentType != null) { // set actual encoding NamedNodeMap entities = fDocumentType.getEntities(); fCurrentEntityDecl = (EntityImpl) entities.getNamedItem(name); if (fCurrentEntityDecl != null) { fCurrentEntityDecl.setInputEncoding(encoding); } } // we don't need synchronization now, because entity ref will be // expanded anyway. Synch only needed when user creates entityRef node erImpl.needsSyncChildren(false); } fCurrentNode.appendChild(er); fCurrentNode = er; } else { int er = fDeferredDocumentImpl.createDeferredEntityReference(name, identifier.getExpandedSystemId()); if (fDocumentTypeIndex != -1) { // find corresponding Entity decl int node = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (node != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(node, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(node, false); if (nodeName.equals(name)) { fDeferredEntityDecl = node; fDeferredDocumentImpl.setInputEncoding(node, encoding); break; } } node = fDeferredDocumentImpl.getRealPrevSibling(node, false); } } fDeferredDocumentImpl.appendChild(fCurrentNodeIndex, er); fCurrentNodeIndex = er; } } // startGeneralEntity(String,XMLResourceIdentifier, Augmentations) | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12580,
1943,
12,
780,
508,
16,
4766,
565,
3167,
1420,
3004,
2756,
16,
4766,
282,
514,
2688,
16,
432,
14870,
1012,
279,
9024,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12580,
1943,
12,
780,
508,
16,
4766,
565,
3167,
1420,
3004,
2756,
16,
4766,
282,
514,
2688,
16,
432,
14870,
1012,
279,
9024,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,... |
IProxy(int type) { | public IProxy(int type) { | IProxy(int type) { this.type = type; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/2d4fc75b74d717c754829dde488ff0a7456682cc/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
467,
3886,
12,
474,
618,
13,
3639,
288,
5411,
333,
18,
723,
273,
618,
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,
... | [
1,
1,
1,
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,
467,
3886,
12,
474,
618,
13,
3639,
288,
5411,
333,
18,
723,
273,
618,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public boolean equals(DisplayMode dm) { if (dm.bitDepth != bitDepth) { return false; | public boolean equals(Object dm) { if (dm instanceof DisplayMode) { return equals((DisplayMode)dm); | public boolean equals(DisplayMode dm) { if (dm.bitDepth != bitDepth) { return false; } if (dm.refreshRate != refreshRate) { return false; } if (dm.width != width) { return false; } if (dm.height != height) { return false; } return true; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9bad25bc3f8f9cc701dfb9555df351ae7577a2d8/DisplayMode.java/buggy/modules/awt/src/main/java/common/java/awt/DisplayMode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
4236,
2309,
9113,
13,
288,
3639,
309,
261,
10956,
18,
3682,
6148,
480,
2831,
6148,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
10956,
18,
9144,
4727,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1606,
12,
4236,
2309,
9113,
13,
288,
3639,
309,
261,
10956,
18,
3682,
6148,
480,
2831,
6148,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
10956,
18,
9144,
4727,
4... |
patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } | context.operands.push(context.findIdentifier(patoken.value)); | public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("undef: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } // we don't do an actual undef because we don't care } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/3cd4a973dbdca1f7072d8e189d388c5a878cc9a6/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
176... |
CustomEditor editor = CustomEditorRegistry.findEditor("display_window"); editor.setContext(context); pushCurrentBack(editor.getPanel()); | public void actionPerformed(ActionEvent evt) { ControlPanel control = (ControlPanel)evt.getSource(); Object value = control.getModel().getElementAt(evt.getID()); String item = (String)value; if (item.equals("D e v i c e s")) { showDevicesPanel(); } else if (item.equals("D i s p l a y")) { CustomEditor editor = CustomEditorRegistry.findEditor("display_window"); editor.setContext(context); pushCurrentBack(editor.getPanel()); } else if (item.equals("S i m u l a t o r")) { DisplayEditor display_editor = new DisplayEditor(); display_editor.setContext(context); pushCurrentBack(display_editor); } else if (item.equals("C l u s t e r")) { JDialog dlg = new JDialog( (Frame)SwingUtilities.getAncestorOfClass(Frame.class, ControlPanelView.this), "Sim Device Editor", true); dlg.getContentPane().setLayout(new BorderLayout()); SimAnalogDeviceEditor editor = new SimAnalogDeviceEditor(context); List chunks = getConfigBroker().getElements(context); ConfigElement device = (ConfigElement)ConfigUtilities.getElementsWithName(chunks, "Analog Simulator").get(0); editor.setDevice(device); dlg.getContentPane().add(editor, BorderLayout.CENTER); dlg.pack(); dlg.setVisible(true); } } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/562266849c8e27d3bda062d7067b73f0d9662a33/ControlPanelView.java/buggy/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ControlPanelView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
540,
288,
5411,
8888,
5537,
3325,
273,
261,
3367,
5537,
13,
73,
11734,
18,
588,
1830,
5621,
5411,
1033,
460,
273,
3325,
18,
588,
1488,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
540,
288,
5411,
8888,
5537,
3325,
273,
261,
3367,
5537,
13,
73,
11734,
18,
588,
1830,
5621,
5411,
1033,
460,
273,
3325,
18,
588,
1488,
7675,
... | |
getLogger().warn( "Unable to get resource from repository " + repository.getUrl() ); | getLogger().warn( "Unable to get resource from repository " + repository.getId() + " (" + repository.getUrl() + ")" ); | public void getArtifact( Artifact artifact, List remoteRepositories ) throws TransferFailedException, ResourceDoesNotExistException { // TODO [BP]: The exception handling here needs some work boolean successful = false; for ( Iterator iter = remoteRepositories.iterator(); iter.hasNext() && !successful; ) { ArtifactRepository repository = (ArtifactRepository) iter.next(); try { getArtifact( artifact, repository ); successful = artifact.isResolved(); } catch ( ResourceDoesNotExistException e ) { // This one we will eat when looking through remote repositories // because we want to cycle through them all before squawking. getLogger().warn( "Unable to get resource from repository " + repository.getUrl() ); } } if ( !successful ) { throw new ResourceDoesNotExistException( "Unable to download the artifact from any repository" ); } } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/6f72bd51df5331ea192410390921a19f83953a07/DefaultWagonManager.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24957,
12,
14022,
6462,
16,
987,
2632,
18429,
262,
3639,
1216,
12279,
12417,
16,
2591,
26621,
565,
288,
3639,
368,
2660,
306,
30573,
14542,
1021,
1520,
5057,
2674,
4260,
2690,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24957,
12,
14022,
6462,
16,
987,
2632,
18429,
262,
3639,
1216,
12279,
12417,
16,
2591,
26621,
565,
288,
3639,
368,
2660,
306,
30573,
14542,
1021,
1520,
5057,
2674,
4260,
2690,
14... |
int[] a1 = {targetArray[0], targetArray[1], targetArray[2]}; | int[] a1 = {targetArray[0], targetArray[1], targetArray[2]}; | private int allCombo(int[] targetArray) throws Exception { if(targetArray.length == 2) { int left, right; int[] lA = {targetArray[0], targetArray[1]}; int[] rA = {targetArray[1], targetArray[0]}; left = createSeq(lA); right = createSeq(rA); return fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, left, right, false); } else if (targetArray.length == 3) { int tempChoice; int[] a1 = {targetArray[0], targetArray[1], targetArray[2]}; int[] a2 = {targetArray[0], targetArray[2], targetArray[1]}; int[] a3 = {targetArray[1], targetArray[0], targetArray[2]}; int[] a4 = {targetArray[1], targetArray[2], targetArray[0]}; int[] a5 = {targetArray[2], targetArray[1], targetArray[0]}; int[] a6 = {targetArray[2], targetArray[0], targetArray[1]}; int s1 = createSeq(a1); int s2 = createSeq(a2); int s3 = createSeq(a3); int s4 = createSeq(a4); int s5 = createSeq(a5); int s6 = createSeq(a6); tempChoice = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, s1, s2, false); tempChoice = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, tempChoice, s3, false); tempChoice = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, tempChoice, s4, false); tempChoice = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, tempChoice, s5, false); return fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_CHOICE, tempChoice, s6, false); } else { return -2; } } // end allCombo | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
777,
16156,
12,
474,
8526,
1018,
1076,
13,
2398,
1216,
1185,
288,
3639,
309,
12,
3299,
1076,
18,
2469,
422,
576,
13,
288,
5411,
509,
2002,
16,
2145,
31,
2868,
509,
8526,
328,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
777,
16156,
12,
474,
8526,
1018,
1076,
13,
2398,
1216,
1185,
288,
3639,
309,
12,
3299,
1076,
18,
2469,
422,
576,
13,
288,
5411,
509,
2002,
16,
2145,
31,
2868,
509,
8526,
328,... |
replacements.put ( name, value ); | replacements.put(name, value); | public void setKeys(String keys) { if (keys != null && keys.length() > 0) { StringTokenizer tok = new StringTokenizer(keys, this.sep, false); while (tok.hasMoreTokens()) { String token = tok.nextToken().trim(); StringTokenizer itok = new StringTokenizer(token, "=", false); String name = itok.nextToken(); String value = itok.nextToken(); replacements.put ( name, value ); } } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/KeySubst.java/clean/src/main/org/apache/tools/ant/taskdefs/KeySubst.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2396,
12,
780,
1311,
13,
288,
3639,
309,
261,
2452,
480,
446,
597,
1311,
18,
2469,
1435,
405,
374,
13,
288,
5411,
16370,
946,
273,
5411,
394,
16370,
12,
2452,
16,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
2396,
12,
780,
1311,
13,
288,
3639,
309,
261,
2452,
480,
446,
597,
1311,
18,
2469,
1435,
405,
374,
13,
288,
5411,
16370,
946,
273,
5411,
394,
16370,
12,
2452,
16,
333,
... |
e.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, invite.getFreeBusyActual()); | Instance inst = new Instance(appt, new InviteInfo(invite), invite.getStartTime().getUtcTime(), invite.getEffectiveEndTime().getUtcTime(), invite.hasRecurId()); e.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, appt.getEffectiveFreeBusyActual(acct, invite, inst)); | public static Element encodeInvite(Element parent, ZimbraContext lc, Appointment apptOrNull, Invite invite, int fields, boolean includeReplies) { boolean allFields = true; if (fields != NOTIFY_FIELDS) { allFields = false; if (!needToOutput(fields, Change.MODIFIED_INVITE)) { return parent; } } Element e = parent.addElement(MailService.E_INVITE_COMPONENT); e.addAttribute(MailService.A_APPT_COMPONENT_NUM, invite.getComponentNum()); e.addAttribute(MailService.A_APPT_RSVP, invite.getRsvp()); if (allFields) { try { e.addAttribute("x_uid", invite.getUid()); Appointment appt = invite.getAppointment(); if (appt != null) e.addAttribute(MailService.A_APPT_ID, lc.formatItemId(appt)); if (invite.thisAcctIsOrganizer(appt.getMailbox().getAccount())) { e.addAttribute(MailService.A_APPT_ISORG, true); } Recurrence.IRecurrence recur = invite.getRecurrence(); if (recur != null) { Element recurElt = e.addElement(MailService.E_APPT_RECUR); recur.toXml(recurElt); } } catch(ServiceException ex) { ex.printStackTrace(); } e.addAttribute(MailService.A_APPT_TYPE, invite.getType()); e.addAttribute(MailService.A_APPT_STATUS, invite.getStatus()); e.addAttribute(MailService.A_APPT_FREEBUSY, invite.getFreeBusy()); e.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, invite.getFreeBusyActual()); if (includeReplies && apptOrNull != null) { List /*Appointment.ReplyInfo */ fbas = apptOrNull.getReplyInfo(invite); Element repliesElt = e.addElement(MailService.A_APPT_REPLIES); for (Iterator iter = fbas.iterator(); iter.hasNext(); ) { Appointment.ReplyInfo repInfo = (Appointment.ReplyInfo) iter.next(); Element curElt = repliesElt.addElement(MailService.E_APPT_REPLY); if (repInfo.mRecurId != null) { repInfo.mRecurId.toXml(curElt); }// PartStat ps = (PartStat)(repInfo.mAttendee.getParameters().getParameter(Parameter.PARTSTAT)); if (repInfo.mAttendee.hasPartStat()) { String psStr = repInfo.mAttendee.getPartStat(); curElt.addAttribute(MailService.A_APPT_PARTSTAT, psStr); String fbaStr = invite.partStatToFreeBusyActual(psStr); curElt.addAttribute(MailService.A_APPT_FREEBUSY_ACTUAL, fbaStr); } curElt.addAttribute("stamp", repInfo.mDtStamp); curElt.addAttribute("at", repInfo.mAttendee.getAddress()); } } e.addAttribute(MailService.A_APPT_TRANSPARENCY, invite.getTransparency()); if (invite.getRecurId() != null) { e.addAttribute(MailService.A_APPT_IS_EXCEPTION, true); } if (invite.isAllDayEvent()) e.addAttribute(MailService.A_APPT_ALLDAY, true); if (invite.getStartTime() != null) { Element startElt = e.addElement(MailService.E_APPT_START_TIME); ParsedDateTime dtStart = invite.getStartTime(); startElt.addAttribute(MailService.A_APPT_DATETIME, dtStart.getDateTimePartString()); String tzName = dtStart.getTZName(); if (tzName != null) { startElt.addAttribute(MailService.A_APPT_TIMEZONE, tzName); } } ParsedDateTime dtEnd = invite.getEndTime(); if (dtEnd != null) { Element endElt = e.addElement(MailService.E_APPT_END_TIME); if (invite.isAllDayEvent()) { // See CalendarUtils.parseInviteElementCommon, where we parse DTEND // for a description of why we add -1d when sending to the client dtEnd = dtEnd.add(ParsedDuration.NEGATIVE_ONE_DAY); } endElt.addAttribute(MailService.A_APPT_DATETIME, dtEnd.getDateTimePartString()); String tzName = dtEnd.getTZName(); if (tzName != null) { endElt.addAttribute(MailService.A_APPT_TIMEZONE, tzName); } } ParsedDuration dur = invite.getDuration(); if (dur != null) { dur.toXml(e); } e.addAttribute(MailService.A_NAME, invite.getName()); e.addAttribute(MailService.A_APPT_LOCATION, invite.getLocation()); // Organizer ZOrganizer org = invite.getOrganizer(); if (org != null) { Element orgElt = e.addUniqueElement(MailService.E_APPT_ORGANIZER); if (org.hasCn()) { orgElt.addAttribute(MailService.A_DISPLAY, org.getCn()); } String str = org.getAddress(); orgElt.addAttribute(MailService.A_URL, str); } // Attendee(s) Collection /*Invite.ZAttendee*/ ats = invite.getAttendees(); for (Iterator atsIter = ats.iterator();atsIter.hasNext();) { Element atElt = e.addElement(MailService.E_APPT_ATTENDEE); ZAttendee at = (ZAttendee)atsIter.next(); // display name if (at.hasCn()) { atElt.addAttribute(MailService.A_DISPLAY, at.getCn()); } // calendar user type if (at.hasCUType()) { atElt.addAttribute(MailService.A_APPT_CUTYPE, at.getCUType()); } // role if (at.hasRole()) { atElt.addAttribute(MailService.A_APPT_ROLE, at.getRole()); } // participation status if (at.hasPartStat()) { atElt.addAttribute(MailService.A_APPT_PARTSTAT, at.getPartStat()); } // uri atElt.addAttribute(MailService.A_URL, at.getAddress()); } } return e; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ee9005331063579981bfbe402f182676fe18d376/ToXML.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
2017,
22730,
12,
1046,
982,
16,
2285,
381,
15397,
1042,
9109,
16,
1716,
29815,
513,
337,
18936,
16,
30981,
19035,
16,
509,
1466,
16,
1250,
2341,
17647,
13,
288,
3639,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
2017,
22730,
12,
1046,
982,
16,
2285,
381,
15397,
1042,
9109,
16,
1716,
29815,
513,
337,
18936,
16,
30981,
19035,
16,
509,
1466,
16,
1250,
2341,
17647,
13,
288,
3639,
125... |
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; | private void placeComponents( ) { FillLayout flMain = new FillLayout( ); flMain.marginHeight = 0; flMain.marginWidth = 0; | private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glGroup = new GridLayout(); glGroup.horizontalSpacing = 5; glGroup.verticalSpacing = 5; glGroup.marginHeight = 4; glGroup.marginWidth = 4; glGroup.numColumns = 4; this.setLayout(flMain); grpInsets = new Group(this, SWT.NONE); grpInsets.setLayout(glGroup); grpInsets .setText(new MessageFormat(Messages.getString("InsetsComposite.Lbl.Insets")).format(new Object[] { sUnits})); //$NON-NLS-1$ lblTop = new Label(grpInsets, SWT.NONE); GridData gdLTop = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLTop.heightHint = 20; lblTop.setLayoutData(gdLTop); lblTop.setText(Messages.getString("InsetsComposite.Lbl.Top")); //$NON-NLS-1$ txtTop = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTTop = new GridData(GridData.FILL_BOTH); gdTTop.heightHint = 20; gdTTop.widthHint = 45; txtTop.setLayoutData(gdTTop); double dblPoints = insets.getTop(); double dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); //$NON-NLS-1$ txtTop.setText(new Double(dblCurrent).toString()); txtTop.addListener(this); lblLeft = new Label(grpInsets, SWT.NONE); GridData gdLLeft = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLLeft.heightHint = 20; lblLeft.setLayoutData(gdLLeft); lblLeft.setText(Messages.getString("InsetsComposite.Lbl.Left")); //$NON-NLS-1$ txtLeft = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTLeft = new GridData(GridData.FILL_BOTH); gdTLeft.heightHint = 20; gdTLeft.widthHint = 45; txtLeft.setLayoutData(gdTLeft); dblPoints = insets.getLeft(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); //$NON-NLS-1$ txtLeft.setText(new Double(dblCurrent).toString()); txtLeft.addListener(this); lblBottom = new Label(grpInsets, SWT.NONE); GridData gdLBottom = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLBottom.heightHint = 20; lblBottom.setLayoutData(gdLBottom); lblBottom.setText(Messages.getString("InsetsComposite.Lbl.Bottom")); //$NON-NLS-1$ txtBottom = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTBottom = new GridData(GridData.FILL_BOTH); gdTBottom.heightHint = 20; gdTBottom.widthHint = 45; txtBottom.setLayoutData(gdTBottom); dblPoints = insets.getBottom(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); //$NON-NLS-1$ txtBottom.setText(new Double(dblCurrent).toString()); txtBottom.addListener(this); lblRight = new Label(grpInsets, SWT.NONE); GridData gdLRight = new GridData(GridData.VERTICAL_ALIGN_CENTER); gdLRight.heightHint = 20; lblRight.setLayoutData(gdLRight); lblRight.setText(Messages.getString("InsetsComposite.Lbl.Right")); //$NON-NLS-1$ txtRight = new TextEditorComposite(grpInsets, SWT.BORDER); GridData gdTRight = new GridData(GridData.FILL_BOTH); gdTRight.heightHint = 20; gdTRight.widthHint = 45; txtRight.setLayoutData(gdTRight); dblPoints = insets.getRight(); dblCurrent = serviceprovider.getConvertedValue(dblPoints, "Points", sUnits); //$NON-NLS-1$ txtRight.setText(new Double(dblCurrent).toString()); txtRight.addListener(this); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5083d99ac2739e195f14f571726ed9b3981275ff/InsetsComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/InsetsComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
14192,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
3639,
1183,
6376,
18,
10107,
2686,
273,
374,
31,
3639,
1183,
6376,
18,
10107,
2384,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3166,
7171,
1435,
565,
288,
3639,
14192,
3744,
1183,
6376,
273,
394,
14192,
3744,
5621,
3639,
1183,
6376,
18,
10107,
2686,
273,
374,
31,
3639,
1183,
6376,
18,
10107,
2384,
273,
... |
copy._usingDirectives = ( _usingDirectives != null ) ? (LinkedList) _usingDirectives.clone() : null; copy._containedSymbols = ( _containedSymbols != null )? (HashMap) _containedSymbols.clone() : null; | copy._usingDirectives = ( _usingDirectives != null ) ? (LinkedList) _usingDirectives.clone() : null; if( getSymbolTable().getParserMode() == ParserMode.COMPLETION_PARSE ) copy._containedSymbols = ( _containedSymbols != null )? (Map)((TreeMap) _containedSymbols).clone() : null; else copy._containedSymbols = ( _containedSymbols != null )? (Map)((HashMap) _containedSymbols).clone() : null; | public Object clone(){ ContainerSymbol copy = (ContainerSymbol)super.clone(); copy._usingDirectives = ( _usingDirectives != null ) ? (LinkedList) _usingDirectives.clone() : null; copy._containedSymbols = ( _containedSymbols != null )? (HashMap) _containedSymbols.clone() : null; return copy; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/57d668240ad64ebccdcae6a8af0025301b0110be/ContainerSymbol.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ContainerSymbol.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
95,
202,
202,
2170,
5335,
1610,
273,
261,
2170,
5335,
13,
9565,
18,
14056,
5621,
6862,
202,
3530,
6315,
9940,
25343,
225,
273,
261,
389,
9940,
25343,
480,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3236,
1435,
95,
202,
202,
2170,
5335,
1610,
273,
261,
2170,
5335,
13,
9565,
18,
14056,
5621,
6862,
202,
3530,
6315,
9940,
25343,
225,
273,
261,
389,
9940,
25343,
480,
446,... |
out.println(" <input type=hidden name=\"REFRESH\" value=\""+refresh+"\" >"); out.println(" <input type=hidden name=\"NAMEFORMAT\" value=\""+nameformat+"\" >"); out.println(" <input type=hidden name=\"FILTER\" value=\""+actiondataFilter+"\" >"); | out.println(" <input type=hidden name=\"REFRESH\" value=\""+refresh+"\" >"); out.println(" <input type=hidden name=\"NAMEFORMAT\" value=\""+nameformat+"\" >"); out.println(" <input type=hidden name=\"FILTER\" value=\""+actiondataFilter+"\" >"); | private void generateAssetSelect(PrintWriter out, int refresh, String nameformat, String actiondataFilter, String assetFilter) { out.print(" <form clsname=\"ASSETFILTER\" method=\"get\" >" ); out.println(" <input type=submit name=\"Submit\" value=\"Show Asset:\" size=15 "); out.println(" STYLE=\"margin: 0em 0 0 0em; color: white; background-color: blue; font-size: 6pt;\">"); out.print(" <SELECT NAME=\"ASSETFILTER\" size=\"1\" "); out.print(" STYLE=\"margin: 0em 0 0 0em; color: white; background-color: red; font-size: 8pt;\">\n"); Iterator iter = assetNames.iterator(); String str; while (iter.hasNext()) { str = iter.next().toString(); out.print(" <OPTION value=\""+ str +"\" "+(assetFilter.equals(str)?"":"UN")+"SELECTED />" + str + "\n"); } out.print(" <OPTION value=\"ALL\" "+(assetFilter.equals("ALL")?"":"UN")+"SELECTED />ALL\n"); out.print(" </SELECT>\n"); out.println(" <input type=hidden name=\"REFRESH\" value=\""+refresh+"\" >"); out.println(" <input type=hidden name=\"NAMEFORMAT\" value=\""+nameformat+"\" >"); out.println(" <input type=hidden name=\"FILTER\" value=\""+actiondataFilter+"\" >"); //out.println(" <input type=hidden name=\"ASSETFILTER\" value=\""+assetFilter+"\" >"); out.println(" \n</form>"); } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/a77e2e333b12df5bb2e6dc2d11645c4f19ccb4c4/ActionMonitorServlet.java/buggy/Coordinator/src/org/cougaar/coordinator/test/coordination/ActionMonitorServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
2103,
6672,
3391,
12,
5108,
2289,
596,
16,
509,
4460,
16,
514,
508,
2139,
16,
514,
1301,
892,
1586,
16,
514,
3310,
1586,
13,
288,
5411,
596,
18,
1188,
2932,
565,
411,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
2103,
6672,
3391,
12,
5108,
2289,
596,
16,
509,
4460,
16,
514,
508,
2139,
16,
514,
1301,
892,
1586,
16,
514,
3310,
1586,
13,
288,
5411,
596,
18,
1188,
2932,
565,
411,
687,
... |
FontIndexRecord record = new FontIndexRecord((short)0x1026, (short)data.length, data); | FontIndexRecord record = new FontIndexRecord(new TestcaseRecordInputStream((short)0x1026, (short)data.length, data)); | public void testLoad() throws Exception { FontIndexRecord record = new FontIndexRecord((short)0x1026, (short)data.length, data); assertEquals( 5, record.getFontIndex()); assertEquals( 6, record.getRecordSize() ); record.validateSid((short)0x1026); } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/ada69333b277a95ccfc608144b991cfd8d1a9d37/TestFontIndexRecord.java/clean/src/testcases/org/apache/poi/hssf/record/TestFontIndexRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2563,
1435,
5411,
1216,
1185,
565,
288,
3639,
10063,
1016,
2115,
1409,
273,
394,
10063,
1016,
2115,
12,
2704,
7766,
3593,
2115,
4348,
12443,
6620,
13,
20,
92,
2163,
5558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2563,
1435,
5411,
1216,
1185,
565,
288,
3639,
10063,
1016,
2115,
1409,
273,
394,
10063,
1016,
2115,
12,
2704,
7766,
3593,
2115,
4348,
12443,
6620,
13,
20,
92,
2163,
5558,
... |
public long getJobEntryTypeID(String code) throws KettleDatabaseException | public synchronized long getJobEntryTypeID(String code) throws KettleDatabaseException | public long getJobEntryTypeID(String code) throws KettleDatabaseException { return getIDWithValue("R_JOBENTRY_TYPE", "ID_JOBENTRY_TYPE", "CODE", code); } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/4b43172b1fa3ffc5a55f1a91b608713e59b09cdb/Repository.java/buggy/kettle/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
13024,
1622,
559,
734,
12,
780,
981,
13,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
14744,
1190,
620,
2932,
54,
67,
18321,
19083,
67,
2399,
3113,
315,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
13024,
1622,
559,
734,
12,
780,
981,
13,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
14744,
1190,
620,
2932,
54,
67,
18321,
19083,
67,
2399,
3113,
315,
73... |
setEndColor((ColorDefinition)newValue); | setEndColor((ColorDefinition) newValue); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case AttributePackage.GRADIENT__TYPE: setType(((Integer)newValue).intValue()); return; case AttributePackage.GRADIENT__START_COLOR: setStartColor((ColorDefinition)newValue); return; case AttributePackage.GRADIENT__END_COLOR: setEndColor((ColorDefinition)newValue); return; case AttributePackage.GRADIENT__DIRECTION: setDirection(((Double)newValue).doubleValue()); return; case AttributePackage.GRADIENT__CYCLIC: setCyclic(((Boolean)newValue).booleanValue()); return; case AttributePackage.GRADIENT__TRANSPARENCY: setTransparency(((Integer)newValue).intValue()); return; } eDynamicSet(eFeature, newValue); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/GradientImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/GradientImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3601,
2261,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3601,
2261,
18,
6... |
(rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() == 0) | (rt == TokenStream.NUMBER && rChild.getDouble() == 0) | void foldConstants(Node n, Node parent){ Node lChild, rChild=null; // children lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ foldConstants(lChild, n); // one child -- recurse return; } } /* o.w. two children -- recurse on both first and proceed */ foldConstants(lChild, n); foldConstants(rChild, n); /* take care of all the other children */ Node child = rChild.getNextSibling(); while (child != null) { foldConstants(child, n); child = child.getNextSibling(); } /* children can change, so recompute them */ lChild = n.getFirstChild(); if(lChild == null){ // no children -- exit return; }else{ rChild = lChild.getNextSibling(); if(rChild == null){ return; } } /* at this point n has two children or more */ int lt = lChild.getType(); int rt = rChild.getType(); /* two or more children */ switch(n.getType()){ /* numerical addition and string concatenation */ case TokenStream.ADD: /* number addition -- both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() + rChild.getDouble()))); }else{ long longval = lChild.getLong() + rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* string + string */ if(lt == TokenStream.STRING && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + rChild.getString())); }else /* string + num */ if(lt == TokenStream.STRING && rt == TokenStream.NUMBER){ parent.replaceChild(n, new Node(TokenStream.STRING, lChild.getString() + ScriptRuntime.numberToString(rChild.getDouble(), 10))); }else /* num + string */ if(lt == TokenStream.NUMBER && rt == TokenStream.STRING){ parent.replaceChild(n, new Node(TokenStream.STRING, ScriptRuntime.numberToString(lChild.getDouble(), 10) + rChild.getString())); } /* can't do anything if we don't know both types - since 0 + object is supposed to call toString on the object and do string concantenation rather than addition */ break; /* subtraction */ case TokenStream.SUB: /* both numbers */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() - rChild.getDouble()))); }else{ long longval = lChild.getLong() - rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } }else /* first 0: 0-x -> -x */ if(lt == TokenStream.NUMBER && lChild.getDouble() == 0){ parent.replaceChild(n, new Node(TokenStream.UNARYOP, rChild, new Integer(TokenStream.SUB))); }else /* second 0: x-0 -> x */ if(rt == TokenStream.NUMBER && rChild.getDouble() == 0){ parent.replaceChild(n, lChild); } break; /* handle multiplication by zero and one */ case TokenStream.MUL: /* both constants -- just multiply */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if(lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double){ parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() * rChild.getDouble()))); }else{ long longval = lChild.getLong() * rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } /* one of them is constant -- zero or one */ /* can't do zero, since zero * infinity has to become a NaN */ }else{ if(lt == TokenStream.NUMBER){ double ld = ((Number)lChild.getDatum()).doubleValue(); if(ld == 1){ parent.replaceChild(n, rChild); } }else if(rt == TokenStream.NUMBER){ double rd = ((Number)rChild.getDatum()).doubleValue(); if(rd == 1){ parent.replaceChild(n, lChild); } } } break; case TokenStream.DIV: /* both constants -- just divide */ if(lt == TokenStream.NUMBER && rt == TokenStream.NUMBER){ /* at least one double */ if((lChild.getDatum() instanceof Double || rChild.getDatum() instanceof Double)){ double d = rChild.getDouble(); if(d == 0) return; // division by zero else parent.replaceChild(n, new Node(TokenStream.NUMBER, new Double(lChild.getDouble() / d))); }else{ int d = rChild.getInt(); if(d == 0) return; // division by zero else{ long longval = lChild.getLong() / rChild.getLong(); parent.replaceChild(n, new Node(TokenStream.NUMBER, toSmallestType(longval))); } } /* 0/x , x!=0 */ }else /* x/1 */ if((rt == TokenStream.NUMBER) && // added cast -roger rChild.getDouble()==1){ parent.replaceChild(n, lChild); } break; case TokenStream.AND: /* if the first one is false, replace with FALSE */ if( ((lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if the second one is false, replace with FALSE */ if( ((rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.NULL) || (rt==TokenStream.PRIMARY && rChild.getInt()==TokenStream.UNDEFINED)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE))); }else /* if first is true, set to second */ if( (lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0) ){ parent.replaceChild(n, lChild); } break; case TokenStream.OR: /* if first is false, set to second */ if( (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.NULL) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.UNDEFINED) || (lt == TokenStream.PRIMARY && lChild.getInt() == TokenStream.FALSE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, rChild); }else /* if second is true, set to first */ if( (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.NULL) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.UNDEFINED) || (rt == TokenStream.PRIMARY && rChild.getInt() == TokenStream.FALSE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() == 0) ){ parent.replaceChild(n, lChild); }else /* if first one is true, replace with TRUE */ if( ((lt == TokenStream.PRIMARY && ((Integer)lChild.getDatum()).intValue() == TokenStream.TRUE) || (lt == TokenStream.NUMBER && ((Number)lChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(rChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); }else /* if second one is true, replace with TRUE */ if( ((rt == TokenStream.PRIMARY && ((Integer)rChild.getDatum()).intValue() == TokenStream.TRUE) || (rt == TokenStream.NUMBER && ((Number)rChild.getDatum()).doubleValue() != 0)) && !IRFactory.hasSideEffects(lChild) ){ parent.replaceChild(n, new Node(TokenStream.PRIMARY, new Integer(TokenStream.TRUE))); } break; case TokenStream.BLOCK: /* if statement */ if(lChild.getType() == TokenStream.IFNE){ Node condition = lChild.getFirstChild(); /* if(false) -> replace by the else clause if it exists */ if(condition.getType() == TokenStream.PRIMARY){ int id = condition.getInt(); if(id == TokenStream.FALSE||id == TokenStream.NULL||id == TokenStream.UNDEFINED){ Node elseClause = null; try{ elseClause = rChild.getNextSibling().getNextSibling().getNextSibling().getFirstChild(); }catch(Exception e){ return; } if(elseClause != null){ parent.replaceChild(n, elseClause); } /* if(true) -> replace by the then clause if it exists */ }else if((condition.getType() == TokenStream.PRIMARY && condition.getInt() == TokenStream.TRUE) || (condition.getType() == TokenStream.NUMBER && ((Number)condition.getDatum()).doubleValue() != 0)) { if(rChild.getType() == TokenStream.BLOCK){ parent.replaceChild(n, rChild.getFirstChild()); } } } } break; }//switch } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/dfdc492a06d12db18bbb6e0ac0de6e19784f642d/Optimizer.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11590,
2918,
12,
907,
290,
16,
2029,
982,
15329,
3639,
2029,
328,
1763,
16,
436,
1763,
33,
2011,
31,
6647,
368,
2325,
3639,
328,
1763,
273,
290,
18,
588,
3759,
1763,
5621,
3639,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11590,
2918,
12,
907,
290,
16,
2029,
982,
15329,
3639,
2029,
328,
1763,
16,
436,
1763,
33,
2011,
31,
6647,
368,
2325,
3639,
328,
1763,
273,
290,
18,
588,
3759,
1763,
5621,
3639,
30... |
fs.removeValue("sig"); this.isSignatureVerificationSuccessfull = DSA.verify(peerPubKey, new DSASignature(signature), new BigInteger(fs.toOrderedString().getBytes())); if(!isSignatureVerificationSuccessfull){ | fs.removeValue("sig"); if(signature == null || !DSA.verify(peerPubKey, new DSASignature(signature), new BigInteger(fs.toOrderedString().getBytes()))){ | public PeerNode(SimpleFieldSet fs, Node node2, boolean fromLocal) throws FSParseException, PeerParseException, ReferenceSignatureVerificationException { logMINOR = Logger.shouldLog(Logger.MINOR, this); this.node = node2; String identityString = fs.get("identity"); if(identityString == null) throw new PeerParseException("No identity!"); try { identity = Base64.decode(identityString); } catch (NumberFormatException e) { throw new FSParseException(e); } catch (IllegalBase64Exception e) { throw new FSParseException(e); } MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e2) { throw new Error(e2); } if(identity == null) throw new FSParseException("No identity"); identityHash = md.digest(identity); hashCode = Fields.hashCode(identityHash); version = fs.get("version"); Version.seenVersion(version); String locationString = fs.get("location"); if(locationString == null) throw new FSParseException("No location"); currentLocation = new Location(locationString); // FIXME make mandatory once everyone has upgraded lastGoodVersion = fs.get("lastGoodVersion"); String name = fs.get("myName"); if(name == null) throw new FSParseException("No name"); myName = name; String testnet = fs.get("testnet"); testnetEnabled = testnet == null ? false : (testnet.equalsIgnoreCase("true") || testnet.equalsIgnoreCase("yes")); if(testnetEnabled != node.testnetEnabled) { String err = "Ignoring incompatible node "+detectedPeer+" - peer.testnet="+testnetEnabled+"("+testnet+") but node.testnet="+node.testnetEnabled; Logger.error(this, err); throw new PeerParseException(err); } nominalPeer=new Vector(); nominalPeer.removeAllElements(); try{ String physical[]=fs.getAll("physical.udp"); if(physical==null){ // Be tolerant of nonexistent domains. Peer p = new Peer(fs.get("physical.udp"), true); if(p != null) nominalPeer.addElement(p); }else{ for(int i=0;i<physical.length;i++){ Peer p = new Peer(physical[i], true); if(!nominalPeer.contains(p)) nominalPeer.addElement(p); } } } catch (Exception e1) { throw new FSParseException(e1); } if(nominalPeer.isEmpty()) { Logger.normal(this, "No IP addresses found for identity '"+Base64.encode(identity)+"', possibly at location '"+Double.toString(currentLocation.getValue())+"' with name '"+getName()+"'"); detectedPeer = null; } else { detectedPeer = (Peer) nominalPeer.firstElement(); } /* Read the DSA key material for the peer */ try { this.peerCryptoGroup = DSAGroup.create(fs.subset("dsaGroup")); this.peerPubKey = DSAPublicKey.create(fs.subset("dsaPubKey"), peerCryptoGroup); String signature = fs.get("sig"); fs.removeValue("sig"); this.isSignatureVerificationSuccessfull = DSA.verify(peerPubKey, new DSASignature(signature), new BigInteger(fs.toOrderedString().getBytes())); if(!isSignatureVerificationSuccessfull){ Logger.error(this, "The integrity of the reference has been compromized!"); throw new ReferenceSignatureVerificationException("The integrity of the reference has been compromized!"); } } catch (IllegalBase64Exception e) { Logger.error(this, "Caught "+e, e); throw new FSParseException(e); } catch (NullPointerException npe){ /* FIXME: REMOVE: backward compatibility hack */ Logger.normal(this, "Probably trying to add an old reference : "+npe); this.isSignatureVerificationSuccessfull=false; } /* FIXME: All the following is useless once we have definitely switched to STS! */ // Setup incoming and outgoing setup ciphers byte[] nodeKey = node.identityHash; byte[] nodeKeyHash = node.identityHashHash; byte[] setupKeyHash = md.digest(identityHash); int digestLength = md.getDigestLength(); incomingSetupKey = new byte[digestLength]; for(int i=0;i<incomingSetupKey.length;i++) incomingSetupKey[i] = (byte) (nodeKey[i] ^ setupKeyHash[i]); outgoingSetupKey = new byte[digestLength]; for(int i=0;i<outgoingSetupKey.length;i++) outgoingSetupKey[i] = (byte) (nodeKeyHash[i] ^ identityHash[i]); if(logMINOR) Logger.minor(this, "Keys:\nIdentity: "+HexUtil.bytesToHex(node.myIdentity)+ "\nThisIdent: "+HexUtil.bytesToHex(identity)+ "\nNode: "+HexUtil.bytesToHex(nodeKey)+ "\nNode hash: "+HexUtil.bytesToHex(nodeKeyHash)+ "\nThis: "+HexUtil.bytesToHex(identityHash)+ "\nThis hash: "+HexUtil.bytesToHex(setupKeyHash)+ "\nFor: "+getDetectedPeer()); try { incomingSetupCipher = new Rijndael(256,256); incomingSetupCipher.initialize(incomingSetupKey); outgoingSetupCipher = new Rijndael(256,256); outgoingSetupCipher.initialize(outgoingSetupKey); } catch (UnsupportedCipherException e1) { Logger.error(this, "Caught: "+e1); throw new Error(e1); } // Don't create trackers until we have a key currentTracker = null; previousTracker = null; timeLastSentPacket = -1; timeLastReceivedPacket = -1; timeLastReceivedSwapRequest = -1; timeLastConnected = -1; timeLastRoutable = -1; randomizeMaxTimeBetweenPacketSends(); swapRequestsInterval = new SimpleRunningAverage(50, Node.MIN_INTERVAL_BETWEEN_INCOMING_SWAP_REQUESTS); // Not connected yet; need to handshake isConnected = false; node.addPeerNodeStatus(Node.PEER_NODE_STATUS_DISCONNECTED, this); messagesToSendNow = new LinkedList(); decrementHTLAtMaximum = node.random.nextFloat() < Node.DECREMENT_AT_MAX_PROB; decrementHTLAtMinimum = node.random.nextFloat() < Node.DECREMENT_AT_MIN_PROB; pingNumber = node.random.nextLong(); // A SimpleRunningAverage would be a bad choice because it would cause oscillations. // So go for a filter. pingAverage = new TimeDecayingRunningAverage(1, 600*1000 /* should be significantly longer than a typical transfer */, 0, Long.MAX_VALUE); // TDRA for probability of rejection pRejected = new TimeDecayingRunningAverage(0, 600*1000, 0.0, 1.0); // ARK stuff. parseARK(fs, true); // Now for the metadata. // The metadata sub-fieldset contains data about the node which is not part of the node reference. // It belongs to this node, not to the node being described. // Therefore, if we are parsing a remotely supplied ref, ignore it. long now = System.currentTimeMillis(); if(fromLocal) { SimpleFieldSet metadata = fs.subset("metadata"); if(metadata != null) { // Don't be tolerant of nonexistant domains; this should be an IP address. Peer p; try { String detectedUDPString = metadata.get("detected.udp"); p = null; if(detectedUDPString != null) p = new Peer(detectedUDPString, false); } catch (UnknownHostException e) { p = null; Logger.error(this, "detected.udp = "+metadata.get("detected.udp")+" - "+e, e); } catch (PeerParseException e) { p = null; Logger.error(this, "detected.udp = "+metadata.get("detected.udp")+" - "+e, e); } if(p != null) detectedPeer = p; String tempTimeLastReceivedPacketString = metadata.get("timeLastReceivedPacket"); if(tempTimeLastReceivedPacketString != null) { long tempTimeLastReceivedPacket = Long.parseLong(tempTimeLastReceivedPacketString); timeLastReceivedPacket = tempTimeLastReceivedPacket; } String tempTimeLastConnectedString = metadata.get("timeLastConnected"); if(tempTimeLastConnectedString != null) { long tempTimeLastConnected = Long.parseLong(tempTimeLastConnectedString); timeLastConnected = tempTimeLastConnected; } String tempTimeLastRoutableString = metadata.get("timeLastRoutable"); if(tempTimeLastRoutableString != null) { long tempTimeLastRoutable = Long.parseLong(tempTimeLastRoutableString); timeLastRoutable = tempTimeLastRoutable; } if(timeLastConnected < 1 && timeLastReceivedPacket > 1) { timeLastConnected = timeLastReceivedPacket; } if(timeLastRoutable < 1 && timeLastReceivedPacket > 1) { timeLastRoutable = timeLastReceivedPacket; } String tempPeerAddedTimeString = metadata.get("peerAddedTime"); if(tempPeerAddedTimeString != null) { long tempPeerAddedTime = Long.parseLong(tempPeerAddedTimeString); peerAddedTime = tempPeerAddedTime; } else { peerAddedTime = 0; } neverConnected = Fields.stringToBool(metadata.get("neverConnected"), false); if((now - peerAddedTime) > (((long) 30)*24*60*60*1000)) { // 30 days peerAddedTime = 0; // don't store anymore } if(!neverConnected) { peerAddedTime = 0; // don't store anymore } isDisabled = Fields.stringToBool(metadata.get("isDisabled"), false); isListenOnly = Fields.stringToBool(metadata.get("isListenOnly"), false); isBurstOnly = Fields.stringToBool(metadata.get("isBurstOnly"), false); allowLocalAddresses = Fields.stringToBool(metadata.get("allowLocalAddresses"), false); } } else { neverConnected = true; peerAddedTime = now; } // populate handshakeIPs so handshakes can start ASAP lastAttemptedHandshakeIPUpdateTime=0; maybeUpdateHandshakeIPs(true); sendHandshakeTime = now; // Be sure we're ready to handshake right away listeningHandshakeBurstCount = 0; listeningHandshakeBurstSize = Node.MIN_BURSTING_HANDSHAKE_BURST_SIZE + node.random.nextInt(Node.RANDOMIZED_BURSTING_HANDSHAKE_BURST_SIZE); if(isBurstOnly) { Logger.minor(this, "First BurstOnly mode handshake in "+(sendHandshakeTime - now)+"ms for "+getName()+" (count: "+listeningHandshakeBurstCount+", size: "+listeningHandshakeBurstSize+")"); } // status may have changed from PEER_NODE_STATUS_DISCONNECTED to PEER_NODE_STATUS_NEVER_CONNECTED setPeerNodeStatus(now); // Setup the private darknet comment note privateDarknetComment = new String(); privateDarknetCommentFileNumber = -1; // Setup the extraPeerDataFileNumbers extraPeerDataFileNumbers = new Vector(); extraPeerDataFileNumbers.removeAllElements(); // Setup the queuedToSendN2NTMExtraPeerDataFileNumbers queuedToSendN2NTMExtraPeerDataFileNumbers = new Vector(); queuedToSendN2NTMExtraPeerDataFileNumbers.removeAllElements(); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/54b58d5a98907bfb2296c0fea2a4e5f0489e9e75/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10669,
907,
12,
5784,
974,
694,
2662,
16,
2029,
756,
22,
16,
1250,
628,
2042,
13,
1216,
9247,
13047,
16,
10669,
13047,
16,
6268,
5374,
13483,
503,
288,
377,
202,
1330,
6236,
916,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10669,
907,
12,
5784,
974,
694,
2662,
16,
2029,
756,
22,
16,
1250,
628,
2042,
13,
1216,
9247,
13047,
16,
10669,
13047,
16,
6268,
5374,
13483,
503,
288,
377,
202,
1330,
6236,
916,
... |
if (start < 0 || end >= count || start > end) | if (start < 0 || end > count || start > end) | public synchronized int codePointCount(int start, int end) { if (start < 0 || end >= count || start > end) throw new StringIndexOutOfBoundsException(); start += offset; end += offset; int count = 0; while (start < end) { char base = value[start]; if (base < Character.MIN_HIGH_SURROGATE || base > Character.MAX_HIGH_SURROGATE || start == end || start == count || value[start + 1] < Character.MIN_LOW_SURROGATE || value[start + 1] > Character.MAX_LOW_SURROGATE) { // Nothing. } else { // Surrogate pair. ++start; } ++start; ++count; } return count; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/String.java/clean/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
509,
18614,
1380,
12,
474,
787,
16,
509,
679,
13,
225,
288,
565,
309,
261,
1937,
411,
374,
747,
679,
405,
1056,
747,
787,
405,
679,
13,
1377,
604,
394,
514,
30548,
5621,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
509,
18614,
1380,
12,
474,
787,
16,
509,
679,
13,
225,
288,
565,
309,
261,
1937,
411,
374,
747,
679,
405,
1056,
747,
787,
405,
679,
13,
1377,
604,
394,
514,
30548,
5621,
5... |
Ext2Debugger.debug("FSEntryIterator()",2); | log.debug("FSEntryIterator()"); | public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; Ext2Debugger.debug("FSEntryIterator()",2); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
9247,
1622,
3198,
12,
23184,
277,
907,
13,
288,
1082,
202,
759,
2211,
18,
77,
907,
273,
277,
907,
31,
25083,
202,
2722,
1768,
1016,
273,
300,
21,
31,
1082,
202,
2629,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9247,
1622,
3198,
12,
23184,
277,
907,
13,
288,
1082,
202,
759,
2211,
18,
77,
907,
273,
277,
907,
31,
25083,
202,
2722,
1768,
1016,
273,
300,
21,
31,
1082,
202,
2629,
1016,
... |
new AdminServer(Integer.parseInt(serverConfig.getProperty(Configuration.SERVER_ADMIN_PORT).trim())); | new AdminServer(serverConfig); | public static void main(String args[]) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { System.out.println("Shutting down server ..."); Shutdown.shutdown(); } }); try { snipsnapConfig = new Configuration("conf/snipsnap.conf"); System.setProperty("snipsnap."+Configuration.SERVER_VERSION, snipsnapConfig.getVersion()); } catch (IOException e) { e.printStackTrace(); System.out.println("ERROR: unable to read snipsnap default configuration, aborting"); System.exit(-1); } System.out.println("SnipSnap " + snipsnapConfig.getVersion()); System.out.println("Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel. " + "All Rights Reserved."); System.out.println("See License Agreement for terms and conditions of use."); // if not server.conf exists create one try { serverConfig = new Configuration("conf/server.conf"); } catch (IOException e) { try { serverConfig = new Configuration("conf/snipsnap.conf"); serverConfig.store(new File("conf/server.conf")); } catch (IOException e1) { System.err.println("ERROR: unable to store server.conf, aborting"); System.exit(-1); } } serverConfig = parseArguments(args, serverConfig); String enc = serverConfig.getProperty(Configuration.SERVER_ENCODING); if(enc != null && enc.length() > 0) { System.setProperty("file.encoding", enc); } else { System.setProperty("file.encoding", "iso-8859-1"); } // start jetty server and install web application try { jettyServer = new Server("./conf/jetty.conf"); jettyServer.start(); String hostname = InetAddress.getLocalHost().getHostName(); System.out.println("Administrative interface started at http://"+hostname+":8668/install"); } catch (IOException e) { System.err.println("AppServer: admin server configuration not found: " + e); } catch (MultiException e) { Iterator exceptions = e.getExceptions().iterator(); while (exceptions.hasNext()) { Exception ex = (Exception) exceptions.next(); ex.printStackTrace(); System.out.println("ERROR: can't start server: " + ex.getMessage()); } System.exit(-1); } // start the administrative network interface try { new AdminServer(Integer.parseInt(serverConfig.getProperty(Configuration.SERVER_ADMIN_PORT).trim())); } catch (Exception e) { e.printStackTrace(); System.out.println("ERROR: unable to start administration server: " + e); } // now, after loading all possible services we will look for applications and start them int errors = ApplicationLoader.loadApplications(serverConfig.getProperty(Configuration.SERVER_WEBAPP_ROOT)); if (errors == 0 && ApplicationLoader.getApplicationCount() == 0) { System.out.println("ATTENTION: Server is still unconfigured!"); System.out.println("ATTENTION: Point your browser to the following address:"); HttpListener listener = jettyServer.getListeners()[0]; String host = listener.getHost(); if (InetAddrPort.__0_0_0_0.equals(host)) { try { host = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { host = System.getProperty("host", "localhost"); } } System.out.println("ATTENTION: http://" + host + ":" + listener.getPort() + "/install"); } else { System.out.println(ApplicationLoader.getApplicationCount() + " applications loaded and running ("+errors+" errors)."); } } | 6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/6b5d5909049e47b9475447b32de21ace0228b80c/AppServer.java/clean/src/org/snipsnap/server/AppServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
565,
2509,
18,
588,
5576,
7675,
1289,
10961,
5394,
12,
2704,
4884,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
2332,
18,
659,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
565,
2509,
18,
588,
5576,
7675,
1289,
10961,
5394,
12,
2704,
4884,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
2332,
18,
659,
1... |
frame.setLocation(GUIPreferences.getInstance().getWindowPosX(), GUIPreferences.getInstance().getWindowPosY()); frame.setSize(GUIPreferences.getInstance().getWindowSizeWidth(), GUIPreferences.getInstance().getWindowSizeHeight()); | int x = GUIPreferences.getInstance().getWindowPosX(); int y = GUIPreferences.getInstance().getWindowPosY(); int w = GUIPreferences.getInstance().getWindowSizeWidth(); int h = GUIPreferences.getInstance().getWindowSizeHeight(); if (x < virtualBounds.getMinX() || x + w >virtualBounds.getMaxX()) x = 0; if (y < virtualBounds.getMinY() || y + h >virtualBounds.getMaxY()) y = 0; if(w > virtualBounds.getWidth()) w = (int)virtualBounds.getWidth(); if(h > virtualBounds.getHeight()) h = (int)virtualBounds.getHeight(); frame.setLocation(x, y); frame.setSize(w, h); | private void initializeFrame() { frame = new JFrame(Messages.getString("ClientGUI.title")); //$NON-NLS-1$ menuBar.setGame(client.game); frame.setJMenuBar(menuBar); if (GUIPreferences.getInstance().getWindowSizeHeight() != 0) { frame.setLocation(GUIPreferences.getInstance().getWindowPosX(), GUIPreferences.getInstance().getWindowPosY()); frame.setSize(GUIPreferences.getInstance().getWindowSizeWidth(), GUIPreferences.getInstance().getWindowSizeHeight()); } else { frame.setSize(800, 600); } frame.setBackground(SystemColor.menu); frame.setForeground(SystemColor.menuText); frame.setIconImage(frame.getToolkit().getImage("data/images/misc/megamek-icon.gif")); //$NON-NLS-1$ } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/e525533e24345f0d499e00554db6df6fb5702332/ClientGUI.java/clean/megamek/src/megamek/client/ui/swing/ClientGUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
3219,
1435,
288,
3639,
2623,
273,
394,
804,
3219,
12,
5058,
18,
588,
780,
2932,
1227,
43,
5370,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
3824,
5190,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
3219,
1435,
288,
3639,
2623,
273,
394,
804,
3219,
12,
5058,
18,
588,
780,
2932,
1227,
43,
5370,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
3824,
5190,... |
catch(Exception e){ Util.handleExceptionNoRestart("Interrupted while waiting to purchase", e); } | catch(InterruptedException e){ continue; } | public void run(){ while(!stop){ MTransformJButton purchasedMTransformJButton; try{ purchasedMTransformJButton = purchaseBlockingQueue.take(); purchase(purchasedMTransformJButton); } catch(Exception e){ Util.handleExceptionNoRestart("Interrupted while waiting to purchase", e); } } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4341784c69e713394ae4fd51a2af5956fc410f2d/PolicyStateMachine.java/buggy/gui/main/com/metavize/gui/main/PolicyStateMachine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
95,
5411,
1323,
12,
5,
5681,
15329,
7734,
490,
4059,
46,
3616,
5405,
343,
8905,
49,
4059,
46,
3616,
31,
7734,
775,
95,
10792,
5405,
343,
8905,
49,
4059,
46,
3616,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
95,
5411,
1323,
12,
5,
5681,
15329,
7734,
490,
4059,
46,
3616,
5405,
343,
8905,
49,
4059,
46,
3616,
31,
7734,
775,
95,
10792,
5405,
343,
8905,
49,
4059,
46,
3616,... |
if (!(file.endsWith("/") || file.endsWith(File.separator))) | if (! (file.endsWith("/") || file.endsWith(File.separator))) | protected void addURL(URL newUrl) { synchronized(urlloaders) { if (newUrl == null) return; // Silently ignore... // check global cache to see if there're already url loader // for this url URLLoader loader = (URLLoader)urlloaders.get(newUrl); if (loader == null) { String file = newUrl.getFile(); // Check that it is not a directory if (!(file.endsWith("/") || file.endsWith(File.separator))) loader = new JarURLLoader(this, newUrl); else // it's a url that point to a jar file if ("file".equals(newUrl.getProtocol())) loader = new FileURLLoader(this, newUrl); else loader = new RemoteURLLoader(this, newUrl); // cache it urlloaders.put(newUrl, loader); } urls.add(newUrl); urlinfos.add(loader); } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/7cf8e2ea0870d685378acb3387402d839696b841/URLClassLoader.java/clean/java/net/URLClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
527,
1785,
12,
1785,
394,
1489,
13,
225,
288,
565,
3852,
12,
718,
945,
414,
13,
1377,
288,
202,
430,
261,
2704,
1489,
422,
446,
13,
202,
225,
327,
31,
368,
348,
8125,
715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
527,
1785,
12,
1785,
394,
1489,
13,
225,
288,
565,
3852,
12,
718,
945,
414,
13,
1377,
288,
202,
430,
261,
2704,
1489,
422,
446,
13,
202,
225,
327,
31,
368,
348,
8125,
715,
... |
throw new PluginExecutionException( "Error assembling EJB", e ); | throw new PluginExecutionException( "Error assembling JAR", e ); | public void execute() throws PluginExecutionException { File jarFile = new File( basedir, jarName + ".jar" ); MavenArchiver archiver = new MavenArchiver(); archiver.setOutputFile( jarFile ); try { archiver.getArchiver().addDirectory( new File( outputDirectory ), DEFAULT_INCLUDES, DEFAULT_EXCLUDES ); // create archive Manifest configuredManifest = archiver.getManifest( project, mainClass, packageName, convertBoolean( addClasspath ), convertBoolean( addExtensions ) ); archiver.createArchive( project, manifest, convertBoolean( compress ), convertBoolean( index ), configuredManifest ); } catch ( Exception e ) { // TODO: improve error handling throw new PluginExecutionException( "Error assembling EJB", e ); } } | 48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/b512b2e7a222837f998ce13b59d841145d498885/JarMojo.java/clean/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/JarMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
6258,
14576,
565,
288,
3639,
1387,
22588,
273,
394,
1387,
12,
15573,
16,
7334,
461,
397,
3552,
11930,
6,
11272,
3639,
17176,
12269,
1667,
6637,
1667,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
6258,
14576,
565,
288,
3639,
1387,
22588,
273,
394,
1387,
12,
15573,
16,
7334,
461,
397,
3552,
11930,
6,
11272,
3639,
17176,
12269,
1667,
6637,
1667,
273,... |
PreferenceVectorBasedCorrelationDistanceFunction distanceFunction = (PreferenceVectorBasedCorrelationDistanceFunction) optics.getDistanceFunction(); | DiSHDistanceFunction distanceFunction = (DiSHDistanceFunction) optics.getDistanceFunction(); | private void computeClusters(Database<RealVector> database, ClusterOrder<RealVector, PreferenceVectorBasedCorrelationDistance> clusterOrder) { int dimensionality = database.dimensionality(); //noinspection unchecked PreferenceVectorBasedCorrelationDistanceFunction distanceFunction = (PreferenceVectorBasedCorrelationDistanceFunction) optics.getDistanceFunction(); // extract clusters Map<BitSet, List<HierarchicalAxesParallelCluster>> clustersMap = extractClusters(database, distanceFunction, clusterOrder); if (this.debug) { StringBuffer msg = new StringBuffer("\nStep 1"); for (List<HierarchicalAxesParallelCluster> clusterList : clustersMap.values()) { for (HierarchicalAxesParallelCluster c : clusterList) { msg.append("\n" + Util.format(dimensionality, c.getPreferenceVector()) + " ids " + c.getIDs().size()); } } debugFine(msg.toString()); } // check if there are clusters < minpts checkClusters(database, distanceFunction, clustersMap); if (this.debug) { StringBuffer msg = new StringBuffer("\n\nStep 2"); for (List<HierarchicalAxesParallelCluster> clusterList : clustersMap.values()) { for (HierarchicalAxesParallelCluster c : clusterList) { msg.append("\n" + Util.format(dimensionality, c.getPreferenceVector()) + " ids " + c.getIDs().size()); } } debugFine(msg.toString()); } // actualize the levels and indices and sort the clusters List<HierarchicalAxesParallelCluster> clusters = sortClusters(clustersMap, dimensionality); if (this.debug) { StringBuffer msg = new StringBuffer("\n\nStep 3"); for (HierarchicalAxesParallelCluster c : clusters) { msg.append("\n" + Util.format(dimensionality, c.getPreferenceVector()) + " ids " + c.getIDs().size()); } debugFine(msg.toString()); } // build the hierarchy buildHierarchy(database, distanceFunction, clusters, dimensionality); if (this.debug) { StringBuffer msg = new StringBuffer("\n\nStep 4"); for (HierarchicalAxesParallelCluster c : clusters) { msg.append("\n" + Util.format(dimensionality, c.getPreferenceVector()) + " ids " + c.getIDs().size()); } debugFine(msg.toString()); } result = new HierarchicalAxesParallelClusters<RealVector, PreferenceVectorBasedCorrelationDistance>(clusters.get(clusters.size() - 1), clusterOrder, database); } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/79234770763164a9b6301cd4205a56de08e0ff0f/DiSH.java/clean/src/de/lmu/ifi/dbs/algorithm/clustering/DiSH.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3671,
13698,
12,
4254,
32,
6955,
5018,
34,
2063,
16,
5584,
2448,
32,
6955,
5018,
16,
29125,
5018,
9802,
31685,
7200,
34,
2855,
2448,
13,
288,
565,
509,
29912,
273,
2063,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3671,
13698,
12,
4254,
32,
6955,
5018,
34,
2063,
16,
5584,
2448,
32,
6955,
5018,
16,
29125,
5018,
9802,
31685,
7200,
34,
2855,
2448,
13,
288,
565,
509,
29912,
273,
2063,
18,
... |
LOG.info("Exception: " + ex); | LOG.error("Exception: " + StringUtils.stringifyException(ex)); | public void run() { LOG.info("Starting DataNode in: "+data); // start dataXceiveServer dataXceiveServer.start(); while (shouldRun) { try { offerService(); } catch (Exception ex) { LOG.info("Exception: " + ex); if (shouldRun) { LOG.info("Lost connection to namenode. Retrying..."); try { Thread.sleep(5000); } catch (InterruptedException ie) { } } } } // wait for dataXceiveServer to terminate try { this.dataXceiveServer.join(); } catch (InterruptedException ie) { } LOG.info("Finishing DataNode in: "+data); } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/13ef41b9ec54840ddc6397f4d21faa3c014f2db2/DataNode.java/clean/src/java/org/apache/hadoop/dfs/DataNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
2018,
18,
1376,
2932,
11715,
1910,
907,
316,
30,
13773,
892,
1769,
7734,
368,
787,
501,
60,
311,
688,
2081,
3639,
501,
60,
311,
688,
2081,
18,
1937,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
2018,
18,
1376,
2932,
11715,
1910,
907,
316,
30,
13773,
892,
1769,
7734,
368,
787,
501,
60,
311,
688,
2081,
3639,
501,
60,
311,
688,
2081,
18,
1937,
56... |
StringBuffer buf = new StringBuffer(); if(getValue() instanceof ObjectReference) { String idLabel = makeIdLabel((ObjectReference)getValue()); if(!label.startsWith(idLabel)) { buf.append(idLabel); | final StringBuilder buf = StringBuilderSpinAllocator.alloc(); try { if(getValue() instanceof ObjectReference) { final ObjectReference value = (ObjectReference)getValue(); final String idLabel = value != null? getIdLabel(value) : ""; if(!label.startsWith(idLabel)) { buf.append(idLabel); } | private String getCustomLabel(String label) { //translate only strings in quotes StringBuffer buf = new StringBuffer(); if(getValue() instanceof ObjectReference) { String idLabel = makeIdLabel((ObjectReference)getValue()); if(!label.startsWith(idLabel)) { buf.append(idLabel); } } if(label == null) { //noinspection HardCodedStringLiteral buf.append("null"); } else { if(StringUtil.startsWithChar(label, '\"') && StringUtil.endsWithChar(label, '\"')) { buf.append('"'); buf.append(DebuggerUtils.translateStringValue(label.substring(1, label.length() - 1))); buf.append('"'); } else { buf.append(DebuggerUtils.translateStringValue(label)); } } return buf.toString(); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/32a454acfd3319bcbe7e1ae0578930d4301cf9aa/ValueDescriptorImpl.java/buggy/debugger/impl/com/intellij/debugger/ui/impl/watch/ValueDescriptorImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
12736,
2224,
12,
780,
1433,
13,
288,
565,
368,
13929,
1338,
2064,
316,
10681,
565,
6674,
1681,
273,
394,
6674,
5621,
565,
309,
12,
24805,
1435,
1276,
31321,
13,
288,
1377,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
12736,
2224,
12,
780,
1433,
13,
288,
565,
368,
13929,
1338,
2064,
316,
10681,
565,
6674,
1681,
273,
394,
6674,
5621,
565,
309,
12,
24805,
1435,
1276,
31321,
13,
288,
1377,
514,... |
addByteCode(ByteCode.IF_ACMPEQ, 10); | cfw.add(ByteCode.IF_ACMPEQ, 10); | private void visitEqOp(Node node, Node child) { int type = node.getType(); Node rightChild = child.getNext(); boolean isStrict = type == Token.SHEQ || type == Token.SHNE; if (rightChild.getType() == Token.NULL) { generateCodeFromNode(child, node); if (isStrict) { addByteCode(ByteCode.IFNULL, 9); } else { addByteCode(ByteCode.DUP); addByteCode(ByteCode.IFNULL, 15); pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, 10); } if ((type == Token.EQ) || (type == Token.SHEQ)) classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); else classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); if (isStrict) { addByteCode(ByteCode.GOTO, 6); } else { addByteCode(ByteCode.GOTO, 7); addByteCode(ByteCode.POP); } if ((type == Token.EQ) || (type == Token.SHEQ)) classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); else classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); return; } generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); String name; switch (type) { case Token.EQ: name = "eqB"; break; case Token.NE: name = "neB"; break; case Token.SHEQ: name = "seqB"; break; case Token.SHNE: name = "sneB"; break; default: name = null; badTree(); } addScriptRuntimeInvoke(name, "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Boolean;"); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
19508,
3817,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
2145,
1763,
273,
1151,
18,
588,
2134,
5621,
3639,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
19508,
3817,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
2145,
1763,
273,
1151,
18,
588,
2134,
5621,
3639,
125... |
} | public void setDisabledImageDescriptor(ImageDescriptor newImage) { if (disabledImage != newImage) { ImageDescriptor oldImage = disabledImage; disabledImage = newImage; firePropertyChange(IMAGE, oldImage, newImage); }} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a803b1cab75d4557a59d39831eed86f5066a9020/Action.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/Action.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
444,
8853,
2040,
3187,
12,
2040,
3187,
394,
2040,
13,
288,
202,
430,
261,
9278,
2040,
480,
394,
2040,
13,
288,
202,
202,
2040,
3187,
1592,
2040,
273,
5673,
2040,
31,
202,
202,
927... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
444,
8853,
2040,
3187,
12,
2040,
3187,
394,
2040,
13,
288,
202,
430,
261,
9278,
2040,
480,
394,
2040,
13,
288,
202,
202,
2040,
3187,
1592,
2040,
273,
5673,
2040,
31,
202,
202,
927... | |
label.setText(ResourceManager .getI18NString("ShowRelatedElementsDialog.RelationshipTypes")); | label.setText( CommonUIMessages.ShowRelatedElementsDialog_RelationshipTypes); | protected void createViewer() { Label label = new Label(this, SWT.NULL); label.setText(ResourceManager .getI18NString("ShowRelatedElementsDialog.RelationshipTypes")); //$NON-NLS-1$ GridData gridData = new GridData(); gridData.horizontalSpan = 2; label.setLayoutData(gridData); setTreeViewer(new TreeViewer(this, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER)); gridData = new GridData(GridData.FILL_BOTH); gridData.widthHint = this.viewerWidth; //gridData.heightHint = VIEWER_HEIGHT; gridData.horizontalSpan = 2; Tree tree = getTreeViewer().getTree(); tree.setLayoutData(gridData); //tree.setLayout(new GridLayout(1, true)); getTreeViewer().setUseHashlookup(true); getTreeViewer().setLabelProvider( new SelectableElementsTriStateLabelProvider()); getTreeViewer().setContentProvider( new SelectableElementsContentProvider()); getTreeViewer().setInput(this.rootElement); //I just set the input to the root, so I make these asserts TreeItem[] treeItems = tree.getItems(); assert null != treeItems; assert (treeItems.length == 1); tree.setSelection(treeItems); SelectableElementTreeSelectionChangedAndMouseAndKeyListener listener = new SelectableElementTreeSelectionChangedAndMouseAndKeyListener( getTreeViewer()) { protected void switchCheckType(SelectableElement element) { detailsChanged(); if (element.getSelectedType() == SelectedType.LEAVE) { element.setSelectedType(SelectedType.SELECTED); } else if (element.getSelectedType() == SelectedType.SELECTED) { element.setSelectedType(SelectedType.LEAVE); } } }; getTreeViewer().addSelectionChangedListener(listener); tree.addMouseListener(listener); tree.addKeyListener(listener); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/58fea0615cffb676cf72b74abafa6569d6956500/ShowRelatedElementsComposite.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui/src/org/eclipse/gmf/runtime/common/ui/dialogs/ShowRelatedElementsComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
15193,
264,
1435,
288,
202,
202,
2224,
1433,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
8560,
1769,
202,
202,
1925,
18,
542,
1528,
12,
1420,
1318,
1082,
202,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
15193,
264,
1435,
288,
202,
202,
2224,
1433,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
8560,
1769,
202,
202,
1925,
18,
542,
1528,
12,
1420,
1318,
1082,
202,
18,
588,
... |
return null; } | return null; } | protected InputStream getInitialContents() { return null; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6acf364392177fabaa2905c86fa45a3dac0a3db3/WizardNewFileCreationPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFileCreationPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
24044,
6323,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
24044,
6323,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
NamingEnumeration list = nexus.list( name ); | NamingEnumeration list = nextInterceptor.list( name ); | public void delete( NextInterceptor nextInterceptor, Name name ) throws NamingException { // check if entry to delete exists String msg = "Attempt to delete non-existant entry: "; assertHasEntry( msg, name ); // check if entry to delete has children (only leaves can be deleted) boolean hasChildren = false; NamingEnumeration list = nexus.list( name ); if ( list.hasMore() ) { hasChildren = true; } list.close(); if ( hasChildren ) { LdapContextNotEmptyException e = new LdapContextNotEmptyException(); e.setResolvedName( name ); throw e; } nextInterceptor.delete( name ); } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/0e26528e69b2b36c5f2f1fb03af87ad2ec26eb51/ExceptionService.java/clean/core/src/main/java/org/apache/ldap/server/exception/ExceptionService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
12,
4804,
10281,
1024,
10281,
16,
1770,
508,
262,
1216,
26890,
565,
288,
3639,
368,
866,
309,
1241,
358,
1430,
1704,
3639,
514,
1234,
273,
315,
7744,
358,
1430,
1661,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1430,
12,
4804,
10281,
1024,
10281,
16,
1770,
508,
262,
1216,
26890,
565,
288,
3639,
368,
866,
309,
1241,
358,
1430,
1704,
3639,
514,
1234,
273,
315,
7744,
358,
1430,
1661,
17,... |
IPreferenceConstants.REUSE_EDITORS_BOOLEAN)) { | IPreferenceConstants.REUSE_EDITORS_BOOLEAN) || event .getProperty() .equals( IPreferenceConstants.EDITOR_EXPERIMENTAL_TAB_BEHAVIOUR)) { | void checkCreateEditorPropListener() { if (editorPropChangeListnener == null) { // Add a property change listener for closing editors automatically // preference // Add or remove the pin icon accordingly editorPropChangeListnener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals( IPreferenceConstants.REUSE_EDITORS_BOOLEAN)) { IEditorReference[] editors = getEditors(); for (int i = 0; i < editors.length; i++) { ((EditorReference) editors[i]).pinStatusUpdated(); } } } }; WorkbenchPlugin.getDefault().getPreferenceStore() .addPropertyChangeListener(editorPropChangeListnener); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9662165260d10647ea967a53faa6cc5158311e8e/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
866,
1684,
6946,
4658,
2223,
1435,
288,
202,
202,
430,
261,
9177,
4658,
3043,
682,
82,
708,
422,
446,
13,
288,
1082,
202,
759,
1436,
279,
1272,
2549,
2991,
364,
7647,
29431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
866,
1684,
6946,
4658,
2223,
1435,
288,
202,
202,
430,
261,
9177,
4658,
3043,
682,
82,
708,
422,
446,
13,
288,
1082,
202,
759,
1436,
279,
1272,
2549,
2991,
364,
7647,
29431,
... |
+ ", we are not reachable on " + _localIP); | + ", we are not reachable on " + _localIP + ":" + _transport.getPort()); | private boolean validateStatus(int status) { switch (status) { case -1: fail("Error reading the status from " + _target.getIdentity().calculateHash().toBase64().substring(0,6)); return false; case 0: // ok return true; case 1: // not reachable fail("According to " + _target.getIdentity().calculateHash().toBase64().substring(0,6) + ", we are not reachable on " + _localIP); return false; case 2: // clock skew fail("According to " + _target.getIdentity().calculateHash().toBase64().substring(0,6) + ", our clock is off"); return false; case 3: // signature failure (only for new sessions) fail("Signature failure talking to " + _target.getIdentity().calculateHash().toBase64().substring(0,6)); return false; default: // unknown error fail("Unknown error [" + status + "] connecting to " + _target.getIdentity().calculateHash().toBase64().substring(0,6)); return false; } } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/cf780e296e9ebff92d27a6e4cc836e8615faf38f/ConnectionBuilder.java/buggy/router/java/src/net/i2p/router/transport/tcp/ConnectionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1954,
1482,
12,
474,
1267,
13,
288,
3639,
1620,
261,
2327,
13,
288,
5411,
648,
300,
21,
30,
7734,
2321,
2932,
668,
6453,
326,
1267,
628,
315,
8227,
397,
389,
3299,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1954,
1482,
12,
474,
1267,
13,
288,
3639,
1620,
261,
2327,
13,
288,
5411,
648,
300,
21,
30,
7734,
2321,
2932,
668,
6453,
326,
1267,
628,
315,
8227,
397,
389,
3299,
18,
588,
... |
return date1.before(date2) ? -1 : 1; return date1.after(date2) ? -1 : 1; | return date1.before(date2) ? DESCENDING : ASCENDING; return date1.after(date2) ? DESCENDING : ASCENDING; | public int compare(Viewer viewer, Object e1, Object e2) { try { SimpleDateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.SSS"); //$NON-NLS-1$ Date date1 = formatter.parse(((LogEntry) e1).getDate()); Date date2 = formatter.parse(((LogEntry) e2).getDate()); if (DATE_ORDER == ASCENDING) return date1.before(date2) ? -1 : 1; return date1.after(date2) ? -1 : 1; } catch (ParseException e) { } return 0; } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/641dcbba7806ee9c6003123d9ec533cc90635078/LogView.java/buggy/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
6862,
202,
698,
288,
25083,
202,
5784,
11878,
4453,
273,
394,
17005,
12,
25083,
202,
6,
17722,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
6862,
202,
698,
288,
25083,
202,
5784,
11878,
4453,
273,
394,
17005,
12,
25083,
202,
6,
17722,
17,... |
cmd.addStep(MovePath.STEP_DIG_IN); | cmd.addStep(MovePath.STEP_DIG_IN); | public synchronized void actionPerformed(ActionEvent ev) { final Entity ce = ce(); // Are we ignoring events? if ( this.isIgnoringEvents() ) { return; } if ( statusBarActionPerformed(ev, client) ) return; if (!client.isMyTurn()) { // odd... return; } if (ev.getSource() == butDone) { moveTo(cmd); } else if (ev.getActionCommand().equals(MOVE_NEXT)) { selectEntity(client.getNextEntityNum(cen)); } else if (ev.getActionCommand().equals(MOVE_CANCEL)) { clearAllMoves(); } else if (ev.getSource() == butMore) { buttonLayout++; buttonLayout %= NUM_BUTTON_LAYOUTS; setupButtonPanel(); } else if (ev.getActionCommand().equals(MOVE_UNJAM)) { if (gear == MovementDisplay.GEAR_JUMP || gear == MovementDisplay.GEAR_CHARGE || gear == MovementDisplay.GEAR_DFA || cmd.getMpUsed() > ce.getWalkMP() || gear == MovementDisplay.GEAR_SWIM) { // in the wrong gear //clearAllMoves(); //gear = Compute.GEAR_LAND; setUnjamEnabled(false); } else { cmd.addStep(MovePath.STEP_UNJAM_RAC); moveTo(cmd); } } else if (ev.getActionCommand().equals(MOVE_SEARCHLIGHT)) { cmd.addStep(MovePath.STEP_SEARCHLIGHT); } else if (ev.getActionCommand().equals(MOVE_WALK)) { if (gear == MovementDisplay.GEAR_JUMP || gear == MovementDisplay.GEAR_SWIM) { clearAllMoves(); } gear = MovementDisplay.GEAR_LAND; } else if (ev.getActionCommand().equals(MOVE_JUMP)) { if (gear != MovementDisplay.GEAR_JUMP) { clearAllMoves(); } if (!cmd.isJumping()) { cmd.addStep(MovePath.STEP_START_JUMP); } gear = MovementDisplay.GEAR_JUMP; } else if (ev.getActionCommand().equals(MOVE_SWIM)) { if (gear != MovementDisplay.GEAR_SWIM) { clearAllMoves(); } //dcmd.addStep(MovePath.STEP_SWIM); gear = MovementDisplay.GEAR_SWIM; ce.setMovementMode((ce instanceof BipedMech)?IEntityMovementMode.BIPED_SWIM:IEntityMovementMode.QUAD_SWIM); } else if (ev.getActionCommand().equals(MOVE_TURN)) { gear = MovementDisplay.GEAR_TURN; } else if (ev.getActionCommand().equals(MOVE_BACK_UP)) { if (gear == MovementDisplay.GEAR_JUMP) { clearAllMoves(); } gear = MovementDisplay.GEAR_BACKUP; } else if (ev.getActionCommand().equals(MOVE_CLEAR)) { clearAllMoves(); if (!client.game.containsMinefield(ce.getPosition())) { clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantClearMinefield"), //$NON-NLS-1$ Messages.getString("MovementDisplay.NoMinefield") ); //$NON-NLS-1$ return; } // Does the entity has a minesweeper? int clear = Minefield.CLEAR_NUMBER_INFANTRY; int boom = Minefield.CLEAR_NUMBER_INFANTRY_ACCIDENT; for (Mounted mounted : ce.getMisc()) { if ( mounted.getType().hasFlag(MiscType.F_TOOLS) && mounted.getType().hasSubType(MiscType.S_MINESWEEPER) ) { int sweeperType = mounted.getType().getToHitModifier(); clear = Minefield.CLEAR_NUMBER_SWEEPER[sweeperType]; boom = Minefield.CLEAR_NUMBER_SWEEPER_ACCIDENT[sweeperType]; break; } } if (clientgui.doYesNoDialog( Messages.getString("MovementDisplay.ClearMinefieldDialog.title"), //$NON-NLS-1$ Messages.getString("MovementDisplay.ClearMinefieldDialog.message", new Object[]{ //$NON-NLS-1$ new Integer(clear), new Integer(boom)}) )) { cmd.addStep(MovePath.STEP_CLEAR_MINEFIELD); moveTo(cmd); } } else if (ev.getActionCommand().equals(MOVE_CHARGE)) { if (gear != MovementDisplay.GEAR_LAND) { clearAllMoves(); } gear = MovementDisplay.GEAR_CHARGE; } else if (ev.getActionCommand().equals(MOVE_DFA)) { if (gear != MovementDisplay.GEAR_JUMP) { clearAllMoves(); } gear = MovementDisplay.GEAR_DFA; if (!cmd.isJumping()) { cmd.addStep(MovePath.STEP_START_JUMP); } } else if (ev.getActionCommand().equals(MOVE_GET_UP)) { clearAllMoves(); if (cmd.getFinalProne() || cmd.getFinalHullDown()) { cmd.addStep(MovePath.STEP_GET_UP); } clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); butDone.setLabel(Messages.getString("MovementDisplay.Move")); //$NON-NLS-1$ } else if (ev.getActionCommand().equals(MOVE_GO_PRONE)) { gear = MovementDisplay.GEAR_LAND; if (!cmd.getFinalProne()) { cmd.addStep(MovePath.STEP_GO_PRONE); } clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); butDone.setLabel(Messages.getString("MovementDisplay.Move")); //$NON-NLS-1$ } else if (ev.getActionCommand().equals(MOVE_HULL_DOWN)) { gear = MovementDisplay.GEAR_LAND; if (!cmd.getFinalHullDown()) { cmd.addStep(MovePath.STEP_HULL_DOWN); } clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); butDone.setLabel(Messages.getString("MovementDisplay.Move")); //$NON-NLS-1$ } else if (ev.getActionCommand().equals(MOVE_FLEE) && clientgui.doYesNoDialog(Messages.getString("MovementDisplay.EscapeDialog.title"), Messages.getString("MovementDisplay.EscapeDialog.message"))) { //$NON-NLS-1$ //$NON-NLS-2$ clearAllMoves(); cmd.addStep(MovePath.STEP_FLEE); moveTo(cmd); } else if (ev.getActionCommand().equals(MOVE_EJECT)) { if (ce instanceof Tank) { if (clientgui.doYesNoDialog(Messages.getString("MovementDisplay.AbandonDialog.title"), Messages.getString("MovementDisplay.AbandonDialog.message"))) { //$NON-NLS-1$ //$NON-NLS-2$ clearAllMoves(); cmd.addStep(MovePath.STEP_EJECT); moveTo(cmd); } } else if (clientgui.doYesNoDialog(Messages.getString("MovementDisplay.AbandonDialog1.title"), Messages.getString("MovementDisplay.AbandonDialog1.message"))) { //$NON-NLS-1$ //$NON-NLS-2$ clearAllMoves(); cmd.addStep(MovePath.STEP_EJECT); moveTo(cmd); } } else if ( ev.getActionCommand().equals(MOVE_LOAD) ) { // Find the other friendly unit in our hex, add it // to our local list of loaded units, and then stop. Entity other = null; Enumeration entities = client.game.getEntities( ce.getPosition() ); while ( entities.hasMoreElements() ) { other = (Entity)entities.nextElement(); if ( ce.getOwner() == other.getOwner() && !ce.equals(other) ) { loadedUnits.addElement( other ); break; } other = null; } if ( other != null ) { cmd.addStep( MovePath.STEP_LOAD ); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); gear = MovementDisplay.GEAR_LAND; } //else - didn't find a unit to load } else if ( ev.getActionCommand().equals(MOVE_UNLOAD) ) { // Ask the user if we're carrying multiple units. Entity other = getUnloadedUnit(); if ( other != null ) { cmd.addStep( MovePath.STEP_UNLOAD, other ); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } //else - Player canceled the unload. } else if (ev.getActionCommand().equals(MOVE_RAISE_ELEVATION) ) { cmd.addStep(MovePath.STEP_UP); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } else if (ev.getActionCommand().equals(MOVE_LOWER_ELEVATION) ) { cmd.addStep(MovePath.STEP_DOWN); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } else if (ev.getActionCommand().equals(MOVE_CLIMB_MODE) ) { MoveStep ms = cmd.getLastStep(); if(ms != null && (ms.getType() == MovePath.STEP_CLIMB_MODE_ON || ms.getType() == MovePath.STEP_CLIMB_MODE_OFF)) cmd.removeLastStep(); else if(cmd.getFinalClimbMode()) cmd.addStep(MovePath.STEP_CLIMB_MODE_OFF); else cmd.addStep(MovePath.STEP_CLIMB_MODE_ON); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } else if (ev.getActionCommand().equals(MOVE_LAY_MINE)) { clearAllMoves(); int i = chooseMineToLay(); if (i != -1) { Mounted m = ce().getEquipment(i); if (m.getMineType() == Mounted.MINE_VIBRABOMB) { VibrabombSettingDialog vsd = new VibrabombSettingDialog(clientgui.frame); vsd.show(); m.setVibraSetting(vsd.getSetting()); } cmd.addStep(MovePath.STEP_LAY_MINE, i); moveTo(cmd); } } else if (ev.getActionCommand().equals(MOVE_DIG_IN)) { cmd.addStep(MovePath.STEP_DIG_IN); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } else if (ev.getActionCommand().equals(MOVE_FORTIFY)) { cmd.addStep(MovePath.STEP_FORTIFY); clientgui.bv.drawMovementData(ce, cmd); clientgui.bv.repaint(); } updateProneButtons(); updateRACButton(); updateSearchlightButton(); updateLoadButtons(); updateElevationButtons(); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3ec08a661a36dfa63b78512f6183c1311dddcd2c/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
26100,
12,
1803,
1133,
2113,
13,
288,
3639,
727,
3887,
5898,
273,
5898,
5621,
13491,
368,
12520,
732,
14398,
2641,
35,
3639,
309,
261,
333,
18,
291,
21702,
3783,
1435,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
26100,
12,
1803,
1133,
2113,
13,
288,
3639,
727,
3887,
5898,
273,
5898,
5621,
13491,
368,
12520,
732,
14398,
2641,
35,
3639,
309,
261,
333,
18,
291,
21702,
3783,
1435,
26... |
public void acceptNameWithoutPrefixAndSuffix(char[] name) { accept(name, 0); | public void acceptNameWithoutPrefixAndSuffix(char[] name,int reusedCharacters) { accept(name, 0, reusedCharacters); | public void acceptNameWithoutPrefixAndSuffix(char[] name) { accept(name, 0); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/990424c900c7463d4257bff26a1ccc6812106204/CompletionEngine.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2791,
461,
8073,
2244,
1876,
5791,
12,
3001,
8526,
508,
13,
288,
9506,
202,
9436,
12,
529,
16,
374,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2791,
461,
8073,
2244,
1876,
5791,
12,
3001,
8526,
508,
13,
288,
9506,
202,
9436,
12,
529,
16,
374,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
repoMetadata = getMetadata( "org.apache.maven", null, null, "maven-metadata.xml", GROUP_TYPE ); | repoMetadata = getMetadata( "test", null, null, "maven-metadata.xml", MetadataRepositoryIndex.GROUP_METADATA ); | private void createTestIndex() throws Exception { RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); indexer = factory.createMetadataRepositoryIndex( indexPath, repository ); RepositoryMetadata repoMetadata = getMetadata( "org.apache.maven", null, null, "maven-metadata.xml", GROUP_TYPE ); indexer.index( repoMetadata ); indexer.optimize(); indexer.close(); repoMetadata = getMetadata( "org.apache.maven", "maven-artifact", "2.0.1", "maven-metadata.xml", ARTIFACT_TYPE ); indexer.index( repoMetadata ); indexer.optimize(); indexer.close(); repoMetadata = getMetadata( "org.apache.maven", "maven-artifact", "2.0.1", "maven-metadata.xml", SNAPSHOT_TYPE ); indexer.index( repoMetadata ); indexer.optimize(); indexer.close(); repoMetadata = getMetadata( "org.apache.maven", null, null, "maven-metadata.xml", GROUP_TYPE ); indexer.index( repoMetadata ); indexer.optimize(); indexer.close(); } | 47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/05e7c800b0e3a3c8a950ed6af517f24cb6a58325/MetadataRepositoryIndexingTest.java/clean/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/MetadataRepositoryIndexingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4709,
1016,
1435,
3639,
1216,
1185,
565,
288,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
12635,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
4709,
1016,
1435,
3639,
1216,
1185,
565,
288,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
12635,
273... |
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile xmlTemplateDocument = (CmsXmlWpTemplateFile)getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_PARA_FOLDER); session.removeValue("lasturl"); } // getting the URL to which we need to return when we're done String lasturl = getLastUrl(cms, parameters); // read the parameters String foldername = (String)parameters.get(C_PARA_FOLDER); if(foldername != null) { // need the foldername in the session in case of an exception in the dialog session.putValue(C_PARA_FOLDER, foldername); } else { foldername = (String)session.getValue(C_PARA_FOLDER); } String action = (String)parameters.get("action"); String newname = (String)parameters.get(C_PARA_NAME); String title = (String)parameters.get("TITLE"); // both for gallery and upload file String step = (String)parameters.get("step"); if(foldername == null) { foldername = ""; } if("new".equals(action)) { String galleryname = (String)parameters.get("NAME"); String group = (String)parameters.get("GROUP"); if(galleryname != null && group != null && galleryname != "" && group != "") { boolean read = parameters.get("READ") != null; boolean write = parameters.get("WRITE") != null; try { // create the folder // get the path from the workplace.ini String superfolder = getConfigFile(cms).getPicGalleryPath(); CmsFolder folder = cms.createFolder(superfolder, galleryname); cms.lockResource(folder.getAbsolutePath()); if(title != null) { cms.writeProperty(folder.getAbsolutePath(), C_PROPERTY_TITLE, title); } cms.chgrp(folder.getAbsolutePath(), group); int flag = folder.getAccessFlags(); // set the access rights for 'other' users if(read != ((flag & C_ACCESS_PUBLIC_READ) != 0)) { flag ^= C_ACCESS_PUBLIC_READ; } if(write != ((flag & C_ACCESS_PUBLIC_WRITE) != 0)) { flag ^= C_ACCESS_PUBLIC_WRITE; } cms.chmod(folder.getAbsolutePath(), flag); } catch(CmsException ex) { xmlTemplateDocument.setData("ERRORDETAILS", Utils.getStackTrace(ex)); templateSelector = "error"; } } else { templateSelector = "datamissing"; } } else { if("upload".equals(action)) { // get filename and file content if available String filename = null; byte[] filecontent = new byte[0]; // get the filename Enumeration files = cms.getRequestContext().getRequest().getFileNames(); while(files.hasMoreElements()) { filename = (String)files.nextElement(); } if(filename != null) { session.putValue(C_PARA_FILE, filename); } filename = (String)session.getValue(C_PARA_FILE); // get the filecontent if(filename != null) { filecontent = cms.getRequestContext().getRequest().getFile(filename); } if(filecontent != null) { session.putValue(C_PARA_FILECONTENT, filecontent); } filecontent = (byte[])session.getValue(C_PARA_FILECONTENT); if("0".equals(step)) { templateSelector = ""; } else { if("1".equals(step)) { // display the select filetype screen if(filename != null) { // check if the file size is 0 if(filecontent.length == 0) { templateSelector = "error"; xmlTemplateDocument.setData("details", filename); } else { xmlTemplateDocument.setData("MIME", filename); xmlTemplateDocument.setData("SIZE", "Not yet available"); xmlTemplateDocument.setData("FILESIZE", new Integer(filecontent.length).toString() + " Bytes"); xmlTemplateDocument.setData("FILENAME", filename); templateSelector = "step1"; } } } else { if("2".equals(step)) { // check if a new filename is given if(newname != null) { filename = newname; } try { CmsFile file = cms.createFile(foldername, filename, filecontent, C_TYPE_IMAGE_NAME); if(title != null) { String filepath = file.getAbsolutePath(); cms.lockResource(filepath); cms.writeProperty(filepath, C_PROPERTY_TITLE, title); } } catch(CmsException ex) { xmlTemplateDocument.setData("details", Utils.getStackTrace(ex)); templateSelector = "error"; xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } try { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + lasturl); } catch(Exception ex) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + lasturl, CmsException.C_UNKNOWN_EXCEPTION, ex); } } } } } } xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); // Finally start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/4340319d06bbb57613711013c96d806cebe115b3/CmsAdminPicGalleries.java/buggy/src/com/opencms/workplace/CmsAdminPicGalleries.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
467,
67,
4747,
2157,
1339,
273,
6166,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
467,
67,
4747,
2157,
1339,
273,
6166,
... | ||
case RHS: alt50=9; | case THEN: alt51=9; | public String word() throws RecognitionException { String word = null; Token id=null; Token str=null; word = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING ) int alt50=11; switch ( input.LA(1) ) { case ID: alt50=1; break; case 28: alt50=2; break; case 73: alt50=3; break; case 37: alt50=4; break; case 34: alt50=5; break; case 41: alt50=6; break; case 42: alt50=7; break; case 38: alt50=8; break; case RHS: alt50=9; break; case 35: alt50=10; break; case STRING: alt50=11; break; default: if (backtracking>0) {failed=true; return word;} NoViableAltException nvae = new NoViableAltException("1282:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING );", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ID )=>id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word3213); if (failed) return word; if ( backtracking==0 ) { word=id.getText(); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1287:4: ( 'import' )=> 'import' { match(input,28,FOLLOW_28_in_word3225); if (failed) return word; if ( backtracking==0 ) { word="import"; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1288:4: ( 'use' )=> 'use' { match(input,73,FOLLOW_73_in_word3234); if (failed) return word; if ( backtracking==0 ) { word="use"; } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'rule' )=> 'rule' { match(input,37,FOLLOW_37_in_word3246); if (failed) return word; if ( backtracking==0 ) { word="rule"; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ( 'query' )=> 'query' { match(input,34,FOLLOW_34_in_word3257); if (failed) return word; if ( backtracking==0 ) { word="query"; } } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1291:4: ( 'salience' )=> 'salience' { match(input,41,FOLLOW_41_in_word3267); if (failed) return word; if ( backtracking==0 ) { word="salience"; } } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1292:5: ( 'no-loop' )=> 'no-loop' { match(input,42,FOLLOW_42_in_word3275); if (failed) return word; if ( backtracking==0 ) { word="no-loop"; } } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( 'when' )=> 'when' { match(input,38,FOLLOW_38_in_word3283); if (failed) return word; if ( backtracking==0 ) { word="when"; } } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1294:4: ( 'then' )=> 'then' { match(input,RHS,FOLLOW_RHS_in_word3294); if (failed) return word; if ( backtracking==0 ) { word="then"; } } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: ( 'end' )=> 'end' { match(input,35,FOLLOW_35_in_word3305); if (failed) return word; if ( backtracking==0 ) { word="end"; } } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1296:4: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word3319); if (failed) return word; if ( backtracking==0 ) { word=getString(str); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
... |
height += Math.max(200, scrollbar.getVisibleAmount()); | height += (scrollbar.getMaximum() - scrollbar.getMinimum()); | private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount()); height = Math.max(incrButton.getPreferredSize().height, decrButton.getPreferredSize().height); height = Math.max(getMinimumThumbSize().height, height); height = Math.max(20, height); height = Math.min(getMaximumThumbSize().height, height); } else { height += incrButton.getPreferredSize().getHeight(); height += decrButton.getPreferredSize().getHeight(); height += Math.max(200, scrollbar.getVisibleAmount()); width = Math.max(incrButton.getPreferredSize().width, decrButton.getPreferredSize().width); width = Math.max(getMinimumThumbSize().width, width); width = Math.max(20, width); width = Math.min(getMaximumThumbSize().width, width); } Insets insets = scrollbar.getInsets(); height += insets.top + insets.bottom; width += insets.left + insets.right; preferredSize = new Dimension(width, height); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4604,
16028,
1225,
1435,
225,
288,
565,
509,
2072,
31,
565,
509,
1835,
31,
565,
2072,
273,
1835,
273,
374,
31,
565,
309,
261,
12033,
3215,
18,
588,
14097,
1435,
422,
26145,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4604,
16028,
1225,
1435,
225,
288,
565,
509,
2072,
31,
565,
509,
1835,
31,
565,
2072,
273,
1835,
273,
374,
31,
565,
309,
261,
12033,
3215,
18,
588,
14097,
1435,
422,
26145,
2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.