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
XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() {
XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getInstanceDocument(), new XFormsUtils.InstanceWalker() {
public void doRevalidate(final PipelineContext pipelineContext) { if (instances != null) { // Clear validation state for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { if (localInstanceData != null) { localInstanceData.clearValidationState(); } } }, true); } // Run validation applySchemasIfNeeded(); applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleValidationBind(pipelineContext, modelBind, documentWrapper, this); } }); } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/4b56f54bf2c5f3e53836145b1b1968a0907dab29/XFormsModel.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 426, 5662, 12, 6385, 13671, 1042, 5873, 1042, 13, 288, 3639, 309, 261, 10162, 480, 446, 13, 288, 5411, 368, 10121, 3379, 919, 5411, 364, 261, 3198, 277, 273, 3884, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 1139, 18529, 1989, 18, 18793, 1442, 751, 12443, 12, 60, 18529, 1442, 13, 277, 18, 4285, 1435, 2934, 588, 1442, 2519, 9334, 394, 1139, 18529, 1989, 18, 1442, 16246, 1435, 288, 10792, 1071, 918, 5442, 12, 907, 756, 16, 5180, 751, 1191, 1442, 751, 16, 5180, 751, 12078, 1442, 751, 13, 288, 13491, 309, 261, 3729, 1442, 751, 480, 446, 13, 288, 18701, 1191, 1442, 751, 18, 8507, 4354, 1119, 5621, 13491, 289, 10792, 289, 7734, 19879, 638, 1769, 5411, 289, 5411, 368, 1939, 3379, 5411, 2230, 16749, 18299, 5621, 5411, 2230, 17856, 12, 2704, 6936, 9709, 1435, 288, 7734, 1071, 918, 2230, 3357, 12, 1488, 3357, 938, 3357, 16, 4319, 3611, 1668, 3611, 13, 288, 10792, 1640, 4354, 3357, 12, 14511, 1042, 16, 938, 3357, 16, 1668, 3611, 16, 333, 1769, 7734, 289, 5411, 15549, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 426, 5662, 12, 6385, 13671, 1042, 5873, 1042, 13, 288, 3639, 309, 261, 10162, 480, 446, 13, 288, 5411, 368, 10121, 3379, 919, 5411, 364, 261, 3198, 277, 273, 3884, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 1139, 18529, 1989, 18, 18793, 1442, 751, 12443, 12, 60, 18529, 1442, 13, 277, 18, 4285, 1435, 2934, 588, 1442, 2519, 9334, 394, 1139, 18529, 1989, 18, 1442, 16246, 1435, 288, 10792, 1071, 918, 5442, 12, 907, 756, 16, 5180, 751, 1191, 1442, 751, 16, 5180, 751, 12078, 1442, 751, 13, 288, 13491, 309, 261, 3729, 1442, 751, 480, 446, 13, 288, 18701, 1191, 1442, 751, 18, 8507, 4354, 1119, 5621, 13491, 289, 10792, 2 ]
gd.verticalSpan = 8;
gd.heightHint = 44;
private void createTextSection(Composite parent) { Composite textContainer = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.marginHeight = layout.marginWidth = 0; textContainer.setLayout(layout); textContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = new Label(textContainer, SWT.NONE); label.setText(PDERuntimePlugin.getResourceString("EventDetailsDialog.date")); //$NON-NLS-1$ dateLabel = new Label(textContainer, SWT.NULL); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; dateLabel.setLayoutData(gd); label = new Label(textContainer, SWT.NONE); label.setText(PDERuntimePlugin.getResourceString("EventDetailsDialog.severity")); //$NON-NLS-1$ severityImageLabel = new Label(textContainer, SWT.NULL); severityLabel = new Label(textContainer, SWT.NULL); gd = new GridData(GridData.FILL_HORIZONTAL); severityLabel.setLayoutData(gd); label = new Label(textContainer, SWT.NONE); label.setText(PDERuntimePlugin.getResourceString("EventDetailsDialog.message")); //$NON-NLS-1$ gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); label.setLayoutData(gd); msgText = new Text(textContainer, SWT.MULTI | SWT.V_SCROLL | SWT.WRAP | SWT.BORDER); msgText.setEditable(false); gd = new GridData(GridData.FILL_BOTH | GridData.VERTICAL_ALIGN_BEGINNING | GridData.GRAB_VERTICAL); gd.horizontalSpan = 2; gd.verticalSpan = 8; gd.grabExcessVerticalSpace = true; msgText.setLayoutData(gd); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/585327f87a14ee433b9ef1406602323bbdbbc13f/EventDetailsDialog.java/buggy/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/EventDetailsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1528, 5285, 12, 9400, 982, 13, 288, 202, 202, 9400, 977, 2170, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 10107, 2686, 273, 3511, 18, 10107, 2384, 273, 374, 31, 202, 202, 955, 2170, 18, 542, 3744, 12, 6741, 1769, 202, 202, 955, 2170, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 2224, 1433, 273, 394, 5287, 12, 955, 2170, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1925, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 18, 588, 1420, 780, 2932, 28487, 6353, 18, 712, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 712, 2224, 273, 394, 5287, 12, 955, 2170, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 1769, 202, 202, 19016, 18, 18396, 6952, 273, 576, 31, 202, 202, 712, 2224, 18, 542, 3744, 751, 12, 19016, 1769, 202, 202, 1925, 273, 394, 5287, 12, 955, 2170, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1925, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 18, 588, 1420, 780, 2932, 28487, 6353, 18, 27341, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 27341, 2040, 2224, 273, 394, 5287, 12, 955, 2170, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1528, 5285, 12, 9400, 982, 13, 288, 202, 202, 9400, 977, 2170, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 10107, 2686, 273, 3511, 18, 10107, 2384, 273, 374, 31, 202, 202, 955, 2170, 18, 542, 3744, 12, 6741, 1769, 202, 202, 955, 2170, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 2224, 1433, 273, 394, 5287, 12, 955, 2170, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1925, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 2 ]
return handler.readChunkDescDB (file, db);
if (!handler.readChunkDescDB (file, db)) throw new IOException ("Protocol-specific parser failed.");
public static boolean readChunkDescDB (File file, ChunkDescDB db, int handler_type) throws FileNotFoundException { ConfigIOHandler handler = null; if (handler_type == DEFAULT || handler_type == GUESS) { try { FileInputStream f = new FileInputStream (file); int ch = f.read(); if (ch == '<') handler = getHandler (XML); else handler = getHandler (STANDARD); } catch (IOException e) { return false; } } else handler = getHandler (handler_type); if (handler == null) return false; return handler.readChunkDescDB (file, db); }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/70e1650ce82970da75c0b7eca26c7dab47c05c00/ConfigIO.java/buggy/modules/jackal/config/org/vrjuggler/jccl/config/ConfigIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 855, 5579, 4217, 2290, 261, 812, 585, 16, 13021, 4217, 2290, 1319, 16, 509, 1838, 67, 723, 13, 1216, 13707, 288, 3639, 1903, 4294, 1503, 1838, 273, 446, 31, 3639, 309, 261, 4176, 67, 723, 422, 3331, 747, 1838, 67, 723, 422, 611, 1821, 1260, 13, 288, 5411, 775, 288, 7734, 11907, 284, 273, 394, 11907, 261, 768, 1769, 7734, 509, 462, 273, 284, 18, 896, 5621, 7734, 309, 261, 343, 422, 2368, 6134, 10792, 1838, 273, 18945, 261, 4201, 1769, 7734, 469, 10792, 1838, 273, 18945, 261, 882, 18264, 1769, 5411, 289, 5411, 1044, 261, 14106, 425, 13, 288, 7734, 327, 629, 31, 5411, 289, 3639, 289, 3639, 469, 5411, 1838, 273, 18945, 261, 4176, 67, 723, 1769, 3639, 309, 261, 4176, 422, 446, 13, 5411, 327, 629, 31, 3639, 309, 16051, 4176, 18, 896, 5579, 4217, 2290, 261, 768, 16, 1319, 3719, 604, 394, 1860, 7566, 5752, 17, 12524, 2082, 2535, 1199, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 855, 5579, 4217, 2290, 261, 812, 585, 16, 13021, 4217, 2290, 1319, 16, 509, 1838, 67, 723, 13, 1216, 13707, 288, 3639, 1903, 4294, 1503, 1838, 273, 446, 31, 3639, 309, 261, 4176, 67, 723, 422, 3331, 747, 1838, 67, 723, 422, 611, 1821, 1260, 13, 288, 5411, 775, 288, 7734, 11907, 284, 273, 394, 11907, 261, 768, 1769, 7734, 509, 462, 273, 284, 18, 896, 5621, 7734, 309, 261, 343, 422, 2368, 6134, 10792, 1838, 273, 18945, 261, 4201, 1769, 7734, 469, 10792, 1838, 273, 18945, 261, 882, 18264, 1769, 5411, 289, 5411, 1044, 261, 14106, 425, 13, 288, 7734, 327, 629, 31, 5411, 289, 3639, 289, 3639, 469, 5411, 1838, 273, 18945, 261, 2 ]
nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position() << 2);
long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapControlPointsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position() << 2, function_pointer);
public static void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, FloatBuffer pPoints) { BufferChecks.checkDirect(pPoints); nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position() << 2); }
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/34f4e7ae56bc58e471c8c83a1f87a76a5e81ea12/NVEvaluators.java/clean/src/java/org/lwjgl/opengl/NVEvaluators.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 863, 3367, 5636, 11679, 12, 474, 1018, 16, 509, 770, 16, 509, 618, 16, 509, 584, 313, 831, 16, 509, 331, 27937, 16, 509, 582, 1019, 16, 509, 331, 1019, 16, 1250, 12456, 16, 5450, 1892, 293, 5636, 13, 288, 202, 202, 1892, 4081, 18, 1893, 5368, 12, 84, 5636, 1769, 202, 202, 3368, 80, 863, 3367, 5636, 11679, 12, 3299, 16, 770, 16, 618, 16, 584, 313, 831, 16, 331, 27937, 16, 582, 1019, 16, 331, 1019, 16, 12456, 16, 293, 5636, 16, 293, 5636, 18, 3276, 1435, 2296, 576, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 863, 3367, 5636, 11679, 12, 474, 1018, 16, 509, 770, 16, 509, 618, 16, 509, 584, 313, 831, 16, 509, 331, 27937, 16, 509, 582, 1019, 16, 509, 331, 1019, 16, 1250, 12456, 16, 5450, 1892, 293, 5636, 13, 288, 202, 202, 1892, 4081, 18, 1893, 5368, 12, 84, 5636, 1769, 202, 202, 3368, 80, 863, 3367, 5636, 11679, 12, 3299, 16, 770, 16, 618, 16, 584, 313, 831, 16, 331, 27937, 16, 582, 1019, 16, 331, 1019, 16, 12456, 16, 293, 5636, 16, 293, 5636, 18, 3276, 1435, 2296, 576, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
EnvironmentService env_service = new EnvironmentServiceProxy(); base_path = env_service.expandEnvVars(base_path); wand_path = env_service.expandEnvVars(wand_path);
EnvironmentService env_service = new EnvironmentServiceProxy(); base_path = env_service.expandEnvVars(base_path); wand_path = env_service.expandEnvVars(wand_path);
public void copySimFilesToContext() { try{ // Set the paths to the known config files. String base_path = this.mConfigFilePath + "/sim.base.jconf"; String wand_path = this.mConfigFilePath + "/sim.wand.mixin.jconf"; // Expand in the cas of enviroment variables EnvironmentService env_service = new EnvironmentServiceProxy(); base_path = env_service.expandEnvVars(base_path); wand_path = env_service.expandEnvVars(wand_path); // Load sim.base.jconf FileDataSource base_filesource = FileDataSource.open(base_path, mBroker.getRepository()); mBroker.add("sim.base.jconf", base_filesource); // Load sim.wand.minxin.jconf FileDataSource wand_filesource = FileDataSource.open(wand_path, mBroker.getRepository()); mBroker.add("sim.wand.mixin.jconf", wand_filesource); // Create a new context and add both file sources to it ConfigContext ctx = new ConfigContext(); ctx.add("sim.base.jconf"); ctx.add("sim.wand.mixin.jconf"); // Get all elements from the two files java.util.List temp_list = mBroker.getElements(ctx); for(int i = 0 ; i < temp_list.size() ; i++) { ConfigElement elt = (ConfigElement)temp_list.get(i); if(elt.getDefinition().getToken().equals("display_window")) { mDisplayElementList.add(elt); } else if(elt.getDefinition().getToken().equals("display_system")) { mDisplaySystemElementList.add(elt); } else { replaceAllConfigFilesNamed(mContext, elt); //mBroker.add(mContext, new ConfigChunk(chunk)); } } mBroker.remove("sim.base.jconf"); mBroker.remove("sim.wand.mixin.jconf"); } catch(java.io.IOException exp) { exp.printStackTrace(); } }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/c88a5c06d548207353be75ae2f8ced073bf5c800/CreateClusteredSimDevicesPanel.java/clean/modules/vrjuggler/vrjconfig/wizards/cluster/org/vrjuggler/vrjconfig/wizards/cluster/CreateClusteredSimDevicesPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1610, 7993, 2697, 774, 1042, 1435, 225, 288, 565, 775, 95, 1377, 368, 1000, 326, 2953, 358, 326, 4846, 642, 1390, 18, 1377, 514, 1026, 67, 803, 273, 333, 18, 81, 809, 5598, 397, 2206, 9812, 18, 1969, 18, 78, 3923, 14432, 1377, 514, 341, 464, 67, 803, 273, 333, 18, 81, 809, 5598, 397, 2206, 9812, 18, 91, 464, 18, 81, 10131, 18, 78, 3923, 14432, 1377, 368, 16429, 316, 326, 8697, 434, 570, 522, 303, 475, 3152, 1377, 7518, 1179, 1550, 67, 3278, 273, 394, 7518, 1179, 3886, 5621, 1377, 1026, 67, 803, 273, 1550, 67, 3278, 18, 12320, 3491, 5555, 12, 1969, 67, 803, 1769, 1377, 341, 464, 67, 803, 273, 1550, 67, 3278, 18, 12320, 3491, 5555, 12, 91, 464, 67, 803, 1769, 1377, 368, 4444, 3142, 18, 1969, 18, 78, 3923, 1377, 1387, 8597, 1026, 67, 2354, 552, 273, 1387, 8597, 18, 3190, 12, 1969, 67, 803, 16, 312, 11194, 18, 588, 3305, 10663, 1377, 312, 11194, 18, 1289, 2932, 9812, 18, 1969, 18, 78, 3923, 3113, 1026, 67, 2354, 552, 1769, 1377, 368, 4444, 3142, 18, 91, 464, 18, 1154, 92, 267, 18, 78, 3923, 1377, 1387, 8597, 341, 464, 67, 2354, 552, 273, 1387, 8597, 18, 3190, 12, 91, 464, 67, 803, 16, 312, 11194, 18, 588, 3305, 10663, 1377, 312, 11194, 18, 1289, 2932, 9812, 18, 91, 464, 18, 81, 10131, 18, 78, 3923, 3113, 341, 464, 67, 2354, 552, 1769, 1377, 368, 1788, 279, 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, 282, 1071, 918, 1610, 7993, 2697, 774, 1042, 1435, 225, 288, 565, 775, 95, 1377, 368, 1000, 326, 2953, 358, 326, 4846, 642, 1390, 18, 1377, 514, 1026, 67, 803, 273, 333, 18, 81, 809, 5598, 397, 2206, 9812, 18, 1969, 18, 78, 3923, 14432, 1377, 514, 341, 464, 67, 803, 273, 333, 18, 81, 809, 5598, 397, 2206, 9812, 18, 91, 464, 18, 81, 10131, 18, 78, 3923, 14432, 1377, 368, 16429, 316, 326, 8697, 434, 570, 522, 303, 475, 3152, 1377, 7518, 1179, 1550, 67, 3278, 273, 394, 7518, 1179, 3886, 5621, 1377, 1026, 67, 803, 273, 1550, 67, 3278, 18, 12320, 3491, 5555, 12, 1969, 67, 803, 1769, 1377, 341, 464, 67, 803, 273, 1550, 67, 2 ]
public Password createPassword(User user, String value)
public Password createPassword(User user, String value, boolean validatePassword)
public Password createPassword(User user, String value) throws PasswordInvalidException { // First validate the value validatePassword(value); // Then check if user already has password DbmsPassword password = getDbmsPassword(user); if (password != null) { String msg = "User already has password."; throw new PasswordInvalidException(msg); } password = new DbmsPassword(); password.setUser(user); password.setValue(value); try { this.pm.create(password); } catch (PersistenceManagerException e) { _log.error("Unable to create password", e); } return password; }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/34612e7451faa62a902aa9c18a27bd832f7daba8/DbmsPasswordManagerService.java/clean/src/org/gridlab/gridsphere/services/security/password/impl/DbmsPasswordManagerService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9234, 752, 3913, 12, 1299, 729, 16, 514, 460, 16, 1250, 1954, 3913, 13, 5411, 1216, 9234, 1941, 503, 288, 3639, 368, 5783, 1954, 326, 460, 3639, 1954, 3913, 12, 1132, 1769, 3639, 368, 9697, 866, 309, 729, 1818, 711, 2201, 3639, 8408, 959, 3913, 2201, 273, 11188, 959, 3913, 12, 1355, 1769, 3639, 309, 261, 3664, 480, 446, 13, 288, 5411, 514, 1234, 273, 315, 1299, 1818, 711, 2201, 1199, 31, 5411, 604, 394, 9234, 1941, 503, 12, 3576, 1769, 3639, 289, 3639, 2201, 273, 394, 8408, 959, 3913, 5621, 3639, 2201, 18, 542, 1299, 12, 1355, 1769, 3639, 2201, 18, 542, 620, 12, 1132, 1769, 3639, 775, 288, 5411, 333, 18, 7755, 18, 2640, 12, 3664, 1769, 3639, 289, 1044, 261, 13182, 28020, 425, 13, 288, 5411, 389, 1330, 18, 1636, 2932, 3370, 358, 752, 2201, 3113, 425, 1769, 3639, 289, 3639, 327, 2201, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9234, 752, 3913, 12, 1299, 729, 16, 514, 460, 16, 1250, 1954, 3913, 13, 5411, 1216, 9234, 1941, 503, 288, 3639, 368, 5783, 1954, 326, 460, 3639, 1954, 3913, 12, 1132, 1769, 3639, 368, 9697, 866, 309, 729, 1818, 711, 2201, 3639, 8408, 959, 3913, 2201, 273, 11188, 959, 3913, 12, 1355, 1769, 3639, 309, 261, 3664, 480, 446, 13, 288, 5411, 514, 1234, 273, 315, 1299, 1818, 711, 2201, 1199, 31, 5411, 604, 394, 9234, 1941, 503, 12, 3576, 1769, 3639, 289, 3639, 2201, 273, 394, 8408, 959, 3913, 5621, 3639, 2201, 18, 542, 1299, 12, 1355, 1769, 3639, 2201, 18, 542, 620, 12, 1132, 1769, 3639, 775, 288, 5411, 333, 18, 7755, 18, 2640, 12, 2 ]
public foo1() {}
public void foo1() {}
public foo1() {}
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/0fe854c3ba64f0441dc1c719bb0fae05c08148be/InputNoJavadoc.java/buggy/src/testinputs/com/puppycrawl/tools/checkstyle/javadoc/InputNoJavadoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 8431, 21, 1435, 2618, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 8431, 21, 1435, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
processImports(wsdl4jDefinition); Types wsdl4jTypes = wsdl4jDefinition.getTypes(); if (null != wsdl4jTypes) { this.copyExtensibleElements(wsdl4jTypes .getExtensibilityElements(), wsdl4jDefinition, axisService, TYPES); } Binding binding = findBinding(wsdl4jDefinition); Element[] schemaElements = generateWrapperSchema(wsdl4jDefinition, binding); if (schemaElements != null && schemaElements.length > 0) { for (int i = 0; i < schemaElements.length; i++) { Element schemaElement = schemaElements[i]; if (schemaElement != null) { System.out.println(schemaElement.getNamespaceURI()); axisService.setSchema(getXMLSchema(schemaElement)); } } } processBinding(binding, wsdl4jDefinition); return axisService; } catch (WSDLException e) { throw new AxisFault(e); } catch (Exception e) { throw new AxisFault(e); } }
processImports(wsdl4jDefinition); Types wsdl4jTypes = wsdl4jDefinition.getTypes(); if (null != wsdl4jTypes) { this.copyExtensibleElements(wsdl4jTypes .getExtensibilityElements(), wsdl4jDefinition, axisService, TYPES); } Binding binding = findBinding(wsdl4jDefinition); Element[] schemaElements = generateWrapperSchema(wsdl4jDefinition, binding); if (schemaElements != null && schemaElements.length > 0) { for (int i = 0; i < schemaElements.length; i++) { Element schemaElement = schemaElements[i]; if (schemaElement != null) { System.out.println(schemaElement.getNamespaceURI()); axisService.setSchema(getXMLSchema(schemaElement,null)); } } } processBinding(binding, wsdl4jDefinition); return axisService; } catch (WSDLException e) { throw new AxisFault(e); } catch (Exception e) { throw new AxisFault(e); } }
public AxisService populateService() throws AxisFault { try { if (wsdl4jDefinition == null) { wsdl4jDefinition = readInTheWSDLFile(in); } if (wsdl4jDefinition == null) { return null; } //setting target name space axisService.setTargetNamespace(wsdl4jDefinition .getTargetNamespace()); //adding ns in the original WSDL axisService.setNameSpacesMap(wsdl4jDefinition.getNamespaces()); processPoliciesInDefintion(wsdl4jDefinition); //scheam generation processImports(wsdl4jDefinition); Types wsdl4jTypes = wsdl4jDefinition.getTypes(); if (null != wsdl4jTypes) { this.copyExtensibleElements(wsdl4jTypes .getExtensibilityElements(), wsdl4jDefinition, axisService, TYPES); } Binding binding = findBinding(wsdl4jDefinition); //////////////////(1.2) ///////////////////////////// // create new Schema extensions element for wrapping Element[] schemaElements = generateWrapperSchema(wsdl4jDefinition, binding); if (schemaElements != null && schemaElements.length > 0) { for (int i = 0; i < schemaElements.length; i++) { Element schemaElement = schemaElements[i]; if (schemaElement != null) { System.out.println(schemaElement.getNamespaceURI()); axisService.setSchema(getXMLSchema(schemaElement)); } } } processBinding(binding, wsdl4jDefinition); return axisService; } catch (WSDLException e) { throw new AxisFault(e); } catch (Exception e) { throw new AxisFault(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/bab052132b32a897323b354c865015022991d02c/WSDL2AxisServiceBuilder.java/buggy/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15509, 1179, 6490, 1179, 1435, 1216, 15509, 7083, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 4749, 5761, 24, 78, 1852, 422, 446, 13, 288, 9506, 202, 4749, 5761, 24, 78, 1852, 273, 855, 382, 1986, 2651, 8914, 812, 12, 267, 1769, 1082, 202, 97, 1082, 202, 430, 261, 4749, 5761, 24, 78, 1852, 422, 446, 13, 288, 9506, 202, 2463, 446, 31, 1082, 202, 97, 1082, 202, 759, 8920, 1018, 508, 3476, 1082, 202, 4890, 1179, 18, 542, 2326, 3402, 12, 4749, 5761, 24, 78, 1852, 6862, 202, 18, 588, 2326, 3402, 10663, 1082, 202, 759, 3439, 3153, 316, 326, 2282, 30567, 1082, 202, 4890, 1179, 18, 542, 461, 12077, 863, 12, 4749, 5761, 24, 78, 1852, 18, 588, 13180, 10663, 5411, 1207, 8825, 382, 3262, 474, 285, 12, 4749, 5761, 24, 78, 1852, 1769, 1082, 202, 759, 28204, 3820, 9377, 2398, 1082, 202, 2567, 13347, 12, 4749, 5761, 24, 78, 1852, 1769, 1082, 202, 2016, 17642, 24, 78, 2016, 273, 17642, 24, 78, 1852, 18, 588, 2016, 5621, 1082, 202, 430, 261, 2011, 480, 17642, 24, 78, 2016, 13, 288, 9506, 202, 2211, 18, 3530, 2482, 773, 1523, 3471, 12, 4749, 5761, 24, 78, 2016, 25083, 202, 18, 588, 2482, 773, 3628, 3471, 9334, 17642, 24, 78, 1852, 16, 25083, 202, 4890, 1179, 16, 3463, 55, 1769, 1082, 202, 97, 1082, 202, 5250, 5085, 273, 1104, 5250, 12, 4749, 5761, 24, 78, 1852, 1769, 1082, 202, 3517, 759, 12, 21, 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, 15509, 1179, 6490, 1179, 1435, 1216, 15509, 7083, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 4749, 5761, 24, 78, 1852, 422, 446, 13, 288, 9506, 202, 4749, 5761, 24, 78, 1852, 273, 855, 382, 1986, 2651, 8914, 812, 12, 267, 1769, 1082, 202, 97, 1082, 202, 430, 261, 4749, 5761, 24, 78, 1852, 422, 446, 13, 288, 9506, 202, 2463, 446, 31, 1082, 202, 97, 1082, 202, 759, 8920, 1018, 508, 3476, 1082, 202, 4890, 1179, 18, 542, 2326, 3402, 12, 4749, 5761, 24, 78, 1852, 6862, 202, 18, 588, 2326, 3402, 10663, 1082, 202, 759, 3439, 3153, 316, 326, 2282, 30567, 1082, 202, 4890, 1179, 18, 542, 461, 12077, 863, 12, 4749, 5761, 2 ]
EOEntity entity=EOModelGroup.defaultGroup().entityNamed(lastEO.entityName());
EOEntity entity=ERXEOAccessUtilities.entityNamed(object.editingContext(), lastEO.entityName());
public static EORelationship relationshipWithObjectAndKeyPath(EOEnterpriseObject object, String keyPath) { EOEnterpriseObject lastEO = relationshipObjectWithObjectAndKeyPath(object, keyPath); EORelationship relationship = null; if (lastEO!=null) { // FIXME: Should use the model group of the object's editing context's // root object store coordinator EOEntity entity=EOModelGroup.defaultGroup().entityNamed(lastEO.entityName()); String lastKey=ERXStringUtilities.lastPropertyKeyInKeyPath(keyPath); relationship=entity.relationshipNamed(lastKey); } return relationship; }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/407575373c57c20c17c163ba1bf0a8767593a0fc/ERXUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 512, 916, 292, 367, 3261, 5232, 1190, 921, 1876, 653, 743, 12, 41, 51, 30699, 921, 733, 16, 514, 24690, 13, 288, 3639, 512, 51, 30699, 921, 1142, 41, 51, 273, 5232, 921, 1190, 921, 1876, 653, 743, 12, 1612, 16, 24690, 1769, 3639, 512, 916, 292, 367, 3261, 5232, 273, 446, 31, 7734, 309, 261, 2722, 41, 51, 5, 33, 2011, 13, 288, 5411, 368, 9852, 30, 9363, 999, 326, 938, 1041, 434, 326, 733, 1807, 15755, 819, 1807, 5411, 368, 202, 202, 3085, 733, 1707, 24794, 1850, 512, 51, 1943, 1522, 33, 654, 60, 41, 51, 1862, 11864, 18, 1096, 7604, 12, 1612, 18, 4619, 310, 1042, 9334, 1142, 41, 51, 18, 1096, 461, 10663, 5411, 514, 29928, 33, 654, 60, 780, 11864, 18, 2722, 1396, 653, 382, 653, 743, 12, 856, 743, 1769, 5411, 5232, 33, 1096, 18, 12873, 7604, 12, 2722, 653, 1769, 3639, 289, 3639, 327, 5232, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 512, 916, 292, 367, 3261, 5232, 1190, 921, 1876, 653, 743, 12, 41, 51, 30699, 921, 733, 16, 514, 24690, 13, 288, 3639, 512, 51, 30699, 921, 1142, 41, 51, 273, 5232, 921, 1190, 921, 1876, 653, 743, 12, 1612, 16, 24690, 1769, 3639, 512, 916, 292, 367, 3261, 5232, 273, 446, 31, 7734, 309, 261, 2722, 41, 51, 5, 33, 2011, 13, 288, 5411, 368, 9852, 30, 9363, 999, 326, 938, 1041, 434, 326, 733, 1807, 15755, 819, 1807, 5411, 368, 202, 202, 3085, 733, 1707, 24794, 1850, 512, 51, 1943, 1522, 33, 654, 60, 41, 51, 1862, 11864, 18, 1096, 7604, 12, 1612, 18, 4619, 310, 1042, 9334, 1142, 41, 51, 18, 1096, 461, 2 ]
new_attributes.add(attributes[j]); new_ranges.add(new Integer(ranges[j]));
new_attributes.add (attributes[j]); new_ranges.add (new Integer (ranges[j]));
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if (attributes[j] != null) this.attributes[i].putAll(attributes[j]); } else { new_attributes.add(attributes[j]); } if (this.ranges[i] == ranges[j]) { new_ranges.add(new Integer(ranges[j])); i++; j++; } else if (this.ranges[i] < ranges[j]) { new_ranges.add(new Integer(this.ranges[i])); i++; } else { new_ranges.add(new Integer(ranges[j])); j++; } } if (i != this.ranges.length) { for (;i<this.ranges.length;i++) { new_attributes.add(this.attributes[i]); new_ranges.add(new Integer(this.ranges[i])); } } if (j != ranges.length) { for (;j<ranges.length;j++) { new_attributes.add(attributes[j]); new_ranges.add(new Integer(ranges[j])); } } this.attributes = new HashMap[new_attributes.size()]; this.ranges = new int[new_ranges.size()]; System.arraycopy(new_attributes.toArray(), 0, this.attributes, 0, this.attributes.length); for (i=0;i<new_ranges.size();i++) { this.ranges[i] = ((Integer)new_ranges.elementAt(i)).intValue(); } }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/905252cb2827a39c9de9ec6f60a2dd0fb655254d/FormatCharacterIterator.java/buggy/libjava/java/text/FormatCharacterIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2691, 2498, 12, 8658, 8526, 1677, 16, 509, 8526, 7322, 13, 225, 288, 565, 5589, 394, 67, 14530, 273, 394, 5589, 5621, 565, 5589, 394, 67, 4350, 273, 394, 5589, 5621, 565, 509, 277, 273, 374, 16, 525, 273, 374, 31, 565, 1323, 261, 77, 411, 333, 18, 14530, 18, 2469, 597, 525, 411, 7322, 18, 2469, 13, 1377, 288, 202, 430, 261, 2211, 18, 4350, 63, 77, 65, 480, 446, 13, 202, 225, 288, 202, 565, 394, 67, 4350, 18, 1289, 12, 2211, 18, 4350, 63, 77, 19226, 202, 565, 309, 261, 4350, 63, 78, 65, 480, 446, 13, 202, 1377, 333, 18, 4350, 63, 77, 8009, 458, 1595, 12, 4350, 63, 78, 19226, 202, 225, 289, 202, 12107, 202, 225, 288, 202, 565, 394, 67, 4350, 18, 1289, 12, 4350, 63, 78, 19226, 202, 225, 289, 202, 430, 261, 2211, 18, 14530, 63, 77, 65, 422, 7322, 63, 78, 5717, 202, 225, 288, 202, 565, 394, 67, 14530, 18, 1289, 12, 2704, 2144, 12, 14530, 63, 78, 5717, 1769, 202, 565, 277, 9904, 31, 202, 565, 525, 9904, 31, 202, 225, 289, 202, 12107, 309, 261, 2211, 18, 14530, 63, 77, 65, 411, 7322, 63, 78, 5717, 202, 225, 288, 202, 565, 394, 67, 14530, 18, 1289, 12, 2704, 2144, 12, 2211, 18, 14530, 63, 77, 5717, 1769, 202, 565, 277, 9904, 31, 202, 225, 289, 202, 12107, 202, 225, 288, 202, 565, 394, 67, 14530, 18, 1289, 12, 2704, 2144, 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, 282, 4750, 918, 2691, 2498, 12, 8658, 8526, 1677, 16, 509, 8526, 7322, 13, 225, 288, 565, 5589, 394, 67, 14530, 273, 394, 5589, 5621, 565, 5589, 394, 67, 4350, 273, 394, 5589, 5621, 565, 509, 277, 273, 374, 16, 525, 273, 374, 31, 565, 1323, 261, 77, 411, 333, 18, 14530, 18, 2469, 597, 525, 411, 7322, 18, 2469, 13, 1377, 288, 202, 430, 261, 2211, 18, 4350, 63, 77, 65, 480, 446, 13, 202, 225, 288, 202, 565, 394, 67, 4350, 18, 1289, 12, 2211, 18, 4350, 63, 77, 19226, 202, 565, 309, 261, 4350, 63, 78, 65, 480, 446, 13, 202, 1377, 333, 18, 4350, 63, 77, 8009, 458, 1595, 12, 4350, 63, 78, 19226, 202, 2 ]
return new ChildAttributes(getCodeBlockInternalIndent(myChildrenIndent), null);
if (isAfterJavaDoc(newChildIndex)) { return new ChildAttributes(Formatter.getInstance().getNoneIndent(), null); } else { return new ChildAttributes(getCodeBlockInternalIndent(myChildrenIndent), null); }
public ChildAttributes getChildAttributes(final int newChildIndex) { return new ChildAttributes(getCodeBlockInternalIndent(myChildrenIndent), null); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8a76be9d20764a0075ff7e2857b311f7248671d6/CodeBlockBlock.java/clean/source/com/intellij/psi/formatter/java/CodeBlockBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7451, 2498, 8154, 2498, 12, 6385, 509, 19783, 1016, 13, 288, 565, 309, 261, 291, 4436, 5852, 1759, 12, 2704, 1763, 1016, 3719, 288, 327, 394, 7451, 2498, 12, 5074, 18, 588, 1442, 7675, 588, 7036, 7790, 9334, 446, 1769, 289, 469, 288, 327, 394, 7451, 2498, 12, 588, 1085, 1768, 3061, 7790, 12, 4811, 4212, 7790, 3631, 446, 1769, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7451, 2498, 8154, 2498, 12, 6385, 509, 19783, 1016, 13, 288, 565, 309, 261, 291, 4436, 5852, 1759, 12, 2704, 1763, 1016, 3719, 288, 327, 394, 7451, 2498, 12, 5074, 18, 588, 1442, 7675, 588, 7036, 7790, 9334, 446, 1769, 289, 469, 288, 327, 394, 7451, 2498, 12, 588, 1085, 1768, 3061, 7790, 12, 4811, 4212, 7790, 3631, 446, 1769, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 testUpdateXmlPageLink() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; CmsLink link; String content; // validate xmlpage 4 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-4.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); // test values provided in input assertEquals("/sites/default/test.html", link.getTarget()); assertEquals(null, link.getAnchor()); assertEquals(null, link.getQuery()); // validate xmlpage 3 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-3.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); // test values provided in input assertEquals("/sites/default/folder1/image2.gif", link.getTarget()); assertEquals("test", link.getAnchor()); assertEquals("param=1&param2=2", link.getQuery()); // update xml page link with components link.updateLink("/test/link1/changed2.gif", "foo", "a=b&c=d"); // page.marshal(); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); assertEquals("/test/link1/changed2.gif", link.getTarget()); assertEquals("foo", link.getAnchor()); assertEquals("a=b&c=d", link.getQuery()); // update xml page link with uri link.updateLink("/foo/bar/link/test.jpg#bar?c=d&x=y"); page.marshal(); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); assertEquals("/foo/bar/link/test.jpg", link.getTarget()); assertEquals("bar", link.getAnchor()); assertEquals("c=d&x=y", link.getQuery()); // update xml page link with components, query null link.updateLink("/test/link1/changed3.jpg", "bizz", null); page.marshal(); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); assertEquals("/test/link1/changed3.jpg", link.getTarget()); assertEquals("bizz", link.getAnchor()); assertEquals(null, link.getQuery()); // update xml page link with components, anchor null link.updateLink("/test/link1/changed4.jpg", null, "c=d&x=y"); page.marshal(); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); assertEquals("/test/link1/changed4.jpg", link.getTarget()); assertEquals(null, link.getAnchor()); assertEquals("c=d&x=y", link.getQuery()); // update xml page link with uri without components link.updateLink("/foo/bar/baz/test.png"); page.marshal(); link = page.getLinkTable("body", Locale.ENGLISH).getLink("link0"); assertEquals("/foo/bar/baz/test.png", link.getTarget()); assertEquals(null, link.getAnchor()); assertEquals(null, link.getQuery()); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsXmlPage.java/buggy/test/org/opencms/xml/page/TestCmsXmlPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1891, 4432, 1964, 2098, 1435, 1216, 1185, 288, 7734, 368, 752, 279, 3167, 1522, 5039, 3639, 16084, 1943, 4301, 5039, 273, 394, 16084, 1943, 4301, 12, 2011, 1769, 7734, 16084, 1964, 1363, 31, 3639, 2149, 2098, 1692, 31, 3639, 514, 913, 31, 1171, 368, 1954, 2025, 2433, 1059, 3639, 913, 273, 28118, 1304, 18, 896, 812, 2932, 3341, 19, 556, 14645, 19, 2902, 19, 2433, 19, 2902, 2433, 17, 24, 18, 2902, 3113, 6380, 28, 1769, 7734, 1363, 273, 16084, 1964, 1733, 18, 318, 3108, 12, 1745, 16, 6380, 28, 16, 5039, 1769, 3639, 1692, 273, 1363, 18, 588, 2098, 1388, 2932, 3432, 3113, 6458, 18, 16324, 13462, 2934, 588, 2098, 2932, 1232, 20, 8863, 3639, 368, 1842, 924, 2112, 316, 810, 3639, 1815, 8867, 2932, 19, 12180, 19, 1886, 19, 3813, 18, 2620, 3113, 1692, 18, 588, 2326, 10663, 3639, 1815, 8867, 12, 2011, 16, 1692, 18, 588, 11605, 10663, 3639, 1815, 8867, 12, 2011, 16, 1692, 18, 588, 1138, 10663, 7734, 368, 1954, 2025, 2433, 890, 3639, 913, 273, 28118, 1304, 18, 896, 812, 2932, 3341, 19, 556, 14645, 19, 2902, 19, 2433, 19, 2902, 2433, 17, 23, 18, 2902, 3113, 6380, 28, 1769, 7734, 1363, 273, 16084, 1964, 1733, 18, 318, 3108, 12, 1745, 16, 6380, 28, 16, 5039, 1769, 3639, 1692, 273, 1363, 18, 588, 2098, 1388, 2932, 3432, 3113, 6458, 18, 16324, 13462, 2934, 588, 2098, 2932, 1232, 20, 8863, 3639, 368, 1842, 924, 2112, 316, 810, 3639, 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, 1891, 4432, 1964, 2098, 1435, 1216, 1185, 288, 7734, 368, 752, 279, 3167, 1522, 5039, 3639, 16084, 1943, 4301, 5039, 273, 394, 16084, 1943, 4301, 12, 2011, 1769, 7734, 16084, 1964, 1363, 31, 3639, 2149, 2098, 1692, 31, 3639, 514, 913, 31, 1171, 368, 1954, 2025, 2433, 1059, 3639, 913, 273, 28118, 1304, 18, 896, 812, 2932, 3341, 19, 556, 14645, 19, 2902, 19, 2433, 19, 2902, 2433, 17, 24, 18, 2902, 3113, 6380, 28, 1769, 7734, 1363, 273, 16084, 1964, 1733, 18, 318, 3108, 12, 1745, 16, 6380, 28, 16, 5039, 1769, 3639, 1692, 273, 1363, 18, 588, 2098, 1388, 2932, 3432, 3113, 6458, 18, 16324, 13462, 2934, 588, 2098, 2932, 1232, 20, 8863, 2 ]
ThreadContext context = runtime.getCurrentContext();
ThreadContext context = getRuntime().getCurrentContext();
public final IRubyObject call0( IRubyObject recv, String name, IRubyObject[] args, ICallable method, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); context.getIterStack().push(context.getCurrentIter().isPre() ? Iter.ITER_CUR : Iter.ITER_NOT); context.getFrameStack().push(); context.getCurrentFrame().setLastFunc(name); context.getCurrentFrame().setLastClass(noSuper ? null : this); context.getCurrentFrame().setSelf(recv); context.getCurrentFrame().setArgs(args); try { return method.call(runtime, recv, name, args, noSuper); } finally { context.getFrameStack().pop(); context.getIterStack().pop(); } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 15908, 10340, 921, 745, 20, 12, 3639, 15908, 10340, 921, 10665, 16, 3639, 514, 508, 16, 3639, 15908, 10340, 921, 8526, 833, 16, 3639, 467, 11452, 707, 16, 3639, 1250, 1158, 8051, 13, 288, 3639, 4884, 1042, 819, 273, 18814, 7675, 588, 3935, 1042, 5621, 3639, 819, 18, 588, 2360, 2624, 7675, 6206, 12, 2472, 18, 588, 3935, 2360, 7675, 291, 1386, 1435, 692, 3016, 18, 11844, 67, 7509, 294, 3016, 18, 11844, 67, 4400, 1769, 3639, 819, 18, 588, 3219, 2624, 7675, 6206, 5621, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 2622, 12, 529, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 797, 12, 2135, 8051, 692, 446, 294, 333, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 10084, 12, 18334, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 2615, 12, 1968, 1769, 3639, 775, 288, 5411, 327, 707, 18, 1991, 12, 9448, 16, 10665, 16, 508, 16, 833, 16, 1158, 8051, 1769, 3639, 289, 3095, 288, 5411, 819, 18, 588, 3219, 2624, 7675, 5120, 5621, 5411, 819, 18, 588, 2360, 2624, 7675, 5120, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 15908, 10340, 921, 745, 20, 12, 3639, 15908, 10340, 921, 10665, 16, 3639, 514, 508, 16, 3639, 15908, 10340, 921, 8526, 833, 16, 3639, 467, 11452, 707, 16, 3639, 1250, 1158, 8051, 13, 288, 3639, 4884, 1042, 819, 273, 18814, 7675, 588, 3935, 1042, 5621, 3639, 819, 18, 588, 2360, 2624, 7675, 6206, 12, 2472, 18, 588, 3935, 2360, 7675, 291, 1386, 1435, 692, 3016, 18, 11844, 67, 7509, 294, 3016, 18, 11844, 67, 4400, 1769, 3639, 819, 18, 588, 3219, 2624, 7675, 6206, 5621, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 2622, 12, 529, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 797, 12, 2135, 8051, 692, 446, 294, 333, 1769, 2 ]
pixelType = in.readInt();
int filePixelType = in.readInt();
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = new String(fourBytes).equals("iiii"); in.order(littleEndian); // populate standard metadata hashtable and OME root node in.skipBytes(12); dataSize = in.readInt() - 28; width = in.readInt(); height = in.readInt(); c = in.readInt(); int zDepth = in.readInt(); int tDepth = in.readInt(); pixelType = in.readInt(); numImages = zDepth * tDepth; metadata.put("Width", new Long(width)); metadata.put("Height", new Long(height)); metadata.put("Channels", new Long(c)); metadata.put("ZDepth", new Long(zDepth)); metadata.put("TDepth", new Long(tDepth)); String ptype; bps = 1; switch ((int) pixelType) { case 0: ptype = "8 bit unsigned"; bps = 1; break; case 1: ptype = "16 bit signed short"; bps = 2; break; case 2: ptype = "16 bit unsigned short"; bps = 2; break; case 3: ptype = "32 bit signed long"; bps = 4; break; case 4: ptype = "32 bit single-precision float"; bps = 4; break; case 5: ptype = "Color24"; bps = 1; break; case 6: ptype = "Color48"; bps = 2; break; case 10: ptype = "64 bit double-precision float"; bps = 8; break; default: ptype = "reserved"; // for values 7-9 } metadata.put("PixelType", ptype); in.skipBytes(dataSize); String typeAsString; switch ((int) pixelType) { case 0: typeAsString = "Uint8"; break; case 1: typeAsString = "int16"; break; case 2: typeAsString = "Uint16"; break; case 3: typeAsString = "Uint32"; break; case 4: typeAsString = "float"; break; case 5: typeAsString = "Uint32"; break; case 6: typeAsString = "Uint32"; break; case 10: typeAsString = "float"; break; default: typeAsString = "Uint8"; } order = "XY"; if (c > 1) order += "CZT"; else order += "ZTC"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels( new Integer((int) width), // SizeX new Integer((int) height), // SizeY new Integer((int) zDepth), // SizeZ new Integer((int) c), // SizeC new Integer((int) tDepth), // SizeT typeAsString, // PixelType new Boolean(!littleEndian), // BigEndian order, // DimensionOrder null); // Use index 0 in.read(fourBytes); String tag = new String(fourBytes); while (!tag.equals("fini")) { if (tag.equals("clut")) { // read in Color Lookup Table int size = in.readInt(); if (size == 8) { // indexed lookup table in.readInt(); int type = in.readInt(); String clutType = "unknown"; switch ((int) type) { case 0: clutType = "monochrome"; break; case 1: clutType = "reverse monochrome"; break; case 2: clutType = "BGR"; break; case 3: clutType = "classify"; break; case 4: clutType = "rainbow"; break; case 5: clutType = "red"; break; case 6: clutType = "green"; break; case 7: clutType = "blue"; break; case 8: clutType = "cyan"; break; case 9: clutType = "magenta"; break; case 10: clutType = "yellow"; break; case 11: clutType = "saturated pixels"; break; } metadata.put("LUT type", clutType); } else { // explicitly defined lookup table // length is 772 in.readInt(); byte[] colorTable = new byte[256*3]; in.read(colorTable); } } else if (tag.equals("norm")) { // read in normalization information int size = in.readInt(); // error checking if (size != (44 * c)) { throw new FormatException("Bad normalization settings"); } for (int i=0; i<c; i++) { long source = in.readInt(); String sourceType; switch ((int) source) { case 0: sourceType = "user"; break; case 1: sourceType = "plane"; break; case 2: sourceType = "sequence"; break; case 3: sourceType = "saturated plane"; break; case 4: sourceType = "saturated sequence"; break; case 5: sourceType = "ROI"; break; default: sourceType = "user"; } metadata.put("NormalizationSource" + i, sourceType); double min = in.readDouble(); double max = in.readDouble(); double gamma = in.readDouble(); double black = in.readDouble(); double white = in.readDouble(); metadata.put("NormalizationMin" + i, new Double(min)); metadata.put("NormalizationMax" + i, new Double(max)); metadata.put("NormalizationGamma" + i, new Double(gamma)); metadata.put("NormalizationBlack" + i, new Double(black)); metadata.put("NormalizationWhite" + i, new Double(white)); } } else if (tag.equals("head")) { // read in header labels in.readInt(); // size is defined to 2200 for (int i=0; i<100; i++) { int num = in.readShort(); in.read(fourBytes); String name = new String(fourBytes); metadata.put("Header" + num, name); } } else if (tag.equals("roi ")) { // read in ROI information in.skipBytes(8); int roiLeft = in.readInt(); int roiTop = in.readInt(); int roiRight = in.readInt(); int roiBottom = in.readInt(); int numRoiPts = in.readInt(); Integer x0 = new Integer((int) roiLeft); Integer x1 = new Integer((int) roiRight); Integer y0 = new Integer((int) roiBottom); Integer y1 = new Integer((int) roiTop); store.setDisplayROI( x0, y0, null, x1, y1, null, null, null, null, null); in.skipBytes(8 * numRoiPts); } else if (tag.equals("mask")) { // read in Segmentation Mask } else if (tag.equals("unit")) { // read in units in.readInt(); // size is 48 for (int i=0; i<4; i++) { int xResStyle = in.readInt(); int unitsPerPixel = in.readInt(); int xUnitName = in.readInt(); metadata.put("ResolutionStyle" + i, new Long(xResStyle)); metadata.put("UnitsPerPixel" + i, new Long(unitsPerPixel)); if (i == 0) { Float pixelSize = new Float(unitsPerPixel); store.setDimensions(pixelSize, pixelSize, null, null, null, null); } metadata.put("UnitName" + i, new Long(xUnitName)); } } else if (tag.equals("view")) { // read in view in.readInt(); } else if (tag.equals("plot")) { // read in plot // skipping this field for the moment in.skipBytes(2512); } else if (tag.equals("notes")) { // read in notes (image info) in.readInt(); // size is 576 byte[] temp = new byte[64]; in.read(temp); String descriptor = new String(temp); temp = new byte[512]; in.read(temp); String notes = new String(temp); metadata.put("Descriptor", descriptor); metadata.put("Notes", notes); store.setImage(id, null, notes, null); } try { in.read(fourBytes); tag = new String(fourBytes); } catch (Exception e) { tag = "fini"; } } sizeX[0] = width; sizeY[0] = height; sizeZ[0] = (int) ((Long) metadata.get("ZDepth")).longValue(); sizeC[0] = c; sizeT[0] = (int) ((Long) metadata.get("TDepth")).longValue();; currentOrder[0] = order; }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/f900d398818eefec3108ce2138214e42901a0aa0/IPLabReader.java/clean/loci/formats/in/IPLabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 1160, 8526, 12792, 2160, 273, 394, 1160, 63, 24, 15533, 565, 316, 18, 896, 12, 74, 477, 2160, 1769, 565, 328, 10609, 273, 394, 514, 12, 74, 477, 2160, 2934, 14963, 2932, 2835, 2835, 8863, 565, 316, 18, 1019, 12, 80, 10609, 1769, 565, 368, 6490, 4529, 1982, 711, 14544, 471, 531, 958, 1365, 756, 565, 316, 18, 7457, 2160, 12, 2138, 1769, 565, 30216, 273, 316, 18, 896, 1702, 1435, 300, 9131, 31, 565, 1835, 273, 316, 18, 896, 1702, 5621, 565, 2072, 273, 316, 18, 896, 1702, 5621, 565, 276, 273, 316, 18, 896, 1702, 5621, 565, 509, 998, 6148, 273, 316, 18, 896, 1702, 5621, 565, 509, 268, 6148, 273, 316, 18, 896, 1702, 5621, 565, 509, 585, 9037, 559, 273, 316, 18, 896, 1702, 5621, 565, 818, 8946, 273, 998, 6148, 380, 268, 6148, 31, 565, 1982, 18, 458, 2932, 2384, 3113, 394, 3407, 12, 2819, 10019, 565, 1982, 18, 458, 2932, 2686, 3113, 394, 3407, 12, 4210, 10019, 565, 1982, 18, 458, 2932, 10585, 3113, 394, 3407, 12, 71, 10019, 565, 1982, 18, 458, 2932, 62, 6148, 3113, 394, 3407, 12, 94, 6148, 10019, 565, 1982, 18, 458, 2932, 56, 6148, 3113, 394, 3407, 12, 88, 6148, 10019, 565, 514, 24203, 31, 565, 324, 1121, 273, 404, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 1160, 8526, 12792, 2160, 273, 394, 1160, 63, 24, 15533, 565, 316, 18, 896, 12, 74, 477, 2160, 1769, 565, 328, 10609, 273, 394, 514, 12, 74, 477, 2160, 2934, 14963, 2932, 2835, 2835, 8863, 565, 316, 18, 1019, 12, 80, 10609, 1769, 565, 368, 6490, 4529, 1982, 711, 14544, 471, 531, 958, 1365, 756, 565, 316, 18, 7457, 2160, 12, 2138, 1769, 565, 30216, 273, 316, 18, 896, 1702, 1435, 300, 9131, 31, 565, 1835, 273, 316, 18, 896, 1702, 5621, 565, 2072, 273, 2 ]
int toAddSelf = (!constr.isTrivial) && (l == level) ? 1 : 0;
int toAddSelf = (l == level) && (!constr.isTrivial) ? 1 : 0;
private void computeAncestors() { final int level = constr.level; final int ancestorDepth = constr.ancestorCacheDepth; final int[] ancestorCode = constr.ancestorCode; ScalaClassType[] parents = getParents(); ancestors = new ScalaClassType[ancestorDepth][]; ScalaClassType[][] initialAncestors = parents.length > 0 ? parents[0].getAncestors() : EMPTY_ANCESTORS; for (int l = 0, dci = 0; l < ancestorDepth; ++l) { int toAddParents = 0; if (dci < ancestorCode.length && ancestorCode[dci] == l) { dci++; toAddParents = ancestorCode[dci++]; } int toAddSelf = (!constr.isTrivial) && (l == level) ? 1 : 0; int toAdd = toAddParents + toAddSelf; ScalaClassType[] initialRow; if (l < initialAncestors.length) initialRow = initialAncestors[l]; else initialRow = ScalaClassType.EMPTY_ARRAY; if (toAdd == 0) { ancestors[l] = initialRow; } else { int initialLen = initialRow.length; ScalaClassType[] newRow = new ScalaClassType[initialLen + toAdd]; if (toAddSelf == 1) newRow[0] = this; System.arraycopy(initialRow, 0, newRow, toAddSelf, initialLen); for (int i = 0; i < toAddParents; ++i) { int p = ancestorCode[dci++]; int o = ancestorCode[dci++]; newRow[toAddSelf + initialLen + i] = parents[p].getAncestors()[l][o]; } ancestors[l] = newRow; } } }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/5779d7948fd082ef08c850f6186a150b7c112921/ScalaClassType.java/clean/sources/scala/runtime/types/ScalaClassType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3671, 28304, 1435, 288, 3639, 727, 509, 1801, 273, 14472, 18, 2815, 31, 3639, 727, 509, 9731, 6148, 273, 14472, 18, 28798, 1649, 6148, 31, 3639, 727, 509, 8526, 9731, 1085, 273, 14472, 18, 28798, 1085, 31, 3639, 348, 771, 69, 18328, 8526, 6298, 273, 5089, 87, 5621, 3639, 14322, 273, 394, 348, 771, 69, 18328, 63, 28798, 6148, 6362, 15533, 3639, 348, 771, 69, 18328, 63, 6362, 65, 2172, 28304, 273, 6298, 18, 2469, 405, 374, 5411, 692, 6298, 63, 20, 8009, 588, 28304, 1435, 5411, 294, 8984, 67, 4722, 882, 14006, 31, 3639, 364, 261, 474, 328, 273, 374, 16, 6744, 77, 273, 374, 31, 328, 411, 9731, 6148, 31, 965, 80, 13, 288, 5411, 509, 25607, 13733, 273, 374, 31, 5411, 309, 261, 7201, 77, 411, 9731, 1085, 18, 2469, 597, 9731, 1085, 63, 7201, 77, 65, 422, 328, 13, 288, 7734, 6744, 77, 9904, 31, 7734, 25607, 13733, 273, 9731, 1085, 63, 7201, 77, 9904, 15533, 5411, 289, 5411, 509, 25607, 10084, 273, 261, 80, 422, 1801, 13, 597, 16051, 591, 701, 18, 291, 1070, 20109, 13, 692, 404, 294, 374, 31, 5411, 509, 25607, 273, 25607, 13733, 397, 25607, 10084, 31, 5411, 348, 771, 69, 18328, 8526, 2172, 1999, 31, 5411, 309, 261, 80, 411, 2172, 28304, 18, 2469, 13, 7734, 2172, 1999, 273, 2172, 28304, 63, 80, 15533, 5411, 469, 7734, 2172, 1999, 273, 348, 771, 69, 18328, 18, 13625, 67, 8552, 31, 5411, 309, 261, 869, 986, 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, 3671, 28304, 1435, 288, 3639, 727, 509, 1801, 273, 14472, 18, 2815, 31, 3639, 727, 509, 9731, 6148, 273, 14472, 18, 28798, 1649, 6148, 31, 3639, 727, 509, 8526, 9731, 1085, 273, 14472, 18, 28798, 1085, 31, 3639, 348, 771, 69, 18328, 8526, 6298, 273, 5089, 87, 5621, 3639, 14322, 273, 394, 348, 771, 69, 18328, 63, 28798, 6148, 6362, 15533, 3639, 348, 771, 69, 18328, 63, 6362, 65, 2172, 28304, 273, 6298, 18, 2469, 405, 374, 5411, 692, 6298, 63, 20, 8009, 588, 28304, 1435, 5411, 294, 8984, 67, 4722, 882, 14006, 31, 3639, 364, 261, 474, 328, 273, 374, 16, 6744, 77, 273, 374, 31, 328, 411, 9731, 6148, 31, 965, 80, 13, 288, 2 ]
chrFilter = newQuery.getFilterByName(CHRNAME); if (chrFilter == null) throw new InvalidQueryException("Marker Filters require a Chromosome Filter to have already been added to the Query.");
chrFilter = newQuery.getFilterByName(CHRNAME); if (chrFilter == null) throw new InvalidQueryException("Marker Filters require a Chromosome Filter to have already been added to the Query.");
public Query ModifyQuery(Engine engine, List filters, Query query) throws InvalidQueryException { Connection conn; try { conn = query.getDataSource().getConnection(); } catch (SQLException e1) { throw new InvalidQueryException("Recieved SQLException " + e1.getMessage(), e1); } Query newQuery = new Query(query); String sql, filterName, filterCondition, filterValue; PreparedStatement ps; Filter chrFilter; // must get species, focus, and chromosome. If a chromosome filter has not been set, then throw an exception String species, focus, chrvalue, lookupTable; // species can be parsed from the beginning of the first starBase String starBase = newQuery.getStarBases()[0]; StringTokenizer sbtokens = new StringTokenizer(starBase, "_"); species = sbtokens.nextToken(); String tmp = sbtokens.nextToken(); //focus is snp if tmp ends with snp if (tmp.endsWith("snp")) focus = "snp"; else focus = "gene"; filterName = focus + "_chrom_start"; if (species == null || species.equals("")) throw new InvalidQueryException("Species is required for a Marker Filter, check the MartConfiguration for the correct starBases for this DatasetView."); lookupTable = species + "_marker_lookup"; chrFilter = newQuery.getFilterByName(CHRNAME); if (chrFilter == null) throw new InvalidQueryException("Marker Filters require a Chromosome Filter to have already been added to the Query."); chrvalue = chrFilter.getValue(); for (int i = 0, n = filters.size(); i < n; i++) { Filter element = (Filter) filters.get(i); newQuery.removeFilter(element); String field = element.getField(); String marker_value = element.getValue(); if (field.equals(START_FIELD)) { sql = "SELECT chr_start FROM " + lookupTable + " WHERE chr_name = ? AND id = ?"; filterCondition = ">="; } else if (field.equals(END_FIELD)) { sql = "SELECT chr_end FROM " + lookupTable + " WHERE chr_name = ? AND id = ?"; filterCondition = "<="; } else throw new InvalidQueryException("Recieved invalid field for MarkerFilterHandler " + field + "\n"); try { logger.info("SQL: " + sql + "\nparameter 1: " + chrvalue + " parameter 2: " + marker_value + "\n"); ps = conn.prepareStatement(sql); ps.setString(1, chrvalue); ps.setString(2, marker_value); ResultSet rs = ps.executeQuery(); rs.next(); // will only be one result filterValue = rs.getString(1); logger.info("Recieved filterValue " + filterValue + " from SQL\n"); } catch (SQLException e) { throw new InvalidQueryException("Recieved SQLException " + e.getMessage()); } if (filterValue != null && filterValue.length() > 0) { Filter posFilter = new BasicFilter(filterName, filterCondition, filterValue); newQuery.addFilter(posFilter); } else throw new InvalidQueryException("Did not recieve a filterValue for Marker " + marker_value + ", Marker may not be on chromosome " + chrvalue + "\n"); } return newQuery; }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/5d29c858564d7e4e6ede04a12954508a6284b018/MarkerFilterHandler.java/clean/src/java/org/ensembl/mart/lib/MarkerFilterHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2770, 9518, 1138, 12, 4410, 4073, 16, 987, 3415, 16, 2770, 843, 13, 1216, 1962, 1138, 503, 288, 202, 202, 1952, 1487, 31, 202, 202, 698, 288, 1082, 202, 4646, 273, 843, 18, 588, 8597, 7675, 588, 1952, 5621, 202, 202, 97, 1044, 261, 23116, 425, 21, 13, 288, 1082, 202, 12849, 394, 1962, 1138, 503, 2932, 5650, 1385, 2155, 6483, 315, 397, 425, 21, 18, 24906, 9334, 425, 21, 1769, 202, 202, 97, 202, 202, 1138, 22955, 273, 394, 2770, 12, 2271, 1769, 202, 202, 780, 1847, 16, 25469, 16, 1034, 3418, 16, 1034, 620, 31, 202, 202, 29325, 4250, 31, 202, 202, 1586, 4513, 1586, 31, 202, 202, 759, 1297, 336, 12891, 16, 7155, 16, 471, 22674, 18, 225, 971, 279, 22674, 1034, 711, 486, 2118, 444, 16, 1508, 604, 392, 1520, 202, 202, 780, 12891, 16, 7155, 16, 4513, 1132, 16, 3689, 1388, 31, 202, 202, 759, 12891, 848, 506, 2707, 628, 326, 8435, 434, 326, 1122, 10443, 2171, 202, 202, 780, 10443, 2171, 273, 22955, 18, 588, 18379, 38, 3304, 1435, 63, 20, 15533, 202, 202, 780, 10524, 2393, 7860, 273, 394, 16370, 12, 10983, 2171, 16, 8802, 1769, 202, 202, 22657, 273, 2393, 7860, 18, 4285, 1345, 5621, 202, 202, 780, 1853, 273, 2393, 7860, 18, 4285, 1345, 5621, 202, 202, 759, 13923, 353, 28648, 309, 1853, 3930, 598, 28648, 202, 202, 430, 261, 5645, 18, 5839, 1190, 2932, 87, 6782, 6, 3719, 1082, 202, 13923, 273, 315, 87, 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, 2770, 9518, 1138, 12, 4410, 4073, 16, 987, 3415, 16, 2770, 843, 13, 1216, 1962, 1138, 503, 288, 202, 202, 1952, 1487, 31, 202, 202, 698, 288, 1082, 202, 4646, 273, 843, 18, 588, 8597, 7675, 588, 1952, 5621, 202, 202, 97, 1044, 261, 23116, 425, 21, 13, 288, 1082, 202, 12849, 394, 1962, 1138, 503, 2932, 5650, 1385, 2155, 6483, 315, 397, 425, 21, 18, 24906, 9334, 425, 21, 1769, 202, 202, 97, 202, 202, 1138, 22955, 273, 394, 2770, 12, 2271, 1769, 202, 202, 780, 1847, 16, 25469, 16, 1034, 3418, 16, 1034, 620, 31, 202, 202, 29325, 4250, 31, 202, 202, 1586, 4513, 1586, 31, 202, 202, 759, 1297, 336, 12891, 16, 7155, 2 ]
retval.append("osList = " + osList);
retval.append("osList = ").append(osList);
public String toString() { StringBuffer retval = new StringBuffer(); retval.append("path = " + path); retval.append("\n"); retval.append("mainClass = " + mainClass); retval.append("\n"); retval.append("type = " + type); retval.append("\n"); retval.append("executionStage = " + executionStage); retval.append("\n"); retval.append("onFailure = " + onFailure); retval.append("\n"); retval.append("argList: " + argList); retval.append("\n"); if (argList != null) { for (int i = 0; i < argList.size(); i++) { retval.append("\targ: " + argList.get(i)); retval.append("\n"); } } retval.append("\n"); retval.append("osList = " + osList); retval.append("\n"); if (osList != null) { for (int i = 0; i < osList.size(); i++) { retval.append("\tos: " + osList.get(i)); retval.append("\n"); } } retval.append("keepFile = " + keepFile); retval.append("\n"); return retval.toString(); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/9619b3a25f43787dc92011111668210e06c00c71/ExecutableFile.java/buggy/src/lib/com/izforge/izpack/ExecutableFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 6674, 5221, 273, 394, 6674, 5621, 3639, 5221, 18, 6923, 2932, 803, 273, 315, 397, 589, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 5254, 797, 273, 315, 397, 2774, 797, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 723, 273, 315, 397, 618, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 16414, 8755, 273, 315, 397, 4588, 8755, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 265, 5247, 273, 315, 397, 27748, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 3175, 682, 30, 315, 397, 1501, 682, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 309, 261, 3175, 682, 480, 446, 13, 3639, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1501, 682, 18, 1467, 5621, 277, 27245, 5411, 288, 7734, 5221, 18, 6923, 31458, 88, 3175, 30, 315, 397, 1501, 682, 18, 588, 12, 77, 10019, 7734, 5221, 18, 6923, 31458, 82, 8863, 5411, 289, 3639, 289, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 538, 682, 273, 315, 2934, 6923, 12, 538, 682, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 309, 261, 538, 682, 480, 446, 13, 3639, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1140, 682, 18, 1467, 5621, 277, 27245, 5411, 288, 7734, 5221, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 6674, 5221, 273, 394, 6674, 5621, 3639, 5221, 18, 6923, 2932, 803, 273, 315, 397, 589, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 5254, 797, 273, 315, 397, 2774, 797, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 723, 273, 315, 397, 618, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 16414, 8755, 273, 315, 397, 4588, 8755, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 265, 5247, 273, 315, 397, 27748, 1769, 3639, 5221, 18, 6923, 31458, 82, 8863, 3639, 5221, 18, 6923, 2932, 3175, 682, 30, 315, 397, 2 ]
public long getAverage() {
public double getAverage() {
public long getAverage() { int values = 0; long time = 0; Iterator it = timerMap.values().iterator(); while (it.hasNext()) { Timer t = ((Timer) it.next()); values += t.getNumberOfValues(); time += t.getCumulatedTime(); } return ((values > 0) ? (time / values) : (-1)); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/e9f568669f0fa3377464b677278944324179bdb0/CompositeAverageMicroTimer.java/clean/src/org/objectweb/proactive/core/util/timer/CompositeAverageMicroTimer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 4506, 5682, 1435, 288, 3639, 509, 924, 273, 374, 31, 3639, 1525, 813, 273, 374, 31, 3639, 4498, 518, 273, 5441, 863, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 5411, 12290, 268, 273, 14015, 6777, 13, 518, 18, 4285, 10663, 5411, 924, 1011, 268, 18, 588, 9226, 1972, 5621, 5411, 813, 1011, 268, 18, 588, 39, 5283, 690, 950, 5621, 3639, 289, 3639, 327, 14015, 2372, 405, 374, 13, 692, 261, 957, 342, 924, 13, 294, 24927, 21, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 4506, 5682, 1435, 288, 3639, 509, 924, 273, 374, 31, 3639, 1525, 813, 273, 374, 31, 3639, 4498, 518, 273, 5441, 863, 18, 2372, 7675, 9838, 5621, 3639, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 5411, 12290, 268, 273, 14015, 6777, 13, 518, 18, 4285, 10663, 5411, 924, 1011, 268, 18, 588, 9226, 1972, 5621, 5411, 813, 1011, 268, 18, 588, 39, 5283, 690, 950, 5621, 3639, 289, 3639, 327, 14015, 2372, 405, 374, 13, 692, 261, 957, 342, 924, 13, 294, 24927, 21, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!removedNodes.contains(n)) {
if (lattice.hasNode(n)) {
protected void optimizeBackward() { //System.err.println("*** Optimizing backward ***"); boolean moreChanges = true; while (moreChanges) { moreChanges = false; // search for a node that can be optimized for (Iterator i=lattice.getCopyOfNodes().iterator(); i.hasNext();) { Node n = (Node) i.next(); if (!removedNodes.contains(n)) { moreChanges |= optimizeNodeBackward(n); } } } }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/8d147af0bf72c96a0a6e8a3bd99e0057deb9183d/LatticeOptimizer.java/buggy/sphinx4/edu/cmu/sphinx/result/LatticeOptimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10979, 26283, 1435, 288, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 14465, 19615, 6894, 12555, 18852, 8863, 3639, 1250, 1898, 7173, 273, 638, 31, 3639, 1323, 261, 10161, 7173, 13, 288, 5411, 1898, 7173, 273, 629, 31, 5411, 368, 1623, 364, 279, 756, 716, 848, 506, 15411, 5411, 364, 261, 3198, 277, 33, 80, 24966, 18, 588, 2951, 951, 3205, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 2029, 290, 273, 261, 907, 13, 277, 18, 4285, 5621, 10792, 309, 261, 80, 24966, 18, 5332, 907, 12, 82, 3719, 288, 10792, 1898, 7173, 5626, 10979, 907, 26283, 12, 82, 1769, 7734, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 10979, 26283, 1435, 288, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 14465, 19615, 6894, 12555, 18852, 8863, 3639, 1250, 1898, 7173, 273, 638, 31, 3639, 1323, 261, 10161, 7173, 13, 288, 5411, 1898, 7173, 273, 629, 31, 5411, 368, 1623, 364, 279, 756, 716, 848, 506, 15411, 5411, 364, 261, 3198, 277, 33, 80, 24966, 18, 588, 2951, 951, 3205, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 2029, 290, 273, 261, 907, 13, 277, 18, 4285, 5621, 10792, 309, 261, 80, 24966, 18, 5332, 907, 12, 82, 3719, 288, 10792, 1898, 7173, 5626, 10979, 907, 26283, 12, 82, 1769, 7734, 289, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100 ]
if ((beginString.equals(FixVersions.BEGINSTRING_FIX42) && err <= SessionRejectReason.INVALID_MSGTYPE) || beginString.compareTo(FixVersions.BEGINSTRING_FIX42) > 0) { reject.setInt(SessionRejectReason.FIELD, err); }
public void generateReject(Message message, int err, int field) throws IOException, FieldNotFound { String reason = SessionRejectReasonText.getMessage(err); if (!state.isLogonReceived()) { throw new SessionException("Tried to send a reject while not logged on: " + reason + " (field " + field + ")"); } String beginString = sessionID.getBeginString(); Message reject = messageFactory.create(beginString, MsgType.REJECT); int msgSeqNum; String msgType; reject.reverseRoute(message.getHeader()); initializeHeader(reject.getHeader()); msgSeqNum = 0; msgType = null; boolean possDupFlag = false; msgType = message.getHeader().getString(MsgType.FIELD); if (message.getHeader().isSetField(MsgSeqNum.FIELD)) { msgSeqNum = message.getHeader().getInt(MsgSeqNum.FIELD); } if (message.getHeader().isSetField(PossDupFlag.FIELD)) { possDupFlag = message.getHeader().getBoolean(PossDupFlag.FIELD); } reject.setInt(RefSeqNum.FIELD, msgSeqNum); if (beginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0) { reject.setString(RefMsgType.FIELD, msgType); if ((beginString.equals(FixVersions.BEGINSTRING_FIX42) && err <= SessionRejectReason.INVALID_MSGTYPE) || beginString.compareTo(FixVersions.BEGINSTRING_FIX42) > 0) { reject.setInt(SessionRejectReason.FIELD, err); } } if (!msgType.equals(MsgType.LOGON) && !msgType.equals(MsgType.SEQUENCE_RESET) && (msgSeqNum == getExpectedTargetNum() || !possDupFlag)) { state.incrNextTargetMsgSeqNum(); } if (reason != null && (field != 0 || err == SessionRejectReason.INVALID_TAG_NUMBER)) { populateRejectReason(reject, field, reason); state.logEvent("Message " + msgSeqNum + " Rejected: " + reason + ":" + field); } else if (reason != null) { populateRejectReason(reject, reason); state.logEvent("Message " + msgSeqNum + " Rejected: " + reason); } else state.logEvent("Message " + msgSeqNum + " Rejected"); sendRaw(reject, 0); }
6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/ac55ba7609fafdc1ccfff3fc6f9fb357d78bb510/Session.java/buggy/src/quickfix/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2103, 21705, 12, 1079, 883, 16, 509, 393, 16, 509, 652, 13, 1216, 1860, 16, 5411, 2286, 2768, 288, 3639, 514, 3971, 273, 3877, 21705, 8385, 1528, 18, 24906, 12, 370, 1769, 3639, 309, 16051, 2019, 18, 291, 1343, 265, 8872, 10756, 288, 5411, 604, 394, 3877, 503, 2932, 29847, 358, 1366, 279, 4925, 1323, 486, 7545, 603, 30, 315, 397, 3971, 10792, 397, 315, 261, 1518, 315, 397, 652, 397, 7310, 1769, 3639, 289, 3639, 514, 2376, 780, 273, 13737, 18, 588, 8149, 780, 5621, 3639, 2350, 4925, 273, 883, 1733, 18, 2640, 12, 10086, 780, 16, 8671, 559, 18, 862, 5304, 1769, 3639, 509, 1234, 6926, 2578, 31, 3639, 514, 1234, 559, 31, 3639, 4925, 18, 9845, 3255, 12, 2150, 18, 588, 1864, 10663, 3639, 4046, 1864, 12, 24163, 18, 588, 1864, 10663, 3639, 1234, 6926, 2578, 273, 374, 31, 3639, 1234, 559, 273, 446, 31, 3639, 1250, 949, 87, 30419, 4678, 273, 629, 31, 3639, 1234, 559, 273, 883, 18, 588, 1864, 7675, 588, 780, 12, 3332, 559, 18, 6776, 1769, 3639, 309, 261, 2150, 18, 588, 1864, 7675, 291, 694, 974, 12, 3332, 6926, 2578, 18, 6776, 3719, 288, 5411, 1234, 6926, 2578, 273, 883, 18, 588, 1864, 7675, 588, 1702, 12, 3332, 6926, 2578, 18, 6776, 1769, 3639, 289, 3639, 309, 261, 2150, 18, 588, 1864, 7675, 291, 694, 974, 12, 1616, 87, 30419, 4678, 18, 6776, 3719, 288, 5411, 949, 87, 30419, 4678, 273, 883, 18, 588, 1864, 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, 21705, 12, 1079, 883, 16, 509, 393, 16, 509, 652, 13, 1216, 1860, 16, 5411, 2286, 2768, 288, 3639, 514, 3971, 273, 3877, 21705, 8385, 1528, 18, 24906, 12, 370, 1769, 3639, 309, 16051, 2019, 18, 291, 1343, 265, 8872, 10756, 288, 5411, 604, 394, 3877, 503, 2932, 29847, 358, 1366, 279, 4925, 1323, 486, 7545, 603, 30, 315, 397, 3971, 10792, 397, 315, 261, 1518, 315, 397, 652, 397, 7310, 1769, 3639, 289, 3639, 514, 2376, 780, 273, 13737, 18, 588, 8149, 780, 5621, 3639, 2350, 4925, 273, 883, 1733, 18, 2640, 12, 10086, 780, 16, 8671, 559, 18, 862, 5304, 1769, 3639, 509, 1234, 6926, 2578, 31, 3639, 514, 1234, 559, 31, 3639, 2 ]
view.getTable().doTypeSelect(path,true);
view.getTable().doTypeSelect(path, browser.getMode() == VFSBrowser .CHOOSE_DIRECTORY_DIALOG);
public void processKeyEvent(KeyEvent evt) { if(evt.getID() == KeyEvent.KEY_PRESSED) { String path = getText(); switch(evt.getKeyCode()) { case KeyEvent.VK_TAB: doComplete(path); break; case KeyEvent.VK_LEFT: if(getCaretPosition() == 0) browser.getBrowserView().getTable().processKeyEvent(evt); else super.processKeyEvent(evt); break; case KeyEvent.VK_RIGHT: if(getCaretPosition() == getDocument().getLength()) browser.getBrowserView().getTable().processKeyEvent(evt); else super.processKeyEvent(evt); break; case KeyEvent.VK_UP: case KeyEvent.VK_DOWN: case KeyEvent.VK_PAGE_UP: case KeyEvent.VK_PAGE_DOWN: case KeyEvent.VK_ENTER: browser.getBrowserView().getTable().processKeyEvent(evt); break; default: super.processKeyEvent(evt); break; } } else if(evt.getID() == KeyEvent.KEY_TYPED) { char ch = evt.getKeyChar(); if(ch == '/' || ch == File.separatorChar) { super.processKeyEvent(evt); String path = getText(); if(path.length() == 2 && path.charAt(0) == '-') { path = browser.getView().getBuffer() .getDirectory(); } else if(path.length() == 3 && path.startsWith("..")) { path = MiscUtilities.getParentOfPath( browser.getDirectory()); VFS vfs = VFSManager.getVFSForPath(path); if((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) != 0) { browser.setDirectory(path); VFSManager.waitForRequests(); setText(null); } } else if(!MiscUtilities.isAbsolutePath(path)) { VFS.DirectoryEntry[] files = browser .getBrowserView().getSelectedFiles(); if(files.length != 1 || files[0].type == VFS.DirectoryEntry.FILE) { return; } path = files[0].path; } else if(OperatingSystem.isDOSDerived() && path.length() == 3 && path.charAt(1) == ':') { browser.setDirectory(path); VFSManager.waitForRequests(); setText(null); } VFS vfs = VFSManager.getVFSForPath(path); if((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) != 0) { setText(null); browser.setDirectory(path); VFSManager.waitForRequests(); } else { if(path.endsWith("/") || path.endsWith(File.separator)) setText(path); else setText(path + vfs.getFileSeparator()); } } else if(ch == '\b') { if(getSelectionStart() == 0 && getSelectionEnd() == 0) { goToParent(); return; } else { super.processKeyEvent(evt); String path = getText(); BrowserView view = browser.getBrowserView(); view.selectNone(); view.getTable().doTypeSelect(path,true); } } else if(ch > 0x20 && ch != 0x7f && ch != 0xff) { super.processKeyEvent(evt); String path = getText(); BrowserView view = browser.getBrowserView(); view.selectNone(); view.getTable().doTypeSelect(path,true); } else super.processKeyEvent(evt); } } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/f59bc07fe3dd896ca771593c9cd8f64b0f67a759/VFSFileNameField.java/clean/org/gjt/sp/jedit/browser/VFSFileNameField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 430, 12, 73, 11734, 18, 588, 734, 1435, 422, 23737, 18, 3297, 67, 27388, 13, 202, 202, 95, 1082, 202, 780, 589, 273, 6701, 5621, 1082, 202, 9610, 12, 73, 11734, 18, 588, 653, 1085, 10756, 1082, 202, 95, 1082, 202, 3593, 23737, 18, 58, 47, 67, 28899, 30, 9506, 202, 2896, 6322, 12, 803, 1769, 9506, 202, 8820, 31, 1082, 202, 3593, 23737, 18, 58, 47, 67, 10066, 30, 9506, 202, 430, 12, 588, 39, 20731, 2555, 1435, 422, 374, 13, 6862, 202, 11213, 18, 588, 9132, 1767, 7675, 588, 1388, 7675, 2567, 653, 1133, 12, 73, 11734, 1769, 9506, 202, 12107, 6862, 202, 9565, 18, 2567, 653, 1133, 12, 73, 11734, 1769, 9506, 202, 8820, 31, 1082, 202, 3593, 23737, 18, 58, 47, 67, 11847, 30, 9506, 202, 430, 12, 588, 39, 20731, 2555, 1435, 422, 9956, 7675, 588, 1782, 10756, 6862, 202, 11213, 18, 588, 9132, 1767, 7675, 588, 1388, 7675, 2567, 653, 1133, 12, 73, 11734, 1769, 9506, 202, 12107, 6862, 202, 9565, 18, 2567, 653, 1133, 12, 73, 11734, 1769, 9506, 202, 8820, 31, 1082, 202, 3593, 23737, 18, 58, 47, 67, 3079, 30, 1082, 202, 3593, 23737, 18, 58, 47, 67, 12711, 30, 1082, 202, 3593, 23737, 18, 58, 47, 67, 11219, 67, 3079, 30, 1082, 202, 3593, 23737, 18, 58, 47, 67, 11219, 67, 12711, 30, 1082, 202, 3593, 23737, 18, 58, 47, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 653, 1133, 12, 653, 1133, 6324, 13, 202, 95, 202, 202, 430, 12, 73, 11734, 18, 588, 734, 1435, 422, 23737, 18, 3297, 67, 27388, 13, 202, 202, 95, 1082, 202, 780, 589, 273, 6701, 5621, 1082, 202, 9610, 12, 73, 11734, 18, 588, 653, 1085, 10756, 1082, 202, 95, 1082, 202, 3593, 23737, 18, 58, 47, 67, 28899, 30, 9506, 202, 2896, 6322, 12, 803, 1769, 9506, 202, 8820, 31, 1082, 202, 3593, 23737, 18, 58, 47, 67, 10066, 30, 9506, 202, 430, 12, 588, 39, 20731, 2555, 1435, 422, 374, 13, 6862, 202, 11213, 18, 588, 9132, 1767, 7675, 588, 1388, 7675, 2567, 653, 1133, 12, 73, 11734, 1769, 9506, 202, 12107, 2 ]
try { pred(); astFactory.addASTChild(currentAST, returnAST); AST tmp1_AST = null; tmp1_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp1_AST); match(SEMI); expr_AST = (AST) currentAST.root; } catch (RecognitionException ex) { reportError(ex); recover(ex, _tokenSet_0); }
pred(); astFactory.addASTChild(currentAST, returnAST); AST tmp1_AST = null; tmp1_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp1_AST); match(SEMI); expr_AST = (AST) currentAST.root;
public final void expr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST expr_AST = null; try { // for error handling pred(); astFactory.addASTChild(currentAST, returnAST); AST tmp1_AST = null; tmp1_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp1_AST); match(SEMI); expr_AST = (AST) currentAST.root; } catch (RecognitionException ex) { reportError(ex); recover(ex, _tokenSet_0); } returnAST = expr_AST; }
21908 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21908/18776addb067d1454c15f15b6b2d9d026c34a3c4/AuthorizationRuleParser.java/buggy/src/java/net/coalevo/security/impl/AuthorizationRuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 3065, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 565, 327, 9053, 273, 446, 31, 565, 9183, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 565, 9183, 3065, 67, 9053, 273, 446, 31, 565, 775, 288, 1377, 368, 364, 555, 5057, 1377, 3479, 5621, 1377, 3364, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 1377, 9183, 1853, 21, 67, 9053, 273, 446, 31, 1377, 1853, 21, 67, 9053, 273, 3364, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1377, 3364, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 1853, 21, 67, 9053, 1769, 1377, 845, 12, 1090, 7492, 1769, 1377, 3065, 67, 9053, 273, 261, 9053, 13, 783, 9053, 18, 3085, 31, 565, 289, 565, 1044, 261, 5650, 7909, 503, 431, 13, 288, 1377, 17887, 12, 338, 1769, 1377, 5910, 12, 338, 16, 389, 2316, 694, 67, 20, 1769, 565, 289, 565, 327, 9053, 273, 3065, 67, 9053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 3065, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 565, 327, 9053, 273, 446, 31, 565, 9183, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 565, 9183, 3065, 67, 9053, 273, 446, 31, 565, 775, 288, 1377, 368, 364, 555, 5057, 1377, 3479, 5621, 1377, 3364, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 1377, 9183, 1853, 21, 67, 9053, 273, 446, 31, 1377, 1853, 21, 67, 9053, 273, 3364, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1377, 3364, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 1853, 21, 67, 9053, 1769, 1377, 845, 12, 1090, 7492, 1769, 1377, 3065, 67, 9053, 273, 261, 9053, 13, 783, 9053, 18, 2 ]
AST __t150 = _t; AST tmp9_AST_in = (AST)_t;
AST __t176 = _t; AST tmp10_AST_in = (AST)_t;
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST varName = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_return: { AST __t136 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(); PathExpr whereExpr= null; { int _cnt146=0; _loop146: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t138 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt141=0; _loop141: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t140 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t140; _t = _t.getNextSibling(); } else { if ( _cnt141>=1 ) { break _loop141; } else {throw new NoViableAltException(_t);} } _cnt141++; } while (true); } _t = __t138; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t142 = _t; AST tmp5_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt145=0; _loop145: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t144 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t144; _t = _t.getNextSibling(); } else { if ( _cnt145>=1 ) { break _loop145; } else {throw new NoViableAltException(_t);} } _cnt145++; } while (true); } _t = __t142; _t = _t.getNextSibling(); break; } default: { if ( _cnt146>=1 ) { break _loop146; } else {throw new NoViableAltException(_t);} } } _cnt146++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(); else expr= new LetExpr(); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } path.add(action); _t = __t136; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t148 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); OpOr or= new OpOr(); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t149 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); OpAnd and= new OpAnd(); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t150 = _t; AST tmp9_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t150; _t = _t.getNextSibling(); break; } case UNION: { AST __t151 = _t; AST tmp10_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t151; _t = _t.getNextSibling(); Union union= new Union(left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t152 = _t; AST tmp11_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t152; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t154 = _t; AST tmp12_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t154; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case XML_COMMENT: case XML_PI: case LCURLY: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 511, 18454, 67, 2463, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 26959, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 23225, 67, 2463, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 6862, 6862, 202, 682, 14093, 33, 394, 2407, 5621, 25083, 202, 2300, 1301, 33, 394, 2666, 4742, 5621, 25083, 202, 743, 4742, 1625, 4742, 33, 446, 31, 6862, 9506, 202, 95, 1082, 202, 474, 389, 13085, 27879, 33, 20, 31, 1082, 202, 67, 6498, 27879, 30, 1082, 202, 2896, 288, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 9506, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 9506, 202, 3593, 511, 18454, 67, 1884, 30, 9506, 202, 95, 6862, 202, 9053, 1001, 88, 26645, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 511, 18454, 67, 2463, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 26959, 273, 389, 88, 31, 1082, 202, 9053, 1853, 2 ]
xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d();
xDiff = ((Point2d)r2dm.getRenderingCoordinate(secondAtom)).x - ((Point2d)r2dm.getRenderingCoordinate(firstAtom)).x; yDiff = ((Point2d)r2dm.getRenderingCoordinate(secondAtom)).y - ((Point2d)r2dm.getRenderingCoordinate(firstAtom)).y;
private void drawRing(int mouseX, int mouseY) { IAtomContainer undoRedoContainer = new org.openscience.cdk.AtomContainer(); IRing newRing = null; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX; int pointerMarkY; double ringRadius; double angle; double xDiff; double yDiff; double distance1 = 0; double distance2 = 0; IAtom firstAtom; IAtom secondAtom; IAtom spiroAtom; Point2d conAtomsCenter = null; Point2d newPoint1; Point2d newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); IAtomContainer sharedAtoms = getHighlighted(); if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new org.openscience.cdk.AtomContainer(); newRing = new org.openscience.cdk.Ring(ringSize, symbol); if (c2dm.getDrawMode() == Controller2DModel.BENZENERING) { // make newRing a benzene ring IBond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) / Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2d(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); IAtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); undoRedoContainer.add(newRing); } else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == Controller2DModel.BENZENERING) { // make newRing a benzene ring IBond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2d())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } IAtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); undoRedoContainer.add(newRing); } else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } IAtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == Controller2DModel.BENZENERING) { // make newRing a benzene ring IBond existingBond = atomCon.getBond(firstAtom, secondAtom); IBond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } } double highlightRadius = r2dm.getHighlightRadius(); for (int i = 0; i < newRing.getAtomCount(); i++) { IAtom atom=newRing.getAtomAt(i); centerAtom(atom,chemModel); //We make sure atoms don't overlap //Solution is a bit crude, we would need to find an unoccupied place (and even the bond display should be optimized) IAtom inrange=getAtomInRange((int)atom.getPoint2d().x, (int)atom.getPoint2d().y, atom); if(inrange!=null && Math.sqrt(Math.pow(inrange.getX2d() - atom.getPoint2d().x, 2) + Math.pow(inrange.getY2d() - atom.getPoint2d().y, 2)) < highlightRadius/4){ atom.getPoint2d().x-=highlightRadius/4; atom.getPoint2d().y-=highlightRadius/4; } } this.updateAtoms(ChemModelManipulator.getRelevantAtomContainer(chemModel, newRing.getAtomAt(0)), newRing.getAtoms()); undoRedoContainer.add(newRing); UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Added Ring"); undoRedoHandler.postEdit(edit); r2dm.fireChange(); fireChange(); }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/AbstractController2D.java/buggy/src/org/openscience/cdk/controller/AbstractController2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3724, 10369, 12, 474, 7644, 60, 16, 509, 7644, 61, 13, 288, 202, 202, 45, 3641, 2170, 15436, 3715, 83, 2170, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 2170, 5621, 202, 202, 7937, 310, 394, 10369, 273, 446, 31, 202, 202, 2148, 22, 72, 5116, 14280, 8449, 31, 202, 202, 5018, 22, 72, 9221, 8449, 5018, 31, 202, 202, 9056, 8427, 1782, 31, 202, 202, 474, 4407, 3882, 60, 31, 202, 202, 474, 4407, 3882, 61, 31, 202, 202, 9056, 9221, 10196, 31, 202, 202, 9056, 5291, 31, 202, 202, 9056, 619, 5938, 31, 202, 202, 9056, 677, 5938, 31, 202, 202, 9056, 3888, 21, 273, 374, 31, 202, 202, 9056, 3888, 22, 273, 374, 31, 202, 202, 45, 3641, 1122, 3641, 31, 202, 202, 45, 3641, 2205, 3641, 31, 202, 202, 45, 3641, 1694, 11373, 3641, 31, 202, 202, 2148, 22, 72, 356, 14280, 8449, 273, 446, 31, 202, 202, 2148, 22, 72, 394, 2148, 21, 31, 202, 202, 2148, 22, 72, 394, 2148, 22, 31, 202, 202, 10369, 1749, 10598, 9221, 1749, 10598, 273, 394, 25463, 1749, 10598, 5621, 202, 202, 474, 9221, 1225, 273, 276, 22, 10956, 18, 588, 10369, 1225, 5621, 202, 202, 780, 3273, 273, 276, 22, 10956, 18, 588, 6493, 1046, 5621, 202, 202, 45, 3641, 2170, 5116, 14280, 273, 7628, 2031, 5099, 329, 5621, 202, 202, 430, 261, 11574, 14280, 18, 588, 3641, 1380, 1435, 422, 374, 13, 202, 202, 95, 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, 3724, 10369, 12, 474, 7644, 60, 16, 509, 7644, 61, 13, 288, 202, 202, 45, 3641, 2170, 15436, 3715, 83, 2170, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 2170, 5621, 202, 202, 7937, 310, 394, 10369, 273, 446, 31, 202, 202, 2148, 22, 72, 5116, 14280, 8449, 31, 202, 202, 5018, 22, 72, 9221, 8449, 5018, 31, 202, 202, 9056, 8427, 1782, 31, 202, 202, 474, 4407, 3882, 60, 31, 202, 202, 474, 4407, 3882, 61, 31, 202, 202, 9056, 9221, 10196, 31, 202, 202, 9056, 5291, 31, 202, 202, 9056, 619, 5938, 31, 202, 202, 9056, 677, 5938, 31, 202, 202, 9056, 3888, 21, 273, 374, 31, 202, 202, 2 ]
return (null != m_functions) ? m_functions.size() : 0;
return (null != m_functions) ? m_functions.size() : 0;
public int getFunctionCount() { return (null != m_functions) ? m_functions.size() : 0; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemExtensionDecl.java/buggy/src/org/apache/xalan/templates/ElemExtensionDecl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 18697, 1380, 1435, 225, 288, 565, 327, 261, 2011, 480, 312, 67, 10722, 13, 5411, 692, 312, 67, 10722, 18, 1467, 1435, 294, 374, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 18697, 1380, 1435, 225, 288, 565, 327, 261, 2011, 480, 312, 67, 10722, 13, 5411, 692, 312, 67, 10722, 18, 1467, 1435, 294, 374, 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 ]
envelope.getBody().addChild(OMUtils.toOM(response));
msgContext.getEnvelope().getBody().addChild(OMUtils.toOM(response)); writeHeader(msgContext, mex);
private void onResponse(MyRoleMessageExchange mex, SOAPEnvelope envelope) throws AxisFault { switch (mex.getStatus()) { case FAULT: throw new AxisFault(null, mex.getFault(), null, null, OMUtils.toOM(mex.getFaultResponse().getMessage())); case RESPONSE: Element response = SOAPUtils.wrap(mex.getResponse().getMessage(), _wsdlDef, _serviceName, mex.getOperation(), mex.getOperation().getOutput().getMessage()); envelope.getBody().addChild(OMUtils.toOM(response)); break; case FAILURE: // TODO: get failure codes out of the message. throw new AxisFault("Message exchange failure!"); default : __log.warn("Received PXE message exchange in unexpected state: " + mex.getStatus()); } }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/3d5d00371b775dabb3a8e74de457bb4956027a11/PXEService.java/buggy/axis2/src/main/java/com/fs/pxe/axis2/PXEService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 603, 1064, 12, 12062, 2996, 1079, 11688, 312, 338, 16, 16434, 10862, 9045, 13, 1216, 15509, 7083, 288, 565, 1620, 261, 81, 338, 18, 588, 1482, 10756, 288, 1377, 648, 15064, 2274, 30, 3639, 604, 394, 15509, 7083, 12, 2011, 16, 312, 338, 18, 588, 7083, 9334, 446, 16, 446, 16, 28839, 1989, 18, 869, 1872, 12, 81, 338, 18, 588, 7083, 1064, 7675, 24906, 1435, 10019, 1377, 648, 20645, 30, 3639, 3010, 766, 273, 16434, 1989, 18, 4113, 12, 81, 338, 18, 588, 1064, 7675, 24906, 9334, 389, 4749, 5761, 3262, 16, 389, 15423, 16, 7734, 312, 338, 18, 588, 2988, 9334, 312, 338, 18, 588, 2988, 7675, 588, 1447, 7675, 24906, 10663, 3639, 1234, 1042, 18, 588, 10862, 7675, 588, 2250, 7675, 1289, 1763, 12, 1872, 1989, 18, 869, 1872, 12, 2740, 10019, 1045, 1864, 12, 3576, 1042, 16, 312, 338, 1769, 3639, 898, 31, 1377, 648, 24077, 30, 3639, 368, 2660, 30, 336, 5166, 6198, 596, 434, 326, 883, 18, 3639, 604, 394, 15509, 7083, 2932, 1079, 7829, 5166, 4442, 1769, 1377, 805, 294, 3639, 1001, 1330, 18, 8935, 2932, 8872, 453, 60, 41, 883, 7829, 316, 9733, 919, 30, 315, 397, 312, 338, 18, 588, 1482, 10663, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 603, 1064, 12, 12062, 2996, 1079, 11688, 312, 338, 16, 16434, 10862, 9045, 13, 1216, 15509, 7083, 288, 565, 1620, 261, 81, 338, 18, 588, 1482, 10756, 288, 1377, 648, 15064, 2274, 30, 3639, 604, 394, 15509, 7083, 12, 2011, 16, 312, 338, 18, 588, 7083, 9334, 446, 16, 446, 16, 28839, 1989, 18, 869, 1872, 12, 81, 338, 18, 588, 7083, 1064, 7675, 24906, 1435, 10019, 1377, 648, 20645, 30, 3639, 3010, 766, 273, 16434, 1989, 18, 4113, 12, 81, 338, 18, 588, 1064, 7675, 24906, 9334, 389, 4749, 5761, 3262, 16, 389, 15423, 16, 7734, 312, 338, 18, 588, 2988, 9334, 312, 338, 18, 588, 2988, 7675, 588, 1447, 7675, 24906, 10663, 3639, 1234, 2 ]
ClassLoader parentLoader = cx.getClass().getClassLoader();
ClassLoader parentLoader = cx.getApplicationClassLoader();
loadAdapterClass(Context cx, String className, byte[] classBytes) { ClassLoader parentLoader = cx.getClass().getClassLoader(); GeneratedClassLoader loader; SecurityController sc = cx.getSecurityController(); if (sc == null) { loader = cx.createClassLoader(parentLoader); } else { Object securityDomain = sc.getDynamicSecurityDomain(null); loader = sc.createClassLoader(parentLoader, securityDomain); } Class result = loader.defineClass(className, classBytes); loader.linkClass(result); return result; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/a3b7d765daee38e03fcaff182fa4df862d7ad0b4/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1262, 4216, 797, 12, 1042, 9494, 16, 514, 2658, 16, 1160, 8526, 667, 2160, 13, 565, 288, 3639, 9403, 982, 2886, 273, 9494, 18, 588, 3208, 7805, 5621, 3639, 11025, 7805, 4088, 31, 3639, 6036, 2933, 888, 273, 9494, 18, 588, 4368, 2933, 5621, 3639, 309, 261, 1017, 422, 446, 13, 288, 5411, 4088, 273, 9494, 18, 2640, 7805, 12, 2938, 2886, 1769, 3639, 289, 469, 288, 5411, 1033, 4373, 3748, 273, 888, 18, 588, 9791, 4368, 3748, 12, 2011, 1769, 5411, 4088, 273, 888, 18, 2640, 7805, 12, 2938, 2886, 16, 4373, 3748, 1769, 3639, 289, 3639, 1659, 563, 273, 4088, 18, 11255, 797, 12, 12434, 16, 667, 2160, 1769, 3639, 4088, 18, 1232, 797, 12, 2088, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1262, 4216, 797, 12, 1042, 9494, 16, 514, 2658, 16, 1160, 8526, 667, 2160, 13, 565, 288, 3639, 9403, 982, 2886, 273, 9494, 18, 588, 3208, 7805, 5621, 3639, 11025, 7805, 4088, 31, 3639, 6036, 2933, 888, 273, 9494, 18, 588, 4368, 2933, 5621, 3639, 309, 261, 1017, 422, 446, 13, 288, 5411, 4088, 273, 9494, 18, 2640, 7805, 12, 2938, 2886, 1769, 3639, 289, 469, 288, 5411, 1033, 4373, 3748, 273, 888, 18, 588, 9791, 4368, 3748, 12, 2011, 1769, 5411, 4088, 273, 888, 18, 2640, 7805, 12, 2938, 2886, 16, 4373, 3748, 1769, 3639, 289, 3639, 1659, 563, 273, 4088, 18, 11255, 797, 12, 12434, 16, 667, 2160, 1769, 3639, 4088, 18, 1232, 797, 12, 2088, 2 ]
noAttributeError(name);
noAttributeError(name.toString());
public final PyObject __getattr__(String name) { PyObject ret = __findattr__(name); if (ret == null) noAttributeError(name); return ret; }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/0032389092304be8fc5a113fca67f03240f3d670/PyObject.java/buggy/src/org/python/core/PyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 1001, 588, 1747, 972, 12, 780, 508, 13, 288, 3639, 4707, 921, 325, 273, 1001, 4720, 1747, 972, 12, 529, 1769, 3639, 309, 261, 1349, 422, 446, 13, 5411, 1158, 1499, 668, 12, 529, 18, 10492, 10663, 3639, 327, 325, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 1001, 588, 1747, 972, 12, 780, 508, 13, 288, 3639, 4707, 921, 325, 273, 1001, 4720, 1747, 972, 12, 529, 1769, 3639, 309, 261, 1349, 422, 446, 13, 5411, 1158, 1499, 668, 12, 529, 18, 10492, 10663, 3639, 327, 325, 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 ]
MessageDialog .openInformation( null, "Bugzilla Login Error", MESSAGE_LOGIN_FAILURE); BugzillaCorePlugin.log(new Status(IStatus.ERROR, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "", e));
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() { public void run() { MessageDialog.openInformation(null, "Bugzilla Login Error", MESSAGE_LOGIN_FAILURE); } });
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException { final IStatus[] status = new IStatus[1]; final AbstractTextSearchResult textResult = (AbstractTextSearchResult) getSearchResult(); textResult.removeAll(); try { operation.run(monitor); status[0] = operation.getStatus(); if (status[0].getCode() == IStatus.CANCEL) { status[0] = Status.OK_STATUS; } else if (!status[0].isOK()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { ErrorDialog.openError(null, "Repository Search Error", null, status[0]); } }); status[0] = Status.OK_STATUS; } } catch (InvocationTargetException e) { // TODO: Display exceptions properly MessageDialog .openInformation( null, "Bugzilla Login Error", MESSAGE_LOGIN_FAILURE); BugzillaCorePlugin.log(new Status(IStatus.ERROR, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "", e)); } catch (InterruptedException e) { // ignore } catch (LoginException e) { MessageDialog .openInformation( null, "Bugzilla Login Error", MESSAGE_LOGIN_FAILURE); BugzillaCorePlugin.log(new Status(IStatus.ERROR, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "", e)); } return status[0]; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ad58dece16665ab9ba79563a9fd7f8e46220a2e1/BugzillaSearchQuery.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 4189, 23163, 503, 288, 202, 202, 6385, 467, 1482, 8526, 1267, 273, 394, 467, 1482, 63, 21, 15533, 202, 202, 6385, 4115, 1528, 24916, 977, 1253, 273, 261, 7469, 1528, 24916, 13, 15627, 1253, 5621, 202, 202, 955, 1253, 18, 4479, 1595, 5621, 3196, 202, 698, 288, 1082, 202, 7624, 18, 2681, 12, 10259, 1769, 1082, 202, 2327, 63, 20, 65, 273, 1674, 18, 588, 1482, 5621, 1082, 202, 430, 261, 2327, 63, 20, 8009, 588, 1085, 1435, 422, 467, 1482, 18, 25268, 13, 288, 9506, 202, 2327, 63, 20, 65, 273, 2685, 18, 3141, 67, 8608, 31, 1082, 202, 97, 469, 309, 16051, 2327, 63, 20, 8009, 291, 3141, 10756, 288, 9506, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 6862, 202, 482, 918, 1086, 1435, 288, 25083, 202, 668, 6353, 18, 3190, 668, 12, 2011, 16, 315, 3305, 5167, 1068, 3113, 446, 16, 1267, 63, 20, 19226, 6862, 202, 97, 9506, 202, 22938, 9506, 202, 2327, 63, 20, 65, 273, 2685, 18, 3141, 67, 8608, 31, 1082, 202, 97, 202, 202, 97, 1044, 261, 9267, 14950, 425, 13, 288, 1082, 202, 759, 2660, 30, 9311, 4798, 8214, 1082, 202, 1079, 6353, 6862, 202, 18, 3190, 5369, 12, 6862, 1082, 202, 2011, 16, 6862, 1082, 202, 6, 19865, 15990, 11744, 1068, 3113, 6862, 1082, 202, 8723, 67, 19022, 67, 17623, 1769, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 4189, 23163, 503, 288, 202, 202, 6385, 467, 1482, 8526, 1267, 273, 394, 467, 1482, 63, 21, 15533, 202, 202, 6385, 4115, 1528, 24916, 977, 1253, 273, 261, 7469, 1528, 24916, 13, 15627, 1253, 5621, 202, 202, 955, 1253, 18, 4479, 1595, 5621, 3196, 202, 698, 288, 1082, 202, 7624, 18, 2681, 12, 10259, 1769, 1082, 202, 2327, 63, 20, 65, 273, 1674, 18, 588, 1482, 5621, 1082, 202, 430, 261, 2327, 63, 20, 8009, 588, 1085, 1435, 422, 467, 1482, 18, 25268, 13, 288, 9506, 202, 2327, 63, 20, 65, 273, 2685, 18, 3141, 67, 8608, 31, 1082, 202, 97, 469, 309, 16051, 2327, 63, 2 ]
if(log.isInfoEnabled()) log.info("received digest " + d);
if(log.isDebugEnabled()) log.debug("received digest " + d);
void stable(Digest d) { long seqno; NakReceiverWindow recv_win; Address sender; long my_highest_rcvd; // highest seqno received in my digest for a sender P long stability_highest_rcvd; // highest seqno received in the stability vector for a sender P if(members == null || local_addr == null || d == null) { if(log.isWarnEnabled()) log.warn("members, local_addr or digest are null !"); return; } if(log.isInfoEnabled()) log.info("received digest " + d); for(int i=0; i < d.size(); i++) { sender=d.senderAt(i); seqno=d.highSeqnoAt(i); if(sender == null) continue; // check whether the last seqno received for a sender P in the stability vector is > last seqno // received for P in my digest. if yes, request retransmission (see "Last Message Dropped" topic // in DESIGN) recv_win=(NakReceiverWindow)received_msgs.get(sender); if(recv_win != null) { my_highest_rcvd=recv_win.getHighestReceived(); stability_highest_rcvd=d.highSeqnoSeenAt(i); if(stability_highest_rcvd >= 0 && stability_highest_rcvd > my_highest_rcvd) { if(log.isDebugEnabled()) log.debug("my_highest_rcvd (" + my_highest_rcvd + ") < stability_highest_rcvd (" + stability_highest_rcvd + "): requesting retransmission of " + sender + "#" + stability_highest_rcvd); retransmit(stability_highest_rcvd, stability_highest_rcvd, sender); } } seqno-=gc_lag; if(seqno < 0) continue; if(log.isInfoEnabled()) log.info("deleting stable msgs < " + sender + "#" + seqno); // garbage collect from sent_msgs if sender was myself if(sender.equals(local_addr)) { if(log.isInfoEnabled()) log.info("removing [" + deleted_up_to + " - " + seqno + "] from sent_msgs"); for(long j=deleted_up_to; j <= seqno; j++) sent_msgs.remove(new Long(j)); deleted_up_to=seqno; } // delete *delivered* msgs that are stable // recv_win=(NakReceiverWindow)received_msgs.get(sender); if(recv_win != null) recv_win.stable(seqno); // delete all messages with seqnos <= seqno } }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/NAKACK.java/clean/src/org/jgroups/protocols/pbcast/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 14114, 12, 9568, 302, 13, 288, 3639, 1525, 30734, 31, 3639, 423, 581, 12952, 3829, 10665, 67, 8082, 31, 3639, 5267, 5793, 31, 3639, 1525, 3399, 67, 8766, 395, 67, 1310, 16115, 31, 3639, 368, 9742, 30734, 5079, 316, 3399, 5403, 364, 279, 5793, 453, 3639, 1525, 384, 2967, 67, 8766, 395, 67, 1310, 16115, 31, 368, 9742, 30734, 5079, 316, 326, 384, 2967, 3806, 364, 279, 5793, 453, 3639, 309, 12, 7640, 422, 446, 747, 1191, 67, 4793, 422, 446, 747, 302, 422, 446, 13, 288, 5411, 309, 12, 1330, 18, 291, 3160, 1526, 10756, 7734, 613, 18, 8935, 2932, 7640, 16, 1191, 67, 4793, 578, 5403, 854, 446, 401, 8863, 5411, 327, 31, 3639, 289, 3639, 309, 12, 1330, 18, 291, 966, 1526, 10756, 5411, 613, 18, 1376, 2932, 15213, 5403, 315, 397, 302, 1769, 3639, 364, 12, 474, 277, 33, 20, 31, 277, 411, 302, 18, 1467, 5621, 277, 27245, 288, 5411, 5793, 33, 72, 18, 15330, 861, 12, 77, 1769, 5411, 30734, 33, 72, 18, 8766, 6926, 2135, 861, 12, 77, 1769, 5411, 309, 12, 15330, 422, 446, 13, 7734, 1324, 31, 5411, 368, 866, 2856, 326, 1142, 30734, 5079, 364, 279, 5793, 453, 316, 326, 384, 2967, 3806, 353, 405, 1142, 30734, 5411, 368, 5079, 364, 453, 316, 3399, 5403, 18, 309, 12465, 16, 590, 283, 2338, 3951, 261, 5946, 315, 3024, 2350, 10895, 1845, 6, 3958, 5411, 368, 316, 2030, 11260, 13, 5411, 10665, 67, 8082, 28657, 50, 581, 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, 14114, 12, 9568, 302, 13, 288, 3639, 1525, 30734, 31, 3639, 423, 581, 12952, 3829, 10665, 67, 8082, 31, 3639, 5267, 5793, 31, 3639, 1525, 3399, 67, 8766, 395, 67, 1310, 16115, 31, 3639, 368, 9742, 30734, 5079, 316, 3399, 5403, 364, 279, 5793, 453, 3639, 1525, 384, 2967, 67, 8766, 395, 67, 1310, 16115, 31, 368, 9742, 30734, 5079, 316, 326, 384, 2967, 3806, 364, 279, 5793, 453, 3639, 309, 12, 7640, 422, 446, 747, 1191, 67, 4793, 422, 446, 747, 302, 422, 446, 13, 288, 5411, 309, 12, 1330, 18, 291, 3160, 1526, 10756, 7734, 613, 18, 8935, 2932, 7640, 16, 1191, 67, 4793, 578, 5403, 854, 446, 401, 8863, 5411, 327, 31, 3639, 289, 2 ]
public String getFacility() { return facilityStr;
public static int getFacility(final String facilityStr) { int code = -1; if (facilityStr != null) { for(int i = 0; i < FACILITIES.length; i++) { if (facilityStr.equalsIgnoreCase(FACILITIES[i])) { code = i << 3; break; } } } return code;
public String getFacility() { return facilityStr; }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/358db7836048d90b465643c46f1789fa3b78d400/SyslogAppender.java/clean/src/java/org/apache/log4j/net/SyslogAppender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 23424, 1889, 1435, 288, 565, 327, 28164, 1585, 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, 1071, 514, 23424, 1889, 1435, 288, 565, 327, 28164, 1585, 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 ]
fullFileName = root.getPackageName().replace( '.', File.separatorChar ) + File.separatorChar + root.getCPPClassName() + "Peer.cpp";
fullFileName += root.getPackageName().replace( '.', File.separatorChar ) + File.separatorChar + root.getCPPClassName() + "Peer.cpp";
public void generate(ClassNode root, PeerGenSettings peerGenSettings) throws java.io.IOException { this.peerGenSettings = peerGenSettings; String fullFileName = peerGenSettings.getProject().getCPPOutputDir() + File.separatorChar; if ( root.getPackageName().equals( "" ) == true ) fullFileName = root.getCPPClassName() + "Peer.cpp"; else fullFileName = root.getPackageName().replace( '.', File.separatorChar ) + File.separatorChar + root.getCPPClassName() + "Peer.cpp"; FormattedFileWriter writer = new FormattedFileWriter( fullFileName, peerGenSettings.isDestructive() || peerGenSettings.getUseInheritance() ); writer.outputLine( "#include \"" + root.getCPPClassName() + "Peer.h\"" ); writer.newLine( 1 ); Iterator it = root.getNamespaceElements(); if ( it.hasNext() == true ) { writer.output( "using namespace " + (String) it.next() ); while ( it.hasNext() == true ) writer.output( "::" + (String) it.next() ); writer.outputLine( ";" ); writer.newLine( 1 ); } writer.outputLine( root.getCPPClassName() + "Peer::" + root.getCPPClassName() + "Peer()" ); writer.outputLine( "{" ); writer.outputLine( "}" ); writer.newLine( 1 ); generateMethods( root, writer ); writer.flush(); writer.close(); }
25817 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25817/cfbf99dc0ce9f58afa43b362caad82428bb22506/CPPPeerImplGenerator.java/buggy/java/net/sourceforge/jnipp/peerGen/CPPPeerImplGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2103, 12, 797, 907, 1365, 16, 10669, 7642, 2628, 4261, 7642, 2628, 13, 202, 202, 15069, 2252, 18, 1594, 18, 14106, 202, 95, 202, 202, 2211, 18, 12210, 7642, 2628, 273, 4261, 7642, 2628, 31, 9506, 202, 780, 1983, 4771, 273, 4261, 7642, 2628, 18, 588, 4109, 7675, 588, 4258, 52, 1447, 1621, 1435, 397, 1387, 18, 11287, 2156, 31, 202, 202, 430, 261, 1365, 18, 588, 18308, 7675, 14963, 12, 1408, 262, 422, 638, 262, 1082, 202, 2854, 4771, 273, 1365, 18, 588, 4258, 52, 3834, 1435, 397, 315, 6813, 18, 4057, 84, 14432, 202, 202, 12107, 1082, 202, 2854, 4771, 273, 1365, 18, 588, 18308, 7675, 2079, 12, 2611, 16, 1387, 18, 11287, 2156, 262, 397, 1387, 18, 11287, 2156, 397, 1365, 18, 588, 4258, 52, 3834, 1435, 397, 315, 6813, 18, 4057, 84, 14432, 9506, 202, 18298, 812, 2289, 2633, 273, 394, 4077, 2344, 812, 2289, 12, 1983, 4771, 16, 4261, 7642, 2628, 18, 291, 6305, 8813, 688, 1435, 747, 4261, 7642, 2628, 18, 588, 3727, 28255, 1435, 11272, 202, 202, 6299, 18, 2844, 1670, 12, 6619, 6702, 11843, 397, 1365, 18, 588, 4258, 52, 3834, 1435, 397, 315, 6813, 18, 76, 8530, 11272, 202, 202, 6299, 18, 2704, 1670, 12, 404, 11272, 202, 202, 3198, 518, 273, 1365, 18, 588, 3402, 3471, 5621, 202, 202, 430, 261, 518, 18, 5332, 2134, 1435, 422, 638, 262, 202, 202, 95, 1082, 202, 6299, 18, 2844, 12, 315, 9940, 1981, 315, 397, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2103, 12, 797, 907, 1365, 16, 10669, 7642, 2628, 4261, 7642, 2628, 13, 202, 202, 15069, 2252, 18, 1594, 18, 14106, 202, 95, 202, 202, 2211, 18, 12210, 7642, 2628, 273, 4261, 7642, 2628, 31, 9506, 202, 780, 1983, 4771, 273, 4261, 7642, 2628, 18, 588, 4109, 7675, 588, 4258, 52, 1447, 1621, 1435, 397, 1387, 18, 11287, 2156, 31, 202, 202, 430, 261, 1365, 18, 588, 18308, 7675, 14963, 12, 1408, 262, 422, 638, 262, 1082, 202, 2854, 4771, 273, 1365, 18, 588, 4258, 52, 3834, 1435, 397, 315, 6813, 18, 4057, 84, 14432, 202, 202, 12107, 1082, 202, 2854, 4771, 273, 1365, 18, 588, 18308, 7675, 2079, 12, 2611, 16, 1387, 18, 11287, 2 ]
public void addElementMapping(String mappingClassName) { treeBuilder.addElementMapping(mappingClassName);
public void addElementMapping(ElementMapping mapping) { treeBuilder.addElementMapping(mapping);
public void addElementMapping(String mappingClassName) { treeBuilder.addElementMapping(mappingClassName); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/0b1b6d6ce4bb3fec5795b5e4248681b987d3fa53/Driver.java/clean/src/java/org/apache/fop/apps/Driver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9335, 3233, 12, 780, 2874, 3834, 13, 288, 3639, 13964, 18, 1289, 1046, 3233, 12, 6770, 3834, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 918, 9335, 3233, 12, 780, 2874, 3834, 13, 288, 3639, 13964, 18, 1289, 1046, 3233, 12, 6770, 3834, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
{ FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
private void initTxtWidth() { FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 21811, 2384, 1435, 202, 95, 202, 202, 5711, 5653, 4309, 273, 18776, 5653, 12, 588, 5711, 10663, 202, 202, 5830, 2384, 273, 4309, 18, 3001, 2384, 2668, 81, 8284, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 21811, 2384, 1435, 202, 95, 202, 202, 5711, 5653, 4309, 273, 18776, 5653, 12, 588, 5711, 10663, 202, 202, 5830, 2384, 273, 4309, 18, 3001, 2384, 2668, 81, 8284, 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 ]
panel.setBorder(new EmptyBorder(3,0,9,0));
private JPanel createFieldPanel(String user, String password) { GridBagLayout layout = new GridBagLayout(); JPanel panel = new JPanel(layout); panel.setBorder(new EmptyBorder(3,0,9,0)); GridBagConstraints cons = new GridBagConstraints(); cons.insets = new Insets(3,6,3,3); cons.gridwidth = cons.gridheight = 1; cons.gridx = cons.gridy = 0; cons.fill = GridBagConstraints.BOTH; JLabel label = new JLabel(jEdit.getProperty("login.user"), SwingConstants.RIGHT); layout.setConstraints(label,cons); panel.add(label); userField = new JTextField(user); cons.gridx = 1; cons.weightx = 1.0f; layout.setConstraints(userField,cons); panel.add(userField); label = new JLabel(jEdit.getProperty("login.password"), SwingConstants.RIGHT); cons.gridx = 0; cons.weightx = 0.0f; cons.gridy = 1; layout.setConstraints(label,cons); panel.add(label); passwordField = new JPasswordField(password); cons.gridx = 1; cons.weightx = 1.0f; layout.setConstraints(passwordField,cons); panel.add(passwordField); return panel; }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/5f1ade6245a86c556d08b078eb07bcab6fee82c4/LoginDialog.java/buggy/org/gjt/sp/jedit/gui/LoginDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 24048, 752, 974, 5537, 12, 780, 729, 16, 514, 2201, 13, 202, 95, 202, 202, 6313, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 202, 202, 46, 5537, 6594, 273, 394, 24048, 12, 6741, 1769, 202, 202, 13916, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 23, 16, 20, 16, 29, 16, 20, 10019, 202, 202, 6313, 6852, 1959, 273, 394, 13075, 5621, 202, 202, 8559, 18, 267, 4424, 273, 394, 22300, 12, 23, 16, 26, 16, 23, 16, 23, 1769, 202, 202, 8559, 18, 5222, 2819, 273, 1959, 18, 5222, 4210, 273, 404, 31, 202, 202, 8559, 18, 5222, 92, 273, 1959, 18, 5222, 93, 273, 374, 31, 202, 202, 8559, 18, 5935, 273, 13075, 18, 38, 18307, 31, 202, 202, 46, 2224, 1433, 273, 394, 21403, 12, 78, 4666, 18, 588, 1396, 2932, 5819, 18, 1355, 6, 3631, 1082, 202, 6050, 310, 2918, 18, 11847, 1769, 202, 202, 6741, 18, 542, 4878, 12, 1925, 16, 8559, 1769, 202, 202, 13916, 18, 1289, 12, 1925, 1769, 202, 202, 1355, 974, 273, 394, 804, 16157, 12, 1355, 1769, 202, 202, 8559, 18, 5222, 92, 273, 404, 31, 202, 202, 8559, 18, 4865, 92, 273, 404, 18, 20, 74, 31, 202, 202, 6741, 18, 542, 4878, 12, 1355, 974, 16, 8559, 1769, 202, 202, 13916, 18, 1289, 12, 1355, 974, 1769, 202, 202, 1925, 273, 394, 21403, 12, 78, 4666, 18, 588, 1396, 2932, 5819, 18, 3664, 6, 3631, 1082, 202, 6050, 310, 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, 1152, 24048, 752, 974, 5537, 12, 780, 729, 16, 514, 2201, 13, 202, 95, 202, 202, 6313, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 202, 202, 46, 5537, 6594, 273, 394, 24048, 12, 6741, 1769, 202, 202, 13916, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 23, 16, 20, 16, 29, 16, 20, 10019, 202, 202, 6313, 6852, 1959, 273, 394, 13075, 5621, 202, 202, 8559, 18, 267, 4424, 273, 394, 22300, 12, 23, 16, 26, 16, 23, 16, 23, 1769, 202, 202, 8559, 18, 5222, 2819, 273, 1959, 18, 5222, 4210, 273, 404, 31, 202, 202, 8559, 18, 5222, 92, 273, 1959, 18, 5222, 93, 273, 374, 31, 202, 202, 8559, 18, 5935, 273, 2 ]
asm.emitLAddrToc(sro0, off);
asm.emitLAddrToc(sro0, offset);
protected void emit_ldc(int offset) { if (unreachableBytecode) return; if (VM.BuildFor64Addr) { if (VM.VerifyAssertions) VM._assert(NOT_REACHED); } byte slotDescription = VM_Statics.getSlotDescription(offset>>LOG_BYTES_IN_INT); Offset off = Offset.fromIntSignExtend(offset); switch (slotDescription) { case VM_Statics.FLOAT_LITERAL: assignRegisters(0, FLOAT_TYPE); asm.emitLFStoc(sro0, off, S0); break; case VM_Statics.STRING_LITERAL: assignRegisters(0, OBJECT_TYPE); asm.emitLAddrToc(sro0, off); break; default: assignRegisters(0, WORD_TYPE); asm.emitLIntToc(sro0, off); break; } cleanupRegisters(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/512b7ae853c6979c3f6acf302871ef9527123d44/VM_QuickCompiler.java/buggy/rvm/src/vm/arch/powerPC/compilers/quick/VM_QuickCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3626, 67, 1236, 71, 12, 474, 1384, 13, 288, 565, 309, 261, 318, 17246, 858, 16651, 13, 327, 31, 565, 309, 261, 7397, 18, 3116, 1290, 1105, 3178, 13, 288, 1377, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 4400, 67, 29416, 15023, 1769, 565, 289, 565, 1160, 4694, 3291, 273, 8251, 67, 5000, 2102, 18, 588, 8764, 3291, 12, 3348, 9778, 4842, 67, 13718, 67, 706, 67, 3217, 1769, 565, 9874, 3397, 273, 9874, 18, 2080, 1702, 2766, 16675, 12, 3348, 1769, 377, 1620, 261, 14194, 3291, 13, 288, 565, 648, 8251, 67, 5000, 2102, 18, 15640, 67, 23225, 30, 1377, 2683, 10277, 12, 20, 16, 225, 15483, 67, 2399, 1769, 1377, 20415, 18, 18356, 9105, 510, 504, 12, 87, 303, 20, 16, 225, 3397, 16, 348, 20, 1769, 1377, 898, 31, 565, 648, 8251, 67, 5000, 2102, 18, 5804, 67, 23225, 30, 1377, 2683, 10277, 12, 20, 16, 225, 12166, 67, 2399, 1769, 1377, 20415, 18, 18356, 48, 3178, 56, 504, 12, 87, 303, 20, 16, 225, 1384, 1769, 1377, 898, 31, 565, 805, 30, 1377, 2683, 10277, 12, 20, 16, 225, 21464, 67, 2399, 1769, 1377, 20415, 18, 18356, 48, 1702, 56, 504, 12, 87, 303, 20, 16, 225, 3397, 1769, 1377, 898, 31, 565, 289, 565, 6686, 10277, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3626, 67, 1236, 71, 12, 474, 1384, 13, 288, 565, 309, 261, 318, 17246, 858, 16651, 13, 327, 31, 565, 309, 261, 7397, 18, 3116, 1290, 1105, 3178, 13, 288, 1377, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 4400, 67, 29416, 15023, 1769, 565, 289, 565, 1160, 4694, 3291, 273, 8251, 67, 5000, 2102, 18, 588, 8764, 3291, 12, 3348, 9778, 4842, 67, 13718, 67, 706, 67, 3217, 1769, 565, 9874, 3397, 273, 9874, 18, 2080, 1702, 2766, 16675, 12, 3348, 1769, 377, 1620, 261, 14194, 3291, 13, 288, 565, 648, 8251, 67, 5000, 2102, 18, 15640, 67, 23225, 30, 1377, 2683, 10277, 12, 20, 16, 225, 15483, 67, 2399, 1769, 2 ]
throw new InvalidInputException( Main.bind("configure.invalidDebugOption", debugOption)); } }
switch (state) { case start: case readyToCloseOrOtherEntry: state = readyToClose; currentClasspathName = token; break; case rulesNeedAnotherRule: case rulesStart: state = rulesReadyToClose; currentRuleSpecs.add(token); break; default: state = error; } } } switch(state) { case readyToClose : case readyToCloseEndingWithRules : case readyToCloseOrOtherEntry : addNewEntry(INSIDE_CLASSPATH, INSIDE_SOURCE_PATH, bootclasspaths, classpaths, sourcepathClasspaths, currentClasspathName, currentRuleSpecs, mode, customEncoding); break; default : this.logger.logIncorrectClasspath(currentArg); } mode = DEFAULT;
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int InsideLog = 8; final int InsideRepetition = 16; final int InsideSource = 32; final int InsideDefaultEncoding = 64; final int InsideBootClasspath = 128; final int InsideMaxProblems = 256; final int InsideExtdirs = 512; final int InsideSourcepath = 1024; final int Default = 0; int DEFAULT_SIZE_CLASSPATH = 4; ArrayList bootclasspaths = new ArrayList(DEFAULT_SIZE_CLASSPATH), extdirsClasspaths = new ArrayList(DEFAULT_SIZE_CLASSPATH), extdirsNames = new ArrayList(DEFAULT_SIZE_CLASSPATH), sourcepathClasspaths = new ArrayList(DEFAULT_SIZE_CLASSPATH), classpaths = new ArrayList(DEFAULT_SIZE_CLASSPATH); String currentClasspathName = null; ArrayList currentRuleSpecs = new ArrayList(DEFAULT_SIZE_CLASSPATH); int index = -1, filesCount = 0, argCount = argv.length; int mode = Default; this.repetitions = 0; boolean printUsageRequired = false; boolean printVersionRequired = false; boolean didSpecifySource = false; boolean didSpecifyCompliance = false; boolean didSpecifyDefaultEncoding = false; boolean didSpecifyTarget = false; boolean didSpecifyDeprecation = false; boolean didSpecifyWarnings = false; boolean useEnableJavadoc = false; String customEncoding = null; String currentArg = ""; //$NON-NLS-1$ // expand the command line if necessary boolean needExpansion = false; loop: for (int i = 0; i < argCount; i++) { if (argv[i].startsWith("@")) { //$NON-NLS-1$ needExpansion = true; break loop; } } String[] newCommandLineArgs = null; if (needExpansion) { newCommandLineArgs = new String[argCount]; index = 0; for (int i = 0; i < argCount; i++) { String[] newArgs = null; String arg = argv[i].trim(); if (arg.startsWith("@")) { //$NON-NLS-1$ try { LineNumberReader reader = new LineNumberReader(new StringReader(new String(Util.getFileCharContent(new File(arg.substring(1)), null)))); StringBuffer buffer = new StringBuffer(); String line; while((line = reader.readLine()) != null) { line = line.trim(); if (!line.startsWith("#")) { //$NON-NLS-1$ buffer.append(line).append(" "); //$NON-NLS-1$ } } newArgs = tokenize(buffer.toString()); } catch(IOException e) { throw new InvalidInputException( Main.bind("configure.invalidexpansionargumentname", arg)); //$NON-NLS-1$ } } if (newArgs != null) { int newCommandLineArgsLength = newCommandLineArgs.length; int newArgsLength = newArgs.length; System.arraycopy(newCommandLineArgs, 0, (newCommandLineArgs = new String[newCommandLineArgsLength + newArgsLength - 1]), 0, index); System.arraycopy(newArgs, 0, newCommandLineArgs, index, newArgsLength); index += newArgsLength; } else { newCommandLineArgs[index++] = arg; } } index = -1; } else { newCommandLineArgs = argv; for (int i = 0; i < argCount; i++) { newCommandLineArgs[i] = newCommandLineArgs[i].trim(); } } argCount = newCommandLineArgs.length; while (++index < argCount) { if (customEncoding != null) { throw new InvalidInputException( Main.bind("configure.unexpectedCustomEncoding", currentArg, customEncoding)); //$NON-NLS-1$ } currentArg = newCommandLineArgs[index]; customEncoding = null; if (currentArg.endsWith("]") && !(mode == InsideBootClasspath || mode == InsideClasspath || //$NON-NLS-1$ mode == InsideSourcepath) ) { // look for encoding specification int encodingStart = currentArg.indexOf('[') + 1; int encodingEnd = currentArg.length() - 1; if (encodingStart >= 1) { if (encodingStart < encodingEnd) { customEncoding = currentArg.substring(encodingStart, encodingEnd); try { // ensure encoding is supported new InputStreamReader(new ByteArrayInputStream(new byte[0]), customEncoding); } catch (UnsupportedEncodingException e) { throw new InvalidInputException( Main.bind("configure.unsupportedEncoding", customEncoding)); //$NON-NLS-1$ } } currentArg = currentArg.substring(0, encodingStart - 1); } } if (currentArg.endsWith(SUFFIX_STRING_java)) { if (this.filenames == null) { this.filenames = new String[argCount - index]; this.encodings = new String[argCount - index]; } else if (filesCount == this.filenames.length) { int length = this.filenames.length; System.arraycopy( this.filenames, 0, (this.filenames = new String[length + argCount - index]), 0, length); System.arraycopy( this.encodings, 0, (this.encodings = new String[length + argCount - index]), 0, length); } this.filenames[filesCount] = currentArg; this.encodings[filesCount++] = customEncoding; customEncoding = null; mode = Default; continue; } if (currentArg.equals("-log")) { //$NON-NLS-1$ if (this.log != null) throw new InvalidInputException( Main.bind("configure.duplicateLog", currentArg)); //$NON-NLS-1$ mode = InsideLog; continue; } if (currentArg.equals("-repeat")) { //$NON-NLS-1$ if (this.repetitions > 0) throw new InvalidInputException( Main.bind("configure.duplicateRepeat", currentArg)); //$NON-NLS-1$ mode = InsideRepetition; continue; } if (currentArg.equals("-maxProblems")) { //$NON-NLS-1$ if (this.maxProblems > 0) throw new InvalidInputException( Main.bind("configure.duplicateMaxProblems", currentArg)); //$NON-NLS-1$ mode = InsideMaxProblems; continue; } if (currentArg.equals("-source")) { //$NON-NLS-1$ mode = InsideSource; continue; } if (currentArg.equals("-encoding")) { //$NON-NLS-1$ mode = InsideDefaultEncoding; continue; } if (currentArg.equals("-1.3")) { //$NON-NLS-1$ if (didSpecifyCompliance) { throw new InvalidInputException( Main.bind("configure.duplicateCompliance", currentArg));//$NON-NLS-1$ } didSpecifyCompliance = true; this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_3); mode = Default; continue; } if (currentArg.equals("-1.4")) { //$NON-NLS-1$ if (didSpecifyCompliance) { throw new InvalidInputException( Main.bind("configure.duplicateCompliance", currentArg)); //$NON-NLS-1$ } didSpecifyCompliance = true; this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_4); mode = Default; continue; } if (currentArg.equals("-1.5") || currentArg.equals("-5") || currentArg.equals("-5.0")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if (didSpecifyCompliance) { throw new InvalidInputException( Main.bind("configure.duplicateCompliance", currentArg)); //$NON-NLS-1$ } didSpecifyCompliance = true; this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); mode = Default; continue; } if (currentArg.equals("-1.6") || currentArg.equals("-6") || currentArg.equals("-6.0")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if (didSpecifyCompliance) { throw new InvalidInputException( Main.bind("configure.duplicateCompliance", currentArg)); //$NON-NLS-1$ } didSpecifyCompliance = true; this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6); mode = Default; continue; } if (currentArg.equals("-d")) { //$NON-NLS-1$ if (this.destinationPath != null) throw new InvalidInputException( Main.bind("configure.duplicateOutputPath", currentArg)); //$NON-NLS-1$ mode = InsideDestinationPath; this.generatePackagesStructure = true; continue; } if (currentArg.equals("-classpath") //$NON-NLS-1$ || currentArg.equals("-cp")) { //$NON-NLS-1$ mode = InsideClasspath; continue; } if (currentArg.equals("-bootclasspath")) {//$NON-NLS-1$ if (bootclasspaths.size() > 0) throw new InvalidInputException( Main.bind("configure.duplicateBootClasspath", currentArg)); //$NON-NLS-1$ mode = InsideBootClasspath; continue; } if (currentArg.equals("-sourcepath")) {//$NON-NLS-1$ if (sourcepathClasspaths.size() > 0) throw new InvalidInputException( Main.bind("configure.duplicateSourcepath", currentArg)); //$NON-NLS-1$ mode = InsideSourcepath; continue; } if (currentArg.equals("-extdirs")) {//$NON-NLS-1$ if (extdirsNames.size() > 0) throw new InvalidInputException( Main.bind("configure.duplicateExtdirs", currentArg)); //$NON-NLS-1$ mode = InsideExtdirs; continue; } if (currentArg.equals("-progress")) { //$NON-NLS-1$ mode = Default; this.showProgress = true; continue; } if (currentArg.equals("-proceedOnError")) { //$NON-NLS-1$ mode = Default; this.proceedOnError = true; continue; } if (currentArg.equals("-time")) { //$NON-NLS-1$ mode = Default; this.timing = true; continue; } if (currentArg.equals("-version") //$NON-NLS-1$ || currentArg.equals("-v")) { //$NON-NLS-1$ this.logger.logVersion(true); this.proceed = false; return; } if (currentArg.equals("-showversion")) { //$NON-NLS-1$ printVersionRequired = true; continue; } if ("-deprecation".equals(currentArg)) { //$NON-NLS-1$ didSpecifyDeprecation = true; this.options.put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.WARNING); continue; } if (currentArg.equals("-help") || currentArg.equals("-?")) { //$NON-NLS-1$ //$NON-NLS-2$ printUsageRequired = true; continue; } if (currentArg.equals("-noExit")) { //$NON-NLS-1$ mode = Default; this.systemExitWhenFinished = false; continue; } if (currentArg.equals("-verbose")) { //$NON-NLS-1$ mode = Default; this.verbose = true; continue; } if (currentArg.equals("-referenceInfo")) { //$NON-NLS-1$ mode = Default; this.produceRefInfo = true; continue; } if (currentArg.equals("-inlineJSR")) { //$NON-NLS-1$ mode = Default; this.options.put( CompilerOptions.OPTION_InlineJsr, CompilerOptions.ENABLED); continue; } if (currentArg.startsWith("-g")) { //$NON-NLS-1$ mode = Default; String debugOption = currentArg; int length = currentArg.length(); if (length == 2) { this.options.put( CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.GENERATE); this.options.put( CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); this.options.put( CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.GENERATE); continue; } if (length > 3) { this.options.put( CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.DO_NOT_GENERATE); this.options.put( CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.DO_NOT_GENERATE); this.options.put( CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.DO_NOT_GENERATE); if (length == 7 && debugOption.equals("-g:none")) //$NON-NLS-1$ continue; StringTokenizer tokenizer = new StringTokenizer(debugOption.substring(3, debugOption.length()), ","); //$NON-NLS-1$ while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); if (token.equals("vars")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_LocalVariableAttribute, CompilerOptions.GENERATE); } else if (token.equals("lines")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_LineNumberAttribute, CompilerOptions.GENERATE); } else if (token.equals("source")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_SourceFileAttribute, CompilerOptions.GENERATE); } else { throw new InvalidInputException( Main.bind("configure.invalidDebugOption", debugOption)); //$NON-NLS-1$ } } continue; } throw new InvalidInputException( Main.bind("configure.invalidDebugOption", debugOption)); //$NON-NLS-1$ } if (currentArg.startsWith("-nowarn")) { //$NON-NLS-1$ disableWarnings(); mode = Default; continue; } if (currentArg.startsWith("-warn")) { //$NON-NLS-1$ mode = Default; String warningOption = currentArg; int length = currentArg.length(); if (length == 10 && warningOption.equals("-warn:none")) { //$NON-NLS-1$ disableWarnings(); continue; } if (length <= 6) { throw new InvalidInputException( Main.bind("configure.invalidWarningConfiguration", warningOption)); //$NON-NLS-1$ } int warnTokenStart; boolean isEnabling; switch (warningOption.charAt(6)) { case '+' : warnTokenStart = 7; isEnabling = true; break; case '-' : warnTokenStart = 7; isEnabling = false; // mentionned warnings are disabled break; default: warnTokenStart = 6; // clear default warning level // but allow multiple warning option on the command line if (!didSpecifyWarnings) disableWarnings(); isEnabling = true; } StringTokenizer tokenizer = new StringTokenizer(warningOption.substring(warnTokenStart, warningOption.length()), ","); //$NON-NLS-1$ int tokenCounter = 0; if (didSpecifyDeprecation) { // deprecation could have also been set through -deprecation option this.options.put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.WARNING); } while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); tokenCounter++; if (token.equals("constructorName")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportMethodWithConstructorName, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("pkgDefaultMethod") || token.equals("packageDefaultMethod")/*backward compatible*/ ) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportOverridingPackageDefaultMethod, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("maskedCatchBlock") || token.equals("maskedCatchBlocks")/*backward compatible*/) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportHiddenCatchBlock, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("deprecation")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportDeprecation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode, CompilerOptions.DISABLED); this.options.put( CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, CompilerOptions.DISABLED); } else if (token.equals("allDeprecation")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportDeprecation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode, isEnabling ? CompilerOptions.ENABLED : CompilerOptions.DISABLED); this.options.put( CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, isEnabling ? CompilerOptions.ENABLED : CompilerOptions.DISABLED); } else if (token.equals("unusedLocal") || token.equals("unusedLocals")/*backward compatible*/) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportUnusedLocal, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unusedArgument") || token.equals("unusedArguments")/*backward compatible*/) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportUnusedParameter, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unusedImport") || token.equals("unusedImports")/*backward compatible*/) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportUnusedImport, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unusedPrivate")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnusedPrivateMember, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unusedLabel")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnusedLabel, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("localHiding")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportLocalVariableHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("fieldHiding")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportFieldHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("specialParamHiding")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportSpecialParameterHidingField, isEnabling ? CompilerOptions.ENABLED : CompilerOptions.DISABLED); } else if (token.equals("conditionAssign")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportPossibleAccidentalBooleanAssignment, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("syntheticAccess") //$NON-NLS-1$ || token.equals("synthetic-access")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportSyntheticAccessEmulation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("nls")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportNonExternalizedStringLiteral, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("staticReceiver")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportNonStaticAccessToStatic, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("indirectStatic")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportIndirectStaticAccess, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("noEffectAssign")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportNoEffectAssignment, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("intfNonInherited") || token.equals("interfaceNonInherited")/*backward compatible*/) { //$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportIncompatibleNonInheritedInterfaceMethod, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("charConcat") || token.equals("noImplicitStringConversion")/*backward compatible*/) {//$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportNoImplicitStringConversion, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("semicolon")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportEmptyStatement, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("serial")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportMissingSerialVersion, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("emptyBlock")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUndocumentedEmptyBlock, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("uselessTypeCheck")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnnecessaryTypeCheck, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unchecked") || token.equals("unsafe")) {//$NON-NLS-1$ //$NON-NLS-2$ this.options.put( CompilerOptions.OPTION_ReportUncheckedTypeOperation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("raw")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportRawTypeReference, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("finalBound")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportFinalParameterBound, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("suppress")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_SuppressWarnings, isEnabling ? CompilerOptions.ENABLED : CompilerOptions.DISABLED); } else if (token.equals("warningToken")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnhandledWarningToken, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unnecessaryElse")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnnecessaryElse, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("javadoc")) {//$NON-NLS-1$ if (!useEnableJavadoc) { this.options.put( CompilerOptions.OPTION_DocCommentSupport, isEnabling ? CompilerOptions.ENABLED: CompilerOptions.DISABLED); } // if disabling then it's not necessary to set other javadoc options if (isEnabling) { this.options.put( CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.ENABLED); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTagsDeprecatedRef, CompilerOptions.DISABLED); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTagsNotVisibleRef, CompilerOptions.DISABLED); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTagsVisibility, CompilerOptions.PRIVATE); this.options.put( CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.WARNING); this.options.put( CompilerOptions.OPTION_ReportMissingJavadocTagsVisibility, CompilerOptions.PRIVATE); } } else if (token.equals("allJavadoc")) { //$NON-NLS-1$ if (!useEnableJavadoc) { this.options.put( CompilerOptions.OPTION_DocCommentSupport, isEnabling ? CompilerOptions.ENABLED: CompilerOptions.DISABLED); } // if disabling then it's not necessary to set other javadoc options if (isEnabling) { this.options.put( CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.ENABLED); this.options.put( CompilerOptions.OPTION_ReportInvalidJavadocTagsVisibility, CompilerOptions.PRIVATE); this.options.put( CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.WARNING); this.options.put( CompilerOptions.OPTION_ReportMissingJavadocTagsVisibility, CompilerOptions.PRIVATE); this.options.put( CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.WARNING); } } else if (token.startsWith("tasks")) { //$NON-NLS-1$ String taskTags = ""; //$NON-NLS-1$ int start = token.indexOf('('); int end = token.indexOf(')'); if (start >= 0 && end >= 0 && start < end){ taskTags = token.substring(start+1, end).trim(); taskTags = taskTags.replace('|',','); } if (taskTags.length() == 0){ throw new InvalidInputException(Main.bind("configure.invalidTaskTag", token)); //$NON-NLS-1$ } this.options.put( CompilerOptions.OPTION_TaskTags, isEnabling ? taskTags : ""); //$NON-NLS-1$ } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportAssertIdentifier, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("enumIdentifier")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportEnumIdentifier, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("finally")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportFinallyBlockNotCompletingNormally, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unusedThrown")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unqualifiedField") //$NON-NLS-1$ || token.equals("unqualified-field-access")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnqualifiedFieldAccess, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("typeHiding")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportTypeParameterHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("varargsCast")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportVarargsArgumentNeedCast, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("null")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportNullReference, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("boxing")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportAutoboxing, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("over-ann")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportMissingOverrideAnnotation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("dep-ann")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportMissingDeprecatedAnnotation, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("intfAnnotation")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportAnnotationSuperInterface, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("enumSwitch") //$NON-NLS-1$ || token.equals("incomplete-switch")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportIncompleteEnumSwitch, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("hiding")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportHiddenCatchBlock, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportLocalVariableHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportFieldHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportTypeParameterHiding, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("static-access")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportNonStaticAccessToStatic, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportIndirectStaticAccess, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("unused")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportUnusedLocal, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportUnusedParameter, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportUnusedImport, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportUnusedPrivateMember, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); this.options.put( CompilerOptions.OPTION_ReportUnusedLabel, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("paramAssign")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportParameterAssignment, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("discouraged")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportDiscouragedReference, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("forbidden")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportForbiddenReference, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else if (token.equals("fallthrough")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_ReportFallthroughCase, isEnabling ? CompilerOptions.WARNING : CompilerOptions.IGNORE); } else { throw new InvalidInputException(Main.bind("configure.invalidWarning", token)); //$NON-NLS-1$ } } if (tokenCounter == 0) throw new InvalidInputException( Main.bind("configure.invalidWarningOption", currentArg)); //$NON-NLS-1$ didSpecifyWarnings = true; continue; } if (currentArg.equals("-target")) { //$NON-NLS-1$ mode = TargetSetting; continue; } if (currentArg.equals("-preserveAllLocals")) { //$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_PreserveUnusedLocal, CompilerOptions.PRESERVE); continue; } if (currentArg.equals("-enableJavadoc")) {//$NON-NLS-1$ this.options.put( CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED); useEnableJavadoc = true; continue; } if (currentArg.equals("-Xemacs")) { //$NON-NLS-1$ mode = Default; this.logger.setEmacs(); continue; } // tolerated javac options - quietly filtered out if (currentArg.startsWith("-X")) { //$NON-NLS-1$ mode = Default; continue; } if (currentArg.startsWith("-J")) { //$NON-NLS-1$ mode = Default; continue; } if (currentArg.equals("-O")) { //$NON-NLS-1$ mode = Default; continue; } if (currentArg.equals("-sourcepath")) {//$NON-NLS-1$ if (sourcepathClasspaths.size() > 0) throw new InvalidInputException( Main.bind("configure.duplicateSourcepath", currentArg)); //$NON-NLS-1$ mode = InsideSourcepath; continue; } if (currentArg.equals("-extdirs")) {//$NON-NLS-1$ if (extdirsNames.size() > 0) throw new InvalidInputException( Main.bind("configure.duplicateExtdirs", currentArg)); //$NON-NLS-1$ mode = InsideExtdirs; continue; } if (mode == TargetSetting) { if (didSpecifyTarget) { throw new InvalidInputException( Main.bind("configure.duplicateTarget", currentArg));//$NON-NLS-1$ } didSpecifyTarget = true; if (currentArg.equals("1.1")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_1); } else if (currentArg.equals("1.2")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2); } else if (currentArg.equals("1.3")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_3); } else if (currentArg.equals("1.4")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4); if (didSpecifyCompliance) { if (CompilerOptions.versionToJdkLevel(this.options.get(CompilerOptions.OPTION_Compliance)) < ClassFileConstants.JDK1_4) { throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForTarget", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_4)); //$NON-NLS-1$ } } else { this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_4); } } else if (currentArg.equals("1.5") || currentArg.equals("5") || currentArg.equals("5.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); if (didSpecifyCompliance) { if (CompilerOptions.versionToJdkLevel(this.options.get(CompilerOptions.OPTION_Compliance)) < ClassFileConstants.JDK1_5) { throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForTarget", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_5)); //$NON-NLS-1$ } } else { this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); } } else if (currentArg.equals("1.6") || currentArg.equals("6") || currentArg.equals("6.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6); if (didSpecifyCompliance) { if (CompilerOptions.versionToJdkLevel(this.options.get(CompilerOptions.OPTION_Compliance)) < ClassFileConstants.JDK1_6) { throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForTarget", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_6)); //$NON-NLS-1$ } } else { this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6); } } else { throw new InvalidInputException(Main.bind("configure.targetJDK", currentArg)); //$NON-NLS-1$ } mode = Default; continue; } if (mode == InsideLog) { this.log = currentArg; mode = Default; continue; } if (mode == InsideRepetition) { try { this.repetitions = Integer.parseInt(currentArg); if (this.repetitions <= 0) { throw new InvalidInputException(Main.bind("configure.repetition", currentArg)); //$NON-NLS-1$ } } catch (NumberFormatException e) { throw new InvalidInputException(Main.bind("configure.repetition", currentArg)); //$NON-NLS-1$ } mode = Default; continue; } if (mode == InsideMaxProblems) { try { this.maxProblems = Integer.parseInt(currentArg); if (this.maxProblems <= 0) { throw new InvalidInputException(Main.bind("configure.maxProblems", currentArg)); //$NON-NLS-1$ } this.options.put(CompilerOptions.OPTION_MaxProblemPerUnit, currentArg); } catch (NumberFormatException e) { throw new InvalidInputException(Main.bind("configure.maxProblems", currentArg)); //$NON-NLS-1$ } mode = Default; continue; } if (mode == InsideSource) { if (didSpecifySource) { throw new InvalidInputException( Main.bind("configure.duplicateSource", currentArg));//$NON-NLS-1$ } didSpecifySource = true; if (currentArg.equals("1.3")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3); } else if (currentArg.equals("1.4")) { //$NON-NLS-1$ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_4); } else if (currentArg.equals("1.5") || currentArg.equals("5") || currentArg.equals("5.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); } else if (currentArg.equals("1.6") || currentArg.equals("6") || currentArg.equals("6.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6); } else { throw new InvalidInputException(Main.bind("configure.source", currentArg)); //$NON-NLS-1$ } mode = Default; continue; } if (mode == InsideDefaultEncoding) { if (didSpecifyDefaultEncoding) { throw new InvalidInputException( Main.bind("configure.duplicateDefaultEncoding", currentArg)); //$NON-NLS-1$ } try { // ensure encoding is supported new InputStreamReader(new ByteArrayInputStream(new byte[0]), currentArg); } catch (UnsupportedEncodingException e) { throw new InvalidInputException( Main.bind("configure.unsupportedEncoding", currentArg)); //$NON-NLS-1$ } this.options.put(CompilerOptions.OPTION_Encoding, currentArg); didSpecifyDefaultEncoding = true; mode = Default; continue; } if (mode == InsideDestinationPath) { this.destinationPath = currentArg; mode = Default; continue; } if (mode == InsideClasspath || mode == InsideBootClasspath || mode == InsideSourcepath) { StringTokenizer tokenizer = new StringTokenizer(currentArg, File.pathSeparator + "[]", true); //$NON-NLS-1$ // state machine final int start = 0; final int readyToClose = 1; // 'path' 'path1[rule];path2' final int readyToCloseEndingWithRules = 2; // 'path[rule]' 'path1;path2[rule]' final int readyToCloseOrOtherEntry = 3; // 'path[rule];' 'path;' 'path1;path2;' final int rulesNeedAnotherRule = 4; // 'path[rule1;' final int rulesStart = 5; // 'path[' 'path1;path2[' final int rulesReadyToClose = 6; // 'path[rule' 'path[rule1;rule2' final int error = 99; int state = start; String token = null; while (tokenizer.hasMoreTokens()) { token = tokenizer.nextToken(); if (token.equals(File.pathSeparator)) { switch (state) { case start: break; case readyToClose: case readyToCloseEndingWithRules: case readyToCloseOrOtherEntry: state = readyToCloseOrOtherEntry; addNewEntry(InsideClasspath, InsideSourcepath, bootclasspaths, classpaths, sourcepathClasspaths, currentClasspathName, currentRuleSpecs, mode, customEncoding); currentRuleSpecs.clear(); break; case rulesReadyToClose: state = rulesNeedAnotherRule; break; default: state = error; } } else if (token.equals("[")) { //$NON-NLS-1$ switch (state) { case readyToClose: state = rulesStart; break; default: state = error; } } else if (token.equals("]")) { //$NON-NLS-1$ switch (state) { case rulesReadyToClose: state = readyToCloseEndingWithRules; break; default: state = error; } } else { // regular word switch (state) { case start: case readyToCloseOrOtherEntry: state = readyToClose; currentClasspathName = token; break; case rulesNeedAnotherRule: case rulesStart: state = rulesReadyToClose; currentRuleSpecs.add(token); break; default: state = error; } } } switch(state) { case readyToClose : case readyToCloseEndingWithRules : case readyToCloseOrOtherEntry : addNewEntry(InsideClasspath, InsideSourcepath, bootclasspaths, classpaths, sourcepathClasspaths, currentClasspathName, currentRuleSpecs, mode, customEncoding); break; default : // we go on anyway this.logger.logIncorrectClasspath(currentArg); } mode = Default; continue; } if (mode == InsideExtdirs) { StringTokenizer tokenizer = new StringTokenizer(currentArg, File.pathSeparator, false); while (tokenizer.hasMoreTokens()) extdirsNames.add(tokenizer.nextToken()); if (extdirsNames.size() == 0) // empty entry extdirsNames.add(""); //$NON-NLS-1$ mode = Default; continue; } //default is input directory currentArg = currentArg.replace('/', File.separatorChar); if (currentArg.endsWith(File.separator)) currentArg = currentArg.substring(0, currentArg.length() - File.separator.length()); File dir = new File(currentArg); if (!dir.isDirectory()) throw new InvalidInputException( Main.bind("configure.directoryNotExist", currentArg)); //$NON-NLS-1$ FileFinder finder = new FileFinder(); try { finder.find(dir, SUFFIX_STRING_JAVA, this.verbose); } catch (Exception e) { throw new InvalidInputException(Main.bind("configure.IOError", currentArg)); //$NON-NLS-1$ } if (this.filenames != null) { // some source files were specified explicitly String results[] = finder.resultFiles; int length = results.length; System.arraycopy( this.filenames, 0, (this.filenames = new String[length + filesCount]), 0, filesCount); System.arraycopy( this.encodings, 0, (this.encodings = new String[length + filesCount]), 0, filesCount); System.arraycopy(results, 0, this.filenames, filesCount, length); for (int i = 0; i < length; i++) { this.encodings[filesCount + i] = customEncoding; } filesCount += length; customEncoding = null; } else { this.filenames = finder.resultFiles; filesCount = this.filenames.length; this.encodings = new String[filesCount]; for (int i = 0; i < filesCount; i++) { this.encodings[i] = customEncoding; } customEncoding = null; } mode = Default; continue; } if (this.log != null) { this.logger.setLog(this.log); } else { this.showProgress = false; } this.logger.logVersion(printVersionRequired); if (printUsageRequired || filesCount == 0) { printUsage(); this.proceed = false; return; } if (filesCount != 0) System.arraycopy( this.filenames, 0, (this.filenames = new String[filesCount]), 0, filesCount); if (classpaths.size() == 0) { // no user classpath specified. String classProp = System.getProperty("java.class.path"); //$NON-NLS-1$ if ((classProp == null) || (classProp.length() == 0)) { this.logger.logNoClasspath(); classpaths.add(FileSystem.getClasspath(System.getProperty("user.dir"), customEncoding, 0, null));//$NON-NLS-1$ } else { StringTokenizer tokenizer = new StringTokenizer(classProp, File.pathSeparator); String token; while (tokenizer.hasMoreTokens()) { token = tokenizer.nextToken(); FileSystem.Classpath currentClasspath = FileSystem .getClasspath(token, customEncoding, 0, null); if (currentClasspath != null) { classpaths.add(currentClasspath); } else { this.logger.logIncorrectClasspath(token); // should not happen - we go on anyway } } } } final File javaHome = getJavaHome(); if (bootclasspaths.size() == 0) { /* no bootclasspath specified * we can try to retrieve the default librairies of the VM used to run * the batch compiler */ String javaversion = System.getProperty("java.version");//$NON-NLS-1$ if (javaversion != null && javaversion.equalsIgnoreCase("1.1.8")) { //$NON-NLS-1$ this.logger.logWrongJDK(); this.proceed = false; return; } /* * Handle >= JDK 1.2.2 settings: retrieve rt.jar */ if (javaHome != null) { File[] directoriesToCheck = null; if (System.getProperty("os.name").startsWith("Mac")) {//$NON-NLS-1$//$NON-NLS-2$ directoriesToCheck = new File[] { new File(javaHome, "../Classes"), //$NON-NLS-1$ }; } else { directoriesToCheck = new File[] { new File(javaHome, "lib") //$NON-NLS-1$ }; } File[][] systemLibrariesJars = getLibrariesFiles(directoriesToCheck); if (systemLibrariesJars != null) { for (int i = 0, max = systemLibrariesJars.length; i < max; i++) { File[] current = systemLibrariesJars[i]; if (current != null) { for (int j = 0, max2 = current.length; j < max2; j++) { FileSystem.Classpath classpath = FileSystem.getClasspath( current[j].getAbsolutePath(), null, 0, null); if (classpath != null) { bootclasspaths.add(classpath); } } } } } } } /* * Feed extdirsNames according to: * - -extdirs first if present; * - else java.ext.dirs if defined; * - else default extensions directory for the platform. */ if (extdirsNames.size() == 0) { String extdirsStr = System.getProperty("java.ext.dirs"); //$NON-NLS-1$ if (extdirsStr == null) { extdirsNames.add(javaHome.getAbsolutePath() + "/lib/ext"); //$NON-NLS-1$ } else { StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator); while (tokenizer.hasMoreTokens()) extdirsNames.add(tokenizer.nextToken()); } } /* * Feed extdirsClasspath with the entries found into the directories listed by * extdirsNames. */ if (extdirsNames.size() != 0) { File[] directoriesToCheck = new File[extdirsNames.size()]; for (int i = 0; i < directoriesToCheck.length; i++) directoriesToCheck[i] = new File((String) extdirsNames.get(i)); File[][] extdirsJars = getLibrariesFiles(directoriesToCheck); if (extdirsJars != null) { for (int i = 0, max = extdirsJars.length; i < max; i++) { File[] current = extdirsJars[i]; if (current != null) { for (int j = 0, max2 = current.length; j < max2; j++) { FileSystem.Classpath classpath = FileSystem.getClasspath( current[j].getAbsolutePath(), null, 0, null); if (classpath != null) { extdirsClasspaths.add(classpath); } } } } } } /* * Concatenate classpath entries * We put the bootclasspath at the beginning of the classpath * entries, followed by the extension libraries, followed by * the sourcepath followed by the classpath. All classpath * entries are searched for both sources and binaries except * the sourcepath entries which are searched for sources only. */ bootclasspaths.addAll(extdirsClasspaths); bootclasspaths.addAll(sourcepathClasspaths); bootclasspaths.addAll(classpaths); classpaths = bootclasspaths; this.checkedClasspaths = new FileSystem.Classpath[classpaths.size()]; classpaths.toArray(this.checkedClasspaths); if (this.destinationPath == null) { this.generatePackagesStructure = false; } else if ("none".equals(this.destinationPath)) { //$NON-NLS-1$ this.destinationPath = null; } if (didSpecifyCompliance) { Object version = this.options.get(CompilerOptions.OPTION_Compliance); if (CompilerOptions.VERSION_1_3.equals(version)) { if (!didSpecifySource) this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_1); } else if (CompilerOptions.VERSION_1_4.equals(version)) { if (!didSpecifySource) this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2); } else if (CompilerOptions.VERSION_1_5.equals(version)) { if (!didSpecifySource) this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); } else if (CompilerOptions.VERSION_1_6.equals(version)) { if (!didSpecifySource) this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6); } } if (didSpecifySource) { Object version = this.options.get(CompilerOptions.OPTION_Source); // default is source 1.3 target 1.2 and compliance 1.4 if (CompilerOptions.VERSION_1_4.equals(version)) { if (!didSpecifyCompliance) this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_4); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4); } else if (CompilerOptions.VERSION_1_5.equals(version)) { if (!didSpecifyCompliance) this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); } else if (CompilerOptions.VERSION_1_6.equals(version)) { if (!didSpecifyCompliance) this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6); if (!didSpecifyTarget) this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6); } } // check and set compliance/source/target compatibilities final Object sourceVersion = this.options.get(CompilerOptions.OPTION_Source); final Object compliance = this.options.get(CompilerOptions.OPTION_Compliance); if (didSpecifyTarget) { // target must be 1.6 if source is 1.6 final Object targetVersion = this.options.get(CompilerOptions.OPTION_TargetPlatform); if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_6 && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_6){ throw new InvalidInputException(Main.bind("configure.incompatibleTargetForSource", (String)this.options.get(CompilerOptions.OPTION_TargetPlatform), CompilerOptions.VERSION_1_6)); //$NON-NLS-1$ } // target must be 1.5 if source is 1.5 if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_5 && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_5){ throw new InvalidInputException(Main.bind("configure.incompatibleTargetForSource", (String)this.options.get(CompilerOptions.OPTION_TargetPlatform), CompilerOptions.VERSION_1_5)); //$NON-NLS-1$ } // target must be 1.4 if source is 1.4 if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_4 && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_4){ throw new InvalidInputException(Main.bind("configure.incompatibleTargetForSource", (String)this.options.get(CompilerOptions.OPTION_TargetPlatform), CompilerOptions.VERSION_1_4)); //$NON-NLS-1$ } // target cannot be greater than compliance level if (CompilerOptions.versionToJdkLevel(compliance) < CompilerOptions.versionToJdkLevel(targetVersion)){ throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForTarget", (String)this.options.get(CompilerOptions.OPTION_Compliance), (String)this.options.get(CompilerOptions.OPTION_TargetPlatform))); //$NON-NLS-1$ } } if (sourceVersion.equals(CompilerOptions.VERSION_1_6) && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_6) { // compliance must be 1.6 if source is 1.6 throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_6)); //$NON-NLS-1$ } else if (sourceVersion.equals(CompilerOptions.VERSION_1_5) && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_5) { // compliance must be 1.5 if source is 1.5 throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_5)); //$NON-NLS-1$ } else if (sourceVersion.equals(CompilerOptions.VERSION_1_4) && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_4) { // compliance must be 1.4 if source is 1.4 throw new InvalidInputException(Main.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_4)); //$NON-NLS-1$ } // set default target according to compliance & sourcelevel. if (!didSpecifyTarget) { if (compliance.equals(CompilerOptions.VERSION_1_3)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_1); } else if (compliance.equals(CompilerOptions.VERSION_1_4)) { if (sourceVersion.equals(CompilerOptions.VERSION_1_3)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_4)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4); } } else if (compliance.equals(CompilerOptions.VERSION_1_5)) { if (sourceVersion.equals(CompilerOptions.VERSION_1_3)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_4)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_5)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); } } else if (compliance.equals(CompilerOptions.VERSION_1_6)) { if (sourceVersion.equals(CompilerOptions.VERSION_1_3)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_4)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_5)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); } else if (sourceVersion.equals(CompilerOptions.VERSION_1_6)) { this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6); } } } this.logger.logCommandLineArguments(newCommandLineArgs); this.logger.logOptions(this.options); this.logger.logClasspath(this.checkedClasspaths); if (this.repetitions == 0) { this.repetitions = 1; } if (this.repetitions >= 3 && this.timing) { this.times = new long[this.repetitions]; this.timesCounter = 0; } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/78ca28be54dd37f4936afd7f9f84bc9cf69d2754/Main.java/buggy/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5068, 12, 780, 8526, 5261, 13, 1216, 31989, 288, 9506, 202, 430, 14015, 19485, 422, 446, 13, 747, 261, 19485, 18, 2469, 422, 374, 3719, 288, 1082, 202, 1188, 5357, 5621, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6385, 509, 657, 5564, 17461, 273, 404, 31, 202, 202, 6385, 509, 657, 5564, 5683, 743, 273, 576, 31, 202, 202, 6385, 509, 5916, 5568, 273, 1059, 31, 202, 202, 6385, 509, 657, 5564, 1343, 273, 1725, 31, 202, 202, 6385, 509, 657, 5564, 426, 6951, 608, 273, 2872, 31, 202, 202, 6385, 509, 657, 5564, 1830, 273, 3847, 31, 202, 202, 6385, 509, 657, 5564, 1868, 4705, 273, 5178, 31, 202, 202, 6385, 509, 657, 5564, 15817, 17461, 273, 8038, 31, 202, 202, 6385, 509, 657, 5564, 2747, 626, 19122, 273, 8303, 31, 202, 202, 6385, 509, 657, 5564, 2482, 8291, 273, 13908, 31, 202, 202, 6385, 509, 657, 5564, 1830, 803, 273, 6250, 31, 202, 202, 6385, 509, 2989, 273, 374, 31, 202, 202, 474, 3331, 67, 4574, 67, 5237, 4211, 273, 1059, 31, 202, 202, 19558, 4835, 1106, 4481, 273, 394, 2407, 12, 5280, 67, 4574, 67, 5237, 4211, 3631, 1082, 202, 408, 8291, 797, 4481, 273, 394, 2407, 12, 5280, 67, 4574, 67, 5237, 4211, 3631, 1082, 202, 408, 8291, 1557, 273, 394, 2407, 12, 5280, 67, 4574, 67, 5237, 4211, 3631, 1082, 202, 3168, 803, 797, 4481, 273, 394, 2407, 12, 5280, 67, 4574, 67, 5237, 4211, 3631, 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, 5068, 12, 780, 8526, 5261, 13, 1216, 31989, 288, 9506, 202, 430, 14015, 19485, 422, 446, 13, 747, 261, 19485, 18, 2469, 422, 374, 3719, 288, 1082, 202, 1188, 5357, 5621, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6385, 509, 657, 5564, 17461, 273, 404, 31, 202, 202, 6385, 509, 657, 5564, 5683, 743, 273, 576, 31, 202, 202, 6385, 509, 5916, 5568, 273, 1059, 31, 202, 202, 6385, 509, 657, 5564, 1343, 273, 1725, 31, 202, 202, 6385, 509, 657, 5564, 426, 6951, 608, 273, 2872, 31, 202, 202, 6385, 509, 657, 5564, 1830, 273, 3847, 31, 202, 202, 6385, 509, 657, 5564, 1868, 4705, 273, 5178, 31, 202, 202, 6385, 509, 2 ]
LOG.error("This can't happen");
LOG.error("This can't happen: role = " + role + " node = "+this);
private void decrementChildInRoleCount(String role) { if (!myChildInRoleCount.containsKey(role)) { LOG.error("This can't happen"); } Integer childCount = myChildInRoleCount.get(role); if (childCount == 1) { myChildInRoleCount.remove(role); } else { myChildInRoleCount.put(role, childCount - 1); } }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/86d9d6b05ea11b44ab389e76ca79dd398c60aa62/SNode.java/clean/source/jetbrains/mps/smodel/SNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 15267, 1763, 382, 2996, 1380, 12, 780, 2478, 13, 288, 565, 309, 16051, 4811, 1763, 382, 2996, 1380, 18, 12298, 653, 12, 4615, 3719, 288, 1377, 2018, 18, 1636, 2932, 2503, 848, 1404, 5865, 30, 2478, 273, 315, 397, 2478, 397, 315, 756, 273, 13773, 2211, 1769, 565, 289, 565, 2144, 31492, 273, 3399, 1763, 382, 2996, 1380, 18, 588, 12, 4615, 1769, 565, 309, 261, 3624, 1380, 422, 404, 13, 288, 1377, 3399, 1763, 382, 2996, 1380, 18, 4479, 12, 4615, 1769, 565, 289, 469, 288, 1377, 3399, 1763, 382, 2996, 1380, 18, 458, 12, 4615, 16, 31492, 300, 404, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 15267, 1763, 382, 2996, 1380, 12, 780, 2478, 13, 288, 565, 309, 16051, 4811, 1763, 382, 2996, 1380, 18, 12298, 653, 12, 4615, 3719, 288, 1377, 2018, 18, 1636, 2932, 2503, 848, 1404, 5865, 30, 2478, 273, 315, 397, 2478, 397, 315, 756, 273, 13773, 2211, 1769, 565, 289, 565, 2144, 31492, 273, 3399, 1763, 382, 2996, 1380, 18, 588, 12, 4615, 1769, 565, 309, 261, 3624, 1380, 422, 404, 13, 288, 1377, 3399, 1763, 382, 2996, 1380, 18, 4479, 12, 4615, 1769, 565, 289, 469, 288, 1377, 3399, 1763, 382, 2996, 1380, 18, 458, 12, 4615, 16, 31492, 300, 404, 1769, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int q = s.indexOf("]", wndx);
int q = setup.indexOf("]", wndx);
public SlimPlotter(String[] args) throws Exception { ProgressMonitor progress = new ProgressMonitor(null, "Launching SlimPlotter", "Initializing", 0, 23); progress.setMillisToPopup(0); progress.setMillisToDecideToPopup(0); int p = 0; // parse command line arguments String filename = null; File file = null; if (args == null || args.length < 1) { JFileChooser jc = new JFileChooser(System.getProperty("user.dir")); jc.addChoosableFileFilter(new ExtensionFileFilter("sdt", "Becker & Hickl SPC-Image SDT")); int rval = jc.showOpenDialog(null); if (rval != JFileChooser.APPROVE_OPTION) { System.out.println("Please specify an SDT file."); System.exit(1); } file = jc.getSelectedFile(); filename = file.getPath(); } else { filename = args[0]; file = new File(filename); } width = height = timeBins = channels = -1; if (args.length >= 3) { width = parse(args[1], -1); height = parse(args[2], -1); } if (args.length >= 4) timeBins = parse(args[3], -1); if (args.length >= 5) channels = parse(args[4], -1); // read SDT file header DataInputStream fin = new DataInputStream(new BufferedInputStream( new FileInputStream(file))); fin.mark(4096); fin.skipBytes(14); // skip 14 byte header int offset = DataTools.read2UnsignedBytes(fin, true) + 22; System.out.println("Data offset: " + offset);//TEMP byte[] stuff = new byte[4077]; fin.readFully(stuff); String s = new String(stuff); fin.reset(); int leftToFind = 3; if (width < 0) { String wstr = "[SP_SCAN_X,I,"; int wndx = s.indexOf(wstr); width = 128; if (wndx >= 0) { int q = s.indexOf("]", wndx); if (q >= 0) { width = parse(s.substring(wndx + wstr.length(), q), width); System.out.println("Got width from file: " + width);//TEMP leftToFind--; } } } if (height < 0) { height = 128; String hstr = "[SP_SCAN_Y,I,"; int hndx = s.indexOf(hstr); if (hndx >= 0) { int q = s.indexOf("]", hndx); if (q >= 0) { height = parse(s.substring(hndx + hstr.length(), q), height); System.out.println("Got height from file: " + height);//TEMP leftToFind--; } } } if (timeBins < 0) { timeBins = 64; String tstr = "[SP_ADC_RE,I,"; int tndx = s.indexOf(tstr); if (tndx >= 0) { int q = s.indexOf("]", tndx); if (q >= 0) { timeBins = parse(s.substring(tndx + tstr.length(), q), timeBins); System.out.println("Got timeBins from file: " + timeBins);//TEMP leftToFind--; } } } if (channels < 0) { // autodetect number of channels based on file size channels = (int) ((file.length() - offset) / (2 * timeBins * width * height)); } timeRange = 12.5; minWave = 400; waveStep = 10; // warn user if some numbers were not found if (leftToFind > 0) { JOptionPane.showMessageDialog(null, "Some numbers (image width, image height, and number of time bins)\n" + "were not found within the file. The numbers you are about to see\n" + "are best guesses. Please change them if they are incorrect.", "SlimPlotter", JOptionPane.WARNING_MESSAGE); } // show dialog confirming data parameters paramDialog = new JDialog((Frame) null, "SlimPlotter", true); JPanel paramPane = new JPanel(); paramPane.setBorder(new EmptyBorder(10, 10, 10, 10)); paramDialog.setContentPane(paramPane); paramPane.setLayout(new GridLayout(9, 3)); wField = addRow(paramPane, "Image width", width, "pixels"); hField = addRow(paramPane, "Image height", height, "pixels"); tField = addRow(paramPane, "Time bins", timeBins, ""); cField = addRow(paramPane, "Channel count", channels, ""); trField = addRow(paramPane, "Time range", timeRange, "nanoseconds"); wlField = addRow(paramPane, "Starting wavelength", minWave, "nanometers"); sField = addRow(paramPane, "Channel width", waveStep, "nanometers"); JButton ok = new JButton("OK"); ok.addActionListener(this); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(ok); paramDialog.pack(); Dimension ss = Toolkit.getDefaultToolkit().getScreenSize(); Dimension ps = paramDialog.getSize(); paramDialog.setLocation((ss.width - ps.width) / 2, (ss.height - ps.height) / 2); paramDialog.setVisible(true); int maxWave = minWave + (channels - 1) * waveStep; // read pixel data progress.setMaximum(channels + 7); progress.setNote("Reading data"); fin.skipBytes(offset); // skip to data byte[] data = new byte[2 * channels * height * width * timeBins]; fin.readFully(data); fin.close(); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // create types progress.setNote("Creating types"); RealType xType = RealType.getRealType("element"); RealType yType = RealType.getRealType("line"); ScaledUnit ns = new ScaledUnit(1e-9, SI.second, "ns"); ScaledUnit nm = new ScaledUnit(1e-9, SI.meter, "nm"); RealType bType = RealType.getRealType("bin", ns); cType = RealType.getRealType("channel", nm); RealType vType = RealType.getRealType("value"); RealTupleType xy = new RealTupleType(xType, yType); FunctionType xyvFunc = new FunctionType(xy, vType); Integer2DSet xySet = new Integer2DSet(xy, width, height); FunctionType cxyvFunc = new FunctionType(cType, xyvFunc); Linear1DSet cSet = new Linear1DSet(cType, minWave, maxWave, channels, null, new Unit[] {nm}, null); RealTupleType bc = new RealTupleType(bType, cType); bcvFunc = new FunctionType(bc, vType); bcSet = new Linear2DSet(bc, 0, timeRange, timeBins, minWave, maxWave, channels, null, new Unit[] {ns, nm}, null); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // plot intensity data in 2D display progress.setNote("Building displays"); iPlot = new DisplayImplJ3D("intensity", new TwoDDisplayRendererJ3D()); iPlot.getMouseBehavior().getMouseHelper().setFunctionMap(new int[][][] { {{MouseHelper.DIRECT, MouseHelper.NONE}, // L, shift-L {MouseHelper.NONE, MouseHelper.NONE}}, // ctrl-L, ctrl-shift-L {{MouseHelper.CURSOR_TRANSLATE, MouseHelper.CURSOR_ZOOM}, // M, shift-M {MouseHelper.CURSOR_ROTATE, MouseHelper.NONE}}, // ctrl-M, ctrl-shift-M {{MouseHelper.ROTATE, MouseHelper.ZOOM}, // R, shift-R {MouseHelper.TRANSLATE, MouseHelper.NONE}}, // ctrl-R, ctrl-shift-R }); iPlot.enableEvent(DisplayEvent.MOUSE_DRAGGED); iPlot.enableEvent(DisplayEvent.MOUSE_MOVED); iPlot.addDisplayListener(this); iPlot.addMap(new ScalarMap(xType, Display.XAxis)); iPlot.addMap(new ScalarMap(yType, Display.YAxis)); iPlot.addMap(new ScalarMap(vType, Display.RGB)); iPlot.addMap(new ScalarMap(cType, Display.Animation)); DataReferenceImpl intensityRef = new DataReferenceImpl("intensity"); iPlot.addReference(intensityRef); final DataReferenceImpl boxRef = new DataReferenceImpl("box");// for RubberBandBoxRendererJ3D: boxRef.setData(new Gridded2DSet(xy, null, 1)); // dummy iPlot.addReferences(new RubberBandBoxRendererJ3D(xType, yType, 0, 0), boxRef);// for CurveManipulationRendererJ3D:// UnionSet dummy = new UnionSet(xy, new Gridded2DSet[] {// new Gridded2DSet(xy, new float[][] {{0}, {0}}, 1)// });// boxRef.setData(dummy);// CurveManipulationRendererJ3D curve =// new CurveManipulationRendererJ3D(0, 0, true);// iPlot.addReferences(curve, boxRef); CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set set = (Set) boxRef.getData(); if (set == null) return; float[][] samples = set.getSamples(false); if (samples == null) return; minX = (int) Math.round(samples[0][0]); minY = (int) Math.round(samples[1][0]); maxX = (int) Math.round(samples[0][1]); maxY = (int) Math.round(samples[1][1]); plotData(true); } }; cell.addReference(boxRef); ac = (AnimationControl) iPlot.getControl(AnimationControl.class); iPlot.getProjectionControl().setMatrix( iPlot.make_matrix(0, 0, 0, 0.85, 0, 0, 0)); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // plot decay curves in 3D display decayPlot = new DisplayImplJ3D("decay"); ScalarMap xMap = new ScalarMap(bType, Display.XAxis); ScalarMap yMap = new ScalarMap(cType, Display.YAxis); zMap = new ScalarMap(vType, Display.ZAxis); decayPlot.addMap(xMap); decayPlot.addMap(yMap); decayPlot.addMap(zMap); vMap = new ScalarMap(vType, Display.RGB); decayPlot.addMap(vMap); ref = new DataReferenceImpl("decay"); decayPlot.addReference(ref); xMap.getAxisScale().setTitle("Time (ns)"); yMap.getAxisScale().setTitle("Wavelength (nm)"); zMap.getAxisScale().setTitle("Count"); decayPlot.getGraphicsModeControl().setScaleEnable(true); decayPlot.getGraphicsModeControl().setTextureEnable(false); decayPlot.getProjectionControl().setMatrix(MATRIX); decayPlot.getProjectionControl().setAspectCartesian( new double[] {2, 1, 1}); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // convert byte data to shorts progress.setNote("Constructing images "); values = new int[channels][height][width][timeBins]; float[][][] pix = new float[channels][1][width * height]; FieldImpl field = new FieldImpl(cxyvFunc, cSet); int max = 0; int maxChan = 0; for (int c=0; c<channels; c++) { progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); int oc = timeBins * width * height * c; for (int h=0; h<height; h++) { int oh = timeBins * width * h; for (int w=0; w<width; w++) { int ow = timeBins * w; int sum = 0; for (int t=0; t<timeBins; t++) { int ndx = 2 * (oc + oh + ow + t); int val = DataTools.bytesToInt(data, ndx, 2, true); if (val > max) { max = val; maxChan = c; } values[c][h][w][t] = val; sum += val; } pix[c][0][width * h + w] = sum; } } FlatField ff = new FlatField(xyvFunc, xySet); ff.setSamples(pix[c], false); field.setSample(c, ff); } progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // show 2D window on screen progress.setNote("Creating plots"); JFrame intensityFrame = new JFrame("Intensity Data"); intensityFrame.addWindowListener(this); JPanel intensityPane = new JPanel(); intensityPane.setLayout(new BorderLayout()); intensityPane.add(iPlot.getComponent(), BorderLayout.CENTER); cSlider = new JSlider(1, channels, 1); cSlider.setSnapToTicks(true); cSlider.setMajorTickSpacing(channels / 4); cSlider.setMinorTickSpacing(1); cSlider.setPaintTicks(true); cSlider.addChangeListener(this); intensityPane.add(cSlider, BorderLayout.SOUTH); int pad = 30; int ifx = pad / 2, ify = pad / 2; int ifw = (ss.width - pad) / 2, ifh = ifw; intensityFrame.setContentPane(intensityPane); intensityFrame.setBounds(ifx, ify, ifw, ifh); intensityRef.setData(field); ColorControl cc = (ColorControl) iPlot.getControl(ColorControl.class); cc.setTable(ColorControl.initTableGreyWedge(new float[3][256])); intensityFrame.setVisible(true); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // show 3D window on screen JFrame decayFrame = new JFrame("Spectral Lifetime Data"); decayFrame.addWindowListener(this); JPanel decayPane = new JPanel(); decayPane.setLayout(new BorderLayout()); decayPane.add(decayPlot.getComponent(), BorderLayout.CENTER); decayLabel = new JLabel("Decay curve for all pixels"); decayPane.add(decayLabel, BorderLayout.NORTH); JPanel options = new JPanel(); options.setLayout(new BoxLayout(options, BoxLayout.X_AXIS)); surface = new JCheckBox("Surface", true); surface.addChangeListener(this); parallel = new JCheckBox("Parallel projection", false); parallel.addChangeListener(this); logScale = new JCheckBox("Log scale", false); logScale.addChangeListener(this); options.add(surface); options.add(parallel); options.add(logScale); decayPane.add(options, BorderLayout.SOUTH); decayFrame.setContentPane(decayPane); decayFrame.setBounds(ifx + ifw, ify, ifw, ifh); minX = minY = 0; maxX = width; maxY = height; plotData(true); cSlider.setValue(maxChan + 1); decayFrame.setVisible(true); progress.setProgress(++p); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/1de1936b126cff0a7aa0c87975d237db709e4135/SlimPlotter.java/buggy/loci/slim/SlimPlotter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 348, 7091, 11532, 387, 12, 780, 8526, 833, 13, 1216, 1185, 288, 565, 10980, 7187, 4007, 273, 394, 10980, 7187, 12, 2011, 16, 1377, 315, 9569, 310, 348, 7091, 11532, 387, 3113, 315, 29782, 3113, 374, 16, 10213, 1769, 565, 4007, 18, 542, 4814, 774, 13770, 12, 20, 1769, 565, 4007, 18, 542, 4814, 774, 1799, 831, 774, 13770, 12, 20, 1769, 565, 509, 293, 273, 374, 31, 565, 368, 1109, 1296, 980, 1775, 565, 514, 1544, 273, 446, 31, 565, 1387, 585, 273, 446, 31, 565, 309, 261, 1968, 422, 446, 747, 833, 18, 2469, 411, 404, 13, 288, 1377, 804, 812, 17324, 19807, 273, 394, 804, 812, 17324, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 1377, 19807, 18, 1289, 9636, 538, 429, 29837, 12, 2704, 10021, 29837, 2932, 6427, 88, 3113, 3639, 315, 38, 762, 264, 473, 670, 1200, 80, 348, 3513, 17, 2040, 348, 9081, 7923, 1769, 1377, 509, 14267, 273, 19807, 18, 4500, 3678, 6353, 12, 2011, 1769, 1377, 309, 261, 86, 1125, 480, 804, 812, 17324, 18, 2203, 3373, 3412, 67, 7425, 13, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 8496, 4800, 392, 348, 9081, 585, 1199, 1769, 3639, 2332, 18, 8593, 12, 21, 1769, 1377, 289, 1377, 585, 273, 19807, 18, 588, 7416, 812, 5621, 1377, 1544, 273, 585, 18, 588, 743, 5621, 565, 289, 565, 469, 288, 1377, 1544, 273, 833, 63, 20, 15533, 1377, 585, 273, 394, 1387, 12, 3459, 1769, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 348, 7091, 11532, 387, 12, 780, 8526, 833, 13, 1216, 1185, 288, 565, 10980, 7187, 4007, 273, 394, 10980, 7187, 12, 2011, 16, 1377, 315, 9569, 310, 348, 7091, 11532, 387, 3113, 315, 29782, 3113, 374, 16, 10213, 1769, 565, 4007, 18, 542, 4814, 774, 13770, 12, 20, 1769, 565, 4007, 18, 542, 4814, 774, 1799, 831, 774, 13770, 12, 20, 1769, 565, 509, 293, 273, 374, 31, 565, 368, 1109, 1296, 980, 1775, 565, 514, 1544, 273, 446, 31, 565, 1387, 585, 273, 446, 31, 565, 309, 261, 1968, 422, 446, 747, 833, 18, 2469, 411, 404, 13, 288, 1377, 804, 812, 17324, 19807, 273, 394, 804, 812, 17324, 12, 3163, 18, 588, 1396, 2932, 1355, 2 ]
MemoryBoundFunction ret = makeVerifier(nVal, eVal, lVal, null, 0);
MemoryBoundFunction ret = makeVerifier(nonceVal, eVal, lVal, nVal, null, 0);
public MemoryBoundFunction makeGenerator(byte[] nVal, int eVal, int lVal) throws NoSuchAlgorithmException, InstantiationException, IllegalAccessException, MemoryBoundFunctionException { MemoryBoundFunction ret = makeVerifier(nVal, eVal, lVal, null, 0); return (ret); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ac1c43b2f21056159f71ff537fe5d6c109bf20b7/MemoryBoundFunctionFactory.java/buggy/src/org/lockss/mbf/MemoryBoundFunctionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9251, 3499, 2083, 1221, 3908, 12, 7229, 8526, 290, 3053, 16, 509, 425, 3053, 16, 509, 328, 3053, 13, 565, 1216, 17684, 16, 202, 282, 19248, 16, 202, 282, 11900, 16, 202, 282, 9251, 3499, 2083, 503, 288, 565, 9251, 3499, 2083, 325, 273, 1221, 17758, 12, 12824, 3053, 16, 425, 3053, 16, 328, 3053, 16, 290, 3053, 16, 446, 16, 374, 1769, 565, 327, 261, 1349, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9251, 3499, 2083, 1221, 3908, 12, 7229, 8526, 290, 3053, 16, 509, 425, 3053, 16, 509, 328, 3053, 13, 565, 1216, 17684, 16, 202, 282, 19248, 16, 202, 282, 11900, 16, 202, 282, 9251, 3499, 2083, 503, 288, 565, 9251, 3499, 2083, 325, 273, 1221, 17758, 12, 12824, 3053, 16, 425, 3053, 16, 328, 3053, 16, 290, 3053, 16, 446, 16, 374, 1769, 565, 327, 261, 1349, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.loaderName = loaderName; this.location = location; if (Debug.verboseOn()) Debug.logVerbose("Created " + this.toString(), module);
this.loaderName = element.getAttribute("loader"); this.location = element.getAttribute("location");
public ComponentResourceHandler(String componentName, String loaderName, String location) { this.componentName = componentName; this.loaderName = loaderName; this.location = location; if (Debug.verboseOn()) Debug.logVerbose("Created " + this.toString(), module); }
55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/12aad676b69f0187294ba449482bd21bf2ba6fb7/ComponentResourceHandler.java/buggy/framework/base/src/base/org/ofbiz/base/component/ComponentResourceHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 1420, 1503, 12, 780, 20577, 16, 514, 4088, 461, 16, 514, 2117, 13, 288, 3639, 333, 18, 4652, 461, 273, 20577, 31, 3639, 333, 18, 6714, 461, 273, 4088, 461, 31, 3639, 333, 18, 3562, 273, 2117, 31, 3639, 309, 261, 2829, 18, 11369, 1398, 10756, 4015, 18, 1330, 14489, 2932, 6119, 315, 397, 333, 18, 10492, 9334, 1605, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 1420, 1503, 12, 780, 20577, 16, 514, 4088, 461, 16, 514, 2117, 13, 288, 3639, 333, 18, 4652, 461, 273, 20577, 31, 3639, 333, 18, 6714, 461, 273, 4088, 461, 31, 3639, 333, 18, 3562, 273, 2117, 31, 3639, 309, 261, 2829, 18, 11369, 1398, 10756, 4015, 18, 1330, 14489, 2932, 6119, 315, 397, 333, 18, 10492, 9334, 1605, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private static boolean isDeclaredConstant(PsiLiteralExpression expression) {
private boolean isDeclaredConstant(PsiLiteralExpression expression) {
private static boolean isDeclaredConstant(PsiLiteralExpression expression) { final PsiField field = PsiTreeUtil.getParentOfType(expression, PsiField.class); if (field == null) { return false; } if (!field.hasModifierProperty(PsiModifier.STATIC) || !field.hasModifierProperty(PsiModifier.FINAL)) { return false; } final PsiType type = field.getType(); return ClassUtils.isImmutable(type); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f94e21fbee4e984a29e3c975221bc129dd4d68e1/MagicNumberInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/MagicNumberInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 225, 1250, 353, 18888, 6902, 12, 52, 7722, 6177, 2300, 2652, 13, 288, 5411, 727, 453, 7722, 974, 652, 273, 10792, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 8692, 16, 453, 7722, 974, 18, 1106, 1769, 5411, 309, 261, 1518, 422, 446, 13, 288, 7734, 327, 629, 31, 5411, 289, 5411, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 13, 747, 10792, 401, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 288, 7734, 327, 629, 31, 5411, 289, 5411, 727, 453, 7722, 559, 618, 273, 652, 18, 588, 559, 5621, 5411, 327, 26382, 18, 291, 16014, 12, 723, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 225, 1250, 353, 18888, 6902, 12, 52, 7722, 6177, 2300, 2652, 13, 288, 5411, 727, 453, 7722, 974, 652, 273, 10792, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 8692, 16, 453, 7722, 974, 18, 1106, 1769, 5411, 309, 261, 1518, 422, 446, 13, 288, 7734, 327, 629, 31, 5411, 289, 5411, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 13, 747, 10792, 401, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 288, 7734, 327, 629, 31, 5411, 289, 5411, 727, 453, 7722, 559, 618, 273, 652, 18, 588, 559, 5621, 5411, 327, 26382, 18, 291, 16014, 12, 723, 1769, 3639, 289, 2, -100, -100, -100, -100 ]
private void genSlice(String typeName) { String decl = typeName + " " + prefix + "slice" + typeName + "(" + typeName + " arg, int start, int end)";
private void genSlice(String typeId, String typeName) { String decl = typeName + " " + prefix + "slice" + typeId + "(" + typeName + " arg, int start, int end)";
private void genSlice(String typeName) { String decl = typeName + " " + prefix + "slice" + typeName + "(" + typeName + " arg, int start, int end)"; hprintln(decl + ";"); println(decl + " {"); println(" return (" + typeName + ") ATgetSlice((ATermList) arg, start, end);"); println("}"); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/d20d05536ebcf61c8c082073d1885d0fe9736ee5/APIGenerator.java/buggy/apigen/apigen/gen/c/APIGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 5959, 12, 780, 8173, 13, 288, 202, 202, 780, 3496, 273, 8173, 397, 315, 315, 397, 1633, 397, 315, 6665, 6, 397, 8173, 397, 12452, 397, 8173, 397, 315, 1501, 16, 509, 787, 16, 509, 679, 2225, 31, 202, 202, 76, 8222, 12, 8840, 397, 11430, 1769, 202, 202, 8222, 12, 8840, 397, 315, 288, 8863, 202, 202, 8222, 2932, 225, 327, 7566, 397, 8173, 397, 9369, 14464, 588, 5959, 12443, 789, 1035, 682, 13, 1501, 16, 787, 16, 679, 1769, 8863, 202, 202, 8222, 2932, 1532, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 5959, 12, 780, 8173, 13, 288, 202, 202, 780, 3496, 273, 8173, 397, 315, 315, 397, 1633, 397, 315, 6665, 6, 397, 8173, 397, 12452, 397, 8173, 397, 315, 1501, 16, 509, 787, 16, 509, 679, 2225, 31, 202, 202, 76, 8222, 12, 8840, 397, 11430, 1769, 202, 202, 8222, 12, 8840, 397, 315, 288, 8863, 202, 202, 8222, 2932, 225, 327, 7566, 397, 8173, 397, 9369, 14464, 588, 5959, 12443, 789, 1035, 682, 13, 1501, 16, 787, 16, 679, 1769, 8863, 202, 202, 8222, 2932, 1532, 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 ]
ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, null, null, true ); getBreakpointMap().put( breakpoint, cdiBreakpoint );
ICDIBreakpoint cdiBreakpoint = null; synchronized ( getBreakpointMap() ) { cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, null, null, true ); getBreakpointMap().put( breakpoint, cdiBreakpoint ); }
private synchronized ICDIBreakpoint setFunctionBreakpoint( ICFunctionBreakpoint breakpoint ) throws CDIException, CoreException { ICDIBreakpointManager bm = getCDIBreakpointManager(); String function = breakpoint.getFunction(); String fileName = (function != null && function.indexOf( "::" ) == -1) ? breakpoint.getFileName() : null; //$NON-NLS-1$ ICDILocation location = bm.createLocation( fileName, function, -1 ); ICDIBreakpoint cdiBreakpoint = bm.setLocationBreakpoint( ICDIBreakpoint.REGULAR, location, null, null, true ); getBreakpointMap().put( breakpoint, cdiBreakpoint ); return cdiBreakpoint; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1802824b5f2cd34541dbf750d4bce2fb3cdb8060/CBreakpointManager.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 26899, 2565, 20552, 444, 2083, 20552, 12, 26899, 2083, 20552, 18820, 262, 1216, 385, 2565, 503, 16, 30015, 288, 202, 202, 2871, 2565, 20552, 1318, 18829, 273, 1927, 2565, 20552, 1318, 5621, 202, 202, 780, 445, 273, 18820, 18, 588, 2083, 5621, 202, 202, 780, 3968, 273, 261, 915, 480, 446, 597, 445, 18, 31806, 12, 31120, 262, 422, 300, 21, 13, 692, 18820, 18, 588, 4771, 1435, 294, 446, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2871, 2565, 2735, 2117, 273, 18829, 18, 2640, 2735, 12, 3968, 16, 445, 16, 300, 21, 11272, 202, 202, 2871, 2565, 20552, 276, 3211, 20552, 273, 18829, 18, 542, 2735, 20552, 12, 26899, 2565, 20552, 18, 5937, 19545, 16, 2117, 16, 446, 16, 446, 16, 638, 11272, 202, 202, 588, 20552, 863, 7675, 458, 12, 18820, 16, 276, 3211, 20552, 11272, 202, 202, 2463, 276, 3211, 20552, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 26899, 2565, 20552, 444, 2083, 20552, 12, 26899, 2083, 20552, 18820, 262, 1216, 385, 2565, 503, 16, 30015, 288, 202, 202, 2871, 2565, 20552, 1318, 18829, 273, 1927, 2565, 20552, 1318, 5621, 202, 202, 780, 445, 273, 18820, 18, 588, 2083, 5621, 202, 202, 780, 3968, 273, 261, 915, 480, 446, 597, 445, 18, 31806, 12, 31120, 262, 422, 300, 21, 13, 692, 18820, 18, 588, 4771, 1435, 294, 446, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2871, 2565, 2735, 2117, 273, 18829, 18, 2640, 2735, 12, 3968, 16, 445, 16, 300, 21, 11272, 202, 202, 2871, 2565, 20552, 276, 3211, 20552, 273, 18829, 18, 542, 2735, 20552, 12, 26899, 2565, 20552, 2 ]
a.x += offsetsX[index]; a.y += offsetsY[index]; a.width = spansX[index]; a.height = spansY[index];
a.x += offsets[X_AXIS][index]; a.y += offsets[Y_AXIS][index]; a.width = spans[X_AXIS][index]; a.height = spans[Y_AXIS][index];
protected void childAllocation(int index, Rectangle a) { if (! isAllocationValid()) layout(a.width, a.height); a.x += offsetsX[index]; a.y += offsetsY[index]; a.width = spansX[index]; a.height = spansY[index]; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8f1176391e1d000d946793693906d6dc8af29e19/BoxView.java/clean/core/src/classpath/javax/javax/swing/text/BoxView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1151, 17353, 12, 474, 770, 16, 13264, 279, 13, 225, 288, 565, 309, 16051, 353, 17353, 1556, 10756, 1377, 3511, 12, 69, 18, 2819, 16, 279, 18, 4210, 1769, 565, 279, 18, 92, 1011, 8738, 60, 63, 1615, 15533, 565, 279, 18, 93, 1011, 8738, 61, 63, 1615, 15533, 565, 279, 18, 2819, 273, 12791, 60, 63, 1615, 15533, 565, 279, 18, 4210, 273, 12791, 61, 63, 1615, 15533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1151, 17353, 12, 474, 770, 16, 13264, 279, 13, 225, 288, 565, 309, 16051, 353, 17353, 1556, 10756, 1377, 3511, 12, 69, 18, 2819, 16, 279, 18, 4210, 1769, 565, 279, 18, 92, 1011, 8738, 60, 63, 1615, 15533, 565, 279, 18, 93, 1011, 8738, 61, 63, 1615, 15533, 565, 279, 18, 2819, 273, 12791, 60, 63, 1615, 15533, 565, 279, 18, 4210, 273, 12791, 61, 63, 1615, 15533, 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 ]
Signature sig = token.getSignatureContext( SignatureAlgorithm.fromOID( digestEncryptionAlgorithm.getOID() ) );
Signature sig = token.getSignatureContext( sigAlg );
private void verifyWithAuthenticatedAttributes (byte[] messageDigest, OBJECT_IDENTIFIER contentType, PublicKey pubkey) throws CryptoManager.NotInitializedException, NoSuchAlgorithmException, InvalidKeyException, TokenException, SignatureException { int numAttrib = authenticatedAttributes.size(); if(numAttrib < 2) { throw new SignatureException( "At least two authenticated attributes must be present:"+ " content-type and message-digest"); } // go through the authenticated attributes, verifying the // interesting ones boolean foundContentType = false; boolean foundMessageDigest = false; for( int i = 0; i < numAttrib; i++ ) { if( ! (authenticatedAttributes.elementAt(i) instanceof Attribute)) { throw new SignatureException( "Element of authenticatedAttributes is not an Attribute"); } Attribute attrib = (Attribute) authenticatedAttributes.elementAt(i); if( attrib.getType().equals(CONTENT_TYPE) ) { // content-type. Compare with what was passed in. SET vals = attrib.getValues(); if( vals.size() != 1 ) { throw new SignatureException( "Content-Type attribute "+ " does not have exactly one value"); } ASN1Value val = vals.elementAt(0); OBJECT_IDENTIFIER ctype; try { if( val instanceof OBJECT_IDENTIFIER ) { ctype = (OBJECT_IDENTIFIER) val; } else if( val instanceof ANY ) { ctype = (OBJECT_IDENTIFIER) ((ANY)val).decodeWith( OBJECT_IDENTIFIER.getTemplate() ); } else { // what the heck is it? not what it's supposed to be throw new InvalidBERException( "Content-Type authenticated attribute has unexpected"+ " content type"); } } catch( InvalidBERException e ) { throw new SignatureException( "Content-Type authenticated attribute does not have "+ "OBJECT IDENTIFIER value"); } // compare the content type in the attribute to the // contentType parameter if( ! ctype.equals( contentType ) ) { throw new SignatureException( "Content-type in authenticated attributes does not "+ "match content-type being verified"); } // content type is A-OK foundContentType = true; } else if( attrib.getType().equals(MESSAGE_DIGEST) ) { SET vals = attrib.getValues(); if( vals.size() != 1 ) { throw new SignatureException( "Message-digest attribute does not have"+ " exactly one value"); } ASN1Value val = vals.elementAt(0); byte[] mdigest; try { if( val instanceof OCTET_STRING ) { mdigest = ((OCTET_STRING)val).toByteArray(); } else if( val instanceof ANY ) { OCTET_STRING os; os = (OCTET_STRING) ((ANY)val).decodeWith( OCTET_STRING.getTemplate() ); mdigest = os.toByteArray(); } else { // what the heck is it? not what it's supposed to be throw new InvalidBERException( "Content-Type authenticated attribute has unexpected"+ " content type"); } } catch( InvalidBERException e ) { throw new SignatureException( "Message-digest attribute does not"+ " have OCTET STRING value"); } // compare the message digest in the attribute to the // message digest being verified if( ! byteArraysAreSame(mdigest, messageDigest) ) { throw new SignatureException( "Message-digest attribute does not"+ " match message digest being verified"); } // message digest is A-OK foundMessageDigest = true; } // we don't care about other attributes } if( !foundContentType ) { throw new SignatureException( "Authenticated attributes does not contain"+ " PKCS #9 content-type attribute"); } if( !foundMessageDigest ) { throw new SignatureException( "Authenticate attributes does not contain"+ " PKCS #9 message-digest attribute"); } // All the authenticated attributes are present and correct. // Now verify the signature. CryptoToken token = CryptoManager.getInstance().getInternalCryptoToken(); Signature sig = token.getSignatureContext( SignatureAlgorithm.fromOID( digestEncryptionAlgorithm.getOID() ) ); sig.initVerify(pubkey); // verify the contents octets of the DER encoded authenticated attribs byte[] toBeDigested; try { byte[] encodedAuthAttrib = ASN1Util.encode(authenticatedAttributes); ANY any = (ANY) ASN1Util.decode( ANY.getTemplate(), encodedAuthAttrib ); toBeDigested = any.getContents(); } catch(InvalidBERException e ) { Assert.notReached("Unable to decode authenticated attributes"); toBeDigested = null; } MessageDigest md = MessageDigest.getInstance( DigestAlgorithm.fromOID(digestAlgorithm.getOID()).toString() ); byte[] digest = md.digest(toBeDigested); // create DigestInfo structure SEQUENCE digestInfo = new SEQUENCE(); digestInfo.addElement( digestAlgorithm.getOID() ); digestInfo.addElement( new OCTET_STRING(digest) ); byte[] toBeVerified = ASN1Util.encode(digestInfo); sig.update( toBeVerified ); if( ! sig.verify(encryptedDigest.toByteArray()) ) { // signature is invalid throw new SignatureException("encryptedDigest was not the correct"+ " signature of the contents octets of the DER-encoded"+ " authenticated attributes"); } // SUCCESSFULLY VERIFIED }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/960e7f07cf526cdfcd743b02c4fea4b23f599003/SignerInfo.java/clean/security/jss/org/mozilla/jss/pkcs7/SignerInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3929, 1190, 15606, 2498, 3639, 261, 7229, 8526, 883, 9568, 16, 12166, 67, 16606, 5064, 16, 3639, 11951, 15649, 13, 3639, 1216, 15629, 1318, 18, 1248, 11459, 503, 16, 17684, 16, 3639, 28885, 16, 3155, 503, 16, 9249, 503, 565, 288, 3639, 509, 818, 12399, 273, 9370, 2498, 18, 1467, 5621, 3639, 309, 12, 2107, 12399, 411, 576, 13, 288, 5411, 604, 394, 9249, 503, 12, 7734, 315, 861, 4520, 2795, 9370, 1677, 1297, 506, 3430, 2773, 15, 7734, 315, 913, 17, 723, 471, 883, 17, 10171, 8863, 3639, 289, 3639, 368, 1960, 3059, 326, 9370, 1677, 16, 3929, 310, 326, 3639, 368, 26122, 5945, 3639, 1250, 1392, 8046, 273, 629, 31, 3639, 1250, 1392, 1079, 9568, 273, 629, 31, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 818, 12399, 31, 277, 9904, 262, 288, 5411, 309, 12, 401, 261, 14454, 2498, 18, 2956, 861, 12, 77, 13, 1276, 3601, 3719, 288, 7734, 604, 394, 9249, 503, 12, 10792, 315, 1046, 434, 9370, 2498, 353, 486, 392, 3601, 8863, 5411, 289, 5411, 3601, 5885, 273, 261, 1499, 13, 10792, 9370, 2498, 18, 2956, 861, 12, 77, 1769, 5411, 309, 12, 5885, 18, 588, 559, 7675, 14963, 12, 9689, 67, 2399, 13, 262, 288, 7734, 368, 913, 17, 723, 18, 225, 11051, 598, 4121, 1703, 2275, 316, 18, 7734, 7855, 5773, 273, 5885, 18, 588, 1972, 5621, 7734, 309, 12, 5773, 18, 1467, 1435, 480, 404, 262, 288, 10792, 604, 394, 9249, 503, 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, 3929, 1190, 15606, 2498, 3639, 261, 7229, 8526, 883, 9568, 16, 12166, 67, 16606, 5064, 16, 3639, 11951, 15649, 13, 3639, 1216, 15629, 1318, 18, 1248, 11459, 503, 16, 17684, 16, 3639, 28885, 16, 3155, 503, 16, 9249, 503, 565, 288, 3639, 509, 818, 12399, 273, 9370, 2498, 18, 1467, 5621, 3639, 309, 12, 2107, 12399, 411, 576, 13, 288, 5411, 604, 394, 9249, 503, 12, 7734, 315, 861, 4520, 2795, 9370, 1677, 1297, 506, 3430, 2773, 15, 7734, 315, 913, 17, 723, 471, 883, 17, 10171, 8863, 3639, 289, 3639, 368, 1960, 3059, 326, 9370, 1677, 16, 3929, 310, 326, 3639, 368, 26122, 5945, 3639, 1250, 1392, 8046, 273, 629, 31, 3639, 1250, 1392, 1079, 2 ]
public byte[] rleUncompress(byte[] input) throws FormatException { if (input.length < 8) return prevPixels; // read the 4 byte chunk length; this should equal input.length int length = DataTools.bytesToInt(input, 0, 4, little); // now read the header // if the header is 0, we uncompress the remaining bytes // otherwise, read extra header information to determine which // scanlines to uncompress int header = DataTools.bytesToInt(input, 4, 2, little); int off = 0; // offset into output int start = 0; int pt = 6; int numLines = height; byte[] output = new byte[width * height * (bitsPerPixel / 8)]; if ((header & 0x0008) == 0x0008) { start = DataTools.bytesToInt(input, pt, 2, little); // skip 2 bytes pt += 4; numLines = DataTools.bytesToInt(input, pt, 2, little); // skip 2 bytes pt += 4; // copy appropriate lines from prevPixels for (int i=0; i<start; i++) { off = i * width * (bitsPerPixel / 8); System.arraycopy(prevPixels, off, output, off, width * (bitsPerPixel / 8)); } off += (width * (bitsPerPixel / 8)); for (int i=(start+numLines); i<height; i++) { int offset = i * width * (bitsPerPixel / 8); System.arraycopy(prevPixels, offset, output, offset, width * (bitsPerPixel / 8)); } } else throw new FormatException("Unsupported header : " + header); // uncompress the remaining scanlines byte skip = 0; // number of bytes to skip byte rle = 0; // RLE code int rowPointer = start * (width * (bitsPerPixel / 8)); for (int i=0; i<numLines; i++) { skip = input[pt]; if (prevPixels != null) { try { System.arraycopy(prevPixels, off, output, off, (skip) * (bitsPerPixel / 8)); } catch (ArrayIndexOutOfBoundsException e) { } } off = rowPointer + ((skip) * (bitsPerPixel / 8)); pt++; while (true) { rle = input[pt]; pt++; if (rle == 0) { skip = input[pt]; if (prevPixels != null) { try { System.arraycopy(prevPixels, off, output, off, (skip-1) * (bitsPerPixel / 8)); } catch (ArrayIndexOutOfBoundsException e) { } } off += ((skip-1) * (bitsPerPixel / 8)); pt++; } else if (rle == -1) break; else if (rle < -1) { // unpack next pixel and copy it to output -(rle) times for (int j=0; j<(-1*rle); j++) { if (off < output.length) { System.arraycopy(input, pt, output, off, bitsPerPixel / 8); off += (bitsPerPixel / 8); } else j = (-1*rle); } pt += (bitsPerPixel / 8); } else { // copy (rle) pixels to output System.arraycopy(input, pt, output, off, rle*(bitsPerPixel / 8)); pt += rle*(bitsPerPixel / 8); off += rle*(bitsPerPixel / 8); } } rowPointer += (width * (bitsPerPixel / 8)); } if (prevPixels != null) { for (int i=0; i<output.length; i++) { if (output[i] == 0) output[i] = prevPixels[i]; } } return output; }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/5e79a1290f53a10251fc235924d8df41580454ef/QTReader.java/buggy/loci/formats/QTReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 436, 298, 984, 14706, 12, 7229, 8526, 810, 13, 1216, 4077, 503, 288, 565, 309, 261, 2630, 18, 2469, 411, 1725, 13, 327, 2807, 18079, 31, 565, 368, 855, 326, 1059, 1160, 2441, 769, 31, 333, 1410, 3959, 810, 18, 2469, 565, 509, 769, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 374, 16, 1059, 16, 12720, 1769, 565, 368, 2037, 855, 326, 1446, 565, 368, 309, 326, 1446, 353, 374, 16, 732, 12704, 1028, 326, 4463, 1731, 565, 368, 3541, 16, 855, 2870, 1446, 1779, 358, 4199, 1492, 565, 368, 4135, 3548, 358, 12704, 1028, 565, 509, 1446, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 1059, 16, 576, 16, 12720, 1769, 565, 509, 3397, 273, 374, 31, 368, 1384, 1368, 876, 565, 509, 787, 273, 374, 31, 565, 509, 5818, 273, 1666, 31, 565, 509, 818, 5763, 273, 2072, 31, 565, 1160, 8526, 876, 273, 394, 1160, 63, 2819, 380, 2072, 380, 261, 6789, 2173, 9037, 342, 1725, 13, 15533, 565, 309, 14015, 3374, 473, 374, 92, 3784, 28, 13, 422, 374, 92, 3784, 28, 13, 288, 1377, 787, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 5818, 16, 576, 16, 12720, 1769, 1377, 368, 2488, 576, 1731, 1377, 5818, 1011, 1059, 31, 1377, 818, 5763, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 5818, 16, 576, 16, 12720, 1769, 1377, 368, 2488, 576, 1731, 1377, 5818, 1011, 1059, 31, 1377, 368, 1610, 5505, 2362, 628, 2807, 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, 1160, 8526, 436, 298, 984, 14706, 12, 7229, 8526, 810, 13, 1216, 4077, 503, 288, 565, 309, 261, 2630, 18, 2469, 411, 1725, 13, 327, 2807, 18079, 31, 565, 368, 855, 326, 1059, 1160, 2441, 769, 31, 333, 1410, 3959, 810, 18, 2469, 565, 509, 769, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 374, 16, 1059, 16, 12720, 1769, 565, 368, 2037, 855, 326, 1446, 565, 368, 309, 326, 1446, 353, 374, 16, 732, 12704, 1028, 326, 4463, 1731, 565, 368, 3541, 16, 855, 2870, 1446, 1779, 358, 4199, 1492, 565, 368, 4135, 3548, 358, 12704, 1028, 565, 509, 1446, 273, 1910, 10348, 18, 3890, 17864, 12, 2630, 16, 1059, 16, 576, 16, 12720, 1769, 2 ]
UMOMessageDispatcher dispatcher = endpoint.getConnector().getDispatcher(endpoint.getEndpointURI() .getAddress()); dispatcher.dispatch(new MuleEvent(message, endpoint, null, false));
UMOMessageDispatcher dispatcher = endpoint.getConnector().getDispatcher(endpoint.getEndpointURI().getAddress()); UMOSession session = new MuleSession(component, null); dispatcher.dispatch(new MuleEvent(message, endpoint, session, false));
protected void dispatchEvent(UMOEventContext eventContext, MuleApplicationEvent applicationEvent) throws ApplicationEventException { UMOEndpoint endpoint = null; try { endpoint = MuleEndpoint.getOrCreateEndpointForUri(applicationEvent.getEndpoint(), UMOEndpoint.ENDPOINT_TYPE_SENDER); } catch (UMOException e) { throw new ApplicationEventException("Failed to get endpoint for endpointUri: " + applicationEvent.getEndpoint(), e); } if (endpoint != null) { try { if (applicationEvent.getEndpoint() != null) { endpoint.setEndpointURI(applicationEvent.getEndpoint()); } MuleMessage message = new MuleMessage(applicationEvent.getSource(), applicationEvent.getProperties()); // has dispatch been triggered using beanFactory.publish() // without // a current event? if (RequestContext.getEvent() != null) { // tell mule not to try and route this event itself eventContext.setStopFurtherProcessing(true); eventContext.dispatchEvent(message, endpoint); } else { // transform if necessary if (endpoint.getTransformer() != null) { message = new MuleMessage(endpoint.getTransformer().transform(applicationEvent.getSource()), applicationEvent.getProperties()); } UMOMessageDispatcher dispatcher = endpoint.getConnector().getDispatcher(endpoint.getEndpointURI() .getAddress()); dispatcher.dispatch(new MuleEvent(message, endpoint, null, false)); } } catch (Exception e1) { throw new ApplicationEventException("Failed to dispatch event: " + e1.getMessage(), e1); } } else { throw new ApplicationEventException("Failed endpoint using name: " + applicationEvent.getEndpoint()); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/474b57065fd42f121b8743a207c223c19f72c625/MuleEventMulticaster.java/clean/mule-extras/spring/src/java/org/mule/extras/spring/events/MuleEventMulticaster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 15678, 12, 2799, 51, 1133, 1042, 871, 1042, 16, 490, 725, 3208, 1133, 2521, 1133, 13, 5411, 1216, 4257, 1133, 503, 565, 288, 3639, 587, 5980, 3293, 2494, 273, 446, 31, 3639, 775, 288, 5411, 2494, 273, 490, 725, 3293, 18, 588, 17717, 3293, 1290, 3006, 12, 3685, 1133, 18, 588, 3293, 9334, 4766, 17311, 587, 5980, 3293, 18, 18506, 67, 2399, 67, 1090, 18556, 1769, 3639, 289, 1044, 261, 2799, 51, 503, 425, 13, 288, 5411, 604, 394, 4257, 1133, 503, 2932, 2925, 358, 336, 2494, 364, 2494, 3006, 30, 315, 10792, 397, 2521, 1133, 18, 588, 3293, 9334, 425, 1769, 3639, 289, 3639, 309, 261, 8003, 480, 446, 13, 288, 5411, 775, 288, 7734, 309, 261, 3685, 1133, 18, 588, 3293, 1435, 480, 446, 13, 288, 10792, 2494, 18, 542, 3293, 3098, 12, 3685, 1133, 18, 588, 3293, 10663, 7734, 289, 7734, 490, 725, 1079, 883, 273, 394, 490, 725, 1079, 12, 3685, 1133, 18, 588, 1830, 9334, 2521, 1133, 18, 588, 2297, 10663, 7734, 368, 711, 3435, 2118, 10861, 1450, 3931, 1733, 18, 6543, 1435, 7734, 368, 2887, 7734, 368, 279, 783, 871, 35, 7734, 309, 261, 21426, 18, 588, 1133, 1435, 480, 446, 13, 288, 10792, 368, 9276, 312, 725, 486, 358, 775, 471, 1946, 333, 871, 6174, 10792, 871, 1042, 18, 542, 4947, 42, 8753, 7798, 12, 3767, 1769, 10792, 871, 1042, 18, 10739, 1133, 12, 2150, 16, 2494, 1769, 7734, 289, 469, 288, 10792, 368, 2510, 309, 4573, 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, 15678, 12, 2799, 51, 1133, 1042, 871, 1042, 16, 490, 725, 3208, 1133, 2521, 1133, 13, 5411, 1216, 4257, 1133, 503, 565, 288, 3639, 587, 5980, 3293, 2494, 273, 446, 31, 3639, 775, 288, 5411, 2494, 273, 490, 725, 3293, 18, 588, 17717, 3293, 1290, 3006, 12, 3685, 1133, 18, 588, 3293, 9334, 4766, 17311, 587, 5980, 3293, 18, 18506, 67, 2399, 67, 1090, 18556, 1769, 3639, 289, 1044, 261, 2799, 51, 503, 425, 13, 288, 5411, 604, 394, 4257, 1133, 503, 2932, 2925, 358, 336, 2494, 364, 2494, 3006, 30, 315, 10792, 397, 2521, 1133, 18, 588, 3293, 9334, 425, 1769, 3639, 289, 3639, 309, 261, 8003, 480, 446, 13, 288, 5411, 775, 288, 7734, 2 ]
CLASSES_FRAME_NAME,
CLASSES_FRAME,
private void printPackagesTable(Tree[] trees, String title) { if (trees.length > 0) { page.printlnBold(title); page.printlnOTag("table", ATTRS_LIST).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", new XMLAttribute[] { new XMLAttribute("style", "white-space:nowrap;")}).indent(); for (int i = 1; i < trees.length; i++) { Symbol sym = trees[i].symbol(); page.printAhref( packageSummaryPage(sym), CLASSES_FRAME_NAME, sym.fullNameString()); page.printlnSTag("br"); } page.undent(); page.printlnCTag("td").undent(); page.printlnCTag("tr").undent(); page.printlnCTag("table"); page.printlnSTag("p"); } }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/de584bc658a38af84d452993beedd7e85424ca15/HTMLGenerator.java/clean/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 11425, 1388, 12, 2471, 8526, 11491, 16, 514, 2077, 13, 288, 3639, 309, 261, 17204, 18, 2469, 405, 374, 13, 288, 5411, 1363, 18, 8222, 38, 1673, 12, 2649, 1769, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 2121, 3113, 12759, 55, 67, 7085, 2934, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 313, 20387, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 4465, 3113, 394, 3167, 1499, 8526, 288, 7734, 394, 3167, 1499, 2932, 4060, 3113, 315, 14739, 17, 2981, 30, 3338, 1266, 4868, 16869, 2934, 9355, 5621, 202, 565, 364, 261, 474, 277, 273, 404, 31, 277, 411, 11491, 18, 2469, 31, 277, 27245, 288, 202, 3639, 8565, 5382, 273, 11491, 63, 77, 8009, 7175, 5621, 7734, 1363, 18, 1188, 37, 7547, 12, 10792, 2181, 4733, 1964, 12, 8117, 3631, 10792, 29859, 20230, 67, 15072, 16, 10792, 5382, 18, 2854, 461, 780, 10663, 202, 3639, 1363, 18, 8222, 882, 346, 2932, 2848, 8863, 202, 565, 289, 5411, 1363, 18, 1074, 319, 5621, 202, 565, 1363, 18, 8222, 1268, 346, 2932, 4465, 20387, 1074, 319, 5621, 202, 565, 1363, 18, 8222, 1268, 346, 2932, 313, 20387, 1074, 319, 5621, 202, 565, 1363, 18, 8222, 1268, 346, 2932, 2121, 8863, 5411, 1363, 18, 8222, 882, 346, 2932, 84, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 11425, 1388, 12, 2471, 8526, 11491, 16, 514, 2077, 13, 288, 3639, 309, 261, 17204, 18, 2469, 405, 374, 13, 288, 5411, 1363, 18, 8222, 38, 1673, 12, 2649, 1769, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 2121, 3113, 12759, 55, 67, 7085, 2934, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 313, 20387, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 4465, 3113, 394, 3167, 1499, 8526, 288, 7734, 394, 3167, 1499, 2932, 4060, 3113, 315, 14739, 17, 2981, 30, 3338, 1266, 4868, 16869, 2934, 9355, 5621, 202, 565, 364, 261, 474, 277, 273, 404, 31, 277, 411, 11491, 18, 2469, 31, 277, 27245, 288, 202, 3639, 8565, 5382, 2 ]
AST __t2305 = _t; AST tmp2470_AST_in = (AST)_t;
AST __t2309 = _t; AST tmp2474_AST_in = (AST)_t;
public final void grant_rev_opt(AST _t) throws RecognitionException { AST grant_rev_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t2302 = _t; AST tmp2465_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVILEGES: { AST tmp2466_AST_in = (AST)_t; match(_t,PRIVILEGES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2302; _t = _t.getNextSibling(); break; } case DELETE_KW: case INSERT: case SELECT: case UPDATE: case COMMA: { { int _cnt2310=0; _loop2310: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { AST tmp2467_AST_in = (AST)_t; match(_t,SELECT); _t = _t.getNextSibling(); break; } case INSERT: { AST tmp2468_AST_in = (AST)_t; match(_t,INSERT); _t = _t.getNextSibling(); break; } case DELETE_KW: { AST tmp2469_AST_in = (AST)_t; match(_t,DELETE_KW); _t = _t.getNextSibling(); break; } case UPDATE: { AST __t2305 = _t; AST tmp2470_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t2307 = _t; AST tmp2471_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp2472_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2309: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2473_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); field(_t); _t = _retTree; } else { break _loop2309; } } while (true); } AST tmp2474_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2307; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2305; _t = _t.getNextSibling(); break; } case COMMA: { AST tmp2475_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); break; } default: { if ( _cnt2310>=1 ) { break _loop2310; } else {throw new NoViableAltException(_t);} } } _cnt2310++; } while (true); } break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 3838, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 3838, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8061, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 3103, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 9222, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4685, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 10365, 4136, 19384, 3991, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 3247, 6028, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 7698, 4136, 19384, 3991, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 890, 30, 1082, 202, 95, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 1886, 30, 1082, 202, 95, 9506, 202, 12849, 394, 17114, 24899, 88, 1769, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 7936, 67, 9083, 67, 3838, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 7936, 67, 9083, 67, 3838, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8061, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 4366, 3103, 273, 389, 88, 31, 1082, 202, 9053, 1853, 3247, 9222, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4685, 1769, 1082, 202, 2 ]
public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName();
public quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { quickfix.field.BenchmarkCurveName value = new quickfix.field.BenchmarkCurveName();
public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 9423, 461, 2882, 9737, 9423, 461, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 9423, 461, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 9423, 461, 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, 30672, 9423, 461, 2882, 9737, 9423, 461, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 9423, 461, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 9423, 461, 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 ]
public void createPartControl(Composite parent) { if (getBug() == null) { // close(); MessageDialog.openError(Display.getDefault().getActiveShell(), "Bugzilla Client Errror", "Could not resolve the requested bug, check Bugzilla server and version."); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); Label noBugLabel = new Label(composite, SWT.NULL); noBugLabel.setText("Could not resolve bug"); return; } toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createScrolledForm(parent); // String truncatedSummary = getBug().getSummary(); // int maxLength = 50; // if (truncatedSummary.length() > maxLength) { // truncatedSummary = truncatedSummary.substring(0, maxLength) + "..."; // } // form.setFont(COMMENT_FONT); // form.setText("Bugzilla Bug: " + getBug().getSummary()); editorComposite = form.getBody(); editorComposite.setLayout(new GridLayout()); editorComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); // Header information Composite summaryComposite = toolkit.createComposite(editorComposite); summaryComposite.setLayout(new GridLayout(2, false)); GridDataFactory.fillDefaults().grab(true, false).applyTo(summaryComposite); addSummaryText(summaryComposite); toolkit.paintBordersFor(summaryComposite); Composite headerInfoComposite = toolkit.createComposite(editorComposite); headerInfoComposite.setLayout(new GridLayout(6, false)); toolkit.createLabel(headerInfoComposite, "Bug# ").setFont(TITLE_FONT); toolkit.createText(headerInfoComposite, "" + getReport().getId(), SWT.FLAT | SWT.READ_ONLY); toolkit.createLabel(headerInfoComposite, " Opened: ").setFont(TITLE_FONT); String openedDateString = ""; if (getBug().getCreated() != null) { openedDateString = simpleDateFormat.format(getBug().getCreated()); } toolkit.createText(headerInfoComposite, openedDateString, SWT.FLAT | SWT.READ_ONLY); toolkit.createLabel(headerInfoComposite, " Modified: ").setFont(TITLE_FONT); String lastModifiedDateString = ""; if (getBug().getLastModified(null) != null) { lastModifiedDateString = simpleDateFormat.format(getBug().getLastModified(null)); } toolkit.createText(headerInfoComposite, lastModifiedDateString, SWT.FLAT | SWT.READ_ONLY); // openedText.setFont(TITLE_FONT); // display = parent.getDisplay(); // background = JFaceColors.getBannerBackground(display); // foreground = JFaceColors.getBannerForeground(display); //createInfoArea(editorComposite); createContextMenu(); createAttributeLayout(); createAttachmentLayout(); createDescriptionLayout(toolkit, form); createCommentLayout(toolkit, form); createButtonLayouts(toolkit, form.getBody()); WorkbenchHelpSystem.getInstance().setHelp(parent, BugzillaUiPlugin.EDITOR_PAGE_CONTEXT); editorComposite.setMenu(contextMenuManager.createContextMenu(editorComposite)); form.reflow(true); getSite().getPage().addSelectionListener(selectionListener); getSite().setSelectionProvider(selectionProvider); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/20a0f58b54df2a45c03b2642a8eeca6861335dd1/AbstractBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 430, 261, 588, 19865, 1435, 422, 446, 13, 288, 1082, 202, 759, 1746, 5621, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 9334, 315, 19865, 15990, 2445, 1926, 86, 280, 3113, 6862, 202, 6, 4445, 486, 2245, 326, 3764, 7934, 16, 866, 16907, 15990, 1438, 471, 1177, 1199, 1769, 1082, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 1082, 202, 27676, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 1082, 202, 2224, 1158, 19865, 2224, 273, 394, 5287, 12, 27676, 16, 348, 8588, 18, 8560, 1769, 1082, 202, 2135, 19865, 2224, 18, 542, 1528, 2932, 4445, 486, 2245, 7934, 8863, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6738, 8691, 273, 394, 2748, 6364, 8691, 12, 2938, 18, 588, 4236, 10663, 202, 202, 687, 273, 5226, 8691, 18, 2640, 1541, 25054, 1204, 12, 2938, 1769, 202, 202, 759, 514, 15282, 4733, 273, 2882, 637, 7675, 588, 4733, 5621, 202, 202, 759, 509, 13642, 273, 6437, 31, 202, 202, 759, 309, 261, 23558, 690, 4733, 18, 2469, 1435, 405, 13642, 13, 288, 202, 202, 759, 15282, 4733, 273, 15282, 4733, 18, 28023, 12, 20, 16, 13642, 13, 397, 26456, 31, 202, 202, 759, 289, 202, 202, 759, 646, 18, 542, 5711, 12, 12200, 67, 25221, 1769, 202, 202, 759, 646, 18, 542, 1528, 2932, 19865, 15990, 16907, 30, 315, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 430, 261, 588, 19865, 1435, 422, 446, 13, 288, 1082, 202, 759, 1746, 5621, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 4236, 18, 588, 1868, 7675, 588, 3896, 13220, 9334, 315, 19865, 15990, 2445, 1926, 86, 280, 3113, 6862, 202, 6, 4445, 486, 2245, 326, 3764, 7934, 16, 866, 16907, 15990, 1438, 471, 1177, 1199, 1769, 1082, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 1082, 202, 27676, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 1082, 202, 2224, 1158, 19865, 2224, 273, 394, 5287, 12, 27676, 16, 348, 8588, 18, 8560, 1769, 1082, 202, 2135, 19865, 2224, 2 ]
final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); FileUtils.writeStringToFile(tmpFile, htmlContent, encoding); URL fileURL = new URL("file:
final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); FileUtils.writeStringToFile(tmpFile, htmlContent, encoding); URL fileURL = new URL("file:
public void testLoadFilePage() throws Exception { // create a real file to read // it could be usefull to have existing files to test in a special location in filesystem. // It will be really needed when we have to test binary files using the file protocol. final String htmlContent = "<html><head><title>foo</title></head><body>" + "</body></html>"; File tmpFile = File.createTempFile("test", ".html"); tmpFile.deleteOnExit(); final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); FileUtils.writeStringToFile(tmpFile, htmlContent, encoding); URL fileURL = new URL("file://" + tmpFile.getCanonicalPath()); final WebClient client = new WebClient(); final HtmlPage page = (HtmlPage) client.getPage(fileURL); assertEquals( htmlContent, page.getWebResponse().getContentAsString() ); assertEquals( "text/html", page.getWebResponse().getContentType() ); assertEquals( 200, page.getWebResponse().getStatusCode() ); assertEquals( "foo", page.getTitleText() ); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/886e944f52ced96bba3eeca24e83a8f2d4c622fa/WebClientTest.java/clean/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2563, 812, 1964, 1435, 1216, 1185, 288, 377, 202, 759, 752, 279, 2863, 585, 358, 855, 1377, 202, 759, 518, 3377, 506, 999, 2854, 358, 1240, 2062, 1390, 358, 1842, 316, 279, 4582, 2117, 316, 6496, 18, 1377, 202, 759, 2597, 903, 506, 8654, 3577, 1347, 732, 1240, 358, 1842, 3112, 1390, 1450, 326, 585, 1771, 18, 3639, 727, 514, 1729, 1350, 1171, 273, 3532, 2620, 4438, 1978, 4438, 2649, 34, 11351, 1757, 2649, 4695, 1978, 4438, 3432, 2984, 1171, 397, 6823, 3432, 4695, 2620, 2984, 31, 3639, 1387, 18504, 273, 1387, 18, 2640, 20181, 2932, 3813, 3113, 3552, 2620, 8863, 3639, 18504, 18, 3733, 1398, 6767, 5621, 377, 202, 6385, 514, 2688, 273, 261, 2704, 24248, 12, 2704, 11559, 10756, 2934, 588, 4705, 5621, 377, 202, 812, 1989, 18, 2626, 780, 15450, 12, 5645, 812, 16, 1729, 1350, 16, 2688, 1769, 377, 202, 377, 202, 1785, 585, 1785, 273, 394, 1976, 2932, 768, 14334, 397, 18504, 18, 588, 15512, 743, 10663, 7734, 727, 2999, 1227, 1004, 273, 394, 2999, 1227, 5621, 3639, 727, 5430, 1964, 1363, 273, 261, 4353, 1964, 13, 1004, 18, 588, 1964, 12, 768, 1785, 1769, 3639, 1815, 8867, 12, 5411, 1729, 1350, 16, 5411, 1363, 18, 588, 4079, 1064, 7675, 588, 1350, 8092, 1435, 11272, 3639, 1815, 8867, 12, 7734, 315, 955, 19, 2620, 3113, 202, 5411, 1363, 18, 588, 4079, 1064, 7675, 588, 8046, 1435, 11272, 3639, 1815, 8867, 12, 7734, 4044, 16, 202, 5411, 1363, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2563, 812, 1964, 1435, 1216, 1185, 288, 377, 202, 759, 752, 279, 2863, 585, 358, 855, 1377, 202, 759, 518, 3377, 506, 999, 2854, 358, 1240, 2062, 1390, 358, 1842, 316, 279, 4582, 2117, 316, 6496, 18, 1377, 202, 759, 2597, 903, 506, 8654, 3577, 1347, 732, 1240, 358, 1842, 3112, 1390, 1450, 326, 585, 1771, 18, 3639, 727, 514, 1729, 1350, 1171, 273, 3532, 2620, 4438, 1978, 4438, 2649, 34, 11351, 1757, 2649, 4695, 1978, 4438, 3432, 2984, 1171, 397, 6823, 3432, 4695, 2620, 2984, 31, 3639, 1387, 18504, 273, 1387, 18, 2640, 20181, 2932, 3813, 3113, 3552, 2620, 8863, 3639, 18504, 18, 3733, 1398, 6767, 5621, 377, 202, 6385, 514, 2688, 273, 261, 2 ]
lctFlag = (packed & 0x80) != 0;
protected void readImage() throws ImageMergeException { ix = readShort(); // (sub)image position & size iy = readShort(); iw = readShort(); ih = readShort(); int packed = read(); lctFlag = (packed & 0x80) != 0; // 1 - local color table flag interlace = (packed & 0x40) != 0; // 2 - interlace flag // 3 - sort flag // 4-5 - reserved lctSize = 2 << (packed & 7); // 6-8 - local color table size if (lctFlag) { System.err.println("ERROR: image has a local color table -- cannot handle this"); throw new ImageMergeException("ERROR: image has a local color table -- cannot handle this"); // lct = readColorTable(lctSize); // read table // act = lct; // make local table active } else { act = gct; // make global table active if (bgIndex == transIndex) bgColor = 0; } int save = 0; if (transparency) { save = act[transIndex]; act[transIndex] = 0; // set transparent color if specified } if (act == null) { status = STATUS_FORMAT_ERROR; // no color table defined } if (err()) return; decodeImageData(); // decode pixel data skip(); if (err()) return; frameCount++; // create new image to receive frame data image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB_PRE); setPixels(); // transfer pixel data to image frames.add(new GifFrame(image, delay)); // add image to frame list if (transparency) act[transIndex] = save; resetFrame(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/38deb5a3770dd936982e996839c13f192aaf5f29/GifDecoder.java/buggy/Ajax/src/com/zimbra/ajax/imagemerge/GifDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 855, 2040, 1435, 540, 1216, 3421, 6786, 503, 565, 288, 3639, 8288, 273, 31617, 5621, 368, 261, 1717, 13, 2730, 1754, 473, 963, 3639, 23466, 273, 31617, 5621, 3639, 25522, 273, 31617, 5621, 3639, 18456, 273, 31617, 5621, 3639, 509, 12456, 273, 855, 5621, 540, 368, 404, 300, 1191, 2036, 1014, 2982, 3639, 1554, 80, 623, 273, 261, 2920, 329, 473, 374, 92, 7132, 13, 480, 374, 31, 368, 576, 300, 1554, 80, 623, 2982, 3639, 368, 890, 300, 1524, 2982, 3639, 368, 1059, 17, 25, 300, 8735, 3639, 328, 299, 1225, 273, 576, 2296, 261, 2920, 329, 473, 2371, 1769, 368, 1666, 17, 28, 300, 1191, 2036, 1014, 963, 3639, 309, 261, 80, 299, 4678, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 3589, 30, 1316, 711, 279, 1191, 2036, 1014, 1493, 2780, 1640, 333, 8863, 5411, 604, 394, 3421, 6786, 503, 2932, 3589, 30, 1316, 711, 279, 1191, 2036, 1014, 1493, 2780, 1640, 333, 8863, 5411, 368, 328, 299, 273, 855, 2957, 1388, 12, 80, 299, 1225, 1769, 368, 855, 1014, 5411, 368, 1328, 273, 328, 299, 31, 368, 1221, 1191, 1014, 2695, 3639, 289, 469, 288, 5411, 1328, 273, 314, 299, 31, 368, 1221, 2552, 1014, 2695, 5411, 309, 261, 12370, 1016, 422, 906, 1016, 13, 7734, 7611, 2957, 273, 374, 31, 3639, 289, 3639, 509, 1923, 273, 374, 31, 3639, 309, 261, 2338, 18258, 13, 288, 5411, 1923, 273, 1328, 63, 2338, 1016, 15533, 5411, 1328, 63, 2338, 1016, 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, 855, 2040, 1435, 540, 1216, 3421, 6786, 503, 565, 288, 3639, 8288, 273, 31617, 5621, 368, 261, 1717, 13, 2730, 1754, 473, 963, 3639, 23466, 273, 31617, 5621, 3639, 25522, 273, 31617, 5621, 3639, 18456, 273, 31617, 5621, 3639, 509, 12456, 273, 855, 5621, 540, 368, 404, 300, 1191, 2036, 1014, 2982, 3639, 1554, 80, 623, 273, 261, 2920, 329, 473, 374, 92, 7132, 13, 480, 374, 31, 368, 576, 300, 1554, 80, 623, 2982, 3639, 368, 890, 300, 1524, 2982, 3639, 368, 1059, 17, 25, 300, 8735, 3639, 328, 299, 1225, 273, 576, 2296, 261, 2920, 329, 473, 2371, 1769, 368, 1666, 17, 28, 300, 1191, 2036, 1014, 963, 3639, 309, 261, 80, 299, 4678, 2 ]
w.endElement();
w.endElement();
private void writeGoalParameterTable( MojoDescriptor mojoDescriptor, XMLWriter w ) { w.startElement( "table" ); w.startElement( "tr" ); w.startElement( "th" ); w.writeText( "Parameter" ); w.endElement(); w.startElement( "th" ); w.writeText( "Type" ); w.endElement(); w.startElement( "th" ); w.writeText( "Expression" ); w.endElement(); w.startElement( "th" ); w.writeText( "Description" ); w.endElement(); w.endElement(); List parameters = mojoDescriptor.getParameters(); for ( int i = 0; i < parameters.size(); i++ ) { Parameter parameter = (Parameter) parameters.get( i ); w.startElement( "tr" ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); String paramName = parameter.getAlias(); if ( StringUtils.isEmpty( paramName ) ) { paramName = parameter.getName(); } w.startElement( "code" ); w.writeText( paramName ); w.endElement(); if ( !parameter.isRequired() ) { w.writeMarkup( " <i>(Optional)</i>" ); } if ( parameter.getExpression() != null && parameter.getExpression().startsWith( "${component." ) ) { w.writeMarkup( " <i>(Discovered)</i>" ); } w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); w.startElement( "code" ); w.addAttribute( "title", parameter.getType() ); int index = parameter.getType().lastIndexOf( "." ); if ( index >= 0 ) { w.writeText( parameter.getType().substring( index + 1 ) ); } else { w.writeText( parameter.getType() ); } w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); w.startElement( "code" ); if ( StringUtils.isNotEmpty( parameter.getExpression() ) && !parameter.getExpression().startsWith( "${component." ) ) { w.writeText( parameter.getExpression() ); } else { w.writeText( "-" ); } w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); if ( StringUtils.isNotEmpty( parameter.getDescription() ) ) { w.writeMarkup( parameter.getDescription() ); } else { w.writeText( "No description." ); } String deprecationWarning = parameter.getDeprecated(); if ( deprecationWarning != null ) { w.writeMarkup( "<br/><b>Deprecated:</b> " ); w.writeMarkup( deprecationWarning ); if ( deprecationWarning.length() == 0 ) { w.writeText( "No reason given." ); } w.endElement(); } w.endElement(); w.endElement(); } w.endElement(); w.endElement(); }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/76d49b7d7be734d97e5e9357a6a84d8d60ef02fe/PluginXdocGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 27716, 1662, 1388, 12, 15931, 3187, 312, 10007, 3187, 16, 3167, 2289, 341, 262, 565, 288, 3639, 341, 18, 1937, 1046, 12, 315, 2121, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 1662, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 559, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 2300, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 3291, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 409, 1046, 5621, 3639, 987, 1472, 273, 312, 10007, 3187, 18, 588, 2402, 5621, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 411, 1472, 18, 1467, 5621, 277, 9904, 262, 3639, 288, 5411, 5498, 1569, 273, 261, 1662, 13, 1472, 18, 588, 12, 277, 11272, 5411, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 5411, 368, 8879, 13465, 5411, 368, 5411, 368, 8879, 13465, 5411, 341, 18, 1937, 1046, 12, 315, 4465, 6, 11272, 5411, 514, 11466, 273, 1569, 18, 588, 2936, 5621, 5411, 309, 261, 5778, 18, 291, 1921, 12, 11466, 262, 262, 5411, 288, 7734, 11466, 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, 1045, 27716, 1662, 1388, 12, 15931, 3187, 312, 10007, 3187, 16, 3167, 2289, 341, 262, 565, 288, 3639, 341, 18, 1937, 1046, 12, 315, 2121, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 1662, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 559, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 2300, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 2 ]
|| (finalSet > 0) || (blockSet > 0)
|| (finalSetStr != null && finalSet > 0) || (blockSetStr != null && blockSet > 0)
private QName traverseElementDecl(Element elementDecl) throws Exception { int contentSpecType = -1; int contentSpecNodeIndex = -1; int typeNameIndex = -1; int scopeDefined = -2; //signal a error if -2 gets gets through //cause scope can never be -2. DatatypeValidator dv = null; String name = elementDecl.getAttribute(SchemaSymbols.ATT_NAME); if ( DEBUGGING ) System.out.println("traversing element decl : " + name ); String ref = elementDecl.getAttribute(SchemaSymbols.ATT_REF); String type = elementDecl.getAttribute(SchemaSymbols.ATT_TYPE); String minOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MINOCCURS); String maxOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MAXOCCURS); String dflt = elementDecl.getAttribute(SchemaSymbols.ATT_DEFAULT); String fixed = elementDecl.getAttribute(SchemaSymbols.ATT_FIXED); if(!(dflt.equals("") || fixed.equals(""))) // REVISIT: localize reportGenericSchemaError("an element cannot have both \"fixed\" and \"default\" present at the same time"); String substitutionGroup = elementDecl.getAttribute(SchemaSymbols.ATT_SUBSTITUTIONGROUP); // form attribute String isQName = elementDecl.getAttribute(SchemaSymbols.ATT_FORM); String fromAnotherSchema = null; if (isTopLevel(elementDecl)) { if(name.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element must have a name"); else if (!ref.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element " + name + " cannot have a ref attribute"); int nameIndex = fStringPool.addSymbol(name); int eltKey = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, nameIndex,TOP_LEVEL_SCOPE); if (eltKey > -1 ) { return new QName(-1,nameIndex,nameIndex,fTargetNSURI); } } // parse out 'block', 'final', 'nullable', 'abstract' String blockSetStr = null; Attr blockAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSetStr = blockAttr.getValue(); int blockSet = parseBlockSet(blockSetStr); if( (blockSetStr != null) && !blockSetStr.equals("") && (!blockSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((blockSet & SchemaSymbols.RESTRICTION) == 0) && (((blockSet & SchemaSymbols.EXTENSION) == 0) && ((blockSet & SchemaSymbols.SUBSTITUTION) == 0))))) reportGenericSchemaError("The values of the 'block' attribute of an element must be either #all or a list of 'substitution', 'restriction' and 'extension'; " + blockSetStr + " was found"); String finalSetStr = null; Attr finalAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSetStr = finalAttr.getValue(); int finalSet = parseFinalSet(finalSetStr); if( (finalSetStr != null) && !finalSetStr.equals("") && (!finalSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((finalSet & SchemaSymbols.RESTRICTION) == 0) && ((finalSet & SchemaSymbols.EXTENSION) == 0)))) reportGenericSchemaError("The values of the 'final' attribute of an element must be either #all or a list of 'restriction' and 'extension'; " + finalSetStr + " was found"); boolean isNullable = elementDecl.getAttribute (SchemaSymbols.ATT_NULLABLE).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; boolean isAbstract = elementDecl.getAttribute (SchemaSymbols.ATT_ABSTRACT).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; int elementMiscFlags = 0; if (isNullable) { elementMiscFlags += SchemaSymbols.NULLABLE; } if (isAbstract) { elementMiscFlags += SchemaSymbols.ABSTRACT; } //if this is a reference to a global element if (!ref.equals("")) { //REVISIT top level check for ref if (!type.equals("") || (elementMiscFlags > 0) || (finalSet > 0) || (blockSet > 0) || !dflt.equals("") || !fixed.equals("")) reportSchemaError(SchemaMessageProvider.BadAttWithRef, null); if (!name.equals("")) // REVISIT: Localize reportGenericSchemaError("element " + name + " cannot also have a ref attribute"); Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { if (XUtil.getNextSiblingElement(child) != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); else traverseAnnotationDecl(child); } else if (child != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); String prefix = ""; String localpart = ref; int colonptr = ref.indexOf(":"); if ( colonptr > 0) { prefix = ref.substring(0,colonptr); localpart = ref.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String uriString = resolvePrefixToURI(prefix); QName eltName = new QName(prefix != null ? fStringPool.addSymbol(prefix) : -1, localpartIndex, fStringPool.addSymbol(ref), uriString != null ? fStringPool.addSymbol(uriString) : StringPool.EMPTY_STRING); //if from another schema, just return the element QName if (! uriString.equals(fTargetNSURIString) ) { return eltName; } int elementIndex = fSchemaGrammar.getElementDeclIndex(eltName, TOP_LEVEL_SCOPE); //if not found, traverse the top level element that if referenced if (elementIndex == -1 ) { Element targetElement = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT,localpart); if (targetElement == null ) { // REVISIT: Localize reportGenericSchemaError("Element " + localpart + " not found in the Schema"); //REVISIT, for now, the QName anyway return eltName; //return new QName(-1,fStringPool.addSymbol(localpart), -1, fStringPool.addSymbol(uriString)); } else { // do nothing here, other wise would cause infinite loop for // <element name="recur"><complexType><element ref="recur"> ... //eltName= traverseElementDecl(targetElement); } } return eltName; } else if (name.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element must have a name or a ref attribute present"); // Handle the substitutionGroup Element substitutionGroupElementDecl = null; int substitutionGroupElementDeclIndex = -1; boolean noErrorSoFar = true; String substitutionGroupUri = null; String substitutionGroupLocalpart = null; String substitutionGroupFullName = null; ComplexTypeInfo substitutionGroupEltTypeInfo = null; DatatypeValidator substitutionGroupEltDV = null; if ( substitutionGroup.length() > 0 ) { if(!ref.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element cannot have a substitutionGroup"); substitutionGroupUri = resolvePrefixToURI(getPrefix(substitutionGroup)); substitutionGroupLocalpart = getLocalPart(substitutionGroup); substitutionGroupFullName = substitutionGroupUri+","+substitutionGroupLocalpart; if ( !substitutionGroupUri.equals(fTargetNSURIString) ) { substitutionGroupEltTypeInfo = getElementDeclTypeInfoFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltTypeInfo == null) { substitutionGroupEltDV = getElementDeclTypeValidatorFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } else { substitutionGroupElementDecl = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT, substitutionGroupLocalpart); if (substitutionGroupElementDecl == null) { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("unable to locate substitutionGroup affiliation element " +substitutionGroup +" in element declaration " +name); } } else { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { traverseElementDecl(substitutionGroupElementDecl); substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); } } if (substitutionGroupElementDeclIndex != -1) { substitutionGroupEltTypeInfo = fSchemaGrammar.getElementComplexTypeInfo( substitutionGroupElementDeclIndex ); if (substitutionGroupEltTypeInfo == null) { fSchemaGrammar.getElementDecl(substitutionGroupElementDeclIndex, fTempElementDecl); substitutionGroupEltDV = fTempElementDecl.datatypeValidator; if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } } } // // resolving the type for this element right here // ComplexTypeInfo typeInfo = null; // element has a single child element, either a datatype or a type, null if primitive Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child); child = XUtil.getNextSiblingElement(child); } if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) // REVISIT: Localize reportGenericSchemaError("element declarations can contain at most one annotation Element Information Item"); boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous complexType in element '" + name +"' has a name attribute"); } else { // Determine what the type name will be String anonTypeName = genAnonTypeName(child); if (fCurrentTypeNameStack.search((Object)anonTypeName) > - 1) { // A recursing element using an anonymous type int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, anonTypeName); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl(child); if (typeNameIndex != -1 ) { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse complexType error in element '" + name +"'"); } } } haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { // TO DO: the Default and fixed attribute handling should be here. if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous simpleType in element '" + name +"' has a name attribute"); } else typeNameIndex = traverseSimpleTypeDecl(child); if (typeNameIndex != -1) { dv = fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse simpleType error in element '" + name +"'"); } contentSpecType = XMLElementDecl.TYPE_SIMPLE; haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (type.equals("")) { // "ur-typed" leaf contentSpecType = XMLElementDecl.TYPE_ANY; //REVISIT: is this right? //contentSpecType = fStringPool.addSymbol("UR_TYPE"); // set occurrence count contentSpecNodeIndex = -1; } // see if there's something here; it had better be key, keyref or unique. if (child != null) childName = child.getLocalName(); while ((child != null) && ((childName.equals(SchemaSymbols.ELT_KEY)) || (childName.equals(SchemaSymbols.ELT_KEYREF)) || (childName.equals(SchemaSymbols.ELT_UNIQUE)))) { child = XUtil.getNextSiblingElement(child); if (child != null) { childName = child.getLocalName(); } } if (child != null) { // REVISIT: Localize noErrorSoFar = false; reportGenericSchemaError("the content of an element information item must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)"); } } // handle type="" here if (haveAnonType && (type.length()>0)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError( "Element '"+ name + "' have both a type attribute and a annoymous type child" ); } // type specified as an attribute and no child is type decl. else if (!type.equals("")) { String prefix = ""; String localpart = type; int colonptr = type.indexOf(":"); if ( colonptr > 0) { prefix = type.substring(0,colonptr); localpart = type.substring(colonptr+1); } String typeURI = resolvePrefixToURI(prefix); // check if the type is from the same Schema if ( !typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && typeURI.length() != 0) { // REVISIT, only needed because of resolvePrifixToURI. fromAnotherSchema = typeURI; typeInfo = getTypeInfoFromNS(typeURI, localpart); if (typeInfo == null) { dv = getTypeValidatorFromNS(typeURI, localpart); if (dv == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type " +localpart + " in schema " + typeURI); } } } else { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(typeURI+","+localpart); if (typeInfo == null) { dv = getDatatypeValidator(typeURI, localpart); if (dv == null ) if (typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && !fTargetNSURIString.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } else { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (topleveltype != null) { if (fCurrentTypeNameStack.search((Object)localpart) > - 1) { //then we found a recursive element using complexType. // REVISIT: this will be broken when recursing happens between 2 schemas int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, localpart); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl( topleveltype ); typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } } else { topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { typeNameIndex = traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); // TO DO: the Default and fixed attribute handling should be here. } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } } } } } } // now we need to make sure that our substitution (if any) // is valid, now that we have all the requisite type-related info. if(substitutionGroup.length() > 0) { checkSubstitutionGroupOK(elementDecl, substitutionGroupElementDecl, noErrorSoFar, substitutionGroupElementDeclIndex, typeInfo, substitutionGroupEltTypeInfo, dv, substitutionGroupEltDV); } // this element is ur-type, check its substitutionGroup affiliation. // if there is substitutionGroup affiliation and not type definition found for this element, // then grab substitutionGroup affiliation's type and give it to this element if ( noErrorSoFar && typeInfo == null && dv == null ) { typeInfo = substitutionGroupEltTypeInfo; dv = substitutionGroupEltDV; } if (typeInfo == null && dv==null) { if (noErrorSoFar) { // Actually this Element's type definition is ur-type; contentSpecType = XMLElementDecl.TYPE_ANY; // REVISIT, need to wait till we have wildcards implementation. // ADD attribute wildcards here } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError ("untyped element : " + name ); } } // if element belongs to a compelx type if (typeInfo!=null) { contentSpecNodeIndex = typeInfo.contentSpecHandle; contentSpecType = typeInfo.contentType; scopeDefined = typeInfo.scopeDefined; dv = typeInfo.datatypeValidator; } // if element belongs to a simple type if (dv!=null) { contentSpecType = XMLElementDecl.TYPE_SIMPLE; if (typeInfo == null) { fromAnotherSchema = null; // not to switch schema in this case } } // // Create element decl // int elementNameIndex = fStringPool.addSymbol(name); int localpartIndex = elementNameIndex; int uriIndex = StringPool.EMPTY_STRING; int enclosingScope = fCurrentScope; //refer to 4.3.2 in "XML Schema Part 1: Structures" if ( isTopLevel(elementDecl)) { uriIndex = fTargetNSURI; enclosingScope = TOP_LEVEL_SCOPE; } else if ( !isQName.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified ))) { uriIndex = fTargetNSURI; } //There can never be two elements with the same name and different type in the same scope. int existSuchElementIndex = fSchemaGrammar.getElementDeclIndex(uriIndex, localpartIndex, enclosingScope); if ( existSuchElementIndex > -1) { fSchemaGrammar.getElementDecl(existSuchElementIndex, fTempElementDecl); DatatypeValidator edv = fTempElementDecl.datatypeValidator; ComplexTypeInfo eTypeInfo = fSchemaGrammar.getElementComplexTypeInfo(existSuchElementIndex); if ( ((eTypeInfo != null)&&(eTypeInfo!=typeInfo)) || ((edv != null)&&(edv != dv)) ) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("duplicate element decl in the same scope : " + fStringPool.toString(localpartIndex)); } } QName eltQName = new QName(-1,localpartIndex,elementNameIndex,uriIndex); // add element decl to pool int attrListHead = -1 ; // copy up attribute decls from type object if (typeInfo != null) { attrListHead = typeInfo.attlistHead; } int elementIndex = fSchemaGrammar.addElementDecl(eltQName, enclosingScope, scopeDefined, contentSpecType, contentSpecNodeIndex, attrListHead, dv); if ( DEBUGGING ) { /***/ System.out.println("########elementIndex:"+elementIndex+" ("+fStringPool.toString(eltQName.uri)+"," + fStringPool.toString(eltQName.localpart) + ")"+ " eltType:"+type+" contentSpecType:"+contentSpecType+ " SpecNodeIndex:"+ contentSpecNodeIndex +" enclosingScope: " +enclosingScope + " scopeDefined: " +scopeDefined+"\n"); /***/ } fSchemaGrammar.setElementComplexTypeInfo(elementIndex, typeInfo); // REVISIT: should we report error if typeInfo was null? // mark element if its type belongs to different Schema. fSchemaGrammar.setElementFromAnotherSchemaURI(elementIndex, fromAnotherSchema); // set BlockSet, FinalSet, Nullable and Abstract for this element decl fSchemaGrammar.setElementDeclBlockSet(elementIndex, blockSet); fSchemaGrammar.setElementDeclFinalSet(elementIndex, finalSet); fSchemaGrammar.setElementDeclMiscFlags(elementIndex, elementMiscFlags); // setSubstitutionGroupElementFullName fSchemaGrammar.setElementDeclSubstitutionGroupElementFullName(elementIndex, substitutionGroupFullName); // // key/keyref/unique processing // Element ic = XUtil.getFirstChildElement(elementDecl, IDENTITY_CONSTRAINTS); if (ic != null) { Integer elementIndexObj = new Integer(elementIndex); Vector identityConstraints = (Vector)fIdentityConstraints.get(elementIndexObj); if (identityConstraints == null) { identityConstraints = new Vector(); fIdentityConstraints.put(elementIndexObj, identityConstraints); } while (ic != null) { if (DEBUG_IC_DATATYPES) { System.out.println("<ICD>: adding ic for later traversal: "+ic); } identityConstraints.addElement(ic); ic = XUtil.getNextSiblingElement(ic, IDENTITY_CONSTRAINTS); } } return eltQName; }// end of method traverseElementDecl(Element)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0415f58a04ea7ce29cadc15dc50d3f715cda27a9/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 509, 29617, 559, 1377, 273, 300, 21, 31, 3639, 509, 29617, 907, 1016, 273, 300, 21, 31, 3639, 509, 8173, 1016, 273, 300, 21, 31, 3639, 509, 2146, 8116, 273, 300, 22, 31, 368, 10420, 279, 555, 309, 300, 22, 5571, 5571, 3059, 4766, 368, 2700, 2146, 848, 5903, 506, 300, 22, 18, 3639, 21168, 5126, 12494, 273, 446, 31, 3639, 514, 508, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 1985, 1769, 3639, 309, 261, 6369, 19066, 262, 5411, 2332, 18, 659, 18, 8222, 2932, 31750, 310, 930, 3496, 294, 315, 397, 508, 11272, 3639, 514, 1278, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 10771, 1769, 3639, 514, 618, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 2399, 1769, 3639, 514, 1131, 31084, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 6236, 51, 6743, 1099, 55, 1769, 3639, 514, 943, 31084, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 6694, 51, 6743, 1099, 55, 1769, 3639, 514, 302, 31864, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 5280, 1769, 3639, 514, 5499, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 30406, 1769, 202, 202, 430, 12, 5, 12, 2180, 5618, 18, 14963, 2932, 7923, 747, 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, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 509, 29617, 559, 1377, 273, 300, 21, 31, 3639, 509, 29617, 907, 1016, 273, 300, 21, 31, 3639, 509, 8173, 1016, 273, 300, 21, 31, 3639, 509, 2146, 8116, 273, 300, 22, 31, 368, 10420, 279, 555, 309, 300, 22, 5571, 5571, 3059, 4766, 368, 2700, 2146, 848, 5903, 506, 300, 22, 18, 3639, 21168, 5126, 12494, 273, 446, 31, 3639, 514, 508, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 1985, 1769, 3639, 309, 261, 6369, 19066, 262, 5411, 2332, 18, 659, 18, 8222, 2932, 31750, 310, 930, 3496, 294, 315, 397, 508, 11272, 3639, 514, 1278, 273, 2 ]
return new org.quickfix.fix43.OrderMassCancelReport();
return new quickfix.fix43.OrderMassCancelReport();
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new org.quickfix.fix43.Heartbeat(); } if("A".equals(msgType)) { return new org.quickfix.fix43.Logon(); } if("1".equals(msgType)) { return new org.quickfix.fix43.TestRequest(); } if("2".equals(msgType)) { return new org.quickfix.fix43.ResendRequest(); } if("3".equals(msgType)) { return new org.quickfix.fix43.Reject(); } if("4".equals(msgType)) { return new org.quickfix.fix43.SequenceReset(); } if("5".equals(msgType)) { return new org.quickfix.fix43.Logout(); } if("j".equals(msgType)) { return new org.quickfix.fix43.BusinessMessageReject(); } if("7".equals(msgType)) { return new org.quickfix.fix43.Advertisement(); } if("6".equals(msgType)) { return new org.quickfix.fix43.IndicationOfInterest(); } if("B".equals(msgType)) { return new org.quickfix.fix43.News(); } if("C".equals(msgType)) { return new org.quickfix.fix43.Email(); } if("R".equals(msgType)) { return new org.quickfix.fix43.QuoteRequest(); } if("AG".equals(msgType)) { return new org.quickfix.fix43.QuoteRequestReject(); } if("AH".equals(msgType)) { return new org.quickfix.fix43.RFQRequest(); } if("S".equals(msgType)) { return new org.quickfix.fix43.Quote(); } if("Z".equals(msgType)) { return new org.quickfix.fix43.QuoteCancel(); } if("a".equals(msgType)) { return new org.quickfix.fix43.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new org.quickfix.fix43.QuoteStatusReport(); } if("i".equals(msgType)) { return new org.quickfix.fix43.MassQuote(); } if("b".equals(msgType)) { return new org.quickfix.fix43.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new org.quickfix.fix43.MarketDataRequest(); } if("W".equals(msgType)) { return new org.quickfix.fix43.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new org.quickfix.fix43.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new org.quickfix.fix43.MarketDataRequestReject(); } if("c".equals(msgType)) { return new org.quickfix.fix43.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new org.quickfix.fix43.SecurityDefinition(); } if("v".equals(msgType)) { return new org.quickfix.fix43.SecurityTypeRequest(); } if("w".equals(msgType)) { return new org.quickfix.fix43.SecurityTypes(); } if("x".equals(msgType)) { return new org.quickfix.fix43.SecurityListRequest(); } if("y".equals(msgType)) { return new org.quickfix.fix43.SecurityList(); } if("z".equals(msgType)) { return new org.quickfix.fix43.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new org.quickfix.fix43.DerivativeSecurityList(); } if("e".equals(msgType)) { return new org.quickfix.fix43.SecurityStatusRequest(); } if("f".equals(msgType)) { return new org.quickfix.fix43.SecurityStatus(); } if("g".equals(msgType)) { return new org.quickfix.fix43.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new org.quickfix.fix43.TradingSessionStatus(); } if("D".equals(msgType)) { return new org.quickfix.fix43.NewOrderSingle(); } if("8".equals(msgType)) { return new org.quickfix.fix43.ExecutionReport(); } if("Q".equals(msgType)) { return new org.quickfix.fix43.DontKnowTrade(); } if("G".equals(msgType)) { return new org.quickfix.fix43.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new org.quickfix.fix43.OrderCancelRequest(); } if("9".equals(msgType)) { return new org.quickfix.fix43.OrderCancelReject(); } if("H".equals(msgType)) { return new org.quickfix.fix43.OrderStatusRequest(); } if("q".equals(msgType)) { return new org.quickfix.fix43.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new org.quickfix.fix43.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new org.quickfix.fix43.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new org.quickfix.fix43.NewOrderCross(); } if("t".equals(msgType)) { return new org.quickfix.fix43.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new org.quickfix.fix43.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new org.quickfix.fix43.NewOrderMultileg(); } if("AC".equals(msgType)) { return new org.quickfix.fix43.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new org.quickfix.fix43.BidRequest(); } if("l".equals(msgType)) { return new org.quickfix.fix43.BidResponse(); } if("E".equals(msgType)) { return new org.quickfix.fix43.NewOrderList(); } if("m".equals(msgType)) { return new org.quickfix.fix43.ListStrikePrice(); } if("L".equals(msgType)) { return new org.quickfix.fix43.ListExecute(); } if("K".equals(msgType)) { return new org.quickfix.fix43.ListCancelRequest(); } if("M".equals(msgType)) { return new org.quickfix.fix43.ListStatusRequest(); } if("N".equals(msgType)) { return new org.quickfix.fix43.ListStatus(); } if("J".equals(msgType)) { return new org.quickfix.fix43.Allocation(); } if("P".equals(msgType)) { return new org.quickfix.fix43.AllocationACK(); } if("T".equals(msgType)) { return new org.quickfix.fix43.SettlementInstructions(); } if("AD".equals(msgType)) { return new org.quickfix.fix43.TradeCaptureReportRequest(); } if("AE".equals(msgType)) { return new org.quickfix.fix43.TradeCaptureReport(); } if("o".equals(msgType)) { return new org.quickfix.fix43.RegistrationInstructions(); } if("p".equals(msgType)) { return new org.quickfix.fix43.RegistrationInstructionsResponse(); } return new org.quickfix.fix43.Message(); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MessageFactory.java/buggy/src/java/src/quickfix/fix43/MessageFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2350, 752, 12, 514, 2376, 780, 16, 514, 1234, 559, 262, 288, 377, 309, 2932, 20, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 15894, 5621, 282, 289, 565, 309, 2932, 37, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 1343, 265, 5621, 282, 289, 565, 309, 2932, 21, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 4709, 691, 5621, 282, 289, 565, 309, 2932, 22, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 607, 409, 691, 5621, 282, 289, 565, 309, 2932, 23, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 21705, 5621, 282, 289, 565, 309, 2932, 24, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 4021, 7013, 5621, 282, 289, 565, 309, 2932, 25, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 19456, 5621, 282, 289, 565, 309, 2932, 78, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 13423, 1079, 21705, 5621, 282, 289, 565, 309, 2932, 27, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 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, 2350, 752, 12, 514, 2376, 780, 16, 514, 1234, 559, 262, 288, 377, 309, 2932, 20, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 15894, 5621, 282, 289, 565, 309, 2932, 37, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 1343, 265, 5621, 282, 289, 565, 309, 2932, 21, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 4709, 691, 5621, 282, 289, 565, 309, 2932, 22, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 2358, 18, 19525, 904, 18, 904, 8942, 18, 607, 409, 691, 2 ]
throw new IllegalArgumentException( "Source or destination color space is not defined");
throw new IllegalArgumentException(Messages.getString("awt.25D"));
public final WritableRaster filter(Raster src, WritableRaster dst) { if (conversionSequence.length < 2) { throw new IllegalArgumentException( "Source or destination color space is not defined"); } ICC_Profile srcPf = null, dstPf = null; // unused if isICC is false int nSrcColorComps, nDstColorComps; Object first = conversionSequence[0]; Object last = conversionSequence[conversionSequence.length - 1]; // Get the number of input/output color components if (isICC) { srcPf = (ICC_Profile) first; dstPf = (ICC_Profile) last; nSrcColorComps = srcPf.getNumComponents(); nDstColorComps = dstPf.getNumComponents(); } else { if (first instanceof ICC_Profile) { srcPf = (ICC_Profile) first; nSrcColorComps = srcPf.getNumComponents(); } else { nSrcColorComps = ((ColorSpace) first).getNumComponents(); } if (last instanceof ICC_Profile) { dstPf = (ICC_Profile) last; nDstColorComps = dstPf.getNumComponents(); } else { nDstColorComps = ((ColorSpace) last).getNumComponents(); } } // Check that source and destination rasters are compatible with // transforms and with each other if (src.getNumBands() != nSrcColorComps) { throw new IllegalArgumentException( "Incorrect number of source raster bands. " + "Should be equal to the number of color " + "components of source colorspace."); } if (dst != null) { // Check destination raster if (dst.getNumBands() != nDstColorComps) { throw new IllegalArgumentException( "Incorrect number of destination raster bands. " + "Should be equal to the number of color " + "components of destination colorspace."); } if (src.getWidth() != dst.getWidth() || src.getHeight() != dst.getHeight()) { throw new IllegalArgumentException( "Incompatible rasters - width or height differs"); } } else { dst = createCompatibleDestRaster(src); } if (isICC) { // Create transform ICC_Transform t = tCreator.getTransform(srcPf, dstPf, (ICC_Profile[])conversionSequence); cc.translateColor(t, src, dst); } else { Object[] sequence = tCreator.getSequence(null, null); // Get data from the source raster ColorScaler scaler = new ColorScaler(); scaler.loadScalingData(src, null); float tmpData[][] = scaler.scaleNormalize(src); // Get source and destination color spaces ColorSpace srcCS = (srcPf == null) ? (ColorSpace) first: new ICC_ColorSpace(srcPf); ColorSpace dstCS = (dstPf == null) ? (ColorSpace) last: new ICC_ColorSpace(dstPf); applySequence(sequence, tmpData, srcCS, dstCS); scaler.loadScalingData(dst, null); scaler.unscaleNormalized(dst, tmpData); } return dst; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1380f0b7d7529273757b8c60cba9603d41c15f4d/ColorConvertOp.java/clean/modules/awt/src/main/java/common/java/awt/image/ColorConvertOp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 14505, 18637, 1034, 12, 18637, 1705, 16, 14505, 18637, 3046, 13, 288, 3639, 309, 261, 20990, 4021, 18, 2469, 411, 576, 13, 288, 5411, 604, 394, 2754, 12, 10792, 315, 1830, 578, 2929, 2036, 3476, 353, 486, 2553, 8863, 3639, 289, 3639, 467, 6743, 67, 4029, 1705, 52, 74, 273, 446, 16, 3046, 52, 74, 273, 446, 31, 368, 10197, 309, 353, 2871, 39, 353, 629, 3639, 509, 290, 7740, 2957, 799, 1121, 16, 290, 15295, 2957, 799, 1121, 31, 3639, 1033, 1122, 273, 4105, 4021, 63, 20, 15533, 3639, 1033, 1142, 273, 4105, 4021, 63, 20990, 4021, 18, 2469, 300, 404, 15533, 7734, 368, 968, 326, 1300, 434, 810, 19, 2844, 2036, 4085, 3639, 309, 261, 291, 2871, 39, 13, 288, 5411, 1705, 52, 74, 273, 261, 2871, 39, 67, 4029, 13, 1122, 31, 5411, 3046, 52, 74, 273, 261, 2871, 39, 67, 4029, 13, 1142, 31, 5411, 290, 7740, 2957, 799, 1121, 273, 1705, 52, 74, 18, 588, 2578, 7171, 5621, 5411, 290, 15295, 2957, 799, 1121, 273, 3046, 52, 74, 18, 588, 2578, 7171, 5621, 3639, 289, 469, 288, 5411, 309, 261, 3645, 1276, 467, 6743, 67, 4029, 13, 288, 7734, 1705, 52, 74, 273, 261, 2871, 39, 67, 4029, 13, 1122, 31, 7734, 290, 7740, 2957, 799, 1121, 273, 1705, 52, 74, 18, 588, 2578, 7171, 5621, 5411, 289, 469, 288, 7734, 290, 7740, 2957, 799, 1121, 273, 14015, 2957, 3819, 13, 1122, 2934, 588, 2578, 7171, 5621, 5411, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 14505, 18637, 1034, 12, 18637, 1705, 16, 14505, 18637, 3046, 13, 288, 3639, 309, 261, 20990, 4021, 18, 2469, 411, 576, 13, 288, 5411, 604, 394, 2754, 12, 10792, 315, 1830, 578, 2929, 2036, 3476, 353, 486, 2553, 8863, 3639, 289, 3639, 467, 6743, 67, 4029, 1705, 52, 74, 273, 446, 16, 3046, 52, 74, 273, 446, 31, 368, 10197, 309, 353, 2871, 39, 353, 629, 3639, 509, 290, 7740, 2957, 799, 1121, 16, 290, 15295, 2957, 799, 1121, 31, 3639, 1033, 1122, 273, 4105, 4021, 63, 20, 15533, 3639, 1033, 1142, 273, 4105, 4021, 63, 20990, 4021, 18, 2469, 300, 404, 15533, 7734, 368, 968, 326, 1300, 434, 810, 19, 2844, 2036, 4085, 3639, 309, 2 ]
private void deleteNodeFromTree(JTree tree) { TreePath path = tree.getSelectionPath(); if (path == null) { System.out.println("HostConfigurationBuilder deleteNodeMenuItem called with null path; ignoring"); return; }
private void deleteNodeFromTree(JTree tree, TreePath path) {
private void deleteNodeFromTree(JTree tree) { TreePath path = tree.getSelectionPath(); if (path == null) { System.out.println("HostConfigurationBuilder deleteNodeMenuItem called with null path; ignoring"); return; } DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)path.getLastPathComponent(); ConsoleTreeObject nodeCTO = (ConsoleTreeObject)selectedNode.getUserObject(); // get any agents that are descendants of the node being deleted // and return them to the agent tree DefaultTreeModel agentModel = (DefaultTreeModel)agentTree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode)agentModel.getRoot(); int n = selectedNode.getChildCount(); for (int i = 0; i < n; i++) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)selectedNode.getChildAt(0); ConsoleTreeObject cto = (ConsoleTreeObject)node.getUserObject(); if (cto.isAgent()) { agentModel.insertNodeInto(node, root, root.getChildCount()); agentTree.scrollPathToVisible(new TreePath(node.getPath())); } } DefaultTreeModel model = (DefaultTreeModel)tree.getModel(); model.removeNodeFromParent(selectedNode); experiment.removeNode((NodeComponent)nodeCTO.getComponent()); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/1e2d77c9adb1d7b55057934e60ed8f1bbe7ab341/HostConfigurationBuilder.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/experiment/HostConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1430, 907, 1265, 2471, 12, 46, 2471, 2151, 13, 288, 565, 4902, 743, 589, 273, 2151, 18, 588, 6233, 743, 5621, 565, 309, 261, 803, 422, 446, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 2594, 1750, 1263, 1430, 907, 12958, 2566, 598, 446, 589, 31, 14398, 8863, 1377, 327, 31, 565, 289, 565, 2989, 19536, 12513, 3170, 907, 273, 4202, 261, 1868, 19536, 12513, 13, 803, 18, 588, 3024, 743, 1841, 5621, 565, 9657, 2471, 921, 756, 1268, 51, 273, 4202, 261, 10215, 2471, 921, 13, 8109, 907, 18, 588, 1299, 921, 5621, 565, 368, 336, 1281, 16423, 716, 854, 18039, 434, 326, 756, 3832, 4282, 565, 368, 471, 327, 2182, 358, 326, 4040, 2151, 565, 2989, 2471, 1488, 4040, 1488, 273, 261, 1868, 2471, 1488, 13, 5629, 2471, 18, 588, 1488, 5621, 565, 2989, 19536, 12513, 1365, 273, 4202, 261, 1868, 19536, 12513, 13, 5629, 1488, 18, 588, 2375, 5621, 565, 509, 290, 273, 3170, 907, 18, 588, 1763, 1380, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245, 288, 1377, 2989, 19536, 12513, 756, 273, 225, 202, 12, 1868, 19536, 12513, 13, 8109, 907, 18, 588, 1763, 861, 12, 20, 1769, 1377, 9657, 2471, 921, 276, 869, 273, 261, 10215, 2471, 921, 13, 2159, 18, 588, 1299, 921, 5621, 1377, 309, 261, 299, 83, 18, 291, 3630, 10756, 288, 225, 202, 5629, 1488, 18, 6387, 907, 5952, 12, 2159, 16, 1365, 16, 1365, 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, 3238, 918, 1430, 907, 1265, 2471, 12, 46, 2471, 2151, 13, 288, 565, 4902, 743, 589, 273, 2151, 18, 588, 6233, 743, 5621, 565, 309, 261, 803, 422, 446, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 2594, 1750, 1263, 1430, 907, 12958, 2566, 598, 446, 589, 31, 14398, 8863, 1377, 327, 31, 565, 289, 565, 2989, 19536, 12513, 3170, 907, 273, 4202, 261, 1868, 19536, 12513, 13, 803, 18, 588, 3024, 743, 1841, 5621, 565, 9657, 2471, 921, 756, 1268, 51, 273, 4202, 261, 10215, 2471, 921, 13, 8109, 907, 18, 588, 1299, 921, 5621, 565, 368, 336, 1281, 16423, 716, 854, 18039, 434, 326, 756, 3832, 4282, 565, 368, 471, 327, 2182, 358, 326, 4040, 2 ]
private void processReferenceInformation(Map referenceInformation, OMElement parent) {
private void processReferenceInformation(Map referenceInformation, OMElement parent, String namespace) {
private void processReferenceInformation(Map referenceInformation, OMElement parent) { boolean processingWSAFinal = Final.WSA_NAMESPACE.equals(addressingNamespace); if (referenceInformation != null && parent != null) { Iterator iterator = referenceInformation.keySet().iterator(); while (iterator.hasNext()) { QName key = (QName) iterator.next(); OMElement omElement = (OMElement) referenceInformation.get(key); parent.addChild(omElement); } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/ce2f3c98dad10104d03dfc73395c1281182a3945/AddressingOutHandler.java/clean/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 2404, 5369, 12, 863, 2114, 5369, 16, 531, 12310, 982, 16, 514, 1981, 13, 288, 3639, 1250, 4929, 2651, 6799, 1490, 273, 16269, 18, 2651, 37, 67, 11368, 18, 14963, 12, 2867, 310, 3402, 1769, 3639, 309, 261, 6180, 5369, 480, 446, 597, 982, 480, 446, 13, 288, 5411, 4498, 2775, 273, 2114, 5369, 18, 856, 694, 7675, 9838, 5621, 5411, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 7734, 16723, 498, 273, 261, 13688, 13, 2775, 18, 4285, 5621, 7734, 531, 12310, 8068, 1046, 273, 261, 51, 12310, 13, 2114, 5369, 18, 588, 12, 856, 1769, 7734, 982, 18, 1289, 1763, 12, 362, 1046, 1769, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2404, 5369, 12, 863, 2114, 5369, 16, 531, 12310, 982, 16, 514, 1981, 13, 288, 3639, 1250, 4929, 2651, 6799, 1490, 273, 16269, 18, 2651, 37, 67, 11368, 18, 14963, 12, 2867, 310, 3402, 1769, 3639, 309, 261, 6180, 5369, 480, 446, 597, 982, 480, 446, 13, 288, 5411, 4498, 2775, 273, 2114, 5369, 18, 856, 694, 7675, 9838, 5621, 5411, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 7734, 16723, 498, 273, 261, 13688, 13, 2775, 18, 4285, 5621, 7734, 531, 12310, 8068, 1046, 273, 261, 51, 12310, 13, 2114, 5369, 18, 588, 12, 856, 1769, 7734, 982, 18, 1289, 1763, 12, 362, 1046, 1769, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100 ]
st = con.prepareStatement("select * from updateable where id = ?");
st = con.prepareStatement("select * from updateable where id = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
public void testUpdateablePreparedStatement() throws Exception { // No args. PreparedStatement st = con.prepareStatement("select * from updateable", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = st.executeQuery(); rs.moveToInsertRow(); rs.close(); st.close(); // With args. st = con.prepareStatement("select * from updateable where id = ?"); st.setInt(1, 1); rs = st.executeQuery(); rs.moveToInsertRow(); rs.close(); st.close(); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/da0510feb450e7606f5ddf228d6976339e876e9c/UpdateableResultTest.java/buggy/org/postgresql/test/jdbc2/UpdateableResultTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1891, 429, 29325, 1435, 1216, 1185, 565, 288, 3639, 368, 2631, 833, 18, 3639, 16913, 384, 273, 356, 18, 9366, 3406, 2932, 4025, 380, 628, 1089, 429, 3113, 4766, 10792, 10842, 18, 2399, 67, 2312, 14555, 67, 706, 26753, 16325, 16, 4766, 10792, 10842, 18, 2248, 7509, 67, 3079, 11102, 2782, 1769, 3639, 10842, 3597, 273, 384, 18, 8837, 1138, 5621, 3639, 3597, 18, 8501, 774, 4600, 1999, 5621, 3639, 3597, 18, 4412, 5621, 3639, 384, 18, 4412, 5621, 3639, 368, 3423, 833, 18, 3639, 384, 273, 356, 18, 9366, 3406, 2932, 4025, 380, 628, 1089, 429, 1625, 612, 273, 692, 3113, 10842, 18, 2399, 67, 2312, 14555, 67, 706, 26753, 16325, 16, 10842, 18, 2248, 7509, 67, 3079, 11102, 2782, 1769, 3639, 384, 18, 542, 1702, 12, 21, 16, 404, 1769, 3639, 3597, 273, 384, 18, 8837, 1138, 5621, 3639, 3597, 18, 8501, 774, 4600, 1999, 5621, 3639, 3597, 18, 4412, 5621, 3639, 384, 18, 4412, 5621, 565, 289, 540, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1891, 429, 29325, 1435, 1216, 1185, 565, 288, 3639, 368, 2631, 833, 18, 3639, 16913, 384, 273, 356, 18, 9366, 3406, 2932, 4025, 380, 628, 1089, 429, 3113, 4766, 10792, 10842, 18, 2399, 67, 2312, 14555, 67, 706, 26753, 16325, 16, 4766, 10792, 10842, 18, 2248, 7509, 67, 3079, 11102, 2782, 1769, 3639, 10842, 3597, 273, 384, 18, 8837, 1138, 5621, 3639, 3597, 18, 8501, 774, 4600, 1999, 5621, 3639, 3597, 18, 4412, 5621, 3639, 384, 18, 4412, 5621, 3639, 368, 3423, 833, 18, 3639, 384, 273, 356, 18, 9366, 3406, 2932, 4025, 380, 628, 1089, 429, 1625, 612, 273, 692, 3113, 10842, 18, 2399, 67, 2312, 14555, 67, 706, 26753, 16325, 16, 10842, 18, 2 ]
WorkbenchPlugin .log("Defining a key binding with no key sequence has no effect: '" + configurationElement.getNamespace() + "', '" + commandId + "'.");
final String message = "Defining a key binding with no key sequence has no effect: '" + configurationElement.getNamespace() + "', '" + commandId + "'."; final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status);
private static final void readBindingsFromCommandsExtensionPoint( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager) { for (int i = 0; i < configurationElementCount; i++) { final IConfigurationElement configurationElement = configurationElements[i]; /* * Read out the command id. Doing this before determining if the key * binding is actually valid is a bit wasteful. However, it is * helpful to have the command identifier when logging syntax * errors. */ String commandId = configurationElement .getAttribute(ATTRIBUTE_COMMAND_ID); if ((commandId == null) || (commandId.length() == 0)) { commandId = configurationElement .getAttribute(ATTRIBUTE_COMMAND); } if ((commandId != null) && (commandId.length() == 0)) { commandId = null; } // Read out the scheme id. String schemeId = configurationElement .getAttribute(ATTRIBUTE_KEY_CONFIGURATION_ID); if ((schemeId == null) || (schemeId.length() == 0)) { schemeId = configurationElement .getAttribute(ATTRIBUTE_CONFIGURATION); if ((schemeId == null) || (schemeId.length() == 0)) { // The scheme id should never be null. This is invalid. WorkbenchPlugin.log("Key bindings need a scheme: '" //$NON-NLS-1$ + configurationElement.getNamespace() + "', '" //$NON-NLS-1$ + commandId + "'."); //$NON-NLS-1$ continue; } } // Read out the context id. String contextId = configurationElement .getAttribute(ATTRIBUTE_CONTEXT_ID); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } else if ((contextId == null) || (contextId.length() == 0)) { contextId = configurationElement.getAttribute(ATTRIBUTE_SCOPE); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } } if ((contextId == null) || (contextId.length() == 0)) { contextId = IContextIds.CONTEXT_ID_WINDOW; } // Read out the key sequence. String keySequenceText = configurationElement .getAttribute(ATTRIBUTE_KEY_SEQUENCE); KeySequence keySequence = null; if ((keySequenceText == null) || (keySequenceText.length() == 0)) { keySequenceText = configurationElement .getAttribute(ATTRIBUTE_STRING); if ((keySequenceText == null) || (keySequenceText.length() == 0)) { // The key sequence should never be null. This is pointless WorkbenchPlugin .log("Defining a key binding with no key sequence has no effect: '" //$NON-NLS-1$ + configurationElement.getNamespace() + "', '" //$NON-NLS-1$ + commandId + "'."); //$NON-NLS-1$ continue; } // The key sequence is in the old-style format. keySequence = convert2_1Sequence(parse2_1Sequence(keySequenceText)); } else { // The key sequence is in the new-style format. try { keySequence = KeySequence.getInstance(keySequenceText); } catch (final ParseException e) { WorkbenchPlugin.log("Could not parse '" + keySequenceText //$NON-NLS-1$ + "': '" //$NON-NLS-1$ + configurationElement.getNamespace() + "', '" //$NON-NLS-1$ + commandId + "'."); //$NON-NLS-1$ continue; } if (keySequence.isEmpty() || !keySequence.isComplete()) { WorkbenchPlugin .log("Key bindings should not have an empty or incomplete key sequence: '" //$NON-NLS-1$ + keySequence + "': '" //$NON-NLS-1$ + configurationElement.getNamespace() + "', '" //$NON-NLS-1$ + commandId + "'."); //$NON-NLS-1$ continue; } } // Read out the locale and platform. String locale = configurationElement.getAttribute(ATTRIBUTE_LOCALE); if ((locale != null) && (locale.length() == 0)) { locale = null; } String platform = configurationElement .getAttribute(ATTRIBUTE_PLATFORM); if ((platform != null) && (platform.length() == 0)) { platform = null; } final Binding binding = new KeyBinding(keySequence, commandId, schemeId, contextId, locale, platform, null, Binding.SYSTEM); bindingManager.addBinding(binding); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ee62a6c54c04e4e2fda666014855522f9542665c/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 918, 855, 10497, 1265, 9127, 3625, 2148, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 16, 1082, 202, 6385, 15689, 1318, 5085, 1318, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1664, 1046, 1380, 31, 277, 27245, 288, 1082, 202, 6385, 467, 1750, 1046, 1664, 1046, 273, 1664, 3471, 63, 77, 15533, 1082, 202, 20308, 9506, 380, 2720, 596, 326, 1296, 612, 18, 2256, 310, 333, 1865, 23789, 309, 326, 498, 9506, 380, 5085, 353, 6013, 923, 353, 279, 2831, 341, 14725, 2706, 18, 10724, 16, 518, 353, 9506, 380, 28063, 358, 1240, 326, 1296, 2756, 1347, 2907, 6279, 9506, 380, 1334, 18, 9506, 1195, 1082, 202, 780, 1296, 548, 273, 1664, 1046, 6862, 202, 18, 588, 1499, 12, 11616, 67, 19104, 67, 734, 1769, 1082, 202, 430, 14015, 3076, 548, 422, 446, 13, 747, 261, 3076, 548, 18, 2469, 1435, 422, 374, 3719, 288, 9506, 202, 3076, 548, 273, 1664, 1046, 25083, 202, 18, 588, 1499, 12, 11616, 67, 19104, 1769, 1082, 202, 97, 1082, 202, 430, 14015, 3076, 548, 480, 446, 13, 597, 261, 3076, 548, 18, 2469, 1435, 422, 374, 3719, 288, 9506, 202, 3076, 548, 273, 446, 31, 1082, 202, 97, 1082, 202, 759, 2720, 596, 326, 4355, 612, 18, 1082, 202, 780, 4355, 548, 273, 1664, 1046, 6862, 202, 18, 588, 1499, 12, 11616, 67, 3297, 67, 21200, 67, 734, 1769, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 918, 855, 10497, 1265, 9127, 3625, 2148, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 16, 1082, 202, 6385, 15689, 1318, 5085, 1318, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1664, 1046, 1380, 31, 277, 27245, 288, 1082, 202, 6385, 467, 1750, 1046, 1664, 1046, 273, 1664, 3471, 63, 77, 15533, 1082, 202, 20308, 9506, 380, 2720, 596, 326, 1296, 612, 18, 2256, 310, 333, 1865, 23789, 309, 326, 498, 9506, 380, 5085, 353, 6013, 923, 353, 279, 2831, 341, 14725, 2706, 18, 10724, 16, 518, 353, 9506, 380, 28063, 358, 1240, 326, 1296, 2756, 1347, 2907, 6279, 2 ]
{ }
{ toggleExpandState(path); }
protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY) { // FIXME: not implemented }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 1640, 12271, 3367, 6563, 12, 2471, 743, 589, 16, 509, 7644, 60, 16, 509, 7644, 61, 13, 202, 95, 202, 202, 759, 9852, 30, 486, 8249, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 1640, 12271, 3367, 6563, 12, 2471, 743, 589, 16, 509, 7644, 60, 16, 509, 7644, 61, 13, 202, 95, 202, 202, 759, 9852, 30, 486, 8249, 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 ]
else*/ if (action.equals(moveUpString))
else if (action.equals(moveUpString))
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand();/* if (action.equals(colorString)) { Color newColor = ColorChooser.getColor(selectTitle, getColor()); if (newColor!=null) setColor(newColor); com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace"); } else if (action.equals(addConnectorString)) { addConnector(); com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace"); } else*/ if (action.equals(moveUpString)) { ((Record)getParent()).moveFieldUp(EPICSVarOutLink.this); } else if (action.equals(moveDownString)) { ((Record)getParent()).moveFieldDown(EPICSVarOutLink.this); } else if (action.equals(removeString)) { destroy(); } }
8177 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8177/8e2447c531274bfde3f5c0905dd1ed707989abe3/EPICSVarOutLink.java/clean/src/com/cosylab/vdct/graphics/objects/EPICSVarOutLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1082, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 20308, 1082, 202, 430, 261, 1128, 18, 14963, 12, 3266, 780, 3719, 1082, 202, 95, 6862, 1082, 202, 2957, 394, 2957, 273, 5563, 17324, 18, 588, 2957, 12, 4025, 4247, 16, 15672, 10663, 9506, 202, 430, 261, 2704, 2957, 5, 33, 2011, 13, 6862, 202, 542, 2957, 12, 2704, 2957, 1769, 9506, 202, 832, 18, 14445, 93, 7411, 18, 16115, 299, 18, 5989, 18, 2189, 1318, 18, 588, 1442, 7675, 8837, 2932, 18933, 1598, 8241, 8863, 1082, 202, 97, 1082, 202, 12107, 309, 261, 1128, 18, 14963, 12, 1289, 7487, 780, 3719, 1082, 202, 95, 9506, 202, 1289, 7487, 5621, 9506, 202, 832, 18, 14445, 93, 7411, 18, 16115, 299, 18, 5989, 18, 2189, 1318, 18, 588, 1442, 7675, 8837, 2932, 18933, 1598, 8241, 8863, 1082, 202, 97, 1082, 202, 12107, 5549, 309, 261, 1128, 18, 14963, 12, 8501, 1211, 780, 3719, 1082, 202, 95, 9506, 202, 12443, 2115, 13, 588, 3054, 1435, 2934, 8501, 974, 1211, 12, 41, 1102, 4596, 1537, 1182, 2098, 18, 2211, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 261, 1128, 18, 14963, 12, 8501, 4164, 780, 3719, 1082, 202, 95, 9506, 202, 12443, 2115, 13, 588, 3054, 1435, 2934, 8501, 974, 4164, 12, 41, 1102, 4596, 1537, 1182, 2098, 18, 2211, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 261, 1128, 18, 14963, 12, 4479, 780, 3719, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1082, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 20308, 1082, 202, 430, 261, 1128, 18, 14963, 12, 3266, 780, 3719, 1082, 202, 95, 6862, 1082, 202, 2957, 394, 2957, 273, 5563, 17324, 18, 588, 2957, 12, 4025, 4247, 16, 15672, 10663, 9506, 202, 430, 261, 2704, 2957, 5, 33, 2011, 13, 6862, 202, 542, 2957, 12, 2704, 2957, 1769, 9506, 202, 832, 18, 14445, 93, 7411, 18, 16115, 299, 18, 5989, 18, 2189, 1318, 18, 588, 1442, 7675, 8837, 2932, 18933, 1598, 8241, 8863, 1082, 202, 97, 1082, 202, 12107, 309, 261, 1128, 18, 14963, 12, 1289, 7487, 780, 3719, 1082, 202, 95, 9506, 202, 2 ]
wrap(new String[] {
fold(new String[] {
public void testRank() { // Member within set assertExprReturns("Rank([Store].[USA].[CA], " + "{[Store].[USA].[OR]," + " [Store].[USA].[CA]," + " [Store].[USA]})", "2"); // Member not in set assertExprReturns("Rank([Store].[USA].[WA], " + "{[Store].[USA].[OR]," + " [Store].[USA].[CA]," + " [Store].[USA]})", "0"); // Member not in empty set assertExprReturns("Rank([Store].[USA].[WA], {})", "0"); // Null member not in set returns null. assertExprReturns("Rank([Store].Parent, " + "{[Store].[USA].[OR]," + " [Store].[USA].[CA]," + " [Store].[USA]})", "(null)"); // Null member in empty set. (MSAS returns an error "Formula error - // dimension count is not valid - in the Rank function" but I think // null is the correct behavior.) assertExprReturns("Rank([Gender].Parent, {})", "(null)"); // Member occurs twice in set -- pick first assertExprReturns( wrap(new String[] { "Rank([Store].[USA].[WA], ", "{[Store].[USA].[WA]," + " [Store].[USA].[CA]," + " [Store].[USA]," + " [Store].[USA].[WA]})"}), "1"); // Tuple not in set assertExprReturns( wrap(new String[] { "Rank(([Gender].[F], [Marital Status].[M]), ", "{([Gender].[F], [Marital Status].[S]),", " ([Gender].[M], [Marital Status].[S]),", " ([Gender].[M], [Marital Status].[M])})"}), "0"); // Tuple in set assertExprReturns( wrap(new String[] { "Rank(([Gender].[F], [Marital Status].[M]), ", "{([Gender].[F], [Marital Status].[S]),", " ([Gender].[M], [Marital Status].[S]),", " ([Gender].[F], [Marital Status].[M])})"}), "3"); // Tuple not in empty set assertExprReturns( wrap(new String[] { "Rank(([Gender].[F], [Marital Status].[M]), ", "{})"}), "0"); // Partially null tuple in set, returns null assertExprReturns( wrap(new String[] { "Rank(([Gender].[F], [Marital Status].Parent), ", "{([Gender].[F], [Marital Status].[S]),", " ([Gender].[M], [Marital Status].[S]),", " ([Gender].[F], [Marital Status].[M])})"}), "(null)"); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/buggy/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12925, 1435, 288, 3639, 368, 8596, 3470, 444, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 315, 397, 7734, 4144, 63, 2257, 8009, 63, 3378, 37, 8009, 63, 916, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 65, 12646, 16, 7734, 315, 22, 8863, 3639, 368, 8596, 486, 316, 444, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 63, 3378, 37, 8009, 63, 59, 37, 6487, 315, 397, 7734, 4144, 63, 2257, 8009, 63, 3378, 37, 8009, 63, 916, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 65, 12646, 16, 7734, 315, 20, 8863, 3639, 368, 8596, 486, 316, 1008, 444, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 63, 3378, 37, 8009, 63, 59, 37, 6487, 2618, 2225, 16, 7734, 315, 20, 8863, 3639, 368, 4112, 3140, 486, 316, 444, 1135, 446, 18, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 3054, 16, 315, 397, 7734, 4144, 63, 2257, 8009, 63, 3378, 37, 8009, 63, 916, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 65, 12646, 16, 7734, 7751, 2011, 2225, 1769, 3639, 368, 4112, 3140, 316, 1008, 444, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12925, 1435, 288, 3639, 368, 8596, 3470, 444, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 315, 397, 7734, 4144, 63, 2257, 8009, 63, 3378, 37, 8009, 63, 916, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 8009, 63, 3587, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 37, 65, 12646, 16, 7734, 315, 22, 8863, 3639, 368, 8596, 486, 316, 444, 3639, 1815, 4742, 1356, 2932, 12925, 3816, 2257, 8009, 63, 3378, 37, 8009, 63, 59, 37, 6487, 315, 397, 7734, 4144, 63, 2257, 8009, 63, 3378, 37, 8009, 63, 916, 6487, 6, 397, 7734, 315, 306, 2257, 8009, 63, 3378, 2 ]
.getPassword(), bugzillaInput.getProxySettings(), bug.getId());
.getPassword(), bugzillaInput.getProxySettings(), repository.getCharacterEncoding(), bug.getId());
protected IStatus run(IProgressMonitor monitor) { final BugzillaReport serverBug; try { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, bug.getRepositoryUrl()); serverBug = BugzillaRepositoryUtil.getBug(repository.getUrl(), repository.getUserName(), repository .getPassword(), bugzillaInput.getProxySettings(), bug.getId()); // If no bug was found on the server, throw an exception so that // the // user gets the same message that appears when there is a // problem reading the server. if (serverBug == null) throw new Exception(); } catch (Exception e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Could not open bug.", "Bug #" + bug.getId() + " could not be read from the server."); } }); return new Status(IStatus.OK, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "Could not get the bug report from the server.", null); } PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { compareInput.setTitle("Bug #" + bug.getId()); compareInput.setLeft(bug); compareInput.setRight(serverBug); CompareUI.openCompareEditor(compareInput); } }); return new Status(IStatus.OK, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "", null); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/31f9f0869751176d538907acd5070e674d857d31/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 6385, 16907, 15990, 4820, 1438, 19865, 31, 1082, 202, 698, 288, 9506, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 25083, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 7934, 18, 588, 3305, 1489, 10663, 9506, 202, 3567, 19865, 273, 16907, 15990, 3305, 1304, 18, 588, 19865, 12, 9071, 18, 588, 1489, 9334, 3352, 18, 588, 15296, 9334, 3352, 25083, 202, 18, 588, 3913, 9334, 7934, 15990, 1210, 18, 588, 3886, 2628, 9334, 7934, 18, 26321, 10663, 9506, 202, 759, 971, 1158, 7934, 1703, 1392, 603, 326, 1438, 16, 604, 392, 1520, 1427, 716, 9506, 202, 759, 326, 9506, 202, 759, 729, 5571, 326, 1967, 883, 716, 14606, 1347, 1915, 353, 279, 9506, 202, 759, 6199, 6453, 326, 1438, 18, 9506, 202, 430, 261, 3567, 19865, 422, 446, 13, 6862, 202, 12849, 394, 1185, 5621, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 6862, 202, 482, 918, 1086, 1435, 288, 25083, 202, 1079, 6353, 18, 3190, 5369, 12, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 9334, 6862, 9506, 202, 6, 4445, 486, 1696, 7934, 1199, 16, 315, 19865, 31526, 397, 7934, 18, 26321, 1435, 397, 315, 3377, 486, 506, 855, 628, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 6385, 16907, 15990, 4820, 1438, 19865, 31, 1082, 202, 698, 288, 9506, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 25083, 202, 19865, 15990, 3773, 18, 862, 30986, 67, 47, 2356, 16, 7934, 18, 588, 3305, 1489, 10663, 9506, 202, 3567, 19865, 273, 16907, 15990, 3305, 1304, 18, 588, 19865, 12, 9071, 18, 588, 1489, 9334, 3352, 18, 588, 15296, 9334, 3352, 25083, 202, 18, 588, 3913, 9334, 7934, 15990, 1210, 18, 588, 3886, 2628, 9334, 7934, 18, 26321, 10663, 9506, 202, 759, 971, 1158, 7934, 1703, 1392, 603, 326, 1438, 16, 604, 392, 2 ]
return getFraction(-numerator, denominator);
if (numerator==Integer.MIN_VALUE) { throw new ArithmeticException("overflow: too large to negate"); } return new Fraction(-numerator, denominator);
public Fraction negate() { return getFraction(-numerator, denominator); }
7060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7060/13ae992c23f9e693903f32c77e018de27f66442c/Fraction.java/clean/src/java/org/apache/commons/lang/math/Fraction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 478, 5738, 15626, 1435, 288, 540, 309, 261, 2107, 7385, 631, 4522, 18, 6236, 67, 4051, 13, 288, 604, 394, 27443, 503, 2932, 11512, 30, 4885, 7876, 358, 15626, 8863, 289, 327, 394, 478, 5738, 19236, 2107, 7385, 16, 15030, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 478, 5738, 15626, 1435, 288, 540, 309, 261, 2107, 7385, 631, 4522, 18, 6236, 67, 4051, 13, 288, 604, 394, 27443, 503, 2932, 11512, 30, 4885, 7876, 358, 15626, 8863, 289, 327, 394, 478, 5738, 19236, 2107, 7385, 16, 15030, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ExpressionNodeForLet(String _varName, ExpressionNode _value)
public ExpressionNodeForLet(String _varName, ExpressionNode _value, ExpressionNode _in)
public ExpressionNodeForLet(String _varName, ExpressionNode _value) { super( _value ); this.varName = _varName; }
57629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57629/4478ede4ac99c3ba7df5d40a82c0a88bacb3f27f/ExpressionNodeForLet.java/buggy/src/classes/sej/internal/expressions/ExpressionNodeForLet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5371, 907, 1290, 24181, 12, 780, 389, 1401, 461, 16, 5371, 907, 389, 1132, 13, 202, 95, 202, 202, 9565, 12, 389, 1132, 11272, 202, 202, 2211, 18, 1401, 461, 273, 389, 1401, 461, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 5371, 907, 1290, 24181, 12, 780, 389, 1401, 461, 16, 5371, 907, 389, 1132, 13, 202, 95, 202, 202, 9565, 12, 389, 1132, 11272, 202, 202, 2211, 18, 1401, 461, 273, 389, 1401, 461, 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 ]
public Cepstrum getCepstrum() throws IOException { Cepstrum cepstrum = readCepstrum(); getTimer().start(); if (cepstrum != null) { Signal signal = cepstrum.getSignal(); if (signal != null && signal.equals(Signal.UTTERANCE_START)) { utteranceStart(); inputBuffer.addFirst(cepstrum); // read ahead until we have reach the start of speech while (cepstrum.getEnergy() < startHigh || startHighFrames <= startWindow) { cepstrum = readCepstrum(); if (cepstrum != null) { inputBuffer.addFirst(cepstrum); } } } else if (signal != null && signal.equals(Signal.UTTERANCE_END)) { if (inSpeech) { speechEnd(); } inputBuffer.addFirst(cepstrum); } else { // add the new cepstrum to inputBuffer inputBuffer.addFirst(cepstrum); } } cepstrum = (Cepstrum) inputBuffer.removeLast(); getTimer().stop(); return cepstrum; }
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/a3fa2a9e07b2fc5ba48c88ee1905ac8d0add821b/EnergyEndpointer.java/clean/edu/cmu/sphinx/frontend/EnergyEndpointer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 881, 701, 379, 1927, 881, 701, 379, 1435, 1216, 1860, 288, 7734, 385, 881, 701, 379, 276, 881, 701, 379, 273, 855, 39, 881, 701, 379, 5621, 3639, 3181, 4417, 7675, 1937, 5621, 3639, 309, 261, 311, 84, 701, 379, 480, 446, 13, 288, 5411, 12032, 4277, 273, 276, 881, 701, 379, 18, 588, 11208, 5621, 13491, 309, 261, 10420, 480, 446, 597, 4277, 18, 14963, 12, 11208, 18, 57, 11976, 4722, 67, 7570, 3719, 288, 7734, 31297, 1685, 5621, 7734, 810, 1892, 18, 1289, 3759, 12, 311, 84, 701, 379, 1769, 7734, 368, 855, 17510, 3180, 732, 1240, 9287, 326, 787, 434, 24556, 7734, 1323, 261, 311, 84, 701, 379, 18, 588, 664, 31920, 1435, 411, 787, 8573, 747, 15604, 787, 8573, 15162, 1648, 787, 3829, 13, 288, 10792, 276, 881, 701, 379, 273, 855, 39, 881, 701, 379, 5621, 10792, 309, 261, 311, 84, 701, 379, 480, 446, 13, 288, 13491, 810, 1892, 18, 1289, 3759, 12, 311, 84, 701, 379, 1769, 10792, 289, 7734, 289, 5411, 289, 469, 309, 261, 10420, 480, 446, 597, 4277, 18, 14963, 12, 11208, 18, 57, 11976, 4722, 67, 4415, 3719, 288, 7734, 309, 261, 267, 22334, 13, 288, 10792, 24556, 1638, 5621, 7734, 289, 7734, 810, 1892, 18, 1289, 3759, 12, 311, 84, 701, 379, 1769, 5411, 289, 469, 288, 7734, 368, 527, 326, 394, 276, 881, 701, 379, 358, 810, 1892, 7734, 810, 1892, 18, 1289, 3759, 12, 311, 84, 701, 379, 1769, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 881, 701, 379, 1927, 881, 701, 379, 1435, 1216, 1860, 288, 7734, 385, 881, 701, 379, 276, 881, 701, 379, 273, 855, 39, 881, 701, 379, 5621, 3639, 3181, 4417, 7675, 1937, 5621, 3639, 309, 261, 311, 84, 701, 379, 480, 446, 13, 288, 5411, 12032, 4277, 273, 276, 881, 701, 379, 18, 588, 11208, 5621, 13491, 309, 261, 10420, 480, 446, 597, 4277, 18, 14963, 12, 11208, 18, 57, 11976, 4722, 67, 7570, 3719, 288, 7734, 31297, 1685, 5621, 7734, 810, 1892, 18, 1289, 3759, 12, 311, 84, 701, 379, 1769, 7734, 368, 855, 17510, 3180, 732, 1240, 9287, 326, 787, 434, 24556, 7734, 1323, 261, 311, 84, 701, 379, 18, 588, 664, 31920, 1435, 2 ]
{ 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 { } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/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 ]
newX = checkBounds(newX, m_originalImage.getWidth(this), this.getWidth());
newX = checkBounds(newX, m_originalImage.getWidth(this), this.getWidth(), true);
private void scroll() { int dy = 0; if((m_edge & TOP) != 0) dy = -SCROLL_DISTANCE; else if((m_edge & BOTTOM) != 0) dy = SCROLL_DISTANCE; int dx = 0; if((m_edge & LEFT) != 0) dx = -SCROLL_DISTANCE; else if((m_edge & RIGHT) != 0) dx = SCROLL_DISTANCE; int newX = m_x + dx; newX = checkBounds(newX, m_originalImage.getWidth(this), this.getWidth()); int newY = m_y + dy; newY = checkBounds(newY, m_originalImage.getHeight(this), this.getHeight()); setCoords(newX,newY); m_control.setLargeCoords(m_x,m_y); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/b3ee779f9d8a5dc53f849fd0ffbc7b965f0e3270/ImageScrollerLargeView.java/clean/triplea/src/games/strategy/ui/ImageScrollerLargeView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5532, 1435, 202, 95, 202, 202, 474, 7732, 273, 374, 31, 202, 202, 430, 12443, 81, 67, 7126, 473, 18680, 13, 480, 374, 13, 1082, 202, 15680, 273, 300, 2312, 14555, 67, 2565, 5703, 31, 202, 202, 12107, 309, 12443, 81, 67, 7126, 473, 30666, 13, 480, 374, 13, 1082, 202, 15680, 273, 8795, 14555, 67, 2565, 5703, 31, 9506, 202, 474, 6633, 273, 374, 31, 202, 202, 430, 12443, 81, 67, 7126, 473, 9686, 13, 480, 374, 13, 1082, 202, 13437, 273, 300, 2312, 14555, 67, 2565, 5703, 31, 202, 202, 12107, 309, 12443, 81, 67, 7126, 473, 13135, 13, 480, 374, 13, 1082, 202, 13437, 273, 8795, 14555, 67, 2565, 5703, 31, 202, 202, 474, 394, 60, 273, 312, 67, 92, 397, 6633, 31, 202, 202, 2704, 60, 273, 866, 5694, 12, 2704, 60, 16, 312, 67, 8830, 2040, 18, 588, 2384, 12, 2211, 3631, 333, 18, 588, 2384, 10663, 9506, 202, 474, 394, 61, 273, 312, 67, 93, 397, 7732, 31, 202, 202, 2704, 61, 273, 866, 5694, 12, 2704, 61, 16, 312, 67, 8830, 2040, 18, 588, 2686, 12, 2211, 3631, 333, 18, 588, 2686, 10663, 25083, 202, 542, 13089, 12, 2704, 60, 16, 2704, 61, 1769, 202, 202, 81, 67, 7098, 18, 542, 20020, 13089, 12, 81, 67, 92, 16, 81, 67, 93, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5532, 1435, 202, 95, 202, 202, 474, 7732, 273, 374, 31, 202, 202, 430, 12443, 81, 67, 7126, 473, 18680, 13, 480, 374, 13, 1082, 202, 15680, 273, 300, 2312, 14555, 67, 2565, 5703, 31, 202, 202, 12107, 309, 12443, 81, 67, 7126, 473, 30666, 13, 480, 374, 13, 1082, 202, 15680, 273, 8795, 14555, 67, 2565, 5703, 31, 9506, 202, 474, 6633, 273, 374, 31, 202, 202, 430, 12443, 81, 67, 7126, 473, 9686, 13, 480, 374, 13, 1082, 202, 13437, 273, 300, 2312, 14555, 67, 2565, 5703, 31, 202, 202, 12107, 309, 12443, 81, 67, 7126, 473, 13135, 13, 480, 374, 13, 1082, 202, 13437, 273, 8795, 14555, 67, 2565, 5703, 31, 202, 2 ]
simpleConfigurator.setContext(fruitContext);
simpleConfigurator.setContext(fruitContext);
public List<FruitShell> doFirstPart(String filename) throws Exception { HashMap<Pattern, Action> rulesMap = new HashMap<Pattern, Action>(); rulesMap.put(new Pattern("group/fruitShell"), new FruitShellAction()); rulesMap.put(new Pattern("group/fruitShell/fruit"), new FruitFactoryAction()); rulesMap.put(new Pattern("group/fruitShell/fruit/*"), new NOPAction()); SimpleConfigurator simpleConfigurator = new SimpleConfigurator(rulesMap); simpleConfigurator.setContext(fruitContext); simpleConfigurator.doConfigure(Constants.TEST_DIR_PREFIX + "input/joran/" + filename); StatusPrinter.print(fruitContext); return fruitContext.getFruitShellList(); }
46578 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46578/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/buggy/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 5621, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 6, 3631, 394, 478, 8653, 305, 13220, 1803, 10663, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 19, 4840, 14945, 6, 3631, 394, 478, 8653, 305, 1733, 1803, 10663, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 19, 4840, 14945, 19, 7388, 3631, 394, 423, 3665, 1803, 10663, 565, 4477, 17182, 4143, 17182, 273, 394, 4477, 17182, 12, 7482, 863, 1769, 565, 4143, 17182, 18, 542, 1042, 12, 4840, 14945, 1042, 1769, 565, 4143, 17182, 18, 2896, 11207, 12, 2918, 18, 16961, 67, 4537, 67, 6307, 397, 315, 2630, 19, 78, 280, 304, 4898, 397, 1544, 1769, 565, 2685, 12149, 18, 1188, 12, 4840, 14945, 1042, 1769, 565, 327, 3812, 14945, 1042, 18, 588, 7167, 14945, 13220, 682, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 5621, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 6, 3631, 394, 478, 8653, 305, 13220, 1803, 10663, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 19, 4840, 14945, 6, 3631, 394, 478, 8653, 305, 1733, 1803, 10663, 565, 2931, 863, 18, 458, 12, 2704, 6830, 2932, 1655, 19, 4840, 14945, 13220, 19, 4840, 14945, 19, 7388, 3631, 394, 423, 3665, 1803, 10663, 565, 4477, 17182, 4143, 17182, 273, 394, 4477, 17182, 2 ]
experiment.saveToDb(saveToDbConflictHandler);
if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (log.isDebugEnabled()) { log.debug("selectExptFromDB after cmtDialog.processResults with new name/id: " + cmtDialog.getExperimentName() + "/" + cmtDialog.getExperimentId() + " trialID: " + trialId + " and orig name: " + originalExperimentName); } if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperimentId(), trialId); if (experiment != null) addExperimentAndComponentsToWorkspace(experiment, getSelectedNode()); } }
public void run() { experiment.saveToDb(saveToDbConflictHandler); // save under new name GUIUtils.timeConsumingTaskEnd(organizer); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/af184b188ea31a0f0d53806376705e9151cb40f9/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 2398, 309, 261, 71, 1010, 6353, 18, 2567, 3447, 10756, 288, 727, 514, 12950, 548, 273, 276, 1010, 6353, 18, 588, 6251, 287, 548, 5621, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 613, 18, 4148, 2932, 4025, 424, 337, 1265, 2290, 1839, 276, 1010, 6353, 18, 2567, 3447, 598, 394, 508, 19, 350, 30, 315, 397, 276, 1010, 6353, 18, 588, 22338, 461, 1435, 397, 4016, 397, 276, 1010, 6353, 18, 588, 22338, 548, 1435, 397, 315, 12950, 734, 30, 315, 397, 12950, 548, 397, 315, 471, 1647, 508, 30, 315, 397, 2282, 22338, 461, 1769, 289, 309, 261, 17493, 548, 480, 446, 13, 288, 22844, 8724, 273, 4222, 18, 2640, 22338, 12, 8830, 22338, 461, 16, 276, 1010, 6353, 18, 588, 22338, 461, 9334, 276, 1010, 6353, 18, 588, 22338, 548, 9334, 12950, 548, 1769, 309, 261, 18142, 480, 446, 13, 527, 22338, 1876, 7171, 774, 8241, 12, 18142, 16, 16625, 907, 10663, 289, 289, 225, 368, 1923, 3613, 394, 508, 5411, 10978, 1989, 18, 957, 11911, 310, 2174, 1638, 12, 22543, 1824, 1769, 1850, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 2398, 309, 261, 71, 1010, 6353, 18, 2567, 3447, 10756, 288, 727, 514, 12950, 548, 273, 276, 1010, 6353, 18, 588, 6251, 287, 548, 5621, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 613, 18, 4148, 2932, 4025, 424, 337, 1265, 2290, 1839, 276, 1010, 6353, 18, 2567, 3447, 598, 394, 508, 19, 350, 30, 315, 397, 276, 1010, 6353, 18, 588, 22338, 461, 1435, 397, 4016, 397, 276, 1010, 6353, 18, 588, 22338, 548, 1435, 397, 315, 12950, 734, 30, 315, 397, 12950, 548, 397, 315, 471, 1647, 508, 30, 315, 397, 2282, 22338, 461, 1769, 289, 309, 261, 17493, 548, 480, 446, 13, 288, 22844, 8724, 273, 4222, 18, 2640, 2 ]
add(new FileUploadField("file", fileModel));
add(uploadField = new FileUploadField("file"));
public ImageUploadForm(String name, PersistentObjectModel cdModel) { super(name, cdModel, null); add(new FileUploadField("file", fileModel)); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/097f08cf3519a01ab302a513af673c8627c265df/EditPage.java/clean/wicket-examples/src/java/wicket/examples/cdapp/EditPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 3421, 4777, 1204, 12, 780, 508, 16, 11049, 921, 1488, 7976, 1488, 13, 202, 202, 95, 1082, 202, 9565, 12, 529, 16, 7976, 1488, 16, 446, 1769, 1082, 202, 1289, 12, 2704, 1387, 4777, 974, 2932, 768, 3113, 585, 1488, 10019, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 3421, 4777, 1204, 12, 780, 508, 16, 11049, 921, 1488, 7976, 1488, 13, 202, 202, 95, 1082, 202, 9565, 12, 529, 16, 7976, 1488, 16, 446, 1769, 1082, 202, 1289, 12, 2704, 1387, 4777, 974, 2932, 768, 3113, 585, 1488, 10019, 202, 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 ]
private static boolean hasUTF8Bom(byte[] bom) { return (bom.length >= 3 && bom[0] == -17 && bom[1] == -69 && bom[2] == -65);
public static boolean hasUTF8Bom(byte[] bom) { return ArrayUtil.startsWith(bom, UTF8_BOM);
private static boolean hasUTF8Bom(byte[] bom) { return (bom.length >= 3 && bom[0] == -17 && bom[1] == -69 && bom[2] == -65); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/96dddf31cf1261406e9a0874810d25e16c21bd24/CharsetToolkit.java/buggy/openapi/src/com/intellij/openapi/vfs/CharsetToolkit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 711, 5159, 28, 38, 362, 12, 7229, 8526, 28626, 13, 288, 565, 327, 261, 70, 362, 18, 2469, 1545, 890, 597, 28626, 63, 20, 65, 422, 300, 4033, 597, 28626, 63, 21, 65, 422, 300, 8148, 597, 28626, 63, 22, 65, 422, 300, 9222, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 711, 5159, 28, 38, 362, 12, 7229, 8526, 28626, 13, 288, 565, 327, 261, 70, 362, 18, 2469, 1545, 890, 597, 28626, 63, 20, 65, 422, 300, 4033, 597, 28626, 63, 21, 65, 422, 300, 8148, 597, 28626, 63, 22, 65, 422, 300, 9222, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return audioFrames.getSamplingRate();
return sampleRate;
public int getSamplingRate() { return audioFrames.getSamplingRate(); }
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/7873d2d8762d997ab7ec8918af0ef1b743f5925d/ClusterUnitDatabase.java/buggy/java/de/dfki/lt/mary/unitselection/clunits/ClusterUnitDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1322, 7639, 4727, 1435, 565, 288, 3639, 327, 27505, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 1322, 7639, 4727, 1435, 565, 288, 3639, 327, 27505, 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, -100, -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 ( Enumeration equips = ent.getMisc(); equips.hasMoreElements(); ) { Mounted mEquip = (Mounted) equips.nextElement();
for (Mounted mEquip : ent.getMisc()) {
private void postLoadInit(Entity ent) throws EntityLoadingException { // Walk through the list of equipment. for (Enumeration e = ent.getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); // Link Artemis IV fire-control systems to their missle racks. if (m.getType().hasFlag(MiscType.F_ARTEMIS) && m.getLinked() == null) { // link up to a weapon in the same location for (Enumeration e2 = ent.getWeapons(); e2.hasMoreElements(); ) { Mounted mWeapon = (Mounted)e2.nextElement(); WeaponType wtype = (WeaponType)mWeapon.getType(); // only srm and lrm are valid for artemis if (wtype.getAmmoType() != AmmoType.T_LRM && wtype.getAmmoType() != AmmoType.T_SRM) { continue; } // already linked? if (mWeapon.getLinkedBy() != null) { continue; } // check location if (mWeapon.getLocation() == m.getLocation()) { m.setLinked(mWeapon); break; } // also, mechs have a special location rule else if (ent instanceof Mech && m.getLocation() == Mech.LOC_HEAD && mWeapon.getLocation() == Mech.LOC_CT) { m.setLinked(mWeapon); break; } } if (m.getLinked() == null) { // huh. this shouldn't happen throw new EntityLoadingException("Unable to match Artemis to launcher"); } } // End link-Artemis else if ( Mech.STEALTH.equals(m.getType().getInternalName()) && m.getLinked() == null ) { // Find an ECM suite to link to the stealth system. // Stop looking after we find the first ECM suite. for ( Enumeration equips = ent.getMisc(); equips.hasMoreElements(); ) { Mounted mEquip = (Mounted) equips.nextElement(); MiscType mtype = (MiscType) mEquip.getType(); if ( mtype.hasFlag(MiscType.F_ECM) ) { m.setLinked( mEquip ); break; } } if (m.getLinked() == null) { // This mech has stealth armor but no ECM. Probably // an improperly created custom. throw new EntityLoadingException("Unable to find an ECM Suite. Mechs with Stealth Armor must also be equipped with an ECM Suite."); } } // End link-Stealth } // Check the next piece of equipment. //Check if it's canon; if it is, mark it as such. ent.setCanon(false);//Guilty until proven innocent try { if (canonUnitNames==null) { canonUnitNames=new Vector(); //init the list. BufferedReader br = null; try { br = new BufferedReader(new FileReader(OFFICIALUNITS)); String s; String name; while ((s = br.readLine()) != null) { int nIndex1 = s.indexOf('|'); name=s.substring(0, nIndex1); canonUnitNames.addElement(name); } } catch (FileNotFoundException e) { } } } catch (IOException e) { } for (Enumeration i = canonUnitNames.elements(); i.hasMoreElements();) { String s = (String)i.nextElement(); if(s.equals(ent.getShortNameRaw())) { ent.setCanon(true); break; } } } // End private void postLoadInit(Entity) throws EntityLoadingException
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cbe74d020e74a85c0e3b8ebf32d1ebc85c1ba62f/MechFileParser.java/clean/megamek/src/megamek/common/MechFileParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1603, 2563, 2570, 12, 1943, 3281, 13, 1216, 3887, 10515, 503, 288, 3639, 368, 7564, 3059, 326, 666, 434, 1298, 11568, 18, 3639, 364, 261, 21847, 425, 273, 3281, 18, 588, 11729, 71, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 13076, 329, 312, 273, 261, 8725, 329, 13, 73, 18, 4285, 1046, 5621, 5411, 368, 4048, 1201, 874, 291, 21602, 4452, 17, 7098, 14908, 358, 3675, 12543, 298, 19495, 87, 18, 5411, 309, 261, 81, 18, 588, 559, 7675, 5332, 4678, 12, 11729, 71, 559, 18, 42, 67, 985, 16988, 5127, 13, 597, 312, 18, 588, 13174, 1435, 422, 446, 13, 288, 7734, 368, 1692, 731, 358, 279, 732, 28629, 316, 326, 1967, 2117, 7734, 364, 261, 21847, 425, 22, 273, 3281, 18, 588, 3218, 438, 7008, 5621, 425, 22, 18, 5332, 7417, 3471, 5621, 262, 288, 10792, 13076, 329, 312, 3218, 28629, 273, 261, 8725, 329, 13, 73, 22, 18, 4285, 1046, 5621, 10792, 1660, 28629, 559, 341, 723, 273, 261, 3218, 28629, 559, 13, 81, 3218, 28629, 18, 588, 559, 5621, 10792, 368, 1338, 272, 8864, 471, 328, 8864, 854, 923, 364, 419, 874, 291, 10792, 309, 261, 91, 723, 18, 588, 37, 7020, 83, 559, 1435, 480, 3986, 8683, 559, 18, 56, 67, 48, 8717, 597, 341, 723, 18, 588, 37, 7020, 83, 559, 1435, 480, 3986, 8683, 559, 18, 56, 67, 55, 8717, 13, 288, 13491, 1324, 31, 10792, 289, 10792, 368, 1818, 8459, 35, 10792, 309, 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, 1603, 2563, 2570, 12, 1943, 3281, 13, 1216, 3887, 10515, 503, 288, 3639, 368, 7564, 3059, 326, 666, 434, 1298, 11568, 18, 3639, 364, 261, 21847, 425, 273, 3281, 18, 588, 11729, 71, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 13076, 329, 312, 273, 261, 8725, 329, 13, 73, 18, 4285, 1046, 5621, 5411, 368, 4048, 1201, 874, 291, 21602, 4452, 17, 7098, 14908, 358, 3675, 12543, 298, 19495, 87, 18, 5411, 309, 261, 81, 18, 588, 559, 7675, 5332, 4678, 12, 11729, 71, 559, 18, 42, 67, 985, 16988, 5127, 13, 597, 312, 18, 588, 13174, 1435, 422, 446, 13, 288, 7734, 368, 1692, 731, 358, 279, 732, 28629, 316, 326, 1967, 2 ]
final PsiType argType = parameter.getType(); if(!TypeUtils.isJavaLangObject(argType)){ return; }
public void visitMethod(@NotNull PsiMethod method){ // note: no call to super if(!MethodUtils.isEquals(method)) { return; } final PsiParameterList paramList = method.getParameterList(); final PsiParameter[] parameters = paramList.getParameters(); final PsiParameter parameter = parameters[0]; final PsiType argType = parameter.getType(); if(!TypeUtils.isJavaLangObject(argType)){ return; } final PsiCodeBlock body = method.getBody(); if(body == null){ return; } if(isParameterChecked(body, parameter)){ return; } registerMethodError(method); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4e01d68983912039e2e5a6042256db04cd656a98/EqualsWhichDoesntCheckParameterClassInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/EqualsWhichDoesntCheckParameterClassInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 26964, 5962, 453, 7722, 1305, 707, 15329, 2868, 368, 4721, 30, 1158, 745, 358, 2240, 5411, 309, 12, 5, 1305, 1989, 18, 291, 8867, 12, 2039, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1662, 682, 579, 682, 273, 707, 18, 588, 1662, 682, 5621, 5411, 727, 453, 7722, 1662, 8526, 1472, 273, 579, 682, 18, 588, 2402, 5621, 5411, 727, 453, 7722, 1662, 1569, 273, 1472, 63, 20, 15533, 5411, 727, 453, 7722, 559, 1501, 559, 273, 1569, 18, 588, 559, 5621, 5411, 309, 12, 5, 559, 1989, 18, 291, 5852, 7275, 921, 12, 3175, 559, 3719, 95, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1085, 1768, 1417, 273, 707, 18, 588, 2250, 5621, 5411, 309, 12, 3432, 422, 446, 15329, 7734, 327, 31, 5411, 289, 5411, 309, 12, 291, 1662, 11454, 12, 3432, 16, 1569, 3719, 95, 7734, 327, 31, 5411, 289, 5411, 1744, 1305, 668, 12, 2039, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 26964, 5962, 453, 7722, 1305, 707, 15329, 2868, 368, 4721, 30, 1158, 745, 358, 2240, 5411, 309, 12, 5, 1305, 1989, 18, 291, 8867, 12, 2039, 3719, 288, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1662, 682, 579, 682, 273, 707, 18, 588, 1662, 682, 5621, 5411, 727, 453, 7722, 1662, 8526, 1472, 273, 579, 682, 18, 588, 2402, 5621, 5411, 727, 453, 7722, 1662, 1569, 273, 1472, 63, 20, 15533, 5411, 727, 453, 7722, 559, 1501, 559, 273, 1569, 18, 588, 559, 5621, 5411, 309, 12, 5, 559, 1989, 18, 291, 5852, 7275, 921, 12, 3175, 559, 3719, 95, 7734, 327, 31, 5411, 289, 5411, 727, 453, 7722, 1085, 1768, 1417, 273, 2 ]
stringBuffer.append(TEXT_39);
stringBuffer.append(TEXT_42); if (nextContainer instanceof GenNode) { GenNode node = (GenNode) nextContainer; String semanticHintsClassName = importManager.getImportedName(genDiagram.getSemanticHintsQualifiedClassName()); for (Iterator labels = node.getLabels().iterator(); labels.hasNext();) { GenNodeLabel label = (GenNodeLabel) labels.next(); if (label instanceof ExternalLabel) { String labelTextViewId = semanticHintsClassName + '.' + node.getUniqueIdentifier() + "Labels." + label.getSemanticHintFieldName(); stringBuffer.append(TEXT_43); stringBuffer.append(label.getVisualID()); stringBuffer.append(TEXT_44); stringBuffer.append(labelTextViewId); stringBuffer.append(TEXT_45); stringBuffer.append(label.getVisualID()); stringBuffer.append(TEXT_46); } } }
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument;List genNodes = genDiagram.getNodes();List genLinks = genDiagram.getLinks();Collection allContainers = AccessUtil.getAllContainers(genDiagram); stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getEditorPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportUtil(genDiagram.getEditorPackageName());importManager.addImport("org.eclipse.emf.ecore.EClass");importManager.addImport("org.eclipse.emf.ecore.EObject");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_3); stringBuffer.append(genDiagram.getVisualIDRegistryClassName()); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getVisualIDRegistryClassName()); stringBuffer.append(TEXT_5); stringBuffer.append(genDiagram.getVisualIDRegistryClassName()); stringBuffer.append(TEXT_6); GenPackage genPackage = genDiagram.getDomainMetaModel();String semanticPackageInterfaceName = importManager.getImportedName(genPackage.getQualifiedPackageInterfaceName());{ String classifierAccessorName = genDiagram.getDomainDiagramElement().getClassifierAccessorName(); String interfaceName = importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()); stringBuffer.append(TEXT_7); stringBuffer.append(semanticPackageInterfaceName); stringBuffer.append(TEXT_8); stringBuffer.append(classifierAccessorName); stringBuffer.append(TEXT_9); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_10); stringBuffer.append(interfaceName); stringBuffer.append(TEXT_11); stringBuffer.append(genDiagram.getVisualID()); stringBuffer.append(TEXT_12); } stringBuffer.append(TEXT_13); stringBuffer.append(genDiagram.getVisualID()); stringBuffer.append(TEXT_14); for (int i = 0; i < genNodes.size(); i++) { GenNode genNode = (GenNode) genNodes.get(i); String classifierAccessorName = genNode.getDomainMetaClass().getClassifierAccessorName(); String interfaceName = importManager.getImportedName(genNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_15); stringBuffer.append(semanticPackageInterfaceName); stringBuffer.append(TEXT_16); stringBuffer.append(classifierAccessorName); stringBuffer.append(TEXT_17); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_18); stringBuffer.append(interfaceName); stringBuffer.append(TEXT_19); stringBuffer.append(genNode.getVisualID()); stringBuffer.append(TEXT_20); } stringBuffer.append(TEXT_21); for (Iterator containers = allContainers.iterator(); containers.hasNext();) { GenChildContainer nextContainer = (GenChildContainer) containers.next(); stringBuffer.append(TEXT_22); stringBuffer.append(nextContainer.getVisualID()); stringBuffer.append(TEXT_23); if (nextContainer instanceof GenNode) { GenNode node = (GenNode) nextContainer; String semanticHintsClassName = importManager.getImportedName(genDiagram.getSemanticHintsQualifiedClassName()); for (Iterator labels = node.getLabels().iterator(); labels.hasNext();) { GenNodeLabel label = (GenNodeLabel) labels.next(); String labelTextViewId = semanticHintsClassName + '.' + node.getUniqueIdentifier() + "Labels." + label.getSemanticHintFieldName(); stringBuffer.append(TEXT_24); stringBuffer.append(labelTextViewId); stringBuffer.append(TEXT_25); stringBuffer.append(label.getVisualID()); stringBuffer.append(TEXT_26); } for (Iterator compartments = node.getCompartments().iterator(); compartments.hasNext();) { GenCompartment compartment = (GenCompartment) compartments.next(); String compartmentId = semanticHintsClassName + '.' + node.getUniqueIdentifier() + "Compartments." + compartment.getSemanticHintFieldName(); stringBuffer.append(TEXT_27); stringBuffer.append(compartmentId); stringBuffer.append(TEXT_28); stringBuffer.append(compartment.getVisualID()); stringBuffer.append(TEXT_29); } } stringBuffer.append(TEXT_30); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_31); for (Iterator childNodes = nextContainer.getChildNodes().iterator(); childNodes.hasNext();) { GenNode childNode = (GenNode) childNodes.next(); String classifierAccessorName = childNode.getDomainMetaClass().getClassifierAccessorName(); String interfaceName = importManager.getImportedName(childNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_32); stringBuffer.append(semanticPackageInterfaceName); stringBuffer.append(TEXT_33); stringBuffer.append(classifierAccessorName); stringBuffer.append(TEXT_34); stringBuffer.append(childNode.getUniqueIdentifier()); stringBuffer.append(TEXT_35); stringBuffer.append(interfaceName); stringBuffer.append(TEXT_36); stringBuffer.append(childNode.getVisualID()); stringBuffer.append(TEXT_37); } stringBuffer.append(TEXT_38); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_39); }for (Iterator links = genLinks.iterator(); links.hasNext();) { GenLink link = (GenLink) links.next(); String semanticHintsClassName = importManager.getImportedName(genDiagram.getSemanticHintsQualifiedClassName()); stringBuffer.append(TEXT_40); stringBuffer.append(link.getVisualID()); stringBuffer.append(TEXT_41); for (Iterator linkLabels = link.getLabels().iterator(); linkLabels.hasNext();) { GenLinkLabel linkLabel = (GenLinkLabel) linkLabels.next(); String labelViewId = semanticHintsClassName + '.' + link.getUniqueIdentifier() + "Labels." + linkLabel.getSemanticHintLabelFieldName(); stringBuffer.append(TEXT_42); stringBuffer.append(labelViewId); stringBuffer.append(TEXT_43); stringBuffer.append(linkLabel.getVisualID()); stringBuffer.append(TEXT_44); } stringBuffer.append(TEXT_45); stringBuffer.append(link.getUniqueIdentifier()); stringBuffer.append(TEXT_46); for (Iterator linkLabels = link.getLabels().iterator(); linkLabels.hasNext();) { GenLinkLabel linkLabel = (GenLinkLabel) linkLabels.next(); String labelTextViewId = semanticHintsClassName + '.' + link.getUniqueIdentifier() + "Labels." + linkLabel.getSemanticHintFieldName(); stringBuffer.append(TEXT_47); stringBuffer.append(linkLabel.getVisualID()); stringBuffer.append(TEXT_48); stringBuffer.append(labelTextViewId); stringBuffer.append(TEXT_49); stringBuffer.append(linkLabel.getVisualID()); stringBuffer.append(TEXT_50); stringBuffer.append(link.getUniqueIdentifier()); stringBuffer.append(TEXT_51); }} stringBuffer.append(TEXT_52); for (int i = 0; i < genLinks.size(); i++) { GenLink genLink = (GenLink) genLinks.get(i); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); String semanticLinkInterfaceName = modelFacet.getMetaClass().getClassifierAccessorName(); String qualifiedInterfaceName = modelFacet.getMetaClass().getQualifiedInterfaceName(); stringBuffer.append(TEXT_53); stringBuffer.append(semanticPackageInterfaceName); stringBuffer.append(TEXT_54); stringBuffer.append(semanticLinkInterfaceName); stringBuffer.append(TEXT_55); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName(qualifiedInterfaceName)); stringBuffer.append(TEXT_57); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_58); } } stringBuffer.append(TEXT_59); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_61); String acceptAllMatcherAccessor = "acceptAllMatcher()"; //$NON-NLS-1$for (int i = 0; i < genNodes.size(); i++) { GenNode genNode = (GenNode) genNodes.get(i); String qualifiedNodeInterfaceName = genNode.getDomainMetaClass().getQualifiedInterfaceName(); String nodeSelector = genNode.getModelFacet() != null && genNode.getModelFacet().getModelElementSelector() != null ? genNode.getUniqueIdentifier() : acceptAllMatcherAccessor; stringBuffer.append(TEXT_62); stringBuffer.append(genNode.getUniqueIdentifier()); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName(qualifiedNodeInterfaceName)); stringBuffer.append(TEXT_64); stringBuffer.append(nodeSelector); stringBuffer.append(TEXT_65); }for (Iterator containers = allContainers.iterator(); containers.hasNext();) { GenChildContainer nextContainer = (GenChildContainer) containers.next(); for (Iterator childNodes = nextContainer.getChildNodes().iterator(); childNodes.hasNext();) { GenChildNode nextChildNode = (GenChildNode) childNodes.next(); String qualifiedChildNodeInterfaceName = nextChildNode.getDomainMetaClass().getQualifiedInterfaceName(); String childNodeSelector = nextChildNode.getModelFacet() != null && nextChildNode.getModelFacet().getModelElementSelector() != null ? nextChildNode.getUniqueIdentifier() : acceptAllMatcherAccessor; stringBuffer.append(TEXT_66); stringBuffer.append(nextChildNode.getUniqueIdentifier()); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName(qualifiedChildNodeInterfaceName)); stringBuffer.append(TEXT_68); stringBuffer.append(childNodeSelector); stringBuffer.append(TEXT_69); }} stringBuffer.append(TEXT_70); for (Iterator containers = allContainers.iterator(); containers.hasNext();) { GenChildContainer nextContainer = (GenChildContainer) containers.next(); stringBuffer.append(TEXT_71); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_72); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_73); }for (Iterator links = genLinks.iterator(); links.hasNext();) { GenLink link = (GenLink) links.next(); stringBuffer.append(TEXT_74); stringBuffer.append(link.getUniqueIdentifier()); stringBuffer.append(TEXT_75); if (link.getLabels().size() > 0) { stringBuffer.append(TEXT_76); stringBuffer.append(link.getUniqueIdentifier()); stringBuffer.append(TEXT_77); }} stringBuffer.append(TEXT_78); for (int i = 0; i < genLinks.size(); i++) { GenLink genLink = (GenLink) genLinks.get(i); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); String qualifiedInterfaceName = modelFacet.getMetaClass().getQualifiedInterfaceName(); String linkSelector = modelFacet.getModelElementSelector() != null ? genLink.getUniqueIdentifier() : acceptAllMatcherAccessor; stringBuffer.append(TEXT_79); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName(qualifiedInterfaceName)); stringBuffer.append(TEXT_81); stringBuffer.append(linkSelector); stringBuffer.append(TEXT_82); }} stringBuffer.append(TEXT_83); stringBuffer.append(TEXT_84); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); stringBuffer.append(TEXT_86); int selectorCounter = 0;for (Iterator it = genDiagram.eAllContents(); it.hasNext();) { Object next = it.next(); String id = null; TypeModelFacet modelFacet = null; if (next instanceof GenNode) { id = ((GenNode) next).getUniqueIdentifier(); modelFacet = ((GenNode) next).getModelFacet(); } else if (next instanceof GenLink && ((GenLink) next).getModelFacet() instanceof TypeLinkModelFacet) { id = ((GenLink) next).getUniqueIdentifier(); modelFacet = (TypeLinkModelFacet) ((GenLink) next).getModelFacet(); } if (modelFacet == null || modelFacet.getModelElementSelector() == null) { continue; } ModelElementSelector selector = modelFacet.getModelElementSelector(); selectorCounter++; stringBuffer.append(TEXT_87); stringBuffer.append(id); stringBuffer.append(TEXT_88); stringBuffer.append(selector.getLanguage()); stringBuffer.append(TEXT_89); stringBuffer.append(selector.getBody()); stringBuffer.append(TEXT_90); stringBuffer.append(id); stringBuffer.append(TEXT_91); stringBuffer.append(selector.getBody()); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); if(selectorCounter > 0) { stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.query.ocl.conditions.OclConstraintCondition")); stringBuffer.append(TEXT_95); } stringBuffer.append(TEXT_96); importManager.emitSortedImports(); stringBuffer.append(TEXT_97); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/1f75243d34f39fcfc1a7bad4ed738ec9438432b9/VisualIDRegistryGenerator.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/editor/VisualIDRegistryGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 682, 3157, 3205, 273, 3157, 14058, 1940, 18, 588, 3205, 5621, 682, 3157, 7100, 273, 3157, 14058, 1940, 18, 588, 7100, 5621, 2532, 777, 11177, 273, 5016, 1304, 18, 588, 1595, 11177, 12, 4507, 14058, 1940, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 5666, 1318, 18, 1289, 5010, 2932, 3341, 18, 20416, 18, 351, 74, 18, 557, 479, 18, 5720, 8863, 5666, 1318, 18, 1289, 5010, 2932, 3341, 18, 20416, 18, 351, 74, 18, 557, 479, 18, 8029, 8863, 5666, 1318, 18, 1289, 5010, 2932, 3341, 18, 20416, 18, 75, 16126, 18, 9448, 18, 1819, 18, 1767, 8863, 5666, 1318, 18, 3355, 5010, 2735, 12, 1080, 1892, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 23, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 25780, 734, 4243, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 24, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 25780, 734, 4243, 3834, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 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, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 682, 3157, 3205, 273, 3157, 14058, 1940, 18, 588, 3205, 5621, 682, 3157, 7100, 273, 3157, 14058, 1940, 18, 588, 7100, 5621, 2532, 777, 11177, 273, 5016, 1304, 18, 588, 1595, 11177, 12, 4507, 14058, 1940, 1769, 565, 533, 1892, 18, 6923, 12, 5151, 67, 21, 1769, 565, 533, 1892, 18, 6923, 12, 4507, 14058, 1940, 18, 588, 6946, 18308, 10663, 565, 533, 1892, 18, 6923, 12, 5151, 67, 22, 1769, 565, 6164, 1304, 1930, 1318, 273, 394, 6164, 1304, 12, 4507, 14058, 1940, 18, 588, 2 ]
while (! (alloc_scope instanceof LambdaExp))
LambdaExp cur_lambda = null; for (;;)
public void assign_space () { ScopeExp alloc_scope = this; while (! (alloc_scope instanceof LambdaExp)) { ScopeExp alloc_outer = alloc_scope.outer; if (alloc_outer == null) break; alloc_scope = alloc_outer; } for (Variable var = firstVar (); var != null; var = var.nextVar ()) { Declaration decl = (Declaration) var; if (decl.offset < 0) { if (! decl.isSimple ()) { /* A variable captured by an inner Lambda is allocated in the heap frame. */ if (alloc_scope.heapFrame == null) alloc_scope.heapFrame = alloc_scope.add_decl (Symbol.make ("heapFrame"), Compilation.objArrayType); decl.baseVariable = alloc_scope.heapFrame; decl.offset = alloc_scope.frameSize++; } } } }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/bbb4cee92538f4212714dd1526b149346a5e5b56/ScopeExp.java/clean/kawa/lang/ScopeExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2683, 67, 2981, 1832, 225, 288, 565, 5468, 2966, 4767, 67, 4887, 273, 333, 31, 565, 12801, 2966, 662, 67, 14661, 273, 446, 31, 364, 261, 25708, 13, 1377, 288, 202, 3876, 2966, 4767, 67, 14068, 273, 4767, 67, 4887, 18, 14068, 31, 202, 430, 261, 9853, 67, 14068, 422, 446, 13, 202, 225, 898, 31, 202, 9853, 67, 4887, 273, 4767, 67, 14068, 31, 1377, 289, 565, 364, 261, 3092, 569, 273, 1122, 1537, 261, 1769, 225, 569, 480, 446, 31, 225, 569, 273, 569, 18, 4285, 1537, 1832, 13, 4202, 288, 202, 6094, 3496, 273, 261, 6094, 13, 569, 31, 202, 430, 261, 8840, 18, 3348, 411, 374, 13, 202, 225, 288, 202, 565, 309, 16051, 3496, 18, 291, 5784, 1832, 13, 202, 1377, 288, 202, 202, 20308, 432, 2190, 19550, 635, 392, 3443, 12801, 353, 11977, 1082, 282, 316, 326, 10500, 2623, 18, 1195, 202, 202, 430, 261, 9853, 67, 4887, 18, 25506, 3219, 422, 446, 13, 1082, 225, 4767, 67, 4887, 18, 25506, 3219, 1082, 565, 273, 4767, 67, 4887, 18, 1289, 67, 8840, 261, 5335, 18, 6540, 7566, 25506, 3219, 6, 3631, 25083, 565, 22416, 18, 2603, 27182, 1769, 202, 202, 8840, 18, 1969, 3092, 273, 4767, 67, 4887, 18, 25506, 3219, 31, 202, 202, 8840, 18, 3348, 273, 4767, 67, 4887, 18, 3789, 1225, 9904, 31, 202, 1377, 289, 202, 225, 289, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2683, 67, 2981, 1832, 225, 288, 565, 5468, 2966, 4767, 67, 4887, 273, 333, 31, 565, 12801, 2966, 662, 67, 14661, 273, 446, 31, 364, 261, 25708, 13, 1377, 288, 202, 3876, 2966, 4767, 67, 14068, 273, 4767, 67, 4887, 18, 14068, 31, 202, 430, 261, 9853, 67, 14068, 422, 446, 13, 202, 225, 898, 31, 202, 9853, 67, 4887, 273, 4767, 67, 14068, 31, 1377, 289, 565, 364, 261, 3092, 569, 273, 1122, 1537, 261, 1769, 225, 569, 480, 446, 31, 225, 569, 273, 569, 18, 4285, 1537, 1832, 13, 4202, 288, 202, 6094, 3496, 273, 261, 6094, 13, 569, 31, 202, 430, 261, 8840, 18, 3348, 411, 374, 13, 202, 225, 288, 202, 565, 2 ]
public org.quickfix.field.QuoteQualifier getQuoteQualifier() throws FieldNotFound { org.quickfix.field.QuoteQualifier value = new org.quickfix.field.QuoteQualifier();
public quickfix.field.QuoteQualifier getQuoteQualifier() throws FieldNotFound { quickfix.field.QuoteQualifier value = new quickfix.field.QuoteQualifier();
public org.quickfix.field.QuoteQualifier getQuoteQualifier() throws FieldNotFound { org.quickfix.field.QuoteQualifier value = new org.quickfix.field.QuoteQualifier(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequestReject.java/buggy/src/java/src/quickfix/fix44/QuoteRequestReject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 336, 10257, 16185, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 336, 10257, 16185, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 16185, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if( source == null )
if( source == null ) {
public static String translateFile( final String source ) { if( source == null ) return ""; final StringBuffer result = new StringBuffer( source ); translateFileSep( result ); return result.toString(); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8ce1de2178a0422105fa437c327b49fb5637ff28/FileUtils.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/util/FileUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4204, 812, 12, 727, 514, 1084, 262, 565, 288, 3639, 309, 12, 1084, 422, 446, 262, 288, 5411, 327, 1408, 31, 3639, 727, 6674, 563, 273, 394, 6674, 12, 1084, 11272, 3639, 4204, 812, 5097, 12, 563, 11272, 3639, 327, 563, 18, 10492, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4204, 812, 12, 727, 514, 1084, 262, 565, 288, 3639, 309, 12, 1084, 422, 446, 262, 288, 5411, 327, 1408, 31, 3639, 727, 6674, 563, 273, 394, 6674, 12, 1084, 11272, 3639, 4204, 812, 5097, 12, 563, 11272, 3639, 327, 563, 18, 10492, 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 ]
files.addElement( new File(metahome, "lib/metamata.jar") ); files.addElement( new File(metahome, "bin/lib/JavaCC.zip") );
files.addElement(new File(metahome, "lib/metamata.jar")); files.addElement(new File(metahome, "bin/lib/JavaCC.zip"));
protected File[] getMetamataLibs(){ Vector files = new Vector(); files.addElement( new File(metahome, "lib/metamata.jar") ); files.addElement( new File(metahome, "bin/lib/JavaCC.zip") ); File[] array = new File[ files.size() ]; files.copyInto(array); return array; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/MParse.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MParse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 8526, 2108, 278, 301, 396, 5664, 87, 1435, 95, 3639, 5589, 1390, 273, 394, 5589, 5621, 3639, 1390, 18, 1289, 1046, 12, 394, 1387, 12, 3901, 8712, 16, 315, 2941, 19, 10578, 301, 396, 18, 11930, 7923, 11272, 3639, 1390, 18, 1289, 1046, 12, 394, 1387, 12, 3901, 8712, 16, 315, 4757, 19, 2941, 19, 5852, 6743, 18, 4450, 7923, 11272, 7734, 1387, 8526, 526, 273, 394, 1387, 63, 1390, 18, 1467, 1435, 308, 31, 3639, 1390, 18, 3530, 5952, 12, 1126, 1769, 3639, 327, 526, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 8526, 2108, 278, 301, 396, 5664, 87, 1435, 95, 3639, 5589, 1390, 273, 394, 5589, 5621, 3639, 1390, 18, 1289, 1046, 12, 394, 1387, 12, 3901, 8712, 16, 315, 2941, 19, 10578, 301, 396, 18, 11930, 7923, 11272, 3639, 1390, 18, 1289, 1046, 12, 394, 1387, 12, 3901, 8712, 16, 315, 4757, 19, 2941, 19, 5852, 6743, 18, 4450, 7923, 11272, 7734, 1387, 8526, 526, 273, 394, 1387, 63, 1390, 18, 1467, 1435, 308, 31, 3639, 1390, 18, 3530, 5952, 12, 1126, 1769, 3639, 327, 526, 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 ]
if (inputState.guessing==0) { tmp290_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp290_AST); }
tmp290_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp290_AST);
public final void relationalExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST relationalExpression_AST = null; shiftExpression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } { switch ( LA(1)) { case EOF: case RBRACK: case QUESTION: case LT: case COMMA: case GT: case RPAREN: case ASSIGN: case BAND: case RCURLY: case SEMI: case NLS: case LITERAL_default: case CLOSURE_OP: case LOR: case BOR: case COLON: case LITERAL_else: case LITERAL_in: case LITERAL_case: case PLUS_ASSIGN: case MINUS_ASSIGN: case STAR_ASSIGN: case DIV_ASSIGN: case MOD_ASSIGN: case SR_ASSIGN: case BSR_ASSIGN: case SL_ASSIGN: case BAND_ASSIGN: case BXOR_ASSIGN: case BOR_ASSIGN: case STAR_STAR_ASSIGN: case LAND: case BXOR: case REGEX_FIND: case REGEX_MATCH: case NOT_EQUAL: case EQUAL: case COMPARE_TO: case LE: case GE: { { switch ( LA(1)) { case LT: case GT: case LITERAL_in: case LE: case GE: { { switch ( LA(1)) { case LT: { AST tmp290_AST = null; if (inputState.guessing==0) { tmp290_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp290_AST); } match(LT); break; } case GT: { AST tmp291_AST = null; if (inputState.guessing==0) { tmp291_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp291_AST); } match(GT); break; } case LE: { AST tmp292_AST = null; if (inputState.guessing==0) { tmp292_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp292_AST); } match(LE); break; } case GE: { AST tmp293_AST = null; if (inputState.guessing==0) { tmp293_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp293_AST); } match(GE); break; } case LITERAL_in: { AST tmp294_AST = null; if (inputState.guessing==0) { tmp294_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp294_AST); } match(LITERAL_in); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } nls(); shiftExpression(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } case EOF: case RBRACK: case QUESTION: case COMMA: case RPAREN: case ASSIGN: case BAND: case RCURLY: case SEMI: case NLS: case LITERAL_default: case CLOSURE_OP: case LOR: case BOR: case COLON: case LITERAL_else: case LITERAL_case: case PLUS_ASSIGN: case MINUS_ASSIGN: case STAR_ASSIGN: case DIV_ASSIGN: case MOD_ASSIGN: case SR_ASSIGN: case BSR_ASSIGN: case SL_ASSIGN: case BAND_ASSIGN: case BXOR_ASSIGN: case BOR_ASSIGN: case STAR_STAR_ASSIGN: case LAND: case BXOR: case REGEX_FIND: case REGEX_MATCH: case NOT_EQUAL: case EQUAL: case COMPARE_TO: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } break; } case LITERAL_instanceof: { AST tmp295_AST = null; if (inputState.guessing==0) { tmp295_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp295_AST); } match(LITERAL_instanceof); nls(); typeSpec(true); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } case LITERAL_as: { AST tmp296_AST = null; if (inputState.guessing==0) { tmp296_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp296_AST); } match(LITERAL_as); nls(); typeSpec(true); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { relationalExpression_AST = (AST)currentAST.root; } returnAST = relationalExpression_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 25302, 2300, 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, 9053, 25302, 2300, 67, 9053, 273, 446, 31, 9506, 202, 4012, 2300, 5621, 202, 202, 430, 261, 2630, 1119, 18, 20885, 310, 631, 20, 13, 288, 1082, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 202, 202, 97, 202, 202, 95, 202, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 6431, 30, 202, 202, 3593, 534, 7192, 3649, 30, 202, 202, 3593, 23328, 882, 1146, 30, 202, 202, 3593, 11807, 30, 202, 202, 3593, 17373, 30, 202, 202, 3593, 19688, 30, 202, 202, 3593, 534, 15111, 30, 202, 202, 3593, 25116, 30, 202, 202, 3593, 605, 4307, 30, 202, 202, 3593, 534, 26314, 30, 202, 202, 3593, 3174, 7492, 30, 202, 202, 3593, 29117, 30, 202, 202, 3593, 511, 18454, 67, 1886, 30, 202, 202, 3593, 27775, 55, 4830, 67, 3665, 30, 202, 202, 3593, 511, 916, 30, 202, 202, 3593, 605, 916, 30, 202, 202, 3593, 27856, 30, 202, 202, 3593, 511, 18454, 67, 12107, 30, 202, 202, 3593, 511, 18454, 67, 267, 30, 202, 202, 3593, 511, 18454, 67, 3593, 30, 202, 202, 3593, 22443, 3378, 67, 23289, 30, 202, 202, 3593, 6989, 3378, 67, 23289, 30, 202, 202, 3593, 21807, 67, 23289, 30, 202, 202, 3593, 27355, 67, 23289, 30, 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, 25302, 2300, 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, 9053, 25302, 2300, 67, 9053, 273, 446, 31, 9506, 202, 4012, 2300, 5621, 202, 202, 430, 261, 2630, 1119, 18, 20885, 310, 631, 20, 13, 288, 1082, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 202, 202, 97, 202, 202, 95, 202, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 6431, 30, 202, 202, 3593, 534, 7192, 3649, 30, 202, 202, 3593, 23328, 882, 1146, 30, 202, 202, 3593, 11807, 30, 202, 202, 3593, 17373, 2 ]
System.arraycopy(record, 0, this.blockBuffer, (this.currRecIdx * this.recordSize), this.recordSize);
System.arraycopy( record, 0, this.blockBuffer, ( this.currRecIdx * this.recordSize ), this.recordSize );
public void writeRecord(byte[] record) throws IOException { if (this.debug) { System.err.println("WriteRecord: recIdx = " + this.currRecIdx + " blkIdx = " + this.currBlkIdx); } if (this.outStream == null) { throw new IOException("writing to an input buffer"); } if (record.length != this.recordSize) { throw new IOException("record to write has length '" + record.length + "' which is not the record size of '" + this.recordSize + "'"); } if (this.currRecIdx >= this.recsPerBlock) { this.writeBlock(); } System.arraycopy(record, 0, this.blockBuffer, (this.currRecIdx * this.recordSize), this.recordSize); this.currRecIdx++; }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/TarBuffer.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 2115, 12, 7229, 8526, 1409, 13, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 3067, 2115, 30, 1950, 4223, 273, 315, 397, 333, 18, 17016, 5650, 4223, 1171, 9079, 397, 315, 11992, 4223, 273, 315, 397, 333, 18, 17016, 4802, 79, 4223, 1769, 3639, 289, 3639, 309, 261, 2211, 18, 659, 1228, 422, 446, 13, 288, 5411, 604, 394, 1860, 2932, 14345, 358, 392, 810, 1613, 8863, 3639, 289, 3639, 309, 261, 3366, 18, 2469, 480, 333, 18, 3366, 1225, 13, 288, 5411, 604, 394, 1860, 2932, 3366, 358, 1045, 711, 769, 2119, 21394, 397, 1409, 18, 2469, 21394, 397, 2491, 1492, 353, 486, 326, 1409, 963, 434, 2119, 21394, 397, 333, 18, 3366, 1225, 397, 5862, 1769, 3639, 289, 3639, 309, 261, 2211, 18, 17016, 5650, 4223, 1545, 333, 18, 266, 2143, 2173, 1768, 13, 288, 5411, 333, 18, 2626, 1768, 5621, 3639, 289, 3639, 2332, 18, 1126, 3530, 12, 3366, 16, 374, 16, 333, 18, 2629, 1892, 16, 7682, 261, 2211, 18, 17016, 5650, 4223, 380, 333, 18, 3366, 1225, 3631, 7682, 333, 18, 3366, 1225, 1769, 3639, 333, 18, 17016, 5650, 4223, 9904, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 2115, 12, 7229, 8526, 1409, 13, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 3067, 2115, 30, 1950, 4223, 273, 315, 397, 333, 18, 17016, 5650, 4223, 1171, 9079, 397, 315, 11992, 4223, 273, 315, 397, 333, 18, 17016, 4802, 79, 4223, 1769, 3639, 289, 3639, 309, 261, 2211, 18, 659, 1228, 422, 446, 13, 288, 5411, 604, 394, 1860, 2932, 14345, 358, 392, 810, 1613, 8863, 3639, 289, 3639, 309, 261, 3366, 18, 2469, 480, 333, 18, 3366, 1225, 13, 288, 5411, 604, 394, 1860, 2932, 3366, 358, 1045, 711, 769, 2119, 21394, 397, 1409, 18, 2469, 21394, 397, 2491, 1492, 353, 486, 326, 2 ]
boolean isPureVirtual, ASTAccessVisibility visibility)
boolean isPureVirtual, ASTAccessVisibility visibility, List constructorChainElements )
public ASTMethod( IASTScope scope, String name, List parameters, IASTAbstractDeclaration returnType, IASTExceptionSpecification exception, boolean isInline, boolean isFriend, boolean isStatic, int startOffset, int nameOffset, IASTTemplate ownerTemplate, boolean isConst, boolean isVolatile, boolean isConstructor, boolean isDestructor, boolean isVirtual, boolean isExplicit, boolean isPureVirtual, ASTAccessVisibility visibility) { super( scope, name, parameters, returnType, exception, isInline, isFriend, isStatic, startOffset, nameOffset, ownerTemplate); this.isVirtual = isVirtual; this.isPureVirtual = isPureVirtual; this.isConstructor = isConstructor; this.isDestructor = isDestructor; this.isExplicit = isExplicit; this.isConst = isConst; this.isVolatile = isVolatile; this.visibility = visibility; qualifiedName = new ASTQualifiedNamedElement( scope, name ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/80ee3e49e725aec89fb1ca4c6f61c8f01316fdf8/ASTMethod.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 1305, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 514, 508, 16, 3639, 987, 1472, 16, 3639, 467, 9053, 7469, 6094, 9424, 16, 3639, 467, 9053, 503, 8615, 1520, 16, 3639, 1250, 8048, 1369, 16, 3639, 1250, 17646, 7522, 16, 3639, 1250, 16116, 16, 3639, 509, 18245, 16, 3639, 509, 508, 2335, 16, 3639, 467, 9053, 2283, 3410, 2283, 16, 3639, 1250, 353, 9661, 16, 3639, 1250, 353, 17431, 20295, 16, 3639, 1250, 353, 6293, 16, 3639, 1250, 353, 6305, 8813, 280, 16, 3639, 1250, 353, 6466, 16, 3639, 1250, 353, 17186, 16, 3639, 1250, 353, 13645, 6466, 16, 9183, 1862, 10135, 9478, 16, 987, 3885, 3893, 3471, 262, 565, 288, 3639, 2240, 12, 5411, 2146, 16, 5411, 508, 16, 5411, 1472, 16, 5411, 9424, 16, 5411, 1520, 16, 5411, 8048, 1369, 16, 5411, 17646, 7522, 16, 5411, 16116, 16, 5411, 18245, 16, 5411, 508, 2335, 16, 5411, 3410, 2283, 1769, 3639, 333, 18, 291, 6466, 273, 353, 6466, 31, 3639, 333, 18, 291, 13645, 6466, 273, 353, 13645, 6466, 31, 3639, 333, 18, 291, 6293, 273, 353, 6293, 31, 3639, 333, 18, 291, 6305, 8813, 280, 273, 353, 6305, 8813, 280, 31, 3639, 333, 18, 291, 17186, 273, 353, 17186, 31, 540, 333, 18, 291, 9661, 273, 353, 9661, 31, 3639, 333, 18, 291, 17431, 20295, 273, 353, 17431, 20295, 31, 3639, 333, 18, 14422, 273, 9478, 31, 3639, 24133, 273, 394, 9183, 8708, 7604, 1046, 12, 2146, 16, 508, 11272, 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, 377, 1071, 9183, 1305, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 514, 508, 16, 3639, 987, 1472, 16, 3639, 467, 9053, 7469, 6094, 9424, 16, 3639, 467, 9053, 503, 8615, 1520, 16, 3639, 1250, 8048, 1369, 16, 3639, 1250, 17646, 7522, 16, 3639, 1250, 16116, 16, 3639, 509, 18245, 16, 3639, 509, 508, 2335, 16, 3639, 467, 9053, 2283, 3410, 2283, 16, 3639, 1250, 353, 9661, 16, 3639, 1250, 353, 17431, 20295, 16, 3639, 1250, 353, 6293, 16, 3639, 1250, 353, 6305, 8813, 280, 16, 3639, 1250, 353, 6466, 16, 3639, 1250, 353, 17186, 16, 3639, 1250, 353, 13645, 6466, 16, 9183, 1862, 10135, 9478, 16, 987, 3885, 3893, 3471, 262, 565, 288, 3639, 2240, 12, 5411, 2146, 2 ]
DomText child = (DomText) getFirstChild();
final DomText child = (DomText) getFirstChild();
private void initDefaultValue() { if( defaultValue_ == null ) { DomText child = (DomText) getFirstChild(); if( child != null ) { defaultValue_ = child.getData(); if( defaultValue_ == null ) { defaultValue_ = ""; } } else { defaultValue_ = ""; } } }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/5cc5624b4386fdebb2c3ccc18840e11237b4776b/HtmlTextArea.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 15646, 1435, 288, 3639, 309, 12, 4593, 67, 422, 446, 262, 288, 5411, 727, 12965, 1528, 1151, 273, 261, 8832, 1528, 13, 17315, 5621, 5411, 309, 12, 1151, 480, 446, 262, 288, 7734, 4593, 67, 273, 1151, 18, 588, 751, 5621, 7734, 309, 12, 4593, 67, 422, 446, 262, 288, 10792, 4593, 67, 273, 1408, 31, 7734, 289, 5411, 289, 5411, 469, 288, 7734, 4593, 67, 273, 1408, 31, 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, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15646, 1435, 288, 3639, 309, 12, 4593, 67, 422, 446, 262, 288, 5411, 727, 12965, 1528, 1151, 273, 261, 8832, 1528, 13, 17315, 5621, 5411, 309, 12, 1151, 480, 446, 262, 288, 7734, 4593, 67, 273, 1151, 18, 588, 751, 5621, 7734, 309, 12, 4593, 67, 422, 446, 262, 288, 10792, 4593, 67, 273, 1408, 31, 7734, 289, 5411, 289, 5411, 469, 288, 7734, 4593, 67, 273, 1408, 31, 5411, 289, 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 ]
return realThis(thisObj, f).toString();
return js_toString(thisObj);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { if (methodId == Id_constructor) { return jsConstructor(cx, args, f, thisObj == null); } else if (methodId == Id_toString) { return realThis(thisObj, f).toString(); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/acbdbf255e97339740e11759ff650556c4465cb6/NativeError.java/clean/src/org/mozilla/javascript/NativeError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 309, 261, 2039, 548, 422, 3124, 67, 12316, 13, 288, 7734, 327, 3828, 6293, 12, 71, 92, 16, 833, 16, 284, 16, 15261, 422, 446, 1769, 5411, 289, 5411, 469, 309, 261, 2039, 548, 422, 3124, 67, 10492, 13, 288, 7734, 327, 3828, 67, 10492, 12, 2211, 2675, 1769, 5411, 289, 3639, 289, 3639, 327, 2240, 18, 4177, 1305, 12, 2039, 548, 16, 284, 16, 9494, 16, 2146, 16, 15261, 16, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 309, 261, 2039, 548, 422, 3124, 67, 12316, 13, 288, 7734, 327, 3828, 6293, 12, 71, 92, 16, 833, 16, 284, 16, 15261, 422, 446, 1769, 5411, 289, 5411, 469, 309, 261, 2039, 548, 422, 3124, 67, 10492, 13, 288, 7734, 327, 3828, 67, 10492, 12, 2211, 2675, 1769, 5411, 289, 3639, 289, 3639, 327, 2240, 18, 4177, 1305, 12, 2039, 548, 16, 284, 16, 9494, 16, 2146, 16, 15261, 16, 833, 1769, 565, 289, 2, -100 ]
if (firstWarning != null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg);
public void addWarning(String msg) { DriverManager.println(msg); // Add the warning to the chain if (firstWarning != null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg); // Now check for some specific messages // This is obsolete in 6.5, but I've left it in here so if we need to use this // technique again, we'll know where to place it. // // This is generated by the SQL "show datestyle" //if (msg.startsWith("NOTICE:") && msg.indexOf("DateStyle")>0) { //// 13 is the length off "DateStyle is " //msg = msg.substring(msg.indexOf("DateStyle is ")+13); // //for(int i=0;i<dateStyles.length;i+=2) //if (msg.startsWith(dateStyles[i])) //currentDateStyle=i+1; // this is the index of the format //} }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 6210, 12, 780, 1234, 13, 202, 95, 202, 202, 4668, 1318, 18, 8222, 12, 3576, 1769, 202, 202, 759, 1436, 326, 3436, 358, 326, 2687, 202, 202, 430, 261, 3645, 6210, 480, 446, 13, 1082, 202, 3645, 6210, 18, 542, 2134, 6210, 12, 2704, 3063, 6210, 12, 3576, 10019, 202, 202, 12107, 1082, 202, 3645, 6210, 273, 394, 3063, 6210, 12, 3576, 1769, 202, 202, 759, 4494, 866, 364, 2690, 2923, 2743, 202, 202, 759, 1220, 353, 27191, 316, 1666, 18, 25, 16, 1496, 467, 8081, 2002, 518, 316, 2674, 1427, 309, 732, 1608, 358, 999, 333, 202, 202, 759, 17734, 2161, 3382, 16, 732, 5614, 5055, 1625, 358, 3166, 518, 18, 202, 202, 759, 202, 202, 759, 1220, 353, 4374, 635, 326, 3063, 315, 4500, 1150, 19706, 6, 202, 202, 759, 430, 261, 3576, 18, 17514, 1190, 2932, 20559, 2773, 13, 597, 1234, 18, 31806, 2932, 1626, 2885, 7923, 34, 20, 13, 288, 202, 202, 1307, 5958, 353, 326, 769, 3397, 315, 1626, 2885, 353, 315, 202, 202, 759, 3576, 273, 1234, 18, 28023, 12, 3576, 18, 31806, 2932, 1626, 2885, 353, 9369, 15, 3437, 1769, 202, 202, 759, 202, 202, 759, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 712, 9725, 18, 2469, 31, 77, 15, 33, 22, 13, 202, 202, 759, 430, 261, 3576, 18, 17514, 1190, 12, 712, 9725, 63, 77, 22643, 202, 202, 759, 2972, 1626, 2885, 33, 77, 15, 21, 31, 368, 333, 353, 326, 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, 527, 6210, 12, 780, 1234, 13, 202, 95, 202, 202, 4668, 1318, 18, 8222, 12, 3576, 1769, 202, 202, 759, 1436, 326, 3436, 358, 326, 2687, 202, 202, 430, 261, 3645, 6210, 480, 446, 13, 1082, 202, 3645, 6210, 18, 542, 2134, 6210, 12, 2704, 3063, 6210, 12, 3576, 10019, 202, 202, 12107, 1082, 202, 3645, 6210, 273, 394, 3063, 6210, 12, 3576, 1769, 202, 202, 759, 4494, 866, 364, 2690, 2923, 2743, 202, 202, 759, 1220, 353, 27191, 316, 1666, 18, 25, 16, 1496, 467, 8081, 2002, 518, 316, 2674, 1427, 309, 732, 1608, 358, 999, 333, 202, 202, 759, 17734, 2161, 3382, 16, 732, 5614, 5055, 1625, 358, 3166, 518, 18, 202, 202, 2 ]
return commandManagerWrapper; }
return commandManagerWrapper; }
public ICommandManager getCommandManager() { // TODO need to proxy this to prevent casts to IMutableCommandManager return commandManagerWrapper; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9337b828e86179850647141c34d497be28275ed2/WorkbenchCommandSupport.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/WorkbenchCommandSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 2189, 1318, 12856, 1318, 1435, 288, 3639, 368, 2660, 1608, 358, 2889, 333, 358, 5309, 4812, 87, 358, 6246, 3050, 2189, 1318, 3639, 327, 1296, 1318, 3611, 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, 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, 377, 1071, 467, 2189, 1318, 12856, 1318, 1435, 288, 3639, 368, 2660, 1608, 358, 2889, 333, 358, 5309, 4812, 87, 358, 6246, 3050, 2189, 1318, 3639, 327, 1296, 1318, 3611, 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, -100, -100, -100, -100, -100, -100, -100 ]
return realGetSSK((ClientSSK)key, localOnly, cache);
return realGetSSK((ClientSSK)key, localOnly, cache, ignoreStore);
public ClientKeyBlock realGetKey(ClientKey key, boolean localOnly, boolean cache) throws LowLevelGetException { if(key instanceof ClientCHK) return realGetCHK((ClientCHK)key, localOnly, cache); else if(key instanceof ClientSSK) return realGetSSK((ClientSSK)key, localOnly, cache); else throw new IllegalArgumentException("Not a CHK or SSK: "+key); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 653, 1768, 2863, 967, 653, 12, 1227, 653, 498, 16, 1250, 1191, 3386, 16, 1250, 1247, 13, 1216, 23629, 2355, 967, 503, 288, 377, 202, 430, 12, 856, 1276, 2445, 1792, 47, 13, 377, 202, 202, 2463, 2863, 967, 1792, 47, 12443, 1227, 1792, 47, 13, 856, 16, 1191, 3386, 16, 1247, 1769, 377, 202, 12107, 309, 12, 856, 1276, 2445, 1260, 47, 13, 377, 202, 202, 2463, 2863, 967, 1260, 47, 12443, 1227, 1260, 47, 13, 856, 16, 1191, 3386, 16, 1247, 16, 2305, 2257, 1769, 377, 202, 12107, 377, 202, 202, 12849, 394, 2754, 2932, 1248, 279, 6469, 47, 578, 348, 11129, 30, 13773, 856, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 653, 1768, 2863, 967, 653, 12, 1227, 653, 498, 16, 1250, 1191, 3386, 16, 1250, 1247, 13, 1216, 23629, 2355, 967, 503, 288, 377, 202, 430, 12, 856, 1276, 2445, 1792, 47, 13, 377, 202, 202, 2463, 2863, 967, 1792, 47, 12443, 1227, 1792, 47, 13, 856, 16, 1191, 3386, 16, 1247, 1769, 377, 202, 12107, 309, 12, 856, 1276, 2445, 1260, 47, 13, 377, 202, 202, 2463, 2863, 967, 1260, 47, 12443, 1227, 1260, 47, 13, 856, 16, 1191, 3386, 16, 1247, 16, 2305, 2257, 1769, 377, 202, 12107, 377, 202, 202, 12849, 394, 2754, 2932, 1248, 279, 6469, 47, 578, 348, 11129, 30, 13773, 856, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100 ]
BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(file)); String line = ""; while ( (line = reader.readLine()) != null) { if (line.compareTo("100") == 0) { break;
new Thread(){ public void run(){ BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(file)); String line = ""; while ( (line = reader.readLine()) != null) { if (line.compareTo("100") == 0) { break; } } String size = ""; String filename = ""; String checksum = ""; String link = ""; ApplejuiceFassade af = ApplejuiceFassade.getInstance(); while ( (line = reader.readLine()) != null) { filename = line; checksum = reader.readLine(); size = reader.readLine(); if (size != null && checksum != null) { link = "ajfsp: "|" + size + "/"; af.processLink(link); } } } catch (FileNotFoundException ex) { } catch (IOException ex1) {
private void dateiListeImportieren() { JFileChooser fileChooser = new JFileChooser(); fileChooser.setDialogType(JFileChooser.OPEN_DIALOG); fileChooser.setFileFilter(new TxtFileFilter()); fileChooser.setDialogTitle(menuItemDateiliste.getText()); fileChooser.setMultiSelectionEnabled(false); int i = fileChooser.showOpenDialog(this); if (i == JFileChooser.APPROVE_OPTION) { File file = fileChooser.getSelectedFile(); if (file.isFile()) { BufferedReader reader = null; try { reader = new BufferedReader(new FileReader(file)); String line = ""; while ( (line = reader.readLine()) != null) { if (line.compareTo("100") == 0) { break; } } String size = ""; String filename = ""; String checksum = ""; String link = ""; ApplejuiceFassade af = ApplejuiceFassade.getInstance(); while ( (line = reader.readLine()) != null) { filename = line; checksum = reader.readLine(); size = reader.readLine(); if (size != null && checksum != null) { link = "ajfsp://file|" + filename + "|" + checksum + "|" + size + "/"; af.processLink(link); } } } catch (FileNotFoundException ex) { //nix zu tun } catch (IOException ex1) { //nix zu tun } } } }
13641 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13641/551abfec56d87536f3e50b546ef1998023ce5261/AppleJuiceDialog.java/clean/AJClientGUI/src/de/applejuicenet/client/gui/AppleJuiceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1509, 77, 682, 73, 5010, 2453, 275, 1435, 288, 3639, 804, 812, 17324, 585, 17324, 273, 394, 804, 812, 17324, 5621, 3639, 585, 17324, 18, 542, 6353, 559, 12, 46, 812, 17324, 18, 11437, 67, 2565, 18683, 1769, 3639, 585, 17324, 18, 542, 29837, 12, 2704, 6424, 88, 29837, 10663, 3639, 585, 17324, 18, 542, 6353, 4247, 12, 5414, 1180, 1626, 330, 376, 73, 18, 588, 1528, 10663, 3639, 585, 17324, 18, 542, 5002, 6233, 1526, 12, 5743, 1769, 3639, 509, 277, 273, 585, 17324, 18, 4500, 3678, 6353, 12, 2211, 1769, 3639, 309, 261, 77, 422, 804, 812, 17324, 18, 2203, 3373, 3412, 67, 7425, 13, 288, 5411, 1387, 585, 273, 585, 17324, 18, 588, 7416, 812, 5621, 5411, 309, 261, 768, 18, 291, 812, 10756, 288, 7734, 10633, 2949, 273, 446, 31, 7734, 775, 288, 10792, 2949, 273, 394, 10633, 12, 2704, 4766, 7734, 23010, 12, 768, 10019, 10792, 514, 980, 273, 1408, 31, 10792, 1323, 261, 261, 1369, 273, 2949, 18, 896, 1670, 10756, 480, 446, 13, 288, 13491, 309, 261, 1369, 18, 9877, 774, 2932, 6625, 7923, 422, 374, 13, 288, 18701, 898, 31, 13491, 289, 10792, 289, 10792, 514, 963, 273, 1408, 31, 10792, 514, 1544, 273, 1408, 31, 10792, 514, 6697, 273, 1408, 31, 10792, 514, 1692, 273, 1408, 31, 10792, 1716, 1802, 78, 89, 1812, 42, 428, 2486, 10073, 273, 1716, 1802, 78, 89, 1812, 42, 428, 2486, 18, 588, 1442, 5621, 10792, 1323, 261, 261, 1369, 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, 1509, 77, 682, 73, 5010, 2453, 275, 1435, 288, 3639, 804, 812, 17324, 585, 17324, 273, 394, 804, 812, 17324, 5621, 3639, 585, 17324, 18, 542, 6353, 559, 12, 46, 812, 17324, 18, 11437, 67, 2565, 18683, 1769, 3639, 585, 17324, 18, 542, 29837, 12, 2704, 6424, 88, 29837, 10663, 3639, 585, 17324, 18, 542, 6353, 4247, 12, 5414, 1180, 1626, 330, 376, 73, 18, 588, 1528, 10663, 3639, 585, 17324, 18, 542, 5002, 6233, 1526, 12, 5743, 1769, 3639, 509, 277, 273, 585, 17324, 18, 4500, 3678, 6353, 12, 2211, 1769, 3639, 309, 261, 77, 422, 804, 812, 17324, 18, 2203, 3373, 3412, 67, 7425, 13, 288, 5411, 1387, 585, 273, 585, 17324, 18, 588, 2 ]
return null;
public synchronized PropertyGroupSchedule searchForPropertyGroupSchedule(Class c) { if (otherProperties == null) { return null; } // Use time phased method if (!TimePhasedPropertyGroup.class.isAssignableFrom(c)) { return null; } Iterator i = otherProperties.iterator(); while (i.hasNext()) { Object p = i.next(); if (p instanceof PropertyGroupSchedule) { if (((PropertyGroupSchedule)p).getPGClass().equals(c)) { // BOZO - Should we clone? return (PropertyGroupSchedule)p; } } } return null; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/5c00eb5330fa3aed62d70034781f1a6e51f8a79b/AssetSkeletonBase.java/buggy/core/src/org/cougaar/domain/planning/ldm/asset/AssetSkeletonBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 4276, 1114, 6061, 1623, 1290, 1396, 1114, 6061, 12, 797, 276, 13, 288, 565, 309, 261, 3011, 2297, 422, 446, 13, 288, 2868, 289, 565, 368, 2672, 813, 6855, 72, 707, 565, 309, 16051, 950, 3731, 8905, 1396, 1114, 18, 1106, 18, 291, 7961, 1265, 12, 71, 3719, 288, 540, 289, 565, 4498, 277, 273, 1308, 2297, 18, 9838, 5621, 565, 1323, 261, 77, 18, 5332, 2134, 10756, 288, 1377, 1033, 293, 273, 277, 18, 4285, 5621, 1377, 309, 261, 84, 1276, 4276, 1114, 6061, 13, 288, 3639, 309, 261, 12443, 1396, 1114, 6061, 13, 84, 2934, 588, 18679, 797, 7675, 14963, 12, 71, 3719, 288, 1850, 368, 9784, 62, 51, 300, 9363, 732, 3236, 35, 1850, 327, 261, 1396, 1114, 6061, 13, 84, 31, 3639, 289, 1377, 289, 565, 289, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 4276, 1114, 6061, 1623, 1290, 1396, 1114, 6061, 12, 797, 276, 13, 288, 565, 309, 261, 3011, 2297, 422, 446, 13, 288, 2868, 289, 565, 368, 2672, 813, 6855, 72, 707, 565, 309, 16051, 950, 3731, 8905, 1396, 1114, 18, 1106, 18, 291, 7961, 1265, 12, 71, 3719, 288, 540, 289, 565, 4498, 277, 273, 1308, 2297, 18, 9838, 5621, 565, 1323, 261, 77, 18, 5332, 2134, 10756, 288, 1377, 1033, 293, 273, 277, 18, 4285, 5621, 1377, 309, 261, 84, 1276, 4276, 1114, 6061, 13, 288, 3639, 309, 261, 12443, 1396, 1114, 6061, 13, 84, 2934, 588, 18679, 797, 7675, 14963, 12, 71, 3719, 288, 1850, 368, 9784, 62, 51, 300, 9363, 732, 3236, 35, 2 ]
u.p("test = " + test);
private boolean isColor(String test) { if(color_map.containsKey(test)) { return true; } u.p("test = " + test); if(test.indexOf("rgb") >=0) { return true; } return false; }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/e4fb6b9e64481ed2edf063b60bd4c4c13b12dc7a/RuleNormalizer.java/clean/src/java/org/joshy/html/css/RuleNormalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 2957, 12, 780, 1842, 13, 288, 3639, 309, 12, 3266, 67, 1458, 18, 12298, 653, 12, 3813, 3719, 288, 5411, 327, 638, 31, 3639, 289, 7734, 309, 12, 3813, 18, 31806, 2932, 10948, 7923, 1545, 20, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 327, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 2957, 12, 780, 1842, 13, 288, 3639, 309, 12, 3266, 67, 1458, 18, 12298, 653, 12, 3813, 3719, 288, 5411, 327, 638, 31, 3639, 289, 7734, 309, 12, 3813, 18, 31806, 2932, 10948, 7923, 1545, 20, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 327, 629, 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 ]
} catch (LoginException exception) { MessageDialog.openError(null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. ");
} catch (LoginException exception) { MessageDialog .openError( null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. ");
public void mouseUp(MouseEvent e) { monitorDialog.open(); IProgressMonitor monitor = monitorDialog.getProgressMonitor(); monitor.beginTask("Updating search options...", 55); try { BugzillaPreferencePage.updateQueryOptions(monitor); product.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRODUCT_VALUES))); monitor.worked(1); component.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.COMPONENT_VALUES))); monitor.worked(1); version.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.VERSION_VALUES))); monitor.worked(1); target.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.TARGET_VALUES))); monitor.worked(1); status.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.STATUS_VALUES))); monitor.worked(1); status.setSelection(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRESELECTED_STATUS_VALUES))); monitor.worked(1); resolution.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.RESOLUTION_VALUES))); monitor.worked(1); severity.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.SEVERITY_VALUES))); monitor.worked(1); priority.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRIORITY_VALUES))); monitor.worked(1); hardware.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.HARDWARE_VALUES))); monitor.worked(1); os.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.OS_VALUES))); monitor.worked(1); } catch (LoginException exception) { // we had a problem that seems to have been caused from bad login info MessageDialog.openError(null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); BugzillaPlugin.log(exception); } finally { monitor.done(); monitorDialog.close(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bd3f4a126cfb57c0118c7a7b1ce3fd5e6ad0220c/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/search/BugzillaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 7644, 1211, 12, 9186, 1133, 425, 13, 288, 6862, 9506, 202, 10259, 6353, 18, 3190, 5621, 9506, 202, 45, 5491, 7187, 6438, 273, 6438, 6353, 18, 588, 5491, 7187, 5621, 9506, 202, 10259, 18, 10086, 2174, 2932, 17858, 1623, 702, 7070, 16, 21483, 1769, 9506, 202, 698, 288, 6862, 202, 19865, 15990, 9624, 1964, 18, 2725, 1138, 1320, 12, 10259, 1769, 6862, 25083, 202, 5896, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 2556, 18, 588, 780, 12, 13450, 637, 15990, 2918, 18, 25883, 67, 16386, 3719, 1769, 6862, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 4652, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 2556, 18, 588, 780, 12, 13450, 637, 15990, 2918, 18, 22922, 67, 16386, 3719, 1769, 6862, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 1589, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 2556, 18, 588, 780, 12, 13450, 637, 15990, 2918, 18, 5757, 67, 16386, 3719, 1769, 6862, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 3299, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 2556, 18, 588, 780, 12, 13450, 637, 15990, 2918, 18, 16374, 67, 16386, 3719, 1769, 6862, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 2327, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 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, 7644, 1211, 12, 9186, 1133, 425, 13, 288, 6862, 9506, 202, 10259, 6353, 18, 3190, 5621, 9506, 202, 45, 5491, 7187, 6438, 273, 6438, 6353, 18, 588, 5491, 7187, 5621, 9506, 202, 10259, 18, 10086, 2174, 2932, 17858, 1623, 702, 7070, 16, 21483, 1769, 9506, 202, 698, 288, 6862, 202, 19865, 15990, 9624, 1964, 18, 2725, 1138, 1320, 12, 10259, 1769, 6862, 25083, 202, 5896, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2271, 1320, 11698, 12, 1484, 2556, 18, 588, 780, 12, 13450, 637, 15990, 2918, 18, 25883, 67, 16386, 3719, 1769, 6862, 202, 10259, 18, 1252, 329, 12, 21, 1769, 6862, 202, 4652, 18, 542, 3126, 12, 19865, 15990, 9624, 1964, 18, 2 ]
cus = mgfau.makeCachedUrlSet(rSpec);
cus = mgfau.getPlugin().makeCachedUrlSet(mgfau, rSpec);
public void setUp() throws Exception { super.setUp(); String tempDirPath = getTempDir().getAbsolutePath() + File.separator; Properties props = new Properties(); props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath); ConfigurationUtil.setCurrentConfigFromProps(props); theDaemon = new MockLockssDaemon(); theDaemon.getHashService(); mgfau = new MockGenericFileArchivalUnit(); MockPlugin plugin = new MockPlugin(); plugin.initPlugin(theDaemon); plugin.setDefiningConfigKeys(Collections.EMPTY_LIST); mgfau.setPlugin(plugin); repo = theDaemon.getLockssRepository(mgfau); theDaemon.getNodeManager(mgfau); CachedUrlSetSpec rSpec = new RangeCachedUrlSetSpec("http://www.example.com/testDir"); cus = mgfau.makeCachedUrlSet(rSpec); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/dd9e1f3ab8106b03ae4df6121efd05be279ecb66/TestGenericFileCachedUrl.java/clean/test/src/org/lockss/plugin/TestGenericFileCachedUrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 24292, 1435, 1216, 1185, 288, 565, 2240, 18, 542, 1211, 5621, 565, 514, 1906, 20129, 273, 28988, 1621, 7675, 588, 10368, 743, 1435, 397, 1387, 18, 11287, 31, 565, 6183, 3458, 273, 394, 6183, 5621, 565, 3458, 18, 542, 1396, 12, 2531, 1049, 3305, 2828, 18, 8388, 67, 8495, 67, 15277, 16, 1906, 20129, 1769, 565, 4659, 1304, 18, 542, 3935, 23852, 5047, 12, 9693, 1769, 565, 326, 12858, 273, 394, 7867, 2531, 1049, 12858, 5621, 565, 326, 12858, 18, 588, 2310, 1179, 5621, 565, 11174, 507, 89, 273, 394, 7867, 7014, 812, 12269, 5162, 2802, 5621, 565, 7867, 3773, 1909, 273, 394, 7867, 3773, 5621, 565, 1909, 18, 2738, 3773, 12, 5787, 12858, 1769, 565, 1909, 18, 542, 6443, 310, 809, 2396, 12, 15150, 18, 13625, 67, 7085, 1769, 565, 11174, 507, 89, 18, 542, 3773, 12, 4094, 1769, 565, 3538, 273, 326, 12858, 18, 588, 2531, 1049, 3305, 12, 81, 75, 507, 89, 1769, 565, 326, 12858, 18, 588, 907, 1318, 12, 81, 75, 507, 89, 1769, 565, 15771, 1489, 694, 1990, 436, 1990, 273, 3639, 394, 8086, 9839, 1489, 694, 1990, 2932, 2505, 2207, 5591, 18, 8236, 18, 832, 19, 3813, 1621, 8863, 565, 27964, 273, 11174, 507, 89, 18, 588, 3773, 7675, 6540, 9839, 1489, 694, 12, 81, 75, 507, 89, 16, 436, 1990, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 24292, 1435, 1216, 1185, 288, 565, 2240, 18, 542, 1211, 5621, 565, 514, 1906, 20129, 273, 28988, 1621, 7675, 588, 10368, 743, 1435, 397, 1387, 18, 11287, 31, 565, 6183, 3458, 273, 394, 6183, 5621, 565, 3458, 18, 542, 1396, 12, 2531, 1049, 3305, 2828, 18, 8388, 67, 8495, 67, 15277, 16, 1906, 20129, 1769, 565, 4659, 1304, 18, 542, 3935, 23852, 5047, 12, 9693, 1769, 565, 326, 12858, 273, 394, 7867, 2531, 1049, 12858, 5621, 565, 326, 12858, 18, 588, 2310, 1179, 5621, 565, 11174, 507, 89, 273, 394, 7867, 7014, 812, 12269, 5162, 2802, 5621, 565, 7867, 3773, 1909, 273, 394, 7867, 3773, 5621, 565, 1909, 18, 2738, 3773, 12, 5787, 12858, 1769, 565, 2 ]
setURL(url, url.getProtocol(), host, port, file, ref);
setURL(url, url.getProtocol(), host, port, authority, userInfo, file, query, ref);
protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { String genuineHost; int hostEnd; int colon; int at_host; start += 2; int slash = spec.indexOf('/', start); if (slash >= 0) hostEnd = slash; else hostEnd = end; host = spec.substring(start, hostEnd); // We first need a genuine host name (with userinfo). // So we check for '@': if it's present check the port in the // section after '@' in the other case check it in the full string. // P.S.: We don't care having '@' at the beginning of the string. if ((at_host = host.indexOf('@')) >= 0) genuineHost = host.substring(at_host); else genuineHost = host; // Look for optional port number. It is valid for the non-port // part of the host name to be null (e.g. a URL "http://:80"). // TBD: JDK 1.2 in this case sets host to null rather than ""; // this is undocumented and likely an unintended side effect in 1.2 // so we'll be simple here and stick with "". Note that // "http://" or "http:///" produce a "" host in JDK 1.2. if ((colon = genuineHost.indexOf(':')) >= 0) { try { port = Integer.parseInt(genuineHost.substring(colon + 1)); } catch (NumberFormatException e) { ; // Ignore invalid port values; port is already set to u's // port. } // Now we must cut the port number in the original string. if (at_host >= 0) host = host.substring(0, at_host + colon); else host = host.substring(0, colon); } file = null; start = hostEnd; } else if (host == null) host = ""; if (file == null || file.length() == 0 || (start < end && spec.charAt(start) == '/')) { // No file context available; just spec for file. // Or this is an absolute path name; ignore any file context. file = spec.substring(start, end); ref = null; } else if (start < end) { // Context is available, but only override it if there is a new file. char sepChar = '/'; int lastSlash = file.lastIndexOf(sepChar); if (lastSlash < 0 && File.separatorChar != sepChar && url.getProtocol().equals("file")) { // On Windows, even '\' is allowed in a "file" URL. sepChar = File.separatorChar; lastSlash = file.lastIndexOf(sepChar); } file = file.substring(0, lastSlash) + sepChar + spec.substring(start, end); if (url.getProtocol().equals("file")) { // For "file" URLs constructed relative to a context, we // need to canonicalise the file path. try { boolean endsWithSlash = file.charAt(file.length() - 1) == '/'; file = new File(file).getCanonicalPath(); if (endsWithSlash && file.charAt(file.length() - 1) != '/') file += '/'; } catch (IOException e) { // Do nothing. } } ref = null; } if (ref == null) { // Normally there should be no '#' in the file part, // but we are nice. int hash = file.indexOf('#'); if (hash != -1) { ref = file.substring(hash + 1, file.length()); file = file.substring(0, hash); } } // XXX - Classpath used to call PlatformHelper.toCanonicalForm() on // the file part. It seems like overhead, but supposedly there is some // benefit in windows based systems (it also lowercased the string). setURL(url, url.getProtocol(), host, port, file, ref); }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/141410702d2753052385e841596a13c4a870b7d7/URLStreamHandler.java/buggy/libjava/java/net/URLStreamHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1109, 1785, 12, 1785, 880, 16, 514, 857, 16, 509, 787, 16, 509, 679, 13, 225, 288, 565, 514, 1479, 273, 880, 18, 588, 2594, 5621, 565, 509, 1756, 273, 880, 18, 588, 2617, 5621, 565, 514, 585, 273, 880, 18, 29925, 5621, 565, 514, 1278, 273, 880, 18, 588, 1957, 5621, 565, 309, 261, 2793, 18, 6858, 6869, 12, 1937, 16, 16177, 3113, 374, 16, 576, 3719, 1377, 288, 202, 780, 314, 2104, 558, 2594, 31, 202, 474, 1479, 1638, 31, 202, 474, 13336, 31, 202, 474, 622, 67, 2564, 31, 202, 1937, 1011, 576, 31, 202, 474, 9026, 273, 857, 18, 31806, 2668, 19, 2187, 787, 1769, 202, 430, 261, 12877, 1545, 374, 13, 202, 225, 1479, 1638, 273, 9026, 31, 202, 12107, 202, 225, 1479, 1638, 273, 679, 31, 202, 2564, 273, 857, 18, 28023, 12, 1937, 16, 1479, 1638, 1769, 202, 759, 1660, 1122, 1608, 279, 314, 2104, 558, 1479, 508, 261, 1918, 18297, 2934, 202, 759, 6155, 732, 866, 364, 4622, 4278, 309, 518, 1807, 3430, 866, 326, 1756, 316, 326, 202, 759, 2442, 1839, 9175, 316, 326, 1308, 648, 866, 518, 316, 326, 1983, 533, 18, 202, 759, 453, 18, 55, 29710, 1660, 2727, 1404, 7671, 7999, 9175, 622, 326, 8435, 434, 326, 533, 18, 202, 430, 14015, 270, 67, 2564, 273, 1479, 18, 31806, 2668, 20887, 3719, 1545, 374, 13, 202, 225, 314, 2104, 558, 2594, 273, 1479, 18, 28023, 12, 270, 67, 2564, 1769, 202, 12107, 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, 1109, 1785, 12, 1785, 880, 16, 514, 857, 16, 509, 787, 16, 509, 679, 13, 225, 288, 565, 514, 1479, 273, 880, 18, 588, 2594, 5621, 565, 509, 1756, 273, 880, 18, 588, 2617, 5621, 565, 514, 585, 273, 880, 18, 29925, 5621, 565, 514, 1278, 273, 880, 18, 588, 1957, 5621, 565, 309, 261, 2793, 18, 6858, 6869, 12, 1937, 16, 16177, 3113, 374, 16, 576, 3719, 1377, 288, 202, 780, 314, 2104, 558, 2594, 31, 202, 474, 1479, 1638, 31, 202, 474, 13336, 31, 202, 474, 622, 67, 2564, 31, 202, 1937, 1011, 576, 31, 202, 474, 9026, 273, 857, 18, 31806, 2668, 19, 2187, 787, 1769, 202, 430, 261, 12877, 1545, 374, 13, 2 ]
if (loader != null) return loader.loadClass(name); clazz = findSystemClass(name);
try { if (loader != null) return loader.loadClass(name); clazz = findSystemClass(name); } catch (ClassNotFoundException e) { return ScriptRuntime.loadClassName(name); }
protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException { Class clazz = findLoadedClass(name); if (clazz == null) { ClassLoader loader = getClass().getClassLoader(); if (loader != null) return loader.loadClass(name); clazz = findSystemClass(name); } if (resolve) resolveClass(clazz); return clazz; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/9cb3a95e5d7762d99f8c5964b603bd898fe0f451/JavaAdapter.java/buggy/js/rhino/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 1659, 16038, 12, 780, 508, 16, 1250, 2245, 13, 5411, 1216, 10403, 3639, 288, 5411, 1659, 4003, 273, 1104, 8835, 797, 12, 529, 1769, 5411, 309, 261, 830, 3638, 422, 446, 13, 288, 7734, 9403, 4088, 273, 2900, 7675, 588, 7805, 5621, 7734, 309, 261, 6714, 480, 446, 13, 10792, 327, 4088, 18, 945, 797, 12, 529, 1769, 7734, 4003, 273, 1104, 3163, 797, 12, 529, 1769, 5411, 289, 5411, 309, 261, 10828, 13, 7734, 2245, 797, 12, 830, 3638, 1769, 5411, 327, 4003, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 1659, 16038, 12, 780, 508, 16, 1250, 2245, 13, 5411, 1216, 10403, 3639, 288, 5411, 1659, 4003, 273, 1104, 8835, 797, 12, 529, 1769, 5411, 309, 261, 830, 3638, 422, 446, 13, 288, 7734, 9403, 4088, 273, 2900, 7675, 588, 7805, 5621, 7734, 309, 261, 6714, 480, 446, 13, 10792, 327, 4088, 18, 945, 797, 12, 529, 1769, 7734, 4003, 273, 1104, 3163, 797, 12, 529, 1769, 5411, 289, 5411, 309, 261, 10828, 13, 7734, 2245, 797, 12, 830, 3638, 1769, 5411, 327, 4003, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{
{
private void createDrillthroughSelectFormat( Composite container ) { Group group = new Group( container, SWT.NONE ); group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); group.setText( Messages.getString( "HyperlinkBuilder.DrillThroughStep5" ) ); //$NON-NLS-1$ group.setLayout( new GridLayout( ) ); // htmlButton = new Button( group, SWT.RADIO );// htmlButton.setText( Messages.getString( "HyperlinkBuilder.DrillThroughHtml" ) ); //$NON-NLS-1$//// pdfButton = new Button( group, SWT.RADIO );// pdfButton.setText( Messages.getString( "HyperlinkBuilder.DrillThroughPdf" ) ); //$NON-NLS-1$ ReportEngine engine = new ReportEngine( new EngineConfig( ) ); supportedFormats = engine.getSupportedFormats( ); formatCheckBtns = new HashMap(); for ( int i = 0; i < supportedFormats.length; i++ ) { Button btn = new Button( group, SWT.RADIO ); if ( supportedFormats.equals( "html" ) ) { btn.setText( Messages.getString( "HyperlinkBuilder.DrillThroughHtml" ) ); //$NON-NLS-1$ } else if ( supportedFormats.equals( "pdf" ) ) { btn.setText( Messages.getString( "HyperlinkBuilder.DrillThroughPdf" ) ); //$NON-NLS-1$ } else { btn.setText( supportedFormats[i] ); //$NON-NLS-1$ } formatCheckBtns.put( supportedFormats[i], btn ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/71bab9fcb2ffd54e269eb877991a1642c09e69e3/HyperlinkBuilder.java/buggy/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, 225, 202, 1152, 918, 752, 8956, 737, 10064, 3391, 1630, 12, 14728, 1478, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 1478, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 1655, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 4160, 25, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1655, 18, 542, 3744, 12, 394, 7145, 3744, 12, 262, 11272, 202, 759, 202, 202, 2620, 3616, 273, 394, 12569, 12, 1041, 16, 348, 8588, 18, 28829, 4294, 11272, 759, 202, 202, 2620, 3616, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 4353, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1307, 202, 202, 7699, 3616, 273, 394, 12569, 12, 1041, 16, 348, 8588, 18, 28829, 4294, 11272, 759, 202, 202, 7699, 3616, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 18562, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 4820, 4410, 4073, 273, 394, 8706, 4410, 12, 394, 10507, 809, 12, 262, 11272, 202, 202, 4127, 8976, 273, 4073, 18, 588, 7223, 8976, 12, 11272, 202, 202, 2139, 1564, 38, 88, 2387, 273, 394, 4317, 5621, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 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, 225, 202, 1152, 918, 752, 8956, 737, 10064, 3391, 1630, 12, 14728, 1478, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 1478, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 1655, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 15996, 1232, 1263, 18, 8956, 737, 14287, 4160, 25, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1655, 18, 542, 3744, 12, 394, 7145, 3744, 12, 262, 11272, 202, 759, 202, 202, 2620, 3616, 273, 394, 12569, 12, 1041, 16, 348, 8588, 18, 28829, 4294, 11272, 759, 202, 202, 2620, 2 ]
RouterService rs = new RouterService(new ActivityCallbackStub());
new RouterService(new ActivityCallbackStub());
public static void globalSetUp() throws Exception { RouterService rs = new RouterService(new ActivityCallbackStub()); fps = new FakeProxyServer(9990, 9999); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/2cd6c4a96369272d11c63d55dfb5a2671a5efcad/ProxyTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/util/ProxyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 394, 9703, 1179, 12, 2704, 9621, 2428, 11974, 10663, 3639, 26067, 273, 394, 11551, 3886, 2081, 12, 2733, 9349, 16, 30082, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 394, 9703, 1179, 12, 2704, 9621, 2428, 11974, 10663, 3639, 26067, 273, 394, 11551, 3886, 2081, 12, 2733, 9349, 16, 30082, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]