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
setFrameTitle(workspace.getSelectionPath()); }
setFrameTitle(workspace.getSelectionPath()); }
private void setFrameTitle() { setFrameTitle(workspace.getSelectionPath()); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/f94af58ea26e45e652a0675a1b989a8ae8feb7d3/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3219, 4247, 1435, 288, 3639, 444, 3219, 4247, 12, 14915, 18, 588, 6233, 743, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3219, 4247, 1435, 288, 3639, 444, 3219, 4247, 12, 14915, 18, 588, 6233, 743, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
FPUHelper.mul(os, eContext, vstack, JvmType.FLOAT); }
FPUHelper.mul(os, eContext, vstack, JvmType.FLOAT); }
public final void visit_fmul() { FPUHelper.mul(os, eContext, vstack, JvmType.FLOAT); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 74, 16411, 1435, 288, 202, 202, 42, 18061, 2276, 18, 16411, 12, 538, 16, 425, 1042, 16, 19510, 16, 12920, 559, 18, 15640, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 74, 16411, 1435, 288, 202, 202, 42, 18061, 2276, 18, 16411, 12, 538, 16, 425, 1042, 16, 19510, 16, 12920, 559, 18, 15640, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( activations == 0 ) {
if ( activations <= 1 ) { this.activations = 0;
public synchronized void checkActivation( char character, int buttonIndex, float position, float delta, boolean pressed, Object data ) { if ( buttonIndex == this.keyCode || this.keyCode == InputHandler.BUTTON_ALL ) { int activations = this.activations; char[] chars = this.chars; if ( activations == chars.length ) { char[] newChars = new char[activations + 3]; // allocate 3 at a time System.arraycopy( chars, 0, newChars, 0, activations ); this.chars = chars = newChars; int[] newKeyCodes = new int[activations + 3]; System.arraycopy( this.keyCodes, 0, newKeyCodes, 0, activations ); this.keyCodes = newKeyCodes; boolean[] newPressed = new boolean[activations + 3]; System.arraycopy( this.pressed, 0, newPressed, 0, activations ); this.pressed = newPressed; } chars[activations] = character; keyCodes[activations] = buttonIndex; if ( allowRepeats ) { if ( pressed ) { this.pressed[activations] = true; activate(); this.activations = activations + 1; } else { if ( activations == 0 ) { deactivate(); } } } else { this.pressed[activations] = pressed; activate(); this.activations = activations + 1; } } }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/3969fb33fcc40ad7e7ca25a1c9e70c2688c6cd4b/KeyboardInputHandlerDevice.java/buggy/src/com/jme/input/keyboard/KeyboardInputHandlerDevice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 866, 14857, 12, 1149, 3351, 16, 509, 3568, 1016, 16, 1431, 1754, 16, 1431, 3622, 16, 1250, 19504, 16, 1033, 501, 262, 288, 5411, 309, 261, 3568, 1016, 422, 333, 18, 856, 1085, 747, 333, 18, 856, 1085, 422, 2741, 1503, 18, 20068, 67, 4685, 262, 288, 7734, 509, 25751, 273, 333, 18, 11422, 1012, 31, 7734, 1149, 8526, 5230, 273, 333, 18, 7549, 31, 7734, 309, 261, 25751, 422, 5230, 18, 2469, 262, 288, 10792, 1149, 8526, 394, 7803, 273, 394, 1149, 63, 11422, 1012, 397, 890, 15533, 368, 10101, 890, 622, 279, 813, 10792, 2332, 18, 1126, 3530, 12, 5230, 16, 374, 16, 394, 7803, 16, 374, 16, 25751, 11272, 10792, 333, 18, 7549, 273, 5230, 273, 394, 7803, 31, 10792, 509, 8526, 16670, 6295, 273, 394, 509, 63, 11422, 1012, 397, 890, 15533, 10792, 2332, 18, 1126, 3530, 12, 333, 18, 856, 6295, 16, 374, 16, 16670, 6295, 16, 374, 16, 25751, 11272, 10792, 333, 18, 856, 6295, 273, 16670, 6295, 31, 10792, 1250, 8526, 394, 24624, 273, 394, 1250, 63, 11422, 1012, 397, 890, 15533, 10792, 2332, 18, 1126, 3530, 12, 333, 18, 10906, 16, 374, 16, 394, 24624, 16, 374, 16, 25751, 11272, 10792, 333, 18, 10906, 273, 394, 24624, 31, 7734, 289, 7734, 5230, 63, 11422, 1012, 65, 273, 3351, 31, 7734, 498, 6295, 63, 11422, 1012, 65, 273, 3568, 1016, 31, 7734, 309, 261, 1699, 426, 347, 2323, 262, 288, 10792, 309, 261, 19504, 262, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 866, 14857, 12, 1149, 3351, 16, 509, 3568, 1016, 16, 1431, 1754, 16, 1431, 3622, 16, 1250, 19504, 16, 1033, 501, 262, 288, 5411, 309, 261, 3568, 1016, 422, 333, 18, 856, 1085, 747, 333, 18, 856, 1085, 422, 2741, 1503, 18, 20068, 67, 4685, 262, 288, 7734, 509, 25751, 273, 333, 18, 11422, 1012, 31, 7734, 1149, 8526, 5230, 273, 333, 18, 7549, 31, 7734, 309, 261, 25751, 422, 5230, 18, 2469, 262, 288, 10792, 1149, 8526, 394, 7803, 273, 394, 1149, 63, 11422, 1012, 397, 890, 15533, 368, 10101, 890, 622, 279, 813, 10792, 2332, 18, 1126, 3530, 12, 5230, 16, 374, 16, 394, 7803, 16, 374, 16, 25751, 11272, 10792, 333, 18, 2 ]
if (!ary.includes(name)) { ary.append(name); } }
if (!ary.includes(name)) { ary.append(name); } }
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = type.getSuperClass()) { RubyModule realType = type.getNonIncludedClass(); for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); String methodName = (String) entry.getKey(); if (method.isUndefined()) { undefinedMethods.put(methodName, Boolean.TRUE); continue; } if (method.getImplementationClass() == realType && method.getVisibility().is(visibility) && undefinedMethods.get(methodName) == null) { RubyString name = getRuntime().newString(methodName); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 7734, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 7734, 514, 4918, 273, 261, 780, 13, 1241, 18, 588, 653, 5621, 7734, 309, 261, 2039, 18, 291, 10317, 10756, 288, 1171, 202, 5978, 4712, 18, 458, 12, 2039, 461, 16, 3411, 18, 18724, 1769, 1171, 202, 17143, 31, 7734, 289, 7734, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 597, 5397, 707, 18, 588, 10135, 7675, 291, 12, 14422, 13, 597, 3109, 4712, 18, 588, 12, 2039, 461, 13, 422, 446, 13, 288, 1171, 202, 54, 10340, 780, 508, 273, 18814, 7675, 2704, 780, 12, 2039, 461, 1769, 1171, 202, 430, 16051, 814, 18, 18499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 2 ]
/* Iterator iter = references.iterator();
Iterator iter = refTracker.getProcessedReferences();
public void end() throws RepositoryException { if (aborted) { // the import has been aborted, get outta here... return; } boolean succeeded = false; try { // check sanity of workspace/session first wsp.sanityCheck(); /** * adjust references that refer to uuid's which have been mapped to * newly gererated uuid's on import *//* Iterator iter = references.iterator(); while (iter.hasNext()) { PropertyState prop = (PropertyState) iter.next(); // being paranoid... if (prop.getType() != PropertyType.REFERENCE) { continue; } if (prop.getDefinition().isMultiple()) { Value[] values = prop.getValues(); Value[] newVals = new Value[values.length]; for (int i = 0; i < values.length; i++) { Value val = values[i]; String original = val.getString(); String adjusted = (String) uuidMap.get(original); if (adjusted != null) { newVals[i] = new ReferenceValue(wsp.getSession().getNodeByUUID(adjusted)); } else { // reference doesn't need adjusting, just copy old value newVals[i] = val; } } prop.setValue(newVals); } else { Value val = prop.getValue(); String original = val.getString(); String adjusted = (String) uuidMap.get(original); if (adjusted != null) { prop.setValue(session.getNodeByUUID(adjusted)); } } }*/ // finally store the state of the import target // (the parent of the imported subtree) stateMgr.store(importTarget); succeeded = true; } finally { if (!succeeded) { // update operation failed, cancel all modifications aborted = true; stateMgr.cancel(); } } if (!aborted) { try { // finish update stateMgr.update(); } catch (ItemStateException ise) { aborted = true; String msg = "internal error: failed to finish update operation"; log.debug(msg); throw new RepositoryException(msg, ise); } } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/8291daca329af590f8c770fe33de4a11c9a87ae9/WorkspaceImporter.java/buggy/src/java/org/apache/jackrabbit/core/xml/WorkspaceImporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1435, 1216, 13367, 288, 3639, 309, 261, 18623, 329, 13, 288, 5411, 368, 326, 1930, 711, 2118, 18166, 16, 336, 596, 2351, 2674, 2777, 5411, 327, 31, 3639, 289, 3639, 1250, 15784, 273, 629, 31, 3639, 775, 288, 5411, 368, 866, 16267, 434, 6003, 19, 3184, 1122, 5411, 341, 1752, 18, 87, 10417, 1564, 5621, 5411, 1783, 2398, 380, 5765, 5351, 716, 8884, 358, 3822, 1807, 1492, 1240, 2118, 5525, 358, 2398, 380, 10894, 314, 264, 19007, 3822, 1807, 603, 1930, 2398, 380, 759, 14, 5411, 4498, 1400, 273, 5351, 18, 9838, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 4276, 1119, 2270, 273, 261, 1396, 1119, 13, 1400, 18, 4285, 5621, 7734, 368, 3832, 779, 304, 839, 2777, 7734, 309, 261, 5986, 18, 588, 559, 1435, 480, 22983, 18, 14617, 13, 288, 10792, 1324, 31, 7734, 289, 7734, 309, 261, 5986, 18, 588, 1852, 7675, 291, 8438, 10756, 288, 10792, 1445, 8526, 924, 273, 2270, 18, 588, 1972, 5621, 10792, 1445, 8526, 394, 13169, 273, 394, 1445, 63, 2372, 18, 2469, 15533, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 924, 18, 2469, 31, 277, 27245, 288, 13491, 1445, 1244, 273, 924, 63, 77, 15533, 13491, 514, 2282, 273, 1244, 18, 588, 780, 5621, 13491, 514, 13940, 273, 261, 780, 13, 3822, 863, 18, 588, 12, 8830, 1769, 13491, 309, 261, 13362, 329, 480, 446, 13, 288, 18701, 394, 13169, 63, 77, 65, 273, 394, 6268, 620, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1435, 1216, 13367, 288, 3639, 309, 261, 18623, 329, 13, 288, 5411, 368, 326, 1930, 711, 2118, 18166, 16, 336, 596, 2351, 2674, 2777, 5411, 327, 31, 3639, 289, 3639, 1250, 15784, 273, 629, 31, 3639, 775, 288, 5411, 368, 866, 16267, 434, 6003, 19, 3184, 1122, 5411, 341, 1752, 18, 87, 10417, 1564, 5621, 5411, 1783, 2398, 380, 5765, 5351, 716, 8884, 358, 3822, 1807, 1492, 1240, 2118, 5525, 358, 2398, 380, 10894, 314, 264, 19007, 3822, 1807, 603, 1930, 2398, 380, 759, 14, 5411, 4498, 1400, 273, 5351, 18, 9838, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 4276, 1119, 2270, 273, 261, 1396, 1119, 13, 1400, 18, 4285, 5621, 2 ]
aspects.registerMixin(cuts.instancesOf(Dao.class), new Class[] { Identifiable.class }, IdentifiableMixin.class);
aspects.registerMixin(cuts.instancesOf(OrderEntity.class), IdentifiableMixin.class); pico.registerComponentImplementation("order1", OrderEntityImpl.class); pico.registerComponentImplementation("order2", OrderEntityImpl.class);
public void testContainerSuppliedMixin() { aspects.registerMixin(cuts.instancesOf(Dao.class), new Class[] { Identifiable.class }, IdentifiableMixin.class); pico.registerComponentImplementation(IdentifiableMixin.class); pico.registerComponentImplementation(Dao.class, DaoImpl.class); Dao dao = (Dao) pico.getComponentInstance(Dao.class); verifyMixin(dao); }
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/014c16c66079d007cb013ae6692db4be9066ddc0/DynaopAspectsManagerTestCase.java/clean/java/nanoaop/src/test/org/nanocontainer/nanoaop/dynaop/DynaopAspectsManagerTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2170, 3088, 3110, 14439, 1435, 288, 3639, 30494, 18, 4861, 14439, 12, 5150, 87, 18, 10162, 951, 12, 2448, 1943, 18, 1106, 3631, 13128, 8424, 14439, 18, 1106, 1769, 293, 10764, 18, 4861, 1841, 13621, 2932, 1019, 21, 3113, 4347, 1943, 2828, 18, 1106, 1769, 293, 10764, 18, 4861, 1841, 13621, 2932, 1019, 22, 3113, 4347, 1943, 2828, 18, 1106, 1769, 3639, 293, 10764, 18, 4861, 1841, 13621, 12, 6106, 8424, 14439, 18, 1106, 1769, 3639, 293, 10764, 18, 4861, 1841, 13621, 12, 11412, 18, 1106, 16, 463, 6033, 2828, 18, 1106, 1769, 3639, 463, 6033, 15229, 273, 261, 11412, 13, 293, 10764, 18, 588, 1841, 1442, 12, 11412, 18, 1106, 1769, 3639, 3929, 14439, 12, 2414, 83, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2170, 3088, 3110, 14439, 1435, 288, 3639, 30494, 18, 4861, 14439, 12, 5150, 87, 18, 10162, 951, 12, 2448, 1943, 18, 1106, 3631, 13128, 8424, 14439, 18, 1106, 1769, 293, 10764, 18, 4861, 1841, 13621, 2932, 1019, 21, 3113, 4347, 1943, 2828, 18, 1106, 1769, 293, 10764, 18, 4861, 1841, 13621, 2932, 1019, 22, 3113, 4347, 1943, 2828, 18, 1106, 1769, 3639, 293, 10764, 18, 4861, 1841, 13621, 12, 6106, 8424, 14439, 18, 1106, 1769, 3639, 293, 10764, 18, 4861, 1841, 13621, 12, 11412, 18, 1106, 16, 463, 6033, 2828, 18, 1106, 1769, 3639, 463, 6033, 15229, 273, 261, 11412, 13, 293, 10764, 18, 588, 1841, 1442, 12, 11412, 18, 1106, 1769, 3639, 3929, 14439, 2 ]
tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); tree = null; uninstallComponents(); completeUIUninstall();
super.uninstallUI(c);
public void uninstallUI(JComponent c) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(selectionModelPropertyChangeListener); tree.removeComponentListener(componentListener); tree.removeTreeExpansionListener(treeExpansionListener); TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); tree = null; uninstallComponents(); completeUIUninstall(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/badba23052f905d992da7c32124c28f4339931fc/MetalTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16577, 5370, 12, 46, 1841, 276, 13, 225, 288, 565, 2151, 18, 542, 5711, 12, 2011, 1769, 565, 2151, 18, 542, 23206, 12, 2011, 1769, 565, 2151, 18, 542, 8199, 12, 2011, 1769, 3639, 16577, 17872, 6100, 5621, 3639, 2151, 18, 4479, 1396, 15744, 12, 4468, 15744, 1769, 565, 2151, 18, 4479, 9233, 2223, 12, 13923, 2223, 1769, 565, 2151, 18, 4479, 2471, 6233, 2223, 12, 3413, 6233, 2223, 1769, 565, 2151, 18, 4479, 9186, 2223, 12, 11697, 2223, 1769, 565, 2151, 18, 4479, 653, 2223, 12, 856, 2223, 1769, 565, 2151, 18, 4479, 1396, 15744, 12, 10705, 1488, 1396, 15744, 1769, 565, 2151, 18, 4479, 1841, 2223, 12, 4652, 2223, 1769, 565, 2151, 18, 4479, 2471, 2966, 12162, 2223, 12, 3413, 2966, 12162, 2223, 1769, 565, 4902, 4020, 6946, 268, 311, 273, 2151, 18, 588, 4020, 6946, 5621, 565, 309, 261, 88, 311, 480, 446, 13, 1377, 268, 311, 18, 4479, 4020, 6946, 2223, 12, 3855, 6946, 2223, 1769, 565, 4902, 1488, 6118, 273, 2151, 18, 588, 1488, 5621, 565, 309, 261, 16925, 480, 446, 13, 1377, 6118, 18, 4479, 2471, 1488, 2223, 12, 3413, 1488, 2223, 1769, 3639, 2151, 273, 446, 31, 565, 16577, 7171, 5621, 565, 3912, 5370, 31103, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16577, 5370, 12, 46, 1841, 276, 13, 225, 288, 565, 2151, 18, 542, 5711, 12, 2011, 1769, 565, 2151, 18, 542, 23206, 12, 2011, 1769, 565, 2151, 18, 542, 8199, 12, 2011, 1769, 3639, 16577, 17872, 6100, 5621, 3639, 2151, 18, 4479, 1396, 15744, 12, 4468, 15744, 1769, 565, 2151, 18, 4479, 9233, 2223, 12, 13923, 2223, 1769, 565, 2151, 18, 4479, 2471, 6233, 2223, 12, 3413, 6233, 2223, 1769, 565, 2151, 18, 4479, 9186, 2223, 12, 11697, 2223, 1769, 565, 2151, 18, 4479, 653, 2223, 12, 856, 2223, 1769, 565, 2151, 18, 4479, 1396, 15744, 12, 10705, 1488, 1396, 15744, 1769, 565, 2151, 18, 4479, 1841, 2223, 12, 4652, 2223, 1769, 565, 2151, 18, 4479, 2 ]
return contents;
return new Object[][] { /** Error message ID that has a null message, but takes in a single object. */ {"ER0000" , "{0}" }, { ER_FUNCTION_NOT_SUPPORTED, "\u6a5f\u80fd\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093!"}, { ER_CANNOT_OVERWRITE_CAUSE, "cause \u3092\u4e0a\u66f8\u304d\u3067\u304d\u307e\u305b\u3093"}, { ER_NO_DEFAULT_IMPL, "\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30a4\u30f3\u30d7\u30ea\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093 "}, { ER_CHUNKEDINTARRAY_NOT_SUPPORTED, "\u73fe\u5728 ChunkedIntArray({0}) \u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093"}, { ER_OFFSET_BIGGER_THAN_SLOT, "\u30aa\u30d5\u30bb\u30c3\u30c8\u304c\u30b9\u30ed\u30c3\u30c8\u3088\u308a\u5927\u3067\u3059"}, { ER_COROUTINE_NOT_AVAIL, "\u9023\u643a\u30eb\u30fc\u30c1\u30f3\u304c\u4f7f\u7528\u53ef\u80fd\u3067\u3042\u308a\u307e\u305b\u3093\u3002id={0}"}, { ER_COROUTINE_CO_EXIT, "CoroutineManager \u304c co_exit() \u8981\u6c42\u3092\u53d7\u3051\u53d6\u308a\u307e\u3057\u305f"}, { ER_COJOINROUTINESET_FAILED, "co_joinCoroutineSet() \u304c\u5931\u6557\u3057\u307e\u3057\u305f"}, { ER_COROUTINE_PARAM, "\u9023\u643a\u30eb\u30fc\u30c1\u30f3\u30fb\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u30fb\u30a8\u30e9\u30fc ({0})"}, { ER_PARSER_DOTERMINATE_ANSWERS, "\n\u4e88\u60f3\u5916: \u30d1\u30fc\u30b5\u30fc doTerminate \u304c {0} \u3092\u5fdc\u7b54\u3057\u3066\u3044\u307e\u3059"}, { ER_NO_PARSE_CALL_WHILE_PARSING, "parse \u306f\u69cb\u6587\u89e3\u6790\u4e2d\u306b\u547c\u3073\u51fa\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093"}, { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED, "\u30a8\u30e9\u30fc: \u8ef8 {0} \u306e\u578b\u4ed8\u304d\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u306f\u30a4\u30f3\u30d7\u30ea\u30e1\u30f3\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093"}, { ER_ITERATOR_AXIS_NOT_IMPLEMENTED, "\u30a8\u30e9\u30fc: \u8ef8 {0} \u306e\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u306f\u30a4\u30f3\u30d7\u30ea\u30e1\u30f3\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093 "}, { ER_ITERATOR_CLONE_NOT_SUPPORTED, "\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u306e\u8907\u88fd\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093"}, { ER_UNKNOWN_AXIS_TYPE, "\u4e0d\u660e\u306e\u8ef8\u30c8\u30e9\u30d0\u30fc\u30b9\u30fb\u30bf\u30a4\u30d7: {0}"}, { ER_AXIS_NOT_SUPPORTED, "\u8ef8\u30c8\u30e9\u30d0\u30fc\u30b5\u30fc\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093: {0}"}, { ER_NO_DTMIDS_AVAIL, "\u4f7f\u7528\u53ef\u80fd\u306a DTM ID \u306f\u3053\u308c\u4ee5\u4e0a\u3042\u308a\u307e\u305b\u3093"}, { ER_NOT_SUPPORTED, "\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093: {0}"}, { ER_NODE_NON_NULL, "getDTMHandleFromNode \u306e\u30ce\u30fc\u30c9\u306f\u975e\u30cc\u30eb\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093"}, { ER_COULD_NOT_RESOLVE_NODE, "\u30ce\u30fc\u30c9\u3092\u30cf\u30f3\u30c9\u30eb\u306b\u89e3\u6c7a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f"}, { ER_STARTPARSE_WHILE_PARSING, "startParse \u306f\u69cb\u6587\u89e3\u6790\u4e2d\u306b\u547c\u3073\u51fa\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093"}, { ER_STARTPARSE_NEEDS_SAXPARSER, "startParse \u306b\u306f\u30cc\u30eb\u4ee5\u5916\u306e SAXParser \u304c\u5fc5\u8981\u3067\u3059"}, { ER_COULD_NOT_INIT_PARSER, "\u30d1\u30fc\u30b5\u30fc\u3092\u6b21\u3067\u521d\u671f\u5316\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f:"}, { ER_EXCEPTION_CREATING_POOL, "\u30d7\u30fc\u30eb\u306e\u65b0\u898f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u4e2d\u306b\u4f8b\u5916"}, { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE, "\u30d1\u30b9\u306b\u7121\u52b9\u306a\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059"}, { ER_SCHEME_REQUIRED, "\u30b9\u30ad\u30fc\u30e0\u304c\u5fc5\u8981\u3067\u3059!"}, { ER_NO_SCHEME_IN_URI, "\u30b9\u30ad\u30fc\u30e0\u306f URI {0} \u3067\u898b\u3064\u304b\u308a\u307e\u305b\u3093"}, { ER_NO_SCHEME_INURI, "\u30b9\u30ad\u30fc\u30e0\u306f URI \u3067\u898b\u3064\u304b\u308a\u307e\u305b\u3093"}, { ER_PATH_INVALID_CHAR, "\u30d1\u30b9\u306b\u7121\u52b9\u6587\u5b57: {0} \u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059"}, { ER_SCHEME_FROM_NULL_STRING, "\u30cc\u30eb\u30fb\u30b9\u30c8\u30ea\u30f3\u30b0\u304b\u3089\u306f\u30b9\u30ad\u30fc\u30e0\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_SCHEME_NOT_CONFORMANT, "\u30b9\u30ad\u30fc\u30e0\u306f\u4e00\u81f4\u3057\u3066\u3044\u307e\u305b\u3093\u3002"}, { ER_HOST_ADDRESS_NOT_WELLFORMED, "\u30db\u30b9\u30c8\u306f\u3046\u307e\u304f\u69cb\u6210\u3055\u308c\u305f\u30a2\u30c9\u30ec\u30b9\u3067\u3042\u308a\u307e\u305b\u3093"}, { ER_PORT_WHEN_HOST_NULL, "\u30db\u30b9\u30c8\u304c\u30cc\u30eb\u3067\u3042\u308b\u3068\u30dd\u30fc\u30c8\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_INVALID_PORT, "\u7121\u52b9\u306a\u30dd\u30fc\u30c8\u756a\u53f7"}, { ER_FRAG_FOR_GENERIC_URI, "\u7dcf\u79f0 URI \u306e\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u3057\u304b\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_FRAG_WHEN_PATH_NULL, "\u30d1\u30b9\u304c\u30cc\u30eb\u3067\u3042\u308b\u3068\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_FRAG_INVALID_CHAR, "\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u306b\u7121\u52b9\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059"}, { ER_PARSER_IN_USE, "\u30d1\u30fc\u30b5\u30fc\u306f\u3059\u3067\u306b\u4f7f\u7528\u4e2d\u3067\u3059"}, { ER_CANNOT_CHANGE_WHILE_PARSING, "\u69cb\u6587\u89e3\u6790\u4e2d\u306b {0} {1} \u3092\u5909\u66f4\u3067\u304d\u307e\u305b\u3093"}, { ER_SELF_CAUSATION_NOT_PERMITTED, "\u81ea\u5df1\u539f\u56e0\u306f\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093"}, { ER_NO_USERINFO_IF_NO_HOST, "\u30db\u30b9\u30c8\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f Userinfo \u3092\u6307\u5b9a\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093"}, { ER_NO_PORT_IF_NO_HOST, "\u30db\u30b9\u30c8\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093"}, { ER_NO_QUERY_STRING_IN_PATH, "\u7167\u4f1a\u30b9\u30c8\u30ea\u30f3\u30b0\u306f\u30d1\u30b9\u304a\u3088\u3073\u7167\u4f1a\u30b9\u30c8\u30ea\u30f3\u30b0\u5185\u306b\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_NO_FRAGMENT_STRING_IN_PATH, "\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u306f\u30d1\u30b9\u3068\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u306e\u4e21\u65b9\u306b\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093"}, { ER_CANNOT_INIT_URI_EMPTY_PARMS, "URI \u306f\u7a7a\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u521d\u671f\u5316\u3067\u304d\u307e\u305b\u3093"}, { ER_METHOD_NOT_SUPPORTED, "\u30e1\u30bd\u30c3\u30c9\u306f\u307e\u3060\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093 "}, { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE, "\u73fe\u5728 IncrementalSAXSource_Filter \u306f\u518d\u59cb\u52d5\u53ef\u80fd\u3067\u3042\u308a\u307e\u305b\u3093"}, { ER_XMLRDR_NOT_BEFORE_STARTPARSE, "XMLReader \u304c startParse \u8981\u6c42\u306e\u524d\u3067\u3042\u308a\u307e\u305b\u3093"}, { ER_AXIS_TRAVERSER_NOT_SUPPORTED, "\u8ef8\u30c8\u30e9\u30d0\u30fc\u30b5\u30fc\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093: {0}"}, { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER, "ListingErrorHandler \u304c\u30cc\u30eb PrintWriter \u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f!"}, { ER_SYSTEMID_UNKNOWN, "SystemId \u306f\u4e0d\u660e"}, { ER_LOCATION_UNKNOWN, "\u30a8\u30e9\u30fc\u306e\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u4e0d\u660e"}, { ER_PREFIX_MUST_RESOLVE, "\u63a5\u982d\u90e8\u306f\u30cd\u30fc\u30e0\u30fb\u30b9\u30da\u30fc\u30b9\u306b\u89e3\u6c7a\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093: {0}"}, { ER_CREATEDOCUMENT_NOT_SUPPORTED, "createDocument() \u306f XPathContext \u5185\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u305b\u3093!"}, { ER_CHILD_HAS_NO_OWNER_DOCUMENT, "\u5c5e\u6027\u306e\u5b50\u306b\u6240\u6709\u8005\u6587\u66f8\u304c\u3042\u308a\u307e\u305b\u3093!"}, { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT, "\u5c5e\u6027\u306e\u5b50\u306b\u6240\u6709\u8005\u6587\u66f8\u30a8\u30ec\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093!"}, { ER_CANT_OUTPUT_TEXT_BEFORE_DOC, "\u8b66\u544a: \u6587\u66f8\u30a8\u30ec\u30e1\u30f3\u30c8\u306e\u524d\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u305b\u3093! \u7121\u8996\u3057\u3066\u3044\u307e\u3059..."}, { ER_CANT_HAVE_MORE_THAN_ONE_ROOT, "DOM \u3067\u306f\u8907\u6570\u306e\u30eb\u30fc\u30c8\u3092\u3082\u3066\u307e\u305b\u3093!"}, { ER_ARG_LOCALNAME_NULL, "\u5f15\u304d\u6570 'localName' \u304c\u30cc\u30eb\u3067\u3059\u3002"}, { ER_ARG_LOCALNAME_INVALID, "QNAME \u5185\u306e\u30ed\u30fc\u30ab\u30eb\u540d\u306f\u6709\u52b9\u306a NCName \u3067\u3042\u308b\u306f\u305a\u3067\u3059"}, { ER_ARG_PREFIX_INVALID, "QNAME \u5185\u306e\u63a5\u982d\u90e8\u306f\u6709\u52b9\u306a NCName \u3067\u3042\u308b\u306f\u305a\u3067\u3059"}, { "BAD_CODE", "createMessage \u3078\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c\u5883\u754c\u5916\u3067\u3057\u305f\u3002"}, { "FORMAT_FAILED", "messageFormat \u547c\u3073\u51fa\u3057\u4e2d\u306b\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f\u3002"}, { "line", "\u884c #"}, { "column","\u6841 #"}, {ER_SERIALIZER_NOT_CONTENTHANDLER, "\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30fc\u30fb\u30af\u30e9\u30b9 ''{0}'' \u306f org.xml.sax.ContentHandler \u3092\u30a4\u30f3\u30d7\u30ea\u30e1\u30f3\u30c8\u3057\u307e\u305b\u3093\u3002"}, {ER_RESOURCE_COULD_NOT_FIND, "\u30ea\u30bd\u30fc\u30b9 [ {0} ] \u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\n {1}" }, {ER_RESOURCE_COULD_NOT_LOAD, "\u30ea\u30bd\u30fc\u30b9 [ {0} ] \u3092\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f: {1} \n {2} \t {3}" }, {ER_BUFFER_SIZE_LESSTHAN_ZERO, "\u30d0\u30c3\u30d5\u30a1\u30fc\u30fb\u30b5\u30a4\u30ba <=0" }, {ER_INVALID_UTF16_SURROGATE, "\u7121\u52b9\u306a UTF-16 \u30b5\u30ed\u30b2\u30fc\u30c8\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f: {0} ?" }, {ER_OIERROR, "\u5165\u51fa\u529b\u30a8\u30e9\u30fc" }, {ER_ILLEGAL_ATTRIBUTE_POSITION, "\u4e0b\u4f4d\u30ce\u30fc\u30c9\u306e\u5f8c\u307e\u305f\u306f\u30a8\u30ec\u30e1\u30f3\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u524d\u306b\u5c5e\u6027 {0} \u3092\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u3002\u5c5e\u6027\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002"}, /* * Note to translators: The stylesheet contained a reference to a * namespace prefix that was undefined. The value of the substitution * text is the name of the prefix. */ {ER_NAMESPACE_PREFIX, "\u63a5\u982d\u90e8 ''{0}'' \u306e\u30cd\u30fc\u30e0\u30fb\u30b9\u30da\u30fc\u30b9\u304c\u5ba3\u8a00\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002" }, /* * Note to translators: This message is reported if the stylesheet * being processed attempted to construct an XML document with an * attribute in a place other than on an element. The substitution text * specifies the name of the attribute. */ {ER_STRAY_ATTRIBUTE, "\u5c5e\u6027 ''{0}'' \u304c\u30a8\u30ec\u30e1\u30f3\u30c8\u306e\u5916\u5074\u3067\u3059\u3002" }, /* * Note to translators: As with the preceding message, a namespace * declaration has the form of an attribute and is only permitted to * appear on an element. The substitution text {0} is the namespace * prefix and {1} is the URI that was being used in the erroneous * namespace declaration. */ {ER_STRAY_NAMESPACE, "\u30cd\u30fc\u30e0\u30fb\u30b9\u30da\u30fc\u30b9\u5ba3\u8a00 ''{0}''=''{1}'' \u304c\u30a8\u30ec\u30e1\u30f3\u30c8\u306e\u5916\u5074\u3067\u3059\u3002" }, {ER_COULD_NOT_LOAD_RESOURCE, "''{0}'' \u3092\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f (CLASSPATH \u3092\u8abf\u3079\u3066\u304f\u3060\u3055\u3044)\u3002\u73fe\u5728\u306f\u5358\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002"}, {ER_COULD_NOT_LOAD_METHOD_PROPERTY, "\u51fa\u529b\u30e1\u30bd\u30c3\u30c9 ''{1}'' \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u30fb\u30d5\u30a1\u30a4\u30eb ''{0}'' \u3092\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f (CLASSPATH \u3092\u78ba\u8a8d)" } };
public Object[][] getContents() { return contents; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2d07c253b814672a82d969836d58577bfa628b88/XMLErrorResources_ja.java/clean/src/org/apache/xml/res/XMLErrorResources_ja.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 63, 6362, 65, 15015, 1435, 225, 288, 565, 327, 394, 1033, 63, 6362, 65, 288, 225, 1783, 1068, 883, 1599, 716, 711, 279, 446, 883, 16, 1496, 5530, 316, 279, 2202, 733, 18, 565, 1195, 12528, 654, 2787, 6, 269, 4144, 20, 1532, 19879, 225, 288, 4232, 67, 7788, 67, 4400, 67, 21134, 16, 1548, 89, 26, 69, 25, 74, 64, 89, 3672, 8313, 64, 89, 29490, 74, 64, 89, 5082, 70, 25, 64, 89, 5082, 449, 64, 89, 5082, 7142, 64, 89, 5082, 71, 28, 64, 89, 5082, 2539, 64, 89, 5082, 28, 71, 64, 89, 5082, 6028, 64, 89, 23, 3028, 24, 64, 89, 5082, 27, 73, 64, 89, 5082, 25, 70, 64, 89, 5082, 11180, 4442, 5779, 225, 288, 4232, 67, 39, 16791, 67, 12959, 11677, 67, 3587, 8001, 16, 315, 2700, 521, 89, 5082, 9975, 64, 89, 24, 73, 20, 69, 64, 89, 6028, 74, 28, 64, 89, 23, 3028, 72, 64, 89, 5082, 9599, 64, 89, 23, 3028, 72, 64, 89, 5082, 27, 73, 64, 89, 5082, 25, 70, 64, 89, 5082, 11180, 6, 5779, 225, 288, 4232, 67, 3417, 67, 5280, 67, 3445, 6253, 16, 1548, 89, 5082, 71, 27, 64, 89, 5082, 72, 25, 64, 89, 5082, 69, 29, 64, 89, 5082, 24008, 64, 89, 5082, 71, 28, 64, 89, 5082, 19192, 64, 89, 5082, 69, 24, 64, 89, 5082, 74, 23, 64, 89, 5082, 72, 27, 64, 89, 5082, 24852, 64, 89, 5082, 73, 21, 64, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 63, 6362, 65, 15015, 1435, 225, 288, 565, 327, 394, 1033, 63, 6362, 65, 288, 225, 1783, 1068, 883, 1599, 716, 711, 279, 446, 883, 16, 1496, 5530, 316, 279, 2202, 733, 18, 565, 1195, 12528, 654, 2787, 6, 269, 4144, 20, 1532, 19879, 225, 288, 4232, 67, 7788, 67, 4400, 67, 21134, 16, 1548, 89, 26, 69, 25, 74, 64, 89, 3672, 8313, 64, 89, 29490, 74, 64, 89, 5082, 70, 25, 64, 89, 5082, 449, 64, 89, 5082, 7142, 64, 89, 5082, 71, 28, 64, 89, 5082, 2539, 64, 89, 5082, 28, 71, 64, 89, 5082, 6028, 64, 89, 23, 3028, 24, 64, 89, 5082, 27, 73, 64, 89, 5082, 25, 70, 64, 89, 2 ]
if ( bLabelShadowEnabled ) { if ( bRenderAxisLabels ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } }
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWith2DAxes pwa = (PlotWith2DAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; boolean bLabelShadowEnabled = ( ax.getLabel( ).getShadowColor( ) != null ); int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } Label la = ax.getLabel( ); final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( pl, TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); if ( iOrientation == IConstants.VERTICAL ) { int y; double dX = dLocation; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHCosTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = -dUnitSize / 2; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ) { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); } } } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = -dUnitSize / 2; } } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // RENDER AXIS LABELS ONLY IF // REQUESTED { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue *= dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // RENDER LABELS ONLY IF REQUESTED { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, null, df ); // TBD: SET LOCALE CORRECTLY } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue += dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; double dY = dLocation; double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHSineTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // ONLY PROCESS IF AXES LABELS ARE // VISIBLE OR REQUESTED FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } x = (int) da[i]; lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); } } } double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue += dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue *= dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } } double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); // RESTORE BACK TO AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdb7b6c5463f7273d9f1038e97552808a8df1f58/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 22, 9793, 92, 281, 8772, 69, 273, 261, 11532, 1190, 22, 9793, 92, 281, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 1042, 12, 262, 18, 588, 3651, 1503, 12, 11272, 202, 202, 9056, 302, 2735, 273, 1740, 18, 588, 6558, 13503, 12, 11272, 202, 202, 9056, 302, 8467, 382, 24400, 273, 1740, 18, 588, 2224, 12, 262, 9506, 202, 18, 588, 21158, 12, 262, 9506, 202, 18, 588, 5711, 12, 262, 9506, 202, 18, 588, 14032, 12, 11272, 202, 202, 4965, 5587, 888, 273, 1740, 18, 588, 5587, 12, 11272, 202, 202, 23634, 620, 4674, 273, 1740, 18, 588, 23634, 620, 12, 11272, 202, 202, 474, 277, 17581, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 18, 588, 6264, 2885, 12, 467, 2918, 18, 26976, 916, 11272, 202, 202, 474, 277, 19549, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 18, 588, 6264, 2885, 12, 467, 2918, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 22, 9793, 92, 281, 8772, 69, 273, 261, 11532, 1190, 22, 9793, 92, 281, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 2 ]
public void intervalRemoved(ListDataEvent value0) { }
public void intervalRemoved(ListDataEvent event) { repaint(); }
public void intervalRemoved(ListDataEvent value0) { // TODO } // intervalRemoved()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JComboBox.java/buggy/core/src/classpath/javax/javax/swing/JComboBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3673, 10026, 12, 682, 751, 1133, 460, 20, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 3673, 10026, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3673, 10026, 12, 682, 751, 1133, 460, 20, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 3673, 10026, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
folder=cms.rootFolder().getAbsolutePath();
folder=cms.rootFolder().getAbsolutePath();
public Object getNavTree(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObject) throws CmsException { int level=0; int depth=0; // if level is zero or null or negative then all folders recursive must // be showed starting from root folder unless all folders stating from // specified level of parent folder. if (!tagcontent.equals("")) { try { level=Integer.parseInt(tagcontent.substring(0,tagcontent.indexOf(","))); depth=Integer.parseInt(tagcontent.substring(tagcontent.indexOf(",")+1)); } catch(NumberFormatException e) { throw new CmsException(e.getMessage()); } } String folder=""; if (level<=0) { folder=cms.rootFolder().getAbsolutePath(); } else { folder=extractFolder(cms,level); } Vector resources=cms.getSubFolders(folder); Vector allFile=cms.getFilesInFolder(folder); resources.ensureCapacity(resources.size() + allFile.size()); Enumeration e = allFile.elements(); while (e.hasMoreElements()) { resources.addElement(e.nextElement()); } String requestedUri = cms.getRequestContext().getUri(); String currentFolder=cms.getRequestContext().currentFolder().getAbsolutePath(); String servletPath = ((HttpServletRequest)cms.getRequestContext().getRequest().getOriginalRequest()).getServletPath(); CmsXmlTemplateFile xmlDataBlock=(CmsXmlTemplateFile)doc; String result=""; // check wheather xml data blocks are defined. if (xmlDataBlock.hasData("navEntry")) { if (!xmlDataBlock.hasData("navCurrent")) { xmlDataBlock.setData("navCurrent", xmlDataBlock.getData("navEntry")); } if (!xmlDataBlock.hasData("navTreeStart")) { xmlDataBlock.setData("navTreeStart", ""); } if (!xmlDataBlock.hasData("navTreeEnd")) { xmlDataBlock.setData("navTreeEnd", ""); } result=buildNavTree(cms,xmlDataBlock,userObject,resources,requestedUri,currentFolder,servletPath,level,depth); } return result.getBytes(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e830ba5cf98ad761b43337a5f53977c1a7689de2/CmsXmlNav.java/buggy/src/com/opencms/defaults/CmsXmlNav.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 11069, 842, 2471, 12, 4747, 921, 6166, 16, 514, 1047, 1745, 16, 432, 67, 4747, 27415, 997, 16, 1033, 729, 921, 13, 1082, 202, 15069, 11228, 288, 202, 202, 474, 1801, 33, 20, 31, 202, 202, 474, 3598, 33, 20, 31, 202, 202, 759, 309, 1801, 353, 3634, 578, 446, 578, 6092, 1508, 777, 9907, 5904, 1297, 202, 202, 759, 506, 2405, 329, 5023, 628, 1365, 3009, 3308, 777, 9907, 610, 310, 628, 202, 202, 759, 1269, 1801, 434, 982, 3009, 18, 202, 202, 430, 16051, 2692, 1745, 18, 14963, 2932, 6, 3719, 288, 1082, 202, 698, 288, 9506, 202, 2815, 33, 4522, 18, 2670, 1702, 12, 2692, 1745, 18, 28023, 12, 20, 16, 2692, 1745, 18, 31806, 2932, 10837, 3719, 1769, 9506, 202, 5979, 33, 4522, 18, 2670, 1702, 12, 2692, 1745, 18, 28023, 12, 2692, 1745, 18, 31806, 2932, 16, 7923, 15, 21, 10019, 1082, 202, 97, 1044, 12, 1854, 9291, 425, 13, 288, 9506, 202, 12849, 394, 11228, 12, 73, 18, 24906, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 780, 3009, 1546, 14432, 202, 202, 430, 261, 2815, 32, 33, 20, 13, 288, 1082, 202, 5609, 33, 6851, 18, 3085, 3899, 7675, 588, 10368, 743, 5621, 202, 202, 97, 469, 288, 1082, 202, 5609, 33, 8004, 3899, 12, 6851, 16, 2815, 1769, 202, 202, 97, 202, 202, 5018, 2703, 33, 6851, 18, 588, 1676, 14885, 12, 5609, 1769, 202, 202, 5018, 777, 812, 33, 6851, 18, 588, 2697, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 11069, 842, 2471, 12, 4747, 921, 6166, 16, 514, 1047, 1745, 16, 432, 67, 4747, 27415, 997, 16, 1033, 729, 921, 13, 1082, 202, 15069, 11228, 288, 202, 202, 474, 1801, 33, 20, 31, 202, 202, 474, 3598, 33, 20, 31, 202, 202, 759, 309, 1801, 353, 3634, 578, 446, 578, 6092, 1508, 777, 9907, 5904, 1297, 202, 202, 759, 506, 2405, 329, 5023, 628, 1365, 3009, 3308, 777, 9907, 610, 310, 628, 202, 202, 759, 1269, 1801, 434, 982, 3009, 18, 202, 202, 430, 16051, 2692, 1745, 18, 14963, 2932, 6, 3719, 288, 1082, 202, 698, 288, 9506, 202, 2815, 33, 4522, 18, 2670, 1702, 12, 2692, 1745, 18, 28023, 12, 20, 16, 2692, 2 ]
setLinkRanges(text, item.getLinkRanges());
setLinkRanges(text, getItem().getLinkRanges());
private void updateInfoArea(AboutInfo info) { if (info == null) { imageLabel.setImage(null); text.setText(""); //$NON-NLS-1$ return; } ImageDescriptor desc = info.getFeatureImage(); Image image = (Image)cachedImages.get(desc); if (image == null && desc != null) { image = desc.createImage(); cachedImages.put(desc, image); } imageLabel.setImage(image); String aboutText = info.getAboutText(); item = null; if (aboutText != null) { // get an about item item = scan(aboutText); } if (item == null) text.setText(WorkbenchMessages.getString("AboutFeaturesDialog.noInformation")); else { text.setText(item.getText()); text.setCursor(null); setLinkRanges(text, item.getLinkRanges()); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/aad51dfaddc72e86744ea23938d289b2a66a7393/AboutFeaturesDialog.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 966, 5484, 12, 24813, 966, 1123, 13, 288, 202, 202, 430, 261, 1376, 422, 446, 13, 288, 1082, 202, 2730, 2224, 18, 542, 2040, 12, 2011, 1769, 1082, 202, 955, 18, 542, 1528, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2040, 3187, 3044, 273, 1123, 18, 588, 4595, 2040, 5621, 202, 202, 2040, 1316, 273, 225, 261, 2040, 13, 7097, 8946, 18, 588, 12, 5569, 1769, 202, 202, 430, 261, 2730, 422, 446, 597, 3044, 480, 446, 13, 288, 1082, 202, 2730, 273, 3044, 18, 2640, 2040, 5621, 1082, 202, 7097, 8946, 18, 458, 12, 5569, 16, 1316, 1769, 202, 202, 97, 202, 202, 2730, 2224, 18, 542, 2040, 12, 2730, 1769, 202, 202, 780, 2973, 1528, 273, 1123, 18, 588, 24813, 1528, 5621, 202, 202, 1726, 273, 446, 31, 202, 202, 430, 261, 21071, 1528, 480, 446, 13, 288, 1082, 202, 759, 336, 392, 2973, 761, 1082, 202, 1726, 273, 4135, 12, 21071, 1528, 1769, 202, 202, 97, 202, 202, 430, 261, 1726, 422, 446, 13, 1082, 202, 955, 18, 542, 1528, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 24813, 8696, 6353, 18, 2135, 5369, 7923, 1769, 202, 202, 12107, 288, 1082, 202, 955, 18, 542, 1528, 12, 1726, 18, 588, 1528, 10663, 9506, 202, 955, 18, 542, 6688, 12, 2011, 1769, 1082, 202, 542, 2098, 9932, 12, 955, 16, 761, 18, 588, 2098, 9932, 10663, 202, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 966, 5484, 12, 24813, 966, 1123, 13, 288, 202, 202, 430, 261, 1376, 422, 446, 13, 288, 1082, 202, 2730, 2224, 18, 542, 2040, 12, 2011, 1769, 1082, 202, 955, 18, 542, 1528, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2040, 3187, 3044, 273, 1123, 18, 588, 4595, 2040, 5621, 202, 202, 2040, 1316, 273, 225, 261, 2040, 13, 7097, 8946, 18, 588, 12, 5569, 1769, 202, 202, 430, 261, 2730, 422, 446, 597, 3044, 480, 446, 13, 288, 1082, 202, 2730, 273, 3044, 18, 2640, 2040, 5621, 1082, 202, 7097, 8946, 18, 458, 12, 5569, 16, 1316, 1769, 202, 202, 97, 202, 2 ]
if ( patternStr == null )
if ( pattern == null )
public String getFormatString( ) { if ( category == null && patternStr == null ) { return null; } if ( category == null ) { category = ""; //$NON-NLS-1$ } if ( patternStr == null ) { patternStr = ""; //$NON-NLS-1$ } // special case: when pattern equals category, omits(eliminatess) the // pattern, only returns the category.-----> for parameter dialog use. if ( category.equals( patternStr ) ) { return category; } return category + ":" + patternStr; //$NON-NLS-1$ }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a037c90be1076dbd56aea4fca2068d72d718af1c/FormatNumberPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 10959, 780, 12, 262, 202, 95, 202, 202, 430, 261, 3150, 422, 446, 597, 1936, 1585, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 261, 3150, 422, 446, 262, 202, 202, 95, 1082, 202, 4743, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 430, 261, 1936, 1585, 422, 446, 262, 202, 202, 95, 1082, 202, 4951, 1585, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 759, 4582, 648, 30, 1347, 1936, 1606, 3150, 16, 8068, 1282, 12, 292, 381, 267, 270, 403, 13, 326, 202, 202, 759, 1936, 16, 1338, 1135, 326, 3150, 18, 553, 2122, 364, 1569, 6176, 999, 18, 202, 202, 430, 261, 3150, 18, 14963, 12, 1936, 1585, 262, 262, 202, 202, 95, 1082, 202, 2463, 3150, 31, 202, 202, 97, 202, 202, 2463, 3150, 397, 6153, 397, 1936, 1585, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 10959, 780, 12, 262, 202, 95, 202, 202, 430, 261, 3150, 422, 446, 597, 1936, 1585, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 261, 3150, 422, 446, 262, 202, 202, 95, 1082, 202, 4743, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 430, 261, 1936, 1585, 422, 446, 262, 202, 202, 95, 1082, 202, 4951, 1585, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 759, 4582, 648, 30, 1347, 1936, 1606, 3150, 16, 8068, 1282, 12, 292, 381, 267, 270, 403, 13, 326, 202, 202, 759, 1936, 16, 1338, 1135, 326, 2 ]
flags[bit] = true;
checkFlag(bit); flags |= (1 << (15 - bit));
setFlag(int bit) { flags[bit] = true;}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/993d2b256ee15a26a02519f233d3773e2d98394b/Header.java/clean/org/xbill/DNS/Header.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 4678, 12, 474, 2831, 13, 288, 202, 7133, 63, 3682, 65, 273, 638, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 4678, 12, 474, 2831, 13, 288, 202, 7133, 63, 3682, 65, 273, 638, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PsiStatement statement, String newStatement)
PsiStatement statement, String newStatementText)
protected static void replaceStatementAndShortenClassNames( PsiStatement statement, String newStatement) throws IncorrectOperationException{ final PsiManager psiManager = statement.getManager(); final PsiElementFactory factory = psiManager.getElementFactory(); final PsiStatement newExp = factory.createStatementFromText(newStatement, statement); final PsiElement replacementStatement = statement.replace(newExp); final CodeStyleManager styleManager = psiManager.getCodeStyleManager(); styleManager.shortenClassReferences(replacementStatement); styleManager.reformat(replacementStatement); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d9f02a04761361315c85b2241e72b5b4e4c60eba/InspectionGadgetsFix.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsFix.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 1453, 3406, 1876, 4897, 275, 18127, 12, 5411, 453, 7722, 3406, 3021, 16, 514, 394, 3406, 1528, 13, 5411, 1216, 657, 6746, 10602, 95, 3639, 727, 453, 7722, 1318, 23921, 1318, 273, 3021, 18, 588, 1318, 5621, 3639, 727, 453, 7722, 1046, 1733, 3272, 273, 23921, 1318, 18, 21336, 1733, 5621, 3639, 727, 453, 7722, 3406, 394, 2966, 273, 7734, 3272, 18, 2640, 3406, 1265, 1528, 12, 2704, 3406, 16, 3021, 1769, 3639, 727, 453, 7722, 1046, 6060, 3406, 273, 3021, 18, 2079, 12, 2704, 2966, 1769, 3639, 727, 3356, 2885, 1318, 2154, 1318, 273, 23921, 1318, 18, 588, 1085, 2885, 1318, 5621, 3639, 2154, 1318, 18, 6620, 275, 797, 8221, 12, 24394, 3406, 1769, 3639, 2154, 1318, 18, 266, 2139, 12, 24394, 3406, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 1453, 3406, 1876, 4897, 275, 18127, 12, 5411, 453, 7722, 3406, 3021, 16, 514, 394, 3406, 1528, 13, 5411, 1216, 657, 6746, 10602, 95, 3639, 727, 453, 7722, 1318, 23921, 1318, 273, 3021, 18, 588, 1318, 5621, 3639, 727, 453, 7722, 1046, 1733, 3272, 273, 23921, 1318, 18, 21336, 1733, 5621, 3639, 727, 453, 7722, 3406, 394, 2966, 273, 7734, 3272, 18, 2640, 3406, 1265, 1528, 12, 2704, 3406, 16, 3021, 1769, 3639, 727, 453, 7722, 1046, 6060, 3406, 273, 3021, 18, 2079, 12, 2704, 2966, 1769, 3639, 727, 3356, 2885, 1318, 2154, 1318, 273, 23921, 1318, 18, 588, 1085, 2885, 1318, 5621, 3639, 2154, 1318, 18, 6620, 275, 797, 8221, 12, 24394, 3406, 1769, 2 ]
Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);
Subject subj = null; try { subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e1) { e1.printStackTrace(); }
public void testMoF() { Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); GrouperSession s = GrouperSession.start(subj); // Create ns0 GrouperStem ns0 = GrouperStem.create( s, Constants.ns0s, Constants.ns0e ); // Create gA GrouperGroup gA = GrouperGroup.create( s, Constants.gAs, Constants.gAe ); // Create gB GrouperGroup gB = GrouperGroup.create( s, Constants.gBs, Constants.gBe ); // Create gC GrouperGroup gC = GrouperGroup.create( s, Constants.gCs, Constants.gCe ); // Load m0 GrouperMember m0 = GrouperMember.load( s, Constants.mem0I, Constants.mem0T ); // Add gB to gC's "members" try { gC.listAddVal(gB.toMember()); } catch (RuntimeException e) { Assert.fail("add gB to gC"); } // Add gA to gB's "members" try { gB.listAddVal(gA.toMember()); } catch (RuntimeException e) { Assert.fail("add gA to gB"); } // Add m0 to gA's "members" try { gA.listAddVal(m0); } catch (RuntimeException e) { Assert.fail("add m0 to gA"); } /* * m0 -> gA */ // Now inspect gA's resulting list values Assert.assertTrue( "gA members == 1", gA.listVals("members").size() == 1 ); Assert.assertTrue( "gA imm members == 1", gA.listImmVals("members").size() == 1 ); Assert.assertTrue( "gA eff members == 0", gA.listEffVals("members").size() == 0 ); Iterator iterAI = gA.listImmVals().iterator(); while (iterAI.hasNext()) { GrouperList lv = (GrouperList) iterAI.next(); Assert.assertTrue("gA empty chain", lv.chain().size() == 0); Assert.assertNull("gA null via", lv.via()); } /* * gA -> gB * m0 -> gA -> gB * => gA -> gB */ // Now inspect gB's resulting list values Assert.assertTrue( "gB members == 2", gB.listVals("members").size() == 2 ); Assert.assertTrue( "gB imm members == 1", gB.listImmVals("members").size() == 1 ); Assert.assertTrue( "gB eff members == 1", gB.listEffVals("members").size() == 1 ); Iterator iterBI = gB.listImmVals().iterator(); while (iterBI.hasNext()) { GrouperList lv = (GrouperList) iterBI.next(); Assert.assertTrue("gB empty chain", lv.chain().size() == 0); Assert.assertNull("gB null via", lv.via()); } Iterator iterBE = gB.listEffVals().iterator(); while (iterBE.hasNext()) { GrouperList lv = (GrouperList) iterBE.next(); Assert.assertTrue("gB chain == 1", lv.chain().size() == 1); Assert.assertNotNull("gB !null via", lv.via()); Assert.assertEquals("gB member() == m0", m0, lv.member()); Assert.assertEquals("gB via() == gA", gA, lv.via()); Iterator iterVia = lv.chain().iterator(); while (iterVia.hasNext()) { MemberVia mv = (MemberVia) iterVia.next(); GrouperList lvv = mv.toList(s); Assert.assertTrue("gB via g == gB", lvv.group().equals(gB)); Assert.assertTrue( "gB via m == gA", lvv.member().toGroup().equals(gA) ); } } /* * gB -> gC * gA -> gB -> gC * => gB -> gC * m0 -> gA -> gB -> gC * => gA -> gB * => gB -> gC */ // Now inspect gC's resulting list values Assert.assertTrue( "gC members == 3", gC.listVals("members").size() == 3 ); Assert.assertTrue( "gC imm members == 1", gC.listImmVals("members").size() == 1 ); Assert.assertTrue( "gC eff members == 2", gC.listEffVals("members").size() == 2 ); Iterator iterCI = gC.listImmVals().iterator(); while (iterCI.hasNext()) { GrouperList lv = (GrouperList) iterCI.next(); Assert.assertTrue("gC empty chain", lv.chain().size() == 0); Assert.assertNull("gC null via", lv.via()); } Iterator iterCE = gC.listEffVals().iterator(); while (iterCE.hasNext()) { GrouperList lv = (GrouperList) iterCE.next(); if (lv.chain().size() == 1) { Assert.assertTrue("gC chain == 1", true); Assert.assertNotNull("gC (1) !null via", lv.via()); Assert.assertEquals("gC (1) member() == gA", gA.toMember(), lv.member()); Assert.assertEquals("gC (1) via() == gB", gB, lv.via()); Iterator iterVia = lv.chain().iterator(); while (iterVia.hasNext()) { MemberVia mv = (MemberVia) iterVia.next(); GrouperList lvv = mv.toList(s); Assert.assertTrue("gC (1) via g == gC", lvv.group().equals(gC)); Assert.assertTrue( "gC (1) via m == gB", lvv.member().toGroup().equals(gB)); } } else if (lv.chain().size() == 2) { Assert.assertTrue("gC chain == 2", true); Assert.assertNotNull("gC (2) !null via", lv.via()); Assert.assertEquals("gC (2) member() == m0", m0, lv.member()); Assert.assertEquals("gC (2) via() == gA", gA, lv.via()); int idx = 0; Iterator iterVia = lv.chain().iterator(); while (iterVia.hasNext()) { MemberVia mv = (MemberVia) iterVia.next(); GrouperList lvv = mv.toList(s); if (idx == 0) { // gA -> gB Assert.assertTrue("gC (2)[0] via g == gB", lvv.group().equals(gB)); Assert.assertTrue( "gC (2)[0] via m == gA", lvv.member().toGroup().equals(gA) ); Assert.assertNull("gC (2)[0] !via", lvv.via()); } else { // gB -> gC Assert.assertTrue("gC (2)[1] via g == gC", lvv.group().equals(gC)); Assert.assertTrue( "gC (2)[1] via m == gB", lvv.member().toGroup().equals(gB) ); Assert.assertNull("gC (2)[1] !via", lvv.via()); } idx++; } } else { Assert.fail("gC chain (1,2) != " + lv.chain().size()); } } s.stop(); }
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/299be707e24937a76973f84a9cb849e117e6129a/TestGroupsMoFAdd3Reverse.java/buggy/grouper/java/tests/test/edu/internet2/middleware/grouper/TestGroupsMoFAdd3Reverse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 16727, 42, 1435, 288, 565, 9912, 15333, 273, 446, 31, 775, 288, 15333, 273, 9912, 1733, 18, 588, 6638, 12, 2918, 18, 3085, 45, 16, 5245, 18, 3085, 56, 1769, 289, 1044, 261, 6638, 3990, 425, 21, 13, 288, 225, 425, 21, 18, 1188, 6332, 5621, 289, 565, 3756, 264, 2157, 272, 273, 3756, 264, 2157, 18, 1937, 12, 1717, 78, 1769, 565, 368, 1788, 3153, 20, 565, 3756, 264, 28771, 3153, 20, 273, 3756, 264, 28771, 18, 2640, 12, 7682, 272, 16, 5245, 18, 2387, 20, 87, 16, 5245, 18, 2387, 20, 73, 15604, 11272, 565, 368, 1788, 314, 37, 565, 3756, 264, 1114, 314, 37, 225, 273, 3756, 264, 1114, 18, 2640, 12, 7682, 272, 16, 5245, 18, 75, 1463, 16, 5245, 18, 75, 37, 73, 15604, 11272, 565, 368, 1788, 314, 38, 565, 3756, 264, 1114, 314, 38, 225, 273, 3756, 264, 1114, 18, 2640, 12, 7682, 272, 16, 5245, 18, 75, 38, 87, 16, 5245, 18, 75, 1919, 15604, 11272, 565, 368, 1788, 314, 39, 565, 3756, 264, 1114, 314, 39, 225, 273, 3756, 264, 1114, 18, 2640, 12, 7682, 272, 16, 5245, 18, 75, 14272, 16, 5245, 18, 75, 39, 73, 15604, 11272, 565, 368, 4444, 312, 20, 565, 3756, 264, 4419, 312, 20, 273, 3756, 264, 4419, 18, 945, 12, 7682, 272, 16, 5245, 18, 3917, 20, 45, 16, 5245, 18, 3917, 20, 56, 15604, 11272, 565, 368, 1436, 314, 38, 358, 314, 39, 1807, 315, 7640, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 16727, 42, 1435, 288, 565, 9912, 15333, 273, 446, 31, 775, 288, 15333, 273, 9912, 1733, 18, 588, 6638, 12, 2918, 18, 3085, 45, 16, 5245, 18, 3085, 56, 1769, 289, 1044, 261, 6638, 3990, 425, 21, 13, 288, 225, 425, 21, 18, 1188, 6332, 5621, 289, 565, 3756, 264, 2157, 272, 273, 3756, 264, 2157, 18, 1937, 12, 1717, 78, 1769, 565, 368, 1788, 3153, 20, 565, 3756, 264, 28771, 3153, 20, 273, 3756, 264, 28771, 18, 2640, 12, 7682, 272, 16, 5245, 18, 2387, 20, 87, 16, 5245, 18, 2387, 20, 73, 15604, 11272, 565, 368, 1788, 314, 37, 565, 3756, 264, 1114, 314, 37, 225, 273, 3756, 264, 1114, 18, 2640, 12, 2 ]
public void testDeserializeTwice() throws Exception { ObjectSerializer serializer = makeObjectSerializer_ExtMapBean(); ObjectSerializer deserializer1 = makeObjectSerializer_ExtMapBean(); ObjectSerializer deserializer2 = makeObjectSerializer_ExtMapBean(); ExtMapBean original = makeSample_ExtMapBean(); ExtMapBean clone1; ExtMapBean clone2; File tempFile = File.createTempFile("test", ".xml"); tempFile.deleteOnExit();
public void testDeserializeTwice() throws Exception {
public void testDeserializeTwice() throws Exception { // Set up needed objects ObjectSerializer serializer = makeObjectSerializer_ExtMapBean(); ObjectSerializer deserializer1 = makeObjectSerializer_ExtMapBean(); ObjectSerializer deserializer2 = makeObjectSerializer_ExtMapBean(); ExtMapBean original = makeSample_ExtMapBean(); ExtMapBean clone1; ExtMapBean clone2; File tempFile = File.createTempFile("test", ".xml"); tempFile.deleteOnExit(); // Serialize serializer.serialize(tempFile, original); // Deserialize twice clone1 = (ExtMapBean)deserializer1.deserialize(tempFile); clone2 = (ExtMapBean)deserializer2.deserialize(tempFile); // Test assertEquals(clone1.getMap(), clone2.getMap()); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0bfa66892be6b78b88f5c17e2d801d00f577e2ec/ObjectSerializerTester.java/clean/test/src/org/lockss/util/ObjectSerializerTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 20423, 23539, 1812, 1435, 1377, 1216, 1185, 288, 565, 368, 1000, 731, 3577, 2184, 565, 1033, 6306, 6340, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 1033, 6306, 22509, 21, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 1033, 6306, 22509, 22, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 6419, 863, 3381, 2282, 273, 1221, 8504, 67, 2482, 863, 3381, 5621, 565, 6419, 863, 3381, 3236, 21, 31, 565, 6419, 863, 3381, 3236, 22, 31, 565, 1387, 18286, 273, 1387, 18, 2640, 20181, 2932, 3813, 3113, 3552, 2902, 8863, 565, 18286, 18, 3733, 1398, 6767, 5621, 565, 368, 14293, 565, 6340, 18, 6288, 12, 5814, 812, 16, 2282, 1769, 565, 368, 28529, 13605, 565, 3236, 21, 273, 261, 2482, 863, 3381, 13, 5489, 31838, 21, 18, 18109, 12, 5814, 812, 1769, 565, 3236, 22, 273, 261, 2482, 863, 3381, 13, 5489, 31838, 22, 18, 18109, 12, 5814, 812, 1769, 565, 368, 7766, 565, 1815, 8867, 12, 14056, 21, 18, 588, 863, 9334, 3236, 22, 18, 588, 863, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 20423, 23539, 1812, 1435, 1377, 1216, 1185, 288, 565, 368, 1000, 731, 3577, 2184, 565, 1033, 6306, 6340, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 1033, 6306, 22509, 21, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 1033, 6306, 22509, 22, 273, 1221, 921, 6306, 67, 2482, 863, 3381, 5621, 565, 6419, 863, 3381, 2282, 273, 1221, 8504, 67, 2482, 863, 3381, 5621, 565, 6419, 863, 3381, 3236, 21, 31, 565, 6419, 863, 3381, 3236, 22, 31, 565, 1387, 18286, 273, 1387, 18, 2640, 20181, 2932, 3813, 3113, 3552, 2902, 8863, 565, 18286, 18, 3733, 1398, 6767, 5621, 565, 368, 14293, 565, 6340, 18, 6288, 12, 5814, 812, 16, 2282, 2 ]
public DataItemInstance( DataContent data )
public DataItemInstance( DataContent data, ExecutionContext context )
public DataItemInstance( DataContent data ) { super( data ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/33ba19673b879a68bcde6eff6c282112ededd27c/DataItemInstance.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/DataItemInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1910, 1180, 1442, 12, 1910, 1350, 501, 262, 202, 95, 202, 202, 9565, 12, 501, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1910, 1180, 1442, 12, 1910, 1350, 501, 262, 202, 95, 202, 202, 9565, 12, 501, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return getProduct().startsWith("DB2 UDB for AS/400"); }
return getProduct().startsWith("DB2 UDB for AS/400"); }
public boolean isAS400() { // DB2/AS400 Product String = "DB2 UDB for AS/400" return getProduct().startsWith("DB2 UDB for AS/400"); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/SqlQuery.java/buggy/src/main/mondrian/rolap/sql/SqlQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 3033, 16010, 1435, 288, 202, 202, 759, 2383, 22, 19, 3033, 16010, 8094, 514, 273, 315, 2290, 22, 587, 2290, 364, 5355, 19, 16010, 6, 202, 202, 2463, 15880, 7675, 17514, 1190, 2932, 2290, 22, 587, 2290, 364, 5355, 19, 16010, 8863, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 3033, 16010, 1435, 288, 202, 202, 759, 2383, 22, 19, 3033, 16010, 8094, 514, 273, 315, 2290, 22, 587, 2290, 364, 5355, 19, 16010, 6, 202, 202, 2463, 15880, 7675, 17514, 1190, 2932, 2290, 22, 587, 2290, 364, 5355, 19, 16010, 8863, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return isDispatchThread(currentThread);
return isDispatchThread();
public boolean isReadAccessAllowed() { Thread currentThread = Thread.currentThread(); if (ourDispatchThread == currentThread) { //TODO! /* IdeEventQueue eventQueue = IdeEventQueue.getInstance(); //TODO: cache? if (!eventQueue.isInInputEvent() && !LaterInvocatorEx.isInMyRunnable() && !myInEditorPaint) { LOG.error("Read access from event dispatch thread is allowed only inside input event processing or LaterInvocatorEx.invokeLater"); } */ } else { if (myExceptionalThreadWithReadAccess == currentThread) return true; if (myActionsLock.isReadLockAcquired(currentThread)) return true; if (myActionsLock.isWriteLockAcquired(currentThread)) return true; return isDispatchThread(currentThread); } return true; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b313d3489940a7226dcd17fec6acc475914c1696/ApplicationImpl.java/clean/source/com/intellij/openapi/application/impl/ApplicationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 1994, 1862, 5042, 1435, 288, 565, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 565, 309, 261, 477, 5325, 3830, 422, 11800, 13, 288, 1377, 368, 6241, 5, 1377, 1748, 1377, 23062, 1133, 3183, 871, 3183, 273, 23062, 1133, 3183, 18, 588, 1442, 5621, 368, 6241, 30, 1247, 35, 1377, 309, 16051, 2575, 3183, 18, 291, 382, 1210, 1133, 1435, 597, 401, 20607, 3605, 504, 639, 424, 18, 291, 382, 12062, 20013, 1435, 597, 401, 4811, 382, 6946, 12699, 13, 288, 3639, 2018, 18, 1636, 2932, 1994, 2006, 628, 871, 3435, 2650, 353, 2935, 1338, 4832, 810, 871, 4929, 578, 511, 2045, 3605, 504, 639, 424, 18, 14407, 20607, 8863, 1377, 289, 1377, 1195, 565, 289, 565, 469, 288, 1377, 309, 261, 4811, 503, 287, 3830, 1190, 1994, 1862, 422, 11800, 13, 327, 638, 31, 1377, 309, 261, 4811, 6100, 2531, 18, 291, 1994, 2531, 9988, 1402, 12, 2972, 3830, 3719, 327, 638, 31, 1377, 309, 261, 4811, 6100, 2531, 18, 291, 3067, 2531, 9988, 1402, 12, 2972, 3830, 3719, 327, 638, 31, 1377, 327, 353, 5325, 3830, 5621, 565, 289, 565, 327, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 1994, 1862, 5042, 1435, 288, 565, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 565, 309, 261, 477, 5325, 3830, 422, 11800, 13, 288, 1377, 368, 6241, 5, 1377, 1748, 1377, 23062, 1133, 3183, 871, 3183, 273, 23062, 1133, 3183, 18, 588, 1442, 5621, 368, 6241, 30, 1247, 35, 1377, 309, 16051, 2575, 3183, 18, 291, 382, 1210, 1133, 1435, 597, 401, 20607, 3605, 504, 639, 424, 18, 291, 382, 12062, 20013, 1435, 597, 401, 4811, 382, 6946, 12699, 13, 288, 3639, 2018, 18, 1636, 2932, 1994, 2006, 628, 871, 3435, 2650, 353, 2935, 1338, 4832, 810, 871, 4929, 578, 511, 2045, 3605, 504, 639, 424, 18, 14407, 20607, 8863, 1377, 289, 1377, 1195, 565, 2 ]
return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename });
return RubyFile.open(ruby, ruby.getClasses().getFileClass(), args);
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/7f0711e7cbb2b441d095c8d8c0838be2b630638c/RubyGlobal.java/clean/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1696, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 1544, 13, 288, 3639, 309, 261, 3459, 18, 10492, 7675, 17514, 1190, 2932, 22317, 3719, 288, 5411, 368, 965, 15, 5411, 327, 22155, 18, 588, 12616, 5621, 5411, 368, 9948, 3639, 289, 3639, 327, 19817, 812, 18, 3190, 12, 27768, 16, 22155, 18, 588, 4818, 7675, 29925, 797, 9334, 833, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1696, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 1544, 13, 288, 3639, 309, 261, 3459, 18, 10492, 7675, 17514, 1190, 2932, 22317, 3719, 288, 5411, 368, 965, 15, 5411, 327, 22155, 18, 588, 12616, 5621, 5411, 368, 9948, 3639, 289, 3639, 327, 19817, 812, 18, 3190, 12, 27768, 16, 22155, 18, 588, 4818, 7675, 29925, 797, 9334, 833, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
FindFunction(JSDebugger db, Hashtable functionMap,
FindFunction(Main db, Hashtable functionMap,
FindFunction(JSDebugger db, Hashtable functionMap, String title, String labelText) { super(db, title, true); this.functionMap = functionMap; this.db = db; cancelButton = new JButton("Cancel"); setButton = new JButton("Select"); cancelButton.addActionListener(this); setButton.addActionListener(this); getRootPane().setDefaultButton(setButton); list = new JList(new DefaultListModel()); DefaultListModel model = (DefaultListModel)list.getModel(); model.clear(); Enumeration e = functionMap.keys(); String[] a = new String[functionMap.size()]; int i = 0; while(e.hasMoreElements()) { a[i++] = e.nextElement().toString(); } java.util.Arrays.sort(a); for(i = 0; i < a.length; i++) { model.addElement(a[i]); } list.setSelectedIndex(0); setButton.setEnabled(a.length > 0); list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); list.addMouseListener(new MouseHandler()); JScrollPane listScroller = new JScrollPane(list); listScroller.setPreferredSize(new Dimension(320, 240)); listScroller.setMinimumSize(new Dimension(250, 80)); listScroller.setAlignmentX(LEFT_ALIGNMENT); //Create a container so that we can add a title around //the scroll pane. Can't add a title directly to the //scroll pane because its background would be white. //Lay out the label and scroll pane from top to button. JPanel listPane = new JPanel(); listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS)); JLabel label = new JLabel(labelText); label.setLabelFor(list); listPane.add(label); listPane.add(Box.createRigidArea(new Dimension(0,5))); listPane.add(listScroller); listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //Lay out the buttons from left to right. JPanel buttonPane = new JPanel(); buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS)); buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); buttonPane.add(Box.createHorizontalGlue()); buttonPane.add(cancelButton); buttonPane.add(Box.createRigidArea(new Dimension(10, 0))); buttonPane.add(setButton); //Put everything together, using the content pane's BorderLayout. Container contentPane = getContentPane(); contentPane.add(listPane, BorderLayout.CENTER); contentPane.add(buttonPane, BorderLayout.SOUTH); pack(); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3d11fc509c101d1e08d6e3bf1871ee5cc04b89ae/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4163, 2083, 12, 6479, 24113, 1319, 16, 18559, 445, 863, 16, 1082, 514, 2077, 16, 1082, 514, 1433, 1528, 13, 288, 202, 9565, 12, 1966, 16, 2077, 16, 638, 1769, 202, 2211, 18, 915, 863, 273, 445, 863, 31, 202, 2211, 18, 1966, 273, 1319, 31, 202, 10996, 3616, 273, 394, 28804, 2932, 6691, 8863, 202, 542, 3616, 273, 394, 28804, 2932, 3391, 8863, 202, 10996, 3616, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 542, 3616, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 588, 2375, 8485, 7675, 542, 1868, 3616, 12, 542, 3616, 1769, 202, 1098, 273, 394, 804, 682, 12, 2704, 2989, 682, 1488, 10663, 202, 1868, 682, 1488, 938, 273, 261, 1868, 682, 1488, 13, 1098, 18, 588, 1488, 5621, 202, 2284, 18, 8507, 5621, 202, 21847, 425, 273, 445, 863, 18, 2452, 5621, 202, 780, 8526, 279, 273, 394, 514, 63, 915, 863, 18, 1467, 1435, 15533, 202, 474, 277, 273, 374, 31, 202, 17523, 12, 73, 18, 5332, 7417, 3471, 10756, 288, 202, 565, 279, 63, 77, 9904, 65, 273, 425, 18, 4285, 1046, 7675, 10492, 5621, 202, 97, 202, 6290, 18, 1367, 18, 12726, 18, 3804, 12, 69, 1769, 202, 1884, 12, 77, 273, 374, 31, 277, 411, 279, 18, 2469, 31, 277, 27245, 288, 202, 565, 938, 18, 1289, 1046, 12, 69, 63, 77, 19226, 202, 97, 202, 1098, 18, 542, 7416, 1016, 12, 20, 1769, 202, 542, 3616, 18, 542, 1526, 12, 69, 18, 2469, 405, 374, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4163, 2083, 12, 6479, 24113, 1319, 16, 18559, 445, 863, 16, 1082, 514, 2077, 16, 1082, 514, 1433, 1528, 13, 288, 202, 9565, 12, 1966, 16, 2077, 16, 638, 1769, 202, 2211, 18, 915, 863, 273, 445, 863, 31, 202, 2211, 18, 1966, 273, 1319, 31, 202, 10996, 3616, 273, 394, 28804, 2932, 6691, 8863, 202, 542, 3616, 273, 394, 28804, 2932, 3391, 8863, 202, 10996, 3616, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 542, 3616, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 588, 2375, 8485, 7675, 542, 1868, 3616, 12, 542, 3616, 1769, 202, 1098, 273, 394, 804, 682, 12, 2704, 2989, 682, 1488, 10663, 202, 1868, 682, 1488, 938, 273, 261, 1868, 682, 1488, 2 ]
FetchResult result = runMetadata(dm, recursionLevel, key, metaStrings, metadata, null, key.getURI(), dontEnterImplicitArchives);
FetchResult result = runMetadata(dm, recursionLevel, key, metaStrings, metadata, null, key.getURI(), dontEnterImplicitArchives, localOnly);
FetchResult realRun(ClientMetadata dm, int recursionLevel, FreenetURI uri, boolean dontEnterImplicitArchives) throws FetchException, MetadataParseException, ArchiveFailureException, ArchiveRestartException { Logger.minor(this, "Running fetch for: "+uri); ClientKey key; try { key = ClientKey.getBaseKey(uri); } catch (MalformedURLException e2) { throw new FetchException(FetchException.INVALID_URI, "Invalid URI: "+uri); } LinkedList metaStrings = uri.listMetaStrings(); recursionLevel++; if(recursionLevel > ctx.maxRecursionLevel) throw new FetchException(FetchException.TOO_MUCH_RECURSION, ""+recursionLevel+" should be < "+ctx.maxRecursionLevel); // Do the fetch KeyBlock block; try { block = ctx.client.getKey(key, ctx.localRequestOnly, ctx.starterClient); } catch (LowLevelGetException e) { switch(e.code) { case LowLevelGetException.DATA_NOT_FOUND: throw new FetchException(FetchException.DATA_NOT_FOUND); case LowLevelGetException.DATA_NOT_FOUND_IN_STORE: throw new FetchException(FetchException.DATA_NOT_FOUND); case LowLevelGetException.DECODE_FAILED: throw new FetchException(FetchException.BLOCK_DECODE_ERROR); case LowLevelGetException.INTERNAL_ERROR: throw new FetchException(FetchException.INTERNAL_ERROR); case LowLevelGetException.REJECTED_OVERLOAD: throw new FetchException(FetchException.REJECTED_OVERLOAD); case LowLevelGetException.ROUTE_NOT_FOUND: throw new FetchException(FetchException.ROUTE_NOT_FOUND); case LowLevelGetException.TRANSFER_FAILED: throw new FetchException(FetchException.TRANSFER_FAILED); case LowLevelGetException.VERIFY_FAILED: throw new FetchException(FetchException.BLOCK_DECODE_ERROR); default: Logger.error(this, "Unknown LowLevelGetException code: "+e.code); throw new FetchException(FetchException.INTERNAL_ERROR); } } ctx.eventProducer.produceEvent(new GotBlockEvent(key)); Bucket data; try { data = block.decode(key, ctx.bucketFactory, (int) (Math.min(ctx.maxTempLength, Integer.MAX_VALUE))); } catch (KeyDecodeException e1) { throw new FetchException(FetchException.BLOCK_DECODE_ERROR, e1.getMessage()); } catch (IOException e) { Logger.error(this, "Could not capture data - disk full?: "+e, e); throw new FetchException(FetchException.BUCKET_ERROR, e); } ctx.eventProducer.produceEvent(new DecodedBlockEvent(key)); if(!key.isMetadata()) { // Just return the data return new FetchResult(dm, data); } // Otherwise we need to parse the metadata if(data.size() > ctx.maxMetadataSize) throw new FetchException(FetchException.TOO_BIG_METADATA); Metadata metadata; try { metadata = Metadata.construct(BucketTools.toByteArray(data)); } catch (IOException e) { throw new FetchException(FetchException.BUCKET_ERROR, e); } ctx.eventProducer.produceEvent(new FetchedMetadataEvent()); FetchResult result = runMetadata(dm, recursionLevel, key, metaStrings, metadata, null, key.getURI(), dontEnterImplicitArchives); if(metaStrings.isEmpty()) return result; // Still got some meta-strings throw new FetchException(FetchException.HAS_MORE_METASTRINGS); }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/308b196ee77f38c4a2c6b11b7182c054b6b5e3e6/Fetcher.java/clean/src/freenet/client/Fetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5005, 1253, 2863, 1997, 12, 1227, 2277, 9113, 16, 509, 13917, 2355, 16, 478, 2842, 278, 3098, 2003, 16, 1250, 14046, 10237, 15787, 12269, 3606, 13, 225, 202, 15069, 8065, 503, 16, 6912, 13047, 16, 13124, 14389, 16, 13124, 15057, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 7051, 2158, 364, 30, 13773, 1650, 1769, 202, 202, 1227, 653, 498, 31, 202, 202, 698, 288, 1082, 202, 856, 273, 2445, 653, 18, 588, 2171, 653, 12, 1650, 1769, 202, 202, 97, 1044, 261, 18695, 20160, 425, 22, 13, 288, 1082, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 9347, 67, 3098, 16, 315, 1941, 3699, 30, 13773, 1650, 1769, 202, 202, 97, 202, 202, 13174, 682, 2191, 7957, 273, 2003, 18, 1098, 2781, 7957, 5621, 9506, 202, 31347, 2355, 9904, 31, 202, 202, 430, 12, 31347, 2355, 405, 1103, 18, 1896, 426, 10919, 2355, 13, 1082, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 4296, 51, 67, 49, 57, 1792, 67, 862, 7509, 3686, 16, 1408, 15, 31347, 2355, 9078, 1410, 506, 411, 13773, 5900, 18, 1896, 426, 10919, 2355, 1769, 9506, 202, 759, 2256, 326, 2158, 202, 202, 653, 1768, 1203, 31, 202, 202, 698, 288, 1082, 202, 2629, 273, 1103, 18, 2625, 18, 588, 653, 12, 856, 16, 1103, 18, 3729, 691, 3386, 16, 1103, 18, 10983, 387, 1227, 1769, 202, 202, 97, 1044, 261, 10520, 2355, 967, 503, 425, 13, 288, 1082, 202, 9610, 12, 73, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5005, 1253, 2863, 1997, 12, 1227, 2277, 9113, 16, 509, 13917, 2355, 16, 478, 2842, 278, 3098, 2003, 16, 1250, 14046, 10237, 15787, 12269, 3606, 13, 225, 202, 15069, 8065, 503, 16, 6912, 13047, 16, 13124, 14389, 16, 13124, 15057, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 7051, 2158, 364, 30, 13773, 1650, 1769, 202, 202, 1227, 653, 498, 31, 202, 202, 698, 288, 1082, 202, 856, 273, 2445, 653, 18, 588, 2171, 653, 12, 1650, 1769, 202, 202, 97, 1044, 261, 18695, 20160, 425, 22, 13, 288, 1082, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 9347, 67, 3098, 16, 315, 1941, 3699, 30, 13773, 1650, 1769, 202, 202, 97, 202, 2 ]
undefinedMethods.put(methodName, Boolean.TRUE); continue;
undefinedMethods.put(methodName, Boolean.TRUE); continue;
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = type.getSuperClass()) { RubyModule realType = type.getNonIncludedClass(); for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); String methodName = (String) entry.getKey(); if (method.isUndefined()) { undefinedMethods.put(methodName, Boolean.TRUE); continue; } if (method.getImplementationClass() == realType && method.getVisibility().is(visibility) && undefinedMethods.get(methodName) == null) { RubyString name = getRuntime().newString(methodName); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 7734, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 7734, 514, 4918, 273, 261, 780, 13, 1241, 18, 588, 653, 5621, 7734, 309, 261, 2039, 18, 291, 10317, 10756, 288, 1171, 202, 5978, 4712, 18, 458, 12, 2039, 461, 16, 3411, 18, 18724, 1769, 1171, 202, 17143, 31, 7734, 289, 7734, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 597, 5397, 707, 18, 588, 10135, 7675, 291, 12, 14422, 13, 597, 3109, 4712, 18, 588, 12, 2039, 461, 13, 422, 446, 13, 288, 1171, 202, 54, 10340, 780, 508, 273, 18814, 7675, 2704, 780, 12, 2039, 461, 1769, 1171, 202, 430, 16051, 814, 18, 18499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510, 1435, 294, 638, 31, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 4317, 3109, 4712, 273, 394, 4317, 5621, 3639, 364, 261, 54, 10340, 3120, 618, 273, 333, 31, 618, 480, 446, 31, 618, 273, 618, 18, 588, 8051, 797, 10756, 288, 540, 202, 54, 10340, 3120, 2863, 559, 273, 618, 18, 588, 3989, 19323, 797, 5621, 5411, 364, 261, 3198, 1400, 273, 618, 18, 588, 4712, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 2 ]
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty();
public quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { quickfix.field.LegRatioQty value = new quickfix.field.LegRatioQty();
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/buggy/src/java/src/quickfix/fix44/CollateralRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dbSnmpIfEntry.updateOperationalStatus(sint.getValue());
if (sint == null) { dbSnmpIfEntry.updateOperationalStatus(0); } else { dbSnmpIfEntry.updateOperationalStatus(sint.getValue()); }
private void updateNonIpInterface(Connection dbc, Date now, DbNodeEntry node, int ifIndex, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); if (log.isDebugEnabled()) log.debug("updateNonIpInterface: node= " + node.getNodeId() + " ifIndex= " + ifIndex); // Sanity Check // if (snmpc == null || snmpc.failed()) return; // Construct InetAddress object for "0.0.0.0" address // InetAddress ifAddr = null; try { ifAddr = InetAddress.getByName("0.0.0.0"); } catch (UnknownHostException uhE) { log.error("Failed to update non-IP interfaces, unable to construct '0.0.0.0' InetAddress", uhE); return; } // ------------------------------------------------------------------- // IpInterface table updates // ------------------------------------------------------------------- // Attempt to load IP Interface entry from the database // DbIpInterfaceEntry dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifAddr, ifIndex); if (dbIpIfEntry == null) { // Create a new entry if (log.isDebugEnabled()) log.debug("updateNonIpInterface: non-IP interface with ifIndex " + ifIndex + " not in database, creating new interface object."); dbIpIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifAddr); } // Update any IpInterface table fields which have changed // dbIpIfEntry.setLastPoll(now); dbIpIfEntry.setIfIndex(ifIndex); dbIpIfEntry.setManagedState(DbIpInterfaceEntry.STATE_UNMANAGED); int status = snmpc.getAdminStatus(ifIndex); if(status != -1) dbIpIfEntry.setStatus(status); // Removed the following update to insure that the issnmpprimary field was not // over-written during a rescan. Since it should already be set, there is no // need to re-set it. // dbIpIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_NOT_ELIGIBLE); // Update the database dbIpIfEntry.store(dbc); // ------------------------------------------------------------------- // SnmpInterface table updates // ------------------------------------------------------------------- if (log.isDebugEnabled()) log.debug("updateNonIpInterface: updating non-IP snmp interface with nodeId=" + node.getNodeId() + " and ifIndex=" + ifIndex); // Create and load SNMP Interface entry from the database // boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { // SNMP Interface not found with this nodeId & ifIndex, create new interface if (log.isDebugEnabled()) log.debug("updateNonIpInterface: non-IP SNMP interface with ifIndex " + ifIndex + " not in database, creating new snmpInterface object."); dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } // Find the ifTable entry for this interface IfTable ift = snmpc.getIfTable(); Iterator ifiter = ift.getEntries().iterator(); IfTableEntry ifte = null; boolean match = false; while(ifiter.hasNext()) { ifte = (IfTableEntry)ifiter.next(); // index // SnmpInt32 sint = (SnmpInt32)ifte.get(IfTableEntry.IF_INDEX); if(sint != null) { if (ifIndex == sint.getValue()) { if (log.isDebugEnabled()) log.debug("updateNonIpInterface: found match for ifIndex: " + ifIndex); match = true; break; } } } // Make sure we have a valid IfTableEntry object and update // any values which have changed if (match && ifte != null) { // index //dbSnmpIfEntry.updateIfIndex(ifIndex); // ipAddress dbSnmpIfEntry.updateIfAddress(ifAddr); // netmask // // NOTE: non-IP interfaces don't have netmasks so skip // type SnmpInt32 sint = (SnmpInt32)ifte.get(IfTableEntry.IF_TYPE); dbSnmpIfEntry.updateType(sint.getValue()); // description String str = SystemGroup.getPrintableString((SnmpOctetString)ifte.get(IfTableEntry.IF_DESCR)); if (log.isDebugEnabled()) log.debug("updateNonIpInterface: ifIndex: " + ifIndex + " has ifDescription: " + str); if(str != null && str.length() > 0) dbSnmpIfEntry.updateDescription(str); // physical address StringBuffer sbuf = new StringBuffer(); SnmpOctetString ostr = (SnmpOctetString)ifte.get(IfTableEntry.IF_PHYS_ADDR); if ( ostr != null && ostr.getLength() > 0) { byte[] bytes = ostr.getString(); for(int i = 0; i < bytes.length; i++) { sbuf.append(Integer.toHexString(((int)bytes[i] >> 4) & 0xf)); sbuf.append(Integer.toHexString((int)bytes[i] & 0xf)); } } String physAddr = sbuf.toString().trim(); if (log.isDebugEnabled()) log.debug("updateNonIpInterface: ifIndex: " + ifIndex + " has physical address: -" + physAddr + "-"); if (physAddr.length() == 12) { dbSnmpIfEntry.updatePhysicalAddress(physAddr); } // speed SnmpUInt32 uint = (SnmpUInt32)ifte.get(IfTableEntry.IF_SPEED); dbSnmpIfEntry.updateSpeed((int)uint.getValue()); // admin status sint = (SnmpInt32)ifte.get(IfTableEntry.IF_ADMIN_STATUS); dbSnmpIfEntry.updateAdminStatus(sint.getValue()); // oper status sint = (SnmpInt32)ifte.get(IfTableEntry.IF_OPER_STATUS); dbSnmpIfEntry.updateOperationalStatus(sint.getValue()); // name (from interface extensions table) SnmpOctetString snmpIfName = snmpc.getIfName(ifIndex); if (snmpIfName != null) { String ifName = SystemGroup.getPrintableString(snmpIfName); if (ifName!= null && ifName.length() > 0) dbSnmpIfEntry.updateName(ifName); } } // end if valid ifTable entry // If this is a new interface or if any of the following // key fields have changed set the m_snmpIfTableChangedFlag // variable to TRUE. This will potentially trigger an event // which will cause the poller to reinitialize the primary // SNMP interface for the node. if (!m_snmpIfTableChangedFlag && newSnmpIfTableEntry || //dbSnmpIfEntry.hasIfIndexChanged() || dbSnmpIfEntry.hasIfAddressChanged() || dbSnmpIfEntry.hasTypeChanged() || dbSnmpIfEntry.hasNameChanged() || dbSnmpIfEntry.hasDescriptionChanged() || dbSnmpIfEntry.hasPhysicalAddressChanged()) { m_snmpIfTableChangedFlag = true; } // Update the database dbSnmpIfEntry.store(dbc); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/211a73685273efd6e2cccc9ab7d75b1ae3c95221/RescanProcessor.java/clean/src/services/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 3989, 5273, 1358, 12, 1952, 225, 9881, 16, 25083, 225, 2167, 3639, 2037, 16, 25083, 225, 8408, 907, 1622, 756, 16, 25083, 225, 509, 540, 309, 1016, 16, 25083, 225, 971, 10461, 1291, 7134, 15366, 71, 13, 202, 202, 15069, 6483, 202, 95, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 9506, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 1082, 202, 1330, 18, 4148, 2932, 2725, 3989, 5273, 1358, 30, 756, 33, 315, 397, 756, 18, 588, 15883, 1435, 397, 315, 309, 1016, 33, 315, 397, 309, 1016, 1769, 9506, 202, 759, 23123, 2073, 202, 202, 759, 3196, 202, 430, 261, 26527, 71, 422, 446, 747, 15366, 71, 18, 7307, 10756, 1082, 202, 2463, 31, 9506, 202, 759, 14291, 14218, 733, 364, 315, 20, 18, 20, 18, 20, 18, 20, 6, 1758, 202, 202, 759, 202, 202, 382, 278, 1887, 309, 3178, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 430, 3178, 273, 14218, 18, 588, 5911, 2932, 20, 18, 20, 18, 20, 18, 20, 8863, 202, 202, 97, 202, 202, 14683, 261, 4874, 29776, 582, 76, 41, 13, 202, 202, 95, 1082, 202, 1330, 18, 1636, 2932, 2925, 358, 1089, 1661, 17, 2579, 7349, 16, 13496, 358, 4872, 296, 20, 18, 20, 18, 20, 18, 20, 11, 14218, 3113, 582, 76, 41, 1769, 1082, 202, 2463, 31, 202, 202, 97, 4697, 202, 759, 8879, 413, 202, 202, 759, 14709, 1358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 3989, 5273, 1358, 12, 1952, 225, 9881, 16, 25083, 225, 2167, 3639, 2037, 16, 25083, 225, 8408, 907, 1622, 756, 16, 25083, 225, 509, 540, 309, 1016, 16, 25083, 225, 971, 10461, 1291, 7134, 15366, 71, 13, 202, 202, 15069, 6483, 202, 95, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 9506, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 1082, 202, 1330, 18, 4148, 2932, 2725, 3989, 5273, 1358, 30, 756, 33, 315, 397, 756, 18, 588, 15883, 1435, 397, 315, 309, 1016, 33, 315, 397, 309, 1016, 1769, 9506, 202, 759, 23123, 2073, 202, 202, 759, 3196, 202, 430, 261, 26527, 71, 422, 446, 747, 2 ]
String completeOverrideConfigId = "test.root.1.2";
public void testConfigurations() throws CoreException, BuildException { String rootConfigId = "test.root.1.0"; String rootName = "Root Config"; String overrideConfigId = "test.root.1.1"; String overrideName = "Root Override Config"; String completeOverrideConfigId = "test.root.1.2"; String completeOverrideName = "Complete Override Config"; // Open the test project IProject project = createProject(projectName); // Make sure there is one and only one target with 2 configs ITarget[] definedTargets = ManagedBuildManager.getTargets(project); assertEquals(1, definedTargets.length); ITarget rootTarget = definedTargets[0]; IConfiguration[] definedConfigs = rootTarget.getConfigurations(); assertEquals(3, definedConfigs.length); IConfiguration baseConfig = definedConfigs[0]; assertEquals(definedConfigs[0].getId(), rootConfigId); assertEquals(definedConfigs[0].getName(), rootName); assertEquals(definedConfigs[1].getId(), overrideConfigId); assertEquals(definedConfigs[1].getName(), overrideName); assertEquals(definedConfigs[2].getId(), completeOverrideConfigId); assertEquals(definedConfigs[2].getName(), completeOverrideName); // Create a new configuration and test the rename function IConfiguration newConfig = rootTarget.createConfiguration(baseConfig, testConfigId); assertEquals(4, rootTarget.getConfigurations().length); newConfig.setName(testConfigName); assertEquals(newConfig.getId(), testConfigId); assertEquals(newConfig.getName(), testConfigName); // There is only one tool ITool[] definedTools = newConfig.getTools(); assertEquals(1, definedTools.length); ITool rootTool = definedTools[0]; // Override options in the new configuration IOptionCategory topCategory = rootTool.getTopOptionCategory(); assertEquals("Root Tool", topCategory.getName()); IOption[] options = topCategory.getOptions(null); assertEquals(2, options.length); ManagedBuildManager.setOption(newConfig, options[0], listVal); ManagedBuildManager.setOption(newConfig, options[1], boolVal); IOptionCategory[] categories = topCategory.getChildCategories(); assertEquals(1, categories.length); options = categories[0].getOptions(null); assertEquals(2, options.length); ManagedBuildManager.setOption(newConfig, options[0], stringVal); ManagedBuildManager.setOption(newConfig, options[1], enumVal); // Save, close, reopen and test again ManagedBuildManager.saveBuildInfo(project); project.close(null); ManagedBuildManager.removeBuildInfo(project); project.open(null); // Test the values in the new configuration checkOptionReferences(project); // Now delete the new configuration and test the target definedTargets = ManagedBuildManager.getTargets(project); assertEquals(1, definedTargets.length); rootTarget = definedTargets[0]; definedConfigs = rootTarget.getConfigurations(); assertEquals(4, definedConfigs.length); rootTarget.removeConfiguration(testConfigId); definedConfigs = rootTarget.getConfigurations(); assertEquals(3, definedConfigs.length); assertEquals(definedConfigs[0].getId(), rootConfigId); assertEquals(definedConfigs[0].getName(), rootName); assertEquals(definedConfigs[1].getId(), overrideConfigId); assertEquals(definedConfigs[1].getName(), overrideName); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cc6084024dd2af4d5b3c4287f5e9fbae20d84a2a/ManagedBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9698, 1435, 1216, 30015, 16, 18463, 288, 202, 202, 780, 1365, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 20, 14432, 202, 202, 780, 1365, 461, 273, 315, 2375, 1903, 14432, 202, 202, 780, 3849, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 21, 14432, 202, 202, 780, 3849, 461, 273, 315, 2375, 1439, 1903, 14432, 202, 202, 780, 3912, 6618, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 22, 14432, 202, 202, 780, 3912, 6618, 461, 273, 315, 6322, 1439, 1903, 14432, 9506, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 752, 4109, 12, 4406, 461, 1769, 9506, 202, 759, 4344, 3071, 1915, 353, 1245, 471, 1338, 1245, 1018, 598, 576, 6784, 202, 202, 1285, 826, 8526, 2553, 9432, 273, 10024, 3116, 1318, 18, 588, 9432, 12, 4406, 1769, 202, 202, 11231, 8867, 12, 21, 16, 2553, 9432, 18, 2469, 1769, 202, 202, 1285, 826, 1365, 2326, 273, 2553, 9432, 63, 20, 15533, 202, 202, 45, 1750, 8526, 2553, 8062, 273, 1365, 2326, 18, 588, 9698, 5621, 4697, 202, 11231, 8867, 12, 23, 16, 2553, 8062, 18, 2469, 1769, 202, 202, 45, 1750, 1026, 809, 273, 2553, 8062, 63, 20, 15533, 202, 202, 11231, 8867, 12, 2178, 8062, 63, 20, 8009, 26321, 9334, 1365, 809, 548, 1769, 202, 202, 11231, 8867, 12, 2178, 8062, 63, 20, 8009, 17994, 9334, 1365, 461, 1769, 202, 202, 11231, 8867, 12, 2178, 8062, 63, 21, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9698, 1435, 1216, 30015, 16, 18463, 288, 202, 202, 780, 1365, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 20, 14432, 202, 202, 780, 1365, 461, 273, 315, 2375, 1903, 14432, 202, 202, 780, 3849, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 21, 14432, 202, 202, 780, 3849, 461, 273, 315, 2375, 1439, 1903, 14432, 202, 202, 780, 3912, 6618, 809, 548, 273, 315, 3813, 18, 3085, 18, 21, 18, 22, 14432, 202, 202, 780, 3912, 6618, 461, 273, 315, 6322, 1439, 1903, 14432, 9506, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 752, 4109, 12, 4406, 461, 1769, 9506, 202, 759, 4344, 3071, 1915, 2 ]
}
}
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog setVisible(false); dispose(); }//GEN-LAST:event_closeDialog
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/SynchronizeDialog.java/buggy/modules/java_rte/src/org/argouml/language/java/ui/SynchronizeDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1746, 6353, 12, 6290, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 4412, 6353, 3639, 16697, 12, 5743, 1769, 3639, 15825, 5621, 565, 289, 759, 16652, 17, 14378, 30, 2575, 67, 4412, 6353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1746, 6353, 12, 6290, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 4412, 6353, 3639, 16697, 12, 5743, 1769, 3639, 15825, 5621, 565, 289, 759, 16652, 17, 14378, 30, 2575, 67, 4412, 6353, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for(int i = unmatchedCatchBlocks.size()-1; i >= 0; --i) { final PsiParameter parameter = unmatchedCatchParams.get(i); final PsiCatchSection catchSection = PsiManager.getInstance(project).getElementFactory().createCatchSection( (PsiClassType)parameter.getType(), parameter.getName(), null ); catchSection.getCatchBlock().replace( unmatchedCatchBlocks.get(i) ); replacement.addAfter( catchSection, catches[catches.length-1] );
if (unmatchedCatchBlocks!=null && unmatchedCatchParams!=null) { for(int i = unmatchedCatchBlocks.size()-1; i >= 0; --i) { final PsiParameter parameter = unmatchedCatchParams.get(i); final PsiCatchSection catchSection = PsiManager.getInstance(project).getElementFactory().createCatchSection( (PsiClassType)parameter.getType(), parameter.getName(), null ); catchSection.getCatchBlock().replace( unmatchedCatchBlocks.get(i) ); replacement.addAfter( catchSection, catches[catches.length-1] ); }
public void run() { ApplicationManager.getApplication().runWriteAction( new Runnable() { public void run() { boolean listContext = false; try { PsiElement el = findRealSubstitutionElement(element); listContext = isListContext(el); final PsiElement[] statements = MatcherImplUtil.createTreeFromText( replacement, false, options.getMatchOptions().getFileType(), project ); if (context == null) context = new ReplacementContext(); if (listContext) { if (statements.length > 1) { elementParent.addRangeBefore(statements[0],statements[statements.length-1],element); } else if (statements.length==1) { PsiElement replacement = getMatchExpr(statements[0]); handleComments(el, replacement); handleModifierList(el, replacement, context); replacement = handleSymbolReplacemenent(replacement, el, context); if (replacement instanceof PsiTryStatement) { final List<PsiCodeBlock> unmatchedCatchBlocks = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_BLOCK_CONTENT_VAR_KEY); final List<PsiParameter> unmatchedCatchParams = el.getUserData(MatcherImplUtil.UNMATCHED_CATCH_PARAM_CONTENT_VAR_KEY); final PsiCatchSection catches[] = ((PsiTryStatement)replacement).getCatchSections(); for(int i = unmatchedCatchBlocks.size()-1; i >= 0; --i) { final PsiParameter parameter = unmatchedCatchParams.get(i); final PsiCatchSection catchSection = PsiManager.getInstance(project).getElementFactory().createCatchSection( (PsiClassType)parameter.getType(), parameter.getName(), null ); catchSection.getCatchBlock().replace( unmatchedCatchBlocks.get(i) ); replacement.addAfter( catchSection, catches[catches.length-1] ); } } elementParent.addBefore(replacement,element); } } else if (statements.length > 0) { int i = 0; while( true ) { if (!(statements[i] instanceof PsiComment || statements[i] instanceof PsiWhiteSpace ) ) break; ++i; } if (i != 0) { elementParent.addRangeBefore(statements[0],statements[i-1],el); } PsiElement replacement = getMatchExpr(statements[i]); if (replacement instanceof PsiStatement && !(replacement.getLastChild() instanceof PsiJavaToken) ) { // assert w/o ; elementParent.addRangeBefore(replacement.getFirstChild(),replacement.getLastChild().getPrevSibling(),el); el.delete(); } else { PsiDocComment comment = null; if (el instanceof PsiDocCommentOwner) { comment = ((PsiDocCommentOwner)el).getDocComment(); } // preserve comments handleComments(el, replacement); handleModifierList(el, replacement, context); if (comment!=null && replacement instanceof PsiDocCommentOwner) { replacement.addBefore( comment, replacement.getFirstChild() ); } if (replacement instanceof PsiClass) { // modifier list final PsiStatement[] searchStatements = context.getCodeBlock().getStatements(); if (searchStatements.length > 0 && searchStatements[0] instanceof PsiDeclarationStatement && ((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0] instanceof PsiClass ) { final PsiClass replaceClazz = (PsiClass)replacement; final PsiClass queryClazz = (PsiClass)((PsiDeclarationStatement)searchStatements[0]).getDeclaredElements()[0]; final PsiClass clazz = (PsiClass)el; if (replaceClazz.getExtendsList().getTextLength() == 0 && queryClazz.getExtendsList().getTextLength() == 0 && clazz.getExtendsList().getTextLength() != 0 ) { replaceClazz.getExtendsList().addRange( clazz.getExtendsList().getFirstChild(),clazz.getExtendsList().getLastChild() ); } if (replaceClazz.getImplementsList().getTextLength() == 0 && queryClazz.getImplementsList().getTextLength() == 0 && clazz.getImplementsList().getTextLength() != 0 ) { replaceClazz.getImplementsList().addRange( clazz.getImplementsList().getFirstChild(), clazz.getImplementsList().getLastChild() ); } if (replaceClazz.getTypeParameterList().getTextLength() == 0 && queryClazz.getTypeParameterList().getTextLength() == 0 && clazz.getTypeParameterList().getTextLength() != 0 ) { // skip < and > replaceClazz.getTypeParameterList().replace( clazz.getTypeParameterList() ); } } } replacement = handleSymbolReplacemenent(replacement, el, context); el.replace(replacement); } } else { el.delete(); } } catch(IncorrectOperationException ex) { ex.printStackTrace(); } if (listContext) { for(int i = 0;i < info.matchesPtrList.size();++i) { try { PsiElement element = findRealSubstitutionElement( (info.matchesPtrList.get(i)).getElement() ); element.delete(); //PsiElement firstToDelete = element; //PsiElement lastToDelete = element; //final PsiElement prevSibling = element.getPrevSibling(); // //if (prevSibling instanceof PsiWhiteSpace) { // firstToDelete = prevSibling; //} // //final PsiElement nextSibling = element.getNextSibling(); //if (nextSibling instanceof PsiWhiteSpace) { // lastToDelete = nextSibling; //} //element.getParent().deleteChildRange(firstToDelete,lastToDelete); } catch(IncorrectOperationException ex) { ex.printStackTrace(); } } } try { CodeStyleManager codeStyleManager = PsiManager.getInstance(project).getCodeStyleManager(); if (elementParent.getContainingFile()!=null) { if (options.isToShortenFQN()) { PsiDocumentManager.getInstance(project).commitDocument( FileDocumentManager.getInstance().getDocument(elementParent.getContainingFile().getVirtualFile()) ); codeStyleManager.shortenClassReferences( elementParent.getContainingFile(), elementParent.getTextOffset(), elementParent.getTextOffset() + elementParent.getTextLength() ); } if (options.isToReformatAccordingToStyle()) { if (elementParent.getContainingFile().getVirtualFile()!=null) { PsiDocumentManager.getInstance(project).commitDocument( FileDocumentManager.getInstance().getDocument(elementParent.getContainingFile().getVirtualFile()) ); } codeStyleManager.reformatRange( elementParent.getContainingFile(), elementParent.getTextOffset(), elementParent.getTextOffset() + elementParent.getTextLength(), true ); } } } catch(IncorrectOperationException ex) { ex.printStackTrace(); } } } ); PsiDocumentManager.getInstance(project).commitAllDocuments(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/481e8880a90b85b5432ce78d45ac3341364a839a/ReplacerImpl.java/clean/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/impl/ReplacerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 5411, 394, 10254, 1435, 288, 2868, 1071, 918, 1086, 1435, 288, 7734, 1250, 666, 1042, 273, 629, 31, 7734, 775, 288, 5375, 453, 7722, 1046, 415, 273, 1104, 6955, 23798, 1046, 12, 2956, 1769, 5375, 666, 1042, 273, 28106, 1042, 12, 292, 1769, 5375, 727, 453, 7722, 1046, 8526, 6317, 273, 9757, 2828, 1304, 18, 2640, 2471, 1265, 1528, 12, 10792, 6060, 16, 10792, 629, 16, 10792, 702, 18, 588, 2060, 1320, 7675, 588, 28941, 9334, 10792, 1984, 5375, 11272, 5375, 309, 261, 2472, 422, 446, 13, 819, 273, 394, 6910, 475, 1042, 5621, 5375, 309, 261, 1098, 1042, 13, 288, 10792, 309, 261, 18393, 18, 2469, 405, 404, 13, 288, 8227, 930, 3054, 18, 1289, 2655, 4649, 12, 18393, 63, 20, 6487, 18393, 63, 18393, 18, 2469, 17, 21, 6487, 2956, 1769, 10792, 289, 469, 309, 261, 18393, 18, 2469, 631, 21, 13, 288, 8227, 453, 7722, 1046, 6060, 273, 336, 2060, 4742, 12, 18393, 63, 20, 19226, 8227, 1640, 9051, 12, 292, 16, 6060, 1769, 8227, 1640, 9829, 682, 12, 292, 16, 6060, 16, 819, 1769, 8227, 6060, 273, 1640, 5335, 5729, 27617, 319, 12, 24394, 16, 415, 16, 819, 1769, 8227, 309, 261, 24394, 1276, 453, 7722, 7833, 3406, 13, 288, 13491, 727, 987, 32, 52, 7722, 1085, 1768, 34, 24863, 14842, 6450, 273, 415, 18, 588, 19265, 12, 6286, 2828, 1304, 18, 2124, 11793, 2056, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 5411, 394, 10254, 1435, 288, 2868, 1071, 918, 1086, 1435, 288, 7734, 1250, 666, 1042, 273, 629, 31, 7734, 775, 288, 5375, 453, 7722, 1046, 415, 273, 1104, 6955, 23798, 1046, 12, 2956, 1769, 5375, 666, 1042, 273, 28106, 1042, 12, 292, 1769, 5375, 727, 453, 7722, 1046, 8526, 6317, 273, 9757, 2828, 1304, 18, 2640, 2471, 1265, 1528, 12, 10792, 6060, 16, 10792, 629, 16, 10792, 702, 18, 588, 2060, 1320, 7675, 588, 28941, 9334, 10792, 1984, 5375, 11272, 5375, 309, 261, 2472, 422, 446, 13, 819, 273, 394, 6910, 475, 1042, 5621, 5375, 309, 261, 1098, 1042, 13, 288, 10792, 2 ]
+ "miscdata.txt"))).readUsedLines();
+ "miscData.txt"))).readUsedLines();
public static void readFromRom(HackModule hm) { String[] miscCrapList = new String[0]; //list of misc. text entries try { miscCrapList = new CommentedLineNumberReader(new InputStreamReader( ClassLoader.getSystemResourceAsStream(DEFAULT_BASE_DIR + "miscdata.txt"))).readUsedLines(); } catch (IOException e) { e.printStackTrace(); miscCrapList = new String[0]; } entries = new Crap[miscCrapList.length]; for (int i = 0; i < miscCrapList.length; i++) { entries[i] = new Crap(Integer.parseInt( miscCrapList[i].substring(2, 8), 16), Integer .parseInt(miscCrapList[i].substring(0,1)), hm, miscCrapList[i].substring(9)); } }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/db60d5ea682e5c37d418c8773d10600ce929fb0c/MiscEditor.java/clean/src/net/starmen/pkhack/eb/MiscEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20876, 54, 362, 12, 44, 484, 3120, 16349, 13, 565, 288, 3639, 514, 8526, 20448, 39, 1266, 682, 273, 394, 514, 63, 20, 15533, 368, 1098, 434, 20448, 18, 977, 3222, 3639, 775, 3639, 288, 5411, 20448, 39, 1266, 682, 273, 394, 9821, 329, 31063, 2514, 12, 2704, 15322, 12, 7734, 9403, 18, 588, 3163, 1420, 17052, 12, 5280, 67, 8369, 67, 4537, 10792, 397, 315, 23667, 751, 18, 5830, 6, 3719, 2934, 896, 6668, 5763, 5621, 3639, 289, 3639, 1044, 261, 14106, 425, 13, 3639, 288, 5411, 425, 18, 1188, 6332, 5621, 5411, 20448, 39, 1266, 682, 273, 394, 514, 63, 20, 15533, 3639, 289, 3639, 3222, 273, 394, 385, 1266, 63, 23667, 39, 1266, 682, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 20448, 39, 1266, 682, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 3222, 63, 77, 65, 273, 394, 385, 1266, 12, 4522, 18, 2670, 1702, 12, 10792, 20448, 39, 1266, 682, 63, 77, 8009, 28023, 12, 22, 16, 1725, 3631, 2872, 3631, 2144, 10792, 263, 2670, 1702, 12, 23667, 39, 1266, 682, 63, 77, 8009, 28023, 12, 20, 16, 21, 13, 3631, 16349, 16, 6862, 202, 23667, 39, 1266, 682, 63, 77, 8009, 28023, 12, 29, 10019, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20876, 54, 362, 12, 44, 484, 3120, 16349, 13, 565, 288, 3639, 514, 8526, 20448, 39, 1266, 682, 273, 394, 514, 63, 20, 15533, 368, 1098, 434, 20448, 18, 977, 3222, 3639, 775, 3639, 288, 5411, 20448, 39, 1266, 682, 273, 394, 9821, 329, 31063, 2514, 12, 2704, 15322, 12, 7734, 9403, 18, 588, 3163, 1420, 17052, 12, 5280, 67, 8369, 67, 4537, 10792, 397, 315, 23667, 751, 18, 5830, 6, 3719, 2934, 896, 6668, 5763, 5621, 3639, 289, 3639, 1044, 261, 14106, 425, 13, 3639, 288, 5411, 425, 18, 1188, 6332, 5621, 5411, 20448, 39, 1266, 682, 273, 394, 514, 63, 20, 15533, 3639, 289, 3639, 3222, 273, 394, 385, 1266, 63, 23667, 39, 2 ]
actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForGlobalActions()); actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForActionSets()); }
actionsById.putAll( ((WorkbenchWindow) this.activeWorkbenchWindow) .getActionsForGlobalActions()); actionsById.putAll( ((WorkbenchWindow) this.activeWorkbenchWindow) .getActionsForActionSets()); }
void updateActiveCommandIdsAndActiveContextIds() { IWorkbenchWindow activeWorkbenchWindow = getActiveWorkbenchWindow(); if (activeWorkbenchWindow != null && !(activeWorkbenchWindow instanceof WorkbenchWindow)) activeWorkbenchWindow = null; //IActionService activeWorkbenchWindowActionService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getActionService() : null; //IContextActivationService activeWorkbenchWindowContextActivationService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getContextActivationService() : null; IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow != null ? activeWorkbenchWindow.getActivePage() : null; IActionService activeWorkbenchPageActionService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getActionService() : null; IContextActivationService activeWorkbenchPageContextActivationService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getContextActivationService() : null; IPartService activePartService = activeWorkbenchWindow != null ? activeWorkbenchWindow.getPartService() : null; IWorkbenchPart activeWorkbenchPart = activePartService != null ? activePartService.getActivePart() : null; IWorkbenchPartSite activeWorkbenchPartSite = activeWorkbenchPart != null ? activeWorkbenchPart.getSite() : null; IActionService activeWorkbenchPartActionService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getActionService() : null; IContextActivationService activeWorkbenchPartContextActivationService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getContextActivationService() : null; if (activeWorkbenchWindow != this.activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow.getPartService().removePartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().removePerspectiveListener(internalPerspectiveListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow.getPartService().addPartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().addPerspectiveListener(internalPerspectiveListener); } } /* if (activeWorkbenchWindowActionService != this.activeWorkbenchWindowActionService) { if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowActionService = activeWorkbenchWindowActionService; if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.addActionServiceListener(actionServiceListener); } */ if (activeWorkbenchPageActionService != this.activeWorkbenchPageActionService) { if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageActionService = activeWorkbenchPageActionService; if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.addActionServiceListener(actionServiceListener); } if (activeWorkbenchPartActionService != this.activeWorkbenchPartActionService) { if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartActionService = activeWorkbenchPartActionService; if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.addActionServiceListener(actionServiceListener); } SortedMap actionsById = new TreeMap(); actionsById.putAll(getActionService().getActionsById()); //if (this.activeWorkbenchWindowActionService != null) // actionsById.putAll(this.activeWorkbenchWindowActionService.getActionsById()); if (this.activeWorkbenchWindow != null) { actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForGlobalActions()); actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForActionSets()); } if (this.activeWorkbenchPageActionService != null) actionsById.putAll(this.activeWorkbenchPageActionService.getActionsById()); if (this.activeWorkbenchPartActionService != null) actionsById.putAll(this.activeWorkbenchPartActionService.getActionsById()); commandManager.setActionsById(actionsById); /* if (activeWorkbenchWindowContextActivationService != this.activeWorkbenchWindowContextActivationService) { if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowContextActivationService = activeWorkbenchWindowContextActivationService; if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } */ if (activeWorkbenchPageContextActivationService != this.activeWorkbenchPageContextActivationService) { if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageContextActivationService = activeWorkbenchPageContextActivationService; if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } if (activeWorkbenchPartContextActivationService != this.activeWorkbenchPartContextActivationService) { if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartContextActivationService = activeWorkbenchPartContextActivationService; if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } SortedSet activeContextIds = new TreeSet(); activeContextIds.addAll(getContextActivationService().getActiveContextIds()); //if (this.activeWorkbenchWindowContextActivationService != null) // activeContextIds.addAll(this.activeWorkbenchWindowContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPageContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPageContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPartContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPartContextActivationService.getActiveContextIds()); contextManager.setActiveContextIds(new ArrayList(activeContextIds)); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1089, 3896, 2189, 2673, 1876, 3896, 1042, 2673, 1435, 288, 202, 202, 45, 2421, 22144, 3829, 2695, 2421, 22144, 3829, 273, 11960, 2421, 22144, 3829, 5621, 9506, 202, 430, 261, 3535, 2421, 22144, 3829, 480, 446, 597, 401, 12, 3535, 2421, 22144, 3829, 1276, 4147, 22144, 3829, 3719, 1082, 202, 3535, 2421, 22144, 3829, 273, 446, 31, 9506, 202, 759, 45, 1803, 1179, 2695, 2421, 22144, 3829, 1803, 1179, 273, 2695, 2421, 22144, 3829, 480, 446, 692, 14015, 2421, 22144, 3829, 13, 2695, 2421, 22144, 3829, 2934, 588, 1803, 1179, 1435, 294, 446, 31, 202, 202, 759, 45, 1042, 14857, 1179, 2695, 2421, 22144, 3829, 1042, 14857, 1179, 273, 2695, 2421, 22144, 3829, 480, 446, 692, 14015, 2421, 22144, 3829, 13, 2695, 2421, 22144, 3829, 2934, 29120, 14857, 1179, 1435, 294, 446, 31, 9506, 202, 45, 2421, 22144, 1964, 2695, 2421, 22144, 1964, 273, 2695, 2421, 22144, 3829, 480, 446, 692, 2695, 2421, 22144, 3829, 18, 588, 3896, 1964, 1435, 294, 446, 31, 202, 202, 45, 1803, 1179, 2695, 2421, 22144, 1964, 1803, 1179, 273, 2695, 2421, 22144, 1964, 480, 446, 692, 14015, 2421, 22144, 1964, 13, 2695, 2421, 22144, 1964, 2934, 588, 1803, 1179, 1435, 294, 446, 31, 202, 202, 45, 1042, 14857, 1179, 2695, 2421, 22144, 1964, 1042, 14857, 1179, 273, 2695, 2421, 22144, 1964, 480, 446, 692, 14015, 2421, 22144, 1964, 13, 2695, 2421, 22144, 1964, 2934, 29120, 14857, 1179, 1435, 294, 446, 31, 9506, 202, 45, 1988, 1179, 2695, 1988, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1089, 3896, 2189, 2673, 1876, 3896, 1042, 2673, 1435, 288, 202, 202, 45, 2421, 22144, 3829, 2695, 2421, 22144, 3829, 273, 11960, 2421, 22144, 3829, 5621, 9506, 202, 430, 261, 3535, 2421, 22144, 3829, 480, 446, 597, 401, 12, 3535, 2421, 22144, 3829, 1276, 4147, 22144, 3829, 3719, 1082, 202, 3535, 2421, 22144, 3829, 273, 446, 31, 9506, 202, 759, 45, 1803, 1179, 2695, 2421, 22144, 3829, 1803, 1179, 273, 2695, 2421, 22144, 3829, 480, 446, 692, 14015, 2421, 22144, 3829, 13, 2695, 2421, 22144, 3829, 2934, 588, 1803, 1179, 1435, 294, 446, 31, 202, 202, 759, 45, 1042, 14857, 1179, 2695, 2421, 22144, 3829, 1042, 14857, 1179, 273, 2695, 2421, 22144, 3829, 480, 446, 692, 2 ]
private int traverseSimpleTypeDecl( Element simpleTypeDecl ) throws Exception { String nameProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME ); String qualifiedName = nameProperty; if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+nameProperty; } //check if we have already traversed the same simpleType decl if (fDatatypeRegistry.getDatatypeValidator(qualifiedName)!=null) { return fStringPool.addSymbol(qualifiedName); } Attr finalAttr = simpleTypeDecl.getAttributeNode(SchemaSymbols.ATT_FINAL); int finalProperty = 0; if(finalAttr != null) finalProperty = parseFinalSet(finalAttr.getValue()); else finalProperty = parseFinalSet(null); // if we have a nonzero final , store it in the hash... if(finalProperty != 0) fSimpleTypeFinalRegistry.put(qualifiedName, new Integer(finalProperty)); boolean list = false; boolean union = false; boolean restriction = false; int newSimpleTypeName = -1; if ( nameProperty.equals("")) { // anonymous simpleType newSimpleTypeName = fStringPool.addSymbol( "#S#"+fSimpleTypeAnonCount++ ); } else newSimpleTypeName = fStringPool.addSymbol( nameProperty ); //annotation?,(list|restriction|union) Element content = XUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" String varietyProperty = content.getLocalName(); String baseTypeQNameProperty = null; Vector dTValidators = null; int size = 0; StringTokenizer unionMembers = null; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_ITEMTYPE ); list = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (!baseTypeQNameProperty.equals("")) { unionMembers = new StringTokenizer( baseTypeQNameProperty ); size = unionMembers.countTokens(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { reportSchemaError(SchemaMessageProvider.FeatureUnsupported, new Object [] { varietyProperty }); return -1; } if(XUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } int typeNameIndex; DatatypeValidator baseValidator = null; if ( baseTypeQNameProperty.equals("") ) { //must 'see' <simpleType> //content = {annotation?,simpleType?...} content = XUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } if (content.getLocalName().equals( SchemaSymbols.ELT_SIMPLETYPE )) { //Test... typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator !=null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( typeNameIndex == -1 || baseValidator == null) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { content.getAttribute( SchemaSymbols.ATT_BASE ), content.getAttribute(SchemaSymbols.ATT_NAME) }); return -1; } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); return -1; } } //end - must see simpleType? else { //base was provided - get proper validator. numOfTypes = 1; if (union) { numOfTypes= size; } // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeQNameProperty = unionMembers.nextToken(); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeQNameProperty, baseRefContext); if ( baseValidator == null) { return (-1); } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available if (list && baseValidator instanceof ListDatatypeValidator) { reportSchemaError(SchemaMessageProvider.InvalidBaseType, new Object [] { baseTypeQNameProperty, simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return -1; } // move to next child // restriction ->[simpleType]->[facets] OR // restriction ->[facets] if (baseTypeQNameProperty.equals ("")) { //we already got the first kid of union/list/restriction content = XUtil.getNextSiblingElement( content ); } else { //we need to look at first kid of union/list/restriction content = XUtil.getFirstChildElement(content); } //get more types for union if any if (union) { int index=size; if (!baseTypeQNameProperty.equals ("")) { content = checkContent(simpleTypeDecl, content, true); } while (content!=null) { typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator != null) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( baseValidator == null || typeNameIndex == -1) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return (-1); } content = XUtil.getNextSiblingElement( content ); } } // end - traverse Union Hashtable facetData =null; int numFacets=0; facetData = new Hashtable(); if (restriction && content != null) { int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(simpleTypeDecl, content , true); StringBuffer pattern = null; String facet; while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { numFacets++; facet =content.getLocalName(); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = content.getAttribute(SchemaSymbols.ATT_VALUE); String localName; if (baseValidator instanceof NOTATIONDatatypeValidator) { String prefix = ""; String localpart = enumVal; int colonptr = enumVal.indexOf(":"); if ( colonptr > 0) { prefix = enumVal.substring(0,colonptr); localpart = enumVal.substring(colonptr+1); } String uriStr = (!prefix.equals(""))?resolvePrefixToURI(prefix):fTargetNSURIString; qualifiedName=uriStr + ":" + localpart; localName = (String)fNotationRegistry.get(qualifiedName); if(localName == null){ localName = traverseNotationFromAnotherSchema( localpart, uriStr); if (localName == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } } if (DEBUGGING) { System.out.println("[notation decl] fullName: = " + qualifiedName); System.out.println("[notation decl] enum value: =" +enumVal); } enumVal=qualifiedName; } enumData.addElement(enumVal); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (pattern == null) { pattern = new StringBuffer (content.getAttribute( SchemaSymbols.ATT_VALUE )); } else { //datatypes: 5.2.4 pattern pattern.append("|"); pattern.append(content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } else { if ( facetData.containsKey(facet) ) reportSchemaError(SchemaMessageProvider.DatatypeError, new Object [] {"The facet '" + facet + "' is defined more than once."} ); facetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } content = XUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (pattern !=null) { facetData.put(SchemaSymbols.ELT_PATTERN, pattern.toString()); } } else if (list && content!=null) { // report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } else if (union && content!=null) { //report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } // create & register validator for "generated" type if it doesn't exist qualifiedName = fStringPool.toString(newSimpleTypeName); if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+qualifiedName; } try { DatatypeValidator newValidator = fDatatypeRegistry.getDatatypeValidator( qualifiedName ); if( newValidator == null ) { // not previously registered if (list) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,true); } else if (restriction) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,false); } else { //union fDatatypeRegistry.createDatatypeValidator( qualifiedName, dTValidators); } } } catch (Exception e) { reportSchemaError(SchemaMessageProvider.DatatypeError,new Object [] { e.getMessage() }); } return fStringPool.addSymbol(qualifiedName); }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, 67, 1985, 11272, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 309, 261, 74, 2326, 3156, 3098, 780, 18, 2469, 1832, 480, 374, 13, 288, 5411, 24133, 273, 284, 2326, 3156, 3098, 780, 15, 15937, 15, 529, 1396, 31, 3639, 289, 3639, 368, 1893, 309, 732, 1240, 1818, 29062, 326, 1967, 4143, 559, 3496, 3639, 309, 261, 74, 20228, 4243, 18, 588, 20228, 5126, 12, 19724, 461, 13, 5, 33, 2011, 13, 288, 5411, 327, 284, 780, 2864, 18, 1289, 5335, 12, 19724, 461, 1769, 3639, 289, 7734, 11289, 727, 3843, 273, 4143, 559, 3456, 18, 588, 1499, 907, 12, 3078, 14821, 18, 789, 56, 67, 7263, 1013, 1769, 3639, 509, 727, 1396, 273, 374, 31, 3639, 309, 12, 6385, 3843, 480, 446, 13, 2398, 727, 1396, 273, 1109, 7951, 694, 12, 6385, 3843, 18, 24805, 10663, 3639, 469, 5411, 727, 1396, 273, 1109, 7951, 694, 12, 2011, 1769, 3639, 368, 309, 732, 1240, 279, 16966, 727, 269, 1707, 518, 316, 326, 1651, 2777, 3639, 309, 12, 6385, 1396, 480, 374, 13, 2398, 284, 5784, 559, 7951, 4243, 18, 458, 12, 19724, 461, 16, 394, 2144, 12, 6385, 1396, 10019, 3639, 1250, 666, 273, 629, 31, 3639, 1250, 7812, 273, 629, 31, 3639, 1250, 9318, 273, 629, 31, 3639, 509, 377, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, 67, 1985, 11272, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 309, 261, 74, 2326, 3156, 3098, 780, 18, 2469, 1832, 480, 374, 13, 288, 5411, 24133, 273, 284, 2326, 3156, 3098, 780, 15, 15937, 15, 529, 1396, 31, 3639, 289, 3639, 368, 1893, 309, 732, 1240, 1818, 29062, 326, 1967, 4143, 559, 3496, 3639, 309, 261, 74, 20228, 4243, 18, 588, 20228, 5126, 12, 19724, 461, 13, 5, 33, 2011, 13, 288, 5411, 327, 284, 780, 2864, 18, 1289, 5335, 12, 19724, 461, 2 ]
String desc = covtable.getLineDescription(edgevec, lineType);
public void createEdge(CoverageTable covtable, EdgeTable edgetable, List edgevec, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon, CoordFloatString coords) { // Kept these here to keep in mind that it may be possible to // further figure out what exactly we have here. if (lineTypeExcludes != null) { MutableInt lineType = new MutableInt(-1); String desc = covtable.getLineDescription(edgevec, lineType); if (onList(lineTypeExcludes, lineType.value)) { return; } } OMPoly py = createEdgeOMPoly(coords, ll1, ll2, dpplat, dpplon); drawingAttributes.setTo(py); py.setIsPolygon(false); graphics.add(py); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/1d32917f1b1c6d98ab40573d03a46ae5b4b71370/VPFLayerDCWWarehouse.java/clean/src/openmap/com/bbn/openmap/layer/vpf/VPFLayerDCWWarehouse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 6098, 12, 9739, 1388, 10613, 2121, 16, 11342, 1388, 1675, 588, 429, 16, 21821, 987, 3591, 8799, 16, 11134, 15927, 2148, 6579, 21, 16, 11134, 15927, 2148, 6579, 22, 16, 21821, 1431, 9986, 412, 270, 16, 1431, 9986, 412, 265, 16, 10320, 4723, 780, 6074, 13, 288, 3639, 368, 225, 1475, 73, 337, 4259, 2674, 358, 3455, 316, 22838, 716, 518, 2026, 506, 3323, 358, 3639, 368, 225, 9271, 7837, 596, 4121, 8950, 732, 1240, 2674, 18, 3639, 309, 261, 1369, 559, 30866, 480, 446, 13, 288, 5411, 10960, 1702, 980, 559, 273, 394, 10960, 1702, 19236, 21, 1769, 13491, 309, 261, 265, 682, 12, 1369, 559, 30866, 16, 980, 559, 18, 1132, 3719, 288, 7734, 327, 31, 5411, 289, 3639, 289, 3639, 531, 4566, 355, 93, 2395, 273, 752, 6098, 1872, 12487, 12, 9076, 16, 6579, 21, 16, 6579, 22, 16, 9986, 412, 270, 16, 9986, 412, 265, 1769, 3639, 16327, 2498, 18, 542, 774, 12, 2074, 1769, 3639, 2395, 18, 542, 2520, 11787, 12, 5743, 1769, 3639, 17313, 18, 1289, 12, 2074, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 6098, 12, 9739, 1388, 10613, 2121, 16, 11342, 1388, 1675, 588, 429, 16, 21821, 987, 3591, 8799, 16, 11134, 15927, 2148, 6579, 21, 16, 11134, 15927, 2148, 6579, 22, 16, 21821, 1431, 9986, 412, 270, 16, 1431, 9986, 412, 265, 16, 10320, 4723, 780, 6074, 13, 288, 3639, 368, 225, 1475, 73, 337, 4259, 2674, 358, 3455, 316, 22838, 716, 518, 2026, 506, 3323, 358, 3639, 368, 225, 9271, 7837, 596, 4121, 8950, 732, 1240, 2674, 18, 3639, 309, 261, 1369, 559, 30866, 480, 446, 13, 288, 5411, 10960, 1702, 980, 559, 273, 394, 10960, 1702, 19236, 21, 1769, 13491, 309, 261, 265, 682, 12, 1369, 559, 30866, 16, 980, 559, 18, 1132, 3719, 288, 2 ]
request.setAttribute("datesVisible", "true");
request.setAttribute("datesVisible", "true");
private void choosenLesson(HttpServletRequest request, InfoSummary infoSummary) throws Exception { if (request.getParameter("forHidden") != null && request.getParameter("forHidden").length() > 0) { request.setAttribute("forHidden", request.getParameter("forHidden")); } if (request.getParameter("lesson") != null && request.getParameter("lesson").length() > 0) { if (!request.getParameter("lesson").equals("0")) { request.setAttribute("forHidden", "true"); Integer lessonSelected = new Integer (request.getParameter("lesson")); findNextSummaryDate(request, infoSummary, lessonSelected); request.setAttribute("datesVisible", "true"); } else { request.setAttribute("forHidden", "false"); request.setAttribute("datesVisible", "false"); } } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4923f050ea3b64f0a2e1ef2386c131813b068371/SummaryManagerAction.java/buggy/src/ServidorApresentacao/Action/departmentAdmOffice/SummaryManagerAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5011, 8918, 15313, 265, 12, 2940, 18572, 590, 16, 3807, 4733, 1123, 4733, 13, 1216, 1185, 288, 202, 202, 430, 261, 2293, 18, 588, 1662, 2932, 1884, 9345, 7923, 480, 446, 597, 590, 18, 588, 1662, 2932, 1884, 9345, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 2293, 18, 542, 1499, 2932, 1884, 9345, 3113, 590, 18, 588, 1662, 2932, 1884, 9345, 7923, 1769, 202, 202, 97, 4697, 202, 430, 261, 2293, 18, 588, 1662, 2932, 23818, 7923, 480, 446, 597, 590, 18, 588, 1662, 2932, 23818, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 430, 16051, 2293, 18, 588, 1662, 2932, 23818, 20387, 14963, 2932, 20, 6, 3719, 288, 6862, 9506, 202, 2293, 18, 542, 1499, 2932, 1884, 9345, 3113, 315, 3767, 8863, 6862, 6862, 202, 4522, 22766, 7416, 273, 394, 2144, 261, 2293, 18, 588, 1662, 2932, 23818, 7923, 1769, 9506, 202, 4720, 2134, 4733, 1626, 12, 2293, 16, 1123, 4733, 16, 22766, 7416, 1769, 6862, 6862, 6862, 1082, 202, 2293, 18, 542, 1499, 2932, 9683, 6207, 3113, 315, 3767, 8863, 10792, 6862, 1082, 202, 97, 469, 288, 9506, 202, 2293, 18, 542, 1499, 2932, 1884, 9345, 3113, 315, 5743, 8863, 9506, 202, 2293, 18, 542, 1499, 2932, 9683, 6207, 3113, 315, 5743, 8863, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5011, 8918, 15313, 265, 12, 2940, 18572, 590, 16, 3807, 4733, 1123, 4733, 13, 1216, 1185, 288, 202, 202, 430, 261, 2293, 18, 588, 1662, 2932, 1884, 9345, 7923, 480, 446, 597, 590, 18, 588, 1662, 2932, 1884, 9345, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 2293, 18, 542, 1499, 2932, 1884, 9345, 3113, 590, 18, 588, 1662, 2932, 1884, 9345, 7923, 1769, 202, 202, 97, 4697, 202, 430, 261, 2293, 18, 588, 1662, 2932, 23818, 7923, 480, 446, 597, 590, 18, 588, 1662, 2932, 23818, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 430, 16051, 2293, 18, 588, 1662, 2932, 23818, 20387, 14963, 2932, 20, 6, 3719, 288, 6862, 9506, 202, 2 ]
private void exec(String command) throws IOException { Message.debug("launching '"+command+"'"); _process = Runtime.getRuntime().exec(command); _in = new InputStreamReader(_process.getInputStream()); _err = new InputStreamReader(_process.getErrorStream()); _out = new PrintWriter(_process.getOutputStream()); _errorsReader = new Thread() { public void run() { int c; try { while (_err != null && (c = _err.read()) != -1) { _errors.append((char)c); } } catch (IOException e) { } } }; _errorsReader.start(); }
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/1936c40d363ed898ff953708f1361939c86e2274/VsftpRepository.java/clean/src/java/fr/jayasoft/ivy/repository/vsftp/VsftpRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1196, 12, 780, 1296, 13, 1216, 1860, 288, 202, 202, 1079, 18, 4148, 2932, 20738, 310, 2119, 15, 3076, 9078, 4970, 1769, 202, 202, 67, 2567, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1769, 202, 202, 67, 267, 273, 394, 15322, 24899, 2567, 18, 588, 4348, 10663, 202, 202, 67, 370, 273, 394, 15322, 24899, 2567, 18, 588, 668, 1228, 10663, 202, 202, 67, 659, 273, 394, 14071, 24899, 2567, 18, 588, 4632, 10663, 9506, 202, 67, 4324, 2514, 273, 394, 4884, 1435, 288, 6862, 1082, 202, 482, 918, 1086, 1435, 288, 6862, 9506, 202, 474, 276, 31, 6862, 9506, 202, 698, 288, 6862, 6862, 202, 17523, 261, 67, 370, 480, 446, 597, 261, 71, 273, 389, 370, 18, 896, 10756, 480, 300, 21, 13, 288, 6862, 25083, 202, 67, 4324, 18, 6923, 12443, 3001, 13, 71, 1769, 6862, 6862, 202, 97, 6862, 9506, 202, 97, 1044, 261, 14106, 425, 13, 288, 6862, 9506, 202, 97, 6862, 1082, 202, 97, 25083, 202, 20451, 202, 202, 67, 4324, 2514, 18, 1937, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1196, 12, 780, 1296, 13, 1216, 1860, 288, 202, 202, 1079, 18, 4148, 2932, 20738, 310, 2119, 15, 3076, 9078, 4970, 1769, 202, 202, 67, 2567, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1769, 202, 202, 67, 267, 273, 394, 15322, 24899, 2567, 18, 588, 4348, 10663, 202, 202, 67, 370, 273, 394, 15322, 24899, 2567, 18, 588, 668, 1228, 10663, 202, 202, 67, 659, 273, 394, 14071, 24899, 2567, 18, 588, 4632, 10663, 9506, 202, 67, 4324, 2514, 273, 394, 4884, 1435, 288, 6862, 1082, 202, 482, 918, 1086, 1435, 288, 6862, 9506, 202, 474, 276, 31, 6862, 9506, 202, 698, 288, 6862, 6862, 202, 17523, 261, 67, 370, 480, 446, 597, 2 ]
startingLocation = startingLocation.getNewLocation(direction, siteDistance); if (mars.getSurfaceFeatures().inDarkPolarRegion(startingLocation)) endMission(); tempVector.addElement(startingLocation);
Coordinates newLocation = startingLocation.getNewLocation(direction, siteDistance); if (surfaceFeatures.inDarkPolarRegion(newLocation)) throw new Exception("First location found in dark polar region."); unorderedSites.add(newLocation); Coordinates currentLocation = newLocation;
private void determineCollectionSites(double roverRange) { Vector tempVector = new Vector(); int numSites = RandomUtil.getRandomInt(1, 8); Coordinates startingLocation = startingSettlement.getCoordinates(); // Determine first site Direction direction = new Direction(RandomUtil.getRandomDouble(2 * Math.PI)); double limit = roverRange / 4D; double siteDistance = RandomUtil.getRandomDouble(limit); startingLocation = startingLocation.getNewLocation(direction, siteDistance); if (mars.getSurfaceFeatures().inDarkPolarRegion(startingLocation)) endMission(); tempVector.addElement(startingLocation); // Determine remaining sites double remainingRange = (roverRange / 2D) - siteDistance; for (int x=1; x < numSites; x++) { double startDistanceToSettlement = startingLocation.getDistance(startingSettlement.getCoordinates()); // Don't add collection site if greater than remaining rover range. if (remainingRange < startDistanceToSettlement) { numSites = x; break; } direction = new Direction(RandomUtil.getRandomDouble(2 * Math.PI)); double tempLimit1 = (remainingRange * remainingRange) - (startDistanceToSettlement * startDistanceToSettlement); double tempLimit2 = (2D * remainingRange) - (2D * startDistanceToSettlement * direction.getCosDirection()); limit = tempLimit1 / tempLimit2; siteDistance = RandomUtil.getRandomDouble(limit); startingLocation = startingLocation.getNewLocation(direction, siteDistance); if (mars.getSurfaceFeatures().inDarkPolarRegion(startingLocation)) endMission(); tempVector.addElement(startingLocation); remainingRange -= siteDistance; } // Reorder sites for shortest distance. startingLocation = startingSettlement.getCoordinates(); for (int x=0; x < numSites; x++) { Coordinates shortest = (Coordinates) tempVector.elementAt(0); for (int y=1; y < tempVector.size(); y++) { Coordinates tempCoordinates = (Coordinates) tempVector.elementAt(y); if (startingLocation.getDistance(tempCoordinates) < startingLocation.getDistance(shortest)) shortest = tempCoordinates; } startingLocation = shortest; collectionSites.addElement(shortest); tempVector.removeElement(shortest); } }
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/a697e2d1c1cc6fd42f5cd03f8faef0903a937fca/CollectRockSamplesMission.java/buggy/org/mars_sim/msp/simulation/person/ai/CollectRockSamplesMission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4199, 2532, 17055, 12, 9056, 721, 502, 2655, 13, 288, 3639, 5589, 1906, 5018, 273, 394, 5589, 5621, 3639, 509, 818, 17055, 273, 8072, 1304, 18, 588, 8529, 1702, 12, 21, 16, 1725, 1769, 3639, 10320, 4174, 5023, 2735, 273, 5023, 694, 88, 806, 18, 588, 13431, 5621, 3639, 368, 10229, 1122, 2834, 3639, 15280, 4068, 273, 394, 15280, 12, 8529, 1304, 18, 588, 8529, 5265, 12, 22, 380, 2361, 18, 1102, 10019, 3639, 1645, 1800, 273, 721, 502, 2655, 342, 1059, 40, 31, 3639, 1645, 2834, 7200, 273, 8072, 1304, 18, 588, 8529, 5265, 12, 3595, 1769, 3639, 5023, 2735, 273, 5023, 2735, 18, 588, 1908, 2735, 12, 9855, 16, 2834, 7200, 1769, 3639, 309, 261, 3684, 87, 18, 588, 11508, 8696, 7675, 267, 40, 1313, 5850, 297, 5165, 12, 18526, 2735, 3719, 679, 49, 19710, 5621, 3639, 1906, 5018, 18, 1289, 1046, 12, 18526, 2735, 1769, 3639, 368, 10229, 4463, 9180, 3639, 1645, 4463, 2655, 273, 261, 303, 502, 2655, 342, 576, 40, 13, 300, 2834, 7200, 31, 3639, 364, 261, 474, 619, 33, 21, 31, 619, 411, 818, 17055, 31, 619, 27245, 288, 5411, 1645, 787, 7200, 25208, 88, 806, 273, 5023, 2735, 18, 588, 7200, 12, 18526, 694, 88, 806, 18, 588, 13431, 10663, 5411, 368, 7615, 1404, 527, 1849, 2834, 309, 6802, 2353, 4463, 721, 502, 1048, 18, 5411, 309, 261, 17956, 2655, 411, 787, 7200, 25208, 88, 806, 13, 288, 7734, 818, 17055, 273, 619, 31, 7734, 898, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4199, 2532, 17055, 12, 9056, 721, 502, 2655, 13, 288, 3639, 5589, 1906, 5018, 273, 394, 5589, 5621, 3639, 509, 818, 17055, 273, 8072, 1304, 18, 588, 8529, 1702, 12, 21, 16, 1725, 1769, 3639, 10320, 4174, 5023, 2735, 273, 5023, 694, 88, 806, 18, 588, 13431, 5621, 3639, 368, 10229, 1122, 2834, 3639, 15280, 4068, 273, 394, 15280, 12, 8529, 1304, 18, 588, 8529, 5265, 12, 22, 380, 2361, 18, 1102, 10019, 3639, 1645, 1800, 273, 721, 502, 2655, 342, 1059, 40, 31, 3639, 1645, 2834, 7200, 273, 8072, 1304, 18, 588, 8529, 5265, 12, 3595, 1769, 3639, 5023, 2735, 273, 5023, 2735, 18, 588, 1908, 2735, 12, 9855, 16, 2834, 7200, 1769, 3639, 309, 2 ]
public static void dropTable(Connection con, String table)
public static void dropTable(Connection con, String table) throws SQLException
public static void dropTable(Connection con, String table) { try { Statement stmt = con.createStatement(); try { String sql = "DROP TABLE " + table; if (haveMinimumServerVersion(con,"7.3")) { sql += " CASCADE "; } stmt.executeUpdate(sql); } catch (SQLException ex) { // Since every create table issues a drop table // it's easy to get a table doesn't exist error. // we want to ignore these, but if we're in a // transaction we need to restart. // If the test case wants to catch this error // itself it should issue the drop SQL directly. if (ex.getMessage().indexOf("does not exist") != -1) { if (!con.getAutoCommit()) { con.rollback(); } } } } catch (SQLException ex) { TestCase.fail(ex.getMessage()); } }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/a8ad32bec3f83897fad02916531a8fc9316d8fe6/TestUtil.java/clean/org/postgresql/test/TestUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 780, 1847, 273, 315, 18768, 7567, 315, 397, 1014, 31, 9506, 202, 430, 261, 21516, 13042, 2081, 1444, 12, 591, 10837, 27, 18, 23, 6, 3719, 288, 6862, 202, 4669, 1011, 315, 6425, 25517, 13636, 9506, 202, 97, 9506, 202, 10589, 18, 8837, 1891, 12, 4669, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 23116, 431, 13, 1082, 202, 95, 9506, 202, 759, 7897, 3614, 752, 1014, 8296, 279, 3640, 1014, 9506, 202, 759, 518, 1807, 12779, 358, 336, 279, 1014, 3302, 1404, 1005, 555, 18, 9506, 202, 759, 732, 2545, 358, 2305, 4259, 16, 1496, 309, 732, 4565, 316, 279, 9506, 202, 759, 2492, 732, 1608, 358, 7870, 18, 9506, 202, 759, 971, 326, 1842, 648, 14805, 358, 1044, 333, 555, 9506, 202, 759, 6174, 518, 1410, 5672, 326, 3640, 3063, 5122, 18, 9506, 202, 430, 261, 338, 18, 24906, 7675, 31806, 2932, 20657, 486, 1005, 7923, 480, 300, 21, 13, 288, 6862, 202, 430, 16051, 591, 18, 588, 4965, 5580, 10756, 288, 25083, 202, 591, 18, 20050, 5621, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 14683, 261, 23116, 431, 13, 202, 202, 95, 1082, 202, 4709, 2449, 18, 6870, 12, 338, 18, 24906, 10663, 202, 202, 97, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 780, 1847, 273, 315, 18768, 7567, 315, 397, 1014, 31, 9506, 202, 430, 261, 21516, 13042, 2081, 1444, 12, 591, 10837, 27, 18, 23, 6, 3719, 288, 6862, 202, 4669, 1011, 315, 6425, 25517, 13636, 9506, 202, 97, 9506, 202, 10589, 18, 8837, 1891, 12, 4669, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 23116, 431, 13, 1082, 202, 95, 9506, 202, 759, 7897, 3614, 752, 1014, 8296, 279, 3640, 1014, 9506, 202, 759, 518, 1807, 12779, 358, 336, 2 ]
public DeclarationWrapper( IASTScope scope, int startingOffset, int startingLine, IASTTemplate templateDeclaration)
public DeclarationWrapper( DeclarationWrapper wrapper )
public DeclarationWrapper( IASTScope scope, int startingOffset, int startingLine, IASTTemplate templateDeclaration) { this.scope = scope; this.startingOffset = startingOffset; this.startingLine = startingLine; this.templateDeclaration = templateDeclaration; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b8154fb0fc2f322c7797146022726822d206bd93/DeclarationWrapper.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/DeclarationWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16110, 4302, 3611, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 509, 5023, 2335, 16, 3639, 509, 5023, 1670, 16, 467, 9053, 2283, 1542, 6094, 13, 565, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 18526, 2335, 273, 5023, 2335, 31, 3639, 333, 18, 18526, 1670, 273, 5023, 1670, 31, 3639, 333, 18, 3202, 6094, 273, 1542, 6094, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16110, 4302, 3611, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 509, 5023, 2335, 16, 3639, 509, 5023, 1670, 16, 467, 9053, 2283, 1542, 6094, 13, 565, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 18526, 2335, 273, 5023, 2335, 31, 3639, 333, 18, 18526, 1670, 273, 5023, 1670, 31, 3639, 333, 18, 3202, 6094, 273, 1542, 6094, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{
{
protected String paramString() { return "JPanel"; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/JPanel.java/buggy/libraries/javalib/javax/swing/JPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 225, 514, 579, 780, 1435, 565, 288, 202, 2463, 315, 46, 5537, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 225, 514, 579, 780, 1435, 565, 288, 202, 2463, 315, 46, 5537, 14432, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Node.Target jsrtarget = ((Node.Jump)n).getFinally();
Node jsrtarget = ((Node.Jump)n).getFinally();
private void transformCompilationUnit_r(final ScriptOrFnNode tree, final Node parent) { Node node = null; siblingLoop: for (;;) { Node previous = null; if (node == null) { node = parent.getFirstChild(); } else { previous = node; node = node.getNext(); } if (node == null) { break; } int type = node.getType(); switch (type) { case Token.LABEL: case Token.SWITCH: case Token.LOOP: loops.push(node); loopEnds.push(((Node.Jump)node).target); break; case Token.WITH: { loops.push(node); Node leave = node.getNext(); if (leave.getType() != Token.LEAVEWITH) { Kit.codeBug(); } loopEnds.push(leave); break; } case Token.TRY: { Node.Jump jump = (Node.Jump)node; Node finallytarget = jump.getFinally(); if (finallytarget != null) { hasFinally = true; loops.push(node); loopEnds.push(finallytarget); } break; } case Token.TARGET: case Token.LEAVEWITH: if (!loopEnds.isEmpty() && loopEnds.peek() == node) { loopEnds.pop(); loops.pop(); } break; case Token.RETURN: { /* If we didn't support try/finally, it wouldn't be * necessary to put LEAVEWITH nodes here... but as * we do need a series of JSR FINALLY nodes before * each RETURN, we need to ensure that each finally * block gets the correct scope... which could mean * that some LEAVEWITH nodes are necessary. */ if (!hasFinally) break; // skip the whole mess. Node unwindBlock = null; for (int i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.get(i); int elemtype = n.getType(); if (elemtype == Token.TRY || elemtype == Token.WITH) { Node unwind; if (elemtype == Token.TRY) { Node.Jump jsrnode = new Node.Jump(Token.JSR); Node.Target jsrtarget = ((Node.Jump)n).getFinally(); jsrnode.target = jsrtarget; unwind = jsrnode; } else { unwind = new Node(Token.LEAVEWITH); } if (unwindBlock == null) { unwindBlock = new Node(Token.BLOCK, node.getLineno()); } unwindBlock.addChildToBack(unwind); } } if (unwindBlock != null) { Node returnNode = node; Node returnExpr = returnNode.getFirstChild(); node = replaceCurrent(parent, previous, node, unwindBlock); if (returnExpr == null) { unwindBlock.addChildToBack(returnNode); } else { Node store = new Node(Token.EXPR_RESULT, returnExpr); unwindBlock.addChildToFront(store); returnNode = new Node(Token.RETURN_RESULT); unwindBlock.addChildToBack(returnNode); // transform return expression transformCompilationUnit_r(tree, store); } // skip transformCompilationUnit_r to avoid infinite loop continue siblingLoop; } break; } case Token.BREAK: case Token.CONTINUE: { Node.Jump jump = (Node.Jump)node; Node.Jump jumpStatement = jump.getJumpStatement(); if (jumpStatement == null) Kit.codeBug(); for (int i = loops.size(); ;) { if (i == 0) { // Parser/IRFactory ensure that break/continue // always has a jump statement associated with it // which should be found throw Kit.codeBug(); } --i; Node n = (Node) loops.get(i); if (n == jumpStatement) { break; } int elemtype = n.getType(); if (elemtype == Token.WITH) { Node leave = new Node(Token.LEAVEWITH); previous = addBeforeCurrent(parent, previous, node, leave); } else if (elemtype == Token.TRY) { Node.Jump tryNode = (Node.Jump)n; Node.Jump jsrFinally = new Node.Jump(Token.JSR); jsrFinally.target = tryNode.getFinally(); previous = addBeforeCurrent(parent, previous, node, jsrFinally); } } if (type == Token.BREAK) { jump.target = jumpStatement.target; } else { jump.target = jumpStatement.getContinue(); } jump.setType(Token.GOTO); break; } case Token.CALL: visitCall(node, tree); break; case Token.NEW: visitNew(node, tree); break; case Token.VAR: { Node result = new Node(Token.BLOCK); for (Node cursor = node.getFirstChild(); cursor != null;) { // Move cursor to next before createAssignment get chance // to change n.next Node n = cursor; if (n.getType() != Token.NAME) Kit.codeBug(); cursor = cursor.getNext(); if (!n.hasChildren()) continue; Node init = n.getFirstChild(); n.removeChild(init); n.setType(Token.BINDNAME); n = new Node(Token.SETNAME, n, init); Node pop = new Node(Token.EXPR_VOID, n, node.getLineno()); result.addChildToBack(pop); } node = replaceCurrent(parent, previous, node, result); break; } case Token.DELPROP: case Token.SETNAME: { if (!inFunction || inWithStatement()) break; Node bind = node.getFirstChild(); if (bind == null || bind.getType() != Token.BINDNAME) break; String name = bind.getString(); if (tree.hasParamOrVar(name)) { if (type == Token.SETNAME) { node.setType(Token.SETVAR); bind.setType(Token.STRING); } else { // Local variables are by definition permanent Node n = new Node(Token.FALSE); node = replaceCurrent(parent, previous, node, n); } } break; } case Token.NAME: { if (!inFunction || inWithStatement()) break; String name = node.getString(); if (tree.hasParamOrVar(name)) { node.setType(Token.GETVAR); } break; } } transformCompilationUnit_r(tree, node); } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/00c3a706bf401545154202d57d1edaa0e2f9b8b8/NodeTransformer.java/buggy/src/org/mozilla/javascript/NodeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 19184, 2802, 67, 86, 12, 6385, 7739, 1162, 5372, 907, 2151, 16, 4766, 5411, 727, 2029, 982, 13, 565, 288, 3639, 2029, 756, 273, 446, 31, 1377, 10841, 6452, 30, 3639, 364, 261, 25708, 13, 288, 5411, 2029, 2416, 273, 446, 31, 5411, 309, 261, 2159, 422, 446, 13, 288, 7734, 756, 273, 982, 18, 588, 3759, 1763, 5621, 5411, 289, 469, 288, 7734, 2416, 273, 756, 31, 7734, 756, 273, 756, 18, 588, 2134, 5621, 5411, 289, 5411, 309, 261, 2159, 422, 446, 13, 288, 7734, 898, 31, 5411, 289, 5411, 509, 618, 273, 756, 18, 588, 559, 5621, 5411, 1620, 261, 723, 13, 288, 2868, 648, 3155, 18, 13545, 30, 2868, 648, 3155, 18, 18746, 25588, 30, 2868, 648, 3155, 18, 28677, 30, 7734, 14075, 18, 6206, 12, 2159, 1769, 7734, 2798, 24980, 18, 6206, 12443, 12, 907, 18, 26743, 13, 2159, 2934, 3299, 1769, 7734, 898, 31, 2868, 648, 3155, 18, 9147, 30, 2868, 288, 7734, 14075, 18, 6206, 12, 2159, 1769, 7734, 2029, 8851, 273, 756, 18, 588, 2134, 5621, 7734, 309, 261, 19574, 18, 588, 559, 1435, 480, 3155, 18, 900, 26714, 9147, 13, 288, 10792, 1475, 305, 18, 710, 19865, 5621, 7734, 289, 7734, 2798, 24980, 18, 6206, 12, 19574, 1769, 7734, 898, 31, 2868, 289, 2868, 648, 3155, 18, 17805, 30, 2868, 288, 7734, 2029, 18, 26743, 11833, 273, 261, 907, 18, 26743, 13, 2159, 31, 7734, 2029, 3095, 3299, 273, 11833, 18, 588, 29987, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 19184, 2802, 67, 86, 12, 6385, 7739, 1162, 5372, 907, 2151, 16, 4766, 5411, 727, 2029, 982, 13, 565, 288, 3639, 2029, 756, 273, 446, 31, 1377, 10841, 6452, 30, 3639, 364, 261, 25708, 13, 288, 5411, 2029, 2416, 273, 446, 31, 5411, 309, 261, 2159, 422, 446, 13, 288, 7734, 756, 273, 982, 18, 588, 3759, 1763, 5621, 5411, 289, 469, 288, 7734, 2416, 273, 756, 31, 7734, 756, 273, 756, 18, 588, 2134, 5621, 5411, 289, 5411, 309, 261, 2159, 422, 446, 13, 288, 7734, 898, 31, 5411, 289, 5411, 509, 618, 273, 756, 18, 588, 559, 5621, 5411, 1620, 261, 723, 13, 288, 2868, 648, 3155, 18, 13545, 30, 2868, 648, 3155, 2 ]
public void usingDirectiveNamespaceId(Object container) {
public Object usingDirectiveNamespaceId(Object container) { return null;
public void usingDirectiveNamespaceId(Object container) { }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/44aad85270fb48dbc04906626c769076958182ca/NullParserCallback.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/NullParserCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1450, 13307, 3402, 548, 12, 921, 1478, 13, 288, 6862, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1450, 13307, 3402, 548, 12, 921, 1478, 13, 288, 6862, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet packet) { try { if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) { cancelledNotification(packet.getFrom(), ""); } } catch (Exception e) { Log.error(e); } } }, new PacketTypeFilter(Message.class));
MessageEventRequestListener messageEventRequestListener = new ChatMessageEventRequestListener(); SparkManager.getMessageEventManager(). addMessageEventRequestListener(messageEventRequestListener);
private ChatManager() { chatContainer = new ChatContainer(); // Add a Message Handler SparkManager.getMessageEventManager().addMessageEventNotificationListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet packet) { try { if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) { cancelledNotification(packet.getFrom(), ""); } } catch (Exception e) { Log.error(e); } } }, new PacketTypeFilter(Message.class)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16903, 1318, 1435, 288, 3639, 7916, 2170, 273, 394, 16903, 2170, 5621, 3639, 368, 1436, 279, 2350, 4663, 3639, 21087, 1318, 18, 24906, 1133, 1318, 7675, 1289, 1079, 1133, 4386, 2223, 12, 2211, 1769, 3639, 21087, 1318, 18, 588, 1952, 7675, 1289, 6667, 2223, 12, 2704, 11114, 2223, 1435, 288, 5411, 1071, 918, 1207, 6667, 12, 6385, 11114, 4414, 13, 288, 7734, 775, 288, 10792, 309, 261, 3662, 682, 18, 12298, 12, 780, 1989, 18, 2670, 31242, 1887, 12, 11482, 18, 588, 1265, 1435, 20349, 288, 13491, 13927, 4386, 12, 11482, 18, 588, 1265, 9334, 1408, 1769, 10792, 289, 7734, 289, 7734, 1044, 261, 503, 425, 13, 288, 10792, 1827, 18, 1636, 12, 73, 1769, 7734, 289, 5411, 289, 3639, 19879, 394, 11114, 559, 1586, 12, 1079, 18, 1106, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16903, 1318, 1435, 288, 3639, 7916, 2170, 273, 394, 16903, 2170, 5621, 3639, 368, 1436, 279, 2350, 4663, 3639, 21087, 1318, 18, 24906, 1133, 1318, 7675, 1289, 1079, 1133, 4386, 2223, 12, 2211, 1769, 3639, 21087, 1318, 18, 588, 1952, 7675, 1289, 6667, 2223, 12, 2704, 11114, 2223, 1435, 288, 5411, 1071, 918, 1207, 6667, 12, 6385, 11114, 4414, 13, 288, 7734, 775, 288, 10792, 309, 261, 3662, 682, 18, 12298, 12, 780, 1989, 18, 2670, 31242, 1887, 12, 11482, 18, 588, 1265, 1435, 20349, 288, 13491, 13927, 4386, 12, 11482, 18, 588, 1265, 9334, 1408, 1769, 10792, 289, 7734, 289, 7734, 1044, 261, 503, 425, 13, 288, 10792, 1827, 18, 1636, 12, 73, 1769, 7734, 289, 2 ]
return this.getOid() + "." + instance;
return SnmpObjId.get(getOid(), instance).toString();
protected String getFullOid(String ifIndex) { // Make sure we have an actual object id value. if (this.getOid() == null) return null; String instance = null; if (this.getInstance().equals(MibObject.INSTANCE_IFINDEX)) instance = ifIndex; else instance = this.getInstance(); return this.getOid() + "." + instance; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/b2c10edd700183a57309d52ccd08ffc4fe13c967/DataSource.java/clean/src/services/org/opennms/netmgt/collectd/DataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 10208, 19105, 12, 780, 309, 1016, 13, 288, 202, 202, 759, 4344, 3071, 732, 1240, 392, 3214, 733, 612, 460, 18, 202, 202, 430, 261, 2211, 18, 588, 19105, 1435, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 780, 791, 273, 446, 31, 202, 202, 430, 261, 2211, 18, 588, 1442, 7675, 14963, 12, 49, 495, 921, 18, 13341, 67, 5501, 9199, 3719, 1082, 202, 1336, 273, 309, 1016, 31, 202, 202, 12107, 1082, 202, 1336, 273, 333, 18, 588, 1442, 5621, 202, 202, 2463, 333, 18, 588, 19105, 1435, 397, 4585, 397, 791, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 10208, 19105, 12, 780, 309, 1016, 13, 288, 202, 202, 759, 4344, 3071, 732, 1240, 392, 3214, 733, 612, 460, 18, 202, 202, 430, 261, 2211, 18, 588, 19105, 1435, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 780, 791, 273, 446, 31, 202, 202, 430, 261, 2211, 18, 588, 1442, 7675, 14963, 12, 49, 495, 921, 18, 13341, 67, 5501, 9199, 3719, 1082, 202, 1336, 273, 309, 1016, 31, 202, 202, 12107, 1082, 202, 1336, 273, 333, 18, 588, 1442, 5621, 202, 202, 2463, 333, 18, 588, 19105, 1435, 397, 4585, 397, 791, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
void drawRectangles (Rectangle [] rects) {
void drawRectangles (Rectangle [] rects, boolean stippled) {
void drawRectangles (Rectangle [] rects) { if (parent != null) { if (parent.isDisposed ()) return; Shell shell = parent.getShell (); shell.update (true); } else { display.update (); } int bandWidth = 1; int hwndTrack = OS.GetDesktopWindow (); if (parent != null) hwndTrack = parent.handle; int hDC = OS.GetDCEx (hwndTrack, 0, OS.DCX_CACHE); int hBitmap = 0, hBrush = 0, oldBrush = 0; if (stippled) { bandWidth = 3; byte [] bits = {-86, 0, 85, 0, -86, 0, 85, 0, -86, 0, 85, 0, -86, 0, 85, 0}; hBitmap = OS.CreateBitmap (8, 8, 1, 1, bits); hBrush = OS.CreatePatternBrush (hBitmap); oldBrush = OS.SelectObject (hDC, hBrush); } for (int i=0; i<rects.length; i++) { Rectangle rect = rects [i]; OS.PatBlt (hDC, rect.x, rect.y, rect.width, bandWidth, OS.PATINVERT); OS.PatBlt (hDC, rect.x, rect.y + bandWidth, bandWidth, rect.height - (bandWidth * 2), OS.PATINVERT); OS.PatBlt (hDC, rect.x + rect.width - bandWidth, rect.y + bandWidth, bandWidth, rect.height - (bandWidth * 2), OS.PATINVERT); OS.PatBlt (hDC, rect.x, rect.y + rect.height - bandWidth, rect.width, bandWidth, OS.PATINVERT); } if (stippled) { OS.SelectObject (hDC, oldBrush); OS.DeleteObject (hBrush); OS.DeleteObject (hBitmap); } OS.ReleaseDC (hwndTrack, hDC);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/619ad52e0ca03af04fa426b24b11342862d05765/Tracker.java/clean/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 3724, 6120, 12356, 261, 19463, 5378, 4917, 87, 13, 288, 202, 430, 261, 2938, 480, 446, 13, 288, 202, 202, 430, 261, 2938, 18, 291, 1669, 7423, 1832, 13, 327, 31, 202, 202, 13220, 5972, 273, 982, 18, 588, 13220, 261, 1769, 202, 202, 10304, 18, 2725, 261, 3767, 1769, 202, 97, 469, 288, 202, 202, 5417, 18, 2725, 261, 1769, 202, 97, 202, 474, 8937, 2384, 273, 404, 31, 202, 474, 16139, 4880, 4402, 273, 5932, 18, 967, 27583, 3829, 261, 1769, 202, 430, 261, 2938, 480, 446, 13, 16139, 4880, 4402, 273, 982, 18, 4110, 31, 202, 474, 366, 5528, 273, 5932, 18, 967, 5528, 424, 261, 20701, 4880, 4402, 16, 374, 16, 5932, 18, 5528, 60, 67, 8495, 1769, 202, 474, 366, 12224, 273, 374, 16, 366, 19114, 1218, 273, 374, 16, 1592, 19114, 1218, 273, 374, 31, 202, 430, 261, 334, 15491, 1259, 13, 288, 202, 202, 12752, 2384, 273, 890, 31, 202, 202, 7229, 5378, 4125, 273, 288, 17, 5292, 16, 374, 16, 19692, 16, 374, 16, 300, 5292, 16, 374, 16, 19692, 16, 374, 16, 300, 5292, 16, 374, 16, 19692, 16, 374, 16, 300, 5292, 16, 374, 16, 19692, 16, 374, 20451, 202, 202, 76, 12224, 273, 5932, 18, 1684, 12224, 261, 28, 16, 1725, 16, 404, 16, 404, 16, 4125, 1769, 202, 202, 76, 19114, 1218, 273, 5932, 18, 1684, 3234, 19114, 1218, 261, 76, 12224, 1769, 202, 202, 1673, 19114, 1218, 273, 5932, 18, 3391, 921, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 3724, 6120, 12356, 261, 19463, 5378, 4917, 87, 13, 288, 202, 430, 261, 2938, 480, 446, 13, 288, 202, 202, 430, 261, 2938, 18, 291, 1669, 7423, 1832, 13, 327, 31, 202, 202, 13220, 5972, 273, 982, 18, 588, 13220, 261, 1769, 202, 202, 10304, 18, 2725, 261, 3767, 1769, 202, 97, 469, 288, 202, 202, 5417, 18, 2725, 261, 1769, 202, 97, 202, 474, 8937, 2384, 273, 404, 31, 202, 474, 16139, 4880, 4402, 273, 5932, 18, 967, 27583, 3829, 261, 1769, 202, 430, 261, 2938, 480, 446, 13, 16139, 4880, 4402, 273, 982, 18, 4110, 31, 202, 474, 366, 5528, 273, 5932, 18, 967, 5528, 424, 261, 20701, 4880, 4402, 16, 374, 16, 5932, 18, 5528, 2 ]
resourceNameField = new Text(nameGroup, SWT.BORDER); resourceNameField.addListener(SWT.Modify, this); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); data.widthHint = SIZING_TEXT_FIELD_WIDTH; resourceNameField.setLayoutData(data); resourceNameField.setFont(font);
resourceNameField = new Text( nameGroup, SWT.BORDER ); resourceNameField.addListener( SWT.Modify, this ); GridData data = new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL ); data.widthHint = SIZING_TEXT_FIELD_WIDTH; resourceNameField.setLayoutData( data ); resourceNameField.setFont( font );
protected void createContents(Composite parent, String resourceLabelString, int heightHint) { Font font = parent.getFont(); // server name group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; composite.setLayout(layout); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); composite.setFont(font); // container group if (heightHint == SWT.DEFAULT) containerGroup = new ContainerSelectionGroup(composite, this, true, null, showClosedProjects); else containerGroup = new ContainerSelectionGroup(composite, this, true, null, showClosedProjects, heightHint); // resource name group Composite nameGroup = new Composite(composite, SWT.NONE); layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; nameGroup.setLayout(layout); nameGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); nameGroup.setFont(font); Label label = new Label(nameGroup, SWT.NONE); label.setText(resourceLabelString); label.setFont(font); // resource name entry field resourceNameField = new Text(nameGroup, SWT.BORDER); resourceNameField.addListener(SWT.Modify, this); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); data.widthHint = SIZING_TEXT_FIELD_WIDTH; resourceNameField.setLayoutData(data); resourceNameField.setFont(font); validateControls(); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/eb9617da439d12c40f3451f4e4438472a44aab3d/WizardSaveAsPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/WizardSaveAsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 6323, 12, 9400, 982, 16, 514, 1058, 2224, 780, 16, 5411, 509, 2072, 7002, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 368, 1438, 508, 1041, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 5621, 3639, 3511, 18, 10107, 2384, 273, 374, 31, 3639, 3511, 18, 10107, 2686, 273, 374, 31, 3639, 9635, 18, 542, 3744, 12, 6741, 1769, 3639, 9635, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 55, 8588, 18, 29818, 16, 348, 8588, 18, 29818, 16, 638, 16, 638, 10019, 3639, 9635, 18, 542, 5711, 12, 5776, 1769, 3639, 368, 1478, 1041, 3639, 309, 261, 4210, 7002, 422, 348, 8588, 18, 5280, 13, 5411, 1478, 1114, 273, 394, 4039, 6233, 1114, 12, 27676, 16, 333, 16, 638, 16, 10792, 446, 16, 2405, 7395, 15298, 1769, 3639, 469, 5411, 1478, 1114, 273, 394, 4039, 6233, 1114, 12, 27676, 16, 333, 16, 638, 16, 10792, 446, 16, 2405, 7395, 15298, 16, 2072, 7002, 1769, 3639, 368, 1058, 508, 1041, 3639, 14728, 508, 1114, 273, 394, 14728, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 3639, 3511, 273, 394, 7145, 3744, 5621, 3639, 3511, 18, 2107, 3380, 273, 576, 31, 3639, 3511, 18, 10107, 2384, 273, 374, 31, 3639, 508, 1114, 18, 542, 3744, 12, 6741, 1769, 3639, 508, 1114, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 44, 20344, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 6323, 12, 9400, 982, 16, 514, 1058, 2224, 780, 16, 5411, 509, 2072, 7002, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 368, 1438, 508, 1041, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 5621, 3639, 3511, 18, 10107, 2384, 273, 374, 31, 3639, 3511, 18, 10107, 2686, 273, 374, 31, 3639, 9635, 18, 542, 3744, 12, 6741, 1769, 3639, 9635, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 55, 8588, 18, 29818, 16, 348, 8588, 18, 29818, 16, 638, 16, 638, 10019, 3639, 9635, 18, 542, 5711, 12, 5776, 1769, 3639, 368, 1478, 1041, 3639, 2 ]
public org.quickfix.field.Nested2PartyID get(org.quickfix.field.Nested2PartyID value)
public quickfix.field.Nested2PartyID get(quickfix.field.Nested2PartyID value)
public org.quickfix.field.Nested2PartyID get(org.quickfix.field.Nested2PartyID value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 8649, 22, 17619, 734, 336, 12, 19525, 904, 18, 1518, 18, 8649, 22, 17619, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 8649, 22, 17619, 734, 336, 12, 19525, 904, 18, 1518, 18, 8649, 22, 17619, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
CellHandleAdapter cellAdapter = HandleAdapterFactory .getInstance( ).getCellHandleAdapter( obj );
CellHandleAdapter cellAdapter = HandleAdapterFactory.getInstance( ) .getCellHandleAdapter( obj );
public static boolean isInSameColumn( Object[] objs ) { assert objs != null && objs.length > 1; final class ColumnPosition { int columnNumber; Object parent; ColumnPosition( Object obj ) { if ( obj instanceof ColumnHandle ) { ColumnHandleAdapter columnAdapter = HandleAdapterFactory .getInstance( ).getColumnHandleAdapter( obj ); columnNumber = columnAdapter.getColumnNumber( ); parent = getTableParent( (DesignElementHandle) obj ); } else if ( obj instanceof CellHandle ) { CellHandleAdapter cellAdapter = HandleAdapterFactory .getInstance( ).getCellHandleAdapter( obj ); columnNumber = cellAdapter.getColumnNumber( ); parent = getTableParent( (DesignElementHandle) obj ); } } } ColumnPosition position = null; for ( int i = 0; i < objs.length; i++ ) { ColumnPosition newPosi = new ColumnPosition( objs[i] ); if ( position == null ) { position = newPosi; } else if ( position.columnNumber != newPosi.columnNumber || position.parent != newPosi.parent ) { return false; } } return true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/15872394c039d121619cbe58b491c78363c43ff7/DNDUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 8048, 8650, 1494, 12, 1033, 8526, 12721, 262, 202, 95, 202, 202, 11231, 12721, 480, 446, 597, 12721, 18, 2469, 405, 404, 31, 202, 202, 6385, 667, 4753, 2555, 202, 202, 95, 1082, 202, 474, 1057, 1854, 31, 1082, 202, 921, 982, 31, 1082, 202, 1494, 2555, 12, 1033, 1081, 262, 1082, 202, 95, 9506, 202, 430, 261, 1081, 1276, 4753, 3259, 262, 9506, 202, 95, 6862, 202, 1494, 3259, 4216, 1057, 4216, 273, 5004, 4216, 1733, 6862, 1082, 202, 18, 588, 1442, 12, 262, 18, 588, 1494, 3259, 4216, 12, 1081, 11272, 6862, 202, 2827, 1854, 273, 1057, 4216, 18, 588, 1494, 1854, 12, 11272, 6862, 202, 2938, 273, 5638, 3054, 12, 261, 15478, 1046, 3259, 13, 1081, 11272, 9506, 202, 97, 9506, 202, 12107, 309, 261, 1081, 1276, 8614, 3259, 262, 9506, 202, 95, 6862, 202, 4020, 3259, 4216, 2484, 4216, 273, 5004, 4216, 1733, 6862, 1082, 202, 18, 588, 1442, 12, 262, 18, 588, 4020, 3259, 4216, 12, 1081, 11272, 6862, 202, 2827, 1854, 273, 2484, 4216, 18, 588, 1494, 1854, 12, 11272, 6862, 202, 2938, 273, 5638, 3054, 12, 261, 15478, 1046, 3259, 13, 1081, 11272, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 1494, 2555, 1754, 273, 446, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 12721, 18, 2469, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 1494, 2555, 394, 1616, 77, 273, 394, 4753, 2555, 12, 12721, 63, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 8048, 8650, 1494, 12, 1033, 8526, 12721, 262, 202, 95, 202, 202, 11231, 12721, 480, 446, 597, 12721, 18, 2469, 405, 404, 31, 202, 202, 6385, 667, 4753, 2555, 202, 202, 95, 1082, 202, 474, 1057, 1854, 31, 1082, 202, 921, 982, 31, 1082, 202, 1494, 2555, 12, 1033, 1081, 262, 1082, 202, 95, 9506, 202, 430, 261, 1081, 1276, 4753, 3259, 262, 9506, 202, 95, 6862, 202, 1494, 3259, 4216, 1057, 4216, 273, 5004, 4216, 1733, 6862, 1082, 202, 18, 588, 1442, 12, 262, 18, 588, 1494, 3259, 4216, 12, 1081, 11272, 6862, 202, 2827, 1854, 273, 1057, 4216, 18, 588, 1494, 1854, 12, 11272, 6862, 202, 2938, 273, 5638, 3054, 12, 261, 2 ]
while (currentcode < 66) {
while ((currentcode < 66) && (in.available() > 2)) {
protected void initStandardMetadata() { try { Hashtable ifd = ifds[0]; super.initStandardMetadata(); Integer obj = new Integer(0); int offset; Integer k = new Integer(UIC4TAG); long[] temp = (long[]) ifd.get(k); Long[] q = new Long[temp.length]; for (int i=0; i<q.length; i++) q[i] = new Long(temp[i]); if (q == null) offset = -1; Integer w = new Integer(q[1].intValue()); if (w == null) offset = -1; else offset = w.intValue(); if (offset < 0) throw new FormatException("UIC4TAG not found"); in.seek(offset); int currentcode = -1; byte[] toread; TiffRational[] temp2 = (TiffRational[]) ifd.get(new Integer(METAMORPH_ID)); Long[] v = new Long[temp2.length]; for (int i=0; i<v.length; i++) v[i] = new Long(temp2[i].longValue()); if (v == null) throw new FormatException("Metamorph ID not found"); int planes = v[1].intValue(); boolean little = TiffTools.isLittleEndian(ifd); while (currentcode < 66) { currentcode = DataTools.read2SignedBytes(in, little); // variable declarations, because switch is dumb int num, denom; int xnum, xdenom, ynum, ydenom; double xpos, ypos; String thedate, thetime; switch (currentcode) { case 0: String autoscale = DataTools.read4SignedBytes(in, little) == 0 ? "no auto-scaling" : "16-bit to 8-bit scaling"; put("AutoScale", autoscale); break; case 1: put("MinScale", DataTools.read4SignedBytes(in, little)); break; case 2: put("MaxScale", DataTools.read4SignedBytes(in, little)); break; case 3: int calib = DataTools.read4SignedBytes(in, little); String calibration = calib == 0 ? "on" : "off"; put("Spatial Calibration", calibration); break; case 4: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("XCalibration", new TiffRational(num, denom)); break; case 5: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("YCalibration", new TiffRational(num, denom)); break; case 6: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("CalibrationUnits", new String(toread)); break; case 7: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String name = new String(toread); put("Name", name); OMETools.setImageName(ome, name); break; case 8: int thresh = DataTools.read4SignedBytes(in, little); String threshState = "off"; if (thresh == 1) threshState = "inside"; else if (thresh == 2) threshState = "outside"; put("ThreshState", threshState); break; case 9: put("ThreshStateRed", DataTools.read4SignedBytes(in, little)); break; // there is no 10 case 11: put("ThreshStateGreen", DataTools.read4SignedBytes(in, little)); break; case 12: put("ThreshStateBlue", DataTools.read4SignedBytes(in, little)); break; case 13: put("ThreshStateLo", DataTools.read4SignedBytes(in, little)); break; case 14: put("ThreshStateHi", DataTools.read4SignedBytes(in, little)); break; case 15: int zoom = DataTools.read4SignedBytes(in, little); put("Zoom", zoom);// OMETools.setAttribute(ome, "DisplayOptions", "Zoom", "" + zoom); break; case 16: // oh how we hate you Julian format... thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("DateTime", thedate + " " + thetime); OMETools.setCreationDate(ome, thedate + " " + thetime); break; case 17: thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("LastSavedTime", thedate + " " + thetime); break; case 18: put("currentBuffer", DataTools.read4SignedBytes(in, little)); break; case 19: put("grayFit", DataTools.read4SignedBytes(in, little)); break; case 20: put("grayPointCount", DataTools.read4SignedBytes(in, little)); break; case 21: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayX", new TiffRational(num, denom)); break; case 22: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("gray", new TiffRational(num, denom)); break; case 23: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMin", new TiffRational(num, denom)); break; case 24: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMax", new TiffRational(num, denom)); break; case 25: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("grayUnitName", new String(toread)); break; case 26: int standardLUT = DataTools.read4SignedBytes(in, little); String standLUT; switch (standardLUT) { case 0: standLUT = "monochrome"; break; case 1: standLUT = "pseudocolor"; break; case 2: standLUT = "Red"; break; case 3: standLUT = "Green"; break; case 4: standLUT = "Blue"; break; case 5: standLUT = "user-defined"; break; default: standLUT = "monochrome"; break; } put("StandardLUT", standLUT); break; case 27: put("Wavelength", DataTools.read4SignedBytes(in, little)); break; case 28: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Stage Position Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 29: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Camera Offset Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 30: put("OverlayMask", DataTools.read4SignedBytes(in, little)); break; case 31: put("OverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 32: put("Overlay", DataTools.read4SignedBytes(in, little)); break; case 33: put("SpecialOverlayMask", DataTools.read4SignedBytes(in, little)); break; case 34: put("SpecialOverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 35: put("SpecialOverlay", DataTools.read4SignedBytes(in, little)); break; case 36: put("ImageProperty", DataTools.read4SignedBytes(in, little)); break; case 37: for (int i = 0; i<planes; i++) { num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String s = new String(toread); put("StageLabel Plane " + i, s); } break; case 38: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleLoInfo", new TiffRational(num, denom)); break; case 39: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleHiInfo", new TiffRational(num, denom)); break; case 40: for (int i=0;i<planes;i++) { num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AbsoluteZ Plane " + i, new TiffRational(num, denom)); } break; case 41: for (int i=0; i<planes; i++) { put("AbsoluteZValid Plane " + i, DataTools.read4SignedBytes(in, little)); } break; case 42: put("Gamma", DataTools.read4SignedBytes(in, little)); break; case 43: put("GammaRed", DataTools.read4SignedBytes(in, little)); break; case 44: put("GammaGreen", DataTools.read4SignedBytes(in, little)); break; case 45: put("GammaBlue", DataTools.read4SignedBytes(in, little)); break; } // end switch } } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/91859a26506b8a1d312b398da2c3ecd94e02fa60/MetamorphReader.java/clean/loci/formats/MetamorphReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 2144, 341, 273, 394, 2144, 12, 85, 63, 21, 8009, 474, 620, 10663, 1377, 309, 261, 91, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 469, 1384, 273, 225, 341, 18, 474, 620, 5621, 1377, 309, 261, 3348, 411, 374, 13, 604, 394, 4077, 503, 2932, 57, 2871, 24, 7927, 486, 1392, 8863, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 509, 783, 710, 273, 300, 21, 31, 1377, 1160, 8526, 358, 896, 31, 1377, 399, 3048, 54, 8371, 8526, 1906, 22, 273, 261, 56, 3048, 54, 8371, 63, 5717, 3639, 309, 72, 18, 588, 12, 2704, 2144, 12, 18315, 2192, 916, 8939, 67, 734, 10019, 1377, 3407, 8526, 331, 273, 394, 3407, 63, 5814, 22, 18, 2469, 15533, 1377, 364, 261, 474, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 2 ]
Scriptable fnOrScript,
NativeFunction fnOrScript,
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Exception ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, OTHER = 2; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else { errObj = ex; exType = OTHER; } if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; else throw (RuntimeException)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bd4398308e7a90b8c0479568416af0bb30da587c/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 540, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 67, 2664, 4464, 397, 943, 5555, 31, 540, 727, 509, 4235, 61, 67, 19444, 67, 2664, 4464, 273, 15234, 67, 2664, 4464, 397, 943, 1333, 1031, 31, 759, 2110, 63, 20, 1648, 277, 411, 8350, 67, 2664, 4464, 14542, 2110, 501, 759, 2110, 63, 7716, 67, 2664, 4464, 1648, 277, 411, 15234, 67, 2664, 4464, 14542, 3152, 759, 2110, 63, 14922, 67, 2664, 4464, 1648, 277, 411, 4235, 61, 67, 19444, 67, 2664, 4464, 14542, 1399, 364, 394, 5814, 19, 407, 278, 30752, 759, 2110, 63, 17805, 67, 19444, 67, 2664, 4464, 1648, 277, 14542, 775, 8124, 759, 1347, 374, 1648, 277, 411, 15234, 67, 2664, 4464, 471, 2110, 63, 92, 65, 422, 2383, 48, 67, 23464, 47, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 2 ]
}else{
} else {
public void widgetSelected( SelectionEvent e ) { String filename = null; if ( !isIDE ) { FileDialog dialog = new FileDialog( UIUtil.getDefaultShell( ) ); if ( needFilter ) { dialog.setFilterExtensions( fileExt ); } filename = dialog.open( ); }else{ ProjectFileDialog dialog; if ( needFilter ) { dialog = new ProjectFileDialog( getProjectFolder( ),fileExt ); } else dialog = new ProjectFileDialog( getProjectFolder( ) ); if ( dialog.open( ) == Window.OK ) { filename = dialog.getPath( ); } } try { if ( filename != null ) { File file = new File( filename ); if ( !( file.isFile( ) && file.exists( ) ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "HyperlinkBuilder.FileNameError.Title" ), Messages.getString( "HyperlinkBuilder.FileNameError.Message" ) ); return; } filename = file.toURL( ).toString( ); // should check extensions in Linux enviroment if ( needFilter && checkExtensions( fileExt, filename ) == false ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "HyperlinkBuilder.FileNameError.Title" ), Messages.getString( "HyperlinkBuilder.FileNameError.Message" ) ); return; } if ( needFilter ) { filename = URIUtil.getRelativePath( getBasePath( ), filename ); } filename = new Path( filename ).toString( ); if ( needQuote ) { filename = "\"" + filename + "\""; //$NON-NLS-1$ //$NON-NLS-2$ } text.setText( filename ); } updateButtons( ); } catch ( Exception ex ) { ExceptionHandler.handle( ex ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b95ead99bc710b6e75a912d5376a60295a029ca1/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 780, 1544, 273, 446, 31, 9506, 202, 430, 261, 401, 291, 10385, 262, 9506, 202, 95, 6862, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 6484, 1304, 18, 588, 1868, 13220, 12, 262, 11272, 6862, 202, 430, 261, 1608, 1586, 262, 6862, 202, 95, 25083, 202, 12730, 18, 542, 1586, 7513, 12, 585, 2482, 11272, 6862, 202, 97, 6862, 202, 3459, 273, 6176, 18, 3190, 12, 11272, 9506, 202, 97, 12107, 95, 6862, 202, 4109, 812, 6353, 6176, 31, 6862, 202, 430, 261, 1608, 1586, 262, 6862, 202, 95, 25083, 202, 12730, 273, 394, 5420, 812, 6353, 12, 11080, 3899, 12, 262, 16, 768, 2482, 11272, 6862, 202, 97, 6862, 202, 12107, 6176, 273, 394, 5420, 812, 6353, 12, 11080, 3899, 12, 262, 11272, 6862, 202, 430, 261, 6176, 18, 3190, 12, 262, 422, 6076, 18, 3141, 262, 6862, 202, 95, 25083, 202, 3459, 273, 6176, 18, 588, 743, 12, 11272, 6862, 202, 97, 9506, 202, 97, 9506, 202, 698, 9506, 202, 95, 6862, 202, 430, 261, 1544, 480, 446, 262, 6862, 202, 95, 25083, 202, 812, 585, 273, 394, 1387, 12, 1544, 11272, 25083, 202, 430, 261, 401, 12, 585, 18, 291, 812, 12, 262, 597, 585, 18, 1808, 12, 262, 262, 262, 25083, 202, 95, 6862, 1082, 202, 18894, 18, 3190, 14935, 3514, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 4771, 668, 18, 4247, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 780, 1544, 273, 446, 31, 9506, 202, 430, 261, 401, 291, 10385, 262, 9506, 202, 95, 6862, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 6484, 1304, 18, 588, 1868, 13220, 12, 262, 11272, 6862, 202, 430, 261, 1608, 1586, 262, 6862, 202, 95, 25083, 202, 12730, 18, 542, 1586, 7513, 12, 585, 2482, 11272, 6862, 202, 97, 6862, 202, 3459, 273, 6176, 18, 3190, 12, 11272, 9506, 202, 97, 12107, 95, 6862, 202, 4109, 812, 6353, 6176, 31, 6862, 202, 430, 261, 1608, 1586, 262, 6862, 202, 95, 25083, 202, 12730, 273, 394, 5420, 812, 6353, 12, 11080, 3899, 12, 262, 2 ]
org.exist.xquery.parser.XQueryAST tmp315_AST = null; tmp315_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp315_AST); match(LCURLY); if ( inputState.guessing==0 ) {
globalStack.push(elementStack); elementStack= new Stack(); lexer.inElementContent= false;
public final void enclosedExpr() throws RecognitionException, TokenStreamException { traceIn("enclosedExpr"); try { // debugging returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST enclosedExpr_AST = null; org.exist.xquery.parser.XQueryAST tmp315_AST = null; tmp315_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp315_AST); match(LCURLY); if ( inputState.guessing==0 ) { globalStack.push(elementStack); elementStack= new Stack(); lexer.inElementContent= false; //lexer.wsExplicit= false; } expr(); astFactory.addASTChild(currentAST, returnAST); match(RCURLY); if ( inputState.guessing==0 ) { elementStack= (Stack) globalStack.pop(); lexer.inElementContent= true; //lexer.wsExplicit= true; } enclosedExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = enclosedExpr_AST; } finally { // debugging traceOut("enclosedExpr"); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 25636, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 5129, 382, 2932, 1331, 13783, 4742, 8863, 202, 202, 698, 288, 368, 10450, 1082, 202, 2463, 9053, 273, 446, 31, 1082, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 1082, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 25636, 4742, 67, 9053, 273, 446, 31, 25083, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23, 3600, 67, 9053, 273, 446, 31, 1082, 202, 5645, 23, 3600, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1082, 202, 689, 1733, 18, 6540, 9053, 2375, 12, 2972, 9053, 16, 1853, 23, 3600, 67, 9053, 1769, 1082, 202, 1916, 12, 13394, 1785, 61, 1769, 1082, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 6862, 25083, 202, 6347, 2624, 18, 6206, 12, 2956, 2624, 1769, 25083, 202, 2956, 2624, 33, 394, 7283, 5621, 25083, 202, 31731, 18, 267, 1046, 1350, 33, 629, 31, 25083, 202, 759, 31731, 18, 4749, 17186, 33, 629, 31, 6862, 9506, 202, 97, 1082, 202, 8638, 5621, 1082, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 1082, 202, 1916, 12, 11529, 1785, 61, 1769, 1082, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 6862, 25083, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 25636, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 5129, 382, 2932, 1331, 13783, 4742, 8863, 202, 202, 698, 288, 368, 10450, 1082, 202, 2463, 9053, 273, 446, 31, 1082, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 1082, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 25636, 4742, 67, 9053, 273, 446, 31, 25083, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23, 3600, 67, 9053, 273, 446, 31, 1082, 202, 5645, 23, 3600, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 2 ]
fLength = v.size();
fLength = (v == null) ? 0 : v.size();
public StringListImpl(Vector v) { fVector = v; fLength = v.size(); }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/e15485c0a02ec314571e9d4cd22aff4b6112cd3b/StringListImpl.java/buggy/src/org/apache/xerces/impl/xs/util/StringListImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 682, 2828, 12, 5018, 331, 13, 288, 3639, 284, 5018, 273, 331, 31, 7734, 284, 1782, 273, 261, 90, 422, 446, 13, 692, 374, 294, 331, 18, 1467, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 682, 2828, 12, 5018, 331, 13, 288, 3639, 284, 5018, 273, 331, 31, 7734, 284, 1782, 273, 261, 90, 422, 446, 13, 692, 374, 294, 331, 18, 1467, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try { setTarget((String) evalAttr("target", getTargetExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("target", getTargetExpr(), this, pageContext)) != null) setTarget(string);
private void evaluateExpressions() throws JspException { try { setTarget((String) evalAttr("target", getTargetExpr(), String.class)); } catch (NullAttributeException ex) { } try { setServer((String) evalAttr("server", getServerExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELBaseTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELBaseTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 18367, 12443, 780, 13, 5302, 3843, 2932, 3299, 3113, 8571, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 2081, 12443, 780, 13, 5302, 3843, 2932, 3567, 3113, 11543, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 18367, 12443, 780, 13, 5302, 3843, 2932, 3299, 3113, 8571, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 2081, 12443, 780, 13, 5302, 3843, 2932, 3567, 3113, 11543, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ match('-');
{ match('-'); if (failed) return ;
public void mMISC() throws RecognitionException { try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | ';' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=38; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=25; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=35; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '-': alt1=28; break; case '=': alt1=33; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '+': alt1=27; break; case '=': alt1=31; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=24; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case ';': alt1=17; break; case '=': switch ( input.LA(2) ) { case '*': alt1=36; break; case '-': alt1=34; break; case '/': alt1=38; break; case '=': alt1=30; break; case '+': alt1=32; break; default: alt1=18;} break; case '/': int LA1_19 = input.LA(2); if ( LA1_19=='=' ) { alt1=37; } else { alt1=19;} break; case '(': alt1=20; break; case ')': alt1=21; break; case '\'': alt1=22; break; case '\\': alt1=23; break; case '<': alt1=26; break; case '>': alt1=29; break; default: NoViableAltException nvae = new NoViableAltException("750:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \';\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:17: '!' { match('!'); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:23: '@' { match('@'); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:29: '$' { match('$'); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:35: '%' { match('%'); } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:41: '^' { match('^'); } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:47: '&' { match('&'); } break; case 7 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:53: '*' { match('*'); } break; case 8 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:59: '_' { match('_'); } break; case 9 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:65: '-' { match('-'); } break; case 10 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:751:71: '+' { match('+'); } break; case 11 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:19: '|' { match('|'); } break; case 12 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:25: ',' { match(','); } break; case 13 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:31: '{' { match('{'); } break; case 14 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:37: '}' { match('}'); } break; case 15 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:43: '[' { match('['); } break; case 16 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:49: ']' { match(']'); } break; case 17 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:55: ';' { match(';'); } break; case 18 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:62: '=' { match('='); } break; case 19 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:68: '/' { match('/'); } break; case 20 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:74: '(' { match('('); } break; case 21 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:80: ')' { match(')'); } break; case 22 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:86: '\'' { match('\''); } break; case 23 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:752:93: '\\' { match('\\'); } break; case 24 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:19: '||' { match("||"); } break; case 25 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:26: '&&' { match("&&"); } break; case 26 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:33: '<<<' { match("<<<"); } break; case 27 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:41: '++' { match("++"); } break; case 28 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:48: '--' { match("--"); } break; case 29 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:55: '>>>' { match(">>>"); } break; case 30 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:63: '==' { match("=="); } break; case 31 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:70: '+=' { match("+="); } break; case 32 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:77: '=+' { match("=+"); } break; case 33 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:84: '-=' { match("-="); } break; case 34 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:91: '=-' { match("=-"); } break; case 35 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:97: '*=' { match("*="); } break; case 36 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:753:104: '=*' { match("=*"); } break; case 37 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:754:19: '/=' { match("/="); } break; case 38 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:754:26: '=/' { match("=/"); } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 5877, 21, 30, 4033, 30, 261, 15502, 571, 9175, 571, 11874, 571, 9089, 571, 19161, 571, 9824, 571, 5306, 571, 4427, 571, 4014, 571, 10058, 571, 8030, 571, 3316, 571, 9790, 571, 9571, 571, 8375, 571, 8641, 571, 7554, 571, 5214, 571, 2023, 571, 7321, 571, 5777, 571, 15053, 571, 5282, 571, 6699, 16637, 571, 5183, 26045, 571, 2368, 17685, 11, 571, 15126, 6797, 571, 16979, 571, 296, 9778, 1870, 571, 22853, 571, 15126, 2218, 571, 15196, 6797, 571, 2400, 2218, 571, 15196, 6627, 571, 14609, 2218, 571, 15196, 4035, 571, 1173, 2218, 571, 15196, 2473, 262, 5411, 509, 3770, 21, 33, 7414, 31, 5411, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 5411, 648, 11817, 4278, 7734, 3770, 21, 33, 21, 31, 7734, 898, 31, 5411, 648, 4622, 4278, 7734, 3770, 21, 33, 22, 31, 7734, 898, 31, 5411, 648, 3365, 4278, 7734, 3770, 21, 33, 23, 31, 7734, 898, 31, 5411, 648, 1995, 4278, 7734, 3770, 21, 33, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 5877, 21, 30, 4033, 30, 261, 15502, 571, 9175, 571, 11874, 571, 9089, 571, 19161, 571, 9824, 571, 5306, 571, 4427, 571, 4014, 571, 10058, 571, 8030, 571, 3316, 571, 9790, 571, 9571, 571, 2 ]
return pageOwner; }
return pageOwner; }
public CubeCursor getPageOwner() throws OLAPException { return pageOwner; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianEdgeCursor.java/clean/src/main/mondrian/jolap/MondrianEdgeCursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 4895, 6688, 8957, 5541, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 2463, 1363, 5541, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 4895, 6688, 8957, 5541, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 2463, 1363, 5541, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
void print(boolean dump) { System.out.println(toString()); for (Enumeration e = questions.elements() ; e.hasMoreElements() ;) { System.out.println(" ques:" + e.nextElement());
String print(boolean dump) { StringBuffer buf = new StringBuffer(); buf.append(toString() + "\n"); for (Iterator iterator = questions.iterator() ; iterator.hasNext() ;) { buf.append(" ques:" + iterator.next() + "\n");
void print(boolean dump) { System.out.println(toString()); for (Enumeration e = questions.elements() ; e.hasMoreElements() ;) { System.out.println(" ques:" + e.nextElement()); } int count=0; for (Enumeration e = answers.elements() ; e.hasMoreElements() ;count++) { if (count < numAnswers) { System.out.print(" answ:"); } else if (count < numAnswers + numAuthorities) { System.out.print(" auth:"); } else { System.out.print(" addi:"); } System.out.println(e.nextElement()); } if (dump) { for (int off = 0, len = packet.getLength() ; off < len ; off += 32) { int n = Math.min(32, len - off); if (off < 10) { System.out.print(' '); } if (off < 100) { System.out.print(' '); } System.out.print(off); System.out.print(':'); for (int i = 0 ; i < n ; i++) { if ((i % 8) == 0) { System.out.print(' '); } System.out.print(Integer.toHexString((data[off + i] & 0xF0) >> 4)); System.out.print(Integer.toHexString((data[off + i] & 0x0F) >> 0)); } System.out.println(); System.out.print(" "); for (int i = 0 ; i < n ; i++) { if ((i % 8) == 0) { System.out.print(' '); } System.out.print(' '); int ch = data[off + i] & 0xFF; System.out.print(((ch > ' ') && (ch < 127)) ? (char)ch : '.'); } System.out.println(); // limit message size if (off+32 >= 256) { System.out.println("...."); break; } } } }
2281 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2281/3fae35de8c4ce868da36396d46828869c5809036/DNSIncoming.java/buggy/jmdns/src/javax/jmdns/DNSIncoming.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1172, 12, 6494, 4657, 13, 288, 3639, 2332, 18, 659, 18, 8222, 12, 10492, 10663, 3639, 364, 261, 21847, 425, 273, 13494, 18, 6274, 1435, 274, 425, 18, 5332, 7417, 3471, 1435, 274, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 565, 719, 281, 2773, 397, 425, 18, 4285, 1046, 10663, 3639, 289, 3639, 509, 1056, 33, 20, 31, 3639, 364, 261, 21847, 425, 273, 12415, 18, 6274, 1435, 274, 425, 18, 5332, 7417, 3471, 1435, 274, 1883, 27245, 288, 5411, 309, 261, 1883, 411, 818, 19543, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 565, 4152, 91, 2773, 1769, 5411, 289, 469, 309, 261, 1883, 411, 818, 19543, 397, 818, 3594, 1961, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 565, 1357, 2773, 1769, 5411, 289, 469, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 565, 527, 77, 2773, 1769, 5411, 289, 5411, 2332, 18, 659, 18, 8222, 12, 73, 18, 4285, 1046, 10663, 3639, 289, 3639, 309, 261, 8481, 13, 288, 5411, 364, 261, 474, 3397, 273, 374, 16, 562, 273, 4414, 18, 588, 1782, 1435, 274, 3397, 411, 562, 274, 3397, 1011, 3847, 13, 288, 7734, 509, 290, 273, 2361, 18, 1154, 12, 1578, 16, 562, 300, 3397, 1769, 7734, 309, 261, 3674, 411, 1728, 13, 288, 10792, 2332, 18, 659, 18, 1188, 2668, 28005, 7734, 289, 7734, 309, 261, 3674, 411, 2130, 13, 288, 10792, 2332, 18, 659, 18, 1188, 2668, 28005, 7734, 289, 7734, 2332, 18, 659, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1172, 12, 6494, 4657, 13, 288, 3639, 2332, 18, 659, 18, 8222, 12, 10492, 10663, 3639, 364, 261, 21847, 425, 273, 13494, 18, 6274, 1435, 274, 425, 18, 5332, 7417, 3471, 1435, 274, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 565, 719, 281, 2773, 397, 425, 18, 4285, 1046, 10663, 3639, 289, 3639, 509, 1056, 33, 20, 31, 3639, 364, 261, 21847, 425, 273, 12415, 18, 6274, 1435, 274, 425, 18, 5332, 7417, 3471, 1435, 274, 1883, 27245, 288, 5411, 309, 261, 1883, 411, 818, 19543, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 565, 4152, 91, 2773, 1769, 5411, 289, 469, 309, 261, 1883, 411, 818, 19543, 397, 818, 3594, 1961, 13, 288, 2 ]
Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.3 1999/09/03 19:28:45 edburns%acm.org Exp $");
Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.4 1999/10/08 00:48:02 edburns%acm.org Exp $");
public static void main(String [] args){ Assert.setEnabled(true); BrowserControlMozillaShim me = new BrowserControlMozillaShim(); Log.setApplicationName("BrowserControlMozillaShim"); Log.setApplicationVersion("0.0"); Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.3 1999/09/03 19:28:45 edburns%acm.org Exp $"); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/a8e9d5219a8efee08ea2ac19910d03dcb8870b8f/BrowserControlMozillaShim.java/clean/java/webclient/classes/org/mozilla/webclient/BrowserControlMozillaShim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 5378, 833, 15329, 565, 5452, 18, 542, 1526, 12, 3767, 1769, 565, 15408, 3367, 49, 11142, 10745, 1555, 381, 1791, 273, 394, 15408, 3367, 49, 11142, 10745, 1555, 381, 5621, 565, 1827, 18, 542, 3208, 461, 2932, 9132, 3367, 49, 11142, 10745, 1555, 381, 8863, 565, 1827, 18, 542, 3208, 1444, 2932, 20, 18, 20, 8863, 565, 1827, 18, 542, 3208, 1444, 1626, 2932, 8, 548, 30, 15408, 3367, 49, 11142, 10745, 1555, 381, 18, 6290, 16, 90, 404, 18, 24, 404, 11984, 19, 2163, 19, 6840, 9631, 30, 8875, 30, 3103, 1675, 70, 321, 87, 9, 26279, 18, 3341, 7784, 271, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 5378, 833, 15329, 565, 5452, 18, 542, 1526, 12, 3767, 1769, 565, 15408, 3367, 49, 11142, 10745, 1555, 381, 1791, 273, 394, 15408, 3367, 49, 11142, 10745, 1555, 381, 5621, 565, 1827, 18, 542, 3208, 461, 2932, 9132, 3367, 49, 11142, 10745, 1555, 381, 8863, 565, 1827, 18, 542, 3208, 1444, 2932, 20, 18, 20, 8863, 565, 1827, 18, 542, 3208, 1444, 1626, 2932, 8, 548, 30, 15408, 3367, 49, 11142, 10745, 1555, 381, 18, 6290, 16, 90, 404, 18, 24, 404, 11984, 19, 2163, 19, 6840, 9631, 30, 8875, 30, 3103, 1675, 70, 321, 87, 9, 26279, 18, 3341, 7784, 271, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
resp.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); return;
resp.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); return;
private void processUsersGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Collection<User> users; if (req.getQueryString() != null){ PageCriteria<User.SortType> pageCriteria; try { pageCriteria = buildPageCriteria(req); } catch (CmpException e){ resp.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); return; } users = userService.getUsers(pageCriteria).getList(); } else { users = userService.getUsers(); } resp.setStatus(HttpServletResponse.SC_OK); sendXmlResponse(resp, new UsersResource(users, getUrlBase(req))); }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/5eb89dbbfc42f3177afeadf27b0939dcfe3c9d38/CmpServlet.java/clean/src/main/java/org/osaf/cosmo/cmp/CmpServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6588, 967, 12, 2940, 18572, 1111, 16, 5411, 12446, 1718, 13, 565, 1216, 16517, 16, 1860, 288, 3639, 2200, 32, 1299, 34, 3677, 31, 3639, 309, 261, 3658, 18, 588, 15276, 1435, 480, 446, 15329, 5411, 3460, 7231, 32, 1299, 18, 4416, 559, 34, 1363, 7231, 31, 5411, 775, 288, 7734, 1363, 7231, 273, 1361, 1964, 7231, 12, 3658, 1769, 5411, 289, 5411, 1044, 261, 31832, 503, 425, 15329, 2398, 202, 12243, 18, 4661, 668, 12, 2940, 29910, 18, 2312, 67, 16234, 67, 5519, 16, 2868, 1082, 202, 73, 18, 24906, 10663, 2398, 202, 2463, 31, 5411, 289, 5411, 3677, 273, 27625, 18, 588, 6588, 12, 2433, 7231, 2934, 588, 682, 5621, 10792, 289, 469, 288, 5411, 3677, 273, 27625, 18, 588, 6588, 5621, 3639, 289, 3639, 1718, 18, 542, 1482, 12, 2940, 29910, 18, 2312, 67, 3141, 1769, 3639, 1366, 4432, 1064, 12, 12243, 16, 394, 12109, 1420, 12, 5577, 16, 8928, 2171, 12, 3658, 3719, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6588, 967, 12, 2940, 18572, 1111, 16, 5411, 12446, 1718, 13, 565, 1216, 16517, 16, 1860, 288, 3639, 2200, 32, 1299, 34, 3677, 31, 3639, 309, 261, 3658, 18, 588, 15276, 1435, 480, 446, 15329, 5411, 3460, 7231, 32, 1299, 18, 4416, 559, 34, 1363, 7231, 31, 5411, 775, 288, 7734, 1363, 7231, 273, 1361, 1964, 7231, 12, 3658, 1769, 5411, 289, 5411, 1044, 261, 31832, 503, 425, 15329, 2398, 202, 12243, 18, 4661, 668, 12, 2940, 29910, 18, 2312, 67, 16234, 67, 5519, 16, 2868, 1082, 202, 73, 18, 24906, 10663, 2398, 202, 2463, 31, 5411, 289, 5411, 3677, 273, 27625, 18, 588, 6588, 12, 2433, 7231, 2934, 588, 682, 5621, 10792, 289, 469, 2 ]
GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx);
GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx);
public void testAutowireServiceClasses() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class s1 = gcl.parseClass("class TestService { def serviceMethod() { 'hello' } }"); Thread.sleep(1000); Class s2 = gcl.parseClass("class AnotherService { TestService testService; def anotherMethod() { testService.serviceMethod() } }"); GrailsApplication app = new DefaultGrailsApplication(new Class[]{s1,s2}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); GroovyObject anotherService = (GroovyObject)ctx.getBean("anotherService"); assertEquals("hello",anotherService.invokeMethod("anotherMethod", null)); }
51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/buggy/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7150, 543, 577, 1179, 4818, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 272, 21, 273, 225, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 1179, 288, 1652, 1156, 1305, 1435, 288, 296, 23711, 11, 289, 289, 8863, 3639, 4884, 18, 19607, 12, 18088, 1769, 3639, 1659, 272, 22, 273, 225, 314, 830, 18, 2670, 797, 2932, 1106, 432, 24413, 1179, 288, 7766, 1179, 1842, 1179, 31, 1652, 4042, 1305, 1435, 288, 1842, 1179, 18, 3278, 1305, 1435, 289, 289, 8863, 3639, 10812, 14573, 3208, 595, 273, 394, 2989, 14571, 14573, 3208, 12, 2704, 1659, 63, 7073, 87, 21, 16, 87, 22, 5779, 314, 830, 11272, 202, 202, 9865, 28278, 982, 273, 394, 7867, 28278, 5621, 202, 202, 2938, 18, 4861, 9865, 3381, 12, 14571, 14573, 3208, 18, 25039, 67, 734, 16, 595, 1769, 202, 202, 14571, 14573, 5576, 17182, 2195, 273, 394, 10812, 14573, 5576, 17182, 12, 2910, 16, 2938, 1769, 202, 202, 3923, 18, 542, 2563, 6841, 13182, 809, 12, 5743, 1769, 202, 202, 14571, 14573, 4079, 28278, 1103, 273, 261, 14571, 14573, 4079, 28278, 13, 3923, 18, 14895, 12, 2704, 7867, 4745, 1042, 10663, 202, 202, 11231, 5962, 12, 5900, 1769, 3639, 20841, 921, 4042, 1179, 273, 261, 43, 12859, 921, 13, 5900, 18, 588, 3381, 2932, 304, 3011, 1179, 8863, 3639, 1815, 8867, 2932, 23711, 3113, 304, 3011, 1179, 18, 14407, 1305, 2932, 304, 3011, 1305, 3113, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7150, 543, 577, 1179, 4818, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 272, 21, 273, 225, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 1179, 288, 1652, 1156, 1305, 1435, 288, 296, 23711, 11, 289, 289, 8863, 3639, 4884, 18, 19607, 12, 18088, 1769, 3639, 1659, 272, 22, 273, 225, 314, 830, 18, 2670, 797, 2932, 1106, 432, 24413, 1179, 288, 7766, 1179, 1842, 1179, 31, 1652, 4042, 1305, 1435, 288, 1842, 1179, 18, 3278, 1305, 1435, 289, 289, 8863, 3639, 10812, 14573, 3208, 595, 273, 394, 2989, 14571, 14573, 3208, 12, 2704, 1659, 63, 7073, 87, 21, 16, 87, 22, 5779, 314, 2 ]
org.exist.xquery.parser.XQueryAST tmp132_AST = null; tmp132_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp132_AST);
org.exist.xquery.parser.XQueryAST tmp138_AST = null; tmp138_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp138_AST);
public final void defaultNamespaceDecl() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST defaultNamespaceDecl_AST = null; Token defu = null; org.exist.xquery.parser.XQueryAST defu_AST = null; Token deff = null; org.exist.xquery.parser.XQueryAST deff_AST = null; org.exist.xquery.parser.XQueryAST tmp127_AST = null; tmp127_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp127_AST); match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp128_AST = null; tmp128_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp128_AST); match(LITERAL_default); { switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp129_AST = null; tmp129_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp129_AST); match(LITERAL_element); org.exist.xquery.parser.XQueryAST tmp130_AST = null; tmp130_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp130_AST); match(LITERAL_namespace); defu = LT(1); defu_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(defu); astFactory.addASTChild(currentAST, defu_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { defaultNamespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; defaultNamespaceDecl_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_NAMESPACE_DECL,"defaultNamespaceDecl")).add(defu_AST)); currentAST.root = defaultNamespaceDecl_AST; currentAST.child = defaultNamespaceDecl_AST!=null &&defaultNamespaceDecl_AST.getFirstChild()!=null ? defaultNamespaceDecl_AST.getFirstChild() : defaultNamespaceDecl_AST; currentAST.advanceChildToEnd(); } break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp131_AST = null; tmp131_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp131_AST); match(LITERAL_function); org.exist.xquery.parser.XQueryAST tmp132_AST = null; tmp132_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp132_AST); match(LITERAL_namespace); deff = LT(1); deff_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(deff); astFactory.addASTChild(currentAST, deff_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { defaultNamespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; defaultNamespaceDecl_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_FUNCTION_NS_DECL,"defaultFunctionNSDecl")).add(deff_AST)); currentAST.root = defaultNamespaceDecl_AST; currentAST.child = defaultNamespaceDecl_AST!=null &&defaultNamespaceDecl_AST.getFirstChild()!=null ? defaultNamespaceDecl_AST.getFirstChild() : defaultNamespaceDecl_AST; currentAST.advanceChildToEnd(); } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } defaultNamespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = defaultNamespaceDecl_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ddc6ab496ae303f007a96cb80352f3352974cbcf/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 805, 3402, 3456, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 805, 3402, 3456, 67, 9053, 273, 446, 31, 202, 202, 1345, 225, 1652, 89, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1652, 89, 67, 9053, 273, 446, 31, 202, 202, 1345, 225, 443, 1403, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 443, 1403, 67, 9053, 273, 446, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 14260, 67, 9053, 273, 446, 31, 202, 202, 5645, 14260, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 1853, 14260, 67, 9053, 1769, 202, 202, 1916, 12, 23225, 67, 29554, 1769, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 10392, 67, 9053, 273, 446, 31, 202, 202, 5645, 10392, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 805, 3402, 3456, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 805, 3402, 3456, 67, 9053, 273, 446, 31, 202, 202, 1345, 225, 1652, 89, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1652, 89, 67, 9053, 273, 446, 31, 202, 202, 1345, 225, 443, 1403, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 443, 1403, 67, 9053, 273, 446, 31, 9506, 202, 3341, 2 ]
public void testSendAscii() throws Exception { NceTrafficController c = new NceTrafficController(); // connect to iostream via port controller NcePortControllerScaffold p = new NcePortControllerScaffold(); c.connectPort(p); // send a message NceMessage m = new NceMessage(3); m.setBinary(false); m.setOpCode('0'); m.setElement(1, '1'); m.setElement(2, '2'); c.sendNceMessage(m, new NceListenerScaffold()); Assert.assertEquals("total length ", 4, tostream.available()); Assert.assertEquals("Char 0", '0', tostream.readByte()); Assert.assertEquals("Char 1", '1', tostream.readByte()); Assert.assertEquals("Char 2", '2', tostream.readByte()); Assert.assertEquals("EOM", 0x0d, tostream.readByte()); Assert.assertEquals("remaining ", 0, tostream.available()); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/936766858fd2e6b650f96ec9d860eeff02b70942/NceTrafficControllerTest.java/clean/test/jmri/jmrix/nce/NceTrafficControllerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3826, 21363, 1435, 1216, 1185, 288, 202, 202, 50, 311, 16888, 2933, 276, 273, 394, 423, 311, 16888, 2933, 5621, 9506, 202, 759, 3077, 358, 277, 669, 793, 3970, 1756, 2596, 202, 202, 50, 311, 2617, 2933, 1541, 14847, 293, 273, 394, 423, 311, 2617, 2933, 1541, 14847, 5621, 202, 202, 71, 18, 3612, 2617, 12, 84, 1769, 9506, 202, 759, 1366, 279, 883, 202, 202, 50, 311, 1079, 312, 273, 394, 423, 311, 1079, 12, 23, 1769, 202, 202, 81, 18, 542, 5905, 12, 5743, 1769, 202, 202, 81, 18, 542, 3817, 1085, 2668, 20, 8284, 202, 202, 81, 18, 542, 1046, 12, 21, 16, 296, 21, 8284, 202, 202, 81, 18, 542, 1046, 12, 22, 16, 296, 22, 8284, 202, 202, 71, 18, 4661, 50, 311, 1079, 12, 81, 16, 394, 423, 311, 2223, 1541, 14847, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 4963, 769, 3104, 1059, 16, 358, 3256, 18, 5699, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 2156, 374, 3113, 296, 20, 2187, 358, 3256, 18, 896, 3216, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 2156, 404, 3113, 296, 21, 2187, 358, 3256, 18, 896, 3216, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 2156, 576, 3113, 296, 22, 2187, 358, 3256, 18, 896, 3216, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 41, 1872, 3113, 374, 92, 20, 72, 16, 358, 3256, 18, 896, 3216, 10663, 202, 202, 8213, 18, 11231, 8867, 2932, 17956, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3826, 21363, 1435, 1216, 1185, 288, 202, 202, 50, 311, 16888, 2933, 276, 273, 394, 423, 311, 16888, 2933, 5621, 9506, 202, 759, 3077, 358, 277, 669, 793, 3970, 1756, 2596, 202, 202, 50, 311, 2617, 2933, 1541, 14847, 293, 273, 394, 423, 311, 2617, 2933, 1541, 14847, 5621, 202, 202, 71, 18, 3612, 2617, 12, 84, 1769, 9506, 202, 759, 1366, 279, 883, 202, 202, 50, 311, 1079, 312, 273, 394, 423, 311, 1079, 12, 23, 1769, 202, 202, 81, 18, 542, 5905, 12, 5743, 1769, 202, 202, 81, 18, 542, 3817, 1085, 2668, 20, 8284, 202, 202, 81, 18, 542, 1046, 12, 21, 16, 296, 21, 8284, 202, 202, 81, 18, 542, 2 ]
else if ("-XO".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') { tfactory.setAttribute("generate-translet", "true"); tfactory.setAttribute("translet-name", argv[++i]); } else tfactory.setAttribute("generate-translet", "true"); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XO"); } } else if ("-XD".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') tfactory.setAttribute("destination-directory", argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XD" })); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XD"); } } else if ("-XJ".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') { tfactory.setAttribute("generate-translet", "true"); tfactory.setAttribute("jar-name", argv[++i]); } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XJ" })); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XJ"); } } else if ("-XP".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') tfactory.setAttribute("package-name", argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XP" })); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XP"); } } else if ("-XN".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("enable-inlining", "true"); } else printInvalidXalanOption("-XN"); } else if ("-XX".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("debug", "true"); } else printInvalidXalanOption("-XX"); } else if ("-XT".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("auto-translet", "true"); } else printInvalidXalanOption("-XT"); }
public static void main(String argv[]) { // Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceInstructions(false); /** * The default diagnostic writer... */ java.io.PrintWriter diagnosticsWriter = new PrintWriter(System.err, true); java.io.PrintWriter dumpWriter = diagnosticsWriter; ResourceBundle resbundle = (XSLMessages.loadResourceBundle( org.apache.xml.utils.res.XResourceBundle.ERROR_RESOURCES)); String flavor = "s2s"; if (argv.length < 1) { printArgOptions(resbundle); } else { boolean useXSLTC = false; for (int i = 0; i < argv.length; i++) { if ("-XSLTC".equalsIgnoreCase(argv[i])) { useXSLTC = true; } } TransformerFactory tfactory; if (useXSLTC) { String key = "javax.xml.transform.TransformerFactory"; String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl"; Properties props = System.getProperties(); props.put(key, value); System.setProperties(props); } try { tfactory = TransformerFactory.newInstance(); } catch (TransformerFactoryConfigurationError pfe) { pfe.printStackTrace(dumpWriter); diagnosticsWriter.println( XSLMessages.createMessage( XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); tfactory = null; // shut up compiler doExit(-1); } boolean formatOutput = false; boolean useSourceLocation = false; String inFileName = null; String outFileName = null; String dumpFileName = null; String xslFileName = null; String treedumpFileName = null; PrintTraceListener tracer = null; String outputType = null; String media = null; Vector params = new Vector(); boolean quietConflictWarnings = false; URIResolver uriResolver = null; EntityResolver entityResolver = null; ContentHandler contentHandler = null; int recursionLimit=-1; for (int i = 0; i < argv.length; i++) { if ("-XSLTC".equalsIgnoreCase(argv[i])) { // The -XSLTC option has been processed. } else if ("-TT".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceTemplates = true; } else printInvalidXSLTCOption("-TT"); // tfactory.setTraceTemplates(true); } else if ("-TG".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceGeneration = true; } else printInvalidXSLTCOption("-TG"); // tfactory.setTraceSelect(true); } else if ("-TS".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceSelection = true; } else printInvalidXSLTCOption("-TS"); // tfactory.setTraceTemplates(true); } else if ("-TTC".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceElements = true; } else printInvalidXSLTCOption("-TTC"); // tfactory.setTraceTemplateChildren(true); } else if ("-INDENT".equalsIgnoreCase(argv[i])) { int indentAmount; if (((i + 1) < argv.length) && (argv[i + 1].charAt(0) != '-')) { indentAmount = Integer.parseInt(argv[++i]); } else { indentAmount = 0; } // TBD: // xmlProcessorLiaison.setIndent(indentAmount); } else if ("-IN".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) inFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-IN" })); //"Missing argument for); } else if ("-MEDIA".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) media = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-MEDIA" })); //"Missing argument for); } else if ("-OUT".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) outFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-OUT" })); //"Missing argument for); } else if ("-XSL".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) xslFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XSL" })); //"Missing argument for); } else if ("-FLAVOR".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { flavor = argv[++i]; } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-FLAVOR" })); //"Missing argument for); } else if ("-PARAM".equalsIgnoreCase(argv[i])) { if (i + 2 < argv.length) { String name = argv[++i]; params.addElement(name); String expression = argv[++i]; params.addElement(expression); } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-PARAM" })); //"Missing argument for); } else if ("-E".equalsIgnoreCase(argv[i])) { // TBD: // xmlProcessorLiaison.setShouldExpandEntityRefs(false); } else if ("-V".equalsIgnoreCase(argv[i])) { diagnosticsWriter.println(resbundle.getString("version") //">>>>>>> Xalan Version " + XSLProcessorVersion.S_VERSION + ", " + /* xmlProcessorLiaison.getParserDescription()+ */ resbundle.getString("version2")); // "<<<<<<<"); } else if ("-QC".equalsIgnoreCase(argv[i])) { if (!useXSLTC) quietConflictWarnings = true; else printInvalidXSLTCOption("-QC"); } else if ("-Q".equalsIgnoreCase(argv[i])) { setQuietMode = true; } else if ("-DIAG".equalsIgnoreCase(argv[i])) { doDiag = true; } else if ("-XML".equalsIgnoreCase(argv[i])) { outputType = "xml"; } else if ("-TEXT".equalsIgnoreCase(argv[i])) { outputType = "text"; } else if ("-HTML".equalsIgnoreCase(argv[i])) { outputType = "html"; } else if ("-EDUMP".equalsIgnoreCase(argv[i])) { doStackDumpOnError = true; if (((i + 1) < argv.length) && (argv[i + 1].charAt(0) != '-')) { dumpFileName = argv[++i]; } } else if ("-URIRESOLVER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { uriResolver = (URIResolver) Class.forName(argv[++i]).newInstance(); tfactory.setURIResolver(uriResolver); } catch (Exception cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-URIResolver" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-URIResolver" })); //"Missing argument for); doExit(-1); } } else if ("-ENTITYRESOLVER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { entityResolver = (EntityResolver) Class.forName(argv[++i]).newInstance(); } catch (Exception cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-EntityResolver" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-EntityResolver" })); //"Missing argument for); doExit(-1); } } else if ("-CONTENTHANDLER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { contentHandler = (ContentHandler) Class.forName(argv[++i]).newInstance(); } catch (Exception cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-ContentHandler" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-ContentHandler" })); //"Missing argument for); doExit(-1); } } else if ("-L".equalsIgnoreCase(argv[i])) { if (!useXSLTC) useSourceLocation = true; else printInvalidXSLTCOption("-L"); } else if ("-INCREMENTAL".equalsIgnoreCase(argv[i])) { if (!useXSLTC) tfactory.setAttribute ("http://xml.apache.org/xalan/features/incremental", java.lang.Boolean.TRUE); else printInvalidXSLTCOption("-INCREMENTAL"); } else if ("-NOOPTIMIZE".equalsIgnoreCase(argv[i])) { // Default is true. // // %REVIEW% We should have a generalized syntax for negative // switches... and probably should accept the inverse even // if it is the default. if (!useXSLTC) tfactory.setAttribute ("http://xml.apache.org/xalan/features/optimize", java.lang.Boolean.FALSE); else printInvalidXSLTCOption("-NOOPTIMIZE"); } else if ("-RL".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (i + 1 < argv.length) recursionLimit = Integer.parseInt(argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-rl" })); //"Missing argument for); } else { if (i + 1 < argv.length) i++; printInvalidXSLTCOption("-RL"); } } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_INVALID_OPTION, new Object[]{ argv[i] })); //"Invalid argument:); } // Note that there are usage cases for calling us without a -IN arg // The main XSL transformation occurs here! try { long start = System.currentTimeMillis(); if (null != dumpFileName) { dumpWriter = new PrintWriter(new FileWriter(dumpFileName)); } Templates stylesheet = null; if (null != xslFileName) { if (flavor.equals("d2d")) { // Parse in the xml data into a DOM DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); dfactory.setNamespaceAware(true); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); Node xslDOM = docBuilder.parse(new InputSource(xslFileName)); stylesheet = tfactory.newTemplates(new DOMSource(xslDOM, xslFileName)); } else { // System.out.println("Calling newTemplates: "+xslFileName); stylesheet = tfactory.newTemplates(new StreamSource(xslFileName)); // System.out.println("Done calling newTemplates: "+xslFileName); } } PrintWriter resultWriter; StreamResult strResult; if (null != outFileName) { strResult = new StreamResult(new FileOutputStream(outFileName)); // One possible improvement might be to ensure this is // a valid URI before setting the systemId, but that // might have subtle changes that pre-existing users // might notice; we can think about that later -sc r1.46 strResult.setSystemId(outFileName); } else { strResult = new StreamResult(System.out); // We used to default to incremental mode in this case. // We've since decided that since the -INCREMENTAL switch is // available, that default is probably not necessary nor // necessarily a good idea. } SAXTransformerFactory stf = (SAXTransformerFactory) tfactory; // This is currently controlled via TransformerFactoryImpl. if (!useXSLTC && useSourceLocation) stf.setAttribute(XalanProperties.SOURCE_LOCATION, Boolean.TRUE); // Did they pass in a stylesheet, or should we get it from the // document? if (null == stylesheet) { Source source = stf.getAssociatedStylesheet(new StreamSource(inFileName), media, null, null); if (null != source) stylesheet = tfactory.newTemplates(source); else { if (null != media) throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_STYLESHEET_IN_MEDIA, new Object[]{inFileName, media})); //"No stylesheet found in: " // + inFileName + ", media=" // + media); else throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_STYLESHEET_PI, new Object[]{inFileName})); //"No xml-stylesheet PI found in: " //+ inFileName); } } if (null != stylesheet) { Transformer transformer = flavor.equals("th") ? null : stylesheet.newTransformer(); // Override the output format? if (null != outputType) { transformer.setOutputProperty(OutputKeys.METHOD, outputType); } if (transformer instanceof TransformerImpl) { TransformerImpl impl = ((TransformerImpl) transformer); TraceManager tm = impl.getTraceManager(); if (null != tracer) tm.addTraceListener(tracer); impl.setQuietConflictWarnings(quietConflictWarnings); // This is currently controlled via TransformerFactoryImpl. if (useSourceLocation) impl.setProperty(XalanProperties.SOURCE_LOCATION, Boolean.TRUE); if(recursionLimit>0) impl.setRecursionLimit(recursionLimit); // sc 28-Feb-01 if we re-implement this, please uncomment helpmsg in printArgOptions // impl.setDiagnosticsOutput( setQuietMode ? null : diagnosticsWriter ); } int nParams = params.size(); for (int i = 0; i < nParams; i += 2) { transformer.setParameter((String) params.elementAt(i), (String) params.elementAt(i + 1)); } if (uriResolver != null) transformer.setURIResolver(uriResolver); if (null != inFileName) { if (flavor.equals("d2d")) { // Parse in the xml data into a DOM DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); dfactory.setCoalescing(true); dfactory.setNamespaceAware(true); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); if (entityResolver != null) docBuilder.setEntityResolver(entityResolver); Node xmlDoc = docBuilder.parse(new InputSource(inFileName)); Document doc = docBuilder.newDocument(); org.w3c.dom.DocumentFragment outNode = doc.createDocumentFragment(); transformer.transform(new DOMSource(xmlDoc, inFileName), new DOMResult(outNode)); // Now serialize output to disk with identity transformer Transformer serializer = stf.newTransformer(); Properties serializationProps = stylesheet.getOutputProperties(); serializer.setOutputProperties(serializationProps); if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); serializer.transform(new DOMSource(outNode), result); } else serializer.transform(new DOMSource(outNode), strResult); } else if (flavor.equals("th")) { for (int i = 0; i < 1; i++) // Loop for diagnosing bugs with inconsistent behavior { // System.out.println("Testing the TransformerHandler..."); // =============== XMLReader reader = null; // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware(true); javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); } catch (javax.xml.parsers.ParserConfigurationException ex) { throw new org.xml.sax.SAXException(ex); } catch (javax.xml.parsers.FactoryConfigurationError ex1) { throw new org.xml.sax.SAXException(ex1.toString()); } catch (NoSuchMethodError ex2){} catch (AbstractMethodError ame){} if (null == reader) { reader = XMLReaderFactory.createXMLReader(); } if (!useXSLTC) stf.setAttribute(org.apache.xalan.processor.TransformerFactoryImpl.FEATURE_INCREMENTAL, Boolean.TRUE); TransformerHandler th = stf.newTransformerHandler(stylesheet); reader.setContentHandler(th); reader.setDTDHandler(th); if(th instanceof org.xml.sax.ErrorHandler) reader.setErrorHandler((org.xml.sax.ErrorHandler)th); try { reader.setProperty( "http://xml.org/sax/properties/lexical-handler", th); } catch (org.xml.sax.SAXNotRecognizedException e){} catch (org.xml.sax.SAXNotSupportedException e){} try { reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true); } catch (org.xml.sax.SAXException se) {} try { reader.setFeature("http://apache.org/xml/features/validation/dynamic", true); } catch (org.xml.sax.SAXException se) {} th.setResult(strResult); reader.parse(new InputSource(inFileName)); } } else { if (entityResolver != null) { XMLReader reader = null; // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware(true); javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); } catch (javax.xml.parsers.ParserConfigurationException ex) { throw new org.xml.sax.SAXException(ex); } catch (javax.xml.parsers.FactoryConfigurationError ex1) { throw new org.xml.sax.SAXException(ex1.toString()); } catch (NoSuchMethodError ex2){} catch (AbstractMethodError ame){} if (null == reader) { reader = XMLReaderFactory.createXMLReader(); } reader.setEntityResolver(entityResolver); if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); transformer.transform( new SAXSource(reader, new InputSource(inFileName)), result); } else { transformer.transform( new SAXSource(reader, new InputSource(inFileName)), strResult); } } else if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); transformer.transform(new StreamSource(inFileName), result); } else { // System.out.println("Starting transform"); transformer.transform(new StreamSource(inFileName), strResult); // System.out.println("Done with transform"); } } } else { StringReader reader = new StringReader("<?xml version=\"1.0\"?> <doc/>"); transformer.transform(new StreamSource(reader), strResult); } } else { diagnosticsWriter.println( XSLMessages.createMessage( XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); doExit(-1); } long stop = System.currentTimeMillis(); long millisecondsDuration = stop - start; if (doDiag) { Object[] msgArgs = new Object[]{ inFileName, xslFileName, new Long(millisecondsDuration) }; String msg = XSLMessages.createMessage("diagTiming", msgArgs); diagnosticsWriter.println('\n'); diagnosticsWriter.println(msg); } } catch (Throwable throwable) { while (throwable instanceof org.apache.xml.utils.WrappedRuntimeException) { throwable = ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); } if ((throwable instanceof NullPointerException) || (throwable instanceof ClassCastException)) doStackDumpOnError = true; diagnosticsWriter.println(); if (doStackDumpOnError) throwable.printStackTrace(dumpWriter); else { DefaultErrorHandler.printLocation(diagnosticsWriter, throwable); diagnosticsWriter.println( XSLMessages.createMessage(XSLTErrorResources.ER_XSLT_ERROR, null) + " (" + throwable.getClass().getName() + "): " + throwable.getMessage()); } // diagnosticsWriter.println(XSLMessages.createMessage(XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); if (null != dumpFileName) { dumpWriter.close(); } doExit(-1); } if (null != dumpFileName) { dumpWriter.close(); } if (null != diagnosticsWriter) { // diagnosticsWriter.close(); } // if(!setQuietMode) // diagnosticsWriter.println(resbundle.getString("xsldone")); //"Xalan: done"); // else diagnosticsWriter.println(""); //"Xalan: done"); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/00ce8136c8e0e8bb78830504c00128130f829120/Process.java/clean/src/org/apache/xalan/xslt/Process.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 469, 309, 7566, 17, 60, 51, 9654, 14963, 5556, 12, 19485, 63, 77, 22643, 288, 309, 261, 1202, 60, 4559, 15988, 13, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2469, 597, 5261, 63, 77, 15, 21, 8009, 3001, 861, 12, 20, 13, 480, 4014, 13, 288, 268, 6848, 18, 542, 1499, 2932, 7163, 17, 2338, 1810, 3113, 315, 3767, 8863, 268, 6848, 18, 542, 1499, 2932, 2338, 1810, 17, 529, 3113, 5261, 63, 9904, 77, 19226, 289, 469, 268, 6848, 18, 542, 1499, 2932, 7163, 17, 2338, 1810, 3113, 315, 3767, 8863, 289, 469, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2469, 597, 5261, 63, 77, 397, 404, 8009, 3001, 861, 12, 20, 13, 480, 4014, 13, 277, 9904, 31, 1172, 1941, 60, 4316, 1895, 2932, 17, 60, 51, 8863, 289, 289, 225, 469, 309, 7566, 17, 22953, 9654, 14963, 5556, 12, 19485, 63, 77, 22643, 288, 309, 261, 1202, 60, 4559, 15988, 13, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2469, 597, 5261, 63, 77, 15, 21, 8009, 3001, 861, 12, 20, 13, 480, 4014, 13, 268, 6848, 18, 542, 1499, 2932, 10590, 17, 5149, 3113, 5261, 63, 9904, 77, 19226, 469, 2332, 18, 370, 18, 8222, 12, 17243, 5058, 18, 2640, 1079, 12, 20751, 668, 3805, 18, 654, 67, 19466, 67, 10973, 67, 7473, 67, 7425, 16, 394, 1033, 63, 7073, 3701, 22953, 6, 289, 10019, 225, 289, 469, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 469, 309, 7566, 17, 60, 51, 9654, 14963, 5556, 12, 19485, 63, 77, 22643, 288, 309, 261, 1202, 60, 4559, 15988, 13, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2469, 597, 5261, 63, 77, 15, 21, 8009, 3001, 861, 12, 20, 13, 480, 4014, 13, 288, 268, 6848, 18, 542, 1499, 2932, 7163, 17, 2338, 1810, 3113, 315, 3767, 8863, 268, 6848, 18, 542, 1499, 2932, 2338, 1810, 17, 529, 3113, 5261, 63, 9904, 77, 19226, 289, 469, 268, 6848, 18, 542, 1499, 2932, 7163, 17, 2338, 1810, 3113, 315, 3767, 8863, 289, 469, 288, 309, 261, 77, 397, 404, 411, 5261, 18, 2469, 597, 5261, 63, 77, 397, 404, 8009, 3001, 861, 12, 20, 13, 2 ]
this.TCS = TCS; this.TCSW = TCSW;
this.tcs = TCS; this.tcsw = TCSW;
public final void setCodeSets( int TCS, int TCSW ) { this.TCS = TCS; this.TCSW = TCSW; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/GIOPConnection.java/clean/src/org/jacorb/orb/giop/GIOPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 24724, 2785, 12, 509, 399, 4596, 16, 509, 399, 4596, 59, 262, 565, 288, 3639, 333, 18, 56, 4596, 273, 399, 4596, 31, 3639, 333, 18, 56, 4596, 59, 273, 399, 4596, 59, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 24724, 2785, 12, 509, 399, 4596, 16, 509, 399, 4596, 59, 262, 565, 288, 3639, 333, 18, 56, 4596, 273, 399, 4596, 31, 3639, 333, 18, 56, 4596, 59, 273, 399, 4596, 59, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
mon.beginTask(Messages.getString("SortUtil.finding_first"), 1000);
mon.beginTask(MarkerMessages.SortUtil_finding_first, 1000);
public static Collection getFirst(Collection elements, Comparator c, int k, IProgressMonitor mon) { Collection result = new ArrayList(elements.size()); mon.beginTask(Messages.getString("SortUtil.finding_first"), 1000); //$NON-NLS-1$ getFirst(result, elements, c, k, mon, 1000); mon.done(); return result; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9fd38ff5015f18d343d054773283a2bca6122227/SortUtil.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/SortUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2200, 7521, 12, 2532, 2186, 16, 13359, 276, 16, 509, 417, 16, 5411, 467, 5491, 7187, 6921, 13, 288, 3639, 2200, 563, 273, 394, 2407, 12, 6274, 18, 1467, 10663, 3639, 6921, 18, 10086, 2174, 12, 7078, 5058, 18, 4416, 1304, 67, 4720, 310, 67, 3645, 16, 4336, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 7521, 12, 2088, 16, 2186, 16, 276, 16, 417, 16, 6921, 16, 4336, 1769, 3639, 6921, 18, 8734, 5621, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2200, 7521, 12, 2532, 2186, 16, 13359, 276, 16, 509, 417, 16, 5411, 467, 5491, 7187, 6921, 13, 288, 3639, 2200, 563, 273, 394, 2407, 12, 6274, 18, 1467, 10663, 3639, 6921, 18, 10086, 2174, 12, 7078, 5058, 18, 4416, 1304, 67, 4720, 310, 67, 3645, 16, 4336, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 7521, 12, 2088, 16, 2186, 16, 276, 16, 417, 16, 6921, 16, 4336, 1769, 3639, 6921, 18, 8734, 5621, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID();
public quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { quickfix.field.LegSecurityID value = new quickfix.field.LegSecurityID();
public org.quickfix.field.LegSecurityID getLegSecurityID() throws FieldNotFound { org.quickfix.field.LegSecurityID value = new org.quickfix.field.LegSecurityID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix44/NewOrderCross.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 336, 8329, 4368, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IResource destination) { boolean isSourceLinked = source.isLinked(); boolean isDestinationLinked = destination.isLinked();
IResource destination) { boolean isSourceLinked = source.isLinked(); boolean isDestinationLinked = destination.isLinked();
protected boolean homogenousResources(IResource source, IResource destination) { boolean isSourceLinked = source.isLinked(); boolean isDestinationLinked = destination.isLinked(); return (isSourceLinked && isDestinationLinked || isSourceLinked == false && isDestinationLinked == false); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 13995, 19409, 1481, 3805, 12, 45, 1420, 1084, 16, 5411, 467, 1420, 2929, 13, 288, 3639, 1250, 353, 1830, 13174, 273, 1084, 18, 291, 13174, 5621, 3639, 1250, 353, 5683, 13174, 273, 2929, 18, 291, 13174, 5621, 3639, 327, 261, 291, 1830, 13174, 597, 353, 5683, 13174, 747, 353, 1830, 13174, 422, 629, 7734, 597, 353, 5683, 13174, 422, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 13995, 19409, 1481, 3805, 12, 45, 1420, 1084, 16, 5411, 467, 1420, 2929, 13, 288, 3639, 1250, 353, 1830, 13174, 273, 1084, 18, 291, 13174, 5621, 3639, 1250, 353, 5683, 13174, 273, 2929, 18, 291, 13174, 5621, 3639, 327, 261, 291, 1830, 13174, 597, 353, 5683, 13174, 747, 353, 1830, 13174, 422, 629, 7734, 597, 353, 5683, 13174, 422, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"Label.background", new ColorUIResource(Color.lightGray),
"Label.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x66, 0x66, 0x99); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.lightGray), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.darkGray), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "Button.focus", midPurple, "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.black), "Button.highlight", new ColorUIResource(Color.white), "Button.light", new ColorUIResource(Color.lightGray.brighter()), "Button.margin", new InsetsUIResource(2, 2, 2, 2), "Button.shadow", new ColorUIResource(Color.gray), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(Color.lightGray), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.darkShadow", new ColorUIResource(Color.darkGray), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(Color.black), "CheckBox.highlight", new ColorUIResource(Color.white), "CheckBox.icon", BasicIconFactory.getCheckBoxIcon(), "CheckBox.light", new ColorUIResource(Color.lightGray.brighter()), "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.shadow", new ColorUIResource(Color.gray), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", BasicIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(Color.black), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(lightPurple), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.black), "ColorChooser.background", new ColorUIResource(Color.lightGray), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(Color.black), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(lightPurple), "ComboBox.selectionForeground", new ColorUIResource(Color.black), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "Desktop.background", new ColorUIResource(175, 163, 236), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", new BasicBorders.MarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.red), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.lightGray), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", // XXX Don't use gif "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")), "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", // XXX Don't use gif "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")), // XXX Don't use gif "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")), "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", // XXX Don't use gif "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")), "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", // XXX Don't use gif "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")), "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", // XXX Don't use gif "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")), // XXX Don't use gif "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")), // XXX Don't use gif "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")), // XXX Don't use gif "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")), // XXX Don't use gif "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")), "FocusManagerClassName", "TODO", "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(162, 167, 241), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.black), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), // XXX Don't use gif "InternalFrame.icon", new IconUIResource(new ImageIcon("icons/JavaCup.gif")), "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.lightGray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.black), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(Color.lightGray), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(Color.gray), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(Color.black), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "ctrl \\", "clearSelection", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN","scrollDownExtendSelection", "END", "selectLastRow", "HOME", "selectFirstRow", "shift END", "selectLastRowExtendSelection", "shift HOME", "selectFirstRowExtendSelection", "UP", "selectPreviousRow", "ctrl /", "selectAll", "ctrl A", "selectAll", "DOWN", "selectNextRow", "shift UP", "selectPreviousRowExtendSelection", "ctrl SPACE", "selectNextRowExtendSelection", "shift DOWN", "selectNextRowExtendSelection", "KP_UP", "selectPreviousRow", "shift PAGE_UP","scrollUpExtendSelection", "KP_DOWN", "selectNextRow" }), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0xCC, 0xCC, 0xFF), "List.selectionForeground", new ColorUIResource(Color.black), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(Color.black), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(Color.lightGray), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(Color.black), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(lightPurple), "Menu.selectionForeground", new ColorUIResource(Color.black), "MenuBar.background", new ColorUIResource(Color.lightGray), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(Color.black), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(Color.black), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(Color.lightGray), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(Color.black), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(lightPurple), "MenuItem.selectionForeground", new ColorUIResource(Color.black), "OptionPane.background", new ColorUIResource(Color.lightGray), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", // XXX Don't use gif "OptionPane.errorIcon", new IconUIResource(new ImageIcon("icons/Error.gif")), "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(Color.black), // XXX Don't use gif "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(Color.black), "OptionPane.minimumSize", new DimensionUIResource(262, 90), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", // XXX Don't use gif "OptionPane.questionIcon", new IconUIResource(new ImageIcon("icons/Question.gif")), // XXX Don't use gif "OptionPane.warningIcon", new IconUIResource(new ImageIcon("icons/Warn.gif")), "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(Color.lightGray), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(Color.white), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")}, "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(lightPurple), "PasswordField.selectionForeground", new ColorUIResource(Color.black), "PopupMenu.background", new ColorUIResource(Color.lightGray), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(Color.black), "ProgressBar.background", new ColorUIResource(Color.lightGray), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(midPurple), "ProgressBar.selectionBackground", new ColorUIResource(lightPurple), "ProgressBar.selectionForeground", new ColorUIResource(Color.lightGray), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), "RadioButton.background", new ColorUIResource(Color.lightGray), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(Color.darkGray), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(Color.black), "RadioButton.highlight", new ColorUIResource(Color.white), "RadioButton.icon", BasicIconFactory.getRadioButtonIcon(), "RadioButton.light", new ColorUIResource(Color.lightGray.brighter()), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(Color.gray), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(Color.lightGray), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(Color.black), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(lightPurple), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.black), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(Color.lightGray), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(Color.lightGray), "ScrollBar.thumbDarkShadow", new ColorUIResource(Color.black), "ScrollBar.thumbHighlight", new ColorUIResource(Color.white), "ScrollBar.thumbLightShadow", new ColorUIResource(Color.gray), "ScrollBar.track", new ColorUIResource(224, 224, 224), "ScrollBar.trackHighlight", new ColorUIResource(Color.black), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(Color.lightGray), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(Color.black), "Separator.background", new ColorUIResource(Color.white), "Separator.foreground", new ColorUIResource(Color.gray), "Separator.highlight", new ColorUIResource(Color.white), "Separator.shadow", new ColorUIResource(Color.gray), "Slider.background", new ColorUIResource(Color.lightGray), "Slider.focus", new ColorUIResource(Color.black), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "positiveBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(Color.lightGray), "Slider.highlight", new ColorUIResource(Color.white), "Slider.shadow", new ColorUIResource(Color.gray), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(10), "Slider.tickHeight", new Integer(12), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(Color.lightGray), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(Color.white), "SplitPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(Color.LIGHT_GRAY), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(Color.darkGray), "TabbedPane.focus", new ColorUIResource(Color.black), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(Color.black), "TabbedPane.highlight", new ColorUIResource(Color.lightGray), "TabbedPane.lightHighlight", new ColorUIResource(Color.white), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollRightExtendSelection", "shift KP_RIGHT", " selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection" }), "Table.background", new ColorUIResource(Color.white), "Table.focusCellBackground", new ColorUIResource(Color.white), "Table.focusCellForeground", new ColorUIResource(Color.black), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(Color.black), "Table.gridColor", new ColorUIResource(Color.gray), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(lightPurple), "Table.selectionForeground", new ColorUIResource(Color.black), "TableHeader.background", new ColorUIResource(Color.lightGray), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(Color.black), "TextArea.background", new ColorUIResource(Color.white), "TextArea.border", new BasicBorders.MarginBorder(), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(lightPurple), "TextArea.selectionForeground", new ColorUIResource(Color.black), "TextField.background", new ColorUIResource(Color.white), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.inactiveForeground", new ColorUIResource(Color.gray), "TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_DOWN_MASK), "selection-forward"), }, "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(lightPurple), "TextField.selectionForeground", new ColorUIResource(Color.black), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", new BasicBorders.MarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.lightGray), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(Color.black), "ToggleButton.background", new ColorUIResource(Color.lightGray), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(Color.black), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(Color.lightGray), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.dockingBackground", new ColorUIResource(Color.lightGray), "ToolBar.dockingForeground", new ColorUIResource(11, 30, 143), "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray), "ToolBar.floatingForeground", new ColorUIResource(113, 171, 212), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(Color.black), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolTip.background", new ColorUIResource(122, 178, 241), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(Color.black), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(Color.white), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.png")), "Tree.collapsedIcon", new IconUIResource(new ImageIcon("icons/TreeCollapsed.png")), "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl /", "selectAll", "LEFT", "selectParent", "shift HOME", "selectFirstExtendSelection", "UP", "selectPrevious", "ctrl KP_DOWN", "selectNextChangeLead", "RIGHT", "selectChild", "ctrl HOME", "selectFirstChangeLead", "DOWN", "selectNext", "ctrl KP_LEFT", "scrollLeft", "shift UP", "selectPreviousExtendSelection", "F2", "startEditing", "ctrl LEFT", "scrollLeft", "ctrl KP_RIGHT","scrollRight", "ctrl UP", "selectPreviousChangeLead", "shift DOWN", "selectNextExtendSelection", "ENTER", "toggle", "KP_UP", "selectPrevious", "KP_DOWN", "selectNext", "ctrl RIGHT", "scrollRight", "KP_LEFT", "selectParent", "KP_RIGHT", "selectChild", "ctrl DOWN", "selectNextChangeLead", "ctrl A", "selectAll", "shift KP_UP", "selectPreviousExtendSelection", "shift KP_DOWN","selectNextExtendSelection", "ctrl SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl \\", "clearSelection", "shift SPACE", "extendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP","scrollUpExtendSelection", "SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.expandedIcon", new IconUIResource(new ImageIcon("icons/TreeExpanded.png")), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(Color.gray), "Tree.leafIcon", new IconUIResource(new ImageIcon("icons/TreeLeaf.png")), "Tree.leftChildIndent", new Integer(7), "Tree.openIcon", new IconUIResource(new ImageIcon("icons/TreeOpen.png")), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(lightPurple), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(Color.black), "Tree.textBackground", new ColorUIResource(Color.lightGray), "Tree.textForeground", new ColorUIResource(Color.black), "Viewport.background", new ColorUIResource(Color.lightGray), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12), }; defaults.putDefaults(uiDefaults); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, 1802, 699, 16601, 565, 368, 1110, 773, 4492, 18, 565, 5563, 9052, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6743, 16, 374, 92, 6743, 16, 374, 6356, 1769, 565, 5563, 7501, 10262, 1802, 273, 394, 5563, 12, 20, 92, 2733, 16, 374, 92, 2733, 16, 374, 92, 6743, 1769, 565, 5563, 23433, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6028, 16, 374, 92, 6028, 16, 374, 92, 2733, 1769, 565, 5915, 7019, 273, 394, 1033, 8526, 288, 1377, 315, 7469, 31224, 429, 4666, 18, 31226, 1528, 3113, 315, 31224, 3113, 1377, 315, 7469, 31224, 429, 4666, 18, 1118, 83, 1528, 3113, 315, 3715, 83, 3113, 1377, 315, 3616, 18, 9342, 3113, 394, 5563, 5370, 1420, 12, 2957, 18, 5099, 23521, 3631, 1377, 315, 3616, 18, 8815, 3113, 1377, 394, 10034, 73, 643, 87, 18, 14443, 620, 1435, 4202, 288, 3639, 1071, 1033, 752, 620, 12, 3060, 73, 643, 87, 1014, 13, 3639, 288, 1850, 327, 7651, 21621, 18, 588, 3616, 8107, 5621, 3639, 289, 1377, 19879, 1377, 315, 3616, 18, 25045, 12957, 3113, 394, 5563, 5370, 1420, 12, 2957, 18, 25045, 23521, 3631, 1377, 315, 3616, 18, 13923, 1210, 863, 3113, 394, 10034, 73, 643, 87, 18, 14443, 1210, 863, 12, 2704, 1033, 8526, 288, 3639, 315, 6616, 3113, 225, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, 1802, 699, 16601, 565, 368, 1110, 773, 4492, 18, 565, 5563, 9052, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6743, 16, 374, 92, 6743, 16, 374, 6356, 1769, 565, 5563, 7501, 10262, 1802, 273, 394, 5563, 12, 20, 92, 2733, 16, 374, 92, 2733, 16, 374, 92, 6743, 1769, 565, 5563, 23433, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6028, 16, 374, 92, 6028, 16, 374, 92, 2733, 1769, 565, 5915, 7019, 273, 394, 1033, 8526, 288, 1377, 315, 7469, 31224, 429, 2 ]
if( problem.checkCategory( IProblem.PREPROCESSOR_RELATED ) ){ return problem.getID() != IProblem.PREPROCESSOR_CIRCULAR_INCLUSION; } return false;
return problem.checkCategory( IProblem.PREPROCESSOR_RELATED );
public boolean shouldRecordProblem( IProblem problem ){ if( problem.checkCategory( IProblem.PREPROCESSOR_RELATED ) ){ return problem.getID() != IProblem.PREPROCESSOR_CIRCULAR_INCLUSION; } return false; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/87e2ecff897cecc252c7b71e89d2fd6ae5c930a6/SourceIndexerRequestor.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/SourceIndexerRequestor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1410, 2115, 13719, 12, 467, 13719, 6199, 262, 95, 202, 202, 430, 12, 6199, 18, 1893, 4457, 12, 467, 13719, 18, 3670, 16560, 916, 67, 15868, 6344, 262, 262, 95, 1082, 202, 2463, 6199, 18, 588, 734, 1435, 480, 467, 13719, 18, 3670, 16560, 916, 67, 7266, 11529, 19545, 67, 706, 5017, 3378, 1146, 31, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1410, 2115, 13719, 12, 467, 13719, 6199, 262, 95, 202, 202, 430, 12, 6199, 18, 1893, 4457, 12, 467, 13719, 18, 3670, 16560, 916, 67, 15868, 6344, 262, 262, 95, 1082, 202, 2463, 6199, 18, 588, 734, 1435, 480, 467, 13719, 18, 3670, 16560, 916, 67, 7266, 11529, 19545, 67, 706, 5017, 3378, 1146, 31, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return addByte(varIndex, iCodeTop);
throw Kit.codeBug();
private int addVarOp(int op, int varIndex, int iCodeTop) { if (op == Token.GETVAR || op == Token.SETVAR) { iCodeTop = addToken(op, iCodeTop); } else if (op == Icode_VARINC || op == Icode_VARDEC) { iCodeTop = addIcode(op, iCodeTop); } return addByte(varIndex, iCodeTop); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/dbf67ecaa80a3ae9385546d3e402d88f9c9d3b5b/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 527, 1537, 3817, 12, 474, 1061, 16, 509, 569, 1016, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 309, 261, 556, 422, 3155, 18, 3264, 7716, 747, 1061, 422, 3155, 18, 4043, 7716, 13, 288, 5411, 277, 1085, 3401, 273, 527, 1345, 12, 556, 16, 277, 1085, 3401, 1769, 3639, 289, 469, 309, 261, 556, 422, 467, 710, 67, 7716, 23213, 747, 1061, 422, 467, 710, 67, 7716, 1639, 39, 13, 288, 5411, 277, 1085, 3401, 273, 527, 45, 710, 12, 556, 16, 277, 1085, 3401, 1769, 3639, 289, 3639, 604, 1475, 305, 18, 710, 19865, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 527, 1537, 3817, 12, 474, 1061, 16, 509, 569, 1016, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 309, 261, 556, 422, 3155, 18, 3264, 7716, 747, 1061, 422, 3155, 18, 4043, 7716, 13, 288, 5411, 277, 1085, 3401, 273, 527, 1345, 12, 556, 16, 277, 1085, 3401, 1769, 3639, 289, 469, 309, 261, 556, 422, 467, 710, 67, 7716, 23213, 747, 1061, 422, 467, 710, 67, 7716, 1639, 39, 13, 288, 5411, 277, 1085, 3401, 273, 527, 45, 710, 12, 556, 16, 277, 1085, 3401, 1769, 3639, 289, 3639, 604, 1475, 305, 18, 710, 19865, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; createTool(EXPERIMENT_BUILDER, ExperimentBuilder.class, alwaysNew, experiment.getExperimentName(), experiment, paramClasses, params);
JFrame tool = (JFrame)new ExperimentBuilder(this, experiment); addTool(EXPERIMENT_BUILDER, experiment.getExperimentName(), tool);
private void runExperimentBuilderWorker(Experiment experiment, boolean alwaysNew) { // remove the children of the experiment in the tree // to avoid confusion while editing the experiment organizer.removeChildren(experiment); Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; createTool(EXPERIMENT_BUILDER, ExperimentBuilder.class, alwaysNew, experiment.getExperimentName(), experiment, paramClasses, params); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/39f7bd9e09e0ba07583e16da6aa9f9f684e1d7d4/CSMART.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/CSMART.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1086, 22338, 1263, 6671, 12, 22338, 8724, 16, 4766, 1850, 1250, 3712, 1908, 13, 288, 565, 368, 1206, 326, 2325, 434, 326, 8724, 316, 326, 2151, 565, 368, 358, 4543, 31067, 1323, 15755, 326, 8724, 565, 15501, 1824, 18, 4479, 4212, 12, 18142, 1769, 565, 1659, 8526, 579, 4818, 273, 288, 6761, 49, 4928, 18, 1106, 16, 22844, 18, 1106, 289, 31, 565, 1033, 8526, 859, 273, 394, 1033, 63, 22, 15533, 565, 859, 63, 20, 65, 273, 333, 31, 565, 859, 63, 21, 65, 273, 8724, 31, 565, 752, 6364, 12, 2294, 3194, 3114, 1784, 67, 3000, 2627, 4179, 16, 22844, 1263, 18, 1106, 16, 3196, 4202, 3712, 1908, 16, 8724, 18, 588, 22338, 461, 9334, 8724, 16, 202, 4202, 579, 4818, 16, 859, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1086, 22338, 1263, 6671, 12, 22338, 8724, 16, 4766, 1850, 1250, 3712, 1908, 13, 288, 565, 368, 1206, 326, 2325, 434, 326, 8724, 316, 326, 2151, 565, 368, 358, 4543, 31067, 1323, 15755, 326, 8724, 565, 15501, 1824, 18, 4479, 4212, 12, 18142, 1769, 565, 1659, 8526, 579, 4818, 273, 288, 6761, 49, 4928, 18, 1106, 16, 22844, 18, 1106, 289, 31, 565, 1033, 8526, 859, 273, 394, 1033, 63, 22, 15533, 565, 859, 63, 20, 65, 273, 333, 31, 565, 859, 63, 21, 65, 273, 8724, 31, 565, 752, 6364, 12, 2294, 3194, 3114, 1784, 67, 3000, 2627, 4179, 16, 22844, 1263, 18, 1106, 16, 3196, 4202, 3712, 1908, 16, 8724, 18, 588, 22338, 461, 2 ]
AddressTester tester = new AddressTester(PROXIED_FILES_URI + fileName); if (tester.URLAvailable() == false){ LogService.log(LogService.ERROR,"ProxyWriter::rewrite(): The file " + filePath + " is written but cannot be reached ");
String newScriptPath = PROXIED_FILES_URI + fileName; AddressTester tester = new AddressTester(newScriptPath); try { if (!tester.URLAvailable()) { LogService.log(LogService.ERROR, "ProxyWriter::rewrite(): The file " + filePath + " is written but cannot be reached at " + newScriptPath);
private static String reWrite(String scriptUri){ String filePath = null; String fileName = null; BufferedReader in = null; FileWriter out = null; try{ fileName = fileNameGenerator(scriptUri); filePath = PROXIED_FILES_PATH + fileName; File outputFile = new File(filePath); if ((outputFile.exists()==false) || (System.currentTimeMillis()-outputFile.lastModified()>(1800 * 1000))) { try{ AddressTester tester = new AddressTester(scriptUri); if (tester.URLAvailable() == false){ LogService.log(LogService.ERROR,"ProxyWriter::rewrite(): The adress " + scriptUri + " is not available. "); return scriptUri; } URL url; url = new URL(scriptUri); URLConnection urlConnect = url.openConnection(); HttpURLConnection httpUrlConnect = (HttpURLConnection) urlConnect; httpUrlConnect.setInstanceFollowRedirects(false); httpUrlConnect.connect(); int response = httpUrlConnect.getResponseCode(); in = new BufferedReader(new InputStreamReader(httpUrlConnect.getInputStream())); String line; String newLine; out = new FileWriter(outputFile); while((line = in.readLine()) != null){ newLine = processLine(line); out.write(newLine + "\t\n"); } httpUrlConnect.disconnect(); in.close(); out.close(); }catch(Exception e){ LogService.log(LogService.ERROR,"ProxyWriter::rewrite():Failed to rewrite the file for: " + scriptUri + " " + e.getMessage()); if(in != null) in.close(); if(out != null) out.close(); outputFile.delete(); return scriptUri; }//end catch } AddressTester tester = new AddressTester(PROXIED_FILES_URI + fileName); if (tester.URLAvailable() == false){ LogService.log(LogService.ERROR,"ProxyWriter::rewrite(): The file " + filePath + " is written but cannot be reached "); return scriptUri; }else{ return PROXY_REWRITE_PREFIX + PROXIED_FILES_URI.substring(7) + fileName; } }catch(Exception e){ LogService.log(LogService.ERROR,"ProxyWriter::rewrite():Failed to read the file at : " + filePath + " " + e.getMessage()); return scriptUri; } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/1d1cfc11313b342904e169e103c62f47ba0aa767/ProxyWriter.java/clean/source/org/jasig/portal/serialize/ProxyWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 760, 514, 225, 283, 3067, 12, 780, 2728, 3006, 15329, 3639, 514, 4612, 273, 446, 31, 3639, 514, 3968, 273, 446, 31, 3639, 10633, 316, 273, 446, 31, 3639, 24639, 596, 273, 446, 31, 3639, 775, 95, 5411, 3968, 273, 3968, 3908, 12, 4263, 3006, 1769, 5411, 4612, 273, 4629, 60, 29229, 67, 12669, 67, 4211, 397, 3968, 31, 5411, 1387, 15047, 273, 394, 1387, 12, 22787, 1769, 5411, 309, 14015, 2844, 812, 18, 1808, 1435, 631, 5743, 13, 747, 261, 3163, 18, 2972, 28512, 1435, 17, 2844, 812, 18, 2722, 4575, 1435, 34, 12, 2643, 713, 380, 4336, 20349, 5411, 288, 2868, 775, 95, 7734, 5267, 56, 7654, 268, 7654, 273, 394, 5267, 56, 7654, 12, 4263, 3006, 1769, 7734, 309, 261, 1078, 387, 18, 1785, 5268, 1435, 422, 629, 15329, 5375, 1827, 1179, 18, 1330, 12, 1343, 1179, 18, 3589, 10837, 3886, 2289, 2866, 21489, 13332, 1021, 1261, 663, 315, 397, 2728, 3006, 397, 315, 353, 486, 2319, 18, 315, 1769, 5375, 327, 2728, 3006, 31, 7734, 289, 7734, 1976, 880, 31, 7734, 880, 273, 394, 1976, 12, 4263, 3006, 1769, 7734, 1976, 1952, 880, 5215, 273, 880, 18, 3190, 1952, 5621, 7734, 19084, 1062, 1489, 5215, 273, 261, 2940, 14790, 13, 880, 5215, 31, 7734, 1062, 1489, 5215, 18, 542, 1442, 8328, 21978, 12, 5743, 1769, 7734, 1062, 1489, 5215, 18, 3612, 5621, 7734, 509, 766, 273, 1062, 1489, 5215, 18, 588, 1064, 1085, 5621, 7734, 316, 273, 394, 10633, 12, 2704, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 760, 514, 225, 283, 3067, 12, 780, 2728, 3006, 15329, 3639, 514, 4612, 273, 446, 31, 3639, 514, 3968, 273, 446, 31, 3639, 10633, 316, 273, 446, 31, 3639, 24639, 596, 273, 446, 31, 3639, 775, 95, 5411, 3968, 273, 3968, 3908, 12, 4263, 3006, 1769, 5411, 4612, 273, 4629, 60, 29229, 67, 12669, 67, 4211, 397, 3968, 31, 5411, 1387, 15047, 273, 394, 1387, 12, 22787, 1769, 5411, 309, 14015, 2844, 812, 18, 1808, 1435, 631, 5743, 13, 747, 261, 3163, 18, 2972, 28512, 1435, 17, 2844, 812, 18, 2722, 4575, 1435, 34, 12, 2643, 713, 380, 4336, 20349, 5411, 288, 2868, 775, 95, 7734, 5267, 56, 7654, 268, 7654, 273, 394, 5267, 56, 7654, 12, 2 ]
public void buildClassifier(Instances instances) throws Exception { double bestVal = Double.MAX_VALUE, currVal; double bestPoint = -Double.MAX_VALUE, sum; int bestAtt = -1, numClasses; if (instances.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); } double[][] bestDist = new double[3][instances.numClasses()]; theInstances = new Instances(instances); theInstances.deleteWithMissingClass(); if (theInstances.classAttribute().isNominal()) { numClasses = theInstances.numClasses(); } else { numClasses = 1; } // For each attribute for (int i = 0; i < theInstances.numAttributes(); i++) { if (i != theInstances.classIndex()) { // Reserve space for distribution. m_Distribution = new double[3][numClasses]; // Compute value of criterion for best split on attribute if (theInstances.attribute(i).isNominal()) { currVal = findSplitNominal(i); } else { currVal = findSplitNumeric(i); } if (Utils.sm(currVal, bestVal)) { bestVal = currVal; bestAtt = i; bestPoint = m_SplitPoint; for (int j = 0; j < 3; j++) { System.arraycopy(m_Distribution[j], 0, bestDist[j], 0, numClasses); } } } } // Set attribute, split point and distribution. m_AttIndex = bestAtt; m_SplitPoint = bestPoint; m_Distribution = bestDist; if (theInstances.classAttribute().isNominal()) { for (int i = 0; i < m_Distribution.length; i++) { Utils.normalize(m_Distribution[i]); } } // Save memory theInstances = new Instances(theInstances, 0); }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/6f8b80c11f2402133a2097b26950719778fd77e0/DecisionStump.java/clean/weka/classifiers/DecisionStump.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3510, 13860, 12, 5361, 10162, 13, 15069, 503, 95, 9056, 12729, 3053, 33, 5265, 18, 6694, 67, 4051, 16, 17016, 3053, 31, 9056, 12729, 2148, 29711, 5265, 18, 6694, 67, 4051, 16, 1364, 31, 474, 12729, 3075, 29711, 21, 16, 2107, 4818, 31, 430, 12, 10162, 18, 1893, 1290, 780, 2498, 10756, 95, 12849, 2704, 503, 2932, 2568, 1404, 24111, 371, 4350, 4442, 1769, 97, 9056, 63, 6362, 65, 12729, 5133, 33, 2704, 9056, 63, 23, 6362, 10162, 18, 2107, 4818, 1435, 15533, 5787, 5361, 33, 2704, 5361, 12, 10162, 1769, 5787, 5361, 18, 3733, 1190, 4841, 797, 5621, 430, 12, 5787, 5361, 18, 1106, 1499, 7675, 291, 26685, 1490, 10756, 95, 2107, 4818, 33, 5787, 5361, 18, 2107, 4818, 5621, 97, 12107, 95, 2107, 4818, 33, 21, 31, 97, 759, 13573, 497, 4589, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 5787, 5361, 18, 2107, 2498, 5621, 77, 27245, 95, 430, 12, 77, 5, 33, 5787, 5361, 18, 1106, 1016, 10756, 95, 202, 202, 759, 607, 264, 3324, 909, 31836, 291, 4027, 18, 202, 202, 81, 67, 9003, 33, 2704, 9056, 63, 23, 6362, 2107, 4818, 15533, 202, 759, 7018, 1132, 792, 71, 7082, 1884, 12729, 4939, 265, 4589, 202, 202, 430, 12, 5787, 5361, 18, 4589, 12, 77, 2934, 291, 26685, 1490, 10756, 95, 202, 17016, 3053, 33, 4720, 5521, 26685, 1490, 12, 77, 1769, 202, 97, 12107, 95, 202, 17016, 3053, 33, 4720, 5521, 9902, 12, 77, 1769, 202, 97, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3510, 13860, 12, 5361, 10162, 13, 15069, 503, 95, 9056, 12729, 3053, 33, 5265, 18, 6694, 67, 4051, 16, 17016, 3053, 31, 9056, 12729, 2148, 29711, 5265, 18, 6694, 67, 4051, 16, 1364, 31, 474, 12729, 3075, 29711, 21, 16, 2107, 4818, 31, 430, 12, 10162, 18, 1893, 1290, 780, 2498, 10756, 95, 12849, 2704, 503, 2932, 2568, 1404, 24111, 371, 4350, 4442, 1769, 97, 9056, 63, 6362, 65, 12729, 5133, 33, 2704, 9056, 63, 23, 6362, 10162, 18, 2107, 4818, 1435, 15533, 5787, 5361, 33, 2704, 5361, 12, 10162, 1769, 5787, 5361, 18, 3733, 1190, 4841, 797, 5621, 430, 12, 5787, 5361, 18, 1106, 1499, 7675, 291, 26685, 1490, 10756, 95, 2107, 4818, 33, 5787, 5361, 2 ]
text = text.replace((char)160,' ');
public String asText() { String text = getChildrenAsText(); // Translate non-breaking spaces to regular spaces. text = text.replace((char)160,' '); // Remove extra whitespace text = reduceWhitespace(text); return text; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/b3022e0465245e98537f3ec948f163a655e5c64a/DomNode.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/DomNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 487, 1528, 1435, 288, 3639, 514, 977, 273, 10268, 1463, 1528, 5621, 3639, 368, 16820, 1661, 17, 8820, 310, 7292, 358, 6736, 7292, 18, 2398, 368, 3581, 2870, 7983, 3639, 977, 273, 5459, 9431, 12, 955, 1769, 3639, 327, 977, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 487, 1528, 1435, 288, 3639, 514, 977, 273, 10268, 1463, 1528, 5621, 3639, 368, 16820, 1661, 17, 8820, 310, 7292, 358, 6736, 7292, 18, 2398, 368, 3581, 2870, 7983, 3639, 977, 273, 5459, 9431, 12, 955, 1769, 3639, 327, 977, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Integer sizeKey = new Integer(enzyme.getRecognitionSite().length()); if (sizeToCutters.containsKey(sizeKey)) { Set s = (Set) sizeToCutters.get(sizeKey); s.add(enzyme); } else { Set s = new HashSet(); s.add(enzyme); sizeToCutters.put(sizeKey, s); } Pattern forward = Pattern.compile(enzyme.getForwardRegex()); Pattern reverse = Pattern.compile(enzyme.getReverseRegex()); enzymeToPattern.put(enzyme, new Pattern [] { forward, reverse }); Annotation annotation = new SmallAnnotation(); try { annotation.setProperty("name", name); } catch (ChangeVetoException cve) { throw new BioError(cve, "Assertion Failure: failed to modify Annotation"); } annotation.addChangeListener(ChangeListener.ALWAYS_VETO); enzymeToAnnotation.put(enzyme, annotation);
public synchronized static void register(RestrictionEnzyme enzyme, Set isoschizomers) { for (Iterator ii = isoschizomers.iterator(); ii.hasNext();) { Object o = ii.next(); if (! (o instanceof String)) { throw new IllegalArgumentException("Isoschizomers set may contain only String names. Found '" + o + "'"); } } String name = enzyme.getName(); nameToEnzyme.put(name, enzyme); nameToIsoschizomers.put(name, isoschizomers); Integer sizeKey = new Integer(enzyme.getRecognitionSite().length()); if (sizeToCutters.containsKey(sizeKey)) { Set s = (Set) sizeToCutters.get(sizeKey); s.add(enzyme); } else { Set s = new HashSet(); s.add(enzyme); sizeToCutters.put(sizeKey, s); } Pattern forward = Pattern.compile(enzyme.getForwardRegex()); Pattern reverse = Pattern.compile(enzyme.getReverseRegex()); enzymeToPattern.put(enzyme, new Pattern [] { forward, reverse }); Annotation annotation = new SmallAnnotation(); try { annotation.setProperty("name", name); } catch (ChangeVetoException cve) { throw new BioError(cve, "Assertion Failure: failed to modify Annotation"); } annotation.addChangeListener(ChangeListener.ALWAYS_VETO); enzymeToAnnotation.put(enzyme, annotation); }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/c2c50313f70a73e5c8088717ba8233d7357a1e65/RestrictionEnzymeManager.java/buggy/src/org/biojava/bio/molbio/RestrictionEnzymeManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 760, 918, 1744, 12, 11670, 664, 94, 2942, 73, 570, 94, 2942, 73, 16, 4766, 2398, 1000, 9079, 353, 538, 343, 452, 362, 414, 13, 565, 288, 3639, 364, 261, 3198, 6072, 273, 353, 538, 343, 452, 362, 414, 18, 9838, 5621, 6072, 18, 5332, 2134, 5621, 13, 3639, 288, 5411, 1033, 320, 273, 6072, 18, 4285, 5621, 5411, 309, 16051, 261, 83, 1276, 514, 3719, 5411, 288, 7734, 604, 394, 2754, 2932, 2520, 538, 343, 452, 362, 414, 444, 2026, 912, 1338, 514, 1257, 18, 10750, 2119, 4766, 10402, 397, 320, 4766, 10402, 397, 5862, 1769, 5411, 289, 3639, 289, 3639, 514, 508, 273, 570, 94, 2942, 73, 18, 17994, 5621, 3639, 508, 774, 664, 94, 2942, 73, 18, 458, 12, 529, 16, 570, 94, 2942, 73, 1769, 3639, 508, 774, 2520, 538, 343, 452, 362, 414, 18, 458, 12, 529, 16, 353, 538, 343, 452, 362, 414, 1769, 3639, 2144, 963, 653, 273, 394, 2144, 12, 275, 94, 2942, 73, 18, 588, 5650, 7909, 4956, 7675, 2469, 10663, 3639, 309, 261, 1467, 774, 15812, 5432, 18, 12298, 653, 12, 1467, 653, 3719, 3639, 288, 5411, 1000, 272, 273, 261, 694, 13, 963, 774, 15812, 5432, 18, 588, 12, 1467, 653, 1769, 5411, 272, 18, 1289, 12, 275, 94, 2942, 73, 1769, 3639, 289, 3639, 469, 3639, 288, 5411, 1000, 272, 273, 394, 6847, 5621, 5411, 272, 18, 1289, 12, 275, 94, 2942, 73, 1769, 5411, 963, 774, 15812, 5432, 18, 458, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 760, 918, 1744, 12, 11670, 664, 94, 2942, 73, 570, 94, 2942, 73, 16, 4766, 2398, 1000, 9079, 353, 538, 343, 452, 362, 414, 13, 565, 288, 3639, 364, 261, 3198, 6072, 273, 353, 538, 343, 452, 362, 414, 18, 9838, 5621, 6072, 18, 5332, 2134, 5621, 13, 3639, 288, 5411, 1033, 320, 273, 6072, 18, 4285, 5621, 5411, 309, 16051, 261, 83, 1276, 514, 3719, 5411, 288, 7734, 604, 394, 2754, 2932, 2520, 538, 343, 452, 362, 414, 444, 2026, 912, 1338, 514, 1257, 18, 10750, 2119, 4766, 10402, 397, 320, 4766, 10402, 397, 5862, 1769, 5411, 289, 3639, 289, 3639, 514, 508, 273, 570, 94, 2942, 73, 18, 17994, 5621, 3639, 508, 774, 664, 2 ]
protected Object getArray()
protected final Object getArray()
protected Object getArray() { return buffer; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/GapContent.java/clean/core/src/classpath/javax/javax/swing/text/GapContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 1033, 12634, 1435, 225, 288, 565, 327, 1613, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 1033, 12634, 1435, 225, 288, 565, 327, 1613, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this);
for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this);
private void loadMBB(MappedByteBuffer bb) throws IOException{ if (bb.getInt() != MAGIC) { throw new Error("Bad magic in db"); } if (!(bb.getInt() == VERSION)) { throw new Error("Wrong version of database file");} continuityWeight = bb.getInt(); optimalCoupling = bb.getInt(); extendSelections = bb.getInt(); joinMethod = bb.getInt(); joinWeightShift = bb.getInt(); int weightLength = bb.getInt(); joinWeights = new int[weightLength]; for (int i = 0; i < joinWeights.length; i++) { joinWeights[i] = bb.getInt(); } int unitsLength = bb.getInt(); units = new ClusterUnit[unitsLength]; int unitsBlockStart = bb.position(); int unitEntryLength = 24; // 6 int = 24 byte // Fast forward to unit types block first: bb.position(unitsBlockStart+unitsLength*unitEntryLength); int unitTypesLength = bb.getInt(); unitTypesMap = new HashMap(unitTypesLength); for (int i = 0; i < unitTypesLength; i++) { ClusterUnitType unitType = new ClusterUnitType(bb, this); unitTypesMap.put(unitType.getName(), unitType); int currentUnitTypePos = bb.position(); // Read in the units of this type: int firstUnitIdx = unitType.getStart(); int lastUnitIdx = firstUnitIdx + unitType.getCount(); bb.position(unitsBlockStart+firstUnitIdx*unitEntryLength); for (int unitIdx=firstUnitIdx; unitIdx<lastUnitIdx; unitIdx++) { units[unitIdx] = new ClusterUnit(bb, this, unitType.getName()); units[unitIdx].setInstanceNumber(unitIdx-firstUnitIdx); } // back to position in list of unit types: bb.position(currentUnitTypePos); } audioFrames = new BufferedFrameSet(bb); joinCostFeatureVectors = new BufferedFrameSet(bb); int numCarts = bb.getInt(); cartMap = new HashMap(); for (int i = 0; i < numCarts; i++) { String name = Utilities.getString(bb); CART cart = CARTImpl.loadBinary(bb); ((CARTImpl) cart).setFeatureProcessors(featureProcessors); cartMap.put(name, cart); if (defaultCart == null) { defaultCart = cart; } } }
49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/c70ecd73f5018e3d7cc80fb899a4989c02d6c85c/ClusterUnitDatabase.java/clean/java/de/dfki/lt/mary/unitselection/clunits/ClusterUnitDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 7969, 38, 12, 12868, 12242, 7129, 13, 1216, 1860, 95, 3639, 309, 261, 9897, 18, 588, 1702, 1435, 480, 490, 22247, 13, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 6434, 8146, 316, 1319, 8863, 377, 202, 97, 377, 202, 565, 202, 377, 202, 430, 16051, 12, 9897, 18, 588, 1702, 1435, 422, 8456, 3719, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 13634, 1177, 434, 2063, 585, 8863, 97, 377, 202, 1213, 6860, 560, 6544, 273, 7129, 18, 588, 1702, 5621, 377, 202, 3838, 2840, 39, 28322, 273, 7129, 18, 588, 1702, 5621, 202, 202, 14313, 29913, 273, 7129, 18, 588, 1702, 5621, 202, 202, 5701, 1305, 273, 7129, 18, 588, 1702, 5621, 202, 202, 5701, 6544, 10544, 273, 7129, 18, 588, 1702, 5621, 202, 202, 474, 3119, 1782, 273, 7129, 18, 588, 1702, 5621, 202, 202, 5701, 16595, 273, 394, 509, 63, 4865, 1782, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1233, 16595, 18, 2469, 31, 277, 27245, 288, 1082, 202, 5701, 16595, 63, 77, 65, 273, 7129, 18, 588, 1702, 5621, 202, 202, 97, 202, 202, 474, 4971, 1782, 273, 7129, 18, 588, 1702, 5621, 3639, 4971, 273, 394, 5584, 2802, 63, 7705, 1782, 15533, 3639, 509, 4971, 1768, 1685, 273, 7129, 18, 3276, 5621, 3639, 509, 2836, 1622, 1782, 273, 4248, 31, 368, 1666, 509, 273, 4248, 1160, 3639, 368, 9545, 5104, 358, 2836, 1953, 1203, 1122, 30, 3639, 7129, 18, 3276, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 7969, 38, 12, 12868, 12242, 7129, 13, 1216, 1860, 95, 3639, 309, 261, 9897, 18, 588, 1702, 1435, 480, 490, 22247, 13, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 6434, 8146, 316, 1319, 8863, 377, 202, 97, 377, 202, 565, 202, 377, 202, 430, 16051, 12, 9897, 18, 588, 1702, 1435, 422, 8456, 3719, 225, 288, 377, 202, 202, 12849, 394, 1068, 2932, 13634, 1177, 434, 2063, 585, 8863, 97, 377, 202, 1213, 6860, 560, 6544, 273, 7129, 18, 588, 1702, 5621, 377, 202, 3838, 2840, 39, 28322, 273, 7129, 18, 588, 1702, 5621, 202, 202, 14313, 29913, 273, 7129, 18, 588, 1702, 5621, 202, 202, 5701, 1305, 273, 7129, 18, 588, 1702, 2 ]
if (recv == other) { return ruby.getTrue(); } else { try { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", other); return RubyBoolean.newBoolean(ruby, fn.getValue() == 0); } catch (NameError rnExcptn) { return ruby.getFalse();
try { if (recv == other) { return ruby.getTrue(); } else { return (RubyNumeric.fix2int(recv.funcall("<=>", other)) == 0) ? ruby.getTrue() : ruby.getFalse();
public static RubyBoolean equal(Ruby ruby, RubyObject recv, RubyObject other) { if (recv == other) { return ruby.getTrue(); } else { try { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", other); return RubyBoolean.newBoolean(ruby, fn.getValue() == 0); } catch (NameError rnExcptn) { return ruby.getFalse(); } } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyComparable.java/clean/org/jruby/RubyComparable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 3959, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 1308, 13, 288, 3639, 309, 261, 18334, 422, 1308, 13, 288, 5411, 327, 22155, 18, 588, 5510, 5621, 3639, 289, 469, 288, 5411, 775, 288, 7734, 19817, 8585, 2107, 2295, 273, 261, 54, 10340, 8585, 2107, 13, 10665, 18, 644, 454, 2932, 32, 33, 2984, 16, 1308, 1769, 7734, 327, 19817, 5507, 18, 2704, 5507, 12, 27768, 16, 2295, 18, 24805, 1435, 422, 374, 1769, 5411, 289, 1044, 261, 461, 668, 20594, 29924, 337, 82, 13, 288, 7734, 327, 22155, 18, 588, 8381, 5621, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 3959, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 1308, 13, 288, 3639, 309, 261, 18334, 422, 1308, 13, 288, 5411, 327, 22155, 18, 588, 5510, 5621, 3639, 289, 469, 288, 5411, 775, 288, 7734, 19817, 8585, 2107, 2295, 273, 261, 54, 10340, 8585, 2107, 13, 10665, 18, 644, 454, 2932, 32, 33, 2984, 16, 1308, 1769, 7734, 327, 19817, 5507, 18, 2704, 5507, 12, 27768, 16, 2295, 18, 24805, 1435, 422, 374, 1769, 5411, 289, 1044, 261, 461, 668, 20594, 29924, 337, 82, 13, 288, 7734, 327, 22155, 18, 588, 8381, 5621, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return yaccValue; }
return yaccValue; }
public Object value() { return yaccValue; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/clean/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 460, 1435, 288, 202, 202, 2463, 677, 8981, 620, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 460, 1435, 288, 202, 202, 2463, 677, 8981, 620, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (log.isTraceEnabled()) { log.trace("Adding " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));}
if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));}
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); insertTx(conn, tx); String state; if (tx == null) { state = "C"; } else { state = "+"; } ps = conn.prepareStatement(insertMessageRef); ps.setString(1, (String)channelID); ps.setString(2, (String)ref.getMessageID()); ps.setString(3, (String)ref.getStoreID()); if (tx == null) { if (this.txIdGUID) { ps.setNull(4, java.sql.Types.VARCHAR); } else { ps.setNull(4, java.sql.Types.BIGINT); } } else { if (this.txIdGUID) { ps.setString(4, tx.getGuidTxId()); } else { ps.setLong(4, tx.getLongTxId()); } } ps.setString(5, (String)state); int inserted = ps.executeUpdate(); if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(insertMessageRef, channelID, ref.getMessageID(), ref.getStoreID(), getTxId(tx), state) + " inserted " + inserted + " row(s)"); } } catch (SQLException e) { wrap.exceptionOccurred(); throw e; } finally { if (ps != null) { try { ps.close(); } catch (Throwable e) {} } if (conn != null) { try { conn.close(); } catch (Throwable e) {} } wrap.end(); } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/f957880e3959fea3b4f38d9dbb1e5dd0c710c09e/JDBCPersistenceManager.java/buggy/src/main/org/jboss/messaging/core/persistence/JDBCPersistenceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 2404, 12, 21682, 24324, 16, 2350, 2404, 1278, 16, 5947, 2229, 13, 1216, 1185, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 13962, 883, 2114, 315, 397, 1278, 397, 315, 364, 1904, 315, 225, 397, 24324, 397, 261, 978, 422, 446, 692, 315, 1661, 17, 7958, 1230, 6, 294, 315, 316, 2492, 30, 315, 397, 2229, 10019, 97, 1377, 4050, 1487, 273, 446, 31, 1377, 16913, 4250, 273, 446, 31, 1377, 5947, 3611, 2193, 273, 394, 5947, 3611, 5621, 1377, 775, 1377, 288, 540, 1487, 273, 3780, 18, 588, 1952, 5621, 21821, 2243, 4188, 12, 4646, 16, 2229, 1769, 540, 514, 919, 31, 540, 309, 261, 978, 422, 446, 13, 540, 288, 5411, 919, 273, 315, 39, 14432, 540, 289, 540, 469, 540, 288, 5411, 919, 273, 17487, 31, 540, 289, 5375, 4250, 273, 1487, 18, 9366, 3406, 12, 6387, 1079, 1957, 1769, 540, 4250, 18, 542, 780, 12, 21, 16, 261, 780, 13, 4327, 734, 1769, 540, 4250, 18, 542, 780, 12, 22, 16, 261, 780, 13, 1734, 18, 24906, 734, 10663, 540, 4250, 18, 542, 780, 12, 23, 16, 261, 780, 13, 1734, 18, 588, 2257, 734, 10663, 540, 309, 261, 978, 422, 446, 13, 540, 288, 5411, 309, 261, 2211, 18, 978, 548, 17525, 13, 5411, 288, 9079, 4250, 18, 542, 2041, 12, 24, 16, 2252, 18, 4669, 18, 2016, 18, 7716, 7305, 1769, 5411, 289, 5411, 469, 5411, 288, 9079, 4250, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 2404, 12, 21682, 24324, 16, 2350, 2404, 1278, 16, 5947, 2229, 13, 1216, 1185, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 13962, 883, 2114, 315, 397, 1278, 397, 315, 364, 1904, 315, 225, 397, 24324, 397, 261, 978, 422, 446, 692, 315, 1661, 17, 7958, 1230, 6, 294, 315, 316, 2492, 30, 315, 397, 2229, 10019, 97, 1377, 4050, 1487, 273, 446, 31, 1377, 16913, 4250, 273, 446, 31, 1377, 5947, 3611, 2193, 273, 394, 5947, 3611, 5621, 1377, 775, 1377, 288, 540, 1487, 273, 3780, 18, 588, 1952, 5621, 21821, 2243, 4188, 12, 4646, 16, 2229, 1769, 540, 514, 919, 31, 540, 309, 261, 978, 2 ]
public boolean setupAjcRun(Sandbox sandbox, Validator validator) { if (!validator.nullcheck(spec.getOptionsArray(), "localOptions") || !validator.nullcheck(sandbox, "sandbox") || !validator.nullcheck(spec.compiler, "compilerName") || !validator.canRead(Globals.F_aspectjrt_jar, "aspectjrt.jar") || !validator.canRead(Globals.F_testingclient_jar, "testing-client.jar") ) { return false; } this.sandbox = sandbox; String rdir = spec.testSrcDirOffset; File testBaseSrcDir; if ((null == rdir) || (0 == rdir.length())) { testBaseSrcDir = sandbox.testBaseDir; } else { testBaseSrcDir = new File(sandbox.testBaseDir, rdir); if (!validator.canReadDir(testBaseSrcDir, "sandbox.testBaseSrcDir")) { return false; } } sandbox.setTestBaseSrcDir(testBaseSrcDir, this); // Sources come as relative paths - check read, copy if staging. // This renders paths absolute before run(RunStatusI) is called. // For a compile run to support relative paths + source base, // change so the run calculates the paths (differently when staging) final String[] injarPaths; final String[] srcPaths; { final String[] paths = spec.getPathsArray(); srcPaths = LangUtil.endsWith(paths, CompilerRun.SOURCE_SUFFIXES, true); injarPaths = LangUtil.endsWith(paths, CompilerRun.JAR_SUFFIXES, true); } // validate readable for sources if (!validator.canRead(testBaseSrcDir, srcPaths, "sources") || !validator.canRead(testBaseSrcDir, injarPaths, "injars") || !validator.canRead(testBaseSrcDir, spec.argfiles, "argfiles") || !validator.canRead(testBaseSrcDir, spec.classpath, "classpath") || !validator.canRead(testBaseSrcDir, spec.aspectpath, "aspectpath") || !validator.canRead(testBaseSrcDir, spec.sourceroots, "sourceroots") ) { return false; } int numSources = srcPaths.length + injarPaths.length + spec.argfiles.length + spec.sourceroots.length; if (numSources < 1) { validator.fail("no input jars, arg files, or source files or roots"); return false; } final File[] argFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, spec.argfiles); final File[] injarFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, injarPaths); final File[] aspectFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, spec.aspectpath); final File[] classFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, spec.classpath); // hmm - duplicates validation above, verifying getBaseDirFiles? if (!validator.canRead(argFiles, "argFiles") || !validator.canRead(injarFiles, "injarfiles") || !validator.canRead(aspectFiles, "aspectfiles") || !validator.canRead(classFiles, "classfiles")) { return false; } final File[] srcFiles; File[] sourcerootFiles = new File[0]; // source text files are copied when staging incremental tests if (!spec.isStaging()) { // XXX why this? was always? || (testBaseSrcDir != sandbox.stagingDir))) { srcFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, srcPaths, CompilerRun.SOURCE_SUFFIXES); if (!LangUtil.isEmpty(spec.sourceroots)) { sourcerootFiles = FileUtil.getBaseDirFiles(testBaseSrcDir, spec.sourceroots, null); } } else { // staging - copy files try { srcFiles = FileUtil.copyFiles(testBaseSrcDir, srcPaths, sandbox.stagingDir); if (!LangUtil.isEmpty(spec.sourceroots)) { sourcerootFiles = FileUtil.copyFiles(testBaseSrcDir, spec.sourceroots, sandbox.stagingDir); // delete incremental files in sourceroot after copying // XXX inefficient FileFilter pickIncFiles = new FileFilter() { // XXX weak rule to find incremental files public boolean accept(File file) { if (file.isDirectory()) { // continue recursion return true; } String path = file.getPath(); if (!FileUtil.hasSourceSuffix(path)) { return false; } int first = path.indexOf("."); int last = path.lastIndexOf("."); return (first != last); } }; for (int i = 0; i < sourcerootFiles.length; i++) { FileUtil.deleteContents(sourcerootFiles[i], pickIncFiles, false); } } } catch (IllegalArgumentException e) { validator.fail("staging - bad input", e); return false; } catch (IOException e) { validator.fail("staging - operations", e); return false; } } if (!validator.canRead(srcFiles, "copied paths")) { return false; } arguments.clear(); if (!LangUtil.isEmpty(sourcerootFiles)) { arguments.add("-sourceroots"); String sr = FileUtil.flatten(sourcerootFiles, null); arguments.add(sr); } if (!LangUtil.isEmpty(srcFiles)) { arguments.addAll(Arrays.asList(FileUtil.getPaths(srcFiles))); } injars.clear(); if (!LangUtil.isEmpty(injarFiles)) { injars.addAll(Arrays.asList(FileUtil.getPaths(injarFiles))); } if (!LangUtil.isEmpty(argFiles)) { String[] ra = FileUtil.getPaths(argFiles); for (int j = 0; j < ra.length; j++) { arguments.add("@" + ra[j]); } if (spec.isStaging) { validator.info("warning: files listed in argfiles not staged"); } } // save classpath and aspectpath in sandbox for this and other clients final boolean checkReadable = true; // hmm - third validation? File[] cp = new File[3 + classFiles.length]; System.arraycopy(classFiles, 0, cp, 0, classFiles.length); int index = classFiles.length; cp[index++] = sandbox.classesDir; cp[index++] = Globals.F_aspectjrt_jar; cp[index++] = Globals.F_testingclient_jar; sandbox.setClasspath(cp, checkReadable, this); // set aspectpath if (0 < aspectFiles.length) { sandbox.setAspectpath(aspectFiles, checkReadable, this); } // set bootclasspath, if set as system property - urk! if (!LangUtil.isEmpty(JavaRun.BOOTCLASSPATH)) { sandbox.setBootclasspath(JavaRun.BOOTCLASSPATH, this); } return true; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/35e6b8dd1ad6b8a683c6df2da2404d88d804e0f6/CompilerRun.java/buggy/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 565, 1250, 565, 3875, 37, 78, 71, 1997, 12, 17881, 565, 15202, 16, 565, 9150, 565, 4213, 13, 565, 288, 27573, 309, 565, 16051, 7357, 18, 2011, 1893, 12, 2793, 18, 588, 1320, 1076, 9334, 565, 315, 3729, 1320, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 2011, 1893, 12, 27004, 16, 565, 315, 27004, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 2011, 1893, 12, 2793, 18, 9576, 16, 565, 315, 9576, 461, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 4169, 1994, 12, 19834, 18, 42, 67, 23579, 78, 3797, 67, 11930, 16, 565, 315, 23579, 78, 3797, 18, 11930, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 4169, 1994, 12, 19834, 18, 42, 67, 3813, 310, 2625, 67, 11930, 16, 565, 315, 3813, 310, 17, 2625, 18, 11930, 7923, 4766, 7734, 262, 565, 288, 4766, 7734, 327, 565, 629, 31, 27573, 289, 28524, 565, 333, 18, 27004, 565, 273, 565, 15202, 31, 4766, 27573, 514, 565, 436, 1214, 565, 273, 565, 857, 18, 3813, 7740, 1621, 2335, 31, 27573, 1387, 565, 1842, 2171, 7740, 1621, 31, 27573, 309, 565, 14015, 2011, 565, 422, 565, 436, 1214, 13, 565, 747, 565, 261, 20, 565, 422, 565, 436, 1214, 18, 2469, 1435, 3719, 565, 288, 4766, 7734, 1842, 2171, 7740, 1621, 565, 273, 565, 15202, 18, 3813, 2171, 1621, 31, 27573, 289, 565, 469, 565, 288, 4766, 7734, 1842, 2171, 7740, 1621, 565, 273, 565, 394, 565, 1387, 12, 27004, 18, 3813, 2171, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 565, 1250, 565, 3875, 37, 78, 71, 1997, 12, 17881, 565, 15202, 16, 565, 9150, 565, 4213, 13, 565, 288, 27573, 309, 565, 16051, 7357, 18, 2011, 1893, 12, 2793, 18, 588, 1320, 1076, 9334, 565, 315, 3729, 1320, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 2011, 1893, 12, 27004, 16, 565, 315, 27004, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 2011, 1893, 12, 2793, 18, 9576, 16, 565, 315, 9576, 461, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 4169, 1994, 12, 19834, 18, 42, 67, 23579, 78, 3797, 67, 11930, 16, 565, 315, 23579, 78, 3797, 18, 11930, 7923, 4766, 7734, 747, 565, 401, 7357, 18, 4169, 1994, 12, 19834, 18, 42, 2 ]
public Vector getItemQtyMaxBid(int maxToCollect, Integer itemId) throws RemoteException;
public Vector getItemQtyMaxBid(int maxToCollect, Integer itemId) throws RemoteException;
public Vector getItemQtyMaxBid(int maxToCollect, Integer itemId) throws RemoteException;
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/Query.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/Query.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 8143, 53, 4098, 2747, 17763, 12, 474, 943, 774, 10808, 16, 2144, 18424, 13, 1216, 18361, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 8143, 53, 4098, 2747, 17763, 12, 474, 943, 774, 10808, 16, 2144, 18424, 13, 1216, 18361, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
expression = expression.replaceAll("\"", "&qout;");
expression = expression.replaceAll("\"", "&quot;");
public static String marshal(String expression) { if (expression != null) { expression = expression.replaceAll("&", "&amp;"); expression = expression.replaceAll("<", "&lt;"); expression = expression.replaceAll(">", "&gt;"); expression = expression.replaceAll("\"", "&qout;"); expression = expression.replaceAll("'", "&apos;"); } return expression; }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/06d7ca5df153b2a9a311a5300c5225c964066bf5/YTask.java/buggy/yawl/src/au/edu/qut/yawl/elements/YTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 10893, 12, 780, 2652, 13, 288, 3639, 309, 261, 8692, 480, 446, 13, 288, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 10, 3113, 7830, 931, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 32, 3113, 7830, 5618, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 2984, 16, 7830, 4521, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 2412, 3113, 7830, 9270, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 29823, 3113, 7830, 438, 538, 4868, 1769, 3639, 289, 3639, 327, 2652, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 10893, 12, 780, 2652, 13, 288, 3639, 309, 261, 8692, 480, 446, 13, 288, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 10, 3113, 7830, 931, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 32, 3113, 7830, 5618, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 2984, 16, 7830, 4521, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 2932, 2412, 3113, 7830, 9270, 4868, 1769, 5411, 2652, 273, 2652, 18, 2079, 1595, 29823, 3113, 7830, 438, 538, 4868, 1769, 3639, 289, 3639, 327, 2652, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new RuntimeException("Shouldn't call getNewIds() in a" + " running webapp"); }
throw new RuntimeException("Shouldn't call getNewIds() in a" + " running webapp"); }
public Set getNewIds(InterMineObject oldObject, ObjectStore os) { throw new RuntimeException("Shouldn't call getNewIds() in a" + " running webapp"); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/6a44cd3d5bdcb8358760df26ee8b4b2f2feb729b/ProfileBinding.java/clean/intermine/webtasks/main/src/org/intermine/web/ProfileBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1000, 12654, 2673, 12, 2465, 49, 558, 921, 1592, 921, 16, 1033, 2257, 1140, 13, 288, 13491, 604, 394, 3235, 2932, 14309, 82, 1404, 745, 12654, 2673, 1435, 316, 279, 6, 4766, 10402, 397, 315, 3549, 28945, 8863, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1000, 12654, 2673, 12, 2465, 49, 558, 921, 1592, 921, 16, 1033, 2257, 1140, 13, 288, 13491, 604, 394, 3235, 2932, 14309, 82, 1404, 745, 12654, 2673, 1435, 316, 279, 6, 4766, 10402, 397, 315, 3549, 28945, 8863, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void initTransports(ConfigurationContext configContext) {
public static void initTransports(ConfigurationContext configContext) {
public void initTransports(ConfigurationContext configContext) { AxisConfiguration axisConf = configContext.getAxisConfiguration(); // Initialize Transport Ins HashMap transportIns = axisConf.getTransportsIn(); Iterator values = transportIns.values().iterator(); while (values.hasNext()) { TransportInDescription transportIn = (TransportInDescription) values.next(); TransportListener listener = transportIn.getReceiver(); if (listener != null) { try { listener.init(configContext, transportIn); } catch (AxisFault axisFault) { log.info("Transport-IN initialization error : " + transportIn.getName().getLocalPart()); } } } // Initialize Transport Outs HashMap transportOuts = axisConf.getTransportsOut(); values = transportOuts.values().iterator(); while (values.hasNext()) { TransportOutDescription transportOut = (TransportOutDescription) values.next(); TransportSender sender = transportOut.getSender(); if (sender != null) { try { sender.init(configContext, transportOut); } catch (AxisFault axisFault) { log.info("Transport-OUT initialization error : " + transportOut.getName().getLocalPart()); } } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/f2eb318fb061f6d3380b2da72c4a8f478a46b68a/ConfigurationContextFactory.java/clean/modules/core/src/org/apache/axis2/context/ConfigurationContextFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1208, 1429, 4363, 12, 1750, 1042, 642, 1042, 13, 288, 3639, 15509, 1750, 2654, 3976, 273, 642, 1042, 18, 588, 6558, 1750, 5621, 3639, 368, 9190, 9514, 22085, 3639, 4317, 4736, 5048, 273, 2654, 3976, 18, 588, 1429, 4363, 382, 5621, 3639, 4498, 924, 273, 4736, 5048, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2372, 18, 5332, 2134, 10756, 288, 5411, 9514, 382, 3291, 4736, 382, 273, 261, 6568, 382, 3291, 13, 924, 18, 4285, 5621, 5411, 9514, 2223, 2991, 273, 4736, 382, 18, 588, 12952, 5621, 5411, 309, 261, 12757, 480, 446, 13, 288, 7734, 775, 288, 10792, 2991, 18, 2738, 12, 1425, 1042, 16, 4736, 382, 1769, 7734, 289, 1044, 261, 6558, 7083, 2654, 7083, 13, 288, 10792, 613, 18, 1376, 2932, 6568, 17, 706, 10313, 555, 294, 315, 18701, 397, 4736, 382, 18, 17994, 7675, 588, 2042, 1988, 10663, 7734, 289, 5411, 289, 3639, 289, 3639, 368, 9190, 9514, 2976, 87, 3639, 4317, 4736, 1182, 87, 273, 2654, 3976, 18, 588, 1429, 4363, 1182, 5621, 3639, 924, 273, 4736, 1182, 87, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2372, 18, 5332, 2134, 10756, 288, 5411, 9514, 1182, 3291, 4736, 1182, 273, 261, 6568, 1182, 3291, 13, 924, 18, 4285, 5621, 5411, 9514, 12021, 5793, 273, 4736, 1182, 18, 588, 12021, 5621, 5411, 309, 261, 15330, 480, 446, 13, 288, 7734, 775, 288, 10792, 5793, 18, 2738, 12, 1425, 1042, 16, 4736, 1182, 1769, 7734, 289, 1044, 261, 6558, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1208, 1429, 4363, 12, 1750, 1042, 642, 1042, 13, 288, 3639, 15509, 1750, 2654, 3976, 273, 642, 1042, 18, 588, 6558, 1750, 5621, 3639, 368, 9190, 9514, 22085, 3639, 4317, 4736, 5048, 273, 2654, 3976, 18, 588, 1429, 4363, 382, 5621, 3639, 4498, 924, 273, 4736, 5048, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2372, 18, 5332, 2134, 10756, 288, 5411, 9514, 382, 3291, 4736, 382, 273, 261, 6568, 382, 3291, 13, 924, 18, 4285, 5621, 5411, 9514, 2223, 2991, 273, 4736, 382, 18, 588, 12952, 5621, 5411, 309, 261, 12757, 480, 446, 13, 288, 7734, 775, 288, 10792, 2991, 18, 2738, 12, 1425, 1042, 16, 4736, 382, 1769, 7734, 289, 1044, 261, 6558, 2 ]
public void set(org.quickfix.field.PartyID value)
public void set(quickfix.field.PartyID value)
public void set(org.quickfix.field.PartyID value) { setField(value); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositions.java/buggy/src/java/src/quickfix/fix44/RequestForPositions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 17619, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 17619, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
StreamUtilities.streamCopy(in, bout);
IOUtil.copy(in, bout);
private void init(InputStream in) throws java.io.IOException { java.io.ByteArrayOutputStream bout = new java.io.ByteArrayOutputStream(); try { StreamUtilities.streamCopy(in, bout); this.file = bout.toByteArray(); this.fsize = this.file.length; this.current = 0; } finally { bout.close(); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/c5f388c102048c00bacc5c162bcf4dc6c8e2a73d/FontFileReader.java/buggy/src/java/org/apache/fop/fonts/truetype/FontFileReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 4348, 316, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 2252, 18, 1594, 18, 8826, 4632, 31095, 273, 394, 2252, 18, 1594, 18, 8826, 4632, 5621, 3639, 775, 288, 5411, 1665, 1304, 18, 3530, 12, 267, 16, 31095, 1769, 5411, 333, 18, 768, 273, 31095, 18, 869, 8826, 5621, 5411, 333, 18, 74, 1467, 273, 333, 18, 768, 18, 2469, 31, 5411, 333, 18, 2972, 273, 374, 31, 3639, 289, 3095, 288, 5411, 31095, 18, 4412, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 4348, 316, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 2252, 18, 1594, 18, 8826, 4632, 31095, 273, 394, 2252, 18, 1594, 18, 8826, 4632, 5621, 3639, 775, 288, 5411, 1665, 1304, 18, 3530, 12, 267, 16, 31095, 1769, 5411, 333, 18, 768, 273, 31095, 18, 869, 8826, 5621, 5411, 333, 18, 74, 1467, 273, 333, 18, 768, 18, 2469, 31, 5411, 333, 18, 2972, 273, 374, 31, 3639, 289, 3095, 288, 5411, 31095, 18, 4412, 5621, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_t = __t1182;
_t = __t1186;
public final void menu_list_item(AST _t) throws RecognitionException { AST menu_list_item_AST_in = (_t == ASTNULL) ? null : (AST)_t; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MENUITEM: { AST __t1170 = _t; AST tmp2242_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getFirstChild(); AST tmp2243_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1174: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ACCELERATOR: { AST __t1172 = _t; AST tmp2244_AST_in = (AST)_t; match(_t,ACCELERATOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1172; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case DISABLED: { AST tmp2245_AST_in = (AST)_t; match(_t,DISABLED); _t = _t.getNextSibling(); break; } case FONT: { AST __t1173 = _t; AST tmp2246_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1173; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case READONLY: { AST tmp2247_AST_in = (AST)_t; match(_t,READONLY); _t = _t.getNextSibling(); break; } case TOGGLEBOX: { AST tmp2248_AST_in = (AST)_t; match(_t,TOGGLEBOX); _t = _t.getNextSibling(); break; } default: { break _loop1174; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1170; _t = _t.getNextSibling(); break; } case SUBMENU: { AST __t1176 = _t; AST tmp2249_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getFirstChild(); AST tmp2250_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1179: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISABLED: { AST tmp2251_AST_in = (AST)_t; match(_t,DISABLED); _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case FONT: { AST __t1178 = _t; AST tmp2252_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1178; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } default: { break _loop1179; } } } while (true); } _t = __t1176; _t = _t.getNextSibling(); break; } case RULE: { AST __t1180 = _t; AST tmp2253_AST_in = (AST)_t; match(_t,RULE); _t = _t.getFirstChild(); { _loop1183: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FONT: { AST __t1182 = _t; AST tmp2254_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1182; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } default: { break _loop1183; } } } while (true); } _t = __t1180; _t = _t.getNextSibling(); break; } case SKIP: { AST tmp2255_AST_in = (AST)_t; match(_t,SKIP); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { boolean synPredMatched1187 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==PERIOD))) { AST __t1187 = _t; synPredMatched1187 = true; inputState.guessing++; try { { AST tmp2256_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RULE: { AST tmp2257_AST_in = (AST)_t; match(_t,RULE); _t = _t.getNextSibling(); break; } case SKIP: { AST tmp2258_AST_in = (AST)_t; match(_t,SKIP); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp2259_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp2260_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } } catch (RecognitionException pe) { synPredMatched1187 = false; } _t = __t1187;inputState.guessing--; } if ( synPredMatched1187 ) { AST tmp2261_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); } else if ((_tokenSet_39.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3824, 67, 1098, 67, 1726, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3824, 67, 1098, 67, 1726, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 490, 1157, 57, 12674, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 2499, 7301, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23622, 22, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 29227, 12674, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 9053, 1853, 23622, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 734, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 95, 1082, 202, 67, 6498, 2499, 5608, 30, 1082, 202, 2896, 288, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 9506, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 9506, 202, 3593, 12048, 1441, 14668, 3575, 30, 9506, 202, 95, 6862, 202, 9053, 1001, 88, 2499, 9060, 273, 389, 88, 31, 6862, 202, 9053, 1853, 23622, 24, 67, 9053, 67, 267, 273, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3824, 67, 1098, 67, 1726, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3824, 67, 1098, 67, 1726, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 490, 1157, 57, 12674, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 2499, 7301, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23622, 22, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 2 ]
case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s);
case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s);
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+" "); if(debug) log("Matched @media: "+s); } case 42: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 43: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 44: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 45: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 46: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 48: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 49: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 20: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 25: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/e8996198a75deffbf4dc9e1ed08d3120115f4fa9/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 1323, 261, 3767, 13, 288, 1377, 11273, 21486, 1616, 48, 273, 11273, 21486, 1616, 31, 1377, 11273, 1803, 273, 300, 21, 31, 1377, 11273, 3935, 1616, 48, 273, 11273, 3935, 1616, 273, 11273, 1685, 1994, 273, 11273, 21486, 1616, 48, 31, 3639, 11273, 1119, 273, 11273, 14756, 1706, 1119, 31, 1377, 11273, 1290, 1803, 30, 288, 3639, 1323, 261, 3767, 13, 288, 2868, 309, 261, 6378, 3935, 1616, 48, 411, 11273, 1638, 1994, 48, 13, 5411, 11273, 1210, 273, 11273, 1892, 48, 63, 6378, 3935, 1616, 48, 9904, 15533, 1850, 469, 309, 261, 6378, 861, 12706, 13, 288, 5411, 11273, 1210, 273, 1624, 61, 12706, 31, 5411, 898, 11273, 1290, 1803, 31, 1850, 289, 1850, 469, 288, 5411, 368, 1707, 1473, 3472, 6865, 5411, 11273, 3935, 1616, 225, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 2 ]
DnsStaticHostRule hostRule = new DnsStaticHostRule();
DnsStaticHostRule hostRule = (DnsStaticHostRule) rowVector.elementAt(6);
public void generateSettings(Object settings, boolean validateOnly) throws Exception { NatSettings natSettings = (NatSettings) settings; List hostRulesList = new ArrayList(); int rowIndex = 1; for( Vector rowVector : (Vector<Vector>) this.getDataVector() ){ DnsStaticHostRule hostRule = new DnsStaticHostRule(); try{ hostRule.setHostNameList( HostNameList.parse( (String)rowVector.elementAt(2)) ); } catch(Exception e){ throw new Exception("Invalid \"hostname\" in row: " + rowIndex); } try{ hostRule.setStaticAddress( IPaddr.parse( (String)rowVector.elementAt(3)) ); } catch(Exception e){ throw new Exception("Invalid \"IP address\" in row: " + rowIndex); } hostRule.setCategory( (String) rowVector.elementAt(4) ); hostRule.setDescription( (String) rowVector.elementAt(5) ); hostRulesList.add(hostRule); rowIndex++; } // SAVE SETTINGS //////// if( !validateOnly ){ natSettings.setDnsStaticHostList(hostRulesList); } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/34dd610691613c4d4e4c0d4172ac75f71f199277/DnsAddressJPanel.java/buggy/tran/nat/main/com/metavize/tran/nat/gui/DnsAddressJPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2103, 2628, 12, 921, 1947, 16, 1250, 1954, 3386, 13, 1216, 1185, 288, 3639, 423, 270, 2628, 10535, 2628, 273, 261, 23779, 2628, 13, 1947, 31, 7734, 987, 1479, 4478, 682, 273, 394, 2407, 5621, 3639, 509, 15361, 273, 404, 31, 3639, 364, 12, 5589, 1027, 5018, 294, 261, 5018, 32, 5018, 23429, 333, 18, 588, 751, 5018, 1435, 262, 95, 5411, 28456, 5788, 2594, 2175, 1479, 2175, 273, 261, 18600, 5788, 2594, 2175, 13, 1027, 5018, 18, 2956, 861, 12, 26, 1769, 5411, 775, 95, 1479, 2175, 18, 542, 20946, 682, 12, 4893, 461, 682, 18, 2670, 12, 261, 780, 13, 492, 5018, 18, 2956, 861, 12, 22, 3719, 11272, 289, 5411, 1044, 12, 503, 425, 15329, 604, 394, 1185, 2932, 1941, 1239, 10358, 2412, 316, 1027, 30, 315, 397, 15361, 1769, 289, 5411, 775, 95, 1479, 2175, 18, 542, 5788, 1887, 12, 2971, 4793, 18, 2670, 12, 261, 780, 13, 492, 5018, 18, 2956, 861, 12, 23, 3719, 11272, 289, 5411, 1044, 12, 503, 425, 15329, 604, 394, 1185, 2932, 1941, 1239, 2579, 1758, 2412, 316, 1027, 30, 315, 397, 15361, 1769, 289, 5411, 1479, 2175, 18, 542, 4457, 12, 261, 780, 13, 1027, 5018, 18, 2956, 861, 12, 24, 13, 11272, 5411, 1479, 2175, 18, 542, 3291, 12, 261, 780, 13, 1027, 5018, 18, 2956, 861, 12, 25, 13, 11272, 5411, 1479, 4478, 682, 18, 1289, 12, 2564, 2175, 1769, 202, 565, 15361, 9904, 31, 3639, 289, 540, 202, 759, 17127, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2103, 2628, 12, 921, 1947, 16, 1250, 1954, 3386, 13, 1216, 1185, 288, 3639, 423, 270, 2628, 10535, 2628, 273, 261, 23779, 2628, 13, 1947, 31, 7734, 987, 1479, 4478, 682, 273, 394, 2407, 5621, 3639, 509, 15361, 273, 404, 31, 3639, 364, 12, 5589, 1027, 5018, 294, 261, 5018, 32, 5018, 23429, 333, 18, 588, 751, 5018, 1435, 262, 95, 5411, 28456, 5788, 2594, 2175, 1479, 2175, 273, 261, 18600, 5788, 2594, 2175, 13, 1027, 5018, 18, 2956, 861, 12, 26, 1769, 5411, 775, 95, 1479, 2175, 18, 542, 20946, 682, 12, 4893, 461, 682, 18, 2670, 12, 261, 780, 13, 492, 5018, 18, 2956, 861, 12, 22, 3719, 11272, 289, 5411, 1044, 12, 503, 2 ]
AbsintheArchivalUnit au = makeAu(new URL(ROOT_URL), "2003");
ConfigurableArchivalUnit au = makeAu(new URL(ROOT_URL), "2003");
public void testGetName() throws Exception { AbsintheArchivalUnit au = makeAu(new URL(ROOT_URL), "2003"); assertEquals("absinthe-literary-review.com, 2003", au.getName()); au = makeAu(new URL("http://www.bmj.com/"), "2005"); assertEquals("www.bmj.com, 2005", au.getName()); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/7213af99d56a7766716f5d711aa30ad85c71d195/TestAbsintheArchivalUnit.java/clean/test/src/org/lockss/plugin/absinthe/TestAbsintheArchivalUnit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 967, 461, 1435, 1216, 1185, 288, 565, 29312, 12269, 5162, 2802, 20309, 273, 1221, 37, 89, 12, 2704, 1976, 12, 9185, 67, 1785, 3631, 315, 6976, 23, 8863, 565, 1815, 8867, 2932, 5113, 267, 5787, 17, 80, 2165, 814, 17, 16041, 18, 832, 16, 4044, 23, 3113, 20309, 18, 17994, 10663, 565, 20309, 273, 1221, 37, 89, 12, 2704, 1976, 2932, 2505, 2207, 5591, 18, 25709, 78, 18, 832, 4898, 3631, 315, 6976, 25, 8863, 565, 1815, 8867, 2932, 5591, 18, 25709, 78, 18, 832, 16, 4044, 25, 3113, 20309, 18, 17994, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 967, 461, 1435, 1216, 1185, 288, 565, 29312, 12269, 5162, 2802, 20309, 273, 1221, 37, 89, 12, 2704, 1976, 12, 9185, 67, 1785, 3631, 315, 6976, 23, 8863, 565, 1815, 8867, 2932, 5113, 267, 5787, 17, 80, 2165, 814, 17, 16041, 18, 832, 16, 4044, 23, 3113, 20309, 18, 17994, 10663, 565, 20309, 273, 1221, 37, 89, 12, 2704, 1976, 2932, 2505, 2207, 5591, 18, 25709, 78, 18, 832, 4898, 3631, 315, 6976, 25, 8863, 565, 1815, 8867, 2932, 5591, 18, 25709, 78, 18, 832, 16, 4044, 25, 3113, 20309, 18, 17994, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{
public void actionPerformed(ActionEvent evt) { View view = browser.getView(); String actionCommand = evt.getActionCommand(); if(actionCommand.equals("open")) { Hashtable props = new Hashtable(); props.put(Buffer.VFS_SESSION_HACK,browser.getVFSSession()); jEdit.openFile(view,null,file.path,false,false,props); } else if(actionCommand.equals("open-view")) { Hashtable props = new Hashtable(); props.put(Buffer.VFS_SESSION_HACK,browser.getVFSSession()); Buffer buffer = jEdit.openFile(null,null,file.path,false,false,props); if(buffer != null) jEdit.newView(view,buffer); } else if(actionCommand.equals("select")) { browser.filesActivated(); } else if(actionCommand.equals("close")) { Buffer buffer = jEdit.getBuffer(file.path); if(buffer != null) jEdit.closeBuffer(view,buffer); } else if(actionCommand.equals("goto")) { browser.setDirectory(file.path); } else if(evt.getActionCommand().equals("rename")) { browser.rename(file.path); } else if(evt.getActionCommand().equals("delete")) { browser.delete(file.deletePath); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/6c0781f36556ba8818343e7a0f788e90ce59a7cd/BrowserPopupMenu.java/clean/org/gjt/sp/jedit/browser/BrowserPopupMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 1767, 1476, 273, 4748, 18, 588, 1767, 5621, 1082, 202, 780, 1301, 2189, 273, 6324, 18, 588, 1803, 2189, 5621, 1082, 202, 430, 12, 1128, 2189, 18, 14963, 2932, 3190, 6, 3719, 1082, 202, 95, 9506, 202, 5582, 14544, 3458, 273, 394, 18559, 5621, 9506, 202, 9693, 18, 458, 12, 1892, 18, 58, 4931, 67, 7042, 67, 44, 3649, 16, 11213, 18, 588, 58, 42, 1260, 893, 10663, 9506, 202, 78, 4666, 18, 3190, 812, 12, 1945, 16, 2011, 16, 768, 18, 803, 16, 5743, 16, 5743, 16, 9693, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 12, 1128, 2189, 18, 14963, 2932, 3190, 17, 1945, 6, 3719, 1082, 202, 95, 9506, 202, 5582, 14544, 3458, 273, 394, 18559, 5621, 9506, 202, 9693, 18, 458, 12, 1892, 18, 58, 4931, 67, 7042, 67, 44, 3649, 16, 11213, 18, 588, 58, 42, 1260, 893, 10663, 9506, 202, 1892, 1613, 273, 525, 4666, 18, 3190, 812, 12, 2011, 16, 2011, 16, 768, 18, 803, 16, 5743, 16, 5743, 16, 9693, 1769, 9506, 202, 430, 12, 4106, 480, 446, 13, 6862, 202, 78, 4666, 18, 2704, 1767, 12, 1945, 16, 4106, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 12, 1128, 2189, 18, 14963, 2932, 4025, 6, 3719, 1082, 202, 95, 9506, 202, 11213, 18, 2354, 28724, 5621, 1082, 202, 97, 1082, 202, 12107, 309, 12, 1128, 2189, 18, 14963, 2932, 4412, 6, 3719, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 1767, 1476, 273, 4748, 18, 588, 1767, 5621, 1082, 202, 780, 1301, 2189, 273, 6324, 18, 588, 1803, 2189, 5621, 1082, 202, 430, 12, 1128, 2189, 18, 14963, 2932, 3190, 6, 3719, 1082, 202, 95, 9506, 202, 5582, 14544, 3458, 273, 394, 18559, 5621, 9506, 202, 9693, 18, 458, 12, 1892, 18, 58, 4931, 67, 7042, 67, 44, 3649, 16, 11213, 18, 588, 58, 42, 1260, 893, 10663, 9506, 202, 78, 4666, 18, 3190, 812, 12, 1945, 16, 2011, 16, 768, 18, 803, 16, 5743, 16, 5743, 16, 9693, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 12, 1128, 2189, 18, 14963, 2932, 3190, 2 ]
return willOpenWindow(createURL(link));
WebBrowserUtil.trace("will open link " + link + " in new window"); return true;
protected boolean willOpenWindow(String link) { return willOpenWindow(createURL(link)); }
4416 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4416/ae38d71fb24b307a9663b77a7b242377ec365780/WebBrowser.java/clean/src/jdic/src/share/classes/org/jdesktop/jdic/browser/WebBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 903, 3678, 3829, 12, 780, 1692, 13, 288, 1082, 202, 2463, 903, 3678, 3829, 12, 2640, 1785, 12, 1232, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 903, 3678, 3829, 12, 780, 1692, 13, 288, 1082, 202, 2463, 903, 3678, 3829, 12, 2640, 1785, 12, 1232, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myChild2.getTextRange().getStartOffset()));
myChild2.getTextRange().getStartOffset()), mySettings.KEEP_SIMPLE_METHODS_IN_ONE_LINE);
public void visitMethod(PsiMethod method) { if (myRole2 == ChildRole.PARAMETER_LIST) { createSpaceInCode(mySettings.SPACE_BEFORE_METHOD_PARENTHESES); } else if (myRole1 == ChildRole.PARAMETER_LIST && myRole2 == ChildRole.THROWS_LIST) { createSpaceInCode(true); } else if (myRole2 == ChildRole.METHOD_BODY) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_METHOD_LBRACE, mySettings.METHOD_BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild2.getTextRange().getStartOffset())); } else if (myRole1 == ChildRole.MODIFIER_LIST) { processModifierList(); } else if (ElementType.COMMENT_BIT_SET.isInSet(myChild1.getElementType()) && (myRole2 == ChildRole.MODIFIER_LIST || myRole2 == ChildRole.TYPE_REFERENCE)) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, 0); } else if (myRole2 == ChildRole.DEFAULT_KEYWORD) { createSpaceInCode(true); } else if (myRole2 == ChildRole.ANNOTATION_DEFAULT_VALUE) { createSpaceInCode(true); } else if (myChild2.getElementType() == ElementType.SEMICOLON) { createSpaceInCode(false); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/b0751de4f90f5cf60ea788424eae6a1c0e6435f9/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 9819, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 14943, 3900, 1090, 55, 1769, 565, 289, 565, 469, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 9819, 67, 7085, 597, 3399, 2996, 22, 422, 7451, 2996, 18, 2455, 28402, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 3767, 1769, 565, 289, 469, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 5327, 67, 16691, 13, 288, 1377, 3399, 1253, 273, 1322, 909, 4649, 12995, 9963, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 12995, 9254, 16, 3399, 2628, 18, 5327, 67, 26980, 67, 15066, 16, 394, 3867, 2655, 12, 4811, 3054, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 9334, 28524, 4766, 12900, 3399, 1763, 22, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 1435, 3631, 3399, 2628, 18, 6859, 10541, 67, 31669, 900, 67, 25750, 67, 706, 67, 5998, 67, 5997, 1769, 565, 289, 469, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 6720, 10591, 67, 7085, 13, 288, 1377, 1207, 9829, 682, 5621, 565, 289, 469, 309, 261, 17481, 18, 12200, 67, 15650, 67, 4043, 18, 291, 382, 694, 12, 4811, 1763, 21, 18, 588, 17481, 10756, 7734, 597, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 6720, 10591, 67, 7085, 747, 3399, 2996, 22, 422, 7451, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 9819, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 14943, 3900, 1090, 55, 1769, 565, 289, 565, 469, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 9819, 67, 7085, 597, 3399, 2996, 22, 422, 7451, 2996, 18, 2455, 28402, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 3767, 1769, 565, 289, 469, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 5327, 67, 16691, 13, 288, 1377, 3399, 1253, 273, 1322, 909, 4649, 12995, 9963, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 2 ]
Map addedBrowsers = getAddedBrowsersFromRequest( request );
Map addedBrowsers = getAddedBrowsersFromRequest( request, Imcms.getServices().getDocumentMapper() );
protected void dispatchFromEditPage( HttpServletRequest request, HttpServletResponse response, String page ) throws IOException, ServletException { Map addedBrowsers = getAddedBrowsersFromRequest( request ); if ( null != request.getParameter( REQUEST_PARAMETER__ADD_BROWSERS_BUTTON ) ) { forwardToBrowserDocumentPageWithBrowsersMap( request, response, addedBrowsers ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ca7dd99ba92e4678a1cfeeac389727b5c62a1d88/EditBrowserDocumentPageFlow.java/buggy/server/src/com/imcode/imcms/flow/EditBrowserDocumentPageFlow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3435, 1265, 4666, 1964, 12, 9984, 590, 16, 12446, 766, 16, 514, 1363, 262, 1216, 1860, 16, 16517, 288, 3639, 1635, 3096, 38, 13221, 273, 336, 8602, 38, 13221, 25074, 12, 590, 16, 2221, 6851, 18, 588, 5676, 7675, 588, 2519, 4597, 1435, 11272, 3639, 309, 261, 446, 480, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 8355, 67, 38, 24846, 55, 67, 20068, 262, 262, 288, 5411, 5104, 774, 9132, 2519, 1964, 1190, 38, 13221, 863, 12, 590, 16, 766, 16, 3096, 38, 13221, 11272, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3435, 1265, 4666, 1964, 12, 9984, 590, 16, 12446, 766, 16, 514, 1363, 262, 1216, 1860, 16, 16517, 288, 3639, 1635, 3096, 38, 13221, 273, 336, 8602, 38, 13221, 25074, 12, 590, 16, 2221, 6851, 18, 588, 5676, 7675, 588, 2519, 4597, 1435, 11272, 3639, 309, 261, 446, 480, 590, 18, 588, 1662, 12, 12492, 67, 9819, 972, 8355, 67, 38, 24846, 55, 67, 20068, 262, 262, 288, 5411, 5104, 774, 9132, 2519, 1964, 1190, 38, 13221, 863, 12, 590, 16, 766, 16, 3096, 38, 13221, 11272, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (javaTextTools.affectsBehavior(event))
if (configuration.affectsTextPresentation(event)) { configuration.handlePropertyChangeEvent(event);
JavaSourcePreviewerUpdater(final SourceViewer viewer, final JavaTextTools javaTextTools) { Assert.isNotNull(viewer); Assert.isNotNull(javaTextTools); final IPropertyChangeListener fontChangeListener= new IPropertyChangeListener() { /* * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(PreferenceConstants.EDITOR_TEXT_FONT)) { Font font= JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT); viewer.getTextWidget().setFont(font); } } }; final IPreferenceStore preferenceStore= javaTextTools.getPreferenceStore(); final IPropertyChangeListener propertyChangeListener= new IPropertyChangeListener() { /* * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent) */ public void propertyChange(PropertyChangeEvent event) { if (javaTextTools.affectsBehavior(event)) viewer.invalidateTextPresentation(); } }; viewer.getTextWidget().addDisposeListener(new DisposeListener() { /* * @see org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent) */ public void widgetDisposed(DisposeEvent e) { preferenceStore.removePropertyChangeListener(propertyChangeListener); JFaceResources.getFontRegistry().removeListener(fontChangeListener); } }); JFaceResources.getFontRegistry().addListener(fontChangeListener); preferenceStore.addPropertyChangeListener(propertyChangeListener); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/e2cabd1bf18c2d9a083f29548dc5e8055091f193/JavaSourcePreviewerUpdater.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaSourcePreviewerUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5852, 1830, 11124, 264, 15305, 12, 6385, 4998, 18415, 14157, 16, 727, 5110, 1528, 10348, 2252, 1528, 10348, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 25256, 1769, 202, 202, 8213, 18, 291, 5962, 12, 6290, 1528, 10348, 1769, 202, 202, 6385, 467, 1396, 15744, 3512, 15744, 33, 394, 467, 1396, 15744, 1435, 288, 1082, 202, 20308, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 78, 865, 18, 1367, 18, 45, 1396, 15744, 7, 4468, 3043, 12, 3341, 18, 20416, 18, 78, 865, 18, 1367, 18, 1396, 20930, 13, 9506, 1195, 1082, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 9506, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 9624, 2918, 18, 13208, 67, 5151, 67, 25221, 3719, 288, 6862, 202, 5711, 3512, 33, 804, 11824, 3805, 18, 588, 5711, 12, 9624, 2918, 18, 13208, 67, 5151, 67, 25221, 1769, 6862, 202, 25256, 18, 588, 1528, 4609, 7675, 542, 5711, 12, 5776, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 20451, 202, 202, 6385, 467, 9624, 2257, 11555, 2257, 33, 2252, 1528, 10348, 18, 588, 9624, 2257, 5621, 202, 202, 6385, 467, 1396, 15744, 1272, 15744, 33, 394, 467, 1396, 15744, 1435, 288, 1082, 202, 20308, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 78, 865, 18, 1367, 18, 45, 1396, 15744, 7, 4468, 3043, 12, 3341, 18, 20416, 18, 78, 865, 18, 1367, 18, 1396, 20930, 13, 9506, 1195, 1082, 202, 482, 918, 1272, 3043, 12, 1396, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5852, 1830, 11124, 264, 15305, 12, 6385, 4998, 18415, 14157, 16, 727, 5110, 1528, 10348, 2252, 1528, 10348, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 25256, 1769, 202, 202, 8213, 18, 291, 5962, 12, 6290, 1528, 10348, 1769, 202, 202, 6385, 467, 1396, 15744, 3512, 15744, 33, 394, 467, 1396, 15744, 1435, 288, 1082, 202, 20308, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 78, 865, 18, 1367, 18, 45, 1396, 15744, 7, 4468, 3043, 12, 3341, 18, 20416, 18, 78, 865, 18, 1367, 18, 1396, 20930, 13, 9506, 1195, 1082, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 9506, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 9624, 2918, 2 ]
public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); Individual ind; this.order = new Vector(); //sort first Vector lines = new Vector(); Hashtable sortHelp = new Hashtable(numLines-1,1.0f); long[] pos = new long[numLines-1]; lines.add(rawLines.get(0)); for (int k = 1; k < numLines; k++){ StringTokenizer st = new StringTokenizer((String) rawLines.get(k)); //strip off 1st 3 cols st.nextToken();st.nextToken();st.nextToken(); pos[k-1] = new Long(st.nextToken()).longValue(); sortHelp.put(new Long(pos[k-1]),rawLines.get(k)); } Arrays.sort(pos); for (int i = 0; i < pos.length; i++){ lines.add(sortHelp.get(new Long(pos[i]))); } //enumerate indivs StringTokenizer st = new StringTokenizer((String)lines.get(0), "\n\t\" \""); int numMetaColumns = 0; boolean doneMeta = false; while(!doneMeta && st.hasMoreTokens()){ String thisfield = st.nextToken(); numMetaColumns++; //so currently the first person ID always starts with NA (Coriell ID) but //todo: will this be true with AA samples etc? if (thisfield.startsWith("NA")){ doneMeta = true; } } numMetaColumns--; st = new StringTokenizer((String)lines.get(0), "\n\t\" \""); for (int i = 0; i < numMetaColumns; i++){ st.nextToken(); } StringTokenizer dt; while (st.hasMoreTokens()){ ind = new Individual(numLines); String name = st.nextToken(); String details = (String)hapMapTranslate.get(name); if (details == null){ throw new PedFileException("Hapmap data format error: " + name); } dt = new StringTokenizer(details, "\n\t\" \""); ind.setFamilyID(dt.nextToken().trim()); ind.setIndividualID(dt.nextToken().trim()); ind.setDadID(dt.nextToken().trim()); ind.setMomID(dt.nextToken().trim()); try { ind.setGender(Integer.parseInt(dt.nextToken().trim())); ind.setAffectedStatus(Integer.parseInt(dt.nextToken().trim())); }catch(NumberFormatException nfe) { throw new PedFileException("File error: invalid gender or affected status for indiv " + name); } //check if the family exists already in the Hashtable Family fam = (Family)this.families.get(ind.getFamilyID()); if(fam == null){ //it doesnt exist, so create a new Family object fam = new Family(ind.getFamilyID()); } fam.addMember(ind); this.families.put(ind.getFamilyID(),fam); String[] indFamID = new String[2]; indFamID[0] = ind.getFamilyID(); indFamID[1] = ind.getIndividualID(); this.order.add(ind); } //start at k=1 to skip header which we just processed above. hminfo = new String[numLines-1][]; for(int k=1;k<numLines;k++){ StringTokenizer tokenizer = new StringTokenizer((String)lines.get(k)); //reading the first line if(colNum < 0){ //only check column number count for the first line colNum = tokenizer.countTokens(); } if(colNum != tokenizer.countTokens()) { //this line has a different number of columns //should send some sort of error message //TODO: add something which stores number of markers for all lines and checks that they're consistent throw new PedFileException("Line number mismatch in input file. line " + (k+1)); } if(tokenizer.hasMoreTokens()){ hminfo[k-1] = new String[2]; for (int skip = 0; skip < numMetaColumns; skip++){ //meta-data crap String s = tokenizer.nextToken().trim(); //get marker name, chrom and pos if (skip == 0){ hminfo[k-1][0] = s; } if (skip == 2){ if (Chromosome.dataChrom != null){ if (!Chromosome.dataChrom.equals(s)){ throw new PedFileException("Hapmap file format error on line " + (k+1)+ ":\n There appear to be multiple chromosomes in the file."); } }else{ Chromosome.dataChrom = s; } } if (skip == 3){ hminfo[k-1][1] = s; } } int index = 0; while(tokenizer.hasMoreTokens()){ ind = (Individual)order.elementAt(index); String alleles = tokenizer.nextToken(); int allele1=0, allele2=0; if (alleles.substring(0,1).equals("A")){ allele1 = 1; }else if (alleles.substring(0,1).equals("C")){ allele1 = 2; }else if (alleles.substring(0,1).equals("G")){ allele1 = 3; }else if (alleles.substring(0,1).equals("T")){ allele1 = 4; } if (alleles.substring(1,2).equals("A")){ allele2 = 1; }else if (alleles.substring(1,2).equals("C")){ allele2 = 2; }else if (alleles.substring(1,2).equals("G")){ allele2 = 3; }else if (alleles.substring(1,2).equals("T")){ allele2 = 4; } byte[] markers = new byte[2]; markers[0] = (byte)allele1; markers[1]= (byte)allele2; ind.addMarker(markers); index++; } } } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/d155bc2e22173f6914fe5f965208a4cd71c64c9c/PedFile.java/clean/edu/mit/wi/pedfile/PedFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1109, 44, 438, 863, 12, 5018, 1831, 5763, 13, 1216, 453, 329, 812, 503, 288, 565, 509, 645, 2578, 273, 300, 21, 31, 565, 509, 818, 5763, 273, 1831, 5763, 18, 1467, 5621, 565, 24147, 1547, 31, 565, 333, 18, 1019, 273, 394, 5589, 5621, 565, 368, 3804, 1122, 565, 5589, 2362, 273, 394, 5589, 5621, 565, 18559, 1524, 6696, 273, 394, 18559, 12, 2107, 5763, 17, 21, 16, 21, 18, 20, 74, 1769, 565, 1525, 8526, 949, 273, 394, 1525, 63, 2107, 5763, 17, 21, 15533, 565, 2362, 18, 1289, 12, 1899, 5763, 18, 588, 12, 20, 10019, 565, 364, 261, 474, 417, 273, 404, 31, 417, 411, 818, 5763, 31, 417, 27245, 95, 1377, 16370, 384, 273, 394, 16370, 12443, 780, 13, 1831, 5763, 18, 588, 12, 79, 10019, 1377, 368, 6406, 3397, 404, 334, 890, 5347, 1377, 384, 18, 4285, 1345, 5621, 334, 18, 4285, 1345, 5621, 334, 18, 4285, 1345, 5621, 1377, 949, 63, 79, 17, 21, 65, 273, 394, 3407, 12, 334, 18, 4285, 1345, 1435, 2934, 5748, 620, 5621, 1377, 1524, 6696, 18, 458, 12, 2704, 3407, 12, 917, 63, 79, 17, 21, 65, 3631, 1899, 5763, 18, 588, 12, 79, 10019, 565, 289, 565, 5647, 18, 3804, 12, 917, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 949, 18, 2469, 31, 277, 27245, 95, 1377, 2362, 18, 1289, 12, 3804, 6696, 18, 588, 12, 2704, 3407, 12, 917, 63, 77, 22643, 1769, 565, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1109, 44, 438, 863, 12, 5018, 1831, 5763, 13, 1216, 453, 329, 812, 503, 288, 565, 509, 645, 2578, 273, 300, 21, 31, 565, 509, 818, 5763, 273, 1831, 5763, 18, 1467, 5621, 565, 24147, 1547, 31, 565, 333, 18, 1019, 273, 394, 5589, 5621, 565, 368, 3804, 1122, 565, 5589, 2362, 273, 394, 5589, 5621, 565, 18559, 1524, 6696, 273, 394, 18559, 12, 2107, 5763, 17, 21, 16, 21, 18, 20, 74, 1769, 565, 1525, 8526, 949, 273, 394, 1525, 63, 2107, 5763, 17, 21, 15533, 565, 2362, 18, 1289, 12, 1899, 5763, 18, 588, 12, 20, 10019, 565, 364, 261, 474, 417, 273, 404, 31, 417, 411, 818, 5763, 31, 417, 27245, 95, 1377, 2 ]
assertEquals( Position.ABOVE_LITERAL, Position.get("Above") ); assertEquals( Position.BELOW_LITERAL, Position.get("Below") ); assertEquals( Position.LEFT_LITERAL, Position.get("Left") ); assertEquals( Position.RIGHT_LITERAL, Position.get("Right") ); assertEquals( Position.INSIDE_LITERAL, Position.get("Inside") ); assertEquals( Position.OUTSIDE_LITERAL, Position.get("Outside") ); assertNull(Position.get("No Match") );
assertEquals( Position.ABOVE_LITERAL, Position.get("Above") ); assertEquals( Position.BELOW_LITERAL, Position.get("Below") ); assertEquals( Position.LEFT_LITERAL, Position.get("Left") ); assertEquals( Position.RIGHT_LITERAL, Position.get("Right") ); assertEquals( Position.INSIDE_LITERAL, Position.get("Inside") ); assertEquals( Position.OUTSIDE_LITERAL, Position.get("Outside") ); assertNull(Position.get("No Match") );
public void testGet() { assertEquals( Position.ABOVE_LITERAL, Position.get(Position.ABOVE) ); assertEquals( Position.BELOW_LITERAL, Position.get(Position.BELOW) ); assertEquals( Position.LEFT_LITERAL, Position.get(Position.LEFT) ); assertEquals( Position.RIGHT_LITERAL, Position.get(Position.RIGHT) ); assertEquals( Position.INSIDE_LITERAL, Position.get(4) ); assertEquals( Position.OUTSIDE_LITERAL, Position.get(5) ); assertNull(Position.get("6") ); assertEquals( Position.ABOVE_LITERAL, Position.get("Above") ); assertEquals( Position.BELOW_LITERAL, Position.get("Below") ); assertEquals( Position.LEFT_LITERAL, Position.get("Left") ); assertEquals( Position.RIGHT_LITERAL, Position.get("Right") ); assertEquals( Position.INSIDE_LITERAL, Position.get("Inside") ); assertEquals( Position.OUTSIDE_LITERAL, Position.get("Outside") ); assertNull(Position.get("No Match") ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e757044daa53d502ecf969354d3f5ec94aa76fd1/PositionTest.java/buggy/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/model/attribute/PositionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 202, 202, 11231, 8867, 12, 11010, 18, 2090, 51, 3412, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 2090, 51, 3412, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 5948, 4130, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 5948, 4130, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 10066, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 10066, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 11847, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 11847, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 706, 26498, 67, 23225, 16, 11010, 18, 588, 12, 24, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 5069, 26498, 67, 23225, 16, 11010, 18, 588, 12, 25, 13, 11272, 202, 202, 11231, 2041, 12, 2555, 18, 588, 2932, 26, 7923, 11272, 9506, 202, 11231, 8867, 12, 11010, 18, 2090, 51, 3412, 67, 23225, 16, 11010, 18, 588, 2932, 25477, 7923, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 5948, 4130, 67, 23225, 16, 11010, 18, 588, 2932, 28730, 7923, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 10066, 67, 23225, 16, 11010, 18, 588, 2932, 3910, 7923, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 11847, 67, 23225, 16, 11010, 18, 588, 2932, 4726, 7923, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 706, 26498, 67, 23225, 16, 11010, 18, 588, 2932, 18619, 7923, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 202, 202, 11231, 8867, 12, 11010, 18, 2090, 51, 3412, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 2090, 51, 3412, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 5948, 4130, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 5948, 4130, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 10066, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 10066, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 11847, 67, 23225, 16, 11010, 18, 588, 12, 2555, 18, 11847, 13, 11272, 202, 202, 11231, 8867, 12, 11010, 18, 706, 26498, 67, 23225, 16, 11010, 18, 588, 12, 24, 13, 11272, 202, 202, 11231, 8867, 2 ]
System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline;
System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline;
protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; int newbufline[] = new int[bufsize + 2048]; int newbufcolumn[] = new int[bufsize + 2048]; try { if (wrapAround) { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); System.arraycopy( buffer, 0, newbuffer, bufsize - tokenBegin, bufpos ); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos += (bufsize - tokenBegin)); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos -= tokenBegin); } } catch (Throwable t) { throw new Error(t.getMessage()); } bufsize += 2048; available = bufsize; tokenBegin = 0; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/45c7db5b9c3d703ed4fabee51cebb349a8ffec67/SimpleCharStream.java/buggy/aspectwerkz2/src/main/org/codehaus/aspectwerkz/definition/expression/ast/SimpleCharStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16429, 10642, 12, 6494, 2193, 30022, 13, 288, 3639, 1149, 8526, 394, 4106, 273, 394, 1149, 63, 4385, 1467, 397, 21907, 15533, 3639, 509, 394, 4385, 1369, 8526, 273, 394, 509, 63, 4385, 1467, 397, 21907, 15533, 3639, 509, 394, 4385, 2827, 8526, 273, 394, 509, 63, 4385, 1467, 397, 21907, 15533, 3639, 775, 288, 5411, 309, 261, 4113, 30022, 13, 288, 7734, 2332, 18, 1126, 3530, 12, 4106, 16, 1147, 8149, 16, 394, 4106, 16, 374, 16, 1681, 1467, 300, 1147, 8149, 1769, 7734, 2332, 18, 1126, 3530, 12, 13491, 1613, 16, 374, 16, 394, 4106, 16, 13491, 1681, 1467, 300, 1147, 8149, 16, 1681, 917, 7734, 11272, 7734, 1613, 273, 394, 4106, 31, 7734, 2332, 18, 1126, 3530, 12, 4385, 1369, 16, 1147, 8149, 16, 394, 4385, 1369, 16, 374, 16, 1681, 1467, 300, 1147, 8149, 1769, 7734, 2332, 18, 1126, 3530, 12, 4385, 1369, 16, 374, 16, 394, 4385, 1369, 16, 1681, 1467, 300, 1147, 8149, 16, 1681, 917, 1769, 7734, 1681, 1369, 273, 394, 4385, 1369, 31, 7734, 2332, 18, 1126, 3530, 12, 4385, 2827, 16, 1147, 8149, 16, 394, 4385, 2827, 16, 374, 16, 1681, 1467, 300, 1147, 8149, 1769, 7734, 2332, 18, 1126, 3530, 12, 4385, 2827, 16, 374, 16, 394, 4385, 2827, 16, 1681, 1467, 300, 1147, 8149, 16, 1681, 917, 1769, 7734, 1681, 2827, 273, 394, 4385, 2827, 31, 7734, 943, 2134, 2156, 3866, 273, 261, 4385, 917, 1011, 261, 4385, 1467, 300, 1147, 8149, 10019, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16429, 10642, 12, 6494, 2193, 30022, 13, 288, 3639, 1149, 8526, 394, 4106, 273, 394, 1149, 63, 4385, 1467, 397, 21907, 15533, 3639, 509, 394, 4385, 1369, 8526, 273, 394, 509, 63, 4385, 1467, 397, 21907, 15533, 3639, 509, 394, 4385, 2827, 8526, 273, 394, 509, 63, 4385, 1467, 397, 21907, 15533, 3639, 775, 288, 5411, 309, 261, 4113, 30022, 13, 288, 7734, 2332, 18, 1126, 3530, 12, 4106, 16, 1147, 8149, 16, 394, 4106, 16, 374, 16, 1681, 1467, 300, 1147, 8149, 1769, 7734, 2332, 18, 1126, 3530, 12, 13491, 1613, 16, 374, 16, 394, 4106, 16, 13491, 1681, 1467, 300, 1147, 8149, 16, 1681, 917, 7734, 11272, 7734, 1613, 273, 394, 4106, 31, 7734, 2 ]
procName = null;
private void cursorCreate(String sql, String procName, ParamInfo[] parameters) throws SQLException { TdsCore tds = statement.getTds(); int prepareSql = statement.connection.getPrepareSql(); int scrollOpt; int ccOpt; // // Select the correct type of Server side cursor to // match the scroll and concurrency options. // switch (resultSetType) { case TYPE_SCROLL_INSENSITIVE: scrollOpt = CURSOR_TYPE_STATIC; break; case TYPE_SCROLL_SENSITIVE: scrollOpt = CURSOR_TYPE_KEYSET; break; case TYPE_FORWARD_ONLY: default: scrollOpt = CURSOR_TYPE_FORWARD; break; } switch (concurrency) { case CONCUR_READ_ONLY: default: ccOpt = CURSOR_CONCUR_READ_ONLY; break; case CONCUR_UPDATABLE: ccOpt = CURSOR_CONCUR_SCROLL_LOCKS; break; } // // Simplify future tests for parameters // if (parameters != null && parameters.length == 0) { parameters = null; } // // If there are no parameters we will opt for // the sp_cursoropen option only. // if (parameters == null) { prepareSql = TdsCore.UNPREPARED; } // // SQL 6.5 does not support stored procs (with params) in the sp_cursor call // will need to substitute any parameter values into the SQL. // if (tds.getTdsVersion() == Driver.TDS42) { prepareSql = TdsCore.UNPREPARED; if (parameters != null) { procName = null; } } // // If we are running in unprepare mode and there are parameters // substitute these into the SQL statement now. // if (parameters != null && prepareSql == TdsCore.UNPREPARED) { sql = Support.substituteParameters(sql, parameters, tds.getTdsVersion()); parameters = null; } // // For most prepare modes we need to substitute parameter // names for the ? markers. // if (parameters != null) { if (procName == null || !procName.startsWith("#jtds")) { sql = Support.substituteParamMarkers(sql, parameters); } } // // There are generally three situations in which procName is not null: // 1. Running in prepareSQL=1 and contains a temp proc name e.g. #jtds00001 // in which case we need to generate an SQL statement exec #jtds... // 2. Running in prepareSQL=4 and contains an existing statement handle. // 3. CallableStatement in which case the SQL string has a valid exec // statement and we can ignore procName. // if (procName != null) { if (procName.startsWith("#jtds")) { StringBuffer buf = new StringBuffer(64); buf.append("EXEC ").append(procName).append(' '); for (int i = 0; parameters != null && i < parameters.length; i++) { if (i != 0) { buf.append(','); } if (parameters[i].name != null) { buf.append(parameters[i].name); } else { buf.append("@P").append(i); } } sql = buf.toString(); } else // Prepared Statement Handle? if (TdsCore.isPreparedProcedureName(procName)) { // // At present procName is set to the value obtained by // the connection.prepareSQL() call in JtdsPreparedStatement. // Ideally we need to find a way eliminate the redundant prepare // for PreparedStatements that are going to open cursors. // This handle was obtained using sp_prepare not sp_cursorprepare // so I am going to ignore it for now until Brian has finished the // prepared statement logic. //// try {// prepStmtHandle = new Integer(procName);// } catch (NumberFormatException e) {// throw new IllegalStateException(// "Invalid prepared statement handle: " +// procName);// } } procName = null; } // // If using sp_cursoropen need to set a flag on scrollOpt. // The 0x1000 tells the server that there is a parameter // definition and user parameters present. If this flag is // not set the driver will ignore the additional parameters. // if (parameters != null) { scrollOpt |= 0x1000; } // // Create parameter objects // // Setup scroll options parameter // ParamInfo pScrollOpt = new ParamInfo(); pScrollOpt.isSet = true; pScrollOpt.jdbcType = Types.INTEGER; pScrollOpt.value = new Integer(scrollOpt); pScrollOpt.isOutput = true; // // Setup concurrency options parameter // ParamInfo pConCurOpt = new ParamInfo(); pConCurOpt.isSet = true; pConCurOpt.jdbcType = Types.INTEGER; pConCurOpt.value = new Integer(ccOpt); pConCurOpt.isOutput = true; // // Setup number of rows parameter // ParamInfo pRowCount = new ParamInfo(); pRowCount.isSet = true; pRowCount.jdbcType = Types.INTEGER; pRowCount.isOutput = true; // // Setup cursor handle parameter // ParamInfo pCursor = new ParamInfo(); pCursor.isSet = true; pCursor.jdbcType = Types.INTEGER; pCursor.isOutput = true; // // Setup statement handle param // ParamInfo pStmtHand = null; if (prepareSql == TdsCore.PREPEXEC || prepareSql == TdsCore.PREPARE) { pStmtHand = new ParamInfo(); pStmtHand.isSet = true; pStmtHand.jdbcType = Types.INTEGER; pStmtHand.value = prepStmtHandle; pStmtHand.isOutput = true; } // // Setup parameter definitions parameter // ParamInfo pParamDef = null; if (parameters != null ) { // Parameter declarations for (int i = 0; i < parameters.length; i++) { TdsData.getNativeType(statement.connection, parameters[i]); } pParamDef = new ParamInfo(); pParamDef.isSet = true; pParamDef.jdbcType = Types.LONGVARCHAR; pParamDef.value = Support.getParameterDefinitions(parameters); pParamDef.length = ((String)pParamDef.value).length(); pParamDef.isUnicode = true; } // // Setup SQL statement parameter // ParamInfo pSQL = null; pSQL = new ParamInfo(); pSQL.isSet = true; pSQL.jdbcType = Types.LONGVARCHAR; pSQL.value = sql; pSQL.length = sql.length(); pSQL.isUnicode = true; // // If using the prepare/execute model, now need to pepare SQL // if (prepareSql == TdsCore.PREPARE && prepStmtHandle == null) { ParamInfo params[] = new ParamInfo[6]; // Setup statement handle param params[0] = pStmtHand; // Setup parameter definitions params[1] = pParamDef; // Setup statement param params[2] = pSQL; // Setup flag param params[3] = new ParamInfo(); params[3].isSet = true; params[3].jdbcType = Types.INTEGER; params[3].value = new Integer(1); // Setup scroll options params[4] = pScrollOpt; // Setup concurrency options params[5] = pConCurOpt; columns = null; // Will be populated if preparing a select // Use sp_cursorprepare approach tds.executeSQL(null, "sp_cursorprepare", params, false, 0, 0); tds.clearResponseQueue(); // columns will now hold meta data for select statements prepStmtHandle = (Integer) pStmtHand.value; if (prepStmtHandle == null) { // Some types of statements cannot be prepared prepareSql = TdsCore.UNPREPARED; if (parameters != null) { // Ensure that sp_cursoropen will recognise user params pScrollOpt.value = new Integer(((Integer)pScrollOpt.value).intValue() | 0x1000); } } } // // OK now open the Cursor // if (prepareSql == TdsCore.PREPARE && prepStmtHandle != null) { // Use sp_cursorexecute approach ParamInfo[] params = new ParamInfo[5 + parameters.length]; System.arraycopy(parameters, 0, params, 5, parameters.length); // Setup statement handle param pStmtHand.isOutput = false; params[0] = pStmtHand; // Setup cursor handle param params[1] = pCursor; // Setup scroll options (mask off parameter flag) pScrollOpt.value = new Integer(((Integer)pScrollOpt.value).intValue() & 0XFF); params[2] = pScrollOpt; // Setup concurrency options params[3] = pConCurOpt; // Setup numRows parameter params[4] = pRowCount; parameters = params; procName = "sp_cursorexecute"; } else if (prepareSql == TdsCore.PREPEXEC) { // Use sp_cursorprepexec approach ParamInfo[] params = new ParamInfo[7 + parameters.length]; System.arraycopy(parameters, 0, params, 7, parameters.length); // Setup statement handle param params[0] = pStmtHand; // Setup cursor handle param params[1] = pCursor; // Setup parameter definitions params[2] = pParamDef; // Setup statement param params[3] = pSQL; // Setup scroll options params[4] = pScrollOpt; // Setup concurrency options params[5] = pConCurOpt; // Setup numRows parameter params[6] = pRowCount; parameters = params; procName = "sp_cursorprepexec"; } else { // Use sp_cursoropen approach ParamInfo[] params; if (parameters == null) { params = new ParamInfo[5]; } else { params = new ParamInfo[6 + parameters.length]; System.arraycopy(parameters, 0, params, 6, parameters.length); params[5] = pParamDef; } // Setup cursor handle param params[0] = pCursor; // Setup statement param params[1] = pSQL; // Setup scroll options params[2] = pScrollOpt; // Setup concurrency options params[3] = pConCurOpt; // Setup numRows parameter params[4] = pRowCount; parameters = params; procName = "sp_cursoropen"; } retVal = null; tds.executeSQL(null, procName, parameters, false, statement.getQueryTimeout(), 0); while (!tds.getMoreResults() && !tds.isEndOfResponse()); if (tds.isResultSet()) { this.columns = copyInfo(tds.getColumns()); this.columnCount = getColumnCount(columns); } else { statement.getMessages().addException(new SQLException( Messages.get("error.statement.noresult"), "24000")); } tds.clearResponseQueue(); statement.messages.checkErrors(); retVal = tds.getReturnStatus(); int actualScroll; int actualCc; // // Retrieve values of output parameters // cursorHandle = (Integer) pCursor.value; actualScroll = ((Integer)pScrollOpt.value).intValue(); actualCc = ((Integer)pConCurOpt.value).intValue(); rowsInResult = ((Integer)pRowCount.value).intValue(); if (prepareSql == TdsCore.PREPEXEC) { prepStmtHandle = (Integer)pStmtHand.value; } // // Check for downgrade of scroll or concurrency options // if ((actualScroll != (scrollOpt & 0xFFF)) || (actualCc != ccOpt)) { if (actualScroll != scrollOpt) { switch (actualScroll) { case CURSOR_TYPE_FORWARD: this.resultSetType = TYPE_FORWARD_ONLY; break; case CURSOR_TYPE_STATIC: this.resultSetType = TYPE_SCROLL_INSENSITIVE; break; case CURSOR_TYPE_DYNAMIC: case CURSOR_TYPE_KEYSET: this.resultSetType = TYPE_SCROLL_SENSITIVE; break; default: statement.getMessages().addWarning(new SQLWarning( Messages.get("warning.cursortype", Integer.toString(actualScroll)), "01000")); } } if (actualCc != ccOpt) { switch (actualCc) { case CURSOR_CONCUR_READ_ONLY: concurrency = CONCUR_READ_ONLY; break; case CURSOR_CONCUR_SCROLL_LOCKS: case CURSOR_CONCUR_OPTIMISTIC: concurrency = CONCUR_UPDATABLE; break; default: statement.getMessages().addWarning(new SQLWarning( Messages.get("warning.concurrtype", Integer.toString(actualCc)), "01000")); } } // SAfe This warning goes to the Statement, not the ResultSet statement.addWarning(new SQLWarning(Messages.get( "warning.cursordowngraded", resultSetType + "/" + concurrency), "01000")); } if ((retVal == null) || (retVal.intValue() != 0)) { throw new SQLException(Messages.get("error.resultset.openfail"), "24000"); } // // TODO: Save the value of the prepStmtHandle for reuse later // }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/20907e0ec46ab599f308d5817ddd9ac7e34a094a/MSCursorResultSet.java/clean/src/main/net/sourceforge/jtds/jdbc/MSCursorResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3347, 1684, 12, 780, 1847, 16, 17311, 514, 5418, 461, 16, 17311, 3014, 966, 8526, 1472, 13, 565, 1216, 6483, 288, 3639, 399, 2377, 4670, 268, 2377, 273, 3021, 18, 588, 56, 2377, 5621, 3639, 509, 2911, 5101, 273, 3021, 18, 4071, 18, 588, 7543, 5101, 5621, 3639, 509, 5532, 6179, 31, 3639, 509, 4946, 6179, 31, 3639, 368, 3639, 368, 6766, 326, 3434, 618, 434, 3224, 4889, 3347, 358, 3639, 368, 845, 326, 5532, 471, 17752, 702, 18, 3639, 368, 3639, 1620, 261, 2088, 25181, 13, 288, 5411, 648, 3463, 67, 2312, 14555, 67, 706, 26753, 16325, 30, 7734, 5532, 6179, 273, 4706, 55, 916, 67, 2399, 67, 22741, 31, 7734, 898, 31, 5411, 648, 3463, 67, 2312, 14555, 67, 26753, 16325, 30, 7734, 5532, 6179, 273, 4706, 55, 916, 67, 2399, 67, 3297, 4043, 31, 7734, 898, 31, 5411, 648, 3463, 67, 7473, 21343, 67, 10857, 30, 5411, 805, 30, 7734, 5532, 6179, 273, 4706, 55, 916, 67, 2399, 67, 7473, 21343, 31, 7734, 898, 31, 3639, 289, 3639, 1620, 261, 591, 7095, 13, 288, 5411, 648, 3492, 7509, 67, 6949, 67, 10857, 30, 5411, 805, 30, 7734, 4946, 6179, 273, 4706, 55, 916, 67, 2248, 7509, 67, 6949, 67, 10857, 31, 7734, 898, 31, 5411, 648, 3492, 7509, 67, 3079, 11102, 2782, 30, 7734, 4946, 6179, 273, 4706, 55, 916, 67, 2248, 7509, 67, 2312, 14555, 67, 6589, 55, 31, 7734, 898, 31, 3639, 289, 3639, 368, 3639, 368, 9587, 412, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3347, 1684, 12, 780, 1847, 16, 17311, 514, 5418, 461, 16, 17311, 3014, 966, 8526, 1472, 13, 565, 1216, 6483, 288, 3639, 399, 2377, 4670, 268, 2377, 273, 3021, 18, 588, 56, 2377, 5621, 3639, 509, 2911, 5101, 273, 3021, 18, 4071, 18, 588, 7543, 5101, 5621, 3639, 509, 5532, 6179, 31, 3639, 509, 4946, 6179, 31, 3639, 368, 3639, 368, 6766, 326, 3434, 618, 434, 3224, 4889, 3347, 358, 3639, 368, 845, 326, 5532, 471, 17752, 702, 18, 3639, 368, 3639, 1620, 261, 2088, 25181, 13, 288, 5411, 648, 3463, 67, 2312, 14555, 67, 706, 26753, 16325, 30, 7734, 5532, 6179, 273, 4706, 55, 916, 67, 2399, 67, 22741, 31, 7734, 898, 31, 5411, 648, 2 ]
public String initRow( Object obj, int viewIndex, int listIndex ) { this.obj = obj; this.viewIndex = viewIndex; this.listIndex = listIndex; return ""; }
public String initRow(Object obj, int viewIndex, int listIndex) { this.obj = obj; this.viewIndex = viewIndex; this.listIndex = listIndex; return ""; }
public String initRow( Object obj, int viewIndex, int listIndex ) { this.obj = obj; this.viewIndex = viewIndex; this.listIndex = listIndex; return ""; }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/08c9646d52e50d1acc1b275f065d301659beba20/Decorator.java/buggy/_OLD/displaytag08/src/org/apache/taglibs/display/Decorator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 1208, 1999, 12, 1033, 1081, 16, 509, 1476, 1016, 16, 509, 666, 1016, 262, 288, 1377, 333, 18, 2603, 273, 1081, 31, 1377, 333, 18, 1945, 1016, 273, 1476, 1016, 31, 1377, 333, 18, 1098, 1016, 273, 666, 1016, 31, 1377, 327, 1408, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 1208, 1999, 12, 1033, 1081, 16, 509, 1476, 1016, 16, 509, 666, 1016, 262, 288, 1377, 333, 18, 2603, 273, 1081, 31, 1377, 333, 18, 1945, 1016, 273, 1476, 1016, 31, 1377, 333, 18, 1098, 1016, 273, 666, 1016, 31, 1377, 327, 1408, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]