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 (type1 == XMLContentSpec.CONTENTSPECNODE_ANY && type2 == XMLContentSpec.CONTENTSPECNODE_ANY &&
if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY_NS && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_NS &&
private static boolean wildcardIntersect(int w1, int t1, int w2, int t2) { int type1 = t1 & 0x0f, type2 = t2 & 0x0f; // if either one is "##any", then intersects if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY && w1 == StringPool.EMPTY_STRING || type2 == XMLContentSpec.CONTENTSPECNODE_ANY && w2 == StringPool.EMPTY_STRING) { return true; } // if both are "some_namespace" and equal, then intersects if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY && type2 == XMLContentSpec.CONTENTSPECNODE_ANY && w1 == w2) { return true; } // if both are "##local", then intersects if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { return true; } // if both are "##other", and equal, then intersects if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER && w1 == w2) { return true; } // if one local and one other, then intersects if (type1 == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER || type1 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { return true; } // if one "##other" and one namespace, if not equal, then intersects if ((type1 == XMLContentSpec.CONTENTSPECNODE_ANY && type2 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER || type1 == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER && type2 == XMLContentSpec.CONTENTSPECNODE_ANY) && w1 != w2) { return true; } return false; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/c545807606fa5f31dc3e72abcb797d9e919ac0b7/ElementWildcard.java/buggy/src/org/apache/xerces/validators/common/ElementWildcard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 8531, 22541, 12, 474, 341, 21, 16, 509, 268, 21, 16, 509, 341, 22, 16, 509, 268, 22, 13, 288, 3639, 509, 618, 21, 273, 268, 21, 473, 374, 92, 20, 74, 16, 618, 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, 377, 3238, 760, 1250, 8531, 22541, 12, 474, 341, 21, 16, 509, 268, 21, 16, 509, 341, 22, 16, 509, 268, 22, 13, 288, 3639, 509, 618, 21, 273, 268, 21, 473, 374, 92, 20, 74, 16, 618, 22,...
this.score = score; this.pValue = pValue; this.eValue = eValue; this.sequenceID = sequenceID;
this.score = score; this.pValue = pValue; this.eValue = eValue; this.sequenceID = sequenceID;
public SimpleSeqSimilaritySearchHit(double score, double eValue, double pValue, int qStart, int qEnd, Strand qStrand, int sStart, int sEnd, Strand sStrand, String sequenceID, List subHits) { if (Double.isNaN(score)) { throw new IllegalArgumentException("score was NaN"); } // pValue may be NaN // eValue may be NaN if (sequenceID == null) { throw new IllegalArgumentException("sequenceID was null"); } if (subHits == null) { throw new IllegalArgumentException("subHits was null"); } this.score = score; this.pValue = pValue; this.eValue = eValue; this.sequenceID = sequenceID; this.qStart = qStart; this.qEnd = qEnd; this.qStrand = qStrand; this.sStart = sStart; this.sEnd = sEnd; this.sStrand = sStrand; this.subHits = subHits; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/5d8f0472e505e38cb8a0a330aae9d45cebac1fbf/SimpleSeqSimilaritySearchHit.java/buggy/src/org/biojava/bio/search/SimpleSeqSimilaritySearchHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4477, 6926, 16891, 560, 2979, 13616, 12, 9056, 4462, 16, 6862, 202, 9056, 425, 620, 16, 6862, 202, 9056, 18326, 16, 4766, 3639, 509, 565, 1043, 1685, 16, 4766, 3639, 509, 565, 1043,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 6926, 16891, 560, 2979, 13616, 12, 9056, 4462, 16, 6862, 202, 9056, 425, 620, 16, 6862, 202, 9056, 18326, 16, 4766, 3639, 509, 565, 1043, 1685, 16, 4766, 3639, 509, 565, 1043,...
public RubyString to_s() { return getRuntime().newString(String.valueOf(getLongValue()));
public RubyString to_s(IRubyObject[] args) { checkArgumentCount(args, 0, 1); int radix = args.length == 0 ? 10 : (int) args[0].convertToInteger().getLongValue(); return getRuntime().newString(Long.toString(getLongValue(), radix));
public RubyString to_s() { return getRuntime().newString(String.valueOf(getLongValue())); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/5ab345ee94c86afde157cfadd32a78d5899d489f/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 12, 780, 18, 1132, 951, 12, 588, 3708, 620, 1435, 10019, 565, 289, 2, 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, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 12, 780, 18, 1132, 951, 12, 588, 3708, 620, 1435, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -1...
protected final JComponent createControl() { GridBagLayoutBuilder builder = new GridBagLayoutBuilder(); // JPanel panel = new JPanel(new BorderLayout()); JComponent buttonPanel = null; if (createApplyAndDefaultButtons) { buttonPanel = createButtons(); } JComponent contents = createContents(); Assert.notNull(contents, "Contents cannot be null."); // panel.add(contents); builder.append(contents, 1, 1, true, true); if (createApplyAndDefaultButtons) { builder.nextLine(); builder.append(createButtons()); // panel.add(createButtons(), BorderLayout.SOUTH); builder.append(buttonPanel); } // return panel; return builder.getPanel(); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/606f2ed6781a84881f8308ea97cc87869526da15/PreferencePage.java/clean/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 29058, 752, 3367, 1435, 288, 202, 202, 6313, 5013, 3744, 1263, 2089, 273, 394, 7145, 5013, 3744, 1263, 5621, 202, 202, 759, 24048, 6594, 273, 394, 24048, 12, 2704, 30814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 29058, 752, 3367, 1435, 288, 202, 202, 6313, 5013, 3744, 1263, 2089, 273, 394, 7145, 5013, 3744, 1263, 5621, 202, 202, 759, 24048, 6594, 273, 394, 24048, 12, 2704, 30814, ...
public void focusGained (FocusEvent e) { // System.out.println ("Focus Gained"); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/62b315e8a465a26dabe894fe915eab34f48f17f0/LibraryFrame.java/clean/JSynthLib/core/LibraryFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 7155, 43, 8707, 261, 9233, 1133, 425, 13, 5411, 288, 9079, 368, 2332, 18, 659, 18, 8222, 7566, 9233, 611, 8707, 8863, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 7155, 43, 8707, 261, 9233, 1133, 425, 13, 5411, 288, 9079, 368, 2332, 18, 659, 18, 8222, 7566, 9233, 611, 8707, 8863, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
public static Object newActive(String classname, Object[] constructorParameters) throws ActiveObjectCreationException, NodeException { // avoid ambiguity for method parameters types Node nullNode = null; return newActive(classname, constructorParameters, nullNode, null, null); }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/a5e5e535dec443ddf23a4fb2e4ab651cd70b575d/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 921, 2704, 3896, 12, 780, 18340, 16, 921, 8526, 12316, 2402, 13, 15069, 3896, 921, 9906, 503, 16, 907, 503, 95, 759, 842, 839, 26011, 560, 687, 572, 6775, 334, 989, 50, 369, 275,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 921, 2704, 3896, 12, 780, 18340, 16, 921, 8526, 12316, 2402, 13, 15069, 3896, 921, 9906, 503, 16, 907, 503, 95, 759, 842, 839, 26011, 560, 687, 572, 6775, 334, 989, 50, 369, 275,...
System.out.print("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " +
p("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " +
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // System.out.print("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { System.out.print("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); System.out.print("static const int VM_Constants_THREAD_ID_REGISTER = " + VM_Constants.THREAD_ID_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); System.out.print("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { System.out.print("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); System.out.print("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); System.out.print("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); System.out.print("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); System.out.print("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); System.out.print("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); System.out.print("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); System.out.print("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); System.out.print("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif System.out.print("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); System.out.print("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); System.out.print("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT = " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); System.out.print("\n"); // values in VM_ObjectModel // System.out.println("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // System.out.print("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); System.out.print("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); System.out.print("\n"); // values in VM_ThreadEventConstants // System.out.print("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // System.out.print("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); System.out.print("\n"); // values in VM_ThreadIOConstants // System.out.print("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); System.out.print("\n"); // values in VM_ThreadProcessWaitQueue // System.out.print("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // System.out.print("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); System.out.print("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); System.out.print("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); System.out.print("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); System.out.print("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); System.out.print("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); System.out.print("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); System.out.print("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); System.out.println(); // values in VM_FileSystem // System.out.print("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); System.out.print("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.threadSwitchRequestedField.getOffset(); System.out.print("static const int VM_Processor_threadSwitchRequested_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); System.out.print("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); System.out.print("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.epochField.getOffset(); System.out.print("static const int VM_Processor_epoch_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); System.out.print("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.processorThreadIdField.getOffset(); System.out.print("static const int VM_Processor_threadId_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorFPField.getOffset(); System.out.print("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorJTOCField.getOffset(); System.out.print("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorTrapParamField.getOffset(); System.out.print("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); System.out.print("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); System.out.print("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); System.out.print("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); System.out.print("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); System.out.print("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); System.out.print("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); System.out.print("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); System.out.print("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); System.out.print("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); System.out.print("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIEnvAddressField.getOffset(); System.out.print("static const int VM_JNIEnvironment_JNIEnvAddress_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); System.out.print("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); System.out.print("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); System.out.print("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); System.out.print("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcInProgressField.getOffset(); System.out.print("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcInProgressOffset = " + offset + ";\n"); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/eb8328fb4c19b26929f6d00ecee2bc8cace02c4c/GenerateInterfaceDeclarations.java/clean/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 2332, 18, 659, 18, 1188, 2932, 3845, 1866, 509, 4835, 2040, ...
pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2696);
pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2872);
public BaseDescr lhs_unary() throws RecognitionException { BaseDescr d = null; BaseDescr u = null; FromDescr fm = null; AccumulateDescr ac = null; CollectDescr cs = null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) int alt39=5; switch ( input.LA(1) ) { case 71: alt39=1; break; case 72: alt39=2; break; case 73: alt39=3; break; case ID: alt39=4; break; case LEFT_PAREN: alt39=5; break; default: NoViableAltException nvae = new NoViableAltException("1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )", 39, 0, input); throw nvae; } switch (alt39) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:6: u= lhs_exist { pushFollow(FOLLOW_lhs_exist_in_lhs_unary2630); u=lhs_exist(); _fsp--; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1181:5: u= lhs_not { pushFollow(FOLLOW_lhs_not_in_lhs_unary2638); u=lhs_not(); _fsp--; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:5: u= lhs_eval { pushFollow(FOLLOW_lhs_eval_in_lhs_unary2646); u=lhs_eval(); _fsp--; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1183:5: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? { pushFollow(FOLLOW_lhs_column_in_lhs_unary2654); u=lhs_column(); _fsp--; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1183:18: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? int alt38=4; int LA38_0 = input.LA(1); if ( (LA38_0==48) ) { switch ( input.LA(2) ) { case 49: alt38=2; break; case 53: alt38=3; break; case ID: alt38=1; break; } } switch (alt38) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:14: (fm= from_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:14: (fm= from_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:15: fm= from_statement { pushFollow(FOLLOW_from_statement_in_lhs_unary2674); fm=from_statement(); _fsp--; fm.setColumn((ColumnDescr) u); u=fm; } } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:14: (ac= accumulate_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:14: (ac= accumulate_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:15: ac= accumulate_statement { pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2696); ac=accumulate_statement(); _fsp--; ac.setResultColumn((ColumnDescr) u); u=ac; } } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:14: (cs= collect_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:14: (cs= collect_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:15: cs= collect_statement { pushFollow(FOLLOW_collect_statement_in_lhs_unary2717); cs=collect_statement(); _fsp--; cs.setResultColumn((ColumnDescr) u); u=cs; } } break; } } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1188:5: '(' u= lhs ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2740); pushFollow(FOLLOW_lhs_in_lhs_unary2744); u=lhs(); _fsp--; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary2746); } break; } d = u; pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2756); opt_semicolon(); _fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
token, false, returnBucket, true);
token, false, returnBucket, isFinal);
private static ClientGetState uskCreate(BaseClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, usk.getURI().addMetaStrings(metaStrings), 0, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket, true); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent, false); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/411123871e7f2463f679f4d6396979200e173712/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 2171, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 2445, 967, 1119, 584, 79, 1684, 12, 2171, 1227, 8461, 982, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1004, 2277, 16, 587, 11129, 584, 79, 16, 10688, 2191, 7957, 16, 80...
TypeSig s = ((rcc.tc.PrepTypeDeclaration)PrepTypeDeclaration.inst). findTypeSignature(sig.getEnv(true), (rcc.tc.TypeSig)sig, args, sig.getTypeDecl().getStartLoc());
TypeSig s = ((rcc.tc.PrepTypeDeclaration) PrepTypeDeclaration.inst) .findTypeSignature(sig.getEnv(true), (rcc.tc.TypeSig) sig, args, sig.getTypeDecl().getStartLoc());
static public rcc.tc.TypeSig defaultInstantiation(rcc.tc.TypeSig sig) { boolean t = inAnnotation; inAnnotation = true; FormalParaDeclVec fpv = (FormalParaDeclVec)PrepTypeDeclaration.typeParametersDecoration.get(sig); ExprVec args = ExprVec.make(); if (fpv != null) { for (int i = 0; i<fpv.size(); i++) { FormalParaDecl parameter = fpv.elementAt(i); ExprObjectDesignator eod = ExprObjectDesignator. make(parameter.getStartLoc(), ThisExpr.make(sig, parameter.getStartLoc())); FieldAccess fa = FieldAccess. make( eod, parameter.id, parameter.getStartLoc()); args.addElement(fa); sig.getEnv(true).resolveType(parameter.type); setType(fa, parameter.type); fa.decl = (FieldDecl)PrepTypeDeclaration. parameterDeclDecoration.get(parameter); setType(eod.expr, sig); // good enough for now. change below to correct sig } } TypeSig s = ((rcc.tc.PrepTypeDeclaration)PrepTypeDeclaration.inst). findTypeSignature(sig.getEnv(true), (rcc.tc.TypeSig)sig, args, sig.getTypeDecl().getStartLoc()); for (int i = 0; i<args.size(); i++) { FieldAccess fa = (FieldAccess)args.elementAt(i); setType(((ExprObjectDesignator)fa.od).expr, s); s.getEnv(true).resolveType(getType(fa)); } inAnnotation = t; return (rcc.tc.TypeSig)s; }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/FlowInsensitiveChecks.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/tc/FlowInsensitiveChecks.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 436, 952, 18, 5111, 18, 559, 8267, 805, 10675, 7072, 12, 86, 952, 18, 5111, 18, 559, 8267, 3553, 13, 288, 3639, 1250, 268, 273, 316, 3257, 31, 3639, 316, 3257, 273, 638, 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, 760, 1071, 436, 952, 18, 5111, 18, 559, 8267, 805, 10675, 7072, 12, 86, 952, 18, 5111, 18, 559, 8267, 3553, 13, 288, 3639, 1250, 268, 273, 316, 3257, 31, 3639, 316, 3257, 273, 638, 31...
((GraphItem)getModel()).addPropertyChangeListener(this);
((IGraphItem)getModel()).addPropertyChangeListener(this);
public void activate() { if (!isActive()) { super.activate(); ((GraphItem)getModel()).addPropertyChangeListener(this); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a3a79bed35b871a171afff98eeddb6ea113e8052/GraphConnectionEditPart.java/clean/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/graphviewer/parts/GraphConnectionEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10235, 1435, 288, 202, 202, 430, 16051, 291, 3896, 10756, 288, 1082, 202, 9565, 18, 10014, 5621, 1082, 202, 12443, 4137, 1180, 13, 588, 1488, 1435, 2934, 1289, 1396, 15744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10235, 1435, 288, 202, 202, 430, 16051, 291, 3896, 10756, 288, 1082, 202, 9565, 18, 10014, 5621, 1082, 202, 12443, 4137, 1180, 13, 588, 1488, 1435, 2934, 1289, 1396, 15744, ...
if (last == '\n') { if (ret.charAt(lastIdx - 1) == '\r') {
if (last == CharUtils.LF) { if (ret.charAt(lastIdx - 1) == CharUtils.CR) {
public static String chop(String str) { if (str == null) { return null; } int strLen = str.length(); if (strLen < 2) { return EMPTY; } int lastIdx = strLen - 1; String ret = str.substring(0, lastIdx); char last = str.charAt(lastIdx); if (last == '\n') { if (ret.charAt(lastIdx - 1) == '\r') { return ret.substring(0, lastIdx - 1); } } return ret; }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/5346b0d03c5c943c883f7c6ef111d2de3ba12794/StringUtils.java/clean/src/java/org/apache/commons/lang/StringUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 31258, 12, 780, 609, 13, 288, 3639, 309, 261, 701, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 509, 609, 2891, 273, 609, 18, 2469, 5621, 3639, 309, 261, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 31258, 12, 780, 609, 13, 288, 3639, 309, 261, 701, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 509, 609, 2891, 273, 609, 18, 2469, 5621, 3639, 309, 261, 70...
} else if (this.binding.isArrayType()) { ArrayBinding arrayBinding = (ArrayBinding) this.binding; int dimensions = arrayBinding.dimensions;
return String.valueOf(buffer); } if (isParameterizedType()) { ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding; StringBuffer buffer = new StringBuffer(); buffer.append(parameterizedTypeBinding.sourceName()); ITypeBinding[] typeArguments = getTypeArguments(); final int typeArgumentsLength = typeArguments.length; if (typeArgumentsLength != 0) { buffer.append('<'); for (int i = 0, max = typeArguments.length; i < max; i++) { if (i > 0) { buffer.append(','); } buffer.append(typeArguments[i].getName()); } buffer.append('>'); } return String.valueOf(buffer); } if (isRawType()) { return getErasure().getName(); } if (isPrimitive() || isNullType()) { BaseTypeBinding baseTypeBinding = (BaseTypeBinding) this.binding; return new String(baseTypeBinding.simpleName); } if (isArray()) { int dimensions = getDimensions();
public String getName() { if (isClass() || isInterface() || isEnum()) { ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; if (referenceBinding.isAnonymousType()) { return NO_NAME; } else { char[] shortName = referenceBinding.shortReadableName(); if (referenceBinding.isMemberType() || referenceBinding.isLocalType()) { return new String(CharOperation.subarray(shortName, CharOperation.lastIndexOf('.', shortName) + 1, shortName.length)); } else { return new String(shortName); } } } else if (this.binding.isArrayType()) { ArrayBinding arrayBinding = (ArrayBinding) this.binding; int dimensions = arrayBinding.dimensions; char[] brackets = new char[dimensions * 2]; for (int i = dimensions * 2 - 1; i >= 0; i -= 2) { brackets[i] = ']'; brackets[i - 1] = '['; } StringBuffer buffer = new StringBuffer(); org.eclipse.jdt.internal.compiler.lookup.TypeBinding leafComponentTypeBinding = arrayBinding.leafComponentType; if ((leafComponentTypeBinding.isClass() || leafComponentTypeBinding.isInterface() || leafComponentTypeBinding.isEnum()) && !leafComponentTypeBinding.isTypeVariable()) { ReferenceBinding referenceBinding2 = (ReferenceBinding) leafComponentTypeBinding; char[] shortName = referenceBinding2.shortReadableName(); if (referenceBinding2.isMemberType() || referenceBinding2.isLocalType()) { buffer.append(CharOperation.subarray(shortName, CharOperation.lastIndexOf('.', shortName) + 1, shortName.length)); } else { buffer.append(shortName); } } else { buffer.append(leafComponentTypeBinding.readableName()); } buffer.append(brackets); return buffer.toString(); } else { return new String(this.binding.readableName()); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/996ea5997dae4e7ec05722a233804ef32ae29f15/TypeBinding.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 430, 261, 291, 797, 1435, 747, 21456, 1435, 747, 353, 3572, 10756, 288, 1082, 202, 2404, 5250, 2114, 5250, 273, 261, 2404, 5250, 13, 333, 18, 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, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 430, 261, 291, 797, 1435, 747, 21456, 1435, 747, 353, 3572, 10756, 288, 1082, 202, 2404, 5250, 2114, 5250, 273, 261, 2404, 5250, 13, 333, 18, 7...
public Vector readResourceNames(int projectId, String propertyDefinition, String propertyValue) throws CmsException { Vector names = new Vector(); ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; try { conn = m_sqlManager.getConnection(projectId); stmt = m_sqlManager.getPreparedStatement(conn, projectId, "C_RESOURCES_GET_FILES_WITH_PROPERTY"); stmt.setInt(1, projectId); stmt.setString(2, propertyValue); stmt.setString(3, propertyDefinition); res = stmt.executeQuery(); // store the result into the vector while (res.next()) { String result = res.getString(1); names.addElement(result); } } catch (SQLException e) { throw m_sqlManager.getCmsException(this, null, CmsException.C_SQL_ERROR, e, false); } catch (Exception exc) { throw m_sqlManager.getCmsException(this, "getFilesWithProperty(int, String, String)", CmsException.C_UNKNOWN_EXCEPTION, exc, false); } finally { // close all db-resources m_sqlManager.closeAll(conn, stmt, res); } return names; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6af0443ca1983711f2d8fa67a7da25381d4c1890/CmsVfsDriver.java/buggy/src/org/opencms/db/generic/CmsVfsDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5018, 896, 1420, 1557, 12, 474, 4406, 548, 16, 780, 4468, 1852, 16, 780, 4468, 620, 13, 15069, 4747, 503, 95, 5018, 1973, 33, 2704, 5018, 5621, 13198, 455, 33, 2011, 31, 29325, 10589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5018, 896, 1420, 1557, 12, 474, 4406, 548, 16, 780, 4468, 1852, 16, 780, 4468, 620, 13, 15069, 4747, 503, 95, 5018, 1973, 33, 2704, 5018, 5621, 13198, 455, 33, 2011, 31, 29325, 10589, ...
Quad q2 = Move.create(quad_cfg.getNewQuadID(), Move.getMoveOp(ptype), rop, op);
Quad q2 = Move.create(quad_cfg.getNewQuadID(), Move.getMoveOp(ptype), (RegisterOperand) rop.copy(), op);
private void INVOKEhelper(Invoke oper, jq_Method f, jq_Type returnType, boolean instance_call) { jq_Type[] paramTypes = f.getParamTypes(); RegisterOperand result; if (returnType == jq_Primitive.VOID) result = null; else result = getStackRegister(returnType, f.getParamWords()-1); Quad q = Invoke.create(quad_cfg.getNewQuadID(), oper, result, new MethodOperand(f), paramTypes.length); Operand op = null; for (int i = paramTypes.length; --i >= 0; ) { jq_Type ptype = paramTypes[i]; op = current_state.pop(ptype); RegisterOperand rop; if (op instanceof RegisterOperand) rop = (RegisterOperand)op; else { rop = getStackRegister(ptype); Quad q2 = Move.create(quad_cfg.getNewQuadID(), Move.getMoveOp(ptype), rop, op); appendQuad(q2); } Invoke.setParam(q, i, rop); } clearCurrentGuard(); if (instance_call && performNullCheck(op)) { if (TRACE) System.out.println("Null check triggered on "+op); return; } appendQuad(q); mergeStateWithAllExHandlers(false); if (result != null) current_state.push(result, returnType); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/7708e505966769f93c175e3aac7df68bc7102518/BytecodeToQuad.java/buggy/joeq_core/joeq/Compiler/Quad/BytecodeToQuad.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 29666, 4759, 12, 10969, 2255, 16, 20656, 67, 1305, 284, 16, 20656, 67, 559, 9424, 16, 1250, 791, 67, 1991, 13, 288, 3639, 20656, 67, 559, 8526, 21265, 273, 284, 18, 588, 786,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29666, 4759, 12, 10969, 2255, 16, 20656, 67, 1305, 284, 16, 20656, 67, 559, 9424, 16, 1250, 791, 67, 1991, 13, 288, 3639, 20656, 67, 559, 8526, 21265, 273, 284, 18, 588, 786,...
{
{
public String parseOneRecord (String[] tags, String[] data, File htmlCodeFile) { Vector tagsV = convert2Vector(tags) ; Vector dataV = convert2Vector(data) ; return this.parseOneRecord(tagsV, dataV, htmlCodeFile) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/BillBoard.java/buggy/servlets/billBoard/BillBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1109, 3335, 2115, 261, 780, 8526, 2342, 16, 514, 8526, 501, 16, 1387, 1729, 1085, 812, 13, 202, 95, 202, 202, 5018, 2342, 58, 273, 1765, 22, 5018, 12, 4156, 13, 274, 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, 225, 202, 482, 514, 1109, 3335, 2115, 261, 780, 8526, 2342, 16, 514, 8526, 501, 16, 1387, 1729, 1085, 812, 13, 202, 95, 202, 202, 5018, 2342, 58, 273, 1765, 22, 5018, 12, 4156, 13, 274, 20...
public org.quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { org.quickfix.field.UnderlyingSymbol value = new org.quickfix.field.UnderlyingSymbol();
public quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { quickfix.field.UnderlyingSymbol value = new quickfix.field.UnderlyingSymbol();
public org.quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { org.quickfix.field.UnderlyingSymbol value = new org.quickfix.field.UnderlyingSymbol(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/clean/src/java/src/quickfix/fix44/OrderMassCancelReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 10833, 765, 6291, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 460, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 10833, 765, 6291, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 460, 273, 394...
return getHtmlPage().getWebResponse().getUrl().getHost();
return getHtmlPage().getWebResponse().getUrl().getHost();
public String jsGet_domain() { return getHtmlPage().getWebResponse().getUrl().getHost(); }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/30954056260d5ebfc5c95bf3e16bfd2dae7b307b/Document.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 967, 67, 4308, 1435, 288, 377, 202, 2463, 19633, 1964, 7675, 588, 4079, 1064, 7675, 588, 1489, 7675, 588, 2594, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 967, 67, 4308, 1435, 288, 377, 202, 2463, 19633, 1964, 7675, 588, 4079, 1064, 7675, 588, 1489, 7675, 588, 2594, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -10...
public void field() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:180:17: ( modifiers ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) ) | 'static' compoundStatement | compoundStatement ) int alt19=3; switch ( input.LA(1) ) { case 80: int LA19_1 = input.LA(2); if ( LA19_1==IDENT||(LA19_1>=68 && LA19_1<=89)||LA19_1==91 ) { alt19=1; } else if ( LA19_1==LCURLY ) { alt19=2; } else { NoViableAltException nvae = new NoViableAltException("178:1: field : ( modifiers ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) ) | \'static\' compoundStatement | compoundStatement );", 19, 1, input); throw nvae; } break; case IDENT: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 91: alt19=1; break; case LCURLY: alt19=3; break; default: NoViableAltException nvae = new NoViableAltException("178:1: field : ( modifiers ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) ) | \'static\' compoundStatement | compoundStatement );", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:180:17: modifiers ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) ) { following.push(FOLLOW_modifiers_in_field548); modifiers(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:181:17: ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) ) int alt18=4; switch ( input.LA(1) ) { case IDENT: int LA18_1 = input.LA(2); if ( LA18_1==LPAREN ) { alt18=1; } else if ( LA18_1==LBRACK||(LA18_1>=IDENT && LA18_1<=DOT) ) { alt18=4; } else { NoViableAltException nvae = new NoViableAltException("181:17: ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) )", 18, 1, input); throw nvae; } break; case 89: alt18=2; break; case 91: alt18=3; break; case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: alt18=4; break; default: NoViableAltException nvae = new NoViableAltException("181:17: ( ctorHead constructorBody | classDefinition | interfaceDefinition | typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) )", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:181:25: ctorHead constructorBody { following.push(FOLLOW_ctorHead_in_field554); ctorHead(); following.pop(); following.push(FOLLOW_constructorBody_in_field556); constructorBody(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:184:25: classDefinition { following.push(FOLLOW_classDefinition_in_field568); classDefinition(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:187:25: interfaceDefinition { following.push(FOLLOW_interfaceDefinition_in_field586); interfaceDefinition(); following.pop(); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:190:25: typeSpec ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) { following.push(FOLLOW_typeSpec_in_field600); typeSpec(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:191:25: ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI ) int alt17=2; int LA17_0 = input.LA(1); if ( LA17_0==IDENT ) { int LA17_1 = input.LA(2); if ( LA17_1==LPAREN ) { alt17=1; } else if ( LA17_1==LBRACK||LA17_1==SEMI||LA17_1==COMMA||LA17_1==ASSIGN ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("191:25: ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI )", 17, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("191:25: ( IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) | variableDefinitions SEMI )", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:191:33: IDENT LPAREN parameterDeclarationList RPAREN declaratorBrackets ( throwsClause )? ( compoundStatement | SEMI ) { match(input,IDENT,FOLLOW_IDENT_in_field609); match(input,LPAREN,FOLLOW_LPAREN_in_field623); following.push(FOLLOW_parameterDeclarationList_in_field625); parameterDeclarationList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_field627); following.push(FOLLOW_declaratorBrackets_in_field634); declaratorBrackets(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:200:33: ( throwsClause )? int alt15=2; int LA15_0 = input.LA(1); if ( LA15_0==95 ) { alt15=1; } else if ( (LA15_0>=LCURLY && LA15_0<=SEMI) ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("200:33: ( throwsClause )?", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:200:34: throwsClause { following.push(FOLLOW_throwsClause_in_field652); throwsClause(); following.pop(); } break; } // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:202:33: ( compoundStatement | SEMI ) int alt16=2; int LA16_0 = input.LA(1); if ( LA16_0==LCURLY ) { alt16=1; } else if ( LA16_0==SEMI ) { alt16=2; } else { NoViableAltException nvae = new NoViableAltException("202:33: ( compoundStatement | SEMI )", 16, 0, input); throw nvae; } switch (alt16) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:202:35: compoundStatement { following.push(FOLLOW_compoundStatement_in_field663); compoundStatement(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:202:55: SEMI { match(input,SEMI,FOLLOW_SEMI_in_field667); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:203:33: variableDefinitions SEMI { following.push(FOLLOW_variableDefinitions_in_field676); variableDefinitions(); following.pop(); match(input,SEMI,FOLLOW_SEMI_in_field678); } break; } } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:210:17: 'static' compoundStatement { match(input,80,FOLLOW_80_in_field704); following.push(FOLLOW_compoundStatement_in_field706); compoundStatement(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:214:17: compoundStatement { following.push(FOLLOW_compoundStatement_in_field720); compoundStatement(); following.pop(); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1518, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1518, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 334...
shell.setText(APPL_TITLE+" - "+repository+" File: "+fname+(jobMeta.hasChanged()?" (changed)":""));
shell.setText(APPL_TITLE+" - "+repository+Messages.getString("Chef.ShellText.File")+fname+(jobMeta.hasChanged()?Messages.getString("Chef.ShellText.Changed2"):""));
public void setShellText() { String fname = jobMeta.getFilename(); if (shell.isDisposed()) return; if (rep!=null) { String repository = "["+getRepositoryName()+"]"; String transname = jobMeta.getName(); if (transname==null) transname="[no name]"; shell.setText(APPL_TITLE+" - "+repository+" "+transname+(jobMeta.hasChanged()?" (changed)":"")); } else { String repository = "[no repository]"; if (fname!=null) { shell.setText(APPL_TITLE+" - "+repository+" File: "+fname+(jobMeta.hasChanged()?" (changed)":"")); } else { shell.setText(APPL_TITLE+" - "+repository+" "+(jobMeta.hasChanged()?" (changed)":"")); } } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/466ea40abc95c39a5103fe3a9a74262a61dce808/Chef.java/buggy/src/be/ibridge/kettle/chef/Chef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 13220, 1528, 1435, 202, 95, 202, 202, 780, 5299, 273, 1719, 2781, 18, 588, 5359, 5621, 202, 202, 430, 261, 10304, 18, 291, 1669, 7423, 10756, 327, 31, 202, 202, 430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 13220, 1528, 1435, 202, 95, 202, 202, 780, 5299, 273, 1719, 2781, 18, 588, 5359, 5621, 202, 202, 430, 261, 10304, 18, 291, 1669, 7423, 10756, 327, 31, 202, 202, 430,...
throw new RuntimeException("location < 0?!");
throw new RuntimeException("location < 0?! oldLoc=" + oldLoc + " dist=" + dist);
public void move(int dist) { _currentLocation += dist; if (_currentLocation < 0) { throw new RuntimeException("location < 0?!"); } _reduced.move(dist); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/62cd56918db49abf5170cd3da7ff92f86724ef97/DefinitionsDocument.java/buggy/drjava/src/edu/rice/cs/drjava/DefinitionsDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3635, 12, 474, 2411, 13, 225, 288, 565, 389, 2972, 2735, 1011, 2411, 31, 565, 309, 261, 67, 2972, 2735, 411, 374, 13, 288, 1377, 604, 394, 3235, 2932, 3562, 411, 374, 35, 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, 918, 3635, 12, 474, 2411, 13, 225, 288, 565, 389, 2972, 2735, 1011, 2411, 31, 565, 309, 261, 67, 2972, 2735, 411, 374, 13, 288, 1377, 604, 394, 3235, 2932, 3562, 411, 374, 35, 5...
execSqlUpdate("INSERT INTO TEST(ID, TYPE, DATA, ACK, RESULT) VALUES (NULL, 1, '" + DEFAULT_MESSAGE + "', NULL, NULL)");
execSqlUpdate("INSERT INTO TEST(ID, TYPE, DATA, ACK, RESULT) VALUES (NULL, 1, '" + DEFAULT_MESSAGE + "', NULL, NULL)");
public void testDirectSql() throws Exception { //Start the server MuleManager.getInstance().start(); MuleEndpointURI muleEndpoint = new MuleEndpointURI("jdbc://?sql=SELECT * FROM TEST"); UMOEndpoint endpoint = MuleEndpoint.getOrCreateEndpointForUri(muleEndpoint, UMOEndpoint.ENDPOINT_TYPE_SENDER); UMOMessage message; message = endpoint.getConnector().getDispatcher(muleEndpoint.getAddress()).receive(muleEndpoint, 1000); assertNull(message); execSqlUpdate("INSERT INTO TEST(ID, TYPE, DATA, ACK, RESULT) VALUES (NULL, 1, '" + DEFAULT_MESSAGE + "', NULL, NULL)"); message = endpoint.getConnector().getDispatcher(muleEndpoint.getAddress()).receive(muleEndpoint, 1000); assertNotNull(message); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/JdbcNonTransactionalFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jdbc/JdbcNonTransactionalFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5368, 5101, 1435, 1216, 1185, 288, 3639, 368, 1685, 326, 1438, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 1937, 5621, 7734, 490, 725, 3293, 3098, 312, 725, 3293, 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, 1071, 918, 1842, 5368, 5101, 1435, 1216, 1185, 288, 3639, 368, 1685, 326, 1438, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 1937, 5621, 7734, 490, 725, 3293, 3098, 312, 725, 3293, 273, 394...
InboundVariable cte = new InboundVariable(this, type, value);
InboundVariable cte = new InboundVariable(this, key, type, value);
public void createInboundVariable(int callNum, String key, String type, String value) { InboundVariable cte = new InboundVariable(this, type, value); variables.put(key, cte); String paramPrefix = ConversionConstants.INBOUND_CALLNUM_PREFIX + callNum + ConversionConstants.INBOUND_CALLNUM_SUFFIX + ConversionConstants.INBOUND_KEY_PARAM; if (key.startsWith(paramPrefix)) { int i = Integer.parseInt(key.substring(paramPrefix.length())) + 1; if (i > paramCount ) { paramCount = i; } } }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/5036a4257c94dc7f3331ef721820289056906448/InboundContext.java/buggy/java/uk/ltd/getahead/dwr/InboundContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 20571, 3092, 12, 474, 745, 2578, 16, 514, 498, 16, 514, 618, 16, 514, 460, 13, 565, 288, 3639, 657, 3653, 3092, 276, 736, 273, 394, 657, 3653, 3092, 12, 2211, 16, 498,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 20571, 3092, 12, 474, 745, 2578, 16, 514, 498, 16, 514, 618, 16, 514, 460, 13, 565, 288, 3639, 657, 3653, 3092, 276, 736, 273, 394, 657, 3653, 3092, 12, 2211, 16, 498,...
throw new Error ("not implemented");
Shape s = totalLayout.getLogicalHighlightShape( start, limit ); return (float)s.getBounds2D().getWidth();
public float getAdvanceBetween (int start, int limit) throws NotImplementedException { throw new Error ("not implemented"); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/601682b9df2e31b8852d1eee182276c2bc2a879a/TextMeasurer.java/clean/java/awt/font/TextMeasurer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1431, 336, 1871, 5882, 11831, 261, 474, 787, 16, 509, 1800, 13, 565, 1216, 10051, 503, 225, 288, 565, 12383, 272, 273, 2078, 3744, 18, 588, 17955, 16205, 8500, 12, 787, 16, 1800, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1431, 336, 1871, 5882, 11831, 261, 474, 787, 16, 509, 1800, 13, 565, 1216, 10051, 503, 225, 288, 565, 12383, 272, 273, 2078, 3744, 18, 588, 17955, 16205, 8500, 12, 787, 16, 1800, ...
windowWrapper = ww;
scope = sc;
public GetURLObjectWrapper(RhinoInterpreter ri, ScriptableObject obj, WindowWrapper ww) { interpreter = ri; object = obj; windowWrapper = ww; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/afba8819b87561594e7cbedb56be4d15fbbfe279/WindowWrapper.java/buggy/sources/org/apache/batik/script/rhino/WindowWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 968, 1785, 921, 3611, 12, 54, 76, 15020, 30010, 12347, 16, 4766, 282, 22780, 921, 1081, 16, 4766, 282, 6076, 3611, 28208, 13, 288, 5411, 16048, 273, 12347, 31, 5411, 733, 273, 1081,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 968, 1785, 921, 3611, 12, 54, 76, 15020, 30010, 12347, 16, 4766, 282, 22780, 921, 1081, 16, 4766, 282, 6076, 3611, 28208, 13, 288, 5411, 16048, 273, 12347, 31, 5411, 733, 273, 1081,...
UndoableEdit lastEdit;
if (!inProgress) return false;
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); } } } // if: lastEdit return true; } else { return false; } } // addEdit()
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 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, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 13, ...
if (!hasFinally && !hasCatch)
if (trynode.getType() == TokenStream.BLOCK && !trynode.hasChildren() && !hasFinally) {
public Object createTryCatchFinally(Object tryblock, Object catchblocks, Object finallyblock, int lineno) { Node trynode = (Node)tryblock; // short circuit if (trynode.getType() == TokenStream.BLOCK && !trynode.hasChildren()) return trynode; Node pn = new Node(TokenStream.TRY, trynode, lineno); Node catchNodes = (Node)catchblocks; boolean hasCatch = catchNodes.hasChildren(); boolean hasFinally = false; Node finallyNode = null; Node finallyTarget = null; if (finallyblock != null) { finallyNode = (Node)finallyblock; hasFinally = (finallyNode.getType() != TokenStream.BLOCK || finallyNode.hasChildren()); if (hasFinally) { // make a TARGET for the finally that the tcf node knows about finallyTarget = new Node(TokenStream.TARGET); pn.putProp(Node.FINALLY_PROP, finallyTarget); // add jsr finally to the try block Node jsrFinally = new Node(TokenStream.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); } } // short circuit if (!hasFinally && !hasCatch) // bc finally might be an empty block... return trynode; Node endTarget = new Node(TokenStream.TARGET); Node GOTOToEnd = new Node(TokenStream.GOTO); GOTOToEnd.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTOToEnd); if (hasCatch) { /* * Given try { throw 3; } catch (e: e instanceof Object) { print("object"); } catch (e2) { print(e2); } rewrite as try { throw 3; } catch (x) { o = newScope(); o.e = x; with (o) { if (e instanceof Object) { print("object"); } } o2 = newScope(); o2.e2 = x; with (o2) { if (true) { print(e2); } } } */ // make a TARGET for the catch that the tcf node knows about Node catchTarget = new Node(TokenStream.TARGET); pn.putProp(Node.TARGET_PROP, catchTarget); // mark it pn.addChildToBack(catchTarget); // get the exception object and store it in a temp Node exn = createNewLocal(new Node(TokenStream.VOID)); pn.addChildToBack(new Node(TokenStream.POP, exn)); Node endCatch = new Node(TokenStream.TARGET); // add [jsr finally?] goto end to each catch block // expects catchNode children to be (cond block) pairs. Node cb = catchNodes.getFirstChild(); while (cb != null) { Node catchStmt = new Node(TokenStream.BLOCK); int catchLineNo = cb.getLineno(); Node name = cb.getFirstChild(); Node cond = name.getNext(); Node catchBlock = cond.getNext(); cb.removeChild(name); cb.removeChild(cond); cb.removeChild(catchBlock); Node newScope = createNewLocal(new Node(TokenStream.NEWSCOPE)); Node initScope = new Node(TokenStream.SETPROP, newScope, Node.newString( name.getString()), createUseLocal(exn)); catchStmt.addChildToBack(new Node(TokenStream.POP, initScope)); catchBlock.addChildToBack(new Node(TokenStream.LEAVEWITH)); Node GOTOToEndCatch = new Node(TokenStream.GOTO); GOTOToEndCatch.putProp(Node.TARGET_PROP, endCatch); catchBlock.addChildToBack(GOTOToEndCatch); Node ifStmt = (Node) createIf(cond, catchBlock, null, catchLineNo); // Try..catch produces "with" code in order to limit // the scope of the exception object. // OPT: We should be able to figure out the correct // scoping at compile-time and avoid the // runtime overhead. Node withStmt = (Node) createWith(createUseLocal(newScope), ifStmt, catchLineNo); catchStmt.addChildToBack(withStmt); pn.addChildToBack(catchStmt); // move to next cb cb = cb.getNext(); } // Generate code to rethrow if no catch clause was executed Node rethrow = new Node(TokenStream.THROW, createUseLocal(exn)); pn.addChildToBack(rethrow); pn.addChildToBack(endCatch); // add a JSR finally if needed if (hasFinally) { Node jsrFinally = new Node(TokenStream.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); Node GOTO = new Node(TokenStream.GOTO); GOTO.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTO); } } if (hasFinally) { pn.addChildToBack(finallyTarget); Node returnTemp = createNewLocal(new Node(TokenStream.VOID)); Node popAndMake = new Node(TokenStream.POP, returnTemp); pn.addChildToBack(popAndMake); pn.addChildToBack(finallyNode); Node ret = createUseLocal(returnTemp); // add the magic prop that makes it output a RET ret.putProp(Node.TARGET_PROP, Boolean.TRUE); pn.addChildToBack(ret); } pn.addChildToBack(endTarget); return pn; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/040a93626ea47a7e7c6c63f8a6adc54a9c7e0a44/IRFactory.java/clean/js/rhino/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 7833, 14842, 29987, 12, 921, 775, 2629, 16, 1033, 1044, 7996, 16, 4766, 3639, 1033, 3095, 2629, 16, 509, 7586, 13, 565, 288, 3639, 2029, 775, 2159, 273, 261, 907, 13, 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, 1033, 752, 7833, 14842, 29987, 12, 921, 775, 2629, 16, 1033, 1044, 7996, 16, 4766, 3639, 1033, 3095, 2629, 16, 509, 7586, 13, 565, 288, 3639, 2029, 775, 2159, 273, 261, 907, 13, 6...
if(log.isDebugEnabled()) {
if(log.isErrorEnabled()) {
private Node makeNode(NodeObject obj) { String UID = obj.getUID(); if (UIDToNode.get(UID) != null) return null; // don't make duplicates Node node = new Node(this, UID); UIDToNode.put(UID, node); if (!obj.isVisible()) { node.setAttribute(INVISIBLE_ATTRIBUTE, "true"); node.visible = false; } node.setAttribute(PropertyNames.UID_ATTR, UID); node.setAttribute(GrappaConstants.LABEL_ATTR, obj.getLabel()); node.setAttribute(GrappaConstants.TIP_ATTR, obj.getToolTip()); node.setAttribute(GrappaConstants.SHAPE_ATTR, obj.getShape()); // only set these if they're not the default value String sides = obj.getSides(); if (!sides.equals("0")) node.setAttribute(GrappaConstants.SIDES_ATTR, sides); String distortion = obj.getDistortion(); if (!distortion.equals("0")) node.setAttribute(GrappaConstants.DISTORTION_ATTR, distortion); String orientation = obj.getOrientation(); if (!orientation.equals("0")) node.setAttribute(GrappaConstants.ORIENTATION_ATTR, orientation); String width = obj.getWidth(); if (!width.equals("0")) node.setAttribute(GrappaConstants.WIDTH_ATTR, width); String height = obj.getHeight(); if (!height.equals("0")) node.setAttribute(GrappaConstants.HEIGHT_ATTR, height); // get a string that determines the color String colorName = obj.getColor(); // add mapping from this string to a real Color in grappa GrappaColor.addColor(colorName, properties.getClusterColor(colorName)); node.setAttribute(GrappaConstants.COLOR_ATTR, colorName); GrappaStyle gs = new GrappaStyle(GrappaConstants.NODE, "filled(true), line_color(" + colorName + ")"); node.setAttribute(GrappaConstants.STYLE_ATTR, gs); String fontStyle = obj.getFontStyle(); if (!fontStyle.equals("normal")) node.setAttribute(GrappaConstants.FONTSTYLE_ATTR, fontStyle); // set attribute for what string determines color // used to reconstitute color mapping from saved nodes node.setAttribute(COLOR_DETERMINER, colorName); // get attributes for the object PropertyTree properties = obj.getProperties(); Set names = properties.keySet(); Iterator namesIter = names.iterator(); while (namesIter.hasNext()) { String name = (String)namesIter.next(); Object o = properties.get(name); if (o instanceof String) node.setAttribute(name, (String)o); else if (o instanceof Double) node.setAttribute(name, ((Double)o).toString()); else if (o instanceof Float) node.setAttribute(name, ((Float)o).toString()); else if (o instanceof Long) node.setAttribute(name, ((Long)o).toString()); else if (o instanceof Vector) { Vector values = (Vector)o; for (int i = 0; i < values.size(); i++) node.setAttribute(name + "_" + i, (String)values.elementAt(i)); } else if (o instanceof ArrayList) { ArrayList values = (ArrayList)o; // try/catch block in case someone passes in an array list of values // that can't be cast to strings; this prints an error and ignores them try { for (int i = 0; i < values.size(); i++) node.setAttribute(name + "_" + i, (String)values.get(i)); } catch (ClassCastException e) { if(log.isDebugEnabled()) { log.error("CSMARTGraph: exception setting attribute with name: " + name + " " + e); } } } // for debugging else if(log.isDebugEnabled()) { log.warn( "CSMARTGraph: WARNING: Displaying property: " + name + " of class: " + ((o != null) ? o.getClass().getName() : "null") + " not supported"); } } // get UIDs at the incoming (tail) end of a link Vector incomingLinks = obj.getIncomingLinks(); if (incomingLinks != null) { for (int i = 0; i < incomingLinks.size(); i++) { String tailUID = (String)incomingLinks.elementAt(i); // get the node for each incoming link Node tailNode = (Node)UIDToNode.get(tailUID); // if no node exists for the tail UID if (tailNode == null) { // get or create the set of outgoing links for the tail UID Set outgoing = (Set)UIDToOutgoing.get(tailUID); if (outgoing == null) outgoing = new HashSet(); // add the current node to the set of outgoing links to create outgoing.add(node); UIDToOutgoing.put(tailUID, outgoing); } else { Edge edge = null; try { edge = new Edge(this, tailNode, node); } catch (RuntimeException e) { // we'll probably get exceptions for duplicate edges, so ignore if(log.isDebugEnabled()) { log.debug("Couldn't create edge from: " + tailNode.getName() + " " + node.getName() + " " + e); } continue; } edge.setAttribute(GrappaConstants.TIP_ATTR, (tailNode.getAttributeValue(PropertyNames.UID_ATTR)).toString() + " " + (node.getAttributeValue(PropertyNames.UID_ATTR)).toString()); } } } // handle the case where the other end of the link was created first Set outgoing = (Set)UIDToOutgoing.get(UID); if (outgoing != null) for (Iterator i = outgoing.iterator(); i.hasNext(); ) { Node headNode = (Node)i.next(); Edge edge = null; try { edge = new Edge(this, node, headNode); } catch (RuntimeException e) { // we'll probably get exceptions for duplicate edges, so ignore if(log.isDebugEnabled()) { log.debug("Couldn't create edge from: " + node.getName() + " " + headNode.getName() + " " + e); } continue; } edge.setAttribute(GrappaConstants.TIP_ATTR, (node.getAttributeValue(PropertyNames.UID_ATTR)).toString() + " " + (headNode.getAttributeValue(PropertyNames.UID_ATTR)).toString()); } // get UIDs at the outgoing (head) end of a link Vector outgoingLinks = obj.getOutgoingLinks(); if (outgoingLinks != null) { for (int i = 0; i < outgoingLinks.size(); i++) { String headUID = (String)outgoingLinks.elementAt(i); Node headNode = (Node)UIDToNode.get(headUID); if (headNode == null) { Set incoming = (Set)UIDToIncoming.get(headUID); if (incoming == null) incoming = new HashSet(); incoming.add(node); UIDToIncoming.put(headUID, incoming); } else { Edge edge = null; try { edge = new Edge(this, node, headNode); } catch (RuntimeException e) { // we'll probably get exceptions for duplicate edges, so ignore if(log.isDebugEnabled()) { log.error("Couldn't create edge from: " + node.getName() + " " + headNode.getName() + " " + e); } continue; } edge.setAttribute(GrappaConstants.TIP_ATTR, (node.getAttributeValue(PropertyNames.UID_ATTR)).toString() + " " + (headNode.getAttributeValue(PropertyNames.UID_ATTR)).toString()); } } } // handle case where the other end of the link was created first Set incoming = (Set)UIDToIncoming.get(UID); if (incoming != null) { for (Iterator i = incoming.iterator(); i.hasNext(); ) { Node tailNode = (Node)i.next(); Edge edge = null; try { edge = new Edge(this, tailNode, node); } catch (RuntimeException e) { // we'll probably get exceptions for duplicate edges, so ignore if(log.isDebugEnabled()) { log.error("Couldn't create edge from: " + tailNode.getName() + " " + node.getName() + " " + e); } continue; } edge.setAttribute(GrappaConstants.TIP_ATTR, (tailNode.getAttributeValue(PropertyNames.UID_ATTR)).toString() + " " + (node.getAttributeValue(PropertyNames.UID_ATTR)).toString()); } } // create bidirectional links Vector bidirectionalLinks = obj.getBidirectionalLinks(); if (bidirectionalLinks != null) { for (int i = 0; i < bidirectionalLinks.size(); i++) { String linkedToUID = (String)bidirectionalLinks.elementAt(i); Node linkedToNode = (Node)UIDToNode.get(linkedToUID); if (linkedToNode != null) { try { Edge edge = new Edge(this, node, linkedToNode); edge.setAttribute(GrappaConstants.DIR_ATTR, "none"); } catch (Exception e) { // we'll probably get exceptions for duplicate edges if(log.isDebugEnabled()) { log.error("Couldn't create edge from: " + node.getName() + " " + linkedToNode.getName() + " " + e); } continue; } } else { Set bidirectional = (Set)UIDToBidirectional.get(linkedToUID); if (bidirectional == null) bidirectional = new HashSet(); bidirectional.add(node); UIDToBidirectional.put(linkedToUID, bidirectional); } } } // bidirectional links are not necessarily referenced in both nodes // so handle the case where only one node has the link Set bidirectional = (Set)UIDToBidirectional.get(UID); if (bidirectional != null) { for (Iterator i = bidirectional.iterator(); i.hasNext(); ) { Node linkedToNode = (Node)i.next(); try { Edge edge = new Edge(this, node, linkedToNode); edge.setAttribute(GrappaConstants.DIR_ATTR, "none"); } catch (Exception e) { if(log.isDebugEnabled()) { log.error("Couldn't create edge from: " + node.getName() + " " + linkedToNode.getName() + " " + e); } continue; } } } return node; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/efe9a4b3362c3c4139e7255630e84e5bcb6786e1/CSMARTGraph.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/monitor/generic/CSMARTGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 2029, 1221, 907, 12, 907, 921, 1081, 13, 288, 565, 514, 10034, 273, 1081, 18, 588, 3060, 5621, 565, 309, 261, 3060, 31403, 18, 588, 12, 3060, 13, 480, 446, 13, 1377, 327, 446, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 1221, 907, 12, 907, 921, 1081, 13, 288, 565, 514, 10034, 273, 1081, 18, 588, 3060, 5621, 565, 309, 261, 3060, 31403, 18, 588, 12, 3060, 13, 480, 446, 13, 1377, 327, 446, 3...
IProxy(int type) {
public IProxy(int type) {
IProxy(int type) { this.type = type; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/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 WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException {
public WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException {
public WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException { final URL url = webRequestSettings.getURL(); final FormEncodingType encType = webRequestSettings.getEncodingType(); final SubmitMethod submitMethod = webRequestSettings.getSubmitMethod(); final List parameters = webRequestSettings.getRequestParameters(); final Map requestHeaders = webRequestSettings.getAdditionalHeaders(); final HttpClient httpClient = getHttpClientFor( url ); try { long startTime, endTime; HttpMethod httpMethod = makeHttpMethod( url, encType, submitMethod, parameters, requestHeaders ); startTime = System.currentTimeMillis(); int responseCode = httpClient.executeMethod( httpMethod ); endTime = System.currentTimeMillis(); return makeWebResponse( responseCode, httpMethod, url, endTime-startTime ); } catch( final HttpException e ) { // KLUDGE: hitting www.yahoo.com will cause an exception to be thrown while // www.yahoo.com/ (note the trailing slash) will not. If an exception is // caught here then check to see if this is the situation. If so, then retry // it with a trailing slash. The bug manifests itself with httpClient // complaining about not being able to find a line with HTTP/ on it. if( url.getPath().length() == 0 ) { final StringBuffer buffer = new StringBuffer(); buffer.append(url.getProtocol()); buffer.append("://"); buffer.append(url.getHost()); buffer.append("/"); if( url.getQuery() != null ) { buffer.append(url.getQuery()); } //TODO: There might be a bug here since the original encoding type is lost. final WebRequestSettings newRequest = new WebRequestSettings(new URL(buffer.toString())); newRequest.setSubmitMethod(submitMethod); newRequest.setRequestParameters(parameters); newRequest.setAdditionalHeaders(requestHeaders); return getResponse(newRequest); } else { e.printStackTrace(); throw new RuntimeException( "HTTP Error: " + e.getMessage() ); } } }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/ed9c63a3a4663415b5dfc6b8b97c4878291fb4a9/HttpWebConnection.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2999, 1064, 6476, 12, 6385, 2999, 691, 2628, 3311, 691, 2628, 13, 3639, 1216, 1860, 288, 7734, 727, 1976, 880, 273, 3311, 691, 2628, 18, 588, 1785, 5621, 3639, 727, 2748, 4705, 559,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2999, 1064, 6476, 12, 6385, 2999, 691, 2628, 3311, 691, 2628, 13, 3639, 1216, 1860, 288, 7734, 727, 1976, 880, 273, 3311, 691, 2628, 18, 588, 1785, 5621, 3639, 727, 2748, 4705, 559,...
parentNode = findNode(category.getParent());
DefaultMutableTreeNode parentNode; if (category.isTopLevel()) { parentNode = rootNode; } else { parentNode = findNode(category.getParent()); } final DefaultMutableTreeNode node = createNode(category); getCastedModel().insertNodeInto(node, parentNode, parentNode.getChildCount());
public void addCategory(Category category) { DefaultMutableTreeNode parentNode; if (category.isTopLevel()) { parentNode = (DefaultMutableTreeNode)getModel().getRoot(); } else { parentNode = findNode(category.getParent()); } final DefaultMutableTreeNode node = createNode(category); getCastedModel().insertNodeInto(node, parentNode, parentNode.getChildCount()); }
13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/81bc60042eec41ee41d14ad7d376c41eee26668f/CategoryTree.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/swing/category/CategoryTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 4457, 12, 4457, 3150, 13, 565, 288, 3639, 2989, 19536, 12513, 7234, 31, 3639, 309, 261, 4743, 18, 291, 27046, 10756, 3639, 288, 5411, 7234, 273, 261, 1868, 19536, 12513, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4457, 12, 4457, 3150, 13, 565, 288, 3639, 2989, 19536, 12513, 7234, 31, 3639, 309, 261, 4743, 18, 291, 27046, 10756, 3639, 288, 5411, 7234, 273, 261, 1868, 19536, 12513, 1...
mCurrent.mDocRequest = (Element) request.elementIterator().next();
mCurrent.mDocRequest = request.elementIterator().next();
private void doRequest(Element request) throws SoapFaultException, IOException {// mCurrent.mDocRequest = ((Element) request.elementIterator().next()).createCopy(); mCurrent.mDocRequest = (Element) request.elementIterator().next(); mCurrent.mDocRequest.detach(); if (mAuthToken == null) mCurrent.mSoapRequest = mSoapProto.soapEnvelope(mCurrent.mDocRequest); else { mCurrent.mSoapRequest = mSoapProto.soapEnvelope(mCurrent.mDocRequest, ZimbraSoapContext.toCtxt(mSoapProto, mAuthToken, mSessionId)); if (mResponseProto == SoapProtocol.SoapJS) { Element context = mCurrent.mSoapRequest.getOptionalElement(mSoapProto.getHeaderQName()).getOptionalElement(ZimbraSoapContext.CONTEXT); if (context != null) context.addElement(ZimbraSoapContext.E_FORMAT).addAttribute(ZimbraSoapContext.A_TYPE, ZimbraSoapContext.TYPE_JAVASCRIPT); }// try {// Element ctxt = mCurrent.mSoapRequest.getElement(SoapProtocol.Soap12.mHeaderQName).getElement(ZimbraContext.CONTEXT);// ctxt.addElement(ZimbraContext.E_CHANGE)// .addAttribute(ZimbraContext.A_TYPE, ZimbraContext.CHANGE_CREATED)// .addAttribute(ZimbraContext.A_CHANGE_ID, 190);// } catch (ServiceException e) { } } long start = System.currentTimeMillis(); mCurrent.mSoapResponse = mTransport.invokeRaw(mCurrent.mSoapRequest); long finish = System.currentTimeMillis(); mCurrent.mTime = finish - start; mCurrent.mDocResponse = mResponseProto.getBodyElement(mCurrent.mSoapResponse); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/258733b5913eba2bc7eab13365a2d927478f9896/SoapTestHarness.java/clean/ZimbraServer/src/java/com/zimbra/soap/SoapTestHarness.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 25801, 12, 1046, 590, 13, 1216, 21789, 7083, 503, 16, 1860, 288, 759, 3639, 28326, 18, 81, 1759, 691, 273, 14015, 1046, 13, 590, 18, 2956, 3198, 7675, 4285, 1435, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25801, 12, 1046, 590, 13, 1216, 21789, 7083, 503, 16, 1860, 288, 759, 3639, 28326, 18, 81, 1759, 691, 273, 14015, 1046, 13, 590, 18, 2956, 3198, 7675, 4285, 1435, 2934, ...
aload(firstLocal);
aload((short)firstLocal);
public void emitDirectConstructor(OptFunctionNode fnNode) {/* we generate .. Scriptable directConstruct(<directCallArgs>) { Scriptable newInstance = new NativeObject(); newInstance.setPrototype(getClassPrototype()); newInstance.setParentScope(getParentScope()); Object val = callDirect(<directCallArgs>); // except that the incoming thisArg is discarded // and replaced by newInstance // if (val != null && val != Undefined.instance && val instanceof Scriptable) { return (Scriptable) val; } return newInstance; }*/ short flags = (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL); classFile.startMethod("constructDirect", fnNode.getDirectCallParameterSignature() + "Ljava/lang/Object;", flags); int argCount = fnNode.getVariableTable().getParameterCount(); short firstLocal = (short)((4 + argCount * 3) + 1); addByteCode(ByteCode.NEW, "org/mozilla/javascript/NativeObject"); addByteCode(ByteCode.DUP); classFile.add(ByteCode.INVOKESPECIAL, "org/mozilla/javascript/NativeObject", "<init>", "()", "V"); astore(firstLocal); aload(firstLocal); aload((short)0); addVirtualInvoke("org/mozilla/javascript/NativeFunction", "getClassPrototype", "()", "Lorg/mozilla/javascript/Scriptable;"); classFile.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "setPrototype", "(Lorg/mozilla/javascript/Scriptable;)", "V"); aload(firstLocal); aload((short)0); addVirtualInvoke("org/mozilla/javascript/NativeFunction", "getParentScope", "()", "Lorg/mozilla/javascript/Scriptable;"); classFile.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "setPrototype", "(Lorg/mozilla/javascript/Scriptable;)", "V"); aload((short)0); aload((short)1); aload((short)2); aload(firstLocal); for (int i = 0; i < argCount; i++) { aload((short)(4 + (i * 3))); dload((short)(5 + (i * 3))); } aload((short)(4 + argCount * 3)); addVirtualInvoke(this.name, "callDirect", fnNode.getDirectCallParameterSignature(), "Ljava/lang/Object;"); astore((short)(firstLocal + 1)); int exitLabel = acquireLabel(); aload((short)(firstLocal + 1)); addByteCode(ByteCode.IFNULL, exitLabel); aload((short)(firstLocal + 1)); pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, exitLabel); aload((short)(firstLocal + 1)); addByteCode(ByteCode.INSTANCEOF, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.IFEQ, exitLabel); aload((short)(firstLocal + 1)); addByteCode(ByteCode.CHECKCAST, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.ARETURN); markLabel(exitLabel); aload(firstLocal); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)(firstLocal + 2), null); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/2d655ad41f1aefe84deff2cd184c3f5898cb2050/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3626, 5368, 6293, 12, 6179, 2083, 907, 2295, 907, 13, 565, 288, 20308, 565, 732, 2103, 6116, 3639, 22780, 2657, 7249, 12, 32, 7205, 1477, 2615, 23429, 288, 5411, 22780, 5984, 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, 3626, 5368, 6293, 12, 6179, 2083, 907, 2295, 907, 13, 565, 288, 20308, 565, 732, 2103, 6116, 3639, 22780, 2657, 7249, 12, 32, 7205, 1477, 2615, 23429, 288, 5411, 22780, 5984, 2...
assertEquals("Joe", ((Person) result.getPayload()).getFirstName()); assertEquals("Blow", ((Person) result.getPayload()).getLastName());
assertEquals("Betty", ((Person) result.getPayload()).getFirstName()); assertEquals("Rubble", ((Person) result.getPayload()).getLastName());
public void testDispatchAsyncComplex() throws Throwable { UMOConnector c = ConnectorFactory.getConnectorByProtocol(getProtocol()); assertNotNull(c); UMOMessageDispatcher dispatcher = c.getDispatcher("ANY"); UMOEndpoint endpoint = new MuleEndpoint("test", new MuleEndpointURI(getDispatchAsyncComplexEndpoint1()), c, null, UMOEndpoint.ENDPOINT_TYPE_SENDER, 0, null); UMOEvent event = getTestEvent(new Person("Joe", "Blow"), endpoint); dispatcher.dispatch(event); Thread.sleep(2000); //Note with Axis 1.2.1 we get an error if we reuse the same dispatcher with a different operation //thus we dispose it here. Mule itself caches dispachers on the full uri so this doesn;t happen dispatcher.dispose(); dispatcher = c.getDispatcher("ANY"); // lets get our newly added person UMOMessage result = dispatcher.receive(new MuleEndpointURI(getDispatchAsyncComplexEndpoint2()), 0); assertNotNull(result); assertTrue(result.getPayload() instanceof Person); assertEquals("Joe", ((Person) result.getPayload()).getFirstName()); assertEquals("Blow", ((Person) result.getPayload()).getLastName()); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/b656e0806058d87c5db05880209b51a8d57416d0/AbstractSoapFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/soap/AbstractSoapFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5325, 2771, 12795, 1435, 1216, 4206, 565, 288, 3639, 587, 5980, 7487, 276, 273, 15779, 1733, 18, 588, 7487, 858, 5752, 12, 588, 5752, 10663, 3639, 25395, 12, 71, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5325, 2771, 12795, 1435, 1216, 4206, 565, 288, 3639, 587, 5980, 7487, 276, 273, 15779, 1733, 18, 588, 7487, 858, 5752, 12, 588, 5752, 10663, 3639, 25395, 12, 71, 1769, 36...
reader = rs.getCharacterStream(1);
reader = rs.getCharacterStream(2);
static private void printTestDataInARowViaReader(ResultSet rs) throws SQLException, IOException{ Reader reader = null; try{ reader = rs.getCharacterStream(1); for(int c = reader.read(); c > -1; c = reader.read()){ System.out.print(getCharacterCodeString((char) c)); } System.out.println(); }finally{ if(reader != null){ reader.close(); } } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/31f29a4bb5e9e1901e11555251e1fa68f13a5c1e/resultsetStream.java/buggy/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/resultsetStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 3845, 3238, 918, 1172, 4709, 751, 382, 985, 543, 21246, 2514, 12, 13198, 3597, 13, 1216, 6483, 16, 17322, 1082, 1377, 1860, 95, 1082, 202, 2514, 2949, 273, 446, 31, 25083, 202, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 3238, 918, 1172, 4709, 751, 382, 985, 543, 21246, 2514, 12, 13198, 3597, 13, 1216, 6483, 16, 17322, 1082, 1377, 1860, 95, 1082, 202, 2514, 2949, 273, 446, 31, 25083, 202, 698,...
if (itsInFunctionFlag)
if (itsInFunctionFlag && !itsData.itsNeedsActivation)
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : updateLineNumber(node); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : updateLineNumber(node); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : updateLineNumber(node); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { updateLineNumber(node); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { int childCount = 0; while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; if (itsInFunctionFlag) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { Number num = (Number)node.getDatum(); if (num.doubleValue() == 0.0) iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); else if (num.doubleValue() == 1.0) iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.POP : case TokenStream.POPV : updateLineNumber(node); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ while (child != null) { if (lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : updateLineNumber(node); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : updateLineNumber(node); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/4b314af77ec0ac77a37ee40e389d638c61e9d064/Interpreter.java/clean/js/rhino/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3...
boolean retval = !jj_3_15(); jj_save(14, xla); return retval;
try { return !jj_3_15(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(14, xla); }
final private boolean jj_2_15(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_15(); jj_save(14, xla); return retval; }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/da645dc04442445e7ffc49c76d475409ee62c51f/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 22, 67, 3600, 12, 474, 619, 11821, 13, 288, 565, 10684, 67, 11821, 273, 619, 11821, 31, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 1147, 31, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 1250, 10684, 67, 22, 67, 3600, 12, 474, 619, 11821, 13, 288, 565, 10684, 67, 11821, 273, 619, 11821, 31, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 1147, 31, 565, ...
appendMenuToGroup( menu, group_name, menuManager );
menuManager.appendToGroup( group_name, menu );
private void createStyleMenu( IMenuManager menuManager, String group_name ) { MenuManager menu = new MenuManager( STYLE_MENU_ITEM_TEXT ); MenuManager subMenu = new MenuManager( APPLY_STYLE_MENU_ITEM_TEXT ); SharedStyleHandle oldStyle = getStyleHandle( ); ApplyStyleAction resetAction = new ApplyStyleAction( null ); resetAction.setSelection( getSelection( ) ); if ( oldStyle == null ) { resetAction.setChecked( true ); } subMenu.add( resetAction ); subMenu.add( new Separator( ) ); Iterator iter = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getStyles( ) .iterator( ); while ( iter.hasNext( ) ) { SharedStyleHandle handle = (SharedStyleHandle) iter.next( ); ApplyStyleAction action = new ApplyStyleAction( handle ); action.setSelection( getSelection( ) ); if ( oldStyle == handle ) { action.setChecked( true ); } else { action.setChecked( false ); } subMenu.add( action ); } menu.add( subMenu ); menu.add( new Separator( ) ); menu.add( getAction( AddStyleRuleAction.ID ) ); appendMenuToGroup( menu, group_name, menuManager ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/25d8345240ca0a7d646058fa741ec1478be90f03/SchematicContextMenuProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674...
List<InsuranceTransaction> insuranceTransactions = new ArrayList<InsuranceTransaction>();
List<InsuranceTransaction> insuranceTransactions = new ArrayList<InsuranceTransaction>();
public List<InsuranceTransaction> run(ExecutionYear executionYear, YearMonthDay beginDate, YearMonthDay endDate) { List<InsuranceTransaction> insuranceTransactions = new ArrayList<InsuranceTransaction>(); List<Transaction> transactions = rootDomainObject.getTransactions(); for (Transaction transaction : transactions) { if (transaction instanceof InsuranceTransaction) { InsuranceTransaction insuranceTransaction = (InsuranceTransaction) transaction; if (executionYear != null && !insuranceTransaction.getExecutionYear().equals(executionYear)) { continue; } if (beginDate != null && insuranceTransaction.getTransactionDateDateTime().isBefore( beginDate.toDateTimeAtMidnight())) { continue; } if (endDate != null && insuranceTransaction.getTransactionDateDateTime().isAfter( endDate.toDateTimeAtMidnight())) { continue; } insuranceTransactions.add(insuranceTransaction); } } return insuranceTransactions; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/971851f76d3f57424b4064201cc144b3344b7562/ListPayedInsurancesByDates.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/masterDegree/administrativeOffice/gratuity/ListPayedInsurancesByDates.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 5048, 295, 1359, 3342, 34, 1086, 12, 3210, 5593, 4588, 5593, 16, 16666, 5445, 4245, 2376, 1626, 16, 5411, 16666, 5445, 4245, 13202, 13, 288, 3639, 987, 32, 5048, 295, 1359,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 32, 5048, 295, 1359, 3342, 34, 1086, 12, 3210, 5593, 4588, 5593, 16, 16666, 5445, 4245, 2376, 1626, 16, 5411, 16666, 5445, 4245, 13202, 13, 288, 3639, 987, 32, 5048, 295, 1359,...
+ "'snmpinterface' because 2 rows are not "
+ "'snmpinterface' because 4 rows are not "
public void testSnmpInterfaceNonUniqueKeys() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); addTableFromSQL("distpoller"); addTableFromSQL("node"); addTableFromSQL("snmpinterface"); executeSQL("drop index snmpinterface_nodeid_ifindex_idx"); executeSQL("INSERT INTO node ( nodeId, nodeCreateTime ) " + "VALUES ( 1, now() )"); /* executeSQL("INSERT INTO snmpInterface ( nodeID, ipAddr, snmpIfIndex ) " + "VALUES ( 1, '0.0.0.0', 1 )"); executeSQL("INSERT INTO snmpInterface ( nodeID, ipAddr, snmpIfIndex ) " + "VALUES ( 1, '0.0.0.0', 1 )"); */ executeSQL("INSERT INTO snmpInterface ( nodeID, ipAddr, snmpIfIndex ) " + "VALUES ( 1, '0.0.0.1', 1 )"); executeSQL("INSERT INTO snmpInterface ( nodeID, ipAddr, snmpIfIndex ) " + "VALUES ( 1, '0.0.0.2', 1 )"); ThrowableAnticipator ta = new ThrowableAnticipator(); ta.anticipate(new Exception("Unique index " + "'snmpinterface_nodeid_ifindex_idx' " + "cannot be added to table " + "'snmpinterface' because 2 rows are not " + "unique. See the install guide for " + "details on how to correct this " + "problem. You can use the following SQL " + "to see which rows are not unique:\n" + "SELECT DISTINCT a.* FROM snmpinterface " + "a, snmpinterface b WHERE a.nodeID = " + "b.nodeID AND a.snmpIfIndex = " + "b.snmpIfIndex " + "AND a.ipAddr != b.ipAddr")); try { m_installer.checkIndexUniqueness(); } catch (Throwable t) { ta.throwableReceived(t); } ta.verifyAnticipated(); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/5ba40fa26b88ca69b3cf7dfeffd567d73b0c67a4/InstallerDBTest.java/clean/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10461, 1291, 1358, 3989, 6303, 2396, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10461, 1291, 1358, 3989, 6303, 2396, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, ...
calculateBuiltIns(defaultTarget, defaultConfig);
addEntries(info.getManagedBuildValues()); addEntries(info.getManagedBuildBuiltIns());
public IPathEntry[] getPathEntries() { info = (ManagedBuildInfo) ManagedBuildManager.getBuildInfo(project); if (info == null) { ManagedBuildCPathEntryContainer.outputError(project.getName(), "Build information is null"); //$NON-NLS-1$ return (IPathEntry[])entries.toArray(new IPathEntry[entries.size()]); } IConfiguration defaultConfig = info.getDefaultConfiguration(); if (defaultConfig == null) { // The build information has not been loaded yet ManagedBuildCPathEntryContainer.outputError(project.getName(), "Build information has not been loaded yet"); //$NON-NLS-1$ return (IPathEntry[])entries.toArray(new IPathEntry[entries.size()]); } // get the associated scanner config discovery profile id String scdProfileId = ManagedBuildManager.getScannerInfoProfileId(defaultConfig); if (scdProfileId == null) { // scanner config profile not defined ManagedBuildCPathEntryContainer.outputError(project.getName(), "Scanner config discovery profile not specified for the configuration"); //$NON-NLS-1$ return (IPathEntry[])entries.toArray(new IPathEntry[entries.size()]); } // See if we can load a dynamic resolver SCProfileInstance profileInstance = ScannerConfigProfileManager.getInstance(). getSCProfileInstance(project, scdProfileId); IScannerInfoCollector collector = profileInstance.createScannerInfoCollector(); synchronized(this) { if (collector instanceof IManagedScannerInfoCollector) { IManagedScannerInfoCollector mCollector = (IManagedScannerInfoCollector) collector; mCollector.setProject(project); ManagedBuildCPathEntryContainer.outputTrace(project.getName(), "Path entries collected dynamically"); //$NON-NLS-1$ calculateEntriesDynamically((IProject)info.getOwner(), profileInstance, collector); addIncludePaths(mCollector.getIncludePaths()); addDefinedSymbols(mCollector.getDefinedSymbols()); } else { // If none supplied, use the built-ins if (defaultConfig != null) { calculateBuiltIns(defaultTarget, defaultConfig); ManagedBuildCPathEntryContainer.outputTrace(project.getName(), "Path entries set using built-in definitions from " + defaultConfig.getName()); //$NON-NLS-1$ } else { ManagedBuildCPathEntryContainer.outputError(project.getName(), "Configuration is null"); //$NON-NLS-1$ return (IPathEntry[])entries.toArray(new IPathEntry[entries.size()]); } } return (IPathEntry[])entries.toArray(new IPathEntry[entries.size()]); } // end synchronized }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8c3f6a184abe26f2c4db222e7995fa796740a86f/ManagedBuildCPathEntryContainer.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 743, 1622, 8526, 4339, 5400, 1435, 288, 202, 202, 1376, 273, 261, 10055, 3116, 966, 13, 10024, 3116, 1318, 18, 588, 3116, 966, 12, 4406, 1769, 202, 202, 430, 261, 1376, 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, 467, 743, 1622, 8526, 4339, 5400, 1435, 288, 202, 202, 1376, 273, 261, 10055, 3116, 966, 13, 10024, 3116, 1318, 18, 588, 3116, 966, 12, 4406, 1769, 202, 202, 430, 261, 1376, 4...
if (mappingTransMeta!=null)
try
private void getOutput() { // Get the fields from the mapping... if (mappingTransMeta!=null) { StepMeta outputStepMeta = mappingTransMeta.getMappingOutputStep(); if (outputStepMeta!=null) { MappingOutputMeta mappingOutputMeta = (MappingOutputMeta) outputStepMeta.getStepMetaInterface(); System.out.println(Messages.getString("MappingDialog.Log.GettingInputFields")+mappingOutputMeta.getFieldName().length+")"); //$NON-NLS-1$ //$NON-NLS-2$ for (int i=0;i<mappingOutputMeta.getFieldName().length;i++) { if (mappingOutputMeta.getFieldAdded()[i]) // We can only map added fields! { TableItem item = new TableItem(wOutputFields.table, SWT.NONE); item.setText(1, mappingOutputMeta.getFieldName()[i]); item.setText(2, mappingOutputMeta.getFieldName()[i]); } } wOutputFields.removeEmptyRows(); wOutputFields.setRowNums(); wOutputFields.optWidth(true); } else { MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage(Messages.getString("MappingDialog.MappingOutputStepNeeded.DialogMessage")); //$NON-NLS-1$ mb.setText(Messages.getString("MappingDialog.MappingOutputStepNeeded.DialogTitle")); //$NON-NLS-1$ mb.open(); } } else { MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage(Messages.getString("MappingDialog.NoMappingSpecified2.DialogMessage")); //$NON-NLS-1$ mb.setText(Messages.getString("MappingDialog.NoMappingSpecified2.DialogTitle")); //$NON-NLS-1$ mb.open(); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/ce91770ae53c121568343f731f23c5ecca0f5bf3/MappingDialog.java/buggy/kettle/src/be/ibridge/kettle/trans/step/mapping/MappingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 11062, 1435, 565, 288, 3639, 368, 968, 326, 1466, 628, 326, 2874, 2777, 4202, 775, 3639, 288, 5411, 8693, 2781, 876, 4160, 2781, 225, 273, 2874, 1429, 2781, 18, 588, 3233, 1447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11062, 1435, 565, 288, 3639, 368, 968, 326, 1466, 628, 326, 2874, 2777, 4202, 775, 3639, 288, 5411, 8693, 2781, 876, 4160, 2781, 225, 273, 2874, 1429, 2781, 18, 588, 3233, 1447...
public void perform(ComponentContext context, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException { if(debug) System.out.println("Enter action UserMenuAction");
public void perform( ComponentContext context, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException {
public void perform(ComponentContext context, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException { if(debug) System.out.println("Enter action UserMenuAction"); // Load user settings from user context MenuSettings settings = getUserSettings( request, context); // Set parameters for rendering page context.putAttribute( USER_ITEMS_ATTRIBUTE, settings.getItems() ); if(debug) { System.out.println( "settings=" + settings ); System.out.println("Exit action UserMenuAction"); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/92cab7ce5e83a95cf76480e16b7c6695d1f1716b/UserMenuAction.java/clean/src/tiles-documentation/org/apache/struts/webapp/tiles/portal/UserMenuAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 3073, 12, 1841, 1042, 819, 16, 15604, 9984, 590, 16, 12446, 766, 16, 15604, 22717, 20474, 13, 3639, 1216, 16517, 16, 1860, 565, 288, 565, 309, 12, 4148, 13, 1377, 2332, 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, 565, 1071, 918, 3073, 12, 1841, 1042, 819, 16, 15604, 9984, 590, 16, 12446, 766, 16, 15604, 22717, 20474, 13, 3639, 1216, 16517, 16, 1860, 565, 288, 565, 309, 12, 4148, 13, 1377, 2332, 18, 6...
pointer += 2; width = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; height = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 4 + 2; pixelFormat = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 6; int validBPP = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer = 0; bitsPerSample = validBPP; if ((width > imageWidth) && (imageWidth > 0)) { width = imageWidth; height = imageHeight; bitsPerSample = bytesPerPixel * 8;
for (int i=0; i<tmp.length; i+=3) { if (i + 2 < tmp.length) { a[i] = tmp[i + 2]; a[i + 1] = tmp[i + 1]; a[i + 2] = tmp[i]; }
public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } if (needLegacy) return legacy.openBytes(id, no); // read image header data try { byte[] imageHead = (byte[]) headerData.get(new Integer(no)); if (imageHead != null) { int pointer = 14; int numBytes = DataTools.bytesToInt(imageHead, pointer, 2, true); pointer += 2 + numBytes; pointer += 2; width = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; height = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 4 + 2; pixelFormat = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; pointer += 6; // count field is always 0 int validBPP = DataTools.bytesToInt(imageHead, pointer, 4, true); pointer += 4 + 2; // read image bytes and convert to floats pointer = 0; bitsPerSample = validBPP; if ((width > imageWidth) && (imageWidth > 0)) { width = imageWidth; height = imageHeight; bitsPerSample = bytesPerPixel * 8; } } else { width = imageWidth; height = imageHeight; bitsPerSample = bytesPerPixel * 8; } byte[] px = (byte[]) pixelData.get(new Integer(no)); byte[] tempPx = new byte[px.length]; if (bitsPerSample > 64) { bitsPerSample = 8; } int bpp = bitsPerSample / 8; // chop any extra bytes off of the pixel array if (px.length > (width * height * bpp)) { int check = 0; int chop = 0; while (check != imageWidth && chop < 4000) { check = DataTools.bytesToInt(px, chop, 4, true); chop++; } chop += 23; if (bpp == 2 && (chop % 2 != 0)) chop++; if (check != imageWidth) chop = 0; if (chop > 0) { byte[] tmp = new byte[px.length - chop]; System.arraycopy(px, px.length - tmp.length, tmp, 0, tmp.length); px = tmp; } } if (bpp == 3) { // reverse the channels int off = 0; int length = width * 3; for (int i=0; i<height; i++) { for (int j=0; j<width; j++) { tempPx[off + j*3] = px[off + j*3 + 2]; tempPx[off + j*3 + 1] = px[off + j*3 + 1]; tempPx[off + j*3 + 2] = px[off + j*3]; } off += length; } } else if (bpp != 6) tempPx = px; else { int mul = (int) (0.32 * imageWidth * bpp); for (int i=0; i<imageHeight; i++) { System.arraycopy(px, i*width*bpp, tempPx, (i+1)*width*bpp - mul, mul); System.arraycopy(px, i*width*bpp + mul, tempPx, i*width*bpp, width*bpp - mul); } px = tempPx; tempPx = new byte[px.length]; // reverse the channels int off = 0; int length = width * bpp; for (int i=0; i<height; i++) { for (int j=0; j<width; j++) { tempPx[off + j*6] = px[off + j*6 + 4]; tempPx[off + j*6 + 1] = px[off + j*6 + 5]; tempPx[off + j*6 + 2] = px[off + j*6 + 2]; tempPx[off + j*6 + 3] = px[off + j*6 + 3]; tempPx[off + j*6 + 4] = px[off + j*6]; tempPx[off + j*6 + 5] = px[off + j*6 + 1]; } off += length; } } // reverse row order if ((bitsPerSample / 8) % 3 != 0 && (bitsPerSample != 8)) { px = new byte[tempPx.length]; int off = (height - 1) * width * bpp; int newOff = 0; int length = width * bpp; for (int i=0; i<height; i++) { System.arraycopy(tempPx, off, px, newOff, length); off -= length; newOff += length; } tempPx = px; } return tempPx; } catch (Exception e) { needLegacy = true; return legacy.openBytes(id, no); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/05c616aac453ef88a5b085f1c7bb89e0fc08f28b/ZeissZVIReader.java/buggy/loci/formats/in/ZeissZVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 1696, 2160, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 1696, 2160, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, ...
if (showHideToolbar) { showToolbar = new ToolItem(toolbar, SWT.PUSH); showToolbar.addSelectionListener(selectionListener); showToolbar.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_HIDE_TOOLBAR_THIN)); }
setState(IStackPresentationSite.STATE_RESTORED);
public StandardSystemToolbar(Composite parent, boolean showPaneMenu, boolean showHideToolbar, boolean showMinimize, boolean showMaximize, boolean enableClose) { control = new Composite(parent, SWT.NONE); control.setLayout(new EnhancedFillLayout()); toolbar = new ToolBar(control, SWT.FLAT); if (showPaneMenu) { paneMenu = new ToolItem(toolbar, SWT.PUSH); paneMenu.addSelectionListener(selectionListener); paneMenu.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU_THIN)); } if (showHideToolbar) { showToolbar = new ToolItem(toolbar, SWT.PUSH); showToolbar.addSelectionListener(selectionListener); showToolbar.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_HIDE_TOOLBAR_THIN)); } if (showMinimize) { min = new ToolItem(toolbar, SWT.PUSH); min.addSelectionListener(selectionListener); min.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_MIN_VIEW_THIN)); } if (showMaximize) { max = new ToolItem(toolbar, SWT.PUSH); max.addSelectionListener(selectionListener); max.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_MAX_VIEW_THIN)); } if (enableClose) { close = new ToolItem(toolbar, SWT.PUSH); close.addSelectionListener(selectionListener); close.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_CLOSE_VIEW_THIN)); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3f94593c2848dae8f82ac51ad8d585bd89404143/StandardSystemToolbar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/StandardSystemToolbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8263, 3163, 17907, 12, 9400, 982, 16, 1250, 2405, 8485, 4599, 16, 2398, 1250, 2405, 15690, 17907, 16, 1250, 2405, 2930, 10153, 16, 1250, 2405, 2747, 10153, 16, 1250, 4237, 4605, 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, 8263, 3163, 17907, 12, 9400, 982, 16, 1250, 2405, 8485, 4599, 16, 2398, 1250, 2405, 15690, 17907, 16, 1250, 2405, 2930, 10153, 16, 1250, 2405, 2747, 10153, 16, 1250, 4237, 4605, 13, ...
IRCHandler.addIRCHandler("QUIT", NickHandler.class);
IRCHandler.addIRCHandler("QUIT", QuitHandler.class);
public static void install() throws SecurityException, NoSuchMethodException { IRCHandler.addIRCHandler("QUIT", NickHandler.class); }
12111 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12111/d98553878223402af99e19f2ab1337fe0c0808a3/QuitHandler.java/buggy/disinfobot/org/wikimedia/infobot/irchandlers/QuitHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3799, 1435, 1216, 17780, 16, 15959, 288, 202, 202, 30240, 1503, 18, 1289, 30240, 1503, 2932, 3500, 1285, 3113, 423, 1200, 1503, 18, 1106, 1769, 202, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3799, 1435, 1216, 17780, 16, 15959, 288, 202, 202, 30240, 1503, 18, 1289, 30240, 1503, 2932, 3500, 1285, 3113, 423, 1200, 1503, 18, 1106, 1769, 202, 97, 2, -100, -100,...
match(input,54,FOLLOW_54_in_dotted_name3377); match(input,55,FOLLOW_55_in_dotted_name3379);
match(input,54,FOLLOW_54_in_dotted_name3386); match(input,55,FOLLOW_55_in_dotted_name3388);
public String dotted_name() throws RecognitionException { String name; Token id=null; name = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:17: (id= ID ( '.' id= ID )* ( '[' ']' )* ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:17: id= ID ( '.' id= ID )* ( '[' ']' )* { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_dotted_name3358); name=id.getText(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:46: ( '.' id= ID )* loop72: do { int alt72=2; int LA72_0 = input.LA(1); if ( LA72_0==18 ) { alt72=1; } switch (alt72) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:48: '.' id= ID { match(input,18,FOLLOW_18_in_dotted_name3364); id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_dotted_name3368); name = name + "." + id.getText(); } break; default : break loop72; } } while (true); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:99: ( '[' ']' )* loop73: do { int alt73=2; int LA73_0 = input.LA(1); if ( LA73_0==54 ) { alt73=1; } switch (alt73) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1196:101: '[' ']' { match(input,54,FOLLOW_54_in_dotted_name3377); match(input,55,FOLLOW_55_in_dotted_name3379); name = name + "[]"; } break; default : break loop73; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return name; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/fa672eb31b1cdffd706056ff993b250f46bb5656/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 20965, 67, 529, 1435, 1216, 9539, 288, 6647, 514, 508, 31, 3639, 3155, 612, 33, 2011, 31, 540, 202, 202, 529, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20965, 67, 529, 1435, 1216, 9539, 288, 6647, 514, 508, 31, 3639, 3155, 612, 33, 2011, 31, 540, 202, 202, 529, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, ...
parse(buffer.toString(), ParserLanguage.CPP, false, false);
parse(buffer.toString(), ParserLanguage.CPP, false, 0);
public void test12_8s3f() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void f (int i, int j);\n"); //$NON-NLS-1$ buffer.append("void f (int i, int j = 99); // OK: redeclaration of f(int, int)\n"); //$NON-NLS-1$ buffer.append("void f (int i = 88, int j); // OK: redeclaration of f(int, int)\n"); //$NON-NLS-1$ buffer.append("void f (); // OK: overloaded declaration of f\n"); //$NON-NLS-1$ buffer.append("void prog ()\n"); //$NON-NLS-1$ buffer.append("{\n"); //$NON-NLS-1$ buffer.append("f (1, 2); // OK: call f(int, int)\n"); //$NON-NLS-1$ buffer.append("f (1); // OK: call f(int, int)\n"); //$NON-NLS-1$ buffer.append("f (); // Error: f(int, int) or f()?\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, false, false); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2138, 67, 28, 87, 23, 74, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 6459, 284, 261, 474, 277, 16, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2138, 67, 28, 87, 23, 74, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 6459, 284, 261, 474, 277, 16, 50...
AST tmp1245_AST_in = (AST)_t;
AST tmp1249_AST_in = (AST)_t;
public final void displaystate(AST _t) throws RecognitionException { AST displaystate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t688 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case EOF: case PERIOD: case EXCEPT: case IN_KW: case NOERROR_KW: case UNLESSHIDDEN: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNLESSHIDDEN: { AST tmp1241_AST_in = (AST)_t; match(_t,UNLESSHIDDEN); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case IN_KW: case NOERROR_KW: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { _loop692: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { displaystate_item(_t); _t = _retTree; } else { break _loop692; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t694 = _t; AST tmp1242_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop696: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop696; } } while (true); } _t = __t694; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case IN_KW: case NOERROR_KW: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t698 = _t; AST tmp1243_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1244_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t698; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop700: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WITH)) { display_with(_t); _t = _retTree; } else { break _loop700; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1245_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t688; _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, 2562, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2562, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2562, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2562, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
private void showProposalDescription(String description) {
private void showProposalDescription() {
private void showProposalDescription(String description) { // If we do not already have a pending update, then // create a thread now that will show the proposal description if (!pendingDescriptionUpdate && description != null) { // Create a thread that will sleep for the specified delay // before creating the popup. We do not use Jobs since this // code must be able to run independently of the Eclipse // runtime. Runnable runnable = new Runnable() { public void run() { pendingDescriptionUpdate = true; try { Thread.sleep(POPUP_DELAY); } catch (InterruptedException e) { } if (!isValid()) { return; } getShell().getDisplay().syncExec(new Runnable() { public void run() { // Query the current selection since we have // been delayed IContentProposal p = getSelectedProposal(); if (p != null) { if (infoPopup == null) { infoPopup = new InfoPopupDialog( getShell()); infoPopup.open(); infoPopup.getShell() .addDisposeListener( new DisposeListener() { public void widgetDisposed( DisposeEvent event) { infoPopup = null; } }); } infoPopup.setContents(p.getDescription()); pendingDescriptionUpdate = false; } } }); } }; Thread t = new Thread(runnable); t.start(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6dd2e93654c794beedb6c75df0bcc89a0ea20805/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 2405, 14592, 3291, 12, 780, 2477, 13, 288, 1082, 202, 759, 971, 732, 741, 486, 1818, 1240, 279, 4634, 1089, 16, 1508, 1082, 202, 759, 752, 279, 2650, 2037, 716, 903, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 14592, 3291, 12, 780, 2477, 13, 288, 1082, 202, 759, 971, 732, 741, 486, 1818, 1240, 279, 4634, 1089, 16, 1508, 1082, 202, 759, 752, 279, 2650, 2037, 716, 903, 24...
final String value = (String) ageMap.get(key);
final String value = ageMap.get(key);
private SortedMap<Integer, SortedMap<String, String>> setupAgeSet(final String region) { final SortedMap<Integer, SortedMap<String, String>> ageSets = new TreeMap<Integer, SortedMap<String, String>>(); for (String key : ageMap.keySet()) { if (key.startsWith(region + ".")) { final Integer setNum = new Integer(key.substring(region.length() + 1)); final String value = (String) ageMap.get(key); final SortedMap<String, String> races = new TreeMap<String, String>(); races.put("AGESET", value); ageSets.put(setNum, races); } } return ageSets; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/75df3a5f0e1a96572e65a556b5218a36a203c0e0/BioSet.java/buggy/code/src/java/pcgen/core/BioSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 31205, 32, 4522, 16, 31205, 32, 780, 16, 514, 9778, 3875, 9692, 694, 12, 6385, 514, 3020, 13, 202, 95, 202, 202, 6385, 31205, 32, 4522, 16, 31205, 32, 780, 16, 514, 9778, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31205, 32, 4522, 16, 31205, 32, 780, 16, 514, 9778, 3875, 9692, 694, 12, 6385, 514, 3020, 13, 202, 95, 202, 202, 6385, 31205, 32, 4522, 16, 31205, 32, 780, 16, 514, 9778, 9...
StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); buffer.append("void f(){ \n"); buffer.append(" struct A; \n"); buffer.append(" struct A * a; \n"); buffer.append("} \n");
StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); buffer.append("void f(){ \n"); buffer.append(" struct A; \n"); buffer.append(" struct A * a; \n"); buffer.append("} \n");
public void testStructureTags_1() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); //$NON-NLS-1$ buffer.append("void f(){ \n"); //$NON-NLS-1$ buffer.append(" struct A; \n"); //$NON-NLS-1$ buffer.append(" struct A * a; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); ICPPClassType A1 = (ICPPClassType) collector.getName(0).resolveBinding(); ICPPClassType A2 = (ICPPClassType) collector.getName(2).resolveBinding(); IVariable a = (IVariable) collector.getName(4).resolveBinding(); assertNotNull(a); assertNotNull(A1); assertNotNull(A2); assertNotSame(A1, A2); assertInstances(collector, A1, 1); assertInstances(collector, A2, 2); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 6999, 3453, 67, 21, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 5621, 1377, 1613, 18, 6923, 2932, 1697, 432, 31, 2398, 521, 82, 8863, 4329, 3993, 17, 5106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6999, 3453, 67, 21, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 5621, 1377, 1613, 18, 6923, 2932, 1697, 432, 31, 2398, 521, 82, 8863, 4329, 3993, 17, 5106, ...
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } } else { if (width >= BIT_SIZE - 1 || value >> (BIT_SIZE - width) < -1) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } }
public IRubyObject op_lshift(IRubyObject other) { if (other instanceof RubyNumeric) { long width = ((RubyNumeric) other).getLongValue(); if (width < 0) { return op_rshift(((RubyNumeric) other).op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum bigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return bigValue.op_lshift(other); } } else { if (width >= BIT_SIZE - 1 || value >> (BIT_SIZE - width) < -1) { RubyBignum bigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return bigValue.op_lshift(other); } }
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } } else { if (width >= BIT_SIZE - 1 || value >> (BIT_SIZE - width) < -1) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } } return newFixnum(value << width); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 1061, 67, 80, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 1835, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 2819, 411, 374, 13, 288, 1082, 202, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 4522, 1061, 67, 80, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 1835, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 2819, 411, 374, 13, 288, 1082, 202, 246...
protected void setUp() throws SQLException {
protected void setUp() throws Exception {
protected void setUp() throws SQLException { _conn = TestUtil.openDB(); Statement stmt = _conn.createStatement(); stmt.execute("CREATE TEMP TABLE hold(a int)"); stmt.execute("INSERT INTO hold VALUES (1)"); stmt.execute("INSERT INTO hold VALUES (2)"); stmt.close(); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/ef6648b6a288b3dadc1365d3d0791e7d655c98bc/ResultSetTest.java/buggy/org/postgresql/test/jdbc3/ResultSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 389, 4646, 273, 7766, 1304, 18, 3190, 2290, 5621, 3639, 8056, 3480, 273, 389, 4646, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 389, 4646, 273, 7766, 1304, 18, 3190, 2290, 5621, 3639, 8056, 3480, 273, 389, 4646, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, ...
saveBeforeProceedingCount++;
saveAllBeforeProceedingCount++;
public void testCompileAbortsIfUnsaved() throws BadLocationException, IOException { final OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); TestListener listener = new TestListener() { public void saveBeforeProceeding(GlobalModelListener.SaveReason reason) { assertModified(true, doc); assertEquals(_name() + "save reason", COMPILE_REASON, reason); saveBeforeProceedingCount++; // since we don't actually save the compile should abort } }; _model.addListener(listener); doc.startCompile(); listener.assertSaveBeforeProceedingCount(1); assertModified(true, doc); assertContents(FOO_TEXT, doc); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/963348ced7921c9036c4d0267a79aecf5dc0da09/GlobalModelCompileTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalModelCompileTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9937, 13572, 87, 2047, 984, 14077, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67, 5151, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 9937, 13572, 87, 2047, 984, 14077, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67, 5151, 1769, ...
super(element);
super(element, axis); strategy = sharedStrategy;
public FlowView(Element element) { super(element); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/98873fd331a0aa1919d4e6e1bcd20261bf760cd8/FlowView.java/buggy/libraries/javalib/javax/swing/text/FlowView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9473, 1767, 12, 1046, 930, 13, 225, 288, 565, 2240, 12, 2956, 16, 2654, 1769, 6252, 273, 5116, 4525, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9473, 1767, 12, 1046, 930, 13, 225, 288, 565, 2240, 12, 2956, 16, 2654, 1769, 6252, 273, 5116, 4525, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
e.printStackTrace();
public void doWork() { MessageContext msgContext = null; SimpleHTTPOutputStream out = null; try { if (socket != null) { if (configurationContext == null) { throw new AxisFault(Messages.getMessage("cannotBeNullConfigurationContext")); } InputStream inStream = socket.getInputStream(); TransportOutDescription transportOut = configurationContext.getAxisConfiguration().getTransportOut( new QName(Constants.TRANSPORT_HTTP)); msgContext = new MessageContext( configurationContext, configurationContext.getAxisConfiguration().getTransportIn( new QName(Constants.TRANSPORT_HTTP)), transportOut); msgContext.setServerSide(true); //parse the Transport Headers HTTPTransportReceiver receiver = new HTTPTransportReceiver(); Map map = receiver.parseTheHeaders(inStream, true); //build a way to write the respone if the Axis choose to do so String transferEncoding = (String) map.get(HTTPConstants.HEADER_TRANSFER_ENCODING); if (transferEncoding != null && HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED.equals(transferEncoding)) { inStream = new ChunkedInputStream(inStream); out = new SimpleHTTPOutputStream(socket.getOutputStream(), true); } else { out = new SimpleHTTPOutputStream(socket.getOutputStream(), false); } msgContext.setProperty(MessageContext.TRANSPORT_OUT, out); //set the transport Headers msgContext.setProperty(MessageContext.TRANSPORT_HEADERS,map); //This is way to provide Accsess to the transport information to the transport Sender msgContext.setProperty( HTTPConstants.HTTPOutTransportInfo, new SimpleHTTPOutTransportInfo(out)); if (HTTPConstants.HEADER_GET.equals(map.get(HTTPConstants.HTTP_REQ_TYPE))) { //It is GET handle the Get request boolean processed = HTTPTransportUtils.processHTTPGetRequest( msgContext, inStream, out, (String) map.get(HTTPConstants.HEADER_CONTENT_TYPE), (String) map.get(HTTPConstants.HEADER_SOAP_ACTION), (String) map.get(HTTPConstants.REQUEST_URI), configurationContext, HTTPTransportReceiver.getGetRequestParameters( (String) map.get(HTTPConstants.REQUEST_URI))); if (!processed) { out.write( HTTPTransportReceiver.getServicesHTML(configurationContext).getBytes()); out.flush(); } } else { //It is POST, handle it HTTPTransportUtils.processHTTPPostRequest( msgContext, inStream, out, (String) map.get(HTTPConstants.HEADER_CONTENT_TYPE), (String) map.get(HTTPConstants.HEADER_SOAP_ACTION), (String) map.get(HTTPConstants.REQUEST_URI), configurationContext); } out.finalize(); } } catch (Throwable e) { try { AxisEngine engine = new AxisEngine(configurationContext); if (msgContext != null) { msgContext.setProperty(MessageContext.TRANSPORT_OUT, out); MessageContext faultContext = engine.createFaultMessageContext(msgContext, e); faultContext.setProperty(HTTPConstants.HTTPOutTransportInfo,msgContext.getProperty(HTTPConstants.HTTPOutTransportInfo)); engine.sendFault(faultContext); } else { log.error(e); e.printStackTrace(); } } catch (Exception e1) { log.error(e1); e1.printStackTrace(); } //e.printStackTrace(); } finally { if (socket != null) { try { this.socket.close(); } catch (IOException e1) { log.error(e1); } } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/b50fb875033e86d89d9173e8def5120a820a8080/HTTPWorker.java/buggy/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 293, 440, 1812, 18, 1188, 6332, 5621, 19993, 831, 18, 1188, 6332, 5621, 741, 2421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 425, 18, 1188, 6332, 5621, 293, 440, 1812, 18, 1188, 6332, 5621, 19993, 831, 18, 1188, 6332, 5621, 741, 2421, ...
save(); assertTrue( compareFile( "CompatibleComputedColumnProperty_golden.xml") );
save( ); assertTrue( compareFile( "CompatibleComputedColumnProperty_golden.xml" ) );
public void testComputedColumnsProperty( ) throws Exception { openDesign( "CompatibleComputedColumnProperty.xml" );//$NON-NLS-1$ save(); assertTrue( compareFile( "CompatibleComputedColumnProperty_golden.xml") );//$NON-NLS-1$ }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/172b2d92316f30282ab12ffaad5d23912936b8f3/ParserCompatibilityTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/ParserCompatibilityTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 17934, 3380, 1396, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 315, 14599, 17934, 1494, 1396, 18, 2902, 6, 11272, 759, 8, 3993, 17, 5106, 17, 21, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17934, 3380, 1396, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 315, 14599, 17934, 1494, 1396, 18, 2902, 6, 11272, 759, 8, 3993, 17, 5106, 17, 21, 8, ...
numLines = 0;
int nLines = 0;
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on which position calculateBreakPosition returns breakPoint = calculateBreakPosition(i, end); if (breakPoint == 0) return; // If breakPoint is equal to the current index no further // line is needed and we can end the loop. if (breakPoint == i) break; else i = breakPoint; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ba862f89183b5347853381927a04e1e399fae5db/WrappedPlainView.java/clean/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4199, 2578, 5763, 1435, 565, 288, 5411, 509, 290, 5763, 273, 374, 31, 1377, 509, 679, 273, 9968, 2335, 5621, 1377, 309, 261, 409, 422, 374, 13, 3639, 327, 31, 5411, 509, 898, 2148,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4199, 2578, 5763, 1435, 565, 288, 5411, 509, 290, 5763, 273, 374, 31, 1377, 509, 679, 273, 9968, 2335, 5621, 1377, 309, 261, 409, 422, 374, 13, 3639, 327, 31, 5411, 509, 898, 2148,...
protected ISchedulingRule computeCreateSchedulingRule() { ISchedulingRule[] ruleArray = new ISchedulingRule[resourceDescriptions.length * 3]; for (int i = 0; i < resourceDescriptions.length; i++) { IResource resource = resourceDescriptions[i].createResourceHandle(); // Need a rule for creating... ruleArray[i * 3] = getWorkspaceRuleFactory().createRule(resource); // ...and modifying ruleArray[i * 3 + 1] = getWorkspaceRuleFactory().modifyRule( resource); // ...and changing the charset ruleArray[i * 3 + 2] = getWorkspaceRuleFactory().charsetRule( resource); } return MultiRule.combine(ruleArray); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/89342a7dae9f01bce0007e8b972fb2bfe56b3c26/AbstractResourcesOperation.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/AbstractResourcesOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4437, 13252, 2175, 3671, 1684, 25401, 2175, 1435, 288, 202, 202, 5127, 13252, 2175, 8526, 1720, 1076, 273, 394, 4437, 13252, 2175, 63, 3146, 16844, 18, 2469, 380, 890, 15533, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4437, 13252, 2175, 3671, 1684, 25401, 2175, 1435, 288, 202, 202, 5127, 13252, 2175, 8526, 1720, 1076, 273, 394, 4437, 13252, 2175, 63, 3146, 16844, 18, 2469, 380, 890, 15533, 202...
if(adapter == null) { System.err.println("GroupRequestPull.send(): adapter is null, cannot send message"); } else adapter.send(msg);
if(adapter == null) { System.err.println("GroupRequestPull.send(): adapter is null, cannot send message"); } else adapter.send(msg);
public void send(Message msg) throws Exception { if(adapter == null) { System.err.println("GroupRequestPull.send(): adapter is null, cannot send message"); } else adapter.send(msg); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/22c69457428cf875e9753385936adb3fedc17a37/GroupRequestPull.java/buggy/tests/other/org/jgroups/tests/GroupRequestPull.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 12, 1079, 1234, 13, 1216, 1185, 288, 202, 430, 12, 10204, 422, 446, 13, 288, 202, 565, 2332, 18, 370, 18, 8222, 2932, 15382, 9629, 18, 4661, 13332, 4516, 353, 446, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 12, 1079, 1234, 13, 1216, 1185, 288, 202, 430, 12, 10204, 422, 446, 13, 288, 202, 565, 2332, 18, 370, 18, 8222, 2932, 15382, 9629, 18, 4661, 13332, 4516, 353, 446, 16, ...
void setId(String id);
void setId(String id, boolean isFragment);
void setId(String id);
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/018b8f1f094e3f47bcb9fdcde66c554c542a71be/IProductPlugin.java/buggy/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/iproduct/IProductPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 10446, 12, 780, 612, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6459, 10446, 12, 780, 612, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
private void setTargets(Object[] targets) { if (!updatingSelection) { updatingSelection = true; if (targets.length <= 0) { clearSelection(); } else { setSelection(targets); } updatingSelection = false; } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/44494eb42384dc1a021122a1288f7e17d5d501cb/ExplorerTree.java/buggy/src_new/org/argouml/ui/explorer/ExplorerTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 542, 9432, 12, 921, 8526, 11358, 15329, 430, 12, 5, 5533, 1776, 6233, 15329, 5533, 1776, 6233, 33, 3767, 31, 430, 12, 11358, 18, 2469, 32, 33, 20, 15329, 8507, 6233, 5621, 97, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 542, 9432, 12, 921, 8526, 11358, 15329, 430, 12, 5, 5533, 1776, 6233, 15329, 5533, 1776, 6233, 33, 3767, 31, 430, 12, 11358, 18, 2469, 32, 33, 20, 15329, 8507, 6233, 5621, 97, 12...
public void setUp() throws Exception { rule = findRule("rulesets/strings.xml", "UnnecessaryCaseChange"); }
public void setUp() { rule = findRule("rulesets/strings.xml", "UnnecessaryCaseChange"); }
public void setUp() throws Exception { rule = findRule("rulesets/strings.xml", "UnnecessaryCaseChange"); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/UnnecessaryCaseChangeRuleTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/rules/strings/UnnecessaryCaseChangeRuleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 1216, 1185, 288, 3639, 1720, 273, 1104, 2175, 2932, 7482, 2413, 19, 10219, 18, 2902, 3113, 315, 984, 82, 4128, 2449, 3043, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 1216, 1185, 288, 3639, 1720, 273, 1104, 2175, 2932, 7482, 2413, 19, 10219, 18, 2902, 3113, 315, 984, 82, 4128, 2449, 3043, 8863, 565, 289, 2, -100, -100, -100, -10...
gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); urlLabel = new javax.swing.JLabel(); logoLabel = new javax.swing.JLabel(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); recentProjectsMenu = new javax.swing.JMenu(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); jSeparator8 = new javax.swing.JSeparator(); viewProjectItem = new javax.swing.JRadioButtonMenuItem(); viewBugsItem = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 13; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 9; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 12; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextArea.setEnabled(false); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http://findbugs.sourceforge.net/"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); getContentPane().add(urlLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); getContentPane().add(logoLabel, gridBagConstraints); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project..."); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); recentProjectsMenu.setMnemonic('E'); recentProjectsMenu.setText("Recent Projects"); recentProjectsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); rebuildRecentProjectsMenu(); fileMenu.add(recentProjectsMenu); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save Project"); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setMnemonic('A'); saveProjectAsItem.setText("Save Project As..."); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setMnemonic('R'); reloadProjectItem.setText("Reload Project"); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setMnemonic('L'); loadBugsItem.setText("Load Bugs..."); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setMnemonic('B'); saveBugsItem.setText("Save Bugs"); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setText("Console"); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setMnemonic('D'); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setMnemonic('F'); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setMnemonic('L'); lowPriorityButton.setText("Low Priority"); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); viewMenu.add(lowPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setMnemonic('M'); mediumPriorityButton.setSelected(true); mediumPriorityButton.setText("Medium Priority"); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); viewMenu.add(mediumPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setMnemonic('H'); highPriorityButton.setText("High Priority"); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); viewMenu.add(highPriorityButton); viewMenu.add(jSeparator8); viewProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewProjectItem.setText("View Project Details"); viewProjectItem.setEnabled(false); viewProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewProjectItemActionPerformed(evt); } }); viewMenu.add(viewProjectItem); viewBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugsItem.setText("View Bugs"); viewBugsItem.setEnabled(false); viewBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugsItemActionPerformed(evt); } }); viewMenu.add(viewBugsItem); theMenuBar.add(viewMenu); settingsMenu.setMnemonic('S'); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setMnemonic('C'); configureDetectorsItem.setText("Configure Detectors..."); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); theMenuBar.add(settingsMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About..."); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9e786b0d1a7e5b23874458bb460631bf7df21105/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 55...
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID();
public quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { quickfix.field.UnderlyingSecurityID value = new quickfix.field.UnderlyingSecurityID();
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/clean/src/java/src/quickfix/fix43/OrderMassStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 10833, 765, 6291, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734, 10833, 765, 6291, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 734...
public Recipe() { opts = new Options(); mash = new Mash(this); name = "My Recipe"; created = new GregorianCalendar(); efficiency = opts.getDProperty("optEfficiency"); //preBoilVol.setUnits(opts.getProperty("optSizeU")); // preBoilVol.setAmount(opts.getDProperty("optPreBoilVol")); // postBoilVol.setUnits(opts.getProperty("optSizeU")); // postBoilVol.setAmount(opts.getDProperty("optPostBoilVol")); attenuation = opts.getDProperty("optAttenuation"); boilMinutes = opts.getIProperty("optBoilTime"); ibuCalcMethod = opts.getProperty("optIBUCalcMethod"); ibuHopUtil = opts.getDProperty("optHopsUtil"); hopUnits = opts.getProperty("optHopsU"); maltUnits = opts.getProperty("optMaltU"); brewer = opts.getProperty("optBrewer"); evapMethod = opts.getProperty("optEvapCalcMethod"); evap = opts.getDProperty("optEvaporation"); alcMethod = opts.getProperty("optAlcCalcMethod"); colourMethod = opts.getProperty("optColourMethod"); kettleLoss = opts.getDProperty("optKettleLoss"); trubLoss = opts.getDProperty("optTrubLoss"); miscLoss = opts.getDProperty("optMiscLoss"); pelletHopPct = opts.getDProperty("optPelletHopsPct"); bottleU = opts.getProperty("optBottleU"); bottleSize = opts.getDProperty("optBottleSize"); otherCost = opts.getDProperty("optMiscCost"); dilution = new DilutedRecipe(); version = ""; // trigger the first re-calc: setPostBoil(opts.getDProperty("optPostBoilVol")); setVolUnits(opts.getProperty("optSizeU")); }
51683 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51683/c0868f641da10a3e01ca3d12996a445da5326a16/Recipe.java/buggy/src/ca/strangebrew/Recipe.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7776, 3151, 1435, 288, 202, 202, 4952, 273, 394, 5087, 5621, 202, 202, 81, 961, 273, 394, 490, 961, 12, 2211, 1769, 202, 202, 529, 273, 315, 12062, 7776, 3151, 14432, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7776, 3151, 1435, 288, 202, 202, 4952, 273, 394, 5087, 5621, 202, 202, 81, 961, 273, 394, 490, 961, 12, 2211, 1769, 202, 202, 529, 273, 315, 12062, 7776, 3151, 14432, 202, 202...
Policy policy = PolicyEngine.getPolicy(element);
Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
public Assertion build(OMElement element, AssertionBuilderFactory factory) throws IllegalArgumentException { Wss11 wss11 = new Wss11(); Policy policy = PolicyEngine.getPolicy(element); policy = (Policy) policy.normalize(false); for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) { processAlternative((List) iterator.next(), wss11); /* * since there should be only one alternative */ break; } return wss11; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2a5ba4ec18e8e760a63eac472351a67a530ab5cf/WSS11Builder.java/clean/modules/secpolicy/src/org/apache/ws/secpolicy/builders/WSS11Builder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9067, 1361, 12, 51, 12310, 930, 16, 9067, 20692, 3272, 13, 5411, 1216, 2754, 288, 3639, 678, 1049, 2499, 341, 1049, 2499, 273, 394, 678, 1049, 2499, 5621, 3639, 7436, 3329, 273, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9067, 1361, 12, 51, 12310, 930, 16, 9067, 20692, 3272, 13, 5411, 1216, 2754, 288, 3639, 678, 1049, 2499, 341, 1049, 2499, 273, 394, 678, 1049, 2499, 5621, 3639, 7436, 3329, 273, 743...
dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname()));
dumpObject(RubySymbol.newSymbol(runtime, value.getInternalClass().getClassname()));
private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", depth); dumpString(marshaled.getValue()); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/034747585fcabe56272dd07acab0ab42ce8450d5/MarshalStream.java/clean/org/jruby/runtime/marshal/MarshalStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 729, 8105, 12, 7937, 10340, 921, 460, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 2668, 89, 8284, 3639, 4657, 921, 12, 54, 10340, 5335, 18, 2704, 5335, 12, 9448, 16, 460, 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, 3238, 918, 729, 8105, 12, 7937, 10340, 921, 460, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 2668, 89, 8284, 3639, 4657, 921, 12, 54, 10340, 5335, 18, 2704, 5335, 12, 9448, 16, 460, 18, ...
last = consume(Token.tIDENTIFIER);
switch (LT(1)) { case Token.tIDENTIFIER: case Token.tCOMPL: last = consume(); }
public boolean name() throws Exception { Token last = null; callback.nameBegin(LA(1)); if (LT(1) == Token.tCOLONCOLON) last = consume(); last = consume(Token.tIDENTIFIER); while (LT(1) == Token.tCOLONCOLON) { last = consume(); last = consume(Token.tIDENTIFIER); } callback.nameEnd(last); return true; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ead4068efcf91d91e74237c9a6928949c2d8b296/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 508, 1435, 1216, 1185, 288, 202, 202, 1345, 1142, 273, 446, 31, 9506, 202, 3394, 18, 529, 8149, 12, 2534, 12, 21, 10019, 9506, 202, 430, 261, 12050, 12, 21, 13, 422, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 508, 1435, 1216, 1185, 288, 202, 202, 1345, 1142, 273, 446, 31, 9506, 202, 3394, 18, 529, 8149, 12, 2534, 12, 21, 10019, 9506, 202, 430, 261, 12050, 12, 21, 13, 422, 3...
int len) {
int len) {
public static void controlValues (AbstractTile[] tiles, byte tag, int start, int len) { for (int i = start; i < (start+len); ++i) { if (controlIsBackground(tag) || controlIsUnused(tag)) { if (controlIsUsed(tiles[i].getControl())) tiles[i].setControl((byte)~CONTROL_USED); } tiles[i].addControl(tag); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/758ed5c231ce2489135a1eef3a6d5c0ec6ce00d7/AbstractTile.java/clean/MMTk/src/org/mmtk/utility/gcspy/AbstractTile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3325, 1972, 261, 7469, 9337, 8526, 12568, 16, 1160, 1047, 16, 509, 787, 16, 6862, 565, 509, 562, 13, 288, 565, 364, 261, 474, 277, 273, 787, 31, 277, 411, 261, 1937, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3325, 1972, 261, 7469, 9337, 8526, 12568, 16, 1160, 1047, 16, 509, 787, 16, 6862, 565, 509, 562, 13, 288, 565, 364, 261, 474, 277, 273, 787, 31, 277, 411, 261, 1937, 1...
if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); }
if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); }
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 20, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 907, 1417, 16, 202, 202, 6494,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 745, 20, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 907, 1417, 16, 202, 202, 6494,...
public synchronized int onSendReplyAfter(Reply reply, int rdvValue, UniversalBody destination) { //System.out.println("[CIC] onSendReplyAfter"); // if return value is RESEDN, receiver have to recover --> resend the message if (rdvValue == FTManagerCIC.RESEND_MESSAGE) { try { //System.out.println("[CIC] " + this.hostname+" Receiver is recovering : reply is resent"); Thread.sleep(FTManagerCIC.TIME_TO_RESEND); int rdvValueBis = sendReply(reply, destination); return this.onSendReplyAfter(reply, rdvValueBis, destination); } catch (InterruptedException e) { e.printStackTrace(); } } int currentCheckpointIndex = this.checkpointIndex; // update checkpoint index if (rdvValue > currentCheckpointIndex) { this.nextMax = Math.max(this.nextMax, rdvValue); // log this in-transit message this.extendReplyLog(rdvValue); // must make a deep copy of result ! try { Reply toLog = null; try { toLog = new ReplyImpl(reply.getSourceBodyID(), reply.getSequenceNumber(), reply.getMethodName(), (FutureResult) Utils.makeDeepCopy(reply.getResult()), owner.getProActiveSecurityManager()); } catch (SecurityNotAvailableException e1) { toLog = new ReplyImpl(reply.getSourceBodyID(), reply.getSequenceNumber(), reply.getMethodName(), (FutureResult) Utils.makeDeepCopy(reply.getResult()), null); } MessageLog log = new ReplyLog(toLog, destination); for (int i = currentCheckpointIndex + 1; i <= rdvValue; i++) { ((Vector) (this.replyToResend.get(i))).add(log); } } catch (IOException e) { e.printStackTrace(); } } return 0; }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/e249ba646c84a168ac3f762dbcbe1c6e2bc975f1/FTManagerCIC.java/buggy/src/org/objectweb/proactive/core/body/ft/protocols/cic/FTManagerCIC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22043, 474, 265, 3826, 7817, 4436, 12, 7817, 10629, 16, 267, 313, 15679, 620, 16, 984, 14651, 2250, 10590, 15329, 759, 3163, 18, 659, 18, 8222, 2932, 63, 39, 2871, 65, 265, 3826, 7817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22043, 474, 265, 3826, 7817, 4436, 12, 7817, 10629, 16, 267, 313, 15679, 620, 16, 984, 14651, 2250, 10590, 15329, 759, 3163, 18, 659, 18, 8222, 2932, 63, 39, 2871, 65, 265, 3826, 7817, ...
RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id;
RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id;
public RubyObject newMethod( RubyObject recv, RubyId id, RubyClass methodClass) { RubyClass originalClass = (RubyClass) this; RubyId originalId = id; GetMethodBodyResult gmbr = getMethodBody(id, 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } while (gmbr.getBody() instanceof ZSuperNode) { gmbr = gmbr.getRecvClass().getSuperClass().getMethodBody(gmbr.getId(), 0); if (gmbr == null) { // printUndef(); return getRuby().getNil(); } } RubyMethod newMethod = new RubyMethod(getRuby(), methodClass); newMethod.setReceiverClass((RubyClass) gmbr.getRecvClass()); newMethod.setReceiver(recv); newMethod.setMethodId(gmbr.getId()); newMethod.setBodyNode(gmbr.getBody()); newMethod.setOriginalClass(originalClass); newMethod.setOriginalId(originalId); return newMethod; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 394, 1305, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 797, 707, 797, 13, 288, 202, 202, 54, 10340, 797, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 394, 1305, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 797, 707, 797, 13, 288, 202, 202, 54, 10340, 797, 228...
synchronized(lock_) { while (!(value_ == c)) lock_.wait(); if (action != null) action.run();
synchronized (lock_) { while (!(value_ == c)) lock_.wait(); if (action != null) action.run(); }
public void whenEqual(float c, Runnable action) throws InterruptedException { synchronized(lock_) { while (!(value_ == c)) lock_.wait(); if (action != null) action.run(); } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/WaitableFloat.java/clean/src/java/org/logicalcobwebs/concurrent/WaitableFloat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1347, 5812, 12, 5659, 276, 16, 10254, 1301, 13, 1216, 7558, 288, 565, 3852, 12, 739, 67, 13, 288, 1377, 1323, 16051, 12, 1132, 67, 422, 276, 3719, 2176, 27799, 7048, 5621, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1347, 5812, 12, 5659, 276, 16, 10254, 1301, 13, 1216, 7558, 288, 565, 3852, 12, 739, 67, 13, 288, 1377, 1323, 16051, 12, 1132, 67, 422, 276, 3719, 2176, 27799, 7048, 5621, 13...
private int entries(QueryRouteTable tbl) {
private int entries(QueryRouteTable tbl) throws Exception{
private int entries(QueryRouteTable tbl) { BitSet set = getBitTable(tbl); return set.cardinality(); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/dc295b13bbb55bd68b9686a8035c20df22771548/QueryRouteTableTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/routing/QueryRouteTableTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3222, 12, 1138, 3255, 1388, 10142, 13, 1216, 1185, 95, 3639, 21199, 444, 273, 26234, 1388, 12, 16187, 1769, 3639, 327, 444, 18, 3327, 9232, 5621, 565, 289, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3222, 12, 1138, 3255, 1388, 10142, 13, 1216, 1185, 95, 3639, 21199, 444, 273, 26234, 1388, 12, 16187, 1769, 3639, 327, 444, 18, 3327, 9232, 5621, 565, 289, 2, -100, -100, -100,...
if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } } }
} else { xformsControls.getCurrentControlsState().updateRepeatIndex(repeatId, 0);
public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); if (nestedRepeatIdsMap.get(repeatId) != null) { // Found nested repeat id to update final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/f7bebbf0972be75a1ba6123d0670bc0cad40a3fc/XFormsActionInterpreter.java/buggy/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 787, 10432, 3367, 12, 60, 18529, 16795, 18, 3367, 966, 3325, 966, 13, 288, 13491, 309, 261, 7098, 966, 1276, 1139, 18529, 16795, 18, 16750, 3367, 966, 13, 288, 18701, 368, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 787, 10432, 3367, 12, 60, 18529, 16795, 18, 3367, 966, 3325, 966, 13, 288, 13491, 309, 261, 7098, 966, 1276, 1139, 18529, 16795, 18, 16750, 3367, 966, 13, 288, 18701, 368, 107...
return visibleRect.width * direction;
{ int rowHeight = getRowHeight(); if (rowHeight > 0) block = Math.max(rowHeight, (visibleRect.height / rowHeight) * rowHeight); else block = visibleRect.height; } return block;
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 11971, 30453, 1768, 10798, 12, 19463, 6021, 6120, 16, 509, 9820, 16, 509, 4068, 13, 225, 288, 565, 309, 261, 19235, 422, 26145, 2918, 18, 21654, 10109, 13, 1377, 327, 6021, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 11971, 30453, 1768, 10798, 12, 19463, 6021, 6120, 16, 509, 9820, 16, 509, 4068, 13, 225, 288, 565, 309, 261, 19235, 422, 26145, 2918, 18, 21654, 10109, 13, 1377, 327, 6021, 612...
IPluginDescriptor pd = config.getDeclaringExtension() .getDeclaringPluginDescriptor(); URL fullPathString = new URL(pd.getInstallURL(), strIcon);
Bundle plugin = Platform.getBundle(config.getNamespace()); URL installURL = plugin.getEntry("/"); URL fullPathString = new URL(installURL, strIcon);
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException { callTrace.add("setInitializationData"); this.config = config; this.data = data; // Icon. String strIcon = config.getAttribute("icon");//$NON-NLS-1$ if (strIcon != null) { try { IPluginDescriptor pd = config.getDeclaringExtension() .getDeclaringPluginDescriptor(); URL fullPathString = new URL(pd.getInstallURL(), strIcon); ImageDescriptor imageDesc = ImageDescriptor .createFromURL(fullPathString); titleImage = imageDesc.createImage(); } catch (MalformedURLException e) { // ignore } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/42db139adc63f580638631e2801cb8a1ed81cfce/MockPart.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/MockPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 17701, 751, 12, 45, 1750, 1046, 642, 16, 5411, 514, 5470, 16, 1033, 501, 13, 1216, 30015, 288, 377, 202, 377, 202, 1991, 3448, 18, 1289, 2932, 542, 17701, 751, 8863, 377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17701, 751, 12, 45, 1750, 1046, 642, 16, 5411, 514, 5470, 16, 1033, 501, 13, 1216, 30015, 288, 377, 202, 377, 202, 1991, 3448, 18, 1289, 2932, 542, 17701, 751, 8863, 377...
CommandProcessor.getInstance().executeCommand( project, runnable, getText(), getFamilyName() ); }
int textOffset = anchor1.getTextOffset(); editor.getCaretModel().moveToOffset(textOffset); TemplateManager.getInstance(project).startTemplate(editor, template, null); }
public void run() { CommandProcessor.getInstance().executeCommand( project, runnable, getText(), getFamilyName() ); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9ae9cb930128b7633b83d87cd900bfe218d01cbf/XmlHighlightVisitor.java/clean/source/com/intellij/codeInsight/daemon/impl/analysis/XmlHighlightVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 2868, 1984, 16, 2868, 14685, 16, 2868, 6701, 9334, 2868, 2812, 3954, 461, 1435, 5411, 11272, 1850, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 3498, 5164, 18, 588, 1442, 7675, 8837, 2189, 12, 2868, 1984, 16, 2868, 14685, 16, 2868, 6701, 9334, 2868, 2812, 3954, 461, 1435, 5411, 11272, 1850, 289, ...
private void dyna_pop(RVarmap vars) {
private void dyna_pop(RubyVarmap vars) {
private void dyna_pop(RVarmap vars) { lvtbl.dlev--; ruby_dyna_vars = vars; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/8e00ad1c7ae96f50ae0bd521483380788f891b7b/parse.java/clean/org/jruby/parser/parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19417, 69, 67, 5120, 12, 54, 1537, 1458, 4153, 13, 288, 202, 3070, 16187, 18, 72, 298, 90, 413, 31, 202, 27768, 67, 72, 23041, 67, 4699, 273, 4153, 31, 565, 289, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19417, 69, 67, 5120, 12, 54, 1537, 1458, 4153, 13, 288, 202, 3070, 16187, 18, 72, 298, 90, 413, 31, 202, 27768, 67, 72, 23041, 67, 4699, 273, 4153, 31, 565, 289, 2, -100, ...
logln("listener 2 report " + n++ + " service changed: " + s);
logln("listener 1 report " + n++ + " service changed: " + s);
public void serviceChanged(ICUService s) { logln("listener 2 report " + n++ + " service changed: " + s); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/97cc766966d12e0e27116915a8e5579f5816e85b/ICUServiceTest.java/buggy/icu4j/src/com/ibm/icu/dev/test/util/ICUServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 565, 1071, 918, 1156, 5033, 12, 2871, 57, 1179, 272, 13, 288, 1082, 202, 1330, 2370, 2932, 12757, 576, 2605, 315, 397, 290, 9904, 397, 315, 1156, 3550, 30, 315, 397, 272, 1769, 1082, 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, 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, 565, 1071, 918, 1156, 5033, 12, 2871, 57, 1179, 272, 13, 288, 1082, 202, 1330, 2370, 2932, 12757, 576, 2605, 315, 397, 290, 9904, 397, 315, 1156, 3550, 30, 315, 397, 272, 1769, 1082, 5...
catch ( java.io.IOException e ) {
catch ( Exception e ) {
public ExplorerPanel(String dir) { try { java.net.URL templateURL = getClass() .getResource("/explorer/Explorer.thtml"); // you can of course directly give files here. STemplateLayout layout = new STemplateLayout( templateURL ); setLayout(new STemplateLayout(templateURL)); } catch ( java.io.IOException e ) { setLayout(new SFlowLayout()); } add(createTree(dir), "DirTree"); add(createTable(), "FileTable"); add(createUpload(), "UploadForm"); add(createDeleteButton(), "DeleteButton"); }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/6de307698c08789e8a81b3aa9decf7878736b759/ExplorerPanel.java/clean/wings/demo/explorer/ExplorerPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1312, 11766, 5537, 12, 780, 1577, 13, 288, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 1435, 7734, 263, 588, 1420, 2932, 19, 338, 11766, 19, 20938, 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, 1312, 11766, 5537, 12, 780, 1577, 13, 288, 3639, 775, 288, 5411, 2252, 18, 2758, 18, 1785, 1542, 1785, 273, 2900, 1435, 7734, 263, 588, 1420, 2932, 19, 338, 11766, 19, 20938, 18, ...
return ;
public void logicalAndExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:554:17: ( inclusiveOrExpression ( LAND inclusiveOrExpression )* ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:554:17: inclusiveOrExpression ( LAND inclusiveOrExpression )* { following.push(FOLLOW_inclusiveOrExpression_in_logicalAndExpression2169); inclusiveOrExpression(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:554:39: ( LAND inclusiveOrExpression )* loop54: do { int alt54=2; int LA54_0 = input.LA(1); if ( LA54_0==LAND ) { alt54=1; } switch (alt54) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:554:40: LAND inclusiveOrExpression { match(input,LAND,FOLLOW_LAND_in_logicalAndExpression2172); following.push(FOLLOW_inclusiveOrExpression_in_logicalAndExpression2174); inclusiveOrExpression(); following.pop(); } break; default : break loop54; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 274, 327, 274, 327, 274, 327, 274, 1071, 2463, 274, 918, 2463, 274, 6374, 1876, 2300, 1435, 2463, 274, 1216, 2463, 274, 9539, 2463, 274, 288, 2463, 274, 327, 274, 327, 274, 327, 274, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 274, 327, 274, 327, 274, 327, 274, 1071, 2463, 274, 918, 2463, 274, 6374, 1876, 2300, 1435, 2463, 274, 1216, 2463, 274, 9539, 2463, 274, 288, 2463, 274, 327, 274, 327, 274, 327, 274, 32...
public CHKBlock fetch(NodeCHK chk, boolean dontPromote) throws IOException {
public synchronized CHKBlock fetch(NodeCHK chk, boolean dontPromote) throws IOException {
public CHKBlock fetch(NodeCHK chk, boolean dontPromote) throws IOException { if(closed) return null; byte[] routingkey = chk.getRoutingKey(); DatabaseEntry routingkeyDBE = new DatabaseEntry(routingkey); DatabaseEntry blockDBE = new DatabaseEntry(); Cursor c = null; Transaction t = null; try{ t = environment.beginTransaction(null,null); c = chkDB.openCursor(t,null); /** * We will have to write, unless both dontPromote and the key is valid. * The lock only applies to this record, so it's not a big problem for our use. * What *IS* a big problem is that if we take a LockMode.DEFAULT, and two threads * access the same key, they will both take the read lock, and then both try to * take the write lock. Neither can relinquish the read in order for the other to * take the write, so we're screwed. */ if(c.getSearchKey(routingkeyDBE,blockDBE,LockMode.RMW) !=OperationStatus.SUCCESS) { c.close(); t.abort(); return null; } StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); CHKBlock block = null; try{ byte[] header = new byte[headerBlockSize]; byte[] data = new byte[dataBlockSize]; synchronized(chkStore) { long seekTarget = storeBlock.offset*(long)(dataBlockSize+headerBlockSize); try { chkStore.seek(seekTarget); } catch (IOException ioe) { if(seekTarget > (2*1024*1024*1024)) { Logger.error(this, "Environment does not support files bigger than 2 GB?"); System.out.println("Environment does not support files bigger than 2 GB? (exception to follow)"); } Logger.error(this, "Caught IOException on chkStore.seek("+seekTarget+")"); throw ioe; } chkStore.readFully(header); chkStore.readFully(data); } block = new CHKBlock(data,header,chk); if(!dontPromote) { storeBlock.updateRecentlyUsed(); DatabaseEntry updateDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, updateDBE); c.putCurrent(updateDBE); c.close(); t.commit(); }else{ c.close(); t.abort(); } Logger.minor(this, "Get key: "+chk); Logger.minor(this, "Headers: "+header.length+" bytes, hash "+header); Logger.minor(this, "Data: "+data.length+" bytes, hash "+data); }catch(CHKVerifyException ex){ Logger.error(this, "CHKBlock: Does not verify ("+ex+"), setting accessTime to 0 for : "+chk); storeBlock.setRecentlyUsedToZero(); DatabaseEntry updateDBE = new DatabaseEntry(); storeBlockTupleBinding.objectToEntry(storeBlock, updateDBE); c.putCurrent(updateDBE); c.close(); t.commit(); return null; } return block; }catch(Throwable ex) { // FIXME: ugly if(c!=null) { try{c.close();}catch(DatabaseException ex2){} } if(t!=null) try{t.abort();}catch(DatabaseException ex2){} checkSecondaryDatabaseError(ex); Logger.error(this, "Caught "+ex, ex); ex.printStackTrace(); throw new IOException(ex.getMessage()); } // return null; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/79d31585331089fa241bcabc60a642461fd7972a/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6469, 47, 1768, 2158, 12, 907, 1792, 47, 15000, 16, 1250, 14046, 13224, 1168, 13, 1216, 1860, 565, 288, 377, 202, 430, 12, 12204, 13, 377, 202, 202, 2463, 446, 31, 377, 202, 377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6469, 47, 1768, 2158, 12, 907, 1792, 47, 15000, 16, 1250, 14046, 13224, 1168, 13, 1216, 1860, 565, 288, 377, 202, 430, 12, 12204, 13, 377, 202, 202, 2463, 446, 31, 377, 202, 377, ...
match(input,38,FOLLOW_38_in_rule671); if (failed) return rule;
match(input,WHEN,FOLLOW_WHEN_in_rule676); if (failed) return rule;
public RuleDescr rule() throws RecognitionException { RuleDescr rule = null; Token loc=null; Token rhs=null; String ruleName = null; rule = null; String consequence = ""; AndDescr lhs = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:461:3: (loc= 'rule' ruleName= word rule_attributes[rule] ( ( 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:461:3: loc= 'rule' ruleName= word rule_attributes[rule] ( ( 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? rhs= RHS { loc=(Token)input.LT(1); match(input,37,FOLLOW_37_in_rule649); if (failed) return rule; pushFollow(FOLLOW_word_in_rule653); ruleName=word(); _fsp--; if (failed) return rule; if ( backtracking==0 ) { debug( "start rule: " + ruleName ); rule = new RuleDescr( ruleName, null ); rule.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } pushFollow(FOLLOW_rule_attributes_in_rule662); rule_attributes(rule); _fsp--; if (failed) return rule; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:468:3: ( ( 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )? int alt14=2; int LA14_0 = input.LA(1); if ( (LA14_0==38) ) { alt14=1; } switch (alt14) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:468:5: ( 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) )=>loc= 'when' ( ( ':' )=> ':' )? ( normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,38,FOLLOW_38_in_rule671); if (failed) return rule; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:468:16: ( ( ':' )=> ':' )? int alt13=2; int LA13_0 = input.LA(1); if ( (LA13_0==39) ) { alt13=1; } switch (alt13) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( ':' )=> ':' { match(input,39,FOLLOW_39_in_rule673); if (failed) return rule; } break; } if ( backtracking==0 ) { lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:473:4: ( normal_lhs_block[lhs] ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:475:5: normal_lhs_block[lhs] { pushFollow(FOLLOW_normal_lhs_block_in_rule691); normal_lhs_block(lhs); _fsp--; if (failed) return rule; } } break; } rhs=(Token)input.LT(1); match(input,RHS,FOLLOW_RHS_in_rule714); if (failed) return rule; if ( backtracking==0 ) { consequence = rhs.getText(); //strip out "then", "end" consequence = consequence.substring(4,consequence.length()-3); if ( expander != null ) { String expanded = runThenExpander( consequence, offset(rhs.getLine()) ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } rule.setConsequenceLocation(offset(rhs.getLine()), rhs.getCharPositionInLine()); debug( "end rule: " + ruleName ); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
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, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 7711, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 7711, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171...
final Register i = idx.getRegister();
final Register i = idx.getRegister();
public final void visit_castore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v = val.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int i = idx.getValue(); os.writeMOV(WORDSIZE, r, i + VmArray.DATA_OFFSET * 4, v); } else { final Register i = idx.getRegister(); os.writeMOV(WORDSIZE, r, i, 2, VmArray.DATA_OFFSET * 4, v); } val.release(eContext); idx.release(eContext); ref.release(eContext); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2dae0b481ae2c6630293d1adeea4e81e12d7547b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 4155, 479, 1435, 288, 3639, 3094, 1180, 1244, 273, 19510, 18, 5120, 1702, 5621, 3639, 3094, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 3639, 3941, 1180, 1278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 3757, 67, 4155, 479, 1435, 288, 3639, 3094, 1180, 1244, 273, 19510, 18, 5120, 1702, 5621, 3639, 3094, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 3639, 3941, 1180, 1278, ...
myShowSearchingAlarm.cancelAllRequests(); if (elements.size() != 0) { myCard.show(myCardContainer, CHECK_BOX_CARD); }
cardToShow = elements.size() == 0 ? NOT_FOUND_CARD : CHECK_BOX_CARD;
public void run() { myShowSearchingAlarm.cancelAllRequests(); myShowSearchingAlarm.addRequest(new Runnable() { public void run() { myCard.show(myCardContainer, SEARCHING_CARD); } }, 200, myModalityState); final List<Object> elements = new ArrayList<Object>(); Runnable action = new Runnable() { public void run() { try { ensureNamesLoaded(myCheckboxState); addElementsByPattern(elements, myPattern); } catch (ProcessCanceledException e) { } } }; ApplicationManager.getApplication().runReadAction(action); if (myCancelled[0]) return; if (elements.size() == 0 && !myCheckboxState) { myCard.show(myCardContainer, NOT_FOUND_MESSAGE_CARD); myCheckboxState = true; ApplicationManager.getApplication().runReadAction(action); } else { myShowSearchingAlarm.cancelAllRequests(); if (elements.size() != 0) { myCard.show(myCardContainer, CHECK_BOX_CARD); } } myShowSearchingAlarm.cancelAllRequests(); if (elements.size() == 0) { myCard.show(myCardContainer, NOT_FOUND_CARD); } myElements = elements; ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { myCallback.run(myElements); } }, myModalityState); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7e44010c95a80f7dacdf0dc0d0e135e7040b8081/ChooseByNameBase.java/buggy/source/com/intellij/ide/util/gotoByName/ChooseByNameBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 3399, 5706, 2979, 310, 16779, 18, 10996, 1595, 6421, 5621, 1377, 3399, 5706, 2979, 310, 16779, 18, 1289, 691, 12, 2704, 10254, 1435, 288, 3639, 1071, 918, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1377, 3399, 5706, 2979, 310, 16779, 18, 10996, 1595, 6421, 5621, 1377, 3399, 5706, 2979, 310, 16779, 18, 1289, 691, 12, 2704, 10254, 1435, 288, 3639, 1071, 918, ...
if (v == Undefined.instance || typeHint == ScriptRuntime.ScriptableClass
if (typeHint == ScriptRuntime.ScriptableClass
public Object getDefaultValue(Class typeHint) { Context cx = null; for (int i=0; i < 2; i++) { boolean tryToString; if (typeHint == ScriptRuntime.StringClass) { tryToString = (i == 0); } else { tryToString = (i == 1); } String methodName; Object[] args; if (tryToString) { methodName = "toString"; args = ScriptRuntime.emptyArgs; } else { methodName = "valueOf"; args = new Object[1]; String hint; if (typeHint == null) { hint = "undefined"; } else if (typeHint == ScriptRuntime.StringClass) { hint = "string"; } else if (typeHint == ScriptRuntime.ScriptableClass) { hint = "object"; } else if (typeHint == ScriptRuntime.FunctionClass) { hint = "function"; } else if (typeHint == ScriptRuntime.BooleanClass || typeHint == Boolean.TYPE) { hint = "boolean"; } else if (typeHint == ScriptRuntime.NumberClass || typeHint == ScriptRuntime.ByteClass || typeHint == Byte.TYPE || typeHint == ScriptRuntime.ShortClass || typeHint == Short.TYPE || typeHint == ScriptRuntime.IntegerClass || typeHint == Integer.TYPE || typeHint == ScriptRuntime.FloatClass || typeHint == Float.TYPE || typeHint == ScriptRuntime.DoubleClass || typeHint == Double.TYPE) { hint = "number"; } else { throw Context.reportRuntimeError1( "msg.invalid.type", typeHint.toString()); } args[0] = hint; } Object v = getProperty(this, methodName); if (!(v instanceof Function)) continue; Function fun = (Function) v; if (cx == null) cx = Context.getContext(); v = fun.call(cx, fun.getParentScope(), this, args); if (v != null) { if (!(v instanceof Scriptable)) { return v; } if (v == Undefined.instance || typeHint == ScriptRuntime.ScriptableClass || typeHint == ScriptRuntime.FunctionClass) { return v; } if (tryToString && v instanceof Wrapper) { // Let a wrapped java.lang.String pass for a primitive // string. Object u = ((Wrapper)v).unwrap(); if (u instanceof String) return u; } } } // fall through to error String arg = (typeHint == null) ? "undefined" : typeHint.getName(); throw ScriptRuntime.typeError1("msg.default.value", arg); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/c33fa5238e1757bd738a4582f5fcdb06735c66f5/ScriptableObject.java/clean/src/org/mozilla/javascript/ScriptableObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 19569, 12, 797, 618, 7002, 13, 565, 288, 3639, 1772, 9494, 273, 446, 31, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 576, 31, 277, 27245, 288, 5411, 1250, 775, 5808, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 19569, 12, 797, 618, 7002, 13, 565, 288, 3639, 1772, 9494, 273, 446, 31, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 576, 31, 277, 27245, 288, 5411, 1250, 775, 5808, 3...
if (ccmSession != null) { cmd.setVariable(CCM_SESSION_VAR, ccmSession);
if (ccmExe == null) { ccmExe = CCM_EXE;
private ManagedCommandline createCcmCommand() { // Create a managed command line ManagedCommandline cmd = new ManagedCommandline(ccmExe); // If we were given a ccmSession ID, use it if (ccmSession != null) { cmd.setVariable(CCM_SESSION_VAR, ccmSession); } return cmd; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/d1bbc28f8959bb872a43f301d6269386edf55525/CMSynergy.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/CMSynergy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 10024, 2189, 1369, 752, 39, 7670, 2189, 1435, 288, 3639, 368, 1788, 279, 7016, 1296, 980, 3639, 10024, 2189, 1369, 1797, 273, 394, 10024, 2189, 1369, 12, 952, 81, 424, 73, 1769, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10024, 2189, 1369, 752, 39, 7670, 2189, 1435, 288, 3639, 368, 1788, 279, 7016, 1296, 980, 3639, 10024, 2189, 1369, 1797, 273, 394, 10024, 2189, 1369, 12, 952, 81, 424, 73, 1769, 773...
if (A_OpenCms.isLogging()) {
if ((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
private Object getContentDefinition(CmsObject cms, Class cdClass, Integer id) { Object o = null; try { Constructor c = cdClass.getConstructor(new Class[] {CmsObject.class, Integer.class}); o = c.newInstance(new Object[] {cms, id}); } catch (InvocationTargetException ite) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice contentDefinitionConstructor: Invocation target exception!"); } } catch (NoSuchMethodException nsm) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice contentDefinitionConstructor: Requested method was not found!"); } } catch (InstantiationException ie) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice contentDefinitionConstructor: the reflected class is abstract!"); } } catch (Exception e) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice contentDefinitionConstructor: Other exception!"); } e.printStackTrace(); } return o;}
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/65fec749058083642e3e85283287c65357fa8690/A_CmsBackoffice.java/buggy/src/com/opencms/defaults/A_CmsBackoffice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 1033, 5154, 1852, 12, 4747, 921, 6166, 16, 1659, 7976, 797, 16, 2144, 612, 13, 288, 202, 921, 320, 273, 446, 31, 202, 698, 288, 202, 202, 6293, 276, 273, 7976, 797, 18, 588, 6293, 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, 3238, 1033, 5154, 1852, 12, 4747, 921, 6166, 16, 1659, 7976, 797, 16, 2144, 612, 13, 288, 202, 921, 320, 273, 446, 31, 202, 698, 288, 202, 202, 6293, 276, 273, 7976, 797, 18, 588, 6293, 12...
}
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentException("magic"); } // version if (k[4] != 0x01) { throw new IllegalArgumentException("version"); } int i = 5; int l; byte[] buffer; // n l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger n = new BigInteger(1, buffer); // e l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger e = new BigInteger(1, buffer); return new GnuRSAPublicKey(n, e); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 11951, 2495, 9632, 12, 7229, 8526, 417, 13, 225, 288, 565, 368, 8146, 565, 309, 261, 79, 63, 20, 65, 480, 5438, 18, 49, 22247, 67, 10821, 67, 15248, 67, 14939, 67, 3297, 63, 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, 282, 1071, 11951, 2495, 9632, 12, 7229, 8526, 417, 13, 225, 288, 565, 368, 8146, 565, 309, 261, 79, 63, 20, 65, 480, 5438, 18, 49, 22247, 67, 10821, 67, 15248, 67, 14939, 67, 3297, 63, 20,...
public void setTitle(String title) { _title = title; }
public void setTitle(String title) { _title = title; }
public void setTitle(String title) { _title = title; }
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/1b909ba0a5b20ae3aa5fba490ad90f4cf424fa18/ERD2WMessagePage.java/buggy/Wonder/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERD2WMessagePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14109, 12, 780, 2077, 13, 288, 389, 2649, 273, 2077, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 918, 14109, 12, 780, 2077, 13, 288, 389, 2649, 273, 2077, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
body.unsetExceptionHandler(exception);
body.unsetExceptionHandler(exception);
public static Handler unsetExceptionHandler(Class exception, int levelID, Object target) { // We keep a trace of the removed handler Class handlerClass = null; Handler handler = null; // The correct level is identified switch (levelID) { // Default level must not be modified ! case (Handler.ID_Default): if (logger.isDebugEnabled()) { logger.debug( "*** ERROR: REMOVING HANDLER from DEFAULT LEVEL is FORBIDDEN !"); } return null; case (Handler.ID_VM): if (VMLevel != null) { handlerClass = (Class) VMLevel.remove(exception); } break; case (Handler.ID_Body): // The target must be a body if (((target != null) && target instanceof UniversalBody)) { // Get the body of target (remote) object UniversalBody body = ((BodyProxy) ((org.objectweb.proactive.core.mop.StubObject) target).getProxy()).getBody(); try { if (body instanceof ActiveBody) { body.unsetExceptionHandler(exception); } else if (body instanceof RemoteBodyAdapter) { body.getRemoteAdapter().unsetExceptionHandler(exception); } } catch (ProActiveException e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR while UNSETTING handler for " + exception.getName() + " in BODY LEVEL"); } } } break; case (Handler.ID_Proxy): // The target must be a proxy if (((target != null) && target instanceof AbstractProxy)) { // Create a request to associate handler to the distant body try { handler = ((AbstractProxy) target).unsetExceptionHandler(exception); return handler; } catch (ProActiveException e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR while UNSETTING handler for " + exception.getName() + " in PROXY LEVEL"); } } } break; case (Handler.ID_Future): break; case (Handler.ID_Code): if (target != null && codeLevel != null) { if (codeLevel.containsKey(new Integer(target.hashCode()))) { handlerClass = (Class) ((HashMap) codeLevel.get(new Integer(target.hashCode()))).remove(exception); } } break; } // Instantiation of the removed handler if (handlerClass != null) { try { handler = (Handler) handlerClass.newInstance(); if (logger.isDebugEnabled()) { logger.debug("*** REMOVE [" + handler.getClass().getName() + "] FOR [" + exception.getName() + "] AT LEVEL " + levelID); } } catch (Exception e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR during class [" + handlerClass.getName() + "] instantiation"); } } } return handler; }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/60fe182df5c3ea61f141c81b25184db95f9a3249/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4663, 2646, 18894, 12, 797, 1520, 16, 509, 1801, 734, 16, 3639, 1033, 1018, 13, 288, 3639, 368, 1660, 3455, 279, 2606, 434, 326, 3723, 1838, 3639, 1659, 1838, 797, 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, 377, 1071, 760, 4663, 2646, 18894, 12, 797, 1520, 16, 509, 1801, 734, 16, 3639, 1033, 1018, 13, 288, 3639, 368, 1660, 3455, 279, 2606, 434, 326, 3723, 1838, 3639, 1659, 1838, 797, 273, 446, ...
return new InputStreamReader(System.in, "ISO8859_1");
return new InputStreamReader(System.in, encoding);
public Reader getScriptSource() { try { if (hasInlineScript()) { return new StringReader(inlineScript()); } else if (isSourceFromStdin()) { return new InputStreamReader(System.in, "ISO8859_1"); } else { File file = new File(getScriptFileName()); return new BufferedReader(new InputStreamReader(new FileInputStream(file), "ISO8859_1")); } } catch (IOException e) { throw new MainExitException(1, "Error opening script file: " + e.getMessage()); } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/654f173770fef24a10855574674209b3262a32f7/CommandlineParser.java/buggy/src/org/jruby/util/CommandlineParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5393, 22611, 1830, 1435, 288, 3639, 775, 288, 5411, 309, 261, 5332, 10870, 3651, 10756, 288, 7734, 327, 394, 26227, 12, 10047, 3651, 10663, 5411, 289, 469, 309, 261, 291, 1830, 1265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5393, 22611, 1830, 1435, 288, 3639, 775, 288, 5411, 309, 261, 5332, 10870, 3651, 10756, 288, 7734, 327, 394, 26227, 12, 10047, 3651, 10663, 5411, 289, 469, 309, 261, 291, 1830, 1265, ...
System.out.println("Parser: _parser=new Ajp13Parser(_connector,_endp,new RequestHandler(),bufferSize); ");
public Ajp13Connection(Connector connector, EndPoint endPoint, Server server) { super(connector,endPoint,server); // TODO avoid the creation of HttpParsers etc. _parser=new Ajp13Parser(_connector,_endp,new RequestHandler()); System.out.println("Parser: _parser=new Ajp13Parser(_connector,_endp,new RequestHandler(),bufferSize); "); //_response = new Ajp13Response(this); _generator=new Ajp13Generator(_connector,_endp,_connector.getHeaderBufferSize(), _connector.getResponseBufferSize()); _generator.setSendServerVersion(server.getSendServerVersion()); _server = server; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/11656f4fc3b2076fc779b668bb5ec2135652ab72/Ajp13Connection.java/clean/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 21797, 3437, 1952, 12, 7487, 8703, 16, 4403, 2148, 19849, 16, 3224, 1438, 13, 565, 288, 3639, 2240, 12, 23159, 16, 409, 2148, 16, 3567, 1769, 7734, 368, 2660, 4543, 326, 6710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 432, 21797, 3437, 1952, 12, 7487, 8703, 16, 4403, 2148, 19849, 16, 3224, 1438, 13, 565, 288, 3639, 2240, 12, 23159, 16, 409, 2148, 16, 3567, 1769, 7734, 368, 2660, 4543, 326, 6710, ...
throw new ServletException("MultipartIterator.parseRequest(): " + "IOException while trying to obtain " + "ServletInputStream");
throw new ServletException("Problem while reading request: " + ioe.getMessage(), ioe);
protected void parseRequest() throws ServletException { contentLength = request.getContentLength(); //set boundary boundary = parseBoundary(request.getContentType()); boundaryBytes = boundary.getBytes(); try { //set the input stream inputStream = new BufferedMultipartInputStream(request.getInputStream(), bufferSize, contentLength, maxSize); //mark the input stream to allow multiple reads if (inputStream.markSupported()) { inputStream.mark(contentLength+1); } } catch (IOException ioe) { throw new ServletException("MultipartIterator.parseRequest(): " + "IOException while trying to obtain " + "ServletInputStream"); } if ((boundary == null) || (boundary.length() < 1)) { //try retrieving the header through more "normal" means boundary = parseBoundary(request.getHeader("Content-type")); } if ((boundary == null) || (boundary.length() < 1)) { throw new ServletException("MultipartIterator: cannot retrieve boundary " + "for multipart request"); } //read first line try { String firstLine = readLine(); if (firstLine == null) { throw new ServletException("MultipartIterator: no multipart request data " + "sent"); } if (!firstLine.startsWith(boundary)) { throw new ServletException("MultipartIterator: invalid multipart request " + "data, doesn't start with boundary"); } } catch (UnsupportedEncodingException uee) { throw new ServletException("MultipartIterator: encoding \"ISO-8859-1\" not supported"); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/6eb4c6c1e79d6970aef854c83d77fff2e642f474/MultipartIterator.java/clean/src/share/org/apache/struts/upload/MultipartIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 691, 1435, 1216, 16517, 288, 5397, 17117, 273, 590, 18, 588, 1350, 1782, 5621, 7734, 368, 542, 7679, 3639, 7679, 273, 1109, 11941, 12, 2293, 18, 588, 8046, 10663, 3639, 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, 4750, 918, 1109, 691, 1435, 1216, 16517, 288, 5397, 17117, 273, 590, 18, 588, 1350, 1782, 5621, 7734, 368, 542, 7679, 3639, 7679, 273, 1109, 11941, 12, 2293, 18, 588, 8046, 10663, 3639, 7...
Boolean nullThruDatesOnly = (strNullThruDatesOnly != null && strNullThruDatesOnly.equalsIgnoreCase("true")) ? new Boolean(true) :new Boolean(false);
Boolean nullThruDatesOnly = (strNullThruDatesOnly != null && strNullThruDatesOnly.equalsIgnoreCase("true")) ? Boolean.TRUE :Boolean.FALSE;
public Writer getWriter(final Writer out, Map args) { final StringBuffer buf = new StringBuffer(); final Environment env = Environment.getCurrentEnvironment(); //final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); //final Map templateCtx = new HashMap(); final GenericDelegator delegator = (GenericDelegator) FreeMarkerWorker.getWrappedObject("delegator", env); final HttpServletRequest request = (HttpServletRequest) FreeMarkerWorker.getWrappedObject("request", env); final HttpServletResponse response = (HttpServletResponse) FreeMarkerWorker.getWrappedObject("response", env); final Map templateRoot = FreeMarkerWorker.createEnvironmentMap(env); //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId(0):" + templateRoot.get( "contentId"), module); FreeMarkerWorker.getSiteParameters(request, templateRoot); final Map savedValuesUp = new HashMap(); FreeMarkerWorker.saveContextValues(templateRoot, upSaveKeyNames, savedValuesUp); FreeMarkerWorker.overrideWithArgs(templateRoot, args); //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId(2):" + templateRoot.get( "contentId"), module); final GenericValue userLogin = (GenericValue) FreeMarkerWorker.getWrappedObject("userLogin", env); List trail = (List)templateRoot.get( "globalNodeTrail"); //if (Debug.infoOn()) Debug.logInfo("in Render(0), globalNodeTrail ." + trail , module); String contentAssocPredicateId = (String)templateRoot.get( "contentAssocPredicateId"); String strNullThruDatesOnly = (String)templateRoot.get( "nullThruDatesOnly"); Boolean nullThruDatesOnly = (strNullThruDatesOnly != null && strNullThruDatesOnly.equalsIgnoreCase("true")) ? new Boolean(true) :new Boolean(false); String thisSubContentId = (String)templateRoot.get("subContentId"); //if (Debug.infoOn()) Debug.logInfo("in Render(0), thisSubContentId ." + thisSubContentId , module); final boolean directAssocMode = UtilValidate.isNotEmpty(thisSubContentId) ? true : false; //if (Debug.infoOn()) Debug.logInfo("in Render(0), directAssocMode ." + directAssocMode , module); GenericValue val = null; try { val = ContentWorker.getCurrentContent(delegator, trail, userLogin, templateRoot, nullThruDatesOnly, contentAssocPredicateId); } catch(GeneralException e) { throw new RuntimeException("Error getting current content. " + e.toString()); } final GenericValue view = val; String dataResourceId = null; String subContentIdSub = null; if (view != null) { try { dataResourceId = (String) view.get("drDataResourceId"); } catch (Exception e) { dataResourceId = (String) view.get("dataResourceId"); } subContentIdSub = (String) view.get("contentId"); } // This order is taken so that the dataResourceType can be overridden in the transform arguments. String subDataResourceTypeId = (String)templateRoot.get( "subDataResourceTypeId"); if (UtilValidate.isEmpty(subDataResourceTypeId)) { try { subDataResourceTypeId = (String) view.get("drDataResourceTypeId"); } catch (Exception e) { // view may be "Content" } // TODO: If this value is still empty then it is probably necessary to get a value from // the parent context. But it will already have one and it is the same context that is // being passed. } String mimeTypeId = ContentWorker.getMimeTypeId(delegator, view, templateRoot); templateRoot.put( "drDataResourceId", dataResourceId); templateRoot.put( "mimeTypeId", mimeTypeId); templateRoot.put( "dataResourceId", dataResourceId); templateRoot.put( "subContentId", subContentIdSub); templateRoot.put( "subDataResourceTypeId", subDataResourceTypeId); //final Map savedValues = new HashMap(); //FreeMarkerWorker.saveContextValues(templateCtx, saveKeyNames, savedValues); return new Writer(out) { public void write(char cbuf[], int off, int len) { } public void flush() throws IOException { out.flush(); } public void close() throws IOException { List globalNodeTrail = (List)templateRoot.get("globalNodeTrail"); //if (Debug.infoOn()) Debug.logInfo("Render close, globalNodeTrail(2a):" + FreeMarkerWorker.nodeTrailToCsv(globalNodeTrail), ""); try { renderSubContent(); FreeMarkerWorker.reloadValues(templateRoot, savedValuesUp, env); //if (Debug.infoOn()) Debug.logInfo("in Render(2), globalNodeTrail ." + getWrapped(env, "globalNodeTrail") , module); } catch (IOException e) { throw new IOException(e.getMessage()); } } public void renderSubContent() throws IOException { //TemplateHashModel dataRoot = env.getDataModel(); Timestamp fromDate = UtilDateTime.nowTimestamp(); List passedGlobalNodeTrail = (List)templateRoot.get("globalNodeTrail"); String editRequestName = (String)templateRoot.get("editRequestName"); //if (Debug.infoOn()) Debug.logInfo("in Render(3), editRequestName ." + editRequestName , module); GenericValue thisView = null; if (view != null) { thisView = view; } else if (passedGlobalNodeTrail.size() > 0) { Map map = (Map)passedGlobalNodeTrail.get(passedGlobalNodeTrail.size() - 1); if (Debug.infoOn()) Debug.logInfo("in Render(3), map ." + map , module); if (map != null) thisView = (GenericValue)map.get("value"); } //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, subContentId:" + templateRoot.get( "subContentId"), module); //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId:" + templateRoot.get( "contentId"), module); String mimeTypeId = (String) templateRoot.get("mimeTypeId"); Locale locale = (Locale) templateRoot.get("locale"); if (locale == null) locale = Locale.getDefault(); if (UtilValidate.isNotEmpty(editRequestName)) { String editStyle = getEditStyle(); openEditWrap(out, editStyle); } if (thisView != null) { try { ContentWorker.renderContentAsTextCache(delegator, null, out, templateRoot, thisView, locale, mimeTypeId); //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, after renderContentAsTextCache:", module); } catch (GeneralException e) { Debug.logError(e, "Error rendering content", module); throw new IOException("Error rendering thisView:" + thisView + " msg:" + e.toString()); } } if (UtilValidate.isNotEmpty(editRequestName)) { closeEditWrap(out, editRequestName); } //if (Debug.infoOn()) Debug.logInfo("in Render(4), globalNodeTrail ." + getWrapped(env, "globalNodeTrail") , module); } public void openEditWrap(Writer out, String editStyle) throws IOException { String divStr = "<div class=\"" + editStyle + "\">"; out.write(divStr); } public void closeEditWrap(Writer out, String editRequestName) throws IOException { //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId(1):" + templateRoot.get( "contentId"), module); //if (Debug.infoOn()) Debug.logInfo("in Render(0), templateRoot ." + templateRoot , module); StringBuffer sb = new StringBuffer(); String fullRequest = editRequestName; String contentId = null; String contentIdTo = null; String contentAssocTypeId = null; String mapKey = null; String fromDate = null; if (!directAssocMode) { contentIdTo = (String)templateRoot.get("contentId"); contentAssocTypeId = (String)templateRoot.get("contentAssocTypeId"); mapKey = (String)templateRoot.get("mapKey"); fromDate = (String)templateRoot.get("fromDate"); if (Debug.infoOn()) Debug.logInfo("in Render(0), view ." + view , module); if (view != null) { ModelEntity modelEntity = view.getModelEntity(); if (UtilValidate.isEmpty(contentId) && modelEntity.getField("caContentId") != null ) contentId = view.getString("caContentId"); if (UtilValidate.isEmpty(contentId) && modelEntity.getField("contentId") != null ) contentId = view.getString("contentId"); if (UtilValidate.isEmpty(contentIdTo) && modelEntity.getField("caContentIdTo") != null ) contentIdTo = view.getString("caContentIdTo"); if (UtilValidate.isEmpty(contentIdTo) && modelEntity.getField("contentIdTo") != null ) contentIdTo = view.getString("contentIdTo"); if (UtilValidate.isEmpty(contentAssocTypeId) && modelEntity.getField("caContentAssocTypeId") != null ) contentAssocTypeId = view.getString("caContentAssocTypeId"); if (UtilValidate.isEmpty(contentAssocTypeId) && modelEntity.getField("contentAssocTypeId") != null ) contentAssocTypeId = view.getString("contentAssocTypeId"); if (UtilValidate.isEmpty(mapKey) && modelEntity.getField("caMapKey") != null ) mapKey = view.getString("caMapKey"); if (UtilValidate.isEmpty(mapKey) && modelEntity.getField("mapKey") != null ) mapKey = view.getString("mapKey"); if (UtilValidate.isEmpty(fromDate) && modelEntity.getField("caFromDate") != null ) fromDate = view.getString("caFromDate"); if (UtilValidate.isEmpty(fromDate) && modelEntity.getField("fromDate") != null ) fromDate = view.getString("fromDate"); } } else { contentId = (String)templateRoot.get("subContentId"); } if (Debug.infoOn()) Debug.logInfo("in Render(0), contentIdTo ." + contentIdTo , module); String delim = "?"; if (UtilValidate.isNotEmpty(contentId)) { fullRequest += delim + "contentId=" + contentId; delim = "&"; } if (UtilValidate.isNotEmpty(contentIdTo)) { fullRequest += delim + "contentIdTo=" + contentIdTo; delim = "&"; } if (UtilValidate.isNotEmpty(contentAssocTypeId)) { fullRequest += delim + "contentAssocTypeId=" + contentAssocTypeId; delim = "&"; } if (UtilValidate.isNotEmpty(mapKey)) { fullRequest += delim + "mapKey=" + mapKey; delim = "&"; } if (UtilValidate.isNotEmpty(fromDate)) { fullRequest += delim + "fromDate=" + fromDate; delim = "&"; } if (Debug.infoOn()) Debug.logInfo("in Render(2), contentIdTo ." + contentIdTo , module); WidgetWorker.appendOfbizUrl(sb, fullRequest, request, response); String url = sb.toString(); String link = "<a href=\"" + url + "\">Edit</a>"; out.write(link); String divStr = "</div>"; out.write(divStr); } public String getEditStyle() { String editStyle = (String)templateRoot.get("editStyle"); if (UtilValidate.isEmpty(editStyle)) { editStyle = UtilProperties.getPropertyValue("content", "defaultEditStyle"); } if (UtilValidate.isEmpty(editStyle)) { editStyle = "buttontext"; } return editStyle; } }; }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/bd428bde64a45c1f64b8f0a8680d9c42ddc683a0/RenderSubContentCacheTransform.java/clean/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5497, 20568, 12, 6385, 5497, 596, 16, 1635, 833, 13, 288, 3639, 727, 6674, 1681, 273, 394, 6674, 5621, 3639, 727, 7518, 1550, 273, 7518, 18, 588, 3935, 5494, 5621, 3639, 368, 6385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5497, 20568, 12, 6385, 5497, 596, 16, 1635, 833, 13, 288, 3639, 727, 6674, 1681, 273, 394, 6674, 5621, 3639, 727, 7518, 1550, 273, 7518, 18, 588, 3935, 5494, 5621, 3639, 368, 6385, ...
vPhaseReport.addElement(r);
addReport(r);
private void resolveKickAttack(PhysicalResult pr, int lastEntityId) { KickAttackAction kaa = (KickAttackAction)pr.aaa; final Entity ae = game.getEntity(kaa.getEntityId()); final Targetable target = game.getTarget(kaa.getTargetType(), kaa.getTargetId()); Entity te = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity)target; } boolean throughFront = true; if (te!=null) { throughFront = Compute.isThroughFrontHex(game, kaa.getEntityId(), te); } String legName = ( (kaa.getLeg() == KickAttackAction.LEFT) || (kaa.getLeg() == KickAttackAction.LEFTMULE) ) ? "Left " : "Right "; if (game.getOptions().booleanOption("maxtech_mulekicks")) { if ( (kaa.getLeg() == KickAttackAction.LEFTMULE) || (kaa.getLeg() == KickAttackAction.RIGHTMULE) ) { legName.concat(" rear "); } else { legName.concat(" front "); } } legName.concat("leg"); Report r; // get damage, ToHitData and roll from the PhysicalResult int damage = pr.damage; final ToHitData toHit = pr.toHit; int roll = pr.roll; final boolean targetInBuilding = Compute.isInBuilding( game, te ); final boolean glancing = (game.getOptions().booleanOption("maxtech_glancing_blows") && (roll == toHit.getValue())); // Which building takes the damage? Building bldg = game.getBoard().getBuildingAt( target.getPosition() ); if (lastEntityId != ae.getId()) { //who is making the attacks r = new Report(4005); r.subject = ae.getId(); r.addDesc(ae); vPhaseReport.addElement(r); } r = new Report(4055); r.subject = ae.getId(); r.indent(); r.add(legName); r.add(target.getDisplayName()); r.newlines = 0; vPhaseReport.addElement(r); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { r = new Report(4060); r.subject = ae.getId(); r.add(toHit.getDesc()); vPhaseReport.addElement(r); game.addPSR(new PilotingRollData(ae.getId(), 0, "missed a kick")); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { r = new Report(4065); r.subject = ae.getId(); r.add(toHit.getDesc()); r.newlines = 0; vPhaseReport.addElement(r); roll = Integer.MAX_VALUE; } else { r = new Report(4025); r.subject = ae.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); if (glancing) { r = new Report(4030); r.subject = ae.getId(); r.newlines = 0; vPhaseReport.addElement(r); } } // do we hit? if (roll < toHit.getValue()) { // miss r = new Report(4035); r.subject = ae.getId(); vPhaseReport.addElement(r); game.addPSR(new PilotingRollData(ae.getId(), 0, "missed a kick")); // If the target is in a building, the building absorbs the damage. if ( targetInBuilding && bldg != null ) { // Only report if damage was done to the building. if ( damage > 0 ) { Report buildingReport = damageBuilding( bldg, damage ); buildingReport.indent(); buildingReport.subject = ae.getId(); vPhaseReport.addElement(buildingReport); } } return; } // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. r = new Report(4040); r.subject = ae.getId(); vPhaseReport.addElement(r); Report buildingReport = damageBuilding( bldg, damage ); buildingReport.indent(); buildingReport.subject = ae.getId(); vPhaseReport.addElement(buildingReport); // Damage any infantry in the hex. this.damageInfantryIn( bldg, damage ); // And we're done! return; } HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); r = new Report(4045); r.subject = ae.getId(); r.add(toHit.getTableDesc()); r.add(te.getLocationAbbr(hit)); r.newlines = 0; vPhaseReport.addElement(r); // The building shields all units from a certain amount of damage. // The amount is based upon the building's CF at the phase's start. if ( targetInBuilding && bldg != null ) { int bldgAbsorbs = (int) Math.ceil( bldg.getPhaseCF() / 10.0 ); int toBldg = Math.min( bldgAbsorbs, damage ); damage -= toBldg; Report.addNewline(vPhaseReport); Report buildingReport = damageBuilding( bldg, toBldg ); buildingReport.indent(); buildingReport.subject = ae.getId(); vPhaseReport.addElement(buildingReport); } // A building may absorb the entire shot. if ( damage == 0 ) { r = new Report(4050); r.subject = ae.getId(); r.add(te.getShortName()); r.add(te.getOwner().getName()); r.newlines = 0; vPhaseReport.addElement(r); } else { if (glancing) { damage = (int)Math.floor(damage/2.0); } vPhaseReport.addAll(damageEntity(te, hit, damage, false, 0, false, false, throughFront)); } if (te.getMovementMode() == IEntityMovementMode.BIPED || te.getMovementMode() == IEntityMovementMode.QUAD) { PilotingRollData kickPRD = new PilotingRollData(te.getId(), getKickPushPSRMod(ae, te, 0), "was kicked"); kickPRD.setCumulative(false); // see Bug# 811987 for more info game.addPSR(kickPRD); } Report.addNewline(vPhaseReport); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 47, 1200, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 1475, 1200, 3075, 484, 1803, 417, 7598, 273, 261, 47, 1200, 3075, 484, 1803, 13, 683, 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, 3238, 918, 2245, 47, 1200, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 1475, 1200, 3075, 484, 1803, 417, 7598, 273, 261, 47, 1200, 3075, 484, 1803, 13, 683, 18...
FragmentHandler handler = new FragmentHandler(_context, new DefragmentedReceiverImpl(m));
DefragmentedReceiverImpl handleReceiver = new DefragmentedReceiverImpl(pending.getData()); FragmentHandler handler = new FragmentHandler(_context, handleReceiver);
public void runSingle() { DataMessage m = new DataMessage(_context); byte data[] = new byte[949]; _context.random().nextBytes(data); m.setData(data); m.setUniqueId(42); m.setMessageExpiration(_context.clock().now() + 60*1000); ArrayList messages = new ArrayList(); TunnelGateway.Pending pending = new TunnelGateway.Pending(m, null, null); messages.add(pending); TrivialPreprocessor pre = new TrivialPreprocessor(_context); SenderImpl sender = new SenderImpl(); FragmentHandler handler = new FragmentHandler(_context, new DefragmentedReceiverImpl(m)); ReceiverImpl receiver = new ReceiverImpl(handler, 0); byte msg[] = m.toByteArray(); _log.debug("SEND(" + msg.length + "): " + Base64.encode(msg) + " " + _context.sha().calculateHash(msg).toBase64()); pre.preprocessQueue(messages, new SenderImpl(), receiver); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/3f9bf28382abb21a1d235b35b793d5d2b79e8bea/FragmentTest.java/clean/router/java/src/net/i2p/router/tunnel/FragmentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 5281, 1435, 288, 3639, 1910, 1079, 312, 273, 394, 1910, 1079, 24899, 2472, 1769, 3639, 1160, 501, 8526, 273, 394, 1160, 63, 29, 7616, 15533, 3639, 389, 2472, 18, 9188, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5281, 1435, 288, 3639, 1910, 1079, 312, 273, 394, 1910, 1079, 24899, 2472, 1769, 3639, 1160, 501, 8526, 273, 394, 1160, 63, 29, 7616, 15533, 3639, 389, 2472, 18, 9188, 76...