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
for (int i = 29; i >= 0; i--) {
for (int i = 56; i >= 0; i--) {
public static void main(String[] args) { try { int[] ia = new int[10]; ContextBuffer cb = new ContextBuffer(3, 10); for (int i = 0; i < 30; i++) { for (int j = 0; j < 10; j++) { ia[j] = i; } cb.store(ia); } //cb.store(ia); for (int i = 29; i >= 0; i--) { cb.load(ia); System.out.println(""+ia[0]); for (int j = 9; j >= 0; j--) { if (ia[j] != i) { System.out.println(" store error " + i + " " + j + " " + ia[j]); } } } System.out.println("success"); } catch (Exception e) { System.out.println(" exception caught "); }}
3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/fc6cb827d39a1cb1eb0eb6a6350aeb243a435880/ContextBuffer.java/clean/com/ximpleware/ContextBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 775, 288, 3639, 509, 8526, 20389, 273, 394, 509, 63, 2163, 15533, 3639, 1772, 1892, 2875, 273, 394, 1772, 1892, 12, 23, 16, 1728, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5196, 31, 277, 27245, 288, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 1728, 31, 525, 27245, 288, 7734, 20389, 63, 78, 65, 273, 277, 31, 5411, 289, 5411, 2875, 18, 2233, 12, 1155, 1769, 3639, 289, 3639, 368, 7358, 18, 2233, 12, 1155, 1769, 3639, 364, 261, 474, 277, 273, 13850, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 5411, 2875, 18, 945, 12, 1155, 1769, 5411, 2332, 18, 659, 18, 8222, 2932, 6, 15, 1155, 63, 20, 19226, 5411, 364, 261, 474, 525, 273, 2468, 31, 525, 1545, 374, 31, 525, 413, 13, 288, 7734, 309, 261, 1155, 63, 78, 65, 480, 277, 13, 288, 10792, 2332, 18, 659, 18, 8222, 2932, 1707, 555, 315, 397, 277, 397, 315, 315, 397, 525, 397, 315, 315, 397, 20389, 63, 78, 19226, 7734, 289, 5411, 289, 3639, 289, 3639, 2332, 18, 659, 18, 8222, 2932, 4768, 8863, 565, 289, 1044, 261, 503, 425, 13, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 1520, 13537, 315, 1769, 565, 10523, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 775, 288, 3639, 509, 8526, 20389, 273, 394, 509, 63, 2163, 15533, 3639, 1772, 1892, 2875, 273, 394, 1772, 1892, 12, 23, 16, 1728, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5196, 31, 277, 27245, 288, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 1728, 31, 525, 27245, 288, 7734, 20389, 63, 78, 65, 273, 277, 31, 5411, 289, 5411, 2875, 18, 2233, 12, 1155, 1769, 3639, 289, 3639, 368, 7358, 18, 2233, 12, 1155, 1769, 3639, 364, 261, 474, 277, 273, 13850, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 5411, 2875, 18, 945, 12, 1155, 1769, 5411, 2332, 18, 2 ]
sharedAtoms = placeFirstBond((Bond)ring.getElectronContainerAt(i),firstBondVector); /* * Call the method which lays out the new ring.
sharedAtoms = placeFirstBond((Bond) ring.getElectronContainerAt(i), firstBondVector); /* * Call the method which lays out the new ring.
private void layoutRingSet(Vector2d firstBondVector, RingSet rs) { AtomContainer sharedAtoms; Bond bond; Vector2d ringCenterVector; Point2d ringCenter; int thisRing; Ring ring = rs.getMostComplexRing(); /* Get the most complex ring in this RingSet */ // determine first bond in Ring logger.debug("Start of layoutRingSet"); int i = 0; for (i = 0; i < ring.getElectronContainerCount(); i++) { if (ring.getElectronContainerAt(i) instanceof Bond) break; } /* Place the most complex ring at the origin of the coordinate system */ if (!ring.getFlag(CDKConstants.ISPLACED)) { sharedAtoms = placeFirstBond((Bond)ring.getElectronContainerAt(i),firstBondVector); /* * Call the method which lays out the new ring. */ ringCenterVector = ringPlacer.getRingCenterOfFirstRing(ring, firstBondVector, bondLength); ringPlacer.placeRing(ring, sharedAtoms, sharedAtoms.get2DCenter(), ringCenterVector, bondLength); /* * Mark the ring as placed */ ring.setFlag(CDKConstants.ISPLACED, true); } /* * Place all other rings in this ringsystem. */ thisRing = 0; do { if (ring.getFlag(CDKConstants.ISPLACED)) { ringPlacer.placeConnectedRings(rs, ring, ringPlacer.FUSED, bondLength); ringPlacer.placeConnectedRings(rs, ring, ringPlacer.BRIDGED, bondLength); ringPlacer.placeConnectedRings(rs, ring, ringPlacer.SPIRO, bondLength); } thisRing ++; if (thisRing == rs.size()) thisRing = 0; ring = (Ring)rs.elementAt(thisRing); } while(!allPlaced(rs)); logger.debug("End of layoutRingSet"); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/47adbfe1b0e320448dd43d5e8fa7731999240e31/StructureDiagramGenerator.java/buggy/src/org/openscience/cdk/layout/StructureDiagramGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3511, 10369, 694, 12, 5018, 22, 72, 1122, 9807, 5018, 16, 25463, 694, 3597, 13, 225, 202, 95, 202, 202, 3641, 2170, 5116, 14280, 31, 202, 202, 9807, 8427, 31, 202, 202, 5018, 22, 72, 9221, 8449, 5018, 31, 202, 202, 2148, 22, 72, 9221, 8449, 31, 202, 202, 474, 333, 10369, 31, 202, 202, 10369, 9221, 273, 3597, 18, 588, 18714, 12795, 10369, 5621, 1748, 968, 326, 4486, 7233, 9221, 316, 333, 25463, 694, 1195, 3639, 368, 4199, 1122, 8427, 316, 25463, 202, 4901, 18, 4148, 2932, 1685, 434, 3511, 10369, 694, 8863, 3639, 509, 277, 273, 374, 31, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 9221, 18, 588, 28621, 2170, 1380, 5621, 277, 27245, 288, 5411, 309, 261, 8022, 18, 588, 28621, 2170, 861, 12, 77, 13, 1276, 605, 1434, 13, 898, 31, 3639, 289, 3639, 1748, 13022, 326, 4486, 7233, 9221, 622, 326, 4026, 434, 326, 7799, 2619, 1195, 202, 202, 430, 16051, 8022, 18, 588, 4678, 12, 39, 3398, 2918, 18, 45, 3118, 2534, 23552, 3719, 202, 202, 95, 1082, 202, 11574, 14280, 273, 3166, 3759, 9807, 12443, 9807, 13, 8022, 18, 588, 28621, 2170, 861, 12, 77, 3631, 3645, 9807, 5018, 1769, 1875, 202, 20308, 4697, 380, 3049, 326, 707, 1492, 328, 8271, 596, 326, 394, 9221, 18, 9506, 1195, 1082, 202, 8022, 8449, 5018, 273, 9221, 1749, 10598, 18, 588, 10369, 8449, 951, 3759, 10369, 12, 8022, 16, 1122, 9807, 5018, 16, 8427, 1782, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3511, 10369, 694, 12, 5018, 22, 72, 1122, 9807, 5018, 16, 25463, 694, 3597, 13, 225, 202, 95, 202, 202, 3641, 2170, 5116, 14280, 31, 202, 202, 9807, 8427, 31, 202, 202, 5018, 22, 72, 9221, 8449, 5018, 31, 202, 202, 2148, 22, 72, 9221, 8449, 31, 202, 202, 474, 333, 10369, 31, 202, 202, 10369, 9221, 273, 3597, 18, 588, 18714, 12795, 10369, 5621, 1748, 968, 326, 4486, 7233, 9221, 316, 333, 25463, 694, 1195, 3639, 368, 4199, 1122, 8427, 316, 25463, 202, 4901, 18, 4148, 2932, 1685, 434, 3511, 10369, 694, 8863, 3639, 509, 277, 273, 374, 31, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 9221, 18, 588, 28621, 2170, 1380, 2 ]
layout.numColumns = 3; layout.makeColumnsEqualWidth = false;
public void createControl(Composite parent) { // top level group Composite outerContainer = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.makeColumnsEqualWidth = false; outerContainer.setLayout(layout); outerContainer.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL)); fFilterCheck = new Button(outerContainer, SWT.CHECK); fFilterCheck.setText(PDEPlugin.getResourceString("NewExtensionWizard.PointSelectionPage.filterCheck")); GridData gd = new GridData(); gd.horizontalSpan = 3; fFilterCheck.setLayoutData(gd); fFilterCheck.setSelection(true); fFilterCheck.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { fPointListViewer.refresh(); } }); fPointListViewer = new TableViewer( outerContainer, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); fPointListViewer.setContentProvider(new PointContentProvider()); fPointListViewer.setLabelProvider(new PointLabelProvider()); fPointListViewer.addSelectionChangedListener(this); fPointListViewer.addDoubleClickListener(new IDoubleClickListener(){ public void doubleClick(DoubleClickEvent event) { if (canFinish()){ finish(); wizard.getShell().close(); wizard.dispose(); wizard.setContainer(null); } } }); fPointListViewer.setSorter(ListUtil.NAME_SORTER); gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 300; gd.horizontalSpan = 3; fPointListViewer.getTable().setLayoutData(gd); Composite templateComposite = new Composite(outerContainer, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.numColumns = 1; templateComposite.setLayout(layout); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan=3; templateComposite.setLayoutData(gd); Label templateLabel = new Label(templateComposite, SWT.NONE); templateLabel.setText(PDEPlugin.getResourceString("NewExtensionWizard.PointSelectionPage.contributedTemplates.title")); gd = new GridData(GridData.FILL_BOTH); templateLabel.setLayoutData(gd); sashForm = new SashForm(templateComposite, SWT.HORIZONTAL); sashForm.setLayout(new GridLayout()); gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 100; sashForm.setLayoutData(gd); Composite wizardComposite = new Composite(sashForm, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; wizardComposite.setLayout(layout); gd = new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); wizardComposite.setLayoutData(gd); fTemplateViewer = new TableViewer(wizardComposite, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); fTemplateViewer.setContentProvider(new TemplateContentProvider()); fTemplateViewer.setLabelProvider(ElementLabelProvider.INSTANCE); fTemplateViewer.setSorter(ListUtil.NAME_SORTER); fTemplateViewer.addSelectionChangedListener(this); gd = new GridData( GridData.FILL_BOTH); fTemplateViewer.getTable().setLayoutData(gd); TableItem[] selection = fPointListViewer.getTable().getSelection(); if (selection != null && selection.length > 0) fTemplateViewer.setInput((IPluginExtensionPoint)selection[0]); fTemplateViewer.addDoubleClickListener(new IDoubleClickListener(){ public void doubleClick(DoubleClickEvent event) { if (canFlipToNextPage()){ advanceToNextPage(); } } }); Composite descriptionComposite = new Composite(sashForm, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; descriptionComposite.setLayout(layout); gd = new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); descriptionComposite.setLayoutData(gd); createDescriptionIn(descriptionComposite); createMenuManager(); initialize(); setControl(outerContainer); Dialog.applyDialogFont(outerContainer); WorkbenchHelp.setHelp( outerContainer, IHelpContextIds.ADD_EXTENSIONS_SCHEMA_BASED); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/fff8f9ac1afd7109554dc585ec89d65be0d98d3c/PointSelectionPage.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/PointSelectionPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 1760, 1801, 1041, 202, 202, 9400, 6390, 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, 6540, 3380, 5812, 2384, 273, 629, 31, 202, 202, 14068, 2170, 18, 542, 3744, 12, 6741, 1769, 202, 202, 14068, 2170, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 571, 7145, 751, 18, 6997, 2090, 67, 44, 20344, 10019, 202, 202, 74, 1586, 1564, 273, 394, 12569, 12, 14068, 2170, 16, 348, 8588, 18, 10687, 1769, 202, 202, 74, 1586, 1564, 18, 542, 1528, 12, 52, 1639, 3773, 18, 588, 1420, 780, 2932, 1908, 3625, 27130, 18, 2148, 6233, 1964, 18, 2188, 1564, 7923, 1769, 202, 202, 6313, 751, 15551, 273, 394, 7145, 751, 5621, 202, 202, 19016, 18, 18396, 6952, 273, 890, 31, 202, 202, 74, 1586, 1564, 18, 542, 3744, 751, 12, 19016, 1769, 202, 202, 74, 1586, 1564, 18, 542, 6233, 12, 3767, 1769, 202, 202, 74, 1586, 1564, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 1082, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 74, 2148, 682, 18415, 18, 9144, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 74, 2148, 682, 18415, 273, 1082, 202, 2704, 3555, 18415, 12, 9506, 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, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 1760, 1801, 1041, 202, 202, 9400, 6390, 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, 6540, 3380, 5812, 2384, 273, 629, 31, 202, 202, 14068, 2170, 18, 542, 3744, 12, 6741, 1769, 202, 202, 14068, 2170, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 571, 7145, 751, 18, 6997, 2090, 67, 44, 20344, 10019, 202, 202, 74, 1586, 1564, 273, 394, 12569, 12, 14068, 2170, 16, 348, 8588, 18, 10687, 2 ]
computeLocalInCatch(ir);
final void perform (OPT_IR ir) { computeLocalInCatch(ir); if (OPT_IR.SANITY_CHECK) { ir.verify("before conversion to LIR", true); } if (ir.options.STATIC_STATS) // Print summary statistics (critpath, etc.) for all basic blocks OPT_DepGraphStats.printBasicBlockStatistics(ir); // Do the conversion from HIR to LIR. OPT_ConvertToLowLevelIR.convert(ir, ir.options); // ir now contains well formed LIR. ir.IRStage = OPT_IR.LIR; ir.LIRInfo = new OPT_LIRInfo(ir); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4f3b8b7fc4dbd38b6f522473dc9700d3e22d4370/OPT_ConvertHIRtoLIR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/hir2lir/OPT_ConvertHIRtoLIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 3073, 261, 15620, 67, 7937, 9482, 13, 288, 4202, 309, 261, 15620, 67, 7937, 18, 22721, 4107, 67, 10687, 13, 288, 1377, 9482, 18, 8705, 2932, 5771, 4105, 358, 511, 7937, 3113, 638, 1769, 565, 289, 565, 309, 261, 481, 18, 2116, 18, 22741, 67, 31983, 13, 1377, 368, 3038, 4916, 7691, 261, 27826, 803, 16, 5527, 12998, 364, 777, 5337, 4398, 1377, 16456, 67, 16316, 4137, 4195, 18, 1188, 8252, 1768, 8569, 12, 481, 1769, 565, 368, 2256, 326, 4105, 628, 670, 7937, 358, 511, 7937, 18, 565, 16456, 67, 2723, 774, 10520, 2355, 7937, 18, 6283, 12, 481, 16, 9482, 18, 2116, 1769, 565, 368, 9482, 2037, 1914, 5492, 20010, 511, 7937, 18, 565, 9482, 18, 7937, 8755, 273, 16456, 67, 7937, 18, 2053, 54, 31, 565, 9482, 18, 2053, 54, 966, 273, 394, 16456, 67, 2053, 54, 966, 12, 481, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 3073, 261, 15620, 67, 7937, 9482, 13, 288, 4202, 309, 261, 15620, 67, 7937, 18, 22721, 4107, 67, 10687, 13, 288, 1377, 9482, 18, 8705, 2932, 5771, 4105, 358, 511, 7937, 3113, 638, 1769, 565, 289, 565, 309, 261, 481, 18, 2116, 18, 22741, 67, 31983, 13, 1377, 368, 3038, 4916, 7691, 261, 27826, 803, 16, 5527, 12998, 364, 777, 5337, 4398, 1377, 16456, 67, 16316, 4137, 4195, 18, 1188, 8252, 1768, 8569, 12, 481, 1769, 565, 368, 2256, 326, 4105, 628, 670, 7937, 358, 511, 7937, 18, 565, 16456, 67, 2723, 774, 10520, 2355, 7937, 18, 6283, 12, 481, 16, 9482, 18, 2116, 1769, 565, 368, 9482, 2037, 1914, 5492, 20010, 511, 7937, 18, 565, 2 ]
public byte[] getClassDataFromThisRuntime(String className) throws RemoteException {
public byte[] getClassDataFromThisRuntime(String className) throws RemoteException {
public byte[] getClassDataFromThisRuntime(String className) throws RemoteException { try { return proActiveRuntime.getClassDataFromThisRuntime(className); } catch (ProActiveException e) { throw new RemoteException("class not found : " + className, e); } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/1279458d52679339839158611daec34b4baf800a/RemoteProActiveRuntimeImpl.java/clean/src/org/objectweb/proactive/core/runtime/ibis/RemoteProActiveRuntimeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 2900, 751, 1265, 2503, 5576, 12, 780, 2658, 13, 1216, 18361, 288, 3639, 775, 288, 5411, 327, 450, 3896, 5576, 18, 588, 797, 751, 1265, 2503, 5576, 12, 12434, 1769, 3639, 289, 1044, 261, 626, 3896, 503, 425, 13, 288, 5411, 604, 394, 18361, 2932, 1106, 486, 1392, 294, 315, 397, 2658, 16, 425, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1160, 8526, 2900, 751, 1265, 2503, 5576, 12, 780, 2658, 13, 1216, 18361, 288, 3639, 775, 288, 5411, 327, 450, 3896, 5576, 18, 588, 797, 751, 1265, 2503, 5576, 12, 12434, 1769, 3639, 289, 1044, 261, 626, 3896, 503, 425, 13, 288, 5411, 604, 394, 18361, 2932, 1106, 486, 1392, 294, 315, 397, 2658, 16, 425, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Query q1 = new Query("select field from table"); Query q2 = new Query();
q1 = new Query("select field from table"); q2 = new Query();
public void testAnonymousTableFields() throws Exception { Query q1 = new Query("select field from table"); Query q2 = new Query(); Table t1 = new Table("table"); Field f1 = new Field("field", t1); q2.addSelect(new SelectValue(f1, null)); q2.addFrom(t1); assertEquals(q2, q1); assertEquals("SELECT table.field FROM table", q1.getSQLString()); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/a5e9331f55149bdc78aa8770ceaec1bc56d8e9dd/QueryTest.java/buggy/intermine/src/test/org/intermine/sql/query/QueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 18792, 1388, 2314, 1435, 1216, 1185, 288, 3639, 2770, 1043, 21, 273, 394, 2770, 2932, 4025, 652, 628, 1014, 8863, 3639, 2770, 1043, 22, 273, 394, 2770, 5621, 3639, 3555, 268, 21, 273, 394, 3555, 2932, 2121, 8863, 3639, 2286, 284, 21, 273, 394, 2286, 2932, 1518, 3113, 268, 21, 1769, 3639, 1043, 22, 18, 1289, 3391, 12, 2704, 6766, 620, 12, 74, 21, 16, 446, 10019, 3639, 1043, 22, 18, 1289, 1265, 12, 88, 21, 1769, 3639, 1815, 8867, 12, 85, 22, 16, 1043, 21, 1769, 3639, 1815, 8867, 2932, 4803, 1014, 18, 1518, 4571, 1014, 3113, 1043, 21, 18, 588, 3997, 780, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 18792, 1388, 2314, 1435, 1216, 1185, 288, 3639, 2770, 1043, 21, 273, 394, 2770, 2932, 4025, 652, 628, 1014, 8863, 3639, 2770, 1043, 22, 273, 394, 2770, 5621, 3639, 3555, 268, 21, 273, 394, 3555, 2932, 2121, 8863, 3639, 2286, 284, 21, 273, 394, 2286, 2932, 1518, 3113, 268, 21, 1769, 3639, 1043, 22, 18, 1289, 3391, 12, 2704, 6766, 620, 12, 74, 21, 16, 446, 10019, 3639, 1043, 22, 18, 1289, 1265, 12, 88, 21, 1769, 3639, 1815, 8867, 12, 85, 22, 16, 1043, 21, 1769, 3639, 1815, 8867, 2932, 4803, 1014, 18, 1518, 4571, 1014, 3113, 1043, 21, 18, 588, 3997, 780, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.arraycopy(fCMStateStack, 0, newArrayIA, 0, newSize);
System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
void ensureStackCapacity() { if (fElementDepth == fElemDeclStack.length) { int newSize = fElementDepth + INC_STACK_SIZE; int[] newArrayI = new int[newSize]; System.arraycopy(fChildCountStack, 0, newArrayI, 0, newSize); fChildCountStack = newArrayI; XSElementDecl[] newArrayE = new XSElementDecl[newSize]; System.arraycopy(fElemDeclStack, 0, newArrayE, 0, newSize); fElemDeclStack = newArrayE; XSTypeDecl[] newArrayT = new XSTypeDecl[newSize]; System.arraycopy(fTypeStack, 0, newArrayT, 0, newSize); fTypeStack = newArrayT; XSCMValidator[] newArrayC = new XSCMValidator[newSize]; System.arraycopy(fCMStack, 0, newArrayC, 0, newSize); fCMStack = newArrayC; boolean[] newArrayD = new boolean[newSize]; System.arraycopy(fStringContent, 0, newArrayD, 0, newSize); fStringContent = newArrayD; int[][] newArrayIA = new int[newSize][]; System.arraycopy(fCMStateStack, 0, newArrayIA, 0, newSize); fCMStateStack = newArrayIA; } } // ensureStackCapacity
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/cf425d72915eded43b2e5238220801ca6900fe59/SchemaValidator.java/clean/src/org/apache/xerces/impl/v2/SchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3387, 2624, 7437, 1435, 288, 3639, 309, 261, 74, 1046, 6148, 422, 284, 7498, 3456, 2624, 18, 2469, 13, 288, 5411, 509, 21402, 273, 284, 1046, 6148, 397, 2120, 39, 67, 21971, 67, 4574, 31, 5411, 509, 8526, 11653, 45, 273, 394, 509, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 1763, 1380, 2624, 16, 374, 16, 11653, 45, 16, 374, 16, 21402, 1769, 5411, 284, 1763, 1380, 2624, 273, 11653, 45, 31, 5411, 1139, 55, 1046, 3456, 8526, 11653, 41, 273, 394, 1139, 55, 1046, 3456, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 7498, 3456, 2624, 16, 374, 16, 11653, 41, 16, 374, 16, 21402, 1769, 5411, 284, 7498, 3456, 2624, 273, 11653, 41, 31, 5411, 1139, 55, 559, 3456, 8526, 11653, 56, 273, 394, 1139, 55, 559, 3456, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 559, 2624, 16, 374, 16, 11653, 56, 16, 374, 16, 21402, 1769, 5411, 284, 559, 2624, 273, 11653, 56, 31, 5411, 1139, 2312, 49, 5126, 8526, 11653, 39, 273, 394, 1139, 2312, 49, 5126, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 9611, 2624, 16, 374, 16, 11653, 39, 16, 374, 16, 21402, 1769, 5411, 284, 9611, 2624, 273, 11653, 39, 31, 5411, 1250, 8526, 11653, 40, 273, 394, 1250, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 780, 1350, 16, 374, 16, 11653, 40, 16, 374, 16, 21402, 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, 918, 3387, 2624, 7437, 1435, 288, 3639, 309, 261, 74, 1046, 6148, 422, 284, 7498, 3456, 2624, 18, 2469, 13, 288, 5411, 509, 21402, 273, 284, 1046, 6148, 397, 2120, 39, 67, 21971, 67, 4574, 31, 5411, 509, 8526, 11653, 45, 273, 394, 509, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 1763, 1380, 2624, 16, 374, 16, 11653, 45, 16, 374, 16, 21402, 1769, 5411, 284, 1763, 1380, 2624, 273, 11653, 45, 31, 5411, 1139, 55, 1046, 3456, 8526, 11653, 41, 273, 394, 1139, 55, 1046, 3456, 63, 2704, 1225, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 7498, 3456, 2624, 16, 374, 16, 11653, 41, 16, 374, 16, 21402, 1769, 5411, 284, 7498, 2 ]
assertEquals("/bigWebApp/hello", response.getRedirectedUrl());
assertEquals("https: response.getRedirectedUrl());
public void testHttpsOperationFromOriginalHttpsUrl() throws Exception { MockHttpServletRequest request = new MockHttpServletRequest(); request.setRequestURI("/some_path"); request.setScheme("https"); request.setServerName("www.example.com"); request.setContextPath("/bigWebApp"); request.setServerPort(443); MockHttpServletResponse response = new MockHttpServletResponse(); AuthenticationProcessingFilterEntryPoint ep = new AuthenticationProcessingFilterEntryPoint(); ep.setLoginFormUrl("/hello"); ep.setPortMapper(new PortMapperImpl()); ep.setForceHttps(true); ep.setPortMapper(new PortMapperImpl()); ep.setPortResolver(new MockPortResolver(80, 443)); ep.afterPropertiesSet(); ep.commence(request, response, null); assertEquals("/bigWebApp/hello", response.getRedirectedUrl()); request.setServerPort(8443); response = new MockHttpServletResponse(); ep.setPortResolver(new MockPortResolver(8080, 8443)); ep.commence(request, response, null); assertEquals("/bigWebApp/hello", response.getRedirectedUrl()); }
57740 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57740/3a01e48b171340ed4adaffda56e197430923f266/AuthenticationProcessingFilterEntryPointTests.java/buggy/core/src/test/java/org/acegisecurity/ui/webapp/AuthenticationProcessingFilterEntryPointTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22077, 2988, 1265, 8176, 22077, 1489, 1435, 3639, 1216, 1185, 288, 3639, 7867, 2940, 18572, 590, 273, 394, 7867, 2940, 18572, 5621, 3639, 590, 18, 542, 691, 3098, 2932, 19, 19068, 67, 803, 8863, 3639, 590, 18, 542, 9321, 2932, 4528, 8863, 3639, 590, 18, 542, 28434, 2932, 5591, 18, 8236, 18, 832, 8863, 3639, 590, 18, 542, 1042, 743, 2932, 19, 14002, 4079, 3371, 8863, 3639, 590, 18, 542, 2081, 2617, 12, 6334, 23, 1769, 3639, 7867, 2940, 29910, 766, 273, 394, 7867, 2940, 29910, 5621, 3639, 8665, 7798, 1586, 1622, 2148, 5529, 273, 394, 8665, 7798, 1586, 1622, 2148, 5621, 3639, 5529, 18, 542, 5358, 1204, 1489, 2932, 19, 23711, 8863, 3639, 5529, 18, 542, 2617, 4597, 12, 2704, 6008, 4597, 2828, 10663, 3639, 5529, 18, 542, 10997, 22077, 12, 3767, 1769, 3639, 5529, 18, 542, 2617, 4597, 12, 2704, 6008, 4597, 2828, 10663, 3639, 5529, 18, 542, 2617, 4301, 12, 2704, 7867, 2617, 4301, 12, 3672, 16, 23796, 10019, 3639, 5529, 18, 5205, 2297, 694, 5621, 3639, 5529, 18, 5702, 802, 12, 2293, 16, 766, 16, 446, 1769, 3639, 1815, 8867, 2932, 4528, 30, 766, 18, 588, 5961, 329, 1489, 10663, 3639, 590, 18, 542, 2081, 2617, 12, 5193, 8942, 1769, 3639, 766, 273, 394, 7867, 2940, 29910, 5621, 3639, 5529, 18, 542, 2617, 4301, 12, 2704, 7867, 2617, 4301, 12, 3672, 3672, 16, 1725, 6334, 23, 10019, 3639, 5529, 18, 5702, 802, 12, 2293, 16, 766, 16, 446, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 22077, 2988, 1265, 8176, 22077, 1489, 1435, 3639, 1216, 1185, 288, 3639, 7867, 2940, 18572, 590, 273, 394, 7867, 2940, 18572, 5621, 3639, 590, 18, 542, 691, 3098, 2932, 19, 19068, 67, 803, 8863, 3639, 590, 18, 542, 9321, 2932, 4528, 8863, 3639, 590, 18, 542, 28434, 2932, 5591, 18, 8236, 18, 832, 8863, 3639, 590, 18, 542, 1042, 743, 2932, 19, 14002, 4079, 3371, 8863, 3639, 590, 18, 542, 2081, 2617, 12, 6334, 23, 1769, 3639, 7867, 2940, 29910, 766, 273, 394, 7867, 2940, 29910, 5621, 3639, 8665, 7798, 1586, 1622, 2148, 5529, 273, 394, 8665, 7798, 1586, 1622, 2148, 5621, 3639, 5529, 18, 542, 5358, 1204, 1489, 2932, 19, 23711, 8863, 3639, 5529, 2 ]
IBuildEntry excludes = build.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES);
IBuildEntry excludes = build.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_EXCLUDES);
protected void handleBuildCheckStateChange( IResource resource, boolean checked, boolean wasTopParentChecked) { String resourceName = resource.getFullPath().removeFirstSegments(1).toString(); IBuild build = buildModel.getBuild(); IBuildEntry includes = build.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES); IBuildEntry excludes = build.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES); resourceName = handleResourceFolder(resource, resourceName); if (checked) handleCheck(includes, excludes, resourceName, resource, wasTopParentChecked, IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES); else handleUncheck(includes, excludes, resourceName, resource, IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES); deleteEmptyEntries(); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/e029e128276fe091f1d9d3db474e2ac701e3c120/BinSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BinSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 3116, 1564, 22505, 12, 202, 202, 45, 1420, 1058, 16, 202, 202, 6494, 5950, 16, 202, 202, 6494, 1703, 3401, 3054, 11454, 13, 288, 202, 202, 780, 9546, 273, 1058, 18, 588, 24173, 7675, 4479, 3759, 7946, 12, 21, 2934, 10492, 5621, 202, 202, 45, 3116, 1361, 273, 1361, 1488, 18, 588, 3116, 5621, 202, 202, 45, 3116, 1622, 6104, 273, 1361, 18, 588, 1622, 12, 45, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 45, 3116, 1622, 13644, 273, 1361, 18, 588, 1622, 12, 45, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 3146, 461, 273, 1640, 1420, 3899, 12, 3146, 16, 9546, 1769, 202, 202, 430, 261, 4532, 13, 1082, 202, 4110, 1564, 12, 18499, 16, 13644, 16, 9546, 16, 1058, 16, 1703, 3401, 3054, 11454, 16, 467, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 12107, 1082, 202, 4110, 984, 1893, 12, 18499, 16, 13644, 16, 9546, 16, 1058, 16, 467, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 3733, 1921, 5400, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 3116, 1564, 22505, 12, 202, 202, 45, 1420, 1058, 16, 202, 202, 6494, 5950, 16, 202, 202, 6494, 1703, 3401, 3054, 11454, 13, 288, 202, 202, 780, 9546, 273, 1058, 18, 588, 24173, 7675, 4479, 3759, 7946, 12, 21, 2934, 10492, 5621, 202, 202, 45, 3116, 1361, 273, 1361, 1488, 18, 588, 3116, 5621, 202, 202, 45, 3116, 1622, 6104, 273, 1361, 18, 588, 1622, 12, 45, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 45, 3116, 1622, 13644, 273, 1361, 18, 588, 1622, 12, 45, 3116, 2297, 2918, 18, 9900, 67, 12615, 67, 26003, 55, 1769, 202, 202, 3146, 461, 273, 1640, 1420, 3899, 12, 3146, 16, 9546, 2 ]
AST tmp831_AST_in = (AST)_t;
AST tmp835_AST_in = (AST)_t;
public final void formatphrase(AST _t) throws RecognitionException { AST formatphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t814 = _t; AST tmp814_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt828=0; _loop828: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST __t816 = _t; AST tmp815_AST_in = (AST)_t; match(_t,AS); _t = _t.getFirstChild(); datatype_var(_t); _t = _retTree; _t = __t816; _t = _t.getNextSibling(); break; } case AT: { atphrase(_t); _t = _retTree; break; } case ATTRSPACE: { AST tmp816_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp817_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp818_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONTEXTHELPID: { AST __t817 = _t; AST tmp819_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t817; _t = _t.getNextSibling(); break; } case BLANK: { AST tmp820_AST_in = (AST)_t; match(_t,BLANK); _t = _t.getNextSibling(); break; } case COLON: { AST __t818 = _t; AST tmp821_AST_in = (AST)_t; match(_t,COLON); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t818; _t = _t.getNextSibling(); break; } case TO: { AST __t819 = _t; AST tmp822_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t819; _t = _t.getNextSibling(); break; } case DEBLANK: { AST tmp823_AST_in = (AST)_t; match(_t,DEBLANK); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp824_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } case FONT: { AST __t820 = _t; AST tmp825_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t820; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t821 = _t; AST tmp826_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t821; _t = _t.getNextSibling(); break; } case HELP: { AST __t822 = _t; AST tmp827_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t822; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LEXAT: { AST __t823 = _t; AST tmp828_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t823; _t = _t.getNextSibling(); break; } case LIKE: { AST __t825 = _t; AST tmp829_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; _t = __t825; _t = _t.getNextSibling(); break; } case NOLABELS: { AST tmp830_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case NOTABSTOP: { AST tmp831_AST_in = (AST)_t; match(_t,NOTABSTOP); _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t826 = _t; AST tmp832_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t826; _t = _t.getNextSibling(); break; } case WHEN: { AST __t827 = _t; AST tmp833_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t827; _t = _t.getNextSibling(); break; } case VIEWAS: { viewasphrase(_t); _t = _retTree; break; } default: { if ( _cnt828>=1 ) { break _loop828; } else {throw new NoViableAltException(_t);} } } _cnt828++; } while (true); } _t = __t814; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 740, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 740, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 28, 3461, 273, 389, 88, 31, 202, 202, 9053, 1853, 28, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1630, 67, 9429, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 474, 389, 13085, 28, 6030, 33, 20, 31, 202, 202, 67, 6498, 28, 6030, 30, 202, 202, 2896, 288, 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, 5355, 30, 1082, 202, 95, 9506, 202, 9053, 1001, 88, 28, 2313, 273, 389, 88, 31, 9506, 202, 9053, 1853, 28, 3600, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 3033, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 21540, 67, 1401, 24899, 88, 1769, 9506, 202, 67, 88, 273, 389, 1349, 2471, 31, 9506, 202, 67, 88, 273, 1001, 88, 28, 2313, 31, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 14464, 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, 740, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 740, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 28, 3461, 273, 389, 88, 31, 202, 202, 9053, 1853, 28, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1630, 67, 9429, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 474, 389, 13085, 28, 6030, 33, 20, 31, 202, 202, 67, 6498, 28, 6030, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 2 ]
if(!"java.lang.String".equals(typeName)){ return false; } return true;
return "java.lang.String".equals(typeName);
public static boolean isConcatenation(PsiElement element){ if(!(element instanceof PsiBinaryExpression)){ return false; } final PsiBinaryExpression expression = (PsiBinaryExpression) element; final PsiJavaToken sign = expression.getOperationSign(); if(sign == null){ return false; } final IElementType tokenType = sign.getTokenType(); if(!tokenType.equals(JavaTokenType.PLUS)){ return false; } final PsiExpression lhs = expression.getLOperand(); if(lhs == null){ return false; } final PsiType lhsType = lhs.getType(); if(lhsType == null){ return false; } final PsiExpression rhs = expression.getROperand(); if(rhs == null){ return false; } final String typeName = lhsType.getCanonicalText(); if(!"java.lang.String".equals(typeName)){ return false; } return true; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3837c95856454e21e9059f3aa91174a1e2c65526/ConcatenationUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/concatenation/ConcatenationUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 21432, 367, 12, 52, 7722, 1046, 930, 15329, 3639, 309, 12, 5, 12, 2956, 1276, 453, 7722, 5905, 2300, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 5905, 2300, 2652, 273, 261, 52, 7722, 5905, 2300, 13, 930, 31, 3639, 727, 453, 7722, 5852, 1345, 1573, 273, 2652, 18, 588, 2988, 2766, 5621, 3639, 309, 12, 2977, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 467, 17481, 22302, 273, 1573, 18, 588, 28675, 5621, 3639, 309, 12, 5, 2316, 559, 18, 14963, 12, 5852, 28675, 18, 6253, 3378, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 8499, 273, 2652, 18, 588, 1502, 457, 464, 5621, 3639, 309, 12, 80, 4487, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 559, 8499, 559, 273, 8499, 18, 588, 559, 5621, 3639, 309, 12, 80, 4487, 559, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 7711, 273, 2652, 18, 588, 1457, 457, 464, 5621, 3639, 309, 12, 86, 4487, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 514, 8173, 273, 8499, 559, 18, 588, 15512, 1528, 5621, 3639, 309, 12, 4442, 6290, 18, 4936, 18, 780, 9654, 14963, 12, 723, 461, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 21432, 367, 12, 52, 7722, 1046, 930, 15329, 3639, 309, 12, 5, 12, 2956, 1276, 453, 7722, 5905, 2300, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 5905, 2300, 2652, 273, 261, 52, 7722, 5905, 2300, 13, 930, 31, 3639, 727, 453, 7722, 5852, 1345, 1573, 273, 2652, 18, 588, 2988, 2766, 5621, 3639, 309, 12, 2977, 422, 446, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 727, 467, 17481, 22302, 273, 1573, 18, 588, 28675, 5621, 3639, 309, 12, 5, 2316, 559, 18, 14963, 12, 5852, 28675, 18, 6253, 3378, 3719, 95, 5411, 327, 629, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 8499, 273, 2652, 18, 588, 1502, 2 ]
if(!connect(host, port)) { String error = "Error: could not connect to server at " + host + ":" + port + "."; new AlertDialog(frame, "Host a Game", error).show(); frame.setVisible(false); die(); }
if(!connect(host, port)) { StringBuffer error = new StringBuffer(); error.append( "Error: could not connect to server at " ) .append( host ) .append( ":" ) .append( port ) .append( "." ); new AlertDialog(frame, "Host a Game", error.toString()).show(); frame.setVisible(false); die(); }
public Client(String name, String host, int port) { // construct new client this(name); // try to connect if(!connect(host, port)) { String error = "Error: could not connect to server at " + host + ":" + port + "."; new AlertDialog(frame, "Host a Game", error).show(); frame.setVisible(false); die(); } // wait for full connection retrieveServerInfo(); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/e1f784a6b34f7ba019bf74d71d18fab9a2bf2b71/Client.java/clean/megamek/src/megamek/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 12, 780, 508, 16, 514, 1479, 16, 509, 1756, 13, 288, 377, 202, 759, 4872, 394, 1004, 377, 202, 2211, 12, 529, 1769, 377, 202, 377, 202, 759, 775, 358, 3077, 202, 202, 430, 12, 5, 3612, 12, 2564, 16, 1756, 3719, 288, 1082, 202, 780, 555, 273, 315, 668, 30, 3377, 486, 3077, 358, 1438, 622, 315, 397, 9506, 202, 2564, 397, 6153, 397, 1756, 397, 4585, 31, 1082, 202, 2704, 17913, 6353, 12, 3789, 16, 315, 2594, 279, 14121, 3113, 555, 2934, 4500, 5621, 1082, 202, 3789, 18, 542, 6207, 12, 5743, 1769, 1082, 202, 72, 1385, 5621, 202, 202, 97, 9506, 202, 759, 2529, 364, 1983, 1459, 202, 202, 17466, 2081, 966, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 12, 780, 508, 16, 514, 1479, 16, 509, 1756, 13, 288, 377, 202, 759, 4872, 394, 1004, 377, 202, 2211, 12, 529, 1769, 377, 202, 377, 202, 759, 775, 358, 3077, 202, 202, 430, 12, 5, 3612, 12, 2564, 16, 1756, 3719, 288, 1082, 202, 780, 555, 273, 315, 668, 30, 3377, 486, 3077, 358, 1438, 622, 315, 397, 9506, 202, 2564, 397, 6153, 397, 1756, 397, 4585, 31, 1082, 202, 2704, 17913, 6353, 12, 3789, 16, 315, 2594, 279, 14121, 3113, 555, 2934, 4500, 5621, 1082, 202, 3789, 18, 542, 6207, 12, 5743, 1769, 1082, 202, 72, 1385, 5621, 202, 202, 97, 9506, 202, 759, 2529, 364, 1983, 1459, 202, 202, 17466, 2081, 966, 5621, 2 ]
clearSelection();
public void clearAccessibleSelection() { // TODO Auto-generated method stub }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2424, 6233, 5621, 2424, 6233, 5621, 1071, 918, 2424, 10451, 6233, 1435, 8507, 6233, 5621, 2424, 6233, 5621, 288, 8507, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 368, 2660, 8064, 17, 11168, 707, 7168, 8507, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 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, 2424, 6233, 5621, 2424, 6233, 5621, 1071, 918, 2424, 10451, 6233, 1435, 8507, 6233, 5621, 2424, 6233, 5621, 288, 8507, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 368, 2660, 8064, 17, 11168, 707, 7168, 8507, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 2424, 6233, 5621, 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 ]
public synchronized DestinationLink selectLink (Iterator links, AttributedMessage msg, AttributedMessage failedMsg, int retryCount, Exception last) { debug = log.isDebugEnabled();/* if (debug) log.debug ("Entered selectLink: msg= " +MessageUtils.toString(msg)+ " failedMsg=" +MessageUtils.toString(failedMsg));*/if (commStartDelaySeconds > 0){ // HACK to attempt to get around nameserver/topology lookup problems if ((startTime + commStartDelaySeconds*1000) > now()) return null;} // Return if things not right if (links == null || msg == null) return null; try { if (getNameSupport() == null) return null; if (getRegistry() == null) return null; } catch (Exception e) { return null; } // One time initial RTT initializations if (useRTTService && firstTime) { // Node time rttService.setInitialNodeTime (initialNodeTime); // Comm RTTs Vector v = new Vector(); while (links.hasNext()) { DestinationLink link = (DestinationLink) links.next(); if (isOutgoingLink(link) && !isLoopbackLink(link)) v.add (link); } DestinationLink l[] = new DestinationLink[v.size()]; l = (DestinationLink[]) v.toArray (l); for (int i=0; i<l.length; i++) { String sendLink = getName (l[i]); int sendTime = getInitialOneWayTripTime (l[i]); for (int j=0; j<l.length; j++) { String recvLink = convertOutgoingToIncomingLink (getName(l[j])); int recvTime = getInitialOneWayTripTime (l[j]); rttService.setInitialCommRTTForLinkPair (sendLink, recvLink, sendTime+recvTime); } } firstTime = false; return null; // used up interator } // Handle message attribute transfers in the case of send retries if (msg != failedMsg && failedMsg != null) { // Transfer known persistent attributes if (MessageUtils.hasMessageNumber (failedMsg)) { // HACK! How am I supposed to know which out of all the attributes // set by aspects and protocol links to transfer over or not??? MessageUtils.setMessageType (msg, MessageUtils.getMessageType (failedMsg)); MessageNumberingAspect.setMessageNumber (msg, MessageUtils.getMessageNumber (failedMsg)); MessageUtils.setFromAgent (msg, MessageUtils.getFromAgent (failedMsg)); MessageUtils.setToAgent (msg, MessageUtils.getToAgent (failedMsg)); MessageUtils.setAck (msg, MessageUtils.getAck (failedMsg)); MessageUtils.setSrcMsgNumber (msg, MessageUtils.getSrcMsgNumber (failedMsg)); MessageUtils.setMessageSize (msg, MessageUtils.getMessageSize (failedMsg)); MessageUtils.setSendTimeout (msg, MessageUtils.getSendTimeout (failedMsg)); MessageUtils.setSendDeadline (msg, MessageUtils.getSendDeadline (failedMsg)); } } // Handle the special case of local messages MessageAddress targetAgent = MessageUtils.getTargetAgent (msg); if (getRegistry().isLocalClient (targetAgent)) { if (loopbackLink == null) { while (links.hasNext()) { DestinationLink link = (DestinationLink) links.next(); if (isLoopbackLink (link)) { loopbackLink = link; break; } } } if (loopbackLink == null) { loggingService.fatal ("Missing needed loopback transport!!"); } return linkChoice (loopbackLink, msg); } // Get started String msgString = MessageUtils.toString (msg); if (debug && !MessageUtils.isNewMessage(msg)) log.debug ("Processing " +msgString); /** ** Special case: Check on a possible message send deadline. If the message has ** passed its send deadline we just drop it. **/ if (MessageUtils.haveSendTimeout(msg) && !MessageUtils.haveSendDeadline(msg)) { // Need to set the deadline int timeout = MessageUtils.getSendTimeout (msg); if (timeout >= 0) MessageUtils.setSendDeadline (msg, now() + timeout); else log.warn ("Msg has bad send timeout (" +timeout+ ") (timeout ignored): " +msgString); } if (MessageUtils.getSendDeadline (msg) < now()) // default deadline is no deadline { // [Semi-HACK] Declare message as successfully sent so that any incoming // acks for it are ignored. Maybe put this in a dropped msg table instead? if (debug) log.debug ("Dropping msg past its send deadline: " +msgString); MessageAckingAspect.addSuccessfulSend (msg); return blackHoleLink; } // Check that the sending agent is a current agent in this node. If not, it has // moved on, and its outstanding (regular) messages with it, so we just drop all // but pure ack messages. As with send deadline above, maybe put this in a dropped // msg table instead of the successful sends table? // TODO Could we get into trouble if the agent returns and still it needs to send this message?// It will be seen as successfully sent here. Need for dropped msg bucket? Seems so. There// is only a small window for this error to take place, so will punt for the moment. if (!getRegistry().isLocalClient(MessageUtils.getOriginatorAgent(msg))) { if (debug) log.debug ("Msg from no-longer-local agent: " +msgString); if (!MessageUtils.isSomePureAckMessage (msg)) { if (debug) log.debug ("Dropping non-ack msg from no-longer-local agent: " +msgString); MessageAckingAspect.addSuccessfulSend (msg); // HACK: needs work - see above return blackHoleLink; } } // Lookup up the sending agent of the message in the nameserver. If it is not registered // we return null and try again later, assuming that it will show up soon. We cannot number // the message until we have the incarnation number for the agent - and message numbering // occurs after link selection - but here we can cause a wait while down there an exception // will need to be thrown. AgentID fromAgent = MessageUtils.getFromAgent (msg); if (fromAgent == null) { MessageAddress origAgent = null; try { origAgent = MessageUtils.getOriginatorAgent (msg); fromAgent = AgentID.getAgentID (this, getServiceBroker(), origAgent); } catch (Exception e) {} if (fromAgent == null) { if (!MessageUtils.isSomePureAckMessage (msg)) // let acks pass, esp. from now moved agents { if (debug) log.debug ("Postponing link selection: null lookup for originator agent: " +origAgent); return linkChoice (null, msg); } } else MessageUtils.setFromAgent (msg, fromAgent); } // Get the target node for the message. If this message is a retry/resend, we try to // get the latest uncached data because the target node may have changed and thus be // the cause of our (real or apparent) send failure. Ack ack = MessageUtils.getAck (msg); String targetNode = null; try { if (ack != null && ack.getSendTry() > 0) { // Retry/resend: bypass topological caching to get latest target agent info AgentID toAgent = AgentID.getAgentID (this, getServiceBroker(), targetAgent, true);log.info ("latest toAgent for " +msgString+ ": " +toAgent); if (log.isInfoEnabled()) { AgentID oldToAgent = MessageUtils.getToAgent (msg); if (oldToAgent != null && (!oldToAgent.equals(toAgent))) { log.info ("Message re-address: " +MessageUtils.toShortString(msg)+ "\n old destination: " +oldToAgent+ "\n new destination: " +toAgent); } } MessageUtils.setToAgent (msg, toAgent); targetNode = toAgent.getNodeName(); } else { // New message: cached info is good enough for now targetNode = MessageUtils.getToAgentNode (msg); if (targetNode == null) { // Get cached target agent info AgentID toAgent = AgentID.getAgentID (this, getServiceBroker(), targetAgent, false); MessageUtils.setToAgent (msg, toAgent); targetNode = toAgent.getNodeName();log.info ("toAgent for new msg " +msgString+ ": " +toAgent); } } } catch (Exception e) {log.info ("exception getting toAgent for " +msgString+ ": " +e); } // Cannot continue without knowing the name of the target node for the message if (targetNode == null) { if (debug) log.debug ("Postponing link selection: unknown node for target agent: " +targetAgent); return linkChoice (null, msg); } // Normal operation. // // First filter the given links into a vector of outgoing links that are able // to send the given message. // // NOTE: Link selection must insure that the link finally returned is a one // of these filtered links, as they are the only valid links for this iteration. Vector v = new Vector(); while (links.hasNext()) { DestinationLink link = null; int cost; try { link = (DestinationLink) links.next(); // Obvious filters if (isLoopbackLink (link)) continue; if (!isOutgoingLink (link)) continue; // Cost related filtering cost = getLinkCost (link, msg); if (cost == Integer.MAX_VALUE) continue; if (cost == 1 && getName(link).equals ("org.cougaar.core.mts.SSLRMILinkProtocol")) { return linkChoice (link, msg); // Temp HACK for UC3 } // Drop links that cannot handle messages beyond a certain size if (getName(link).equals ("org.cougaar.core.mts.udp.OutgoingUDPLinkProtocol")) { int msgSize = MessageUtils.getMessageSize (msg); if (msgSize >= OutgoingUDPLinkProtocol.getMaxMessageSizeInBytes()) continue; } else if (getName(link).equals ("org.cougaar.core.mts.email.OutgoingEmailLinkProtocol")) { int msgSize = MessageUtils.getMessageSize (msg); if (msgSize >= OutgoingEmailLinkProtocol.getMaxMessageSizeInBytes()) continue; } // NOTE: As of 8.6.1 an odd side effect of calling link.cost() above is to do the // equivalent of a call to canSendMessage(), so we comment it out here for now. // if (!canSendMessage (protocolClass, msg)) continue; } catch (Exception e) { e.printStackTrace(); continue; } if (link != null) v.add (link); } if (ack != null) ack.setNumberOfLinkChoices (v.size()); // No able outgoing links if (v.size() == 0) return linkChoice (null, msg); // Rank the links based on the chosen (via property) metric DestinationLink destLinks[] = (DestinationLink[]) v.toArray (new DestinationLink[v.size()]); linkRanker.setMessage (msg); Arrays.sort (destLinks, linkRanker); DestinationLink topLink = destLinks[0]; // Special Case: Sending pure ack messages. For pure ack messages we try all possible // links until we run out or we determine we no longer need to send the pure ack. if (MessageUtils.isPureAckMessage (msg)) { PureAck pureAck = (PureAck) ack; if (debug) log.debug ("Chosing link for pure ack msg: " +msgString); // First, add all the links that have now piggybacked the ack to our used list. // If there are any, then we may not be needing to send a pure ack this time - we may // wait till sometime after the farthest out response to these sends is expected. DestinationLink link; long latestDeadline = 0; for (int i=0; i<destLinks.length; i++) { link = destLinks[i]; if (pureAck.haveLinkSelection (link)) continue; long lastSendTime = MessageAckingAspect.getLastSendTime (link, targetNode); if (lastSendTime > pureAck.getAckSendableTime()) { boolean newLink = pureAck.addLinkSelection (link); if (newLink) { // Ok, here's a link that we'll not be needing to send an ack over because // its already been done for us. Update the latestDeadline for when we // need to attempt to send this ack over another link. if (debug) log.debug ("Dropping used " +getName(link)+ " for " +msgString); int rtt = rttService.getBestFullRTTForLink (link, targetNode); if (rtt <= 0) rtt = getLinkCost (link, msg); float spacingFactor = MessageAckingAspect.getInterAckSpacingFactor(); long deadline = lastSendTime + (long)((float)rtt * spacingFactor); if (deadline > latestDeadline) latestDeadline = deadline; } } } // Check if we have exhusted all the links for sending the ack if (pureAck.getNumberOfLinkSelections() == destLinks.length) { if (debug) log.debug ("No untried links left to send pure ack, dropping it: " +msgString); return blackHoleLink; } // Possibly reschedule the pure ack msg for sending later if (latestDeadline > now()) { if (debug) { long t = latestDeadline - now(); log.debug ("Rescheduling pure ack msg with timeout of " +t+ ": " +msgString); } pureAck.setSendDeadline (latestDeadline); MessageAckingAspect.addToPureAckSender ((PureAckMessage)msg); return blackHoleLink; } // If we get here, it is time to try to send the ack over the highest ranking // link left that has not had the ack already go over it. for (int i=0; i<destLinks.length; i++) { link = destLinks[i]; if (!pureAck.haveLinkSelection (link)) { pureAck.addLinkSelection (link); return linkChoice (link, msg); } } // We shouldn't get here log.error ("Error selecting link for pure ack (dropping ack): " +msgString); return blackHoleLink; } // Special Case: Sending pure ack-acks. if (MessageUtils.isPureAckAckMessage (msg)) { // Link selection for these messages is limited to whatever link was last used // successfully to its target node (if that link is currently available). // NOTE: Needs work. Class linkClass = MessageAckingAspect.getLastSuccessfulLinkUsed (targetNode); DestinationLink link = pickLinkByClass (destLinks, linkClass); if (link == null) link = topLink; // linkClass may not be currently available return linkChoice (link, msg); } // Special Case: Sending traffic masking messages. if (MessageUtils.isTrafficMaskingMessage (msg)) { // Link selection for these messages is limited to whatever link was last used // successfully to its target node (if that link is currently available). // This is just preliminary support for traffic masking messages. if (ack == null || (ack.getSendTry() == 0 && ack.getSendCount() == 0)) { Class linkClass = MessageAckingAspect.getLastSuccessfulLinkUsed (targetNode); DestinationLink link = pickLinkByClass (destLinks, linkClass); if (link == null) link = topLink; // linkClass may not be currently available return linkChoice (link, msg); } else { // For now, if there are send failures, just drop masking messages, as // we don't need to be clogging up the pipes with chafe at this time. if (debug) log.debug ("Send failure with masking msg, dropping it: " +msgString); return blackHoleLink; } }/*was new, now old; should be deleted soon // Special Case: Message retrying (first send attempt generated an exception) // or resending (message did not get an ack). What's special here is that we avoid // (if possible) choosing any link that the message has already tried and actually // or apparently failed with. HACK! if (ack != null && (ack.getSendTry() > 0 || ack.getSendCount() > 0)) { // First try the last link successfully used to send a message to this destination Class linkClass = MessageAckingAspect.getLastSuccessfulLinkUsed (targetNode); DestinationLink link = pickLinkByClass (destLinks, linkClass); boolean newLink = (link != null ? ack.addLinkSelection (link) : false); if (newLink) { if (debug) log.debug ("Chose last successful link for retry/resend of " +msgString); return linkChoice (link, msg); } // Otherwise choose the highest ranking transport link not yet chosen (if any) link = null; for (int i=0; i<destLinks.length; i++) { if (!ack.haveLinkSelection (destLinks[i])) { link = destLinks[i]; break; } } // Tried them all if (link == null) { if (ack.getSendCount() == 0) // Retry { // If we still don't have a choice at this point, we clear all our previous // selections and return null. This allows the retry to slow down (there // will be an increasing delay with each null), and start the link selection // cycle anew when the message comes back thru again. if (debug) log.debug ("Exhausted retry link choices; will cycle thru again after delay"); ack.clearLinkSelections(); link = null; } else // Resend { // Since resends are managed by the acking message resender, including their // timing with any delays, we start the link recycling now and don't induce // any extra delay here like with retries. if (debug) log.debug ("Exhausted resend link choices; starting recycle now"); link = pickLinkByClass (destLinks, ack.getFirstLinkSelection()); if (link == null) link = topLink; ack.clearLinkSelections(); } } if (link != null) ack.addLinkSelection (link); return linkChoice (link, msg); }*/ /** * Main Selection Algorithm * * Choose a link based on its metric, history of sending messages, and policy (tbd). The * algorithm here now could be extended with more message send & receive history, link * metric data, and Cougaar Policy. **/ // Get the last link choice made for the destination node for this message SelectionChoice lastChoice = (SelectionChoice) selectionHistory.get (targetNode);//log.debug ("last choice = " + lastChoice);//if (lastChoice != null) log.debug ("last choice was successful = " + lastChoice.wasSuccessful()); // Special Case: First time a message is sent to this destination // or there is only one link to choose from. In these cases we always // choose the top/only link. if (lastChoice == null || destLinks.length == 1) { return linkChoice (setSteadyStateChoice (lastChoice, topLink, msg), msg); } // If the last choice was successful, we need to choose between keeping the // same choice, or trying to upgrade (i.e. get a higher ranking transport). if (lastChoice.wasSuccessful()) { // Preliminary work: If the last choice was an upgrade or a replacement choice, // then good news! It worked! We then transform that choice into our // new steady state case, and go on from there. if (lastChoice.wasUpgradeChoice() || lastChoice.wasReplacementChoice()) { lastChoice.transformChoiceToSteadyStateChoice(); } // Update steady choice link selection count for target node int count = getTopLinkSteadyStateCountForNode (targetNode); if (++count >= tryOtherLinksInterval) count = 0; setTopLinkSteadyStateCountForNode (targetNode, count); // We've used this link so many times in a row now, it may be time // to consider other links that may have improved, or never been tried. if (count == 0) {//log.debug ("\n** trying OTHER LINKS"); // Look for the highest ranking link left that still is lacking a minimum number of // data points in its average commRTT measurement. float MIN_FILL = 0.5f; // HACK: arbitrary for now for (int i=0; i<destLinks.length; i++) { if (rttService.getHighestCommRTTPercentFilled (destLinks[i], targetNode) < MIN_FILL) {//log.debug ("\n** chose link still lacking a minimum number of data points in commRTT average"); return linkChoice (setReplacementChoice (lastChoice, destLinks[i], msg), msg); } }//log.debug ("\n** !!all links above the minimum number of data points in commRTT average"); // Otherwise, choose the link that was last chosen the longest ago that // is currently available/valid. DestinationLink oldestLink = topLink; long oldestTime = Long.MAX_VALUE; Hashtable linkSelections = getLinkSelections (targetNode); for (Enumeration e=linkSelections.elements(); e.hasMoreElements(); ) { LinkSelectionRecord rec = (LinkSelectionRecord) e.nextElement(); if (!isMemberOf (destLinks, rec.link)) continue; // link not currently available if (rec.selectionTime < oldestTime) { oldestLink = rec.link; oldestTime = rec.selectionTime; } }//log.debug ("\n** chose (currenly valid) link last chosen longest ago"); return linkChoice (setReplacementChoice (lastChoice, oldestLink, msg), msg); } // Special Case: At this point, if last choice is the top link, keep using it if (lastChoice.getLink() == topLink) { return linkChoice (setSteadyStateChoice (lastChoice, topLink, msg), msg); } // Decide whether or not to try to upgrade. An upgrade is by definition // a higher ranking transport than we are currently using. DestinationLink upgrade = null; int numSends = lastChoice.getNumSteadyStateSends(); if (numSends >= minSteadyState) { int sendMetric = getMetric (lastChoice.getSteadyStateLink(), msg); int topMetric = getMetric (topLink, msg); if (numSends*sendMetric > upgradeMetricMultiplier*topMetric) { // We've exceeded the metric of N (default 10) sends by the top link. // Time to think about a better route man. upgrade = pickUpgradeChoice (lastChoice, destLinks, msg); } } if (upgrade != null) { return linkChoice (setUpgradeChoice (lastChoice, upgrade, msg), msg); } else // not yet time to upgrade or no upgrade available { // Keep on keeping on with what we got for now, if it is still valid if (isMemberOf (destLinks, lastChoice.getLink())) { return linkChoice (setSteadyStateChoice (lastChoice, lastChoice.getLink(), msg), msg); } else // go ahead and jump to the top link { return linkChoice (setUpgradeChoice (lastChoice, topLink, msg), msg); } } } // The last choice was not successful // We are still in the game. We respond based on the category the last // choice falls into (upgrade, steady state, or replacement choice). if (lastChoice.wasUpgradeChoice()) { // Ok, so our upgrade failed. It was worth a shot! Our 2 choices at this point // are to try another upgrade, or to go back to the tried and true steady state. // For now we will try some number of upgrades before we go back to steady state DestinationLink upgrade = null; if (lastChoice.getNumUpgradeTries() < maxUpgradeTries) { upgrade = pickUpgradeChoice (lastChoice, destLinks, msg); } if (debug) log.debug ("Upgrade choice failed: new upgrade= " +upgrade); if (upgrade != null) { return linkChoice (setUpgradeChoice (lastChoice, upgrade, msg), msg); } else // exceeded # of tries, or no upgrade available { // Go back to steady state, if we can if (isMemberOf (destLinks, lastChoice.getSteadyStateLink())) { return linkChoice (setSteadyStateChoice (lastChoice, lastChoice.getSteadyStateLink(), msg), msg); } else // surest bet is to get a replacement (an upgrade may not be available) { DestinationLink replacement = pickReplacementChoice (lastChoice, destLinks, msg); return linkChoice (setReplacementChoice (lastChoice, replacement, msg), msg); } } } else if (lastChoice.wasSteadyStateChoice()) { // Uh-oh, our old reliable (at least one message successfully sent!) steady // state has had anything from a hickup to a coronary. We basically have 2 choices // here - retry the steady state, or choose a replacement link (that may be higher // or lower ranked, but will be different than the steady state, unless the // steady state is the only link left in town to try). // For now we will always try a replacement choice DestinationLink replacement = pickReplacementChoice (lastChoice, destLinks, msg); return linkChoice (setReplacementChoice (lastChoice, replacement, msg), msg); } else if (lastChoice.wasReplacementChoice()) { // Hmmmm, our replacement choice did not work out. So we continue to try another // link that we haven't tried lately. In the case of repeated failures // here, we end up continually cycling through all of the available links. DestinationLink replacement = pickReplacementChoice (lastChoice, destLinks, msg); return linkChoice (setReplacementChoice (lastChoice, replacement, msg), msg); } else { // What? How did we get here? Make a note of it and move on... loggingService.error ("Invalid state reached! (but we can deal with it)"); DestinationLink replacement = pickReplacementChoice (lastChoice, destLinks, msg); return linkChoice (setReplacementChoice (lastChoice, replacement, msg), msg); } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/223d639a9f03d24ef209a7797034e2b76b2e6f06/AdaptiveLinkSelectionPolicy.java/buggy/msglog/src/org/cougaar/core/mts/AdaptiveLinkSelectionPolicy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22043, 5683, 2098, 4025, 2098, 12, 3198, 7135, 16, 861, 11050, 49, 403, 346, 351, 1055, 16, 861, 11050, 1079, 7307, 3332, 16, 474, 9620, 1380, 16, 503, 2722, 15329, 4148, 33, 1330, 18, 291, 2829, 1526, 5621, 20308, 430, 12, 4148, 13, 1330, 18, 4148, 2932, 10237, 329, 4025, 2098, 30, 3576, 1546, 15, 1079, 1989, 18, 10492, 12, 3576, 13, 9078, 7307, 3332, 1546, 15, 1079, 1989, 18, 10492, 12, 7307, 3332, 10019, 5549, 430, 12, 5702, 1685, 6763, 6762, 34, 20, 15329, 759, 44, 3649, 869, 11764, 869, 588, 12716, 30654, 19, 25572, 8664, 29812, 430, 12443, 1937, 950, 15, 5702, 1685, 6763, 6762, 14, 18088, 13, 34, 3338, 10756, 2463, 2011, 31, 97, 759, 990, 430, 451, 899, 2135, 313, 750, 430, 12, 7135, 631, 2011, 20081, 3576, 631, 2011, 13, 2463, 2011, 31, 698, 95, 430, 12, 17994, 6289, 1435, 631, 2011, 13, 2463, 2011, 31, 430, 12, 588, 4243, 1435, 631, 2011, 13, 2463, 2011, 31, 97, 14683, 12, 503, 73, 15329, 2463, 2011, 31, 97, 759, 1398, 2374, 6769, 54, 1470, 6769, 7089, 430, 12, 1202, 54, 1470, 1179, 10, 10, 3645, 950, 15329, 759, 50, 369, 278, 4417, 748, 1179, 18, 542, 4435, 907, 950, 12, 6769, 907, 950, 1769, 759, 12136, 54, 1470, 87, 5018, 90, 33, 2704, 5018, 5621, 17523, 12, 7135, 18, 5332, 2134, 10756, 95, 5683, 2098, 1232, 28657, 5683, 2098, 13, 7135, 18, 4285, 5621, 430, 12, 291, 24866, 2098, 12, 1232, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22043, 5683, 2098, 4025, 2098, 12, 3198, 7135, 16, 861, 11050, 49, 403, 346, 351, 1055, 16, 861, 11050, 1079, 7307, 3332, 16, 474, 9620, 1380, 16, 503, 2722, 15329, 4148, 33, 1330, 18, 291, 2829, 1526, 5621, 20308, 430, 12, 4148, 13, 1330, 18, 4148, 2932, 10237, 329, 4025, 2098, 30, 3576, 1546, 15, 1079, 1989, 18, 10492, 12, 3576, 13, 9078, 7307, 3332, 1546, 15, 1079, 1989, 18, 10492, 12, 7307, 3332, 10019, 5549, 430, 12, 5702, 1685, 6763, 6762, 34, 20, 15329, 759, 44, 3649, 869, 11764, 869, 588, 12716, 30654, 19, 25572, 8664, 29812, 430, 12443, 1937, 950, 15, 5702, 1685, 6763, 6762, 14, 18088, 13, 34, 3338, 10756, 2463, 2011, 31, 97, 759, 2 ]
int length; for (length = 0; buf[length] != 0; length++); String name_service_ior_ = new String (recv.getData (),0,length); return orb.string_to_object (name_service_ior_);
return orb.string_to_object(new String(reply, 0, length));
public org.omg.CORBA.Object resolve_name_service (org.omg.CORBA.ORB orb) { try { // Create a message with the multicast receive port in it ByteArrayOutputStream byte_stream_ = new ByteArrayOutputStream (); byte_stream_.write ((int)((MULTICAST_RECEIVE_PORT&0xff00)>>>8)); byte_stream_.write ((int)(MULTICAST_RECEIVE_PORT&0x00ff)); byte_stream_.write ((int)((TAO_SERVICEID_NAMESERVICE&0xff00)>>>8)); byte_stream_.write ((int)(TAO_SERVICEID_NAMESERVICE&0x00ff)); byte[] msg = byte_stream_.toByteArray(); // Define the group for the multicast InetAddress group = InetAddress.getByName(ACE_DEFAULT_MULTICAST_ADDR); // Create the multicast socket at any port you want MulticastSocket multicastsocket_ = new MulticastSocket(MULTICAST_SEND_PORT); // Create a socket for the answer of the Naming Service DatagramSocket socket_ = new DatagramSocket (MULTICAST_RECEIVE_PORT); // Give three seconds time for the Naming Service to respond socket_.setSoTimeout (3000); // Build a packet with the port number in it DatagramPacket hello = new DatagramPacket(msg, msg.length, group, nameServicePort_); // Send the packet multicastsocket_.send (hello); // @@ The restriction right now is that the length of the IOR cannot be longer than 4096 byte[] buf = new byte[4096]; // Set up packet which can be received DatagramPacket recv = new DatagramPacket (buf, buf.length); // Receive a packet or time out socket_.receive (recv); // Determine the length of the IOR int length; for (length = 0; buf[length] != 0; length++); // Store the IOR in a String String name_service_ior_ = new String (recv.getData (),0,length); // Convert the String into return orb.string_to_object (name_service_ior_); } catch (SocketException e) { System.err.println (e); } catch (java.io.InterruptedIOException e) { System.err.println ("NS_Resolve: The receive lasted too long"); } catch(org.omg.CORBA.SystemException e) { System.err.println(e); } catch (java.io.IOException e) { System.err.println (e); } return null; }
1867 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1867/b1117ac44eac49efe6c1882f02b8dc41141512d1/NS_Resolve.java/buggy/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 2245, 67, 529, 67, 3278, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 916, 38, 16823, 13, 565, 288, 1377, 775, 202, 95, 202, 225, 368, 1788, 279, 883, 598, 326, 24470, 6798, 1756, 316, 518, 202, 225, 11559, 1160, 67, 3256, 67, 273, 394, 11559, 261, 1769, 4202, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 13, 12443, 12845, 2871, 9053, 67, 27086, 5354, 67, 6354, 10, 20, 5297, 713, 13, 23012, 28, 10019, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 21433, 12845, 2871, 9053, 67, 27086, 5354, 67, 6354, 10, 20, 92, 713, 1403, 10019, 4202, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 13, 12443, 9833, 51, 67, 12426, 734, 67, 1985, 12426, 10, 20, 5297, 713, 13, 23012, 28, 10019, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 21433, 9833, 51, 67, 12426, 734, 67, 1985, 12426, 10, 20, 92, 713, 1403, 10019, 202, 225, 1160, 8526, 1234, 273, 1160, 67, 3256, 27799, 869, 8826, 5621, 202, 225, 368, 13184, 326, 1041, 364, 326, 24470, 202, 225, 14218, 1041, 273, 14218, 18, 588, 5911, 12, 6312, 67, 5280, 67, 12845, 2871, 9053, 67, 14142, 1769, 202, 225, 368, 1788, 326, 24470, 2987, 622, 1281, 1756, 1846, 2545, 202, 225, 7778, 12544, 4534, 24470, 7814, 67, 273, 394, 7778, 12544, 4534, 12, 12845, 2871, 9053, 67, 21675, 67, 6354, 1769, 202, 225, 368, 1788, 279, 2987, 364, 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, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 2245, 67, 529, 67, 3278, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 916, 38, 16823, 13, 565, 288, 1377, 775, 202, 95, 202, 225, 368, 1788, 279, 883, 598, 326, 24470, 6798, 1756, 316, 518, 202, 225, 11559, 1160, 67, 3256, 67, 273, 394, 11559, 261, 1769, 4202, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 13, 12443, 12845, 2871, 9053, 67, 27086, 5354, 67, 6354, 10, 20, 5297, 713, 13, 23012, 28, 10019, 202, 225, 1160, 67, 3256, 27799, 2626, 14015, 474, 21433, 12845, 2871, 9053, 67, 27086, 5354, 67, 6354, 10, 20, 92, 713, 1403, 10019, 4202, 202, 225, 1160, 67, 3256, 27799, 2 ]
protected MessageStoreFactory getMessageStoreFactory() throws ConfigError {
protected MessageStoreFactory getMessageStoreFactory() throws ConfigError, FieldConvertError {
protected MessageStoreFactory getMessageStoreFactory() throws ConfigError { SessionSettings settings = new SessionSettings("tests.cfg"); // Initialize the session settings from the defaults settings.setString(getSessionID(), SessionSettings.FILE_STORE_PATH, settings.getString( SessionSettings.DEFAULT_SESSION_ID, SessionSettings.FILE_STORE_PATH)); return new FileStoreFactory(settings); }
52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/d38731c83efb2e14a94c04073a51c77fd0c70ea2/TestFileStore.java/clean/test/quickfix/TestFileStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2350, 2257, 1733, 2381, 2257, 1733, 1435, 1216, 1903, 668, 16, 2286, 2723, 668, 288, 3639, 3877, 2628, 1947, 273, 394, 3877, 2628, 2932, 16341, 18, 7066, 8863, 3639, 368, 9190, 326, 1339, 1947, 628, 326, 3467, 3639, 1947, 18, 542, 780, 12, 588, 2157, 734, 9334, 3877, 2628, 18, 3776, 67, 13651, 67, 4211, 16, 1947, 18, 588, 780, 12, 7734, 3877, 2628, 18, 5280, 67, 7042, 67, 734, 16, 3877, 2628, 18, 3776, 67, 13651, 67, 4211, 10019, 3639, 327, 394, 1387, 2257, 1733, 12, 4272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2350, 2257, 1733, 2381, 2257, 1733, 1435, 1216, 1903, 668, 16, 2286, 2723, 668, 288, 3639, 3877, 2628, 1947, 273, 394, 3877, 2628, 2932, 16341, 18, 7066, 8863, 3639, 368, 9190, 326, 1339, 1947, 628, 326, 3467, 3639, 1947, 18, 542, 780, 12, 588, 2157, 734, 9334, 3877, 2628, 18, 3776, 67, 13651, 67, 4211, 16, 1947, 18, 588, 780, 12, 7734, 3877, 2628, 18, 5280, 67, 7042, 67, 734, 16, 3877, 2628, 18, 3776, 67, 13651, 67, 4211, 10019, 3639, 327, 394, 1387, 2257, 1733, 12, 4272, 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 ]
String pluginId = plugin.getKey();
if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() );
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( project.hasParent() ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section Map artifactMap = project.getArtifactMap(); List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String conflictId = ArtifactUtils.artifactId( dep.getGroupId(), dep.getArtifactId(), dep.getType(), dep.getClassifier(), dep.getVersion() ); Artifact artifact = (Artifact) artifactMap.get( conflictId ); String version = resolveVersion( artifact, "dependency", project ); dep.setVersion( version ); } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section Map pluginArtifactMap = project.getPluginArtifactMap(); List plugins = build.getPlugins(); for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) pluginArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "plugin", project ); plugin.setVersion( version ); } //Rewrite extensions section Map extensionArtifactMap = project.getExtensionArtifactMap(); List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String pluginId = ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ); Artifact artifact = (Artifact) extensionArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "extension", project ); ext.setVersion( version ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section Map reportArtifactMap = project.getReportArtifactMap(); List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) reportArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "report", project ); plugin.setVersion( version ); } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/e5ed2acbcb8d3135653db6e90a98cf128c7c3dc1/PrepareReleaseMojo.java/buggy/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 1488, 5621, 5411, 368, 19618, 982, 1177, 5411, 309, 261, 1984, 18, 5332, 3054, 1435, 262, 5411, 288, 7734, 14022, 982, 7581, 273, 1984, 18, 588, 3054, 7581, 5621, 7734, 309, 261, 353, 4568, 12, 982, 7581, 18, 588, 2171, 1444, 1435, 262, 262, 7734, 288, 10792, 514, 1177, 273, 2245, 1444, 12, 982, 7581, 16, 315, 2938, 3113, 1984, 11272, 10792, 938, 18, 588, 3054, 7675, 542, 1444, 12, 1177, 11272, 7734, 289, 5411, 289, 5411, 368, 19618, 5030, 2442, 5411, 1635, 6462, 863, 273, 1984, 18, 588, 7581, 863, 5621, 5411, 987, 5030, 273, 938, 18, 588, 8053, 5621, 5411, 309, 261, 5030, 480, 446, 262, 5411, 288, 7734, 364, 261, 4498, 277, 273, 5030, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 7734, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 2 ]
fAttrList.endAttrList(); } if (DEBUG_PRINT_ATTRIBUTES) { String elementStr = fStringPool.toString(element.rawname); System.out.print("startElement: <" + elementStr); if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { System.out.print(" " + fStringPool.toString(attrList.getAttrName(index)) + "=\"" + fStringPool.toString(attrList.getAttValue(index)) + "\""); index = attrList.getNextAttr(index); } } System.out.println(">"); } if (fAttrListHandle != -1 && !fNeedValidationOff ) { int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attrNameIndex = attrList.getAttrName(index); if (fStringPool.equalNames(attrNameIndex, fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); } int _xmlns = fStringPool.addSymbol("xmlns"); if (attrNameIndex != _xmlns && attrList.getAttrPrefix(index) != _xmlns) if (fGrammar != null) { fAttrNameLocator = getLocatorImpl(fAttrNameLocator); fTempQName.setValues(attrList.getAttrPrefix(index), attrList.getAttrLocalpart(index), attrList.getAttrName(index), attrList.getAttrURI(index) ); int attDefIndex = getAttDefByElementIndex(elementIndex, fTempQName); if (fTempQName.uri != fXsiURI) if (attDefIndex == -1 ) { if (fValidating) { Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; /*****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /******/
int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { System.out.print(" " + fStringPool.toString(attrList.getAttrName(index)) + "=\"" + fStringPool.toString(attrList.getAttValue(index)) + "\""); index = attrList.getNextAttr(index); } } System.out.println(">"); } if (fAttrListHandle != -1 && !fNeedValidationOff ) { int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attrNameIndex = attrList.getAttrName(index); if (fStringPool.equalNames(attrNameIndex, fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); } int _xmlns = fStringPool.addSymbol("xmlns"); if (attrNameIndex != _xmlns && attrList.getAttrPrefix(index) != _xmlns) if (fGrammar != null) { fAttrNameLocator = getLocatorImpl(fAttrNameLocator); fTempQName.setValues(attrList.getAttrPrefix(index), attrList.getAttrLocalpart(index), attrList.getAttrName(index), attrList.getAttrURI(index) ); int attDefIndex = getAttDefByElementIndex(elementIndex, fTempQName); if (fTempQName.uri != fXsiURI) if (attDefIndex == -1 ) { if (fValidating) { Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; /*****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /******/ } } else { fGrammar.getAttributeDecl(attDefIndex, fTempAttDecl); int attributeType = attributeTypeName(fTempAttDecl); attrList.setAttType(index, attributeType); if (fValidating) { if (fGrammarIsDTDGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ENTITY || fTempAttDecl.type == XMLAttributeDecl.TYPE_ENUMERATION || fTempAttDecl.type == XMLAttributeDecl.TYPE_ID || fTempAttDecl.type == XMLAttributeDecl.TYPE_IDREF || fTempAttDecl.type == XMLAttributeDecl.TYPE_NMTOKEN || fTempAttDecl.type == XMLAttributeDecl.TYPE_NOTATION) ) { validateDTDattribute(element, attrList.getAttValue(index), fTempAttDecl); } else if ( fGrammarIsSchemaGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_ANY ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LIST ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LOCAL ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_OTHER) ) { if (fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_SKIP) { } else if ( fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT || fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_LAX) { boolean reportError = false; boolean processContentStrict = fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT; if (fTempQName.uri == -1) { if (processContentStrict) { reportError = true; } } else { Grammar aGrammar = fGrammarResolver.getGrammar(fStringPool.toString(fTempQName.uri)); if (aGrammar == null || !(aGrammar instanceof SchemaGrammar) ) { if (processContentStrict) { reportError = true; } } else { SchemaGrammar sGrammar = (SchemaGrammar) aGrammar; Hashtable attRegistry = sGrammar.getAttirubteDeclRegistry(); if (attRegistry == null) { if (processContentStrict) { reportError = true; } } else { XMLAttributeDecl attDecl = (XMLAttributeDecl) attRegistry.get(fStringPool.toString(fTempQName.localpart)); if (attDecl == null) { if (processContentStrict) { reportError = true; } } else { DatatypeValidator attDV = attDecl.datatypeValidator; if (attDV == null) { if (processContentStrict) { reportError = true; } } else { try { String unTrimValue = fStringPool.toString(attrList.getAttValue(index)); String value = unTrimValue.trim(); if (attDecl.type == XMLAttributeDecl.TYPE_ID ) { this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } if (attDecl.type == XMLAttributeDecl.TYPE_IDREF ) { attDV.validate(value, this.fStoreIDRef ); } else attDV.validate(unTrimValue, null ); } catch (InvalidDatatypeValueException idve) { fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.DatatypeError, SchemaMessageProvider.MSG_NONE, new Object [] { idve.getMessage()}, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } } }
private void validateElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { if ((fElementDepth >= 0 && fValidationFlagStack[fElementDepth] != 0 )|| (fGrammar == null && !fValidating && !fNamespacesEnabled) ) { fCurrentElementIndex = -1; fCurrentContentSpecType = -1; fInElementContent = false; if (fAttrListHandle != -1) { fAttrList.endAttrList(); int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { if (fStringPool.equalNames(fAttrList.getAttrName(index), fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(fAttrList.getAttValue(index)); break; } index = fAttrList.getNextAttr(index); } } return; } int elementIndex = -1; int contentSpecType = -1; boolean skipThisOne = false; boolean laxThisOne = false; if ( fGrammarIsSchemaGrammar && fContentLeafStack[fElementDepth] != null ) { ContentLeafNameTypeVector cv = fContentLeafStack[fElementDepth]; QName[] fElemMap = cv.leafNames; for (int i=0; i<cv.leafCount; i++) { int type = cv.leafTypes[i] ; //System.out.println("******* see a ANY_OTHER_SKIP, "+type+","+element+","+fElemMap[i]+"\n*******"); if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (fElemMap[i].uri==element.uri && fElemMap[i].localpart == element.localpart) break; } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (element.uri == -1) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fElemMap[i].uri != element.uri) { break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_SKIP) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL_SKIP) { if (element.uri == -1) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER_SKIP) { if (fElemMap[i].uri != element.uri) { skipThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LAX) { int uri = fElemMap[i].uri; if (uri == -1 || uri == element.uri) { laxThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL_LAX) { if (element.uri == -1) { laxThisOne = true; break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER_LAX) { if (fElemMap[i].uri != element.uri) { laxThisOne = true; break; } } } } if (skipThisOne) { fNeedValidationOff = true; } else { //REVISIT: is this the right place to check on if the Schema has changed? if ( fNamespacesEnabled && fValidating && element.uri != fGrammarNameSpaceIndex && element.uri != -1 ) { fGrammarNameSpaceIndex = element.uri; boolean success = switchGrammar(fGrammarNameSpaceIndex); if (!success && !laxThisOne) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri 2: " + fStringPool.toString(fGrammarNameSpaceIndex) + " , can not found"); } } if ( fGrammar != null ) { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("*******Lookup element: uri: " + fStringPool.toString(element.uri)+ "localpart: '" + fStringPool.toString(element.localpart) +"' and scope : " + fCurrentScope+"\n"); } elementIndex = fGrammar.getElementDeclIndex(element,fCurrentScope); if (elementIndex == -1 ) { elementIndex = fGrammar.getElementDeclIndex(element, TOP_LEVEL_SCOPE); } if (elementIndex == -1) { // if validating based on a Schema, try to resolve the element again by searching in its type's ancestor types if (fGrammarIsSchemaGrammar && fCurrentElementIndex != -1) { TraverseSchema.ComplexTypeInfo baseTypeInfo = null; baseTypeInfo = ((SchemaGrammar)fGrammar).getElementComplexTypeInfo(fCurrentElementIndex); int aGrammarNSIndex = fGrammarNameSpaceIndex; while (baseTypeInfo != null) { elementIndex = fGrammar.getElementDeclIndex(element, baseTypeInfo.scopeDefined); if (elementIndex > -1 ) { // update the current Grammar NS index if resolving element succeed. fGrammarNameSpaceIndex = aGrammarNSIndex; break; } baseTypeInfo = baseTypeInfo.baseComplexTypeInfo; if (baseTypeInfo != null) { String baseTName = baseTypeInfo.typeName; if (!baseTName.startsWith("#")) { int comma = baseTName.indexOf(','); aGrammarNSIndex = fStringPool.addSymbol(baseTName.substring(0,comma).trim()); if (aGrammarNSIndex != fGrammarNameSpaceIndex) { if ( !switchGrammar(aGrammarNSIndex) ) { break; //exit the loop in this case } } } } } if (elementIndex == -1) { switchGrammar(fGrammarNameSpaceIndex); } } //if still can't resolve it, try TOP_LEVEL_SCOPE AGAIN /**** if ( element.uri == -1 && elementIndex == -1 && fNamespacesScope != null && fNamespacesScope.getNamespaceForPrefix(StringPool.EMPTY_STRING) != -1 ) { elementIndex = fGrammar.getElementDeclIndex(element.localpart, TOP_LEVEL_SCOPE); // REVISIT: // this is a hack to handle the situation where namespace prefix "" is bound to nothing, and there // is a "noNamespaceSchemaLocation" specified, and element element.uri = StringPool.EMPTY_STRING; } /****/ /****/ if (elementIndex == -1) { if (laxThisOne) { fNeedValidationOff = true; } else if (DEBUG_SCHEMA_VALIDATION) System.out.println("!!! can not find elementDecl in the grammar, " + " the element localpart: " + element.localpart + "["+fStringPool.toString(element.localpart) +"]" + " the element uri: " + element.uri + "["+fStringPool.toString(element.uri) +"]" + " and the current enclosing scope: " + fCurrentScope ); } /****/ } if (DEBUG_SCHEMA_VALIDATION) { fGrammar.getElementDecl(elementIndex, fTempElementDecl); System.out.println("elementIndex: " + elementIndex+" \n and itsName : '" + fStringPool.toString(fTempElementDecl.name.localpart) +"' \n its ContentType:" + fTempElementDecl.type +"\n its ContentSpecIndex : " + fTempElementDecl.contentSpecIndex +"\n"+ " and the current enclosing scope: " + fCurrentScope); } } contentSpecType = getContentSpecType(elementIndex); if (fGrammarIsSchemaGrammar && elementIndex != -1) { // handle "xsi:type" right here if (fXsiTypeAttValue > -1) { String xsiType = fStringPool.toString(fXsiTypeAttValue); int colonP = xsiType.indexOf(":"); String prefix = ""; String localpart = xsiType; if (colonP > -1) { prefix = xsiType.substring(0,colonP); localpart = xsiType.substring(colonP+1); } String uri = ""; int uriIndex = -1; if (fNamespacesScope != null) { uriIndex = fNamespacesScope.getNamespaceForPrefix(fStringPool.addSymbol(prefix)); if (uriIndex > -1) { uri = fStringPool.toString(uriIndex); if (uriIndex != fGrammarNameSpaceIndex) { fGrammarNameSpaceIndex = fCurrentSchemaURI = uriIndex; boolean success = switchGrammar(fCurrentSchemaURI); if (!success && !fNeedValidationOff) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri 3: " + fStringPool.toString(fCurrentSchemaURI) + " , can not found"); } } } } Hashtable complexRegistry = ((SchemaGrammar)fGrammar).getComplexTypeRegistry(); DatatypeValidatorFactoryImpl dataTypeReg = ((SchemaGrammar)fGrammar).getDatatypeRegistry(); if (complexRegistry==null || dataTypeReg == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, fErrorReporter.getLocator().getSystemId() +" line"+fErrorReporter.getLocator().getLineNumber() +", canot resolve xsi:type = " + xsiType+" ---2"); } else { TraverseSchema.ComplexTypeInfo typeInfo = (TraverseSchema.ComplexTypeInfo) complexRegistry.get(uri+","+localpart); //TO DO: // here need to check if this substitution is legal based on the current active grammar, // this should be easy, cause we already saved final, block and base type information in // the SchemaGrammar. if (typeInfo==null) { if (uri.length() == 0 || uri.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) ) { fXsiTypeValidator = dataTypeReg.getDatatypeValidator(localpart); } else fXsiTypeValidator = dataTypeReg.getDatatypeValidator(uri+","+localpart); if ( fXsiTypeValidator == null ) reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "unresolved type : "+uri+","+localpart +" found in xsi:type handling"); } else elementIndex = typeInfo.templateElementIndex; } fXsiTypeAttValue = -1; } //Change the current scope to be the one defined by this element. fCurrentScope = ((SchemaGrammar) fGrammar).getElementDefinedScope(elementIndex); // here need to check if we need to switch Grammar by asking SchemaGrammar whether // this element actually is of a type in another Schema. String anotherSchemaURI = ((SchemaGrammar)fGrammar).getElementFromAnotherSchemaURI(elementIndex); if (anotherSchemaURI != null) { //before switch Grammar, set the elementIndex to be the template elementIndex of its type if (contentSpecType != -1 && contentSpecType != XMLElementDecl.TYPE_EMPTY ) { TraverseSchema.ComplexTypeInfo typeInfo = ((SchemaGrammar) fGrammar).getElementComplexTypeInfo(elementIndex); if (typeInfo != null) { elementIndex = typeInfo.templateElementIndex; } } // now switch the grammar fGrammarNameSpaceIndex = fCurrentSchemaURI = fStringPool.addSymbol(anotherSchemaURI); boolean success = switchGrammar(fCurrentSchemaURI); if (!success && !fNeedValidationOff) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri 4: " + fStringPool.toString(fCurrentSchemaURI) + " , can not found"); } } } if (contentSpecType == -1 && fValidating && !fNeedValidationOff ) { reportRecoverableXMLError(XMLMessages.MSG_ELEMENT_NOT_DECLARED, XMLMessages.VC_ELEMENT_VALID, element.rawname); } if (fGrammar != null && fGrammarIsSchemaGrammar && elementIndex != -1) { fAttrListHandle = addDefaultAttributes(elementIndex, attrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } if (fAttrListHandle != -1) { fAttrList.endAttrList(); } if (DEBUG_PRINT_ATTRIBUTES) { String elementStr = fStringPool.toString(element.rawname); System.out.print("startElement: <" + elementStr); if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { System.out.print(" " + fStringPool.toString(attrList.getAttrName(index)) + "=\"" + fStringPool.toString(attrList.getAttValue(index)) + "\""); index = attrList.getNextAttr(index); } } System.out.println(">"); } // REVISIT: Validation. Do we need to recheck for the xml:lang // attribute? It was already checked above -- perhaps // this is to check values that are defaulted in? If // so, this check could move to the attribute decl // callback so we can check the default value before // it is used. if (fAttrListHandle != -1 && !fNeedValidationOff ) { int index = fAttrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attrNameIndex = attrList.getAttrName(index); if (fStringPool.equalNames(attrNameIndex, fXMLLang)) { fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); // break; } // here, we validate every "user-defined" attributes int _xmlns = fStringPool.addSymbol("xmlns"); if (attrNameIndex != _xmlns && attrList.getAttrPrefix(index) != _xmlns) if (fGrammar != null) { fAttrNameLocator = getLocatorImpl(fAttrNameLocator); fTempQName.setValues(attrList.getAttrPrefix(index), attrList.getAttrLocalpart(index), attrList.getAttrName(index), attrList.getAttrURI(index) ); int attDefIndex = getAttDefByElementIndex(elementIndex, fTempQName); if (fTempQName.uri != fXsiURI) if (attDefIndex == -1 ) { if (fValidating) { // REVISIT - cache the elem/attr tuple so that we only give // this error once for each unique occurrence Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; /*****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /******/ } } else { fGrammar.getAttributeDecl(attDefIndex, fTempAttDecl); int attributeType = attributeTypeName(fTempAttDecl); attrList.setAttType(index, attributeType); if (fValidating) { if (fGrammarIsDTDGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ENTITY || fTempAttDecl.type == XMLAttributeDecl.TYPE_ENUMERATION || fTempAttDecl.type == XMLAttributeDecl.TYPE_ID || fTempAttDecl.type == XMLAttributeDecl.TYPE_IDREF || fTempAttDecl.type == XMLAttributeDecl.TYPE_NMTOKEN || fTempAttDecl.type == XMLAttributeDecl.TYPE_NOTATION) ) { validateDTDattribute(element, attrList.getAttValue(index), fTempAttDecl); } // check to see if this attribute matched an attribute wildcard else if ( fGrammarIsSchemaGrammar && (fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_ANY ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LIST ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_LOCAL ||fTempAttDecl.type == XMLAttributeDecl.TYPE_ANY_OTHER) ) { if (fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_SKIP) { // attribute should just be bypassed, } else if ( fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT || fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_LAX) { boolean reportError = false; boolean processContentStrict = fTempAttDecl.defaultType == XMLAttributeDecl.PROCESSCONTENTS_STRICT; if (fTempQName.uri == -1) { if (processContentStrict) { reportError = true; } } else { Grammar aGrammar = fGrammarResolver.getGrammar(fStringPool.toString(fTempQName.uri)); if (aGrammar == null || !(aGrammar instanceof SchemaGrammar) ) { if (processContentStrict) { reportError = true; } } else { SchemaGrammar sGrammar = (SchemaGrammar) aGrammar; Hashtable attRegistry = sGrammar.getAttirubteDeclRegistry(); if (attRegistry == null) { if (processContentStrict) { reportError = true; } } else { XMLAttributeDecl attDecl = (XMLAttributeDecl) attRegistry.get(fStringPool.toString(fTempQName.localpart)); if (attDecl == null) { if (processContentStrict) { reportError = true; } } else { DatatypeValidator attDV = attDecl.datatypeValidator; if (attDV == null) { if (processContentStrict) { reportError = true; } } else { try { String unTrimValue = fStringPool.toString(attrList.getAttValue(index)); String value = unTrimValue.trim(); if (attDecl.type == XMLAttributeDecl.TYPE_ID ) { this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } if (attDecl.type == XMLAttributeDecl.TYPE_IDREF ) { attDV.validate(value, this.fStoreIDRef ); } else attDV.validate(unTrimValue, null ); } catch (InvalidDatatypeValueException idve) { fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.DatatypeError, SchemaMessageProvider.MSG_NONE, new Object [] { idve.getMessage()}, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } } } } if (reportError) { Object[] args = { fStringPool.toString(element.rawname), "ANY---"+fStringPool.toString(attrList.getAttrName(index))}; fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } else if (fTempAttDecl.datatypeValidator == null) { Object[] args = { fStringPool.toString(element.rawname), fStringPool.toString(attrList.getAttrName(index))}; System.out.println("[Error] Datatypevalidator for attribute " + fStringPool.toString(attrList.getAttrName(index)) + " not found in element type " + fStringPool.toString(element.rawname)); //REVISIT : is this the right message? /****/ fErrorReporter.reportError(fAttrNameLocator, XMLMessages.XML_DOMAIN, XMLMessages.MSG_ATTRIBUTE_NOT_DECLARED, XMLMessages.VC_ATTRIBUTE_VALUE_TYPE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); /****/ } else { try { String unTrimValue = fStringPool.toString(attrList.getAttValue(index)); String value = unTrimValue.trim(); if (fTempAttDecl.type == XMLAttributeDecl.TYPE_ID ) { this.fStoreIDRef.setDatatypeObject( fValID.validate( value, null ) ); } else if (fTempAttDecl.type == XMLAttributeDecl.TYPE_IDREF ) { fTempAttDecl.datatypeValidator.validate(value, this.fStoreIDRef ); } else { fTempAttDecl.datatypeValidator.validate(unTrimValue, null ); } } catch (InvalidDatatypeValueException idve) { fErrorReporter.reportError(fErrorReporter.getLocator(), SchemaMessageProvider.SCHEMA_DOMAIN, SchemaMessageProvider.DatatypeError, SchemaMessageProvider.MSG_NONE, new Object [] { idve.getMessage()}, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } } // end of if (fValidating) } // end of if (attDefIndex == -1) else }// end of if (fGrammar != null) index = fAttrList.getNextAttr(index); } } } if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); if (!fStringPool.equalNames(attName, fNamespacesPrefix)) { int attPrefix = attrList.getAttrPrefix(index); if (attPrefix != fNamespacesPrefix) { if (attPrefix != -1) { int uri = fNamespacesScope.getNamespaceForPrefix(attPrefix); if (uri == -1) { Object[] args = { fStringPool.toString(attPrefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } attrList.setAttrURI(index, uri); } } } index = attrList.getNextAttr(index); } } fCurrentElementIndex = elementIndex; fCurrentContentSpecType = contentSpecType; if (fValidating && contentSpecType == XMLElementDecl.TYPE_SIMPLE) { fBufferDatatype = true; fDatatypeBuffer.setLength(0); } fInElementContent = (contentSpecType == XMLElementDecl.TYPE_CHILDREN); } // validateElementAndAttributes(QName,XMLAttrList)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 1046, 1876, 2498, 12, 13688, 930, 16, 4766, 9079, 3167, 3843, 682, 1604, 682, 13, 540, 1216, 1185, 288, 3639, 309, 14015, 74, 1046, 6148, 1545, 374, 597, 284, 4354, 4678, 2624, 63, 74, 1046, 6148, 65, 480, 374, 262, 20081, 2398, 261, 74, 18576, 422, 446, 597, 401, 74, 31496, 597, 401, 74, 13180, 1526, 13, 262, 288, 5411, 284, 3935, 1046, 1016, 273, 300, 21, 31, 5411, 284, 3935, 1350, 1990, 559, 273, 300, 21, 31, 5411, 284, 382, 1046, 1350, 273, 629, 31, 5411, 309, 261, 74, 3843, 682, 3259, 480, 300, 21, 13, 288, 7734, 284, 3843, 682, 18, 409, 3843, 682, 5621, 7734, 509, 770, 273, 284, 3843, 682, 18, 588, 3759, 3843, 12, 74, 3843, 682, 3259, 1769, 7734, 1323, 261, 1615, 480, 300, 21, 13, 288, 10792, 309, 261, 74, 780, 2864, 18, 9729, 1557, 12, 74, 3843, 682, 18, 588, 28973, 12, 1615, 3631, 284, 4201, 7275, 3719, 288, 13491, 284, 2519, 11338, 18, 1893, 4201, 7275, 14942, 12, 74, 3843, 682, 18, 588, 3075, 620, 12, 1615, 10019, 13491, 898, 31, 10792, 289, 10792, 770, 273, 284, 3843, 682, 18, 588, 2134, 3843, 12, 1615, 1769, 7734, 289, 5411, 289, 5411, 327, 31, 3639, 289, 3639, 509, 930, 1016, 273, 300, 21, 31, 3639, 509, 29617, 559, 273, 300, 21, 31, 3639, 1250, 2488, 2503, 3335, 273, 629, 31, 3639, 1250, 328, 651, 2503, 3335, 273, 629, 31, 3639, 309, 261, 284, 18576, 2520, 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, 1954, 1046, 1876, 2498, 12, 13688, 930, 16, 4766, 9079, 3167, 3843, 682, 1604, 682, 13, 540, 1216, 1185, 288, 3639, 309, 14015, 74, 1046, 6148, 1545, 374, 597, 284, 4354, 4678, 2624, 63, 74, 1046, 6148, 65, 480, 374, 262, 20081, 2398, 261, 74, 18576, 422, 446, 597, 401, 74, 31496, 597, 401, 74, 13180, 1526, 13, 262, 288, 5411, 284, 3935, 1046, 1016, 273, 300, 21, 31, 5411, 284, 3935, 1350, 1990, 559, 273, 300, 21, 31, 5411, 284, 382, 1046, 1350, 273, 629, 31, 5411, 309, 261, 74, 3843, 682, 3259, 480, 300, 21, 13, 288, 7734, 284, 3843, 682, 18, 409, 3843, 682, 5621, 7734, 509, 770, 273, 284, 3843, 682, 18, 2 ]
String noWordSep = (String)buffer.getProperty("noWordSep");
String noWordSep = buffer.getStringProperty("noWordSep");
public void selectWord() { int line = getCaretLine(); int lineStart = getLineStartOffset(line); int offset = getCaretPosition() - lineStart; if(getLineLength(line) == 0) return; String lineText = getLineText(line); String noWordSep = (String)buffer.getProperty("noWordSep"); if(offset == getLineLength(line)) offset--; int wordStart = TextUtilities.findWordStart(lineText,offset,noWordSep); int wordEnd = TextUtilities.findWordEnd(lineText,offset+1,noWordSep); extendSelection(lineStart + wordStart,lineStart + wordEnd); moveCaretPosition(lineStart + wordEnd); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/bb6a6c3063f797cad2c3637d13fd3dbbbefb80cd/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 3944, 1435, 202, 95, 202, 202, 474, 980, 273, 1927, 20731, 1670, 5621, 202, 202, 474, 29208, 273, 9851, 1685, 2335, 12, 1369, 1769, 202, 202, 474, 1384, 273, 1927, 20731, 2555, 1435, 300, 29208, 31, 202, 202, 430, 12, 588, 1670, 1782, 12, 1369, 13, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 780, 980, 1528, 273, 9851, 1528, 12, 1369, 1769, 202, 202, 780, 1158, 3944, 5097, 273, 261, 780, 13, 4106, 18, 588, 1396, 2932, 2135, 3944, 5097, 8863, 202, 202, 430, 12, 3348, 422, 9851, 1782, 12, 1369, 3719, 1082, 202, 3348, 413, 31, 202, 202, 474, 2076, 1685, 273, 3867, 11864, 18, 4720, 3944, 1685, 12, 1369, 1528, 16, 3348, 16, 2135, 3944, 5097, 1769, 202, 202, 474, 2076, 1638, 273, 3867, 11864, 18, 4720, 3944, 1638, 12, 1369, 1528, 16, 3348, 15, 21, 16, 2135, 3944, 5097, 1769, 202, 202, 14313, 6233, 12, 1369, 1685, 397, 2076, 1685, 16, 1369, 1685, 397, 2076, 1638, 1769, 202, 202, 8501, 39, 20731, 2555, 12, 1369, 1685, 397, 2076, 1638, 1769, 202, 97, 368, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 2027, 3944, 1435, 202, 95, 202, 202, 474, 980, 273, 1927, 20731, 1670, 5621, 202, 202, 474, 29208, 273, 9851, 1685, 2335, 12, 1369, 1769, 202, 202, 474, 1384, 273, 1927, 20731, 2555, 1435, 300, 29208, 31, 202, 202, 430, 12, 588, 1670, 1782, 12, 1369, 13, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 780, 980, 1528, 273, 9851, 1528, 12, 1369, 1769, 202, 202, 780, 1158, 3944, 5097, 273, 261, 780, 13, 4106, 18, 588, 1396, 2932, 2135, 3944, 5097, 8863, 202, 202, 430, 12, 3348, 422, 9851, 1782, 12, 1369, 3719, 1082, 202, 3348, 413, 31, 202, 202, 474, 2076, 1685, 273, 3867, 11864, 18, 4720, 3944, 1685, 12, 1369, 1528, 2 ]
choiceArray = new String[choices.length][2]; for ( int i = 0; i < choices.length; i++ )
choiceArray = new String[choices.length - 1][2]; for ( int i = 0, j = 0; i < choices.length; i++ )
protected String[][] initChoiceArray( ) { if ( choiceArray == null ) { IChoiceSet set = ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT, Style.DATE_TIME_FORMAT_PROP ); IChoice[] choices = set.getChoices( ); if ( choices.length > 0 ) { choiceArray = new String[choices.length][2]; for ( int i = 0; i < choices.length; i++ ) { choiceArray[i][0] = choices[i].getDisplayName( ); choiceArray[i][1] = choices[i].getName( ); } } else { choiceArray = new String[0][0]; } } return choiceArray; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/cf119db7e6a194b9188a3af0a23c06ca2b2ca482/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 63, 6362, 65, 1208, 10538, 1076, 12, 262, 202, 95, 202, 202, 430, 261, 6023, 1076, 422, 446, 262, 202, 202, 95, 1082, 202, 45, 10538, 694, 444, 273, 16432, 694, 1733, 18, 21336, 10538, 694, 12, 8706, 15478, 2918, 18, 15066, 67, 10976, 16, 6862, 202, 2885, 18, 4594, 67, 4684, 67, 7254, 67, 15811, 11272, 1082, 202, 45, 10538, 8526, 7246, 273, 444, 18, 588, 17442, 12, 11272, 1082, 202, 430, 261, 7246, 18, 2469, 405, 374, 262, 1082, 202, 95, 9506, 202, 11569, 1076, 273, 394, 514, 63, 11937, 18, 2469, 6362, 22, 15533, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 7246, 18, 2469, 31, 277, 9904, 262, 9506, 202, 95, 6862, 202, 11569, 1076, 63, 77, 6362, 20, 65, 273, 7246, 63, 77, 8009, 588, 20524, 12, 11272, 6862, 202, 11569, 1076, 63, 77, 6362, 21, 65, 273, 7246, 63, 77, 8009, 17994, 12, 11272, 9506, 202, 97, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 11569, 1076, 273, 394, 514, 63, 20, 6362, 20, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 6023, 1076, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 63, 6362, 65, 1208, 10538, 1076, 12, 262, 202, 95, 202, 202, 430, 261, 6023, 1076, 422, 446, 262, 202, 202, 95, 1082, 202, 45, 10538, 694, 444, 273, 16432, 694, 1733, 18, 21336, 10538, 694, 12, 8706, 15478, 2918, 18, 15066, 67, 10976, 16, 6862, 202, 2885, 18, 4594, 67, 4684, 67, 7254, 67, 15811, 11272, 1082, 202, 45, 10538, 8526, 7246, 273, 444, 18, 588, 17442, 12, 11272, 1082, 202, 430, 261, 7246, 18, 2469, 405, 374, 262, 1082, 202, 95, 9506, 202, 11569, 1076, 273, 394, 514, 63, 11937, 18, 2469, 6362, 22, 15533, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 7246, 18, 2469, 31, 277, 9904, 262, 2 ]
RubyModule realType = this.getNonIncludedClass();
RubyModule realType = this.getNonIncludedClass();
protected IRubyObject cloneMethods(RubyModule clone) { RubyModule realType = this.getNonIncludedClass(); for (Iterator iter = getMethods().entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); // Do not clone cached methods if (method.getImplementationClass() == realType) { // A cloned method now belongs to a new class. Set it. // TODO: Make ICallable immutable ICallable clonedMethod = method.dup(); clonedMethod.setImplementationClass(clone); clone.getMethods().put(entry.getKey(), clonedMethod); } } return clone; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 3236, 4712, 12, 54, 10340, 3120, 3236, 13, 288, 377, 202, 54, 10340, 3120, 2863, 559, 273, 333, 18, 588, 3989, 19323, 797, 5621, 3639, 364, 261, 3198, 1400, 273, 15429, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 5411, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 5411, 368, 2256, 486, 3236, 3472, 2590, 5411, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 13, 288, 18701, 368, 432, 13027, 707, 2037, 11081, 358, 279, 394, 667, 18, 225, 1000, 518, 18, 7734, 368, 2660, 30, 4344, 467, 11452, 11732, 7734, 467, 11452, 13027, 1305, 273, 707, 18, 26427, 5621, 7734, 13027, 1305, 18, 542, 13621, 797, 12, 14056, 1769, 7734, 3236, 18, 588, 4712, 7675, 458, 12, 4099, 18, 588, 653, 9334, 13027, 1305, 1769, 5411, 289, 3639, 289, 7734, 327, 3236, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 3236, 4712, 12, 54, 10340, 3120, 3236, 13, 288, 377, 202, 54, 10340, 3120, 2863, 559, 273, 333, 18, 588, 3989, 19323, 797, 5621, 3639, 364, 261, 3198, 1400, 273, 15429, 7675, 4099, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 5411, 467, 11452, 707, 273, 261, 45, 11452, 13, 1241, 18, 24805, 5621, 5411, 368, 2256, 486, 3236, 3472, 2590, 5411, 309, 261, 2039, 18, 588, 13621, 797, 1435, 422, 2863, 559, 13, 288, 18701, 368, 432, 13027, 707, 2037, 11081, 358, 279, 394, 667, 18, 225, 1000, 518, 18, 7734, 368, 2660, 30, 4344, 2 ]
public void focusLost( FocusEvent e )
public void modifyText( ModifyEvent e )
private void createPropertiesPart( Composite parent ) { propertiesGroup = new Group( parent, SWT.NULL ); propertiesGroup.setText( LABEL_GROUP_PROPERTIES ); propertiesGroup.setLayout( new GridLayout( 2, false ) ); propertiesGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesGroup, LABEL_PARAM_NAME ); paramNameEditor = new Text( propertiesGroup, SWT.BORDER ); paramNameEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); paramNameEditor.addFocusListener( new FocusAdapter( ) { public void focusLost( FocusEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setName( paramNameEditor.getText( ) ); valueTable.refresh( ); } catch ( NameException e1 ) { // ExceptionHandler.handle( e1 ); paramNameEditor.setText( selectedParameter.getName( ) ); paramNameEditor.selectAll( ); paramNameEditor.setFocus( ); } } } } ); createLabel( propertiesGroup, LABEL_PROMPT_TEXT ); promptText = new Text( propertiesGroup, SWT.BORDER ); promptText.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); promptText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setPromptText( promptText.getText( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DATA_TYPE ); dataTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); dataTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); dataTypeChooser.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( dataType ) ); dataTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { changeDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); try { selectedParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DISPLAY_TYPE ); displayTypeChooser = new Combo( propertiesGroup, SWT.DROP_DOWN | SWT.READ_ONLY ); displayTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); displayTypeChooser.setItems( new String[]{ DISPLAY_NAME_CONTROL_LIST, DISPLAY_NAME_CONTROL_COMBO } ); displayTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { String newControlType = getSelectedDisplayType( ); if ( PARAM_CONTROL_COMBO.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( true ); } else if ( PARAM_CONTROL_LIST.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( false ); } else { selectedParameter.setProperty( ScalarParameterHandle.MUCH_MATCH_PROP, null ); } selectedParameter.setControlType( newControlType ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); createLabel( propertiesGroup, LABEL_DEFAULT_VALUE ); defaultValueEditor = new Text( propertiesGroup, SWT.BORDER ); defaultValueEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); defaultValueEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setDefaultValue( defaultValueEditor.getText( ) ); } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } } } ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/32c331232f8bfd4ee9610e9105bb35ff9427651f/CascadingParametersDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2297, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 4738, 1114, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 8560, 11272, 202, 202, 4738, 1114, 18, 542, 1528, 12, 18210, 67, 8468, 67, 17421, 11272, 202, 202, 4738, 1114, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 4738, 1114, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 2640, 2224, 12, 1790, 1114, 16, 18210, 67, 8388, 67, 1985, 11272, 202, 202, 891, 461, 6946, 273, 394, 3867, 12, 1790, 1114, 16, 348, 8588, 18, 38, 7954, 11272, 202, 202, 891, 461, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 891, 461, 6946, 18, 1289, 9233, 2223, 12, 394, 478, 4560, 4216, 12, 262, 288, 1082, 202, 482, 918, 7155, 19024, 12, 478, 4560, 1133, 425, 262, 1082, 202, 95, 9506, 202, 430, 261, 3170, 1662, 480, 446, 25083, 202, 10, 10, 3170, 1662, 480, 394, 1662, 262, 9506, 202, 95, 6862, 202, 698, 6862, 202, 95, 25083, 202, 8109, 1662, 18, 542, 461, 12, 11466, 6946, 18, 588, 1528, 12, 262, 11272, 25083, 202, 1132, 1388, 18, 9144, 12, 11272, 6862, 202, 97, 6862, 202, 14683, 261, 1770, 503, 425, 21, 262, 6862, 202, 95, 25083, 202, 759, 1185, 1503, 18, 4110, 12, 425, 21, 11272, 25083, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2297, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 4738, 1114, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 8560, 11272, 202, 202, 4738, 1114, 18, 542, 1528, 12, 18210, 67, 8468, 67, 17421, 11272, 202, 202, 4738, 1114, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 4738, 1114, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 2640, 2224, 12, 1790, 1114, 16, 18210, 67, 8388, 67, 1985, 11272, 202, 202, 891, 461, 6946, 273, 394, 3867, 12, 1790, 1114, 16, 348, 8588, 18, 38, 7954, 11272, 202, 202, 891, 461, 6946, 18, 2 ]
SAXParser parser = svcMgr.createParser(); parser.parse(svcDescriptor, svcMgr.svcHandler);
XMLReader parser = XMLReaderFactory.createXMLReader(); parser.setEntityResolver(new DTDResolver("services.dtd")); parser.setContentHandler(svcMgr.svcHandler); parser.parse(new InputSource(svcDescriptor));
public static void startServices(Context servicesContext) throws PortalException { InputStream svcDescriptor = null; try { svcDescriptor = ResourceLoader .getResourceAsStream( ExternalServices.class, "/properties/services.xml" ); } catch (Exception ex) { throw new PortalException ("Failed to load services.xml. External " + "portal services will not be started", ex); } CarResources cRes = CarResources.getInstance(); if ( svcDescriptor != null || cRes.hasDescriptors() ) { ExternalServices svcMgr = new ExternalServices(servicesContext); if ( cRes.hasDescriptors() ) { try { cRes.getServices( (ContentHandler) svcMgr.svcHandler ); } catch (Exception ex) { throw new PortalException ("Failed to start external portal " + "services in CAR descriptors.", ex); } } if ( svcDescriptor != null ) { try { SAXParser parser = svcMgr.createParser(); parser.parse(svcDescriptor, svcMgr.svcHandler); } catch (Exception ex) { throw new PortalException ("Failed to start external portal " + "services defined in services.xml.", ex); } finally { try{ svcDescriptor.close(); //do not need to check for null. } catch(IOException exception) { log.error( "ExternalServices:startServices()::could not close InputStream "+ exception); } } } } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/2d899246e2ddf7c022519cd26c225e3aa8d598c6/ExternalServices.java/clean/source/org/jasig/portal/services/ExternalServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 787, 5676, 12, 1042, 4028, 1042, 13, 1377, 1216, 25478, 503, 565, 288, 565, 5037, 7538, 3187, 273, 446, 31, 565, 775, 565, 288, 3639, 7538, 3187, 273, 2591, 2886, 5411, 263, 588, 1420, 17052, 12, 11352, 5676, 18, 1106, 16, 21394, 2206, 4738, 19, 8387, 18, 2902, 6, 11272, 565, 289, 565, 1044, 261, 503, 431, 13, 565, 288, 3639, 604, 394, 25478, 503, 7566, 2925, 358, 1262, 4028, 18, 2902, 18, 11352, 315, 397, 4766, 282, 315, 24386, 4028, 903, 486, 506, 5746, 3113, 431, 1769, 565, 289, 565, 23672, 3805, 276, 607, 273, 23672, 3805, 18, 588, 1442, 5621, 565, 309, 261, 7538, 3187, 480, 446, 747, 540, 276, 607, 18, 5332, 12705, 1435, 262, 565, 288, 1377, 11352, 5676, 7538, 9455, 273, 394, 11352, 5676, 12, 8387, 1042, 1769, 1377, 309, 261, 276, 607, 18, 5332, 12705, 1435, 262, 1377, 288, 1850, 775, 288, 2868, 276, 607, 18, 588, 5676, 12, 261, 1350, 1503, 13, 7538, 9455, 18, 30992, 1503, 11272, 1850, 289, 1044, 261, 503, 431, 13, 288, 2868, 604, 394, 25478, 503, 7566, 2925, 358, 787, 3903, 11899, 315, 397, 29159, 315, 8387, 316, 385, 985, 14215, 1199, 16, 431, 1769, 1850, 289, 1377, 289, 1377, 309, 261, 7538, 3187, 480, 446, 262, 1377, 288, 1850, 775, 288, 2868, 10168, 2678, 2082, 273, 7538, 9455, 18, 2640, 2678, 5621, 2868, 2082, 18, 2670, 12, 30992, 3187, 16, 7538, 9455, 18, 30992, 1503, 1769, 1850, 289, 1044, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 787, 5676, 12, 1042, 4028, 1042, 13, 1377, 1216, 25478, 503, 565, 288, 565, 5037, 7538, 3187, 273, 446, 31, 565, 775, 565, 288, 3639, 7538, 3187, 273, 2591, 2886, 5411, 263, 588, 1420, 17052, 12, 11352, 5676, 18, 1106, 16, 21394, 2206, 4738, 19, 8387, 18, 2902, 6, 11272, 565, 289, 565, 1044, 261, 503, 431, 13, 565, 288, 3639, 604, 394, 25478, 503, 7566, 2925, 358, 1262, 4028, 18, 2902, 18, 11352, 315, 397, 4766, 282, 315, 24386, 4028, 903, 486, 506, 5746, 3113, 431, 1769, 565, 289, 565, 23672, 3805, 276, 607, 273, 23672, 3805, 18, 588, 1442, 5621, 565, 309, 261, 7538, 3187, 480, 446, 747, 540, 276, 607, 18, 5332, 2 ]
MailingList list = this.dao.findMailingList(listId);
InternetAddress checkAddress = list.getEmail().equals(address.getAddress()) ? null : address; URL checkUrl = list.getUrl().equals(url.toString()) ? null : url; this.checkListAddresses(checkAddress, checkUrl);
public void setListAddresses(Long listId, InternetAddress address, URL url) throws NotFoundException, DuplicateListDataException, InvalidListDataException { this.checkListAddresses(address, url, listId); MailingList list = this.dao.findMailingList(listId); list.setEmail(address.getAddress()); list.setUrl(url.toString()); }
50789 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50789/a1246c424337b58c9af119294663390b36aa4d66/AdminBean.java/buggy/core/src/org/subethamail/core/admin/AdminBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 682, 7148, 12, 3708, 30790, 16, 21352, 1887, 1758, 16, 1976, 880, 13, 1216, 12323, 16, 19072, 682, 22480, 16, 1962, 682, 22480, 202, 95, 202, 202, 2211, 18, 1893, 682, 7148, 12, 2867, 16, 880, 16, 30790, 1769, 9506, 202, 6759, 310, 682, 666, 273, 333, 18, 2414, 83, 18, 4720, 6759, 310, 682, 12, 1098, 548, 1769, 9506, 202, 1098, 18, 542, 4134, 12, 2867, 18, 588, 1887, 10663, 202, 202, 1098, 18, 542, 1489, 12, 718, 18, 10492, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 444, 682, 7148, 12, 3708, 30790, 16, 21352, 1887, 1758, 16, 1976, 880, 13, 1216, 12323, 16, 19072, 682, 22480, 16, 1962, 682, 22480, 202, 95, 202, 202, 2211, 18, 1893, 682, 7148, 12, 2867, 16, 880, 16, 30790, 1769, 9506, 202, 6759, 310, 682, 666, 273, 333, 18, 2414, 83, 18, 4720, 6759, 310, 682, 12, 1098, 548, 1769, 9506, 202, 1098, 18, 542, 4134, 12, 2867, 18, 588, 1887, 10663, 202, 202, 1098, 18, 542, 1489, 12, 718, 18, 10492, 10663, 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 ]
INSTANCE = this;
private ScoreManager () { INSTANCE = this; }
7322 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7322/94509c5e790d9b3031329c4d1112c385b4b884b4/ScoreManager.java/clean/src/main/omr/score/ScoreManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 20671, 1318, 1832, 565, 288, 6647, 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, 0, 0, 0, 0, 0 ]
[ 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 20671, 1318, 1832, 565, 288, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(method);
final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(method);
public void doFix(Project project, ProblemDescriptor descriptor) throws IncorrectOperationException{ final PsiExpression variable = (PsiExpression) descriptor.getPsiElement(); final PsiMethod method = PsiTreeUtil.getParentOfType(variable, PsiMethod.class); assert method != null; final PsiCodeBlock body = method.getBody(); final String replacementText; final PsiType type = variable.getType(); final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager codeStyleManager = psiManager.getCodeStyleManager(); final String originalVariableName = variable.getText(); final SuggestedNameInfo suggestions = codeStyleManager.suggestVariableName(VariableKind.LOCAL_VARIABLE, originalVariableName + '1', variable, type); final String[] names = suggestions.names; final String baseName; if(names != null && names.length > 0){ baseName = names[0]; } else{ baseName = "value"; } final String variableName = codeStyleManager.suggestUniqueVariableName(baseName, method, false); final String className = type.getPresentableText(); final PsiElement[] children = body.getChildren(); final StringBuffer buffer = new StringBuffer(); for(int i = 1; i < children.length; i++){ replaceVariableName( children[i], variableName, originalVariableName, buffer); } replacementText = '{' + className + ' ' + variableName + " = " + originalVariableName + ';' + buffer; final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(method); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8189192314f13a88915b80bf3b8b8b1aa7ba3942/AssignmentToMethodParameterInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/confusing/AssignmentToMethodParameterInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 28524, 540, 1216, 657, 6746, 10602, 95, 7734, 727, 453, 7722, 2300, 2190, 273, 13491, 261, 52, 7722, 2300, 13, 4950, 18, 588, 52, 7722, 1046, 5621, 7734, 727, 453, 7722, 1305, 707, 273, 13491, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 453, 7722, 1305, 18, 1106, 1769, 7734, 1815, 707, 480, 446, 31, 7734, 727, 453, 7722, 1085, 1768, 1417, 273, 707, 18, 588, 2250, 5621, 7734, 727, 514, 6060, 1528, 31, 7734, 727, 453, 7722, 559, 618, 273, 2190, 18, 588, 559, 5621, 7734, 727, 453, 7722, 1318, 23921, 1318, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4406, 1769, 7734, 727, 3356, 2885, 1318, 981, 2885, 1318, 273, 13491, 23921, 1318, 18, 588, 1085, 2885, 1318, 5621, 7734, 727, 514, 2282, 21519, 273, 2190, 18, 588, 1528, 5621, 7734, 727, 348, 28892, 461, 966, 17969, 273, 13491, 981, 2885, 1318, 18, 87, 8679, 21519, 12, 3092, 5677, 18, 14922, 67, 16444, 16, 4766, 11794, 2282, 21519, 397, 296, 21, 2187, 2190, 16, 618, 1769, 7734, 727, 514, 8526, 1257, 273, 17969, 18, 1973, 31, 7734, 727, 514, 16162, 31, 7734, 309, 12, 1973, 480, 446, 597, 1257, 18, 2469, 405, 374, 15329, 10792, 16162, 273, 1257, 63, 20, 15533, 7734, 289, 469, 95, 10792, 16162, 273, 315, 1132, 14432, 7734, 289, 7734, 727, 514, 17834, 273, 13491, 981, 2885, 1318, 18, 87, 8679, 6303, 21519, 12, 1969, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 28524, 540, 1216, 657, 6746, 10602, 95, 7734, 727, 453, 7722, 2300, 2190, 273, 13491, 261, 52, 7722, 2300, 13, 4950, 18, 588, 52, 7722, 1046, 5621, 7734, 727, 453, 7722, 1305, 707, 273, 13491, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 6105, 16, 453, 7722, 1305, 18, 1106, 1769, 7734, 1815, 707, 480, 446, 31, 7734, 727, 453, 7722, 1085, 1768, 1417, 273, 707, 18, 588, 2250, 5621, 7734, 727, 514, 6060, 1528, 31, 7734, 727, 453, 7722, 559, 618, 273, 2190, 18, 588, 559, 5621, 7734, 727, 453, 7722, 1318, 23921, 1318, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4406, 1769, 2 ]
ChartReportItemPlugin.getDefault( ).savePluginPreferences( );
ChartReportItemUIActivator.getDefault( ).savePluginPreferences( );
public boolean performOk( ) { ChartReportItemPlugin.getDefault( ) .getPluginPreferences( ) .setValue( ChartReportItemUIActivator.PREFERENCE_MAX_ROW, txtMaxRow.getIntValue( ) ); ChartReportItemPlugin.getDefault( ) .getPluginPreferences( ) .setValue( ChartReportItemUIActivator.PREFERENCE_ENALBE_LIVE, btnEnableLivePreview.getSelection( ) ); ChartReportItemPlugin.getDefault( ).savePluginPreferences( ); return super.performOk( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/0fa56890544eb04b05d480e9d9db91985c45602e/ChartPreferencePage.java/clean/chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ChartPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 12, 262, 202, 95, 202, 202, 7984, 4820, 1180, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 14804, 4820, 1180, 5370, 12241, 639, 18, 3670, 10830, 67, 6694, 67, 11226, 16, 25083, 202, 5830, 2747, 1999, 18, 588, 1702, 620, 12, 262, 11272, 202, 202, 7984, 4820, 1180, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 14804, 4820, 1180, 5370, 12241, 639, 18, 3670, 10830, 67, 1157, 1013, 5948, 67, 2053, 3412, 16, 25083, 202, 11898, 8317, 12328, 11124, 18, 588, 6233, 12, 262, 11272, 202, 202, 7984, 4820, 1180, 3773, 18, 588, 1868, 12, 262, 18, 5688, 3773, 12377, 12, 11272, 202, 202, 2463, 2240, 18, 16092, 8809, 12, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 12, 262, 202, 95, 202, 202, 7984, 4820, 1180, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 14804, 4820, 1180, 5370, 12241, 639, 18, 3670, 10830, 67, 6694, 67, 11226, 16, 25083, 202, 5830, 2747, 1999, 18, 588, 1702, 620, 12, 262, 11272, 202, 202, 7984, 4820, 1180, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 3773, 12377, 12, 262, 9506, 202, 18, 542, 620, 12, 14804, 4820, 1180, 5370, 12241, 639, 18, 3670, 10830, 67, 1157, 1013, 5948, 67, 2053, 3412, 16, 25083, 202, 11898, 8317, 12328, 11124, 18, 588, 6233, 12, 262, 11272, 202, 202, 7984, 4820, 2 ]
public int VAR_Lookback(int optInTimePeriod, double optInNbDev) {
public int VAR_Lookback( int optInTimePeriod, double optInNbDev ) {
public int VAR_Lookback(int optInTimePeriod, double optInNbDev) { ; return optInTimePeriod - 1; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8350, 67, 9794, 823, 12, 474, 2153, 382, 26540, 16, 1645, 2153, 382, 22816, 8870, 13, 288, 202, 202, 31, 202, 202, 2463, 2153, 382, 26540, 300, 404, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8350, 67, 9794, 823, 12, 474, 2153, 382, 26540, 16, 1645, 2153, 382, 22816, 8870, 13, 288, 202, 202, 31, 202, 202, 2463, 2153, 382, 26540, 300, 404, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Parser parser = saxParser.getParser();
protected void evaluateDescriptor(ClassLoader cl, Properties als, InputStream is) throws BuildException { try { SAXParser saxParser = saxFactory.newSAXParser(); Parser parser = saxParser.getParser(); InputSource inputSource = new InputSource(is); //inputSource.setSystemId(uri); //URI is nasty for jar entries project.log("parsing descriptor for library: " + file, Project.MSG_VERBOSE); saxParser.parse(inputSource, new AntLibraryHandler(cl, als)); } catch (ParserConfigurationException exc) { throw new BuildException("Parser has not been configured correctly", exc); } catch (SAXParseException exc) { Location location = new Location(ANT_DESCRIPTOR, exc.getLineNumber(), exc.getColumnNumber()); Throwable t = exc.getException(); if (t instanceof BuildException) { BuildException be = (BuildException) t; if (be.getLocation() == Location.UNKNOWN_LOCATION) { be.setLocation(location); } throw be; } throw new BuildException(exc.getMessage(), t, location); } catch (SAXException exc) { Throwable t = exc.getException(); if (t instanceof BuildException) { throw (BuildException) t; } throw new BuildException(exc.getMessage(), t); } catch (IOException exc) { throw new BuildException("Error reading library descriptor", exc); } finally { if (is != null) { try { is.close(); } catch (IOException ioe) { // ignore this } } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/cd95419f0f5bee203c9b8c160e5a85324d45f5d0/Antlib.java/buggy/proposal/sandbox/antlib/src/main/org/apache/tools/ant/taskdefs/Antlib.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5956, 3187, 12, 7805, 927, 16, 4766, 1377, 6183, 524, 87, 16, 5037, 353, 13, 3639, 1216, 18463, 288, 3639, 775, 288, 5411, 10168, 2678, 20319, 2678, 273, 20319, 1733, 18, 2704, 55, 2501, 2678, 5621, 15604, 23699, 810, 1830, 273, 394, 23699, 12, 291, 1769, 5411, 368, 2630, 1830, 18, 542, 3163, 548, 12, 1650, 1769, 368, 3098, 353, 290, 689, 93, 364, 7334, 3222, 5411, 1984, 18, 1330, 2932, 24979, 4950, 364, 5313, 30, 315, 397, 585, 16, 13491, 5420, 18, 11210, 67, 21900, 1769, 5411, 20319, 2678, 18, 2670, 12, 2630, 1830, 16, 394, 18830, 9313, 1503, 12, 830, 16, 524, 87, 10019, 3639, 289, 3639, 1044, 261, 2678, 10737, 3533, 13, 288, 5411, 604, 394, 18463, 2932, 2678, 711, 486, 2118, 4351, 8783, 3113, 3533, 1769, 3639, 289, 3639, 1044, 261, 55, 2501, 13047, 3533, 13, 288, 5411, 7050, 2117, 273, 10792, 394, 7050, 12, 6856, 67, 1639, 27689, 16, 10792, 3533, 18, 588, 31063, 9334, 3533, 18, 588, 1494, 1854, 10663, 5411, 4206, 268, 273, 3533, 18, 588, 503, 5621, 5411, 309, 261, 88, 1276, 18463, 13, 288, 7734, 18463, 506, 273, 261, 3116, 503, 13, 268, 31, 7734, 309, 261, 2196, 18, 588, 2735, 1435, 422, 7050, 18, 14737, 67, 15277, 13, 288, 10792, 506, 18, 542, 2735, 12, 3562, 1769, 7734, 289, 7734, 604, 506, 31, 5411, 289, 5411, 604, 394, 18463, 12, 10075, 18, 24906, 9334, 268, 16, 2117, 1769, 3639, 289, 3639, 1044, 261, 55, 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, 5956, 3187, 12, 7805, 927, 16, 4766, 1377, 6183, 524, 87, 16, 5037, 353, 13, 3639, 1216, 18463, 288, 3639, 775, 288, 5411, 10168, 2678, 20319, 2678, 273, 20319, 1733, 18, 2704, 55, 2501, 2678, 5621, 15604, 23699, 810, 1830, 273, 394, 23699, 12, 291, 1769, 5411, 368, 2630, 1830, 18, 542, 3163, 548, 12, 1650, 1769, 368, 3098, 353, 290, 689, 93, 364, 7334, 3222, 5411, 1984, 18, 1330, 2932, 24979, 4950, 364, 5313, 30, 315, 397, 585, 16, 13491, 5420, 18, 11210, 67, 21900, 1769, 5411, 20319, 2678, 18, 2670, 12, 2630, 1830, 16, 394, 18830, 9313, 1503, 12, 830, 16, 524, 87, 10019, 3639, 289, 3639, 1044, 261, 2678, 10737, 3533, 13, 288, 2 ]
/* text has no help text now */
public void execute( ReportItemDesign item, IReportEmitter emitter ) { TextItemDesign textItem = (TextItemDesign) item; IReportItemEmitter textEmitter = emitter.getEmitter( "text" ); //$NON-NLS-1$ if ( textEmitter == null ) { return; } IResultSet rs = openResultSet( item ); if ( rs != null ) { rs.next( ); } ITextContent textContent = ContentFactory.createTextContent( textItem ); /* text has no help text now */ //textContent.setHelpText( getLocalizedString( // textItem.getHelpTextKey( ), textItem.getHelpText( ) ) ); setStyles( textContent, item ); setVisibility( item, textContent ); if ( textItem.getDomTree( ) == null ) { String content = getLocalizedString( textItem.getTextKey( ), textItem.getText( ) ); textItem.setDomTree( new TextParser( ).parse( content, textItem .getTextType( ) ) ); } Document doc = textItem.getDomTree( ); if ( doc != null ) { evaluateEmbeddedExpression( doc.getFirstChild( ), textItem, textContent ); new HTMLProcessor( context ).execute( (Element) doc.getFirstChild( ), textContent ); } textContent.setDomTree( doc ); String bookmarkStr = evalBookmark( textItem ); if ( bookmarkStr != null ) textContent.setBookmarkValue( bookmarkStr ); textEmitter.start( textContent ); textEmitter.end( ); closeResultSet( rs ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9bd6cfa479d0917f0581d016aab280e9fa7e6180/TextItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TextItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 1528, 1180, 15478, 977, 1180, 273, 261, 1528, 1180, 15478, 13, 761, 31, 202, 202, 45, 4820, 1180, 13476, 977, 13476, 273, 11520, 18, 588, 13476, 12, 315, 955, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 977, 13476, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 13198, 3597, 273, 1696, 13198, 12, 761, 11272, 202, 202, 430, 261, 3597, 480, 446, 262, 202, 202, 95, 1082, 202, 5453, 18, 4285, 12, 11272, 202, 202, 97, 202, 202, 1285, 408, 1350, 16655, 273, 3697, 1733, 18, 2640, 1528, 1350, 12, 977, 1180, 11272, 202, 202, 20308, 977, 711, 1158, 2809, 977, 2037, 1195, 202, 202, 759, 955, 1350, 18, 542, 6696, 1528, 12, 14262, 780, 12, 202, 202, 759, 202, 202, 955, 1180, 18, 588, 6696, 1528, 653, 12, 262, 16, 977, 1180, 18, 588, 6696, 1528, 12, 262, 262, 11272, 202, 202, 542, 9725, 12, 16655, 16, 761, 11272, 202, 202, 542, 10135, 12, 761, 16, 16655, 11272, 202, 202, 430, 261, 977, 1180, 18, 588, 8832, 2471, 12, 262, 422, 446, 262, 202, 202, 95, 1082, 202, 780, 913, 273, 14262, 780, 12, 977, 1180, 18, 588, 1528, 653, 12, 262, 16, 6862, 202, 955, 1180, 18, 588, 1528, 12, 262, 11272, 1082, 202, 955, 1180, 18, 542, 8832, 2471, 12, 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, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 1528, 1180, 15478, 977, 1180, 273, 261, 1528, 1180, 15478, 13, 761, 31, 202, 202, 45, 4820, 1180, 13476, 977, 13476, 273, 11520, 18, 588, 13476, 12, 315, 955, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 977, 13476, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 45, 13198, 3597, 273, 1696, 13198, 12, 761, 11272, 202, 202, 430, 261, 3597, 480, 446, 262, 202, 202, 95, 1082, 202, 5453, 18, 4285, 12, 11272, 202, 202, 97, 202, 202, 1285, 408, 1350, 16655, 273, 3697, 1733, 18, 2 ]
Iterator types = api.typeIterator(); int listTypeCount = 0;
Iterator types = api.typeIterator(); int listTypeCount = 0;
private void genFactoryInitialization(ADT api) { Iterator types = api.typeIterator(); int listTypeCount = 0; while (types.hasNext()) { Type type = (Type) types.next(); if (type instanceof ListType) { if (type instanceof SeparatedListType) { genSeparatedListInitialization( listTypeCount, (SeparatedListType) type); } else { genNormalListTypeInitialization(type, listTypeCount); } listTypeCount++; } else { JavaGenerationParameters params = getJavaGenerationParameters(); Iterator alts = type.alternativeIterator(); while (alts.hasNext()) { Alternative alt = (Alternative) alts.next(); String protoVar = prototypeVariable(type, alt); String funVar = funVariable(type, alt); String afunName = type.getId() + "_" + alt.getId(); println( " " + patternVariable(type, alt) + " = factory.parse(\"" + StringConversions.escapeQuotes( alt.buildMatchPattern().toString()) + "\");"); println( " " + funVar + " = factory.makeAFun(\"" + "_" + afunName + "\", " + type.getAltArity(alt) + ", false);"); println( " " + protoVar + " = new " + AlternativeGenerator.qualifiedClassName(params, type, alt) + "(this);"); println(); } } } Iterator bottoms = api.bottomTypeIterator(); while (bottoms.hasNext()) { String type = (String) bottoms.next(); if (!getConverter().isReserved(type)) { println( " " + StringConversions.makeCapitalizedIdentifier(type) + ".initialize(this);"); } } }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/FactoryGenerator.java/buggy/apigen/apigen/gen/java/FactoryGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3157, 1733, 17701, 12, 1880, 56, 1536, 13, 288, 3639, 4498, 1953, 273, 1536, 18, 723, 3198, 5621, 3639, 509, 666, 559, 1380, 273, 374, 31, 3639, 1323, 261, 2352, 18, 5332, 2134, 10756, 288, 5411, 1412, 618, 273, 261, 559, 13, 1953, 18, 4285, 5621, 5411, 309, 261, 723, 1276, 987, 559, 13, 288, 7734, 309, 261, 723, 1276, 18032, 297, 690, 19366, 13, 288, 10792, 3157, 28174, 682, 17701, 12, 13491, 666, 559, 1380, 16, 13491, 261, 28174, 19366, 13, 618, 1769, 7734, 289, 469, 288, 10792, 3157, 5506, 19366, 17701, 12, 723, 16, 666, 559, 1380, 1769, 7734, 289, 7734, 666, 559, 1380, 9904, 31, 5411, 289, 469, 288, 7734, 5110, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 7734, 4498, 524, 3428, 273, 618, 18, 27071, 3198, 5621, 7734, 1323, 261, 2390, 87, 18, 5332, 2134, 10756, 288, 10792, 21498, 1535, 3770, 273, 261, 21144, 13, 524, 3428, 18, 4285, 5621, 10792, 514, 3760, 1537, 273, 4409, 3092, 12, 723, 16, 3770, 1769, 10792, 514, 9831, 1537, 273, 9831, 3092, 12, 723, 16, 3770, 1769, 10792, 514, 10073, 318, 461, 273, 618, 18, 26321, 1435, 397, 8802, 397, 3770, 18, 26321, 5621, 10792, 3785, 12, 13491, 315, 565, 315, 18701, 397, 1936, 3092, 12, 723, 16, 3770, 13, 18701, 397, 315, 273, 3272, 18, 2670, 12, 8530, 18701, 397, 514, 29287, 18, 6939, 14292, 12, 27573, 3770, 18, 3510, 2060, 3234, 7675, 10492, 10756, 18701, 397, 7023, 1769, 8863, 10792, 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, 3157, 1733, 17701, 12, 1880, 56, 1536, 13, 288, 3639, 4498, 1953, 273, 1536, 18, 723, 3198, 5621, 3639, 509, 666, 559, 1380, 273, 374, 31, 3639, 1323, 261, 2352, 18, 5332, 2134, 10756, 288, 5411, 1412, 618, 273, 261, 559, 13, 1953, 18, 4285, 5621, 5411, 309, 261, 723, 1276, 987, 559, 13, 288, 7734, 309, 261, 723, 1276, 18032, 297, 690, 19366, 13, 288, 10792, 3157, 28174, 682, 17701, 12, 13491, 666, 559, 1380, 16, 13491, 261, 28174, 19366, 13, 618, 1769, 7734, 289, 469, 288, 10792, 3157, 5506, 19366, 17701, 12, 723, 16, 666, 559, 1380, 1769, 7734, 289, 7734, 666, 559, 1380, 9904, 31, 5411, 289, 469, 288, 7734, 5110, 13842, 2402, 2 ]
return composite; }
return composite; }
protected Control createCustomArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout()); radio1 = new Button(composite, SWT.RADIO); radio1.addSelectionListener(selectionListener); String text1; if (projects.length == 1) { IProject project = (IProject) projects[0]; if (project == null || project.getLocation() == null) { text1 = IDEWorkbenchMessages.DeleteResourceAction_deleteContentsN; } else { text1 = NLS.bind(IDEWorkbenchMessages.DeleteResourceAction_deleteContents1, project.getLocation().toOSString()); } } else { text1 = IDEWorkbenchMessages.DeleteResourceAction_deleteContentsN; } radio1.setText(text1); radio1.setFont(parent.getFont()); radio2 = new Button(composite, SWT.RADIO); radio2.addSelectionListener(selectionListener); String text2 = IDEWorkbenchMessages.DeleteResourceAction_doNotDeleteContents; radio2.setText(text2); radio2.setFont(parent.getFont()); // set initial state radio1.setSelection(deleteContent); radio2.setSelection(!deleteContent); return composite; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6e6d3c7f486fcc8c3a120ffa2b39e40839f142ff/DeleteResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 8888, 752, 3802, 5484, 12, 9400, 982, 13, 288, 5411, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 5411, 9635, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 5411, 13512, 21, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 5411, 13512, 21, 18, 1289, 6233, 2223, 12, 10705, 2223, 1769, 5411, 514, 977, 21, 31, 5411, 309, 261, 13582, 18, 2469, 422, 404, 13, 288, 7734, 467, 4109, 1984, 273, 261, 45, 4109, 13, 10137, 63, 20, 15533, 7734, 309, 261, 4406, 422, 446, 747, 1984, 18, 588, 2735, 1435, 422, 446, 13, 288, 6862, 202, 955, 21, 273, 1599, 41, 2421, 22144, 5058, 18, 2613, 1420, 1803, 67, 3733, 6323, 50, 31, 9506, 202, 97, 469, 288, 6862, 202, 955, 21, 273, 29117, 18, 4376, 12, 10385, 2421, 22144, 5058, 18, 2613, 1420, 1803, 67, 3733, 6323, 21, 16, 1984, 18, 588, 2735, 7675, 869, 4618, 780, 10663, 9506, 202, 97, 5411, 289, 469, 288, 7734, 977, 21, 273, 1599, 41, 2421, 22144, 5058, 18, 2613, 1420, 1803, 67, 3733, 6323, 50, 31, 5411, 289, 5411, 13512, 21, 18, 542, 1528, 12, 955, 21, 1769, 5411, 13512, 21, 18, 542, 5711, 12, 2938, 18, 588, 5711, 10663, 5411, 13512, 22, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 5411, 13512, 22, 18, 1289, 6233, 2223, 12, 10705, 2223, 1769, 5411, 514, 977, 22, 273, 1599, 41, 2421, 22144, 5058, 18, 2613, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 8888, 752, 3802, 5484, 12, 9400, 982, 13, 288, 5411, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 5411, 9635, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 5411, 13512, 21, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 5411, 13512, 21, 18, 1289, 6233, 2223, 12, 10705, 2223, 1769, 5411, 514, 977, 21, 31, 5411, 309, 261, 13582, 18, 2469, 422, 404, 13, 288, 7734, 467, 4109, 1984, 273, 261, 45, 4109, 13, 10137, 63, 20, 15533, 7734, 309, 261, 4406, 422, 446, 747, 1984, 18, 588, 2735, 1435, 422, 446, 13, 288, 6862, 202, 955, 21, 273, 1599, 41, 2421, 22144, 5058, 18, 2613, 1420, 1803, 2 ]
return builtIns == null ? EMPTY_STRING_ARRAY: (String[])builtIns.toArray(new String[builtIns.size()]);
if (builtIns == null) { if (superClass != null) { return superClass.getBuiltIns(); } else { return EMPTY_STRING_ARRAY; } } return (String[])builtIns.toArray(new String[builtIns.size()]);
public String[] getBuiltIns() { // Return the list of built-ins as an array return builtIns == null ? EMPTY_STRING_ARRAY: (String[])builtIns.toArray(new String[builtIns.size()]); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18b49394c46cbbecf041078a70e83e4975d004a7/Option.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Option.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 2882, 4853, 5048, 1435, 288, 202, 202, 759, 2000, 326, 666, 434, 6650, 17, 2679, 487, 392, 526, 202, 202, 2463, 6650, 5048, 422, 446, 692, 9506, 282, 8984, 67, 5804, 67, 8552, 30, 9506, 282, 261, 780, 63, 5717, 12406, 5048, 18, 31447, 12, 2704, 514, 63, 12406, 5048, 18, 1467, 1435, 19226, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 2882, 4853, 5048, 1435, 288, 202, 202, 759, 2000, 326, 666, 434, 6650, 17, 2679, 487, 392, 526, 202, 202, 2463, 6650, 5048, 422, 446, 692, 9506, 282, 8984, 67, 5804, 67, 8552, 30, 9506, 282, 261, 780, 63, 5717, 12406, 5048, 18, 31447, 12, 2704, 514, 63, 12406, 5048, 18, 1467, 1435, 19226, 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 ]
return 1;
double a = get(pos_this++); double b = other.get(pos_other++); if (a == b) continue; if (a < b) return -1; return 1;
public int compareTo (Object obj) { DoubleBuffer a = (DoubleBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/a221385cec60e1ba526d292898aeb99953891407/DoubleBuffer.java/clean/libjava/java/nio/DoubleBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 9292, 261, 921, 1081, 13, 225, 288, 565, 3698, 1892, 279, 273, 261, 5265, 1892, 13, 1081, 31, 565, 309, 261, 69, 18, 17956, 1832, 480, 4463, 1832, 13, 1377, 1645, 279, 273, 336, 12, 917, 67, 2211, 9904, 1769, 1645, 324, 273, 1308, 18, 588, 12, 917, 67, 3011, 9904, 1769, 225, 309, 261, 69, 422, 324, 13, 1324, 31, 225, 309, 261, 69, 411, 324, 13, 327, 300, 21, 31, 225, 327, 404, 31, 565, 309, 16051, 711, 1076, 1832, 747, 3639, 401, 279, 18, 5332, 1076, 1832, 13, 1377, 288, 3639, 1645, 279, 273, 336, 12, 917, 67, 2211, 9904, 1769, 1645, 324, 273, 1308, 18, 588, 12, 917, 67, 3011, 9904, 1769, 225, 309, 261, 69, 422, 324, 13, 1324, 31, 225, 309, 261, 69, 411, 324, 13, 327, 300, 21, 31, 225, 327, 404, 31, 1377, 289, 565, 509, 436, 273, 4463, 261, 1769, 565, 509, 277, 21, 273, 1754, 261, 1769, 565, 509, 277, 22, 273, 279, 18, 3276, 261, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 436, 31, 277, 27245, 1377, 288, 3639, 509, 268, 273, 261, 474, 13, 261, 588, 261, 77, 21, 13, 300, 279, 18, 588, 261, 77, 22, 10019, 3639, 309, 261, 88, 480, 374, 13, 1850, 288, 5411, 327, 261, 474, 13, 268, 31, 1850, 289, 1377, 289, 565, 327, 374, 31, 225, 289, 2, 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, 1, 1, 1, 1, 1, 1, 1, 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, 9292, 261, 921, 1081, 13, 225, 288, 565, 3698, 1892, 279, 273, 261, 5265, 1892, 13, 1081, 31, 565, 309, 261, 69, 18, 17956, 1832, 480, 4463, 1832, 13, 1377, 1645, 279, 273, 336, 12, 917, 67, 2211, 9904, 1769, 1645, 324, 273, 1308, 18, 588, 12, 917, 67, 3011, 9904, 1769, 225, 309, 261, 69, 422, 324, 13, 1324, 31, 225, 309, 261, 69, 411, 324, 13, 327, 300, 21, 31, 225, 327, 404, 31, 565, 309, 16051, 711, 1076, 1832, 747, 3639, 401, 279, 18, 5332, 1076, 1832, 13, 1377, 288, 3639, 1645, 279, 273, 336, 12, 917, 67, 2211, 9904, 1769, 1645, 324, 273, 1308, 18, 588, 12, 917, 67, 3011, 9904, 1769, 2 ]
int x = (int) edge.xIntersection;
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of all edges. // The edge buckets, sorted and indexed by their Y values. ArrayList[] edgeTable = new ArrayList[(int) Math.ceil(maxY) - (int) Math.ceil(minY) + 1]; for (Iterator i = segs.iterator(); i.hasNext();) { PolyEdge edge = (PolyEdge) i.next(); // Horizontal edges are not needed and make things only more // complicated. Skip them. if (Math.ceil(edge.y0) == Math.ceil(edge.y1)) continue; int yindex = (int) ((int) Math.ceil(edge.y0) - (int) Math.ceil(minY)); if (edgeTable[yindex] == null) // Create bucket when needed. edgeTable[yindex] = new ArrayList(); edgeTable[yindex].add(edge); // Add edge to the bucket of its line. } // TODO: The following could be useful for a future optimization.// // Sort all the edges in the edge table within their buckets.// for (int y = 0; y < edgeTable.length; y++)// {// if (edgeTable[y] != null)// Collections.sort(edgeTable[y]);// } // The activeEdges list contains all the edges of the current scanline // ordered by their intersection points with this scanline. ArrayList activeEdges = new ArrayList(); PolyEdgeComparator comparator = new PolyEdgeComparator(); // Scan all relevant lines. int minYInt = (int) Math.ceil(minY); for (int y = minYInt; y <= maxY; y++) { ArrayList bucket = edgeTable[y - minYInt]; // Update all the x intersections in the current activeEdges table // and remove entries that are no longer in the scanline. for (Iterator i = activeEdges.iterator(); i.hasNext();) { PolyEdge edge = (PolyEdge) i.next(); if (y >= edge.y0 && y >= edge.y1) i.remove(); else { edge.xIntersection += edge.slope; //edge.xIntersection = edge.x0 + edge.slope * (y - edge.y0); //System.err.println("edge.xIntersection: " + edge.xIntersection); } } if (bucket != null) activeEdges.addAll(bucket); // Sort current edges. We are using a bubble sort, because the order // of the intersections will not change in most situations. They // will only change, when edges intersect each other. int size = activeEdges.size(); if (size > 1) { for (int i = 1; i < size; i++) { PolyEdge e1 = (PolyEdge) activeEdges.get(i - 1); PolyEdge e2 = (PolyEdge) activeEdges.get(i); if (comparator.compare(e1, e2) > 0) { // Swap e2 with its left neighbor until it 'fits'. int j = i; do { activeEdges.set(j, e1); activeEdges.set(j - 1, e2); j--; if (j >= 1) e1 = (PolyEdge) activeEdges.get(j - 1); } while (j >= 1 && comparator.compare(e1, e2) > 0); } } } // Now draw all pixels inside the polygon. int x0 = 0; // Gets initialized in the first else branch below. boolean active = false; //System.err.println("scanline: " + y); for (Iterator i = activeEdges.iterator(); i.hasNext();) { PolyEdge edge = (PolyEdge) i.next(); //System.err.println("edge: " + edge); int x = (int) edge.xIntersection; if (active) { fillScanline(x0, x, y); active = false; } else { x0 = x; active = true; } } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/AbstractGraphics2D.java/clean/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1831, 8026, 8500, 12, 19558, 23114, 16, 1645, 21586, 16, 1645, 21355, 16, 17311, 1645, 21482, 16, 1645, 21509, 13, 225, 288, 565, 368, 1220, 353, 392, 4471, 434, 279, 7154, 4135, 1369, 4105, 4886, 565, 368, 11893, 2674, 30, 565, 368, 1062, 2207, 5591, 18, 2143, 18, 744, 79, 292, 402, 18, 28049, 19, 98, 637, 19, 26371, 19, 14511, 19, 24326, 19, 9871, 19, 565, 368, 1788, 1014, 434, 777, 5231, 18, 565, 368, 1021, 3591, 9169, 16, 3115, 471, 8808, 635, 3675, 1624, 924, 18, 565, 2407, 8526, 3591, 1388, 273, 394, 2407, 63, 12, 474, 13, 2361, 18, 311, 330, 12, 1896, 61, 13, 4766, 1850, 300, 261, 474, 13, 2361, 18, 311, 330, 12, 1154, 61, 13, 397, 404, 15533, 565, 364, 261, 3198, 277, 273, 23114, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 1377, 288, 3639, 18394, 6098, 3591, 273, 261, 12487, 6098, 13, 277, 18, 4285, 5621, 3639, 368, 21190, 5231, 854, 486, 3577, 471, 1221, 9198, 1338, 1898, 3639, 368, 31312, 18, 6611, 2182, 18, 3639, 309, 261, 10477, 18, 311, 330, 12, 7126, 18, 93, 20, 13, 422, 2361, 18, 311, 330, 12, 7126, 18, 93, 21, 3719, 1850, 1324, 31, 3639, 509, 677, 1615, 273, 261, 474, 13, 14015, 474, 13, 2361, 18, 311, 330, 12, 7126, 18, 93, 20, 13, 300, 261, 474, 13, 2361, 18, 311, 330, 12, 1154, 61, 10019, 3639, 309, 261, 7126, 1388, 63, 93, 1615, 65, 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, 1831, 8026, 8500, 12, 19558, 23114, 16, 1645, 21586, 16, 1645, 21355, 16, 17311, 1645, 21482, 16, 1645, 21509, 13, 225, 288, 565, 368, 1220, 353, 392, 4471, 434, 279, 7154, 4135, 1369, 4105, 4886, 565, 368, 11893, 2674, 30, 565, 368, 1062, 2207, 5591, 18, 2143, 18, 744, 79, 292, 402, 18, 28049, 19, 98, 637, 19, 26371, 19, 14511, 19, 24326, 19, 9871, 19, 565, 368, 1788, 1014, 434, 777, 5231, 18, 565, 368, 1021, 3591, 9169, 16, 3115, 471, 8808, 635, 3675, 1624, 924, 18, 565, 2407, 8526, 3591, 1388, 273, 394, 2407, 63, 12, 474, 13, 2361, 18, 311, 330, 12, 1896, 61, 13, 4766, 1850, 300, 261, 474, 13, 2361, 18, 2 ]
index = host.indexOf(':'); if (index >= 0) { try { port = Integer.parseInt(host.substring(index + 1));
if (s.length() > 0 && s.charAt(0) == '"') { index = s.indexOf('"', 1); if (index >= 0) { user = s.substring(1, index); s = s.substring(index + 1); } else throw new MalformedURLException(); if (s.length() == 0) { host = "127.0.0.1"; return;
public ImapURL(String s) throws MalformedURLException { if (!s.startsWith("{")) throw new MalformedURLException(); int index = s.indexOf('}'); if (index < 0) throw new MalformedURLException(); host = s.substring(1, index); folderName = s.substring(index + 1); port = DEFAULT_PORT; index = host.indexOf(':'); if (index >= 0) { try { port = Integer.parseInt(host.substring(index + 1)); } catch (Exception e) { throw new MalformedURLException(); } host = host.substring(0, index); } index = host.indexOf('@'); if (index >= 0) { user = host.substring(0, index); host = host.substring(index + 1); } if (folderName.equalsIgnoreCase("inbox")) folderName = "inbox"; }
8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/68c4bfb3b63525476f947b392216257372c272dc/ImapURL.java/buggy/j/src/org/armedbear/j/mail/ImapURL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1458, 1785, 12, 780, 272, 13, 1216, 20710, 565, 288, 3639, 309, 16051, 87, 18, 17514, 1190, 2932, 16711, 3719, 5411, 604, 394, 20710, 5621, 3639, 509, 770, 273, 272, 18, 31806, 2668, 1713, 1769, 3639, 309, 261, 1615, 411, 374, 13, 5411, 604, 394, 20710, 5621, 3639, 1479, 273, 272, 18, 28023, 12, 21, 16, 770, 1769, 3639, 31814, 273, 272, 18, 28023, 12, 1615, 397, 404, 1769, 3639, 1756, 273, 3331, 67, 6354, 31, 3639, 770, 273, 1479, 18, 31806, 2668, 2497, 1769, 3639, 309, 261, 1615, 1545, 374, 13, 288, 5411, 775, 288, 7734, 1756, 273, 2144, 18, 2670, 1702, 12, 2564, 18, 28023, 12, 1615, 397, 404, 10019, 5411, 289, 5411, 1044, 261, 503, 425, 13, 288, 7734, 604, 394, 20710, 5621, 5411, 289, 5411, 1479, 273, 1479, 18, 28023, 12, 20, 16, 770, 1769, 3639, 289, 3639, 770, 273, 1479, 18, 31806, 2668, 36, 8284, 3639, 309, 261, 1615, 1545, 374, 13, 288, 5411, 729, 273, 1479, 18, 28023, 12, 20, 16, 770, 1769, 5411, 1479, 273, 1479, 18, 28023, 12, 1615, 397, 404, 1769, 3639, 289, 3639, 309, 261, 5609, 461, 18, 14963, 5556, 2932, 267, 2147, 6, 3719, 5411, 31814, 273, 315, 267, 2147, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1458, 1785, 12, 780, 272, 13, 1216, 20710, 565, 288, 3639, 309, 16051, 87, 18, 17514, 1190, 2932, 16711, 3719, 5411, 604, 394, 20710, 5621, 3639, 509, 770, 273, 272, 18, 31806, 2668, 1713, 1769, 3639, 309, 261, 1615, 411, 374, 13, 5411, 604, 394, 20710, 5621, 3639, 1479, 273, 272, 18, 28023, 12, 21, 16, 770, 1769, 3639, 31814, 273, 272, 18, 28023, 12, 1615, 397, 404, 1769, 3639, 1756, 273, 3331, 67, 6354, 31, 3639, 770, 273, 1479, 18, 31806, 2668, 2497, 1769, 3639, 309, 261, 1615, 1545, 374, 13, 288, 5411, 775, 288, 7734, 1756, 273, 2144, 18, 2670, 1702, 12, 2564, 18, 28023, 12, 1615, 397, 404, 10019, 5411, 289, 5411, 1044, 2 ]
}});
}
public void run() { logger_.debug("Barrier reached"); _done.release(); }});
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/daae1b86a196ce34b8466256a2014d4fbb54bbc3/PerformanceTest.java/clean/test/regression/src/org/jacorb/test/notification/perf/PerformanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 10792, 1194, 27799, 4148, 2932, 5190, 10342, 8675, 8863, 10792, 389, 8734, 18, 9340, 5621, 7734, 10523, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 10792, 1194, 27799, 4148, 2932, 5190, 10342, 8675, 8863, 10792, 389, 8734, 18, 9340, 5621, 7734, 10523, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MaxForwardsHeader maxForwards = headerFactory.createMaxForwardsHeader(70);
MaxForwardsHeader maxForwards = headerFactory .createMaxForwardsHeader(70);
public void sendInvite() { try { String fromName = "BigGuy"; String fromSipAddress = "here.com"; String fromDisplayName = "The Master Blaster"; String toSipAddress = "there.com"; String toUser = "LittleGuy"; String toDisplayName = "The Little Blister"; // create >From Header SipURI fromAddress = addressFactory.createSipURI(fromName, fromSipAddress); Address fromNameAddress = addressFactory.createAddress(fromAddress); fromNameAddress.setDisplayName(fromDisplayName); String tag = new Integer((int)(Math.random() * 10000)).toString(); FromHeader fromHeader = headerFactory.createFromHeader(fromNameAddress, tag); // create To Header SipURI toAddress = addressFactory.createSipURI(toUser, toSipAddress); Address toNameAddress = addressFactory.createAddress(toAddress); toNameAddress.setDisplayName(toDisplayName); ToHeader toHeader = headerFactory.createToHeader(toNameAddress, null); // create Request URI SipURI requestURI = addressFactory.createSipURI(toUser, toSipAddress); // Create ViaHeaders ArrayList viaHeaders = new ArrayList(); int port = sipProvider.getListeningPoint().getPort(); ViaHeader viaHeader = headerFactory.createViaHeader( sipStack.getIPAddress(), sipProvider.getListeningPoint().getPort(), transport, null); // add via headers viaHeaders.add(viaHeader); // Create ContentTypeHeader ContentTypeHeader contentTypeHeader = headerFactory.createContentTypeHeader("application", "sdp"); // Create a new CallId header CallIdHeader callIdHeader = sipProvider.getNewCallId(); // Create a new Cseq header CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(1, Request.INVITE); // Create a new MaxForwardsHeader MaxForwardsHeader maxForwards = headerFactory.createMaxForwardsHeader(70); // Create the request. Request request = messageFactory.createRequest( requestURI, Request.INVITE, callIdHeader, cSeqHeader, fromHeader, toHeader, viaHeaders, maxForwards); // Create contact headers String host = sipStack.getIPAddress(); SipURI contactUrl = addressFactory.createSipURI(fromName, host); contactUrl.setPort(tcpListeningPoint.getPort()); // Create the contact name address. SipURI contactURI = addressFactory.createSipURI(fromName, host); contactURI.setPort(sipProvider.getListeningPoint().getPort()); Address contactAddress = addressFactory.createAddress(contactURI); // Add the contact address. contactAddress.setDisplayName(fromName); contactHeader = headerFactory.createContactHeader(contactAddress); request.addHeader(contactHeader); // Add the extension header. Header extensionHeader = headerFactory.createHeader("My-Header", "my header value"); request.addHeader(extensionHeader); String sdpData = "v=0\r\n" + "o=4855 13760799956958020 13760799956958020" + " IN IP4 129.6.55.78\r\n" + "s=mysession session\r\n" + "p=+46 8 52018010\r\n" + "c=IN IP4 129.6.55.78\r\n" + "t=0 0\r\n" + "m=audio 6022 RTP/AVP 0 4 18\r\n" + "a=rtpmap:0 PCMU/8000\r\n" + "a=rtpmap:4 G723/8000\r\n" + "a=rtpmap:18 G729A/8000\r\n" + "a=ptime:20\r\n";/** StringBuffer sdpBuff = new StringBuffer(); for (int i = 0; i < 500; i++) { sdpBuff.append(sdp); } String sdpData = sdpBuff.toString(); File dataFile = new File("data.txt"); long length = dataFile.length(); FileInputStream fis = new FileInputStream(dataFile); byte[] contents = new byte[(int)length]; fis.read(contents); System.out.println("length = " + contents.length);**/ byte[] contents = sdpData.getBytes(); //byte[] contents = sdpBuff.toString().getBytes(); request.setContent(contents, contentTypeHeader); extensionHeader = headerFactory.createHeader( "My-Other-Header", "my new header value "); request.addHeader(extensionHeader); Header callInfoHeader = headerFactory.createHeader( "Call-Info", "<http://www.antd.nist.gov>"); request.addHeader(callInfoHeader); // Create the client transaction. ClientTransaction inviteTid = sipProvider.getNewClientTransaction(request); // send the request out. inviteTid.sendRequest(); Dialog dialog = inviteTid.getDialog(); // Set a pointer to our application data Appdata appdata = new Appdata(dialog); dialog.setApplicationData(appdata); } catch (Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); usage(); } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootist.java/buggy/trunk/src/test/load/concurrency/Shootist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 22730, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 628, 461, 273, 315, 9901, 6099, 93, 14432, 1082, 202, 780, 628, 17550, 1887, 273, 315, 14852, 18, 832, 14432, 1082, 202, 780, 628, 20524, 273, 315, 1986, 13453, 8069, 2440, 14432, 1082, 202, 780, 358, 17550, 1887, 273, 315, 18664, 18, 832, 14432, 1082, 202, 780, 358, 1299, 273, 315, 48, 7188, 6099, 93, 14432, 1082, 202, 780, 358, 20524, 273, 315, 1986, 511, 7188, 605, 1098, 264, 14432, 1082, 202, 759, 752, 405, 1265, 4304, 1082, 202, 17550, 3098, 628, 1887, 273, 9506, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 2080, 461, 16, 628, 17550, 1887, 1769, 1082, 202, 1887, 628, 461, 1887, 273, 1758, 1733, 18, 2640, 1887, 12, 2080, 1887, 1769, 1082, 202, 2080, 461, 1887, 18, 542, 20524, 12, 2080, 20524, 1769, 25083, 202, 780, 1047, 273, 394, 2144, 12443, 474, 21433, 10477, 18, 9188, 1435, 380, 12619, 13, 2934, 10492, 5621, 1082, 202, 1265, 1864, 628, 1864, 273, 9506, 202, 3374, 1733, 18, 2640, 1265, 1864, 12, 2080, 461, 1887, 16, 1047, 1769, 1082, 202, 759, 752, 2974, 4304, 1082, 202, 17550, 3098, 358, 1887, 273, 9506, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 869, 1299, 16, 358, 17550, 1887, 1769, 1082, 202, 1887, 358, 461, 1887, 273, 1758, 1733, 18, 2640, 1887, 12, 869, 1887, 1769, 1082, 202, 869, 461, 1887, 18, 542, 20524, 12, 869, 20524, 1769, 1082, 202, 774, 1864, 358, 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, 1366, 22730, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 628, 461, 273, 315, 9901, 6099, 93, 14432, 1082, 202, 780, 628, 17550, 1887, 273, 315, 14852, 18, 832, 14432, 1082, 202, 780, 628, 20524, 273, 315, 1986, 13453, 8069, 2440, 14432, 1082, 202, 780, 358, 17550, 1887, 273, 315, 18664, 18, 832, 14432, 1082, 202, 780, 358, 1299, 273, 315, 48, 7188, 6099, 93, 14432, 1082, 202, 780, 358, 20524, 273, 315, 1986, 511, 7188, 605, 1098, 264, 14432, 1082, 202, 759, 752, 405, 1265, 4304, 1082, 202, 17550, 3098, 628, 1887, 273, 9506, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 2080, 461, 16, 628, 17550, 1887, 1769, 1082, 202, 1887, 628, 2 ]
ADDR,
RET_ADDR,
private static void getVariableValue(byte[] stack, int offset, byte[] types, VM_BaselineCompiledMethod compiledMethod, VM_CodeArray instructions, int kind, OSR_ExecutionState state) { int size = types.length; int vOffset = offset; for (int i=0; i<size; i++) { switch (types[i]) { case VoidTypeCode: vOffset -= 4; break; case BooleanTypeCode: case ByteTypeCode: case ShortTypeCode: case CharTypeCode: case IntTypeCode: case FloatTypeCode:{ int value = VM_Magic.getIntAtOffset(stack, vOffset); vOffset -= 4; int tcode = (types[i] == FloatTypeCode) ? FLOAT : INT; state.add(new OSR_VariableElement(kind, i, tcode, value)); break; } case LongTypeCode: case DoubleTypeCode: { int memoff = (kind == LOCAL) ? (vOffset-4) : vOffset; long value = VM_Magic.getLongAtOffset(stack, memoff); vOffset -= 8; int tcode = (types[i] == LongTypeCode) ? LONG : DOUBLE; state.add(new OSR_VariableElement(kind, i, tcode, value)); i++; break; } case AddressTypeCode: { VM.disableGC(); Address rowIP = VM_Magic.objectAsAddress(stack).add(vOffset).loadAddress(); int ipIndex = rowIP.diff(VM_Magic.objectAsAddress(instructions)).toInt() >> LG_INSTRUCTION_WIDTH; VM.enableGC(); vOffset -= BYTES_IN_ADDRESS; if (VM.TraceOnStackReplacement) { VM.sysWrite("baseline addr ip "+ipIndex+" --> "); } int bcIndex = compiledMethod.findBytecodeIndexForInstruction(ipIndex+1); if (VM.TraceOnStackReplacement) { VM.sysWrite(" bc "+ bcIndex+"\n"); } state.add(new OSR_VariableElement(kind, i, ADDR, bcIndex)); break; } case ClassTypeCode: case ArrayTypeCode: { VM.disableGC(); Object ref = VM_Magic.getObjectAtOffset(stack, vOffset); VM.enableGC(); vOffset -= BYTES_IN_ADDRESS; state.add(new OSR_VariableElement(kind, i, REF, ref)); break; } default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } // switch } // for loop }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/5a52d97607a6c66ba42db666fc0f8b7bbcc685b9/OSR_BaselineExecStateExtractor.java/buggy/rvm/src/vm/arch/powerPC/executionState/OSR_BaselineExecStateExtractor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 13522, 620, 12, 7229, 8526, 2110, 16, 4766, 4202, 509, 282, 1384, 16, 4766, 4202, 1160, 8526, 1953, 16, 4766, 4202, 8251, 67, 16635, 20733, 1305, 7743, 1305, 16, 4766, 4202, 8251, 67, 1085, 1076, 12509, 16, 4766, 4202, 509, 282, 3846, 16, 4766, 4202, 5932, 54, 67, 3210, 1119, 919, 13, 288, 565, 509, 963, 273, 1953, 18, 2469, 31, 565, 509, 331, 2335, 273, 1384, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 1620, 261, 2352, 63, 77, 5717, 288, 1377, 648, 6988, 15460, 30, 3639, 331, 2335, 3947, 1059, 31, 3639, 898, 31, 1377, 648, 3411, 15460, 30, 1377, 648, 3506, 15460, 30, 1377, 648, 7925, 15460, 30, 1377, 648, 3703, 15460, 30, 1377, 648, 3094, 15460, 30, 1377, 648, 5450, 15460, 18611, 3639, 509, 460, 273, 8251, 67, 19289, 18, 588, 1702, 861, 2335, 12, 3772, 16, 331, 2335, 1769, 3639, 331, 2335, 3947, 1059, 31, 5375, 509, 268, 710, 273, 261, 2352, 63, 77, 65, 422, 5450, 15460, 13, 692, 15483, 294, 6137, 31, 3639, 919, 18, 1289, 12, 2704, 5932, 54, 67, 3092, 1046, 12, 9224, 16, 29159, 277, 16, 29159, 268, 710, 16, 29159, 460, 10019, 3639, 898, 31, 1377, 289, 1377, 648, 3407, 15460, 30, 4202, 648, 3698, 15460, 30, 288, 3639, 509, 1663, 3674, 273, 6647, 261, 9224, 422, 15234, 13, 692, 261, 90, 2335, 17, 24, 13, 294, 331, 2335, 31, 3639, 1525, 460, 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, 760, 918, 13522, 620, 12, 7229, 8526, 2110, 16, 4766, 4202, 509, 282, 1384, 16, 4766, 4202, 1160, 8526, 1953, 16, 4766, 4202, 8251, 67, 16635, 20733, 1305, 7743, 1305, 16, 4766, 4202, 8251, 67, 1085, 1076, 12509, 16, 4766, 4202, 509, 282, 3846, 16, 4766, 4202, 5932, 54, 67, 3210, 1119, 919, 13, 288, 565, 509, 963, 273, 1953, 18, 2469, 31, 565, 509, 331, 2335, 273, 1384, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 27245, 288, 1377, 1620, 261, 2352, 63, 77, 5717, 288, 1377, 648, 6988, 15460, 30, 3639, 331, 2335, 3947, 1059, 31, 3639, 898, 31, 1377, 648, 3411, 15460, 30, 1377, 648, 3506, 15460, 30, 2 ]
diffControlsState(pipelineContext, ch, containingDocument, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds);
diffControlsState(ch, containingDocument, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds);
public static void diffControlsState(PipelineContext pipelineContext, ContentHandlerHelper ch, XFormsContainingDocument containingDocument, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if ((state1 != null && state2 != null && state1.size() != state2.size()) || (state2 == null)) { throw new IllegalStateException("Illegal state when comparing controls."); } final boolean isStaticReadonly = containingDocument.getReadonlyAppearance().equals(XFormsConstants.XXFORMS_READONLY_APPEARANCE_STATIC_VALUE); final AttributesImpl attributesImpl = new AttributesImpl(); final Iterator j = (state1 == null) ? null : state1.iterator(); for (Iterator i = state2.iterator(); i.hasNext();) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (XFormsControl) i.next(); // 1: Check current control if (!(xformsControl2 instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it // Output diffs between controlInfo1 and controlInfo2 final boolean isValueChangeControl = valueChangeControlIds != null && valueChangeControlIds.get(xformsControl2.getEffectiveId()) != null; if ((!xformsControl2.equals(xformsControl1) || isValueChangeControl) && !(isStaticReadonly && xformsControl2.isReadonly() && xformsControl2 instanceof XFormsTriggerControl)) { // Don't send anything if nothing has changed // But we force a change for controls whose values changed in the request // Also, we don't output anything for triggers in static readonly mode attributesImpl.clear(); // Control id attributesImpl.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, xformsControl2.getEffectiveId()); // Control children values if (!(xformsControl2 instanceof RepeatIterationControl)) { { final String labelValue1 = (xformsControl1 == null) ? null : xformsControl1.getLabel(); final String labelValue2 = xformsControl2.getLabel(); if (!((labelValue1 == null && labelValue2 == null) || (labelValue1 != null && labelValue2 != null && labelValue1.equals(labelValue2)))) { attributesImpl.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, labelValue2 != null ? labelValue2 : ""); } } { final String helpValue1 = (xformsControl1 == null) ? null : xformsControl1.getHelp(); final String helpValue2 = xformsControl2.getHelp(); if (!((helpValue1 == null && helpValue2 == null) || (helpValue1 != null && helpValue2 != null && helpValue1.equals(helpValue2)))) { attributesImpl.addAttribute("", "help", "help", ContentHandlerHelper.CDATA, helpValue2 != null ? helpValue2 : ""); } } { final String hintValue1 = (xformsControl1 == null) ? null : xformsControl1.getHint(); final String hintValue2 = xformsControl2.getHint(); if (!((hintValue1 == null && hintValue2 == null) || (hintValue1 != null && hintValue2 != null && hintValue1.equals(hintValue2)))) { attributesImpl.addAttribute("", "hint", "hint", ContentHandlerHelper.CDATA, hintValue2 != null ? hintValue2 : ""); } } { final String alertValue1 = (xformsControl1 == null) ? null : xformsControl1.getAlert(); final String alertValue2 = xformsControl2.getAlert(); if (!((alertValue1 == null && alertValue2 == null) || (alertValue1 != null && alertValue2 != null && alertValue1.equals(alertValue2)))) { attributesImpl.addAttribute("", "alert", "alert", ContentHandlerHelper.CDATA, alertValue2 != null ? alertValue2 : ""); } } // Output xforms:output-specific information if (xformsControl2 instanceof XFormsOutputControl) { final XFormsOutputControl outputControlInfo1 = (XFormsOutputControl) xformsControl1; final XFormsOutputControl outputControlInfo2 = (XFormsOutputControl) xformsControl2; final String mediaTypeValue1 = (outputControlInfo1 == null) ? null : outputControlInfo1.getMediaTypeAttribute(); final String mediaTypeValue2 = outputControlInfo2.getMediaTypeAttribute(); if (!((mediaTypeValue1 == null && mediaTypeValue2 == null) || (mediaTypeValue1 != null && mediaTypeValue2 != null && mediaTypeValue1.equals(mediaTypeValue2)))) { attributesImpl.addAttribute("", "mediatype", "mediatype", ContentHandlerHelper.CDATA, mediaTypeValue2 != null ? mediaTypeValue2 : ""); } } } // Model item properties if (xformsControl1 == null || xformsControl1.isReadonly() != xformsControl2.isReadonly()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isReadonly())); } if (xformsControl1 == null || xformsControl1.isRequired() != xformsControl2.isRequired()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRequired())); } if (xformsControl1 == null || xformsControl1.isRelevant() != xformsControl2.isRelevant()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRelevant())); } if (xformsControl1 == null || xformsControl1.isValid() != xformsControl2.isValid()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isValid())); } final boolean isOutputControlWithValueAttribute = xformsControl2 instanceof XFormsOutputControl && ((XFormsOutputControl) xformsControl2).getValueAttribute() != null; if (!(xformsControl2 instanceof RepeatIterationControl) && !isOutputControlWithValueAttribute) { final String typeValue1 = (xformsControl1 == null) ? null : xformsControl1.getType(); final String typeValue2 = xformsControl2.getType(); if (xformsControl1 == null || !((typeValue1 == null && typeValue2 == null) || (typeValue1 != null && typeValue2 != null && typeValue1.equals(typeValue2)))) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, typeValue2 != null ? typeValue2 : ""); } } if (!(xformsControl2 instanceof RepeatIterationControl)) { // Regular control // Get current value if possible for this control // NOTE: We issue the new value in all cases because we don't have yet a mechanism to tell the // client not to update the value, unlike with attributes which can be missing if (xformsControl2 instanceof XFormsValueControl && !(xformsControl2 instanceof XFormsUploadControl)) { final XFormsValueControl xformsValueControl = (XFormsValueControl) xformsControl2; // Check if a "display-value" attribute must be added if (!isOutputControlWithValueAttribute) { final String displayValue = xformsValueControl.getDisplayValue(); if (displayValue != null) attributesImpl.addAttribute("", "display-value", "display-value", ContentHandlerHelper.CDATA, displayValue); } // Create element with text value ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); ch.text(xformsValueControl.convertToExternalValue(xformsValueControl.getValue())); ch.endElement(); } else if (!"case".equals(xformsControl2.getName())) { // No value, just output element with no content ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); } } else { // Repeat iteration final RepeatIterationControl repeatIterationInfo = (RepeatIterationControl) xformsControl2; attributesImpl.addAttribute("", "iteration", "iteration", ContentHandlerHelper.CDATA, Integer.toString(repeatIterationInfo.getIteration())); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-iteration", attributesImpl); } } // Handle itemsets if (xformsControl2 instanceof XFormsSelect1Control || xformsControl2 instanceof XFormsSelectControl) { final XFormsSelect1Control xformsSelect1Control1 = (XFormsSelect1Control) xformsControl1; final XFormsSelect1Control xformsSelect1Control2 = (XFormsSelect1Control) xformsControl2; if (itemsetsFull1 != null && xformsSelect1Control1 != null) { final Object items = xformsSelect1Control1.getItemset(); if (items != null) itemsetsFull1.put(xformsSelect1Control1.getEffectiveId(), items); } if (itemsetsFull2 != null && xformsSelect1Control2 != null) { final Object items = xformsSelect1Control2.getItemset(); if (items != null) itemsetsFull2.put(xformsSelect1Control2.getEffectiveId(), items); } } } // 2: Check children if any if (XFormsControls.isGroupingControl(xformsControl2.getName()) || xformsControl2 instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2.getChildren() == null) ? Collections.EMPTY_LIST : xformsControl2.getChildren(); // Repeat grouping control if (xformsControl2 instanceof XFormsRepeatControl && children1 != null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Special case of repeat update final int size1 = children1.size(); final int size2 = children2.size(); if (size1 == size2) { // No add or remove of children diffControlsState(pipelineContext, ch, containingDocument, children1, xformsControl2.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 > size1) { // Size has grown // Copy template instructions for (int k = size1 + 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Diff the common subset diffControlsState(pipelineContext, ch, containingDocument, children1, children2.subList(0, size1), itemsetsFull1, itemsetsFull2, valueChangeControlIds); // Issue new values for new iterations diffControlsState(pipelineContext, ch, containingDocument, null, children2.subList(size1, size2), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 < size1) { // Size has shrunk final String repeatControlId = xformsControl2.getEffectiveId(); final int indexOfRepeatHierarchySeparator = repeatControlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1); final String templateId = (indexOfRepeatHierarchySeparator == -1) ? repeatControlId : repeatControlId.substring(0, indexOfRepeatHierarchySeparator); final String parentIndexes = (indexOfRepeatHierarchySeparator == -1) ? "" : repeatControlId.substring(indexOfRepeatHierarchySeparator + 1); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "delete-repeat-elements", new String[]{"id", templateId, "parent-indexes", parentIndexes, "count", "" + (size1 - size2)}); // Diff the remaining subset diffControlsState(pipelineContext, ch, containingDocument, children1.subList(0, size2), children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } else if (xformsControl2 instanceof XFormsRepeatControl && xformsControl1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle new sub-xforms:repeat // Copy template instructions final int size2 = children2.size(); for (int k = 2; k <= size2; k++) { // don't copy the first template, which is already copied when the parent is copied outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(pipelineContext, ch, containingDocument, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (xformsControl2 instanceof XFormsRepeatControl && children1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle repeat growing from size 0 (case of instance replacement, for example) // Copy template instructions final int size2 = children2.size(); for (int k = 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(pipelineContext, ch, containingDocument, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else { // Other grouping controls diffControlsState(pipelineContext, ch, containingDocument, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/4991b30415dcfb1b79b16bb5c46a194e21aa81a4/XFormsServer.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3122, 16795, 1119, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 2276, 462, 16, 1139, 18529, 24344, 2519, 4191, 2519, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761, 4424, 5080, 22, 16, 1635, 460, 3043, 3367, 2673, 13, 288, 3639, 368, 840, 20109, 648, 3639, 309, 261, 2019, 21, 422, 446, 597, 919, 22, 422, 446, 13, 5411, 327, 31, 3639, 368, 19118, 6035, 1297, 1240, 326, 1967, 963, 309, 3430, 31, 919, 21, 848, 506, 446, 3639, 309, 14015, 2019, 21, 480, 446, 597, 919, 22, 480, 446, 597, 919, 21, 18, 1467, 1435, 480, 919, 22, 18, 1467, 10756, 747, 261, 2019, 22, 422, 446, 3719, 288, 5411, 604, 394, 5477, 2932, 12195, 919, 1347, 17553, 11022, 1199, 1769, 3639, 289, 3639, 727, 1250, 16116, 1994, 3700, 273, 4191, 2519, 18, 588, 1994, 3700, 1294, 27668, 7675, 14963, 12, 60, 18529, 2918, 18, 5619, 4983, 55, 67, 6949, 10857, 67, 2203, 1423, 985, 4722, 67, 22741, 67, 4051, 1769, 3639, 727, 9055, 2828, 1677, 2828, 273, 394, 9055, 2828, 5621, 3639, 727, 4498, 525, 273, 261, 2019, 21, 422, 446, 13, 692, 446, 294, 919, 21, 18, 9838, 5621, 3639, 364, 261, 3198, 277, 273, 919, 22, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 727, 1139, 18529, 3367, 619, 9741, 3367, 21, 273, 261, 2019, 21, 422, 446, 13, 692, 446, 294, 261, 60, 18529, 3367, 13, 525, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3122, 16795, 1119, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 2276, 462, 16, 1139, 18529, 24344, 2519, 4191, 2519, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761, 4424, 5080, 22, 16, 1635, 460, 3043, 3367, 2673, 13, 288, 3639, 368, 840, 20109, 648, 3639, 309, 261, 2019, 21, 422, 446, 597, 919, 22, 422, 446, 13, 5411, 327, 31, 3639, 368, 19118, 6035, 1297, 1240, 326, 1967, 963, 309, 3430, 31, 919, 21, 848, 506, 446, 3639, 309, 14015, 2019, 21, 480, 446, 597, 919, 22, 480, 446, 597, 919, 21, 18, 1467, 1435, 480, 919, 22, 18, 1467, 10756, 747, 261, 2019, 22, 422, 2 ]
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); container.setLayout(layout); layout.numColumns = 2; GridData gd = new GridData(); gd.widthHint = 50; Label label = new Label(container, SWT.NULL); label.setText("Specify number of days to report on: "); numDays = new Text(container, SWT.BORDER); numDays.setLayoutData(gd); numDays.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { try { numDaysToReport = Integer.parseInt(numDays.getText()); setErrorMessage(null); } catch (Exception ex) { setErrorMessage("Must be integer"); numDaysToReport = 0; } } }); numDays.setText("" + DEFAULT_DAYS); numDaysToReport = DEFAULT_DAYS; Label label2 = new Label(container, SWT.NULL); label2.setText("Or provide report start date: "); final DatePicker datePicker = new DatePicker(container, SWT.NULL); // datePicker.setDateText("<reminder>"); datePicker.addPickerSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { if (datePicker.getDate() != null) { reportStartDate = datePicker.getDate().getTime(); numDays.setEnabled(false); } } public void widgetDefaultSelected(SelectionEvent arg0) { // ignore } }); addCategorySelection(container); setControl(container); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2265a34a2358ae09552e2b2504408e9941a6004d/TaskPlannerWizardPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/ui/TaskPlannerWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2640, 3367, 12, 799, 1724, 881, 817, 15329, 202, 202, 799, 1724, 31313, 1521, 33, 2704, 9400, 12, 2938, 16, 55, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 6741, 33, 2704, 6313, 3744, 5621, 202, 202, 3782, 18, 542, 3744, 12, 6741, 1769, 202, 202, 6741, 18, 2107, 3380, 33, 22, 31, 202, 202, 6313, 5139, 346, 72, 33, 2704, 6313, 751, 5621, 202, 202, 19016, 18, 2819, 7002, 33, 3361, 31, 202, 202, 2224, 1925, 33, 2704, 2224, 12, 3782, 16, 55, 8588, 18, 8560, 1769, 202, 202, 1925, 18, 542, 1528, 2932, 1990, 430, 878, 1226, 792, 2881, 2233, 655, 265, 2773, 1769, 202, 202, 2107, 9384, 33, 2704, 1528, 12, 3782, 16, 55, 8588, 18, 38, 7954, 1769, 202, 202, 2107, 9384, 18, 542, 3744, 751, 12, 19016, 1769, 202, 202, 2107, 9384, 18, 1289, 11047, 2223, 12, 2704, 11047, 2223, 1435, 95, 1082, 202, 482, 6459, 17042, 1528, 12, 11047, 1133, 73, 15329, 9506, 202, 698, 95, 6862, 202, 2107, 9384, 774, 4820, 33, 4522, 18, 2670, 1702, 12, 2107, 9384, 18, 588, 1528, 10663, 6862, 202, 542, 14935, 12, 2011, 1769, 9506, 202, 97, 14683, 12, 503, 338, 15329, 6862, 202, 542, 14935, 2932, 10136, 2196, 7745, 8863, 6862, 202, 2107, 9384, 774, 4820, 33, 20, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 22938, 202, 202, 2107, 9384, 18, 542, 1528, 2932, 6, 15, 5280, 67, 31551, 1769, 202, 202, 2107, 9384, 774, 4820, 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, 225, 202, 482, 6459, 2640, 3367, 12, 799, 1724, 881, 817, 15329, 202, 202, 799, 1724, 31313, 1521, 33, 2704, 9400, 12, 2938, 16, 55, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 6741, 33, 2704, 6313, 3744, 5621, 202, 202, 3782, 18, 542, 3744, 12, 6741, 1769, 202, 202, 6741, 18, 2107, 3380, 33, 22, 31, 202, 202, 6313, 5139, 346, 72, 33, 2704, 6313, 751, 5621, 202, 202, 19016, 18, 2819, 7002, 33, 3361, 31, 202, 202, 2224, 1925, 33, 2704, 2224, 12, 3782, 16, 55, 8588, 18, 8560, 1769, 202, 202, 1925, 18, 542, 1528, 2932, 1990, 430, 878, 1226, 792, 2881, 2233, 655, 265, 2773, 1769, 202, 202, 2107, 9384, 33, 2704, 1528, 12, 3782, 2 ]
return (released || !channel ().isOpen ());
return !channel().isOpen();
public boolean isValid () { return (released || !channel ().isOpen ()); }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/1f8ad3f723ae0ef51930007ebc47611111a41f35/FileLockImpl.java/buggy/libjava/gnu/java/nio/FileLockImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 4908, 1832, 225, 288, 565, 327, 261, 9340, 72, 5411, 747, 401, 4327, 1832, 18, 291, 3678, 1832, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 4908, 1832, 225, 288, 565, 327, 261, 9340, 72, 5411, 747, 401, 4327, 1832, 18, 291, 3678, 1832, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!(result instanceof Function)) {
if (!(result instanceof Callable)) {
public static Function getNameFunctionAndThis(String name, Context cx, Scriptable scope) { Scriptable parent = scope.getParentScope(); if (parent == null) { Object result = topScopeName(cx, scope, name); if (!(result instanceof Function)) { if (result == Scriptable.NOT_FOUND) { throw notFoundError(scope, name); } else { throw notFunctionError(result, name); } } // Top scope is not NativeWith or NativeCall => thisObj == scope Scriptable thisObj = scope; storeScriptable(cx, thisObj); return (Function)result; } // name will call storeScriptable(cx, thisObj); return (Function)nameOrFunction(cx, scope, parent, name, true); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/8f901d363ed2edf31a1885784e6ea84dee079051/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4284, 1723, 2083, 1876, 2503, 12, 780, 508, 16, 4766, 5375, 1772, 9494, 16, 4766, 5375, 22780, 2146, 13, 565, 288, 3639, 22780, 982, 273, 2146, 18, 588, 3054, 3876, 5621, 3639, 309, 261, 2938, 422, 446, 13, 288, 5411, 1033, 563, 273, 1760, 3876, 461, 12, 71, 92, 16, 2146, 16, 508, 1769, 5411, 309, 16051, 12, 2088, 1276, 10464, 3719, 288, 7734, 309, 261, 2088, 422, 22780, 18, 4400, 67, 9294, 13, 288, 10792, 604, 19372, 668, 12, 4887, 16, 508, 1769, 7734, 289, 469, 288, 10792, 604, 486, 2083, 668, 12, 2088, 16, 508, 1769, 7734, 289, 5411, 289, 5411, 368, 7202, 2146, 353, 486, 16717, 1190, 578, 16717, 1477, 516, 15261, 422, 2146, 5411, 22780, 15261, 273, 2146, 31, 5411, 1707, 3651, 429, 12, 71, 92, 16, 15261, 1769, 5411, 327, 261, 2083, 13, 2088, 31, 3639, 289, 3639, 368, 508, 903, 745, 1707, 3651, 429, 12, 71, 92, 16, 15261, 1769, 3639, 327, 261, 2083, 13, 529, 1162, 2083, 12, 71, 92, 16, 2146, 16, 982, 16, 508, 16, 638, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4284, 1723, 2083, 1876, 2503, 12, 780, 508, 16, 4766, 5375, 1772, 9494, 16, 4766, 5375, 22780, 2146, 13, 565, 288, 3639, 22780, 982, 273, 2146, 18, 588, 3054, 3876, 5621, 3639, 309, 261, 2938, 422, 446, 13, 288, 5411, 1033, 563, 273, 1760, 3876, 461, 12, 71, 92, 16, 2146, 16, 508, 1769, 5411, 309, 16051, 12, 2088, 1276, 10464, 3719, 288, 7734, 309, 261, 2088, 422, 22780, 18, 4400, 67, 9294, 13, 288, 10792, 604, 19372, 668, 12, 4887, 16, 508, 1769, 7734, 289, 469, 288, 10792, 604, 486, 2083, 668, 12, 2088, 16, 508, 1769, 7734, 289, 5411, 289, 5411, 368, 7202, 2146, 353, 486, 16717, 1190, 578, 16717, 1477, 516, 15261, 422, 2 ]
if (cen.getEntity().isImmobile()) {
if (game.getOptions().booleanOption("skip_ineligable_movement") && cen.getEntity().isImmobile()) {
public MovePath calculateMoveTurn() { long enter = System.currentTimeMillis(); int initiative = 0; MoveOption min = null; System.out.println("beginning movement calculations..."); //first check and that someone else has moved so we don't replan Object[] enemy_array = this.getEnemyEntities().toArray(); for (int j = 0; j < enemy_array.length; j++) { if (!((Entity) enemy_array[j]).isSelectableThisTurn(game)) { initiative++; } } // if nobody's moved and we have a valid move waiting, use that if (initiative == enemies_moved && old_moves != null) { min = this.old_moves.getResult(); if (min == null || !min.isMoveLegal() || (min.isPhysical && centities.get(min.getPhysicalTargetId()).isPhysicalTarget)) { this.old_moves = null; System.out.println("recalculating moves since the old move was invalid"); return calculateMoveTurn(); } } else { enemies_moved = initiative; Vector possible = new Vector(); Enumeration e = game.getEntities(); while (e.hasMoreElements()) { Entity entity = (Entity) e.nextElement(); CEntity cen = centities.get(entity); cen.refresh(); firstPass(cen); } Iterator i = this.getEntitiesOwned().iterator(); boolean short_circuit = false; while (i.hasNext()) { Entity entity = (Entity) i.next(); CEntity cen = centities.get(entity); // if we can't move this entity right now, ignore it if (!game.getTurn().isValidEntity(entity, game)) { continue; } System.out.println("Contimplating movement of " + entity.getShortName() + " " + entity.getId()); MoveOption[] result = calculateMove(entity); if (cen.getEntity().isImmobile()) { cen.moved = true; } else if (!cen.moved) { if (result.length < 6 && result.length > 0) { //move to the head of the class... min = (MoveOption) result[0]; short_circuit = true; //break; } possible.add(result); } } //should ignore mechs that are not engaged //and only do the below when there are 2 or mechs left to move if (!short_circuit) { if (this.getEntitiesOwned().size() > 1) { GALance lance = new GALance(this, possible, 50, 80); lance.evolve(); min = lance.getResult(); this.old_moves = lance; } else if (((MoveOption[]) possible.elementAt(0)).length > 0) { min = ((MoveOption[]) possible.elementAt(0))[0]; } } } if (min == null) { min = new MoveOption(game, centities.get(getFirstEntityNum())); } for (int d = 0; d < enemy_array.length; d++) { Entity en = (Entity) enemy_array[d]; CEntity enemy = centities.get(en); int enemy_hit_arc = CEntity.getThreatHitArc( enemy.current.getFinalCoords(), enemy.current.getFinalFacing(), min.getFinalCoords()); MoveOption.DamageInfo di = (MoveOption.DamageInfo) min.damageInfos.get(enemy); if (di != null) { enemy.expected_damage[enemy_hit_arc] += di.min_damage; } if (enemy.expected_damage[enemy_hit_arc] > 0) { enemy.hasTakenDamage = true; } } if (min.isPhysical) { centities.get(min.getPhysicalTargetId()).isPhysicalTarget = true; } System.out.println( min.getEntity().getShortName() + " " + min.getEntity().getId() + " " + min.getFinalCoords() + " " + min.toString() + "\n Utility: " + min.getUtility() + " \n" + min.tv + "\n"); min.getCEntity().current = min; min.getCEntity().last = min; this.my_mechs_moved++; min.getCEntity().moved = true; long exit = System.currentTimeMillis(); System.out.println("move turn took " + (exit - enter) + " ms"); return min; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/1c13d807f4039e43be6cef31eac307a82da6760d/TestBot.java/clean/megamek/src/megamek/client/bot/TestBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9933, 743, 4604, 7607, 15858, 1435, 288, 3639, 1525, 6103, 273, 2332, 18, 2972, 28512, 5621, 3639, 509, 1208, 77, 1535, 273, 374, 31, 3639, 9933, 1895, 1131, 273, 446, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10086, 2093, 26017, 20882, 7070, 1769, 3639, 368, 3645, 866, 471, 716, 18626, 469, 711, 10456, 1427, 732, 2727, 1404, 6831, 304, 3639, 1033, 8526, 570, 351, 93, 67, 1126, 273, 333, 18, 588, 664, 351, 93, 8108, 7675, 31447, 5621, 3639, 364, 261, 474, 525, 273, 374, 31, 525, 411, 570, 351, 93, 67, 1126, 18, 2469, 31, 525, 27245, 288, 5411, 309, 16051, 12443, 1943, 13, 570, 351, 93, 67, 1126, 63, 78, 65, 2934, 291, 31544, 2503, 15858, 12, 13957, 3719, 288, 7734, 1208, 77, 1535, 9904, 31, 5411, 289, 3639, 289, 3639, 368, 309, 290, 947, 973, 1807, 10456, 471, 732, 1240, 279, 923, 3635, 7336, 16, 999, 716, 3639, 309, 261, 2738, 77, 1535, 422, 570, 351, 606, 67, 81, 9952, 597, 1592, 67, 81, 10829, 480, 446, 13, 288, 5411, 1131, 273, 333, 18, 1673, 67, 81, 10829, 18, 588, 1253, 5621, 5411, 309, 261, 1154, 422, 446, 7734, 747, 401, 1154, 18, 291, 7607, 30697, 1435, 7734, 747, 261, 1154, 18, 291, 18136, 597, 8301, 1961, 18, 588, 12, 1154, 18, 588, 18136, 2326, 548, 1435, 2934, 291, 18136, 2326, 3719, 288, 7734, 333, 18, 1673, 67, 81, 10829, 273, 446, 31, 7734, 2332, 18, 659, 18, 8222, 2932, 266, 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, 9933, 743, 4604, 7607, 15858, 1435, 288, 3639, 1525, 6103, 273, 2332, 18, 2972, 28512, 5621, 3639, 509, 1208, 77, 1535, 273, 374, 31, 3639, 9933, 1895, 1131, 273, 446, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 10086, 2093, 26017, 20882, 7070, 1769, 3639, 368, 3645, 866, 471, 716, 18626, 469, 711, 10456, 1427, 732, 2727, 1404, 6831, 304, 3639, 1033, 8526, 570, 351, 93, 67, 1126, 273, 333, 18, 588, 664, 351, 93, 8108, 7675, 31447, 5621, 3639, 364, 261, 474, 525, 273, 374, 31, 525, 411, 570, 351, 93, 67, 1126, 18, 2469, 31, 525, 27245, 288, 5411, 309, 16051, 12443, 1943, 13, 570, 351, 93, 67, 1126, 63, 78, 65, 2934, 291, 31544, 2 ]
public AlignmentMenu() throws Exception { GoodEvil = 50; LawfulChaotic = 50; menucreate = TLKFactory.getCreateMenu(); alignlabel = menucreate.AlignmentName; //alignlabel = parent; menucreate.BlockWindow(true); initComponents(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); if ( (screenSize.getWidth() > getContentPane().getWidth()) && (screenSize.getHeight() > getContentPane().getHeight())) { int intwidth = new Double(((screenSize.getWidth()-getContentPane().getWidth())/2)).intValue(); int intheight = new Double(((screenSize.getHeight()-getContentPane().getHeight())/2)).intValue(); setLocation(intwidth, intheight); } else { setLocation(0,0); } String restricted = menucreate.MainCharDataAux[3][classes.AlignRestrict]; String type = menucreate.MainCharDataAux[3][classes.AlignRstrctType]; String invert = menucreate.MainCharDataAux[3][classes.InvertRestrict]; // We are going to decode the alignment masks boolean evil = false; boolean good = false; boolean chaotic = false; boolean lawful = false; boolean neutral = false; boolean moral = false; boolean ethical = false; boolean inverted = false; // Handle Inversion if (invert.equalsIgnoreCase("1")) inverted = true; // Handle Types if (type.equalsIgnoreCase("0x01") || type.equalsIgnoreCase("0x1")) ethical = true; else if (type.equalsIgnoreCase("0x02") || type.equalsIgnoreCase("0x2")) moral = true; else if (type.equalsIgnoreCase("0x03") || type.equalsIgnoreCase("0x3")) { ethical = true; moral = true; } // This isn't complete as it should throw an error for an illformed // type (this assumes the other value is some form of 0). else if (!restricted.equalsIgnoreCase("0x0") && !restricted.equalsIgnoreCase("0x00") && !restricted.equalsIgnoreCase("0") && !restricted.equalsIgnoreCase("****")) { throw new Exception("Invalid Restriction Type in classes.2da."); } if (restricted.equalsIgnoreCase("0x01")) neutral = true; else if (restricted.equalsIgnoreCase("0x02")) lawful = true; else if (restricted.equalsIgnoreCase("0x03")) { neutral = true; lawful = true; } else if (restricted.equalsIgnoreCase("0x04")) chaotic = true; else if (restricted.equalsIgnoreCase("0x05")) { neutral = true; chaotic = true; } else if (restricted.equalsIgnoreCase("0x06")) { lawful = true; chaotic = true; } else if (restricted.equalsIgnoreCase("0x07")) { neutral = true; chaotic = true; lawful = true; } else if (restricted.equalsIgnoreCase("0x08")) good = true; else if (restricted.equalsIgnoreCase("0x09")) { neutral = true; good = true; } else if (restricted.equalsIgnoreCase("0x0A")) { lawful = true; good = true; } else if (restricted.equalsIgnoreCase("0x0B")) { neutral = true; lawful = true; good = true; } else if (restricted.equalsIgnoreCase("0x0C")) { chaotic = true; good = true; } else if (restricted.equalsIgnoreCase("0x0D")) { neutral = true; chaotic = true; good = true; } else if (restricted.equalsIgnoreCase("0x0E")) { lawful = true; chaotic = true; good = true; } else if (restricted.equalsIgnoreCase("0x0F")) { neutral = true; lawful = true; chaotic = true; good = true; } else if (restricted.equalsIgnoreCase("0x10")) evil = true; else if (restricted.equalsIgnoreCase("0x11")) { neutral = true; evil = true; } else if (restricted.equalsIgnoreCase("0x12")) { lawful = true; evil = true; } else if (restricted.equalsIgnoreCase("0x13")) { neutral = true; lawful = true; evil = true; } else if (restricted.equalsIgnoreCase("0x14")) { chaotic = true; evil = true; } else if (restricted.equalsIgnoreCase("0x15")) { neutral = true; chaotic = true; evil = true; } else if (restricted.equalsIgnoreCase("0x16")) { lawful = true; chaotic = true; evil = true; } else if (restricted.equalsIgnoreCase("0x17")) { neutral = true; lawful = true; chaotic = true; evil = true; } else if (restricted.equalsIgnoreCase("0x18")) { good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x19")) { neutral = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1A")) { lawful = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1B")) { neutral = true; lawful = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1C")) { chaotic = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1D")) { neutral = true; chaotic = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1E")) { lawful = true; chaotic = true; good = true; evil = true; } else if (restricted.equalsIgnoreCase("0x1F")) { neutral = true; lawful = true; chaotic = true; good = true; evil = true; } else if (!restricted.equalsIgnoreCase("0x00") && !restricted.equalsIgnoreCase("0x0") && !restricted.equalsIgnoreCase("0") && !restricted.equalsIgnoreCase("****")) { throw new Exception("Invalid Alignment Restriction in classes.2da."); } if ((good || evil) && !moral) throw new Exception("Invalid Alignment Restriction Type in classes.2da."); if ((lawful || chaotic) && !ethical) throw new Exception("Invalid Alignment Restriction Type in classes.2da."); // In normal case, set the button enables to match !inverted. // Then as the restrictions are applied, set them equal to inverted. LGButton.setEnabled(!inverted); LNButton.setEnabled(!inverted); LEButton.setEnabled(!inverted); NGButton.setEnabled(!inverted); TNButton.setEnabled(!inverted); NEButton.setEnabled(!inverted); CGButton.setEnabled(!inverted); CNButton.setEnabled(!inverted); CEButton.setEnabled(!inverted); if (evil) { LEButton.setEnabled(inverted); NEButton.setEnabled(inverted); CEButton.setEnabled(inverted); } if (good) { LGButton.setEnabled(inverted); NGButton.setEnabled(inverted); CGButton.setEnabled(inverted); } if (chaotic) { CGButton.setEnabled(inverted); CNButton.setEnabled(inverted); CEButton.setEnabled(inverted); } if (lawful) { LGButton.setEnabled(inverted); LNButton.setEnabled(inverted); LEButton.setEnabled(inverted); } if (neutral) { if (moral) { LNButton.setEnabled(inverted); TNButton.setEnabled(inverted); CNButton.setEnabled(inverted); } if (ethical) { NGButton.setEnabled(inverted); TNButton.setEnabled(inverted); NEButton.setEnabled(inverted); } } OKButton.setEnabled(false); }
9794 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9794/3eaab4b47342646ad9d1a42e4f48aab61f394361/AlignmentMenu.java/buggy/cc/cc/CharacterCreator/AlignmentMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17804, 4599, 1435, 1216, 1185, 288, 3639, 31732, 20861, 330, 273, 6437, 31, 3639, 511, 2219, 2706, 782, 69, 352, 335, 273, 6437, 31, 7734, 3824, 2640, 273, 14418, 47, 1733, 18, 588, 1684, 4599, 5621, 3639, 5689, 1925, 273, 3824, 2640, 18, 11535, 461, 31, 3639, 368, 7989, 1925, 273, 982, 31, 7734, 3824, 2640, 18, 1768, 3829, 12, 3767, 1769, 3639, 1208, 7171, 5621, 7734, 13037, 5518, 1225, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 3639, 309, 261, 261, 9252, 1225, 18, 588, 2384, 1435, 405, 5154, 8485, 7675, 588, 2384, 10756, 597, 261, 9252, 1225, 18, 588, 2686, 1435, 405, 5154, 8485, 7675, 588, 2686, 1435, 3719, 288, 5411, 509, 509, 2819, 273, 394, 3698, 12443, 12, 9252, 1225, 18, 588, 2384, 1435, 17, 588, 1350, 8485, 7675, 588, 2384, 10756, 19, 22, 13, 2934, 474, 620, 5621, 5411, 509, 316, 451, 1274, 273, 394, 3698, 12443, 12, 9252, 1225, 18, 588, 2686, 1435, 17, 588, 1350, 8485, 7675, 588, 2686, 10756, 19, 22, 13, 2934, 474, 620, 5621, 13491, 21751, 12, 474, 2819, 16, 316, 451, 1274, 1769, 3639, 289, 469, 288, 5411, 21751, 12, 20, 16, 20, 1769, 3639, 289, 7734, 514, 15693, 273, 3824, 2640, 18, 6376, 2156, 751, 21981, 63, 23, 6362, 4701, 18, 10044, 29371, 15533, 3639, 514, 618, 273, 3824, 2640, 18, 6376, 2156, 751, 21981, 63, 23, 6362, 4701, 18, 10044, 54, 701, 299, 559, 15533, 202, 202, 780, 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, 17804, 4599, 1435, 1216, 1185, 288, 3639, 31732, 20861, 330, 273, 6437, 31, 3639, 511, 2219, 2706, 782, 69, 352, 335, 273, 6437, 31, 7734, 3824, 2640, 273, 14418, 47, 1733, 18, 588, 1684, 4599, 5621, 3639, 5689, 1925, 273, 3824, 2640, 18, 11535, 461, 31, 3639, 368, 7989, 1925, 273, 982, 31, 7734, 3824, 2640, 18, 1768, 3829, 12, 3767, 1769, 3639, 1208, 7171, 5621, 7734, 13037, 5518, 1225, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 3639, 309, 261, 261, 9252, 1225, 18, 588, 2384, 1435, 405, 5154, 8485, 7675, 588, 2384, 10756, 597, 261, 9252, 1225, 18, 588, 2686, 1435, 405, 5154, 8485, 7675, 588, 2686, 1435, 3719, 288, 2 ]
(new com.ibm.math.DiagBigDecimal.Test("dvI021")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI022")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI023")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI024")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI025")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI026")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI027")).ok=((new com.ibm.math.BigDecimal("18")).divideInteger(new com.ibm.math.BigDecimal("18")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI028")).ok=((new com.ibm.math.BigDecimal("1120")).divideInteger(new com.ibm.math.BigDecimal("1000")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI029")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI030")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI031")).ok=((new com.ibm.math.BigDecimal("0.5")).divideInteger(new com.ibm.math.BigDecimal("2.000")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI032")).ok=((new com.ibm.math.BigDecimal("8.005")).divideInteger(new com.ibm.math.BigDecimal("7")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI033")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI034")).ok=((new com.ibm.math.BigDecimal("0")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI035")).ok=((new com.ibm.math.BigDecimal("0.00")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0");
(new Test("dvI021")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new Test("dvI022")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new Test("dvI023")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new Test("dvI024")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new Test("dvI025")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new Test("dvI026")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new Test("dvI027")).ok=((new com.ibm.math.BigDecimal("18")).divideInteger(new com.ibm.math.BigDecimal("18")).toString()).equals("1"); (new Test("dvI028")).ok=((new com.ibm.math.BigDecimal("1120")).divideInteger(new com.ibm.math.BigDecimal("1000")).toString()).equals("1"); (new Test("dvI029")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new Test("dvI030")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new Test("dvI031")).ok=((new com.ibm.math.BigDecimal("0.5")).divideInteger(new com.ibm.math.BigDecimal("2.000")).toString()).equals("0"); (new Test("dvI032")).ok=((new com.ibm.math.BigDecimal("8.005")).divideInteger(new com.ibm.math.BigDecimal("7")).toString()).equals("1"); (new Test("dvI033")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("2"); (new Test("dvI034")).ok=((new com.ibm.math.BigDecimal("0")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0"); (new Test("dvI035")).ok=((new com.ibm.math.BigDecimal("0.00")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0");
public void diagdivideInteger(){ boolean flag=false; java.lang.ArithmeticException ae=null; (new com.ibm.math.DiagBigDecimal.Test("dvI001")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("1"),mcdef).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI002")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("1"),mcdef).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI003")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("3"),mcdef).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI004")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("3"),mcdef).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI005")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("1"),mcdef).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI006")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("1"),mcdef).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI007")).ok=((new com.ibm.math.BigDecimal("18")).divideInteger(new com.ibm.math.BigDecimal("18"),mcdef).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI008")).ok=((new com.ibm.math.BigDecimal("1120")).divideInteger(new com.ibm.math.BigDecimal("1000"),mcdef).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI009")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("2"),mcdef).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI010")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("2"),mcdef).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI011")).ok=((new com.ibm.math.BigDecimal("0.5")).divideInteger(new com.ibm.math.BigDecimal("2.000"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI012")).ok=((new com.ibm.math.BigDecimal("8.005")).divideInteger(new com.ibm.math.BigDecimal("7"),mcdef).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI013")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2"),mcdef).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI014")).ok=((new com.ibm.math.BigDecimal("0")).divideInteger(new com.ibm.math.BigDecimal("2"),mcdef).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI015")).ok=((new com.ibm.math.BigDecimal("0.00")).divideInteger(new com.ibm.math.BigDecimal("2"),mcdef).toString()).equals("0"); // MC (new com.ibm.math.DiagBigDecimal.Test("dvI016")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2"),mce).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI017")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2"),mc6).toString()).equals("2"); // Fixed -- (new com.ibm.math.DiagBigDecimal.Test("dvI021")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI022")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("101"); (new com.ibm.math.DiagBigDecimal.Test("dvI023")).ok=((new com.ibm.math.BigDecimal("101.3")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI024")).ok=((new com.ibm.math.BigDecimal("101.0")).divideInteger(new com.ibm.math.BigDecimal("3")).toString()).equals("33"); (new com.ibm.math.DiagBigDecimal.Test("dvI025")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI026")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("1")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI027")).ok=((new com.ibm.math.BigDecimal("18")).divideInteger(new com.ibm.math.BigDecimal("18")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI028")).ok=((new com.ibm.math.BigDecimal("1120")).divideInteger(new com.ibm.math.BigDecimal("1000")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI029")).ok=((new com.ibm.math.BigDecimal("2.4")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI030")).ok=((new com.ibm.math.BigDecimal("2.400")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI031")).ok=((new com.ibm.math.BigDecimal("0.5")).divideInteger(new com.ibm.math.BigDecimal("2.000")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI032")).ok=((new com.ibm.math.BigDecimal("8.005")).divideInteger(new com.ibm.math.BigDecimal("7")).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("dvI033")).ok=((new com.ibm.math.BigDecimal("5")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("dvI034")).ok=((new com.ibm.math.BigDecimal("0")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("dvI035")).ok=((new com.ibm.math.BigDecimal("0.00")).divideInteger(new com.ibm.math.BigDecimal("2")).toString()).equals("0"); try{checknull:do{ ten.divideInteger((com.ibm.math.BigDecimal)null); flag=false; }while(false);} catch (java.lang.NullPointerException $43){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("dvI101")).ok=flag; try{checknull2:do{ ten.divideInteger(ten,(com.ibm.math.MathContext)null); flag=false; }while(false);} catch (java.lang.NullPointerException $44){ flag=true; }/*checknull2*/ (new com.ibm.math.DiagBigDecimal.Test("dvI102")).ok=flag; try{checkdigits:do{ com.ibm.math.BigDecimal.ONE.divideInteger(tenlong,mcld); flag=false; }while(false);} catch (java.lang.ArithmeticException $45){ae=$45; flag=(ae.getMessage()).equals("Too many digits:"+" "+tenlong.toString()); }/*checkdigits*/ (new com.ibm.math.DiagBigDecimal.Test("dvI103")).ok=flag; try{checkdigits:do{ tenlong.divideInteger(com.ibm.math.BigDecimal.ONE,mcld); flag=false; }while(false);} catch (java.lang.ArithmeticException $46){ae=$46; flag=(ae.getMessage()).equals("Too many digits:"+" "+tenlong.toString()); }/*checkdigits*/ (new com.ibm.math.DiagBigDecimal.Test("dvI104")).ok=flag; summary("divideInteger"); return;}
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9d7cfece10981dede4d5303274403593abc1a92d/DiagBigDecimal.java/clean/icu4j/src/com/ibm/icu/dev/test/bigdec/DiagBigDecimal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 6643, 2892, 831, 4522, 1435, 95, 225, 1250, 2982, 33, 5743, 31, 225, 2252, 18, 4936, 18, 686, 16368, 503, 14221, 33, 2011, 31, 565, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 11664, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 15168, 18, 23, 7923, 2934, 2892, 831, 4522, 12, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 21, 6, 3631, 13952, 536, 2934, 10492, 1435, 2934, 14963, 2932, 15168, 8863, 225, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 24908, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 15168, 18, 20, 7923, 2934, 2892, 831, 4522, 12, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 21, 6, 3631, 13952, 536, 2934, 10492, 1435, 2934, 14963, 2932, 15168, 8863, 225, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 25425, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 15168, 18, 23, 7923, 2934, 2892, 831, 4522, 12, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 23, 6, 3631, 13952, 536, 2934, 10492, 1435, 2934, 14963, 2932, 3707, 8863, 225, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 26565, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 15168, 18, 20, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 6643, 2892, 831, 4522, 1435, 95, 225, 1250, 2982, 33, 5743, 31, 225, 2252, 18, 4936, 18, 686, 16368, 503, 14221, 33, 2011, 31, 565, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 11664, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 15168, 18, 23, 7923, 2934, 2892, 831, 4522, 12, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2932, 21, 6, 3631, 13952, 536, 2934, 10492, 1435, 2934, 14963, 2932, 15168, 8863, 225, 261, 2704, 532, 18, 10827, 18, 15949, 18, 14058, 29436, 18, 4709, 2932, 15679, 45, 24908, 7923, 2934, 601, 33, 12443, 2704, 532, 18, 10827, 18, 15949, 18, 29436, 2 ]
if (jj_2_11(2)) {
if (jj_2_10(2)) {
final public void UnaryExpression() throws ParseException { if (jj_2_11(2)) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[51] = jj_gen; ; } jj_consume_token(LOGICAL_NOT); ASTNotNode jjtn001 = new ASTNotNode(this, JJTNOTNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { UnaryExpression(); } catch (Throwable jjte001) { if (jjtc001) { jjtree.clearNodeScope(jjtn001); jjtc001 = false; } else { jjtree.popNode(); } if (jjte001 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte001;} } if (jjte001 instanceof ParseException) { {if (true) throw (ParseException)jjte001;} } {if (true) throw (Error)jjte001;} } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, 1); } } } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACKET: case LEFT_CURLEY: case LPAREN: case WHITESPACE: case STRING_LITERAL: case TRUE: case FALSE: case NUMBER_LITERAL: case IDENTIFIER: case LCURLY: PrimaryExpression(); break; default: jj_la1[52] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/Parser.java/clean/src/java/org/apache/velocity/runtime/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 20324, 2300, 1435, 1216, 10616, 288, 565, 309, 261, 78, 78, 67, 22, 67, 2163, 12, 22, 3719, 288, 1377, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 1377, 648, 24353, 6616, 30, 3639, 10684, 67, 21224, 67, 2316, 12, 20767, 1769, 3639, 898, 31, 1377, 805, 30, 3639, 10684, 67, 11821, 21, 63, 10593, 65, 273, 10684, 67, 4507, 31, 3639, 274, 1377, 289, 1377, 10684, 67, 21224, 67, 2316, 12, 29249, 67, 4400, 1769, 4766, 10792, 9183, 1248, 907, 10684, 5088, 11664, 273, 394, 9183, 1248, 907, 12, 2211, 16, 804, 46, 56, 4400, 8744, 1769, 4766, 10792, 1250, 10684, 5111, 11664, 273, 638, 31, 4766, 10792, 10684, 3413, 18, 3190, 907, 3876, 12, 78, 78, 5088, 11664, 1769, 1377, 775, 288, 3639, 20324, 2300, 5621, 1377, 289, 1044, 261, 15155, 10684, 736, 11664, 13, 288, 4766, 10792, 309, 261, 78, 78, 5111, 11664, 13, 288, 4766, 8227, 10684, 3413, 18, 8507, 907, 3876, 12, 78, 78, 5088, 11664, 1769, 4766, 8227, 10684, 5111, 11664, 273, 629, 31, 4766, 10792, 289, 469, 288, 4766, 8227, 10684, 3413, 18, 5120, 907, 5621, 4766, 10792, 289, 4766, 10792, 309, 261, 78, 78, 736, 11664, 1276, 3235, 13, 288, 4766, 8227, 288, 430, 261, 3767, 13, 604, 261, 11949, 13, 78, 78, 736, 11664, 31, 97, 4766, 10792, 289, 4766, 10792, 309, 261, 78, 78, 736, 11664, 1276, 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, 727, 1071, 918, 20324, 2300, 1435, 1216, 10616, 288, 565, 309, 261, 78, 78, 67, 22, 67, 2163, 12, 22, 3719, 288, 1377, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 1377, 648, 24353, 6616, 30, 3639, 10684, 67, 21224, 67, 2316, 12, 20767, 1769, 3639, 898, 31, 1377, 805, 30, 3639, 10684, 67, 11821, 21, 63, 10593, 65, 273, 10684, 67, 4507, 31, 3639, 274, 1377, 289, 1377, 10684, 67, 21224, 67, 2316, 12, 29249, 67, 4400, 1769, 4766, 10792, 9183, 1248, 907, 10684, 5088, 11664, 273, 394, 9183, 1248, 907, 12, 2211, 16, 804, 46, 56, 4400, 8744, 1769, 4766, 2 ]
continue; } int b2 = data[index++] & 0xff; offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0; } if ((0xf0 & b0) == 0xe0) { int ch = ((0x0f & b0)<<12) + ((0x3f & b1)<<6) + (0x3f & b2); try { fTempBuffer[outOffset] = (char)ch; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch;
int b2 = data[index++] & 0xff; offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0;
public String toString(int offset, int length) { int outOffset = 0; UTF8DataChunk dataChunk = this; int endOffset = offset + length; int index = offset & CHUNK_MASK; byte[] data = fData; boolean skiplf = false; while (offset < endOffset) { int b0 = data[index++] & 0xff; offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0; } if (b0 < 0x80) { if (skiplf) { skiplf = false; if (b0 == 0x0A) continue; } if (b0 == 0x0D) { b0 = 0x0A; skiplf = true; } try { fTempBuffer[outOffset] = (char)b0; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)b0; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)b0; } continue; } int b1 = data[index++] & 0xff; offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0; } if ((0xe0 & b0) == 0xc0) { // 110yyyyy 10xxxxxx int ch = ((0x1f & b0)<<6) + (0x3f & b1); // yyy yyxx xxxx (0x80 to 0x7ff) try { fTempBuffer[outOffset] = (char)ch; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch; } continue; } int b2 = data[index++] & 0xff; offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0; } if ((0xf0 & b0) == 0xe0) { // 1110zzzz 10yyyyyy 10xxxxxx int ch = ((0x0f & b0)<<12) + ((0x3f & b1)<<6) + (0x3f & b2); // zzzz yyyy yyxx xxxx (0x800 to 0xffff) try { fTempBuffer[outOffset] = (char)ch; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch; } continue; } int b3 = data[index++] & 0xff; // 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx offset++; if (index == CHUNK_SIZE && offset < endOffset) { dataChunk = dataChunk.fNextChunk; data = dataChunk.fData; index = 0; } int ch = ((0x0f & b0)<<18) + ((0x3f & b1)<<12) + ((0x3f & b2)<<6) + (0x3f & b3); if (ch < 0x10000) { try { fTempBuffer[outOffset] = (char)ch; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch; } } else { char ch1 = (char)(((ch-0x00010000)>>10)+0xd800); char ch2 = (char)(((ch-0x00010000)&0x3ff)+0xdc00); try { fTempBuffer[outOffset] = (char)ch1; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch1; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch1; } try { fTempBuffer[outOffset] = (char)ch2; outOffset++; } catch (NullPointerException ex) { fTempBuffer = new char[CHUNK_SIZE]; fTempBuffer[outOffset++] = (char)ch2; } catch (ArrayIndexOutOfBoundsException ex) { char[] newBuffer = new char[outOffset * 2]; System.arraycopy(fTempBuffer, 0, newBuffer, 0, outOffset); fTempBuffer = newBuffer; fTempBuffer[outOffset++] = (char)ch2; } } } return new String(fTempBuffer, 0, outOffset); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/901cfdb554be545976df2b403c73885a393e9311/UTF8DataChunk.java/buggy/src/org/apache/xerces/utils/UTF8DataChunk.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 12, 474, 1384, 16, 509, 769, 13, 288, 3639, 509, 596, 2335, 273, 374, 31, 3639, 6380, 28, 751, 5579, 501, 5579, 273, 333, 31, 3639, 509, 25507, 273, 1384, 397, 769, 31, 3639, 509, 770, 273, 1384, 473, 28096, 67, 11704, 31, 3639, 1160, 8526, 501, 273, 284, 751, 31, 3639, 1250, 4343, 77, 412, 74, 273, 629, 31, 3639, 1323, 261, 3348, 411, 25507, 13, 288, 5411, 509, 324, 20, 273, 501, 63, 1615, 9904, 65, 473, 374, 5297, 31, 5411, 1384, 9904, 31, 5411, 309, 261, 1615, 422, 28096, 67, 4574, 597, 1384, 411, 25507, 13, 288, 7734, 501, 5579, 273, 501, 5579, 18, 74, 2134, 5579, 31, 7734, 501, 273, 501, 5579, 18, 74, 751, 31, 7734, 770, 273, 374, 31, 5411, 289, 5411, 309, 261, 70, 20, 411, 374, 92, 3672, 13, 288, 7734, 309, 261, 7771, 77, 412, 74, 13, 288, 10792, 4343, 77, 412, 74, 273, 629, 31, 10792, 309, 261, 70, 20, 422, 374, 92, 20, 37, 13, 13491, 1324, 31, 7734, 289, 7734, 309, 261, 70, 20, 422, 374, 92, 20, 40, 13, 288, 10792, 324, 20, 273, 374, 92, 20, 37, 31, 10792, 4343, 77, 412, 74, 273, 638, 31, 7734, 289, 7734, 775, 288, 10792, 284, 7185, 1892, 63, 659, 2335, 65, 273, 261, 3001, 13, 70, 20, 31, 10792, 596, 2335, 9904, 31, 7734, 289, 1044, 261, 2041, 9992, 431, 13, 288, 10792, 284, 7185, 1892, 273, 394, 1149, 63, 26464, 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, 12, 474, 1384, 16, 509, 769, 13, 288, 3639, 509, 596, 2335, 273, 374, 31, 3639, 6380, 28, 751, 5579, 501, 5579, 273, 333, 31, 3639, 509, 25507, 273, 1384, 397, 769, 31, 3639, 509, 770, 273, 1384, 473, 28096, 67, 11704, 31, 3639, 1160, 8526, 501, 273, 284, 751, 31, 3639, 1250, 4343, 77, 412, 74, 273, 629, 31, 3639, 1323, 261, 3348, 411, 25507, 13, 288, 5411, 509, 324, 20, 273, 501, 63, 1615, 9904, 65, 473, 374, 5297, 31, 5411, 1384, 9904, 31, 5411, 309, 261, 1615, 422, 28096, 67, 4574, 597, 1384, 411, 25507, 13, 288, 7734, 501, 5579, 273, 501, 5579, 18, 74, 2134, 5579, 31, 7734, 501, 273, 501, 2 ]
int code = BootImageMap.getImageAddress(bootImageAddress, instructions.getBacking()); out.println(". . code " + VM.intAsHexString(code) +
VM_Address code = BootImageMap.getImageAddress(bootImageAddress, instructions.getBacking()); out.println(". . code " + VM.addressAsHexString(code) +
private static void writeAddressMap(String mapFileName) throws IOException { if (verbose >= 1) say("writing ", mapFileName); FileOutputStream fos = new FileOutputStream(mapFileName); BufferedOutputStream bos = new BufferedOutputStream(fos, 128); PrintStream out = new PrintStream(bos, false); out.println("#! /bin/bash"); out.println("# This is a method address map, for use with the ``dbx'' debugger."); out.println("# To sort by \"code\" address, type \"bash <name-of-this-file>\"."); out.println(); out.println("(/bin/grep 'code 0x' | /bin/sort -k 4.3,4) << EOF-EOF-EOF"); out.println(); out.println("JTOC Map"); out.println("--------"); out.println("slot offset category contents details"); out.println("---- ------ -------- -------- -------"); String pad = " "; for (int jtocSlot = 0; jtocSlot < VM_Statics.getNumberOfSlots(); ++jtocSlot) { byte description = VM_Statics.getSlotDescription(jtocSlot); String category = "<?> "; String contents = "<?> " + pad; String details = "<?>"; int ival; // temporaries long lval; String sval; switch (description) { case VM_Statics.EMPTY: category = "unused "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = ""; break; case VM_Statics.INT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = VM_Statics.getSlotContentsAsInt(jtocSlot) + ""; break; case VM_Statics.FLOAT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = Float.intBitsToFloat(ival) + "F"; break; case VM_Statics.LONG_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = lval + "L"; break; case VM_Statics.DOUBLE_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = Double.longBitsToDouble(lval) + "D"; break; case VM_Statics.NUMERIC_FIELD: category = "field "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.WIDE_NUMERIC_FIELD: category = "field "; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.STRING_LITERAL: category = "literal"; contents = VM.intAsHexString(getReferenceAddr(jtocSlot)) + pad; details = "\"" + ((String) BootImageMap.getObject(getIVal(jtocSlot))).replace('\n', ' ') +"\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; contents = VM.intAsHexString(getReferenceAddr(jtocSlot)) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.METHOD: category = "code "; contents = VM.intAsHexString(getReferenceAddr(jtocSlot)) + pad; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(getIVal(jtocSlot))); details = m == null ? "<?>" : m.getMethod().toString(); break; case VM_Statics.TIB: contents = VM.intAsHexString(getReferenceAddr(jtocSlot)) + pad; category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; default: break; } out.println((jtocSlot + " ").substring(0,6) + VM.intAsHexString(jtocSlot << LOG_BYTES_IN_INT) + " " + category + " " + contents + " " + details); if ((description & VM_Statics.WIDE_TAG) != 0) jtocSlot += 1; } out.println(); out.println("Method Map"); out.println("----------"); out.println(" address method"); out.println(" ------- ------"); out.println(); VM_CompiledMethod[] compiledMethods = VM_CompiledMethods.getCompiledMethods(); for (int i = 0; i < VM_CompiledMethods.numCompiledMethods(); ++i) { VM_CompiledMethod compiledMethod = compiledMethods[i]; if (compiledMethod != null) { VM_Method m = compiledMethod.getMethod(); if (m != null && compiledMethod.isCompiled()) { VM_CodeArray instructions = compiledMethod.getInstructions(); int code = BootImageMap.getImageAddress(bootImageAddress, instructions.getBacking()); out.println(". . code " + VM.intAsHexString(code) + " " + compiledMethod.getMethod()); } } } out.println(); out.println("EOF-EOF-EOF"); out.flush(); out.close(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/3b93e733f7b4d2d9a9b8a0a101aefd639efe39ff/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 12942, 12, 1458, 4771, 1769, 565, 28649, 23904, 273, 394, 28649, 12, 5075, 16, 8038, 1769, 565, 21677, 596, 273, 394, 21677, 12, 70, 538, 16, 629, 1769, 565, 596, 18, 8222, 2932, 7, 5, 342, 4757, 19, 28734, 8863, 565, 596, 18, 8222, 2932, 7, 1220, 353, 279, 707, 1758, 852, 16, 364, 999, 598, 326, 12176, 1966, 92, 6309, 19977, 1199, 1769, 565, 596, 18, 8222, 2932, 7, 2974, 1524, 635, 1239, 710, 2412, 1758, 16, 618, 1239, 28734, 411, 529, 17, 792, 17, 2211, 17, 768, 34, 2412, 1199, 1769, 565, 596, 18, 8222, 5621, 565, 596, 18, 8222, 2932, 22624, 4757, 19, 11556, 84, 296, 710, 377, 374, 92, 11, 571, 342, 4757, 19, 3804, 300, 79, 1059, 18, 23, 16, 24, 13, 2296, 6431, 17, 12706, 17, 12706, 8863, 565, 596, 18, 8222, 5621, 565, 596, 18, 8222, 2932, 46, 4296, 39, 1635, 8863, 565, 596, 18, 8222, 2932, 788, 8863, 565, 596, 18, 8222, 2932, 14194, 225, 1384, 377, 3150, 2939, 5411, 3189, 8863, 565, 596, 18, 8222, 2932, 553, 225, 31913, 377, 27093, 27093, 5411, 18365, 8863, 565, 514, 4627, 273, 315, 3639, 13636, 565, 364, 261, 474, 525, 1391, 8764, 273, 374, 31, 540, 525, 1391, 8764, 411, 8251, 67, 5000, 2102, 18, 588, 9226, 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, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 12942, 12, 1458, 4771, 1769, 565, 28649, 23904, 273, 394, 28649, 12, 5075, 16, 8038, 1769, 565, 21677, 596, 273, 394, 21677, 12, 70, 538, 16, 629, 1769, 565, 596, 18, 8222, 2932, 7, 5, 342, 4757, 19, 28734, 8863, 565, 596, 18, 8222, 2932, 7, 1220, 353, 279, 707, 1758, 852, 16, 364, 999, 598, 326, 12176, 1966, 92, 6309, 19977, 1199, 1769, 565, 596, 18, 8222, 2932, 7, 2974, 1524, 635, 1239, 710, 2412, 1758, 16, 618, 1239, 28734, 411, 529, 17, 792, 2 ]
Logger.minor(this, "Reading...");
public synchronized byte[] getDataForBlock(Key key) throws IOException { DataBlock b = getBlockByKey(key); if (b == null) { Logger.minor(this, "Couldn't find in store"); return null; } else { Logger.minor(this, "Reading..."); return readData(b); } }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/468622124d6c873f5829a9d551c994b13f38cb37/DataStore.java/clean/src/freenet/store/DataStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 1160, 8526, 4303, 1290, 1768, 12, 653, 498, 13, 1216, 1860, 288, 202, 202, 751, 1768, 324, 273, 11902, 14560, 12, 856, 1769, 202, 202, 430, 261, 70, 422, 446, 13, 288, 1082, 565, 4242, 18, 17364, 12, 2211, 16, 315, 16342, 1404, 1104, 316, 1707, 8863, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 565, 4242, 18, 17364, 12, 2211, 16, 315, 15714, 7070, 1769, 1082, 202, 2463, 20913, 12, 70, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 1160, 8526, 4303, 1290, 1768, 12, 653, 498, 13, 1216, 1860, 288, 202, 202, 751, 1768, 324, 273, 11902, 14560, 12, 856, 1769, 202, 202, 430, 261, 70, 422, 446, 13, 288, 1082, 565, 4242, 18, 17364, 12, 2211, 16, 315, 16342, 1404, 1104, 316, 1707, 8863, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 565, 4242, 18, 17364, 12, 2211, 16, 315, 15714, 7070, 1769, 1082, 202, 2463, 20913, 12, 70, 1769, 202, 202, 97, 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 ]
AST __t616 = _t; AST tmp1183_AST_in = (AST)_t;
AST __t601 = _t; AST tmp1187_AST_in = (AST)_t;
public final void definetemptablestate(AST _t) throws RecognitionException { AST definetemptablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST bt = null; AST __t606 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case PRIVATE: case PUBLIC: case TEMPTABLE: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case TEMPTABLE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1179_AST_in = (AST)_t; match(_t,TEMPTABLE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defineTemptable(def, id); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNDO: { AST tmp1180_AST_in = (AST)_t; match(_t,UNDO); _t = _t.getNextSibling(); break; } case NOUNDO: { AST tmp1181_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case NAMESPACEURI: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEURI: { namespace_uri(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case NAMESPACEPREFIX: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACEPREFIX: { namespace_prefix(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: case REFERENCEONLY: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case REFERENCEONLY: { AST tmp1182_AST_in = (AST)_t; match(_t,REFERENCEONLY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case LIKE: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LIKE: { def_table_like(_t); _t = _retTree; break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELD: case INDEX: case LABEL: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: case BEFORETABLE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BEFORETABLE: { AST __t616 = _t; AST tmp1183_AST_in = (AST)_t; match(_t,BEFORETABLE); _t = _t.getFirstChild(); bt = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defineBuffer(bt, bt, id, false); } _t = __t616; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: case RCODEINFORMATION: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RCODEINFORMATION: { AST tmp1184_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case FIELD: case INDEX: { break; } default: { throw new NoViableAltException(_t); } } } { _loop619: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==FIELD)) { def_table_field(_t); _t = _retTree; } else { break _loop619; } } while (true); } { _loop630: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==INDEX)) { AST __t621 = _t; AST tmp1185_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); AST tmp1186_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop625: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_17.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST tmp1187_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); break; } case IS: { AST tmp1188_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); break; } case PRIMARY: case UNIQUE: case WORDINDEX: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1189_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case PRIMARY: { AST tmp1190_AST_in = (AST)_t; match(_t,PRIMARY); _t = _t.getNextSibling(); break; } case WORDINDEX: { AST tmp1191_AST_in = (AST)_t; match(_t,WORDINDEX); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop625; } } while (true); } { int _cnt629=0; _loop629: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ID)) { AST tmp1192_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop628: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASCENDING: { AST tmp1193_AST_in = (AST)_t; match(_t,ASCENDING); _t = _t.getNextSibling(); break; } case DESCENDING: { AST tmp1194_AST_in = (AST)_t; match(_t,DESCENDING); _t = _t.getNextSibling(); break; } case CASESENSITIVE: { AST tmp1195_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } default: { break _loop628; } } } while (true); } } else { if ( _cnt629>=1 ) { break _loop629; } else {throw new NoViableAltException(_t);} } _cnt629++; } while (true); } _t = __t621; _t = _t.getNextSibling(); } else { break _loop630; } } while (true); } state_end(_t); _t = _retTree; _t = __t606; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2217, 278, 5744, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2217, 278, 5744, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 1652, 273, 446, 31, 202, 202, 9053, 612, 273, 446, 31, 202, 202, 9053, 10921, 273, 446, 31, 9506, 202, 9053, 1001, 88, 4848, 26, 273, 389, 88, 31, 202, 202, 536, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 12904, 3740, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 12887, 30, 202, 202, 3593, 9777, 5879, 30, 202, 202, 95, 1082, 202, 536, 67, 11574, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 23685, 30, 202, 202, 3593, 17187, 30, 202, 202, 3593, 14028, 1856, 2782, 30, 202, 202, 3593, 4629, 26729, 30, 202, 202, 95, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 1886, 30, 202, 202, 95, 1082, 202, 12849, 394, 17114, 24899, 88, 1769, 202, 202, 97, 202, 202, 97, 202, 202, 97, 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, 482, 727, 918, 2217, 278, 5744, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2217, 278, 5744, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 1652, 273, 446, 31, 202, 202, 9053, 612, 273, 446, 31, 202, 202, 9053, 10921, 273, 446, 31, 9506, 202, 9053, 1001, 88, 4848, 26, 273, 389, 88, 31, 202, 202, 536, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 12904, 3740, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 2 ]
ExportDialog.value = list.getSelectedValues();
ExportDialog.value = list.getSelectedValues();
public void actionPerformed(ActionEvent e) { if ("Set".equals(e.getActionCommand())) { ExportDialog.value = list.getSelectedValues(); } if ("SetAll".equals(e.getActionCommand())) { list.setSelectionInterval(0, list.getModel().getSize() - 1); ExportDialog.value = list.getSelectedValues(); } ExportDialog.dialog.setVisible(false); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/e012aa1ea2f2c9a799228cc0728fbc62df3c71ab/ExportDialog.java/buggy/loci/ome/notebook/ExportDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 565, 309, 7566, 694, 9654, 14963, 12, 73, 18, 588, 1803, 2189, 1435, 3719, 288, 1377, 11054, 6353, 18, 1132, 273, 666, 18, 588, 7416, 1972, 5621, 565, 289, 565, 309, 7566, 694, 1595, 9654, 14963, 12, 73, 18, 588, 1803, 2189, 1435, 3719, 288, 1377, 666, 18, 542, 6233, 4006, 12, 20, 16, 666, 18, 588, 1488, 7675, 588, 1225, 1435, 300, 404, 1769, 21114, 202, 6144, 6353, 18, 1132, 273, 666, 18, 588, 7416, 1972, 5621, 565, 289, 565, 11054, 6353, 18, 12730, 18, 542, 6207, 12, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 565, 309, 7566, 694, 9654, 14963, 12, 73, 18, 588, 1803, 2189, 1435, 3719, 288, 1377, 11054, 6353, 18, 1132, 273, 666, 18, 588, 7416, 1972, 5621, 565, 289, 565, 309, 7566, 694, 1595, 9654, 14963, 12, 73, 18, 588, 1803, 2189, 1435, 3719, 288, 1377, 666, 18, 542, 6233, 4006, 12, 20, 16, 666, 18, 588, 1488, 7675, 588, 1225, 1435, 300, 404, 1769, 21114, 202, 6144, 6353, 18, 1132, 273, 666, 18, 588, 7416, 1972, 5621, 565, 289, 565, 11054, 6353, 18, 12730, 18, 542, 6207, 12, 5743, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
TableScriptExecutor.handleOnCreate( (TableContent) tableContent,
TableScriptExecutor.handleOnCreate( ( TableContent ) tableContent,
public void execute( ReportItemDesign item, IContentEmitter emitter ) { BirtTimer timer = new BirtTimer( ); timer.start( ); TableItemDesign tableDesign = (TableItemDesign) item; tableInfo = new TABLEINFO( tableDesign ); logger.log( Level.FINEST, "start table item" ); //$NON-NLS-1$ ITableContent tableContent = report.createTableContent( ); assert ( tableContent instanceof TableContent ); IContent parent = context.getContent( ); context.pushContent( tableContent ); logger.log( Level.FINEST, "start get table data" ); //$NON-NLS-1$ openResultSet( item ); logger.log( Level.FINEST, "end get table data" ); //$NON-NLS-1$ initializeContent( parent, item, tableContent ); processStyle( item, tableContent ); processVisibility( item, tableContent ); processBookmark( item, tableContent ); processAction( item, tableContent ); for ( int i = 0; i < tableDesign.getColumnCount( ); i++ ) { ColumnDesign columnDesign = tableDesign.getColumn( i ); Column column = new Column( ); column.setStyleClass( columnDesign.getStyleName( ) ); column.setWidth( columnDesign.getWidth( ) ); tableContent.addColumn( column ); } if ( context.isInFactory( ) ) { TableScriptExecutor.handleOnCreate( (TableContent) tableContent, context ); } if ( emitter != null ) { emitter.startTable( tableContent ); } accessQuery( tableDesign, emitter ); if ( emitter != null ) { emitter.endTable( tableContent ); } context.popContent( ); closeResultSet( ); logger.log( Level.FINEST, "end table item" ); //$NON-NLS-1$ timer.stop( ); timer.logTimeTaken( logger, Level.FINEST, context.getTaskIDString( ), "Render table" ); // $NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3ff8c8c7dcc1456137e4ae046739e5dc4d3f729d/TableItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 1350, 13476, 11520, 262, 202, 95, 202, 202, 38, 2714, 6777, 5441, 273, 394, 605, 2714, 6777, 12, 11272, 202, 202, 12542, 18, 1937, 12, 11272, 202, 202, 1388, 1180, 15478, 1014, 15478, 273, 261, 1388, 1180, 15478, 13, 761, 31, 202, 202, 2121, 966, 273, 394, 7567, 5923, 12, 1014, 15478, 11272, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 882, 16, 315, 1937, 1014, 761, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1285, 429, 1350, 1014, 1350, 273, 2605, 18, 2640, 1388, 1350, 12, 11272, 202, 202, 11231, 261, 1014, 1350, 1276, 3555, 1350, 11272, 202, 202, 45, 1350, 982, 273, 819, 18, 588, 1350, 12, 11272, 202, 202, 2472, 18, 6206, 1350, 12, 1014, 1350, 11272, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 882, 16, 315, 1937, 336, 1014, 501, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 3190, 13198, 12, 761, 11272, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 882, 16, 315, 409, 336, 1014, 501, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11160, 1350, 12, 982, 16, 761, 16, 1014, 1350, 11272, 202, 202, 2567, 2885, 12, 761, 16, 1014, 1350, 11272, 202, 202, 2567, 10135, 12, 761, 16, 1014, 1350, 11272, 202, 202, 2567, 22966, 12, 761, 16, 1014, 1350, 11272, 202, 202, 2567, 1803, 12, 761, 16, 1014, 1350, 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, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 1350, 13476, 11520, 262, 202, 95, 202, 202, 38, 2714, 6777, 5441, 273, 394, 605, 2714, 6777, 12, 11272, 202, 202, 12542, 18, 1937, 12, 11272, 202, 202, 1388, 1180, 15478, 1014, 15478, 273, 261, 1388, 1180, 15478, 13, 761, 31, 202, 202, 2121, 966, 273, 394, 7567, 5923, 12, 1014, 15478, 11272, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 882, 16, 315, 1937, 1014, 761, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1285, 429, 1350, 1014, 1350, 273, 2605, 18, 2640, 1388, 1350, 12, 11272, 202, 202, 11231, 261, 1014, 1350, 1276, 3555, 1350, 11272, 202, 202, 45, 1350, 2 ]
backgroundComputation = new OperativeComputing(this, this.debugMode);
backgroundComputation = new OperativeComputing(this);
protected synchronized void startComputation() { // Hier wird ein shutdownHook gesetzt. Dieser wird aufgerufen, wenn vom // System ein term-Signal kommt (also beim Beenden oder bei Strg+c). // Dann wird kurz aufgerumt. Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { shutdown(); } }); backgroundComputation = new OperativeComputing(this, this.debugMode); }
14082 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14082/15b850d078f9b8d59762a1e2efa2a698957db45e/OperativeImpl.java/clean/branches/logging/source/de/unistuttgart/architeuthis/operative/OperativeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 787, 7703, 367, 1435, 288, 3639, 368, 670, 2453, 341, 6909, 16315, 5731, 5394, 314, 281, 278, 94, 88, 18, 463, 606, 264, 341, 6909, 279, 696, 693, 696, 275, 16, 341, 25713, 331, 362, 3639, 368, 2332, 16315, 2481, 17, 11208, 417, 362, 1010, 261, 31144, 506, 381, 4823, 409, 275, 320, 765, 506, 77, 3978, 75, 15, 71, 2934, 3639, 368, 463, 1072, 341, 6909, 417, 295, 94, 279, 696, 693, 379, 88, 18, 3639, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 5731, 5621, 5411, 289, 3639, 15549, 3639, 5412, 7703, 367, 273, 394, 7692, 1535, 7703, 310, 12, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 787, 7703, 367, 1435, 288, 3639, 368, 670, 2453, 341, 6909, 16315, 5731, 5394, 314, 281, 278, 94, 88, 18, 463, 606, 264, 341, 6909, 279, 696, 693, 696, 275, 16, 341, 25713, 331, 362, 3639, 368, 2332, 16315, 2481, 17, 11208, 417, 362, 1010, 261, 31144, 506, 381, 4823, 409, 275, 320, 765, 506, 77, 3978, 75, 15, 71, 2934, 3639, 368, 463, 1072, 341, 6909, 417, 295, 94, 279, 696, 693, 379, 88, 18, 3639, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 5731, 5621, 5411, 289, 3639, 15549, 3639, 5412, 7703, 367, 273, 394, 7692, 1535, 7703, 310, 12, 2211, 2 ]
return Util.getCategoryText(((ProblemMarker) obj).getSeverity());
return Util.getSeverityText(((ProblemMarker) obj).getSeverity());
public String getCategoryValue(Object obj) { return Util.getCategoryText(((ProblemMarker) obj).getSeverity()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/902cef1e4f6ff0a1ab3ce58554d2b7c6d7f8c756/FieldSeverity.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 19110, 620, 12, 921, 1081, 13, 288, 202, 202, 2463, 3564, 18, 588, 4457, 1528, 12443, 12, 13719, 7078, 13, 1081, 2934, 588, 21630, 10663, 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, 225, 202, 482, 514, 19110, 620, 12, 921, 1081, 13, 288, 202, 202, 2463, 3564, 18, 588, 4457, 1528, 12443, 12, 13719, 7078, 13, 1081, 2934, 588, 21630, 10663, 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 ]
enforceInvariants(job, pass);
try { enforceInvariants(job, pass); } catch (CyclicDependencyException e) { return; }
protected void runPass(Job job, Pass pass) { // make sure that all scheduling invariants are satisfied before running // the next pass. We may thus execute some other passes on other // jobs running the given pass. enforceInvariants(job, pass); if (getOptions().disable_passes.contains(pass.name())) { if (Report.should_report(Report.frontend, 1)) Report.report(1, "Skipping pass " + pass); job.finishPass(pass, true); return; } if (Report.should_report(Report.frontend, 1)) Report.report(1, "Trying to run pass " + pass + " in " + job); if (job.isRunning()) { // We're currently running. We can't reach the goal. throw new InternalCompilerError(job + " cannot reach pass " + pass); } pass.resetTimers(); boolean result = false; if (job.status()) { Job oldCurrentJob = this.currentJob; this.currentJob = job; Report.should_report.push(pass.name()); // Stop the timer on the old pass. */ Pass oldPass = oldCurrentJob != null ? oldCurrentJob.runningPass() : null; if (oldPass != null) { oldPass.toggleTimers(true); } job.setRunningPass(pass); pass.toggleTimers(false); result = pass.run(); pass.toggleTimers(false); job.setRunningPass(null); Report.should_report.pop(); this.currentJob = oldCurrentJob; // Restart the timer on the old pass. */ if (oldPass != null) { oldPass.toggleTimers(true); } // pretty-print this pass if we need to. if (getOptions().print_ast.contains(pass.name())) { System.err.println("--------------------------------" + "--------------------------------"); System.err.println("Pretty-printing AST for " + job + " after " + pass.name()); PrettyPrinter pp = new PrettyPrinter(); pp.printAst(job.ast(), new CodeWriter(System.err, 78)); } // dump this pass if we need to. if (getOptions().dump_ast.contains(pass.name())) { System.err.println("--------------------------------" + "--------------------------------"); System.err.println("Dumping AST for " + job + " after " + pass.name()); NodeVisitor dumper = new DumpAst(new CodeWriter(System.err, 78)); dumper = dumper.begin(); job.ast().visit(dumper); dumper.finish(); } // This seems to work around a VM bug on linux with JDK // 1.4.0. The mark-sweep collector will sometimes crash. // Running the GC explicitly here makes the bug go away. // If this fails, maybe run with bigger heap. // System.gc(); } Stats stats = getStats(); stats.accumPassTimes(pass.id(), pass.inclusiveTime(), pass.exclusiveTime()); if (Report.should_report(Report.time, 2)) { Report.report(2, "Finished " + pass + " status=" + str(result) + " inclusive_time=" + pass.inclusiveTime() + " exclusive_time=" + pass.exclusiveTime()); } else if (Report.should_report(Report.frontend, 1)) { Report.report(1, "Finished " + pass + " status=" + str(result)); } job.finishPass(pass, result); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/bd3b42070e13f0ae891a52b0b45e76436f5618b7/AbstractExtensionInfo.java/clean/src/polyglot/frontend/AbstractExtensionInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1086, 6433, 12, 2278, 1719, 16, 10311, 1342, 13, 288, 3639, 368, 1221, 3071, 716, 777, 21895, 316, 15886, 854, 18958, 1865, 3549, 3639, 368, 326, 1024, 1342, 18, 1660, 2026, 12493, 1836, 2690, 1308, 11656, 603, 1308, 3639, 368, 6550, 3549, 326, 864, 1342, 18, 3639, 775, 288, 12980, 382, 15886, 12, 4688, 16, 1342, 1769, 289, 1044, 261, 17992, 18964, 7787, 503, 425, 13, 288, 1377, 327, 31, 289, 3639, 309, 261, 588, 1320, 7675, 8394, 67, 5466, 281, 18, 12298, 12, 5466, 18, 529, 1435, 3719, 288, 5411, 309, 261, 4820, 18, 13139, 67, 6006, 12, 4820, 18, 19960, 16, 404, 3719, 7734, 8706, 18, 6006, 12, 21, 16, 315, 16877, 1342, 315, 397, 1342, 1769, 5411, 1719, 18, 13749, 6433, 12, 5466, 16, 638, 1769, 5411, 327, 31, 3639, 289, 3639, 309, 261, 4820, 18, 13139, 67, 6006, 12, 4820, 18, 19960, 16, 404, 3719, 5411, 8706, 18, 6006, 12, 21, 16, 315, 18038, 358, 1086, 1342, 315, 397, 1342, 397, 315, 316, 315, 397, 1719, 1769, 3639, 309, 261, 4688, 18, 291, 7051, 10756, 288, 5411, 368, 1660, 4565, 4551, 3549, 18, 225, 1660, 848, 1404, 9287, 326, 17683, 18, 5411, 604, 394, 3186, 9213, 668, 12, 4688, 397, 4766, 5411, 315, 2780, 9287, 1342, 315, 397, 4766, 5411, 1342, 1769, 3639, 289, 3639, 1342, 18, 6208, 10178, 414, 5621, 3639, 1250, 563, 273, 629, 31, 3639, 309, 261, 4688, 18, 2327, 10756, 288, 5411, 3956, 1592, 3935, 2278, 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, 1086, 6433, 12, 2278, 1719, 16, 10311, 1342, 13, 288, 3639, 368, 1221, 3071, 716, 777, 21895, 316, 15886, 854, 18958, 1865, 3549, 3639, 368, 326, 1024, 1342, 18, 1660, 2026, 12493, 1836, 2690, 1308, 11656, 603, 1308, 3639, 368, 6550, 3549, 326, 864, 1342, 18, 3639, 775, 288, 12980, 382, 15886, 12, 4688, 16, 1342, 1769, 289, 1044, 261, 17992, 18964, 7787, 503, 425, 13, 288, 1377, 327, 31, 289, 3639, 309, 261, 588, 1320, 7675, 8394, 67, 5466, 281, 18, 12298, 12, 5466, 18, 529, 1435, 3719, 288, 5411, 309, 261, 4820, 18, 13139, 67, 6006, 12, 4820, 18, 19960, 16, 404, 3719, 7734, 8706, 18, 6006, 12, 21, 16, 315, 16877, 1342, 315, 2 ]
if (queries[i] != null)
if (queries[i] != null && queries[i] instanceof IQueryDefinition)
public void visitExtendedItem( ExtendedItemDesign item ) { //create user-defined generation-time helper object ExtendedItemHandle handle = (ExtendedItemHandle) item.getHandle( ); String tagName = handle.getExtensionName( ); // TODO: check in plugin registry whetherthe needQuery property is // set to host or item. // Only do the following for "host" IReportItemQuery itemQuery = ExtensionManager.getInstance( ) .createQueryItem( tagName ); IBaseQueryDefinition[] queries = null; IBaseQueryDefinition parentQuery = getParentQuery( ); if ( itemQuery != null ) { try { itemQuery.setModelObject( handle ); queries = itemQuery.getReportQueries( parentQuery ); } catch ( BirtException ex ) { logger.log(Level.WARNING, ex.getMessage(), ex); } if ( queries != null ) { item.setQueries(queries); for ( int i = 0; i < queries.length; i++ ) { if (queries[i] != null) { this.queries.add( queries[i] ); } } if (queries.length > 0) { IBaseQueryDefinition query = queries[0]; if (query != null) { item.setQuery( query ); pushQuery( query ); pushExpressions( query.getRowExpressions( ) ); handleReportItemExpressions( item ); // handleActionExpressions(item.getAction()); popExpressions( ); popQuery( ); } } } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d37332e771f2684d1bc03325a42d86fe794783b9/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 11456, 1180, 12, 14094, 1180, 15478, 761, 262, 202, 202, 95, 1082, 202, 759, 2640, 729, 17, 2178, 9377, 17, 957, 4222, 733, 1082, 202, 11456, 1180, 3259, 1640, 273, 261, 11456, 1180, 3259, 13, 761, 18, 588, 3259, 12, 11272, 1082, 202, 780, 7196, 273, 1640, 18, 588, 3625, 461, 12, 11272, 1082, 202, 759, 2660, 30, 866, 316, 1909, 4023, 2856, 5787, 1608, 1138, 1272, 353, 1082, 202, 759, 444, 358, 1479, 578, 761, 18, 1082, 202, 759, 5098, 741, 326, 3751, 364, 315, 2564, 6, 1082, 202, 45, 4820, 1180, 1138, 761, 1138, 273, 10021, 1318, 18, 588, 1442, 12, 262, 6862, 202, 18, 2640, 1138, 1180, 12, 7196, 11272, 1082, 202, 45, 2171, 1138, 1852, 8526, 6218, 273, 446, 31, 1082, 202, 45, 2171, 1138, 1852, 982, 1138, 273, 5089, 1138, 12, 11272, 1082, 202, 430, 261, 761, 1138, 480, 446, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 1726, 1138, 18, 542, 1488, 921, 12, 1640, 11272, 6862, 202, 13748, 273, 761, 1138, 18, 588, 4820, 9592, 12, 982, 1138, 11272, 6862, 6862, 202, 97, 9506, 202, 14683, 261, 605, 2714, 503, 431, 262, 9506, 202, 95, 6862, 202, 4901, 18, 1330, 12, 2355, 18, 9511, 16, 431, 18, 24906, 9334, 431, 1769, 9506, 202, 97, 9506, 202, 430, 261, 6218, 480, 446, 262, 9506, 202, 95, 6862, 202, 1726, 18, 542, 9592, 12, 13748, 1769, 6862, 202, 1884, 261, 509, 277, 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, 3196, 202, 482, 918, 3757, 11456, 1180, 12, 14094, 1180, 15478, 761, 262, 202, 202, 95, 1082, 202, 759, 2640, 729, 17, 2178, 9377, 17, 957, 4222, 733, 1082, 202, 11456, 1180, 3259, 1640, 273, 261, 11456, 1180, 3259, 13, 761, 18, 588, 3259, 12, 11272, 1082, 202, 780, 7196, 273, 1640, 18, 588, 3625, 461, 12, 11272, 1082, 202, 759, 2660, 30, 866, 316, 1909, 4023, 2856, 5787, 1608, 1138, 1272, 353, 1082, 202, 759, 444, 358, 1479, 578, 761, 18, 1082, 202, 759, 5098, 741, 326, 3751, 364, 315, 2564, 6, 1082, 202, 45, 4820, 1180, 1138, 761, 1138, 273, 10021, 1318, 18, 588, 1442, 12, 262, 6862, 202, 18, 2640, 1138, 1180, 12, 7196, 11272, 1082, 2 ]
public void declaratorBrackets() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:251:17: ( ( LBRACK RBRACK )* ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:251:17: ( LBRACK RBRACK )* { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:251:17: ( LBRACK RBRACK )* loop24: do { int alt24=2; int LA24_0 = input.LA(1); if ( LA24_0==LBRACK ) { alt24=1; } switch (alt24) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:251:18: LBRACK RBRACK { match(input,LBRACK,FOLLOW_LBRACK_in_declaratorBrackets912); match(input,RBRACK,FOLLOW_RBRACK_in_declaratorBrackets915); } break; default : break loop24; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3496, 5880, 23029, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 2947, 21, 30, 4033, 30, 261, 261, 511, 7192, 3649, 534, 7192, 3649, 8618, 262, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 2947, 21, 30, 4033, 30, 261, 511, 7192, 3649, 534, 7192, 3649, 8618, 95, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 2947, 21, 30, 4033, 30, 261, 511, 7192, 3649, 534, 7192, 3649, 8618, 6498, 3247, 30, 2896, 288, 474, 3770, 3247, 33, 22, 31, 474, 2928, 3247, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 430, 261, 2928, 3247, 67, 20, 631, 48, 7192, 3649, 262, 288, 2390, 3247, 33, 21, 31, 97, 9610, 261, 2390, 3247, 13, 288, 202, 3593, 404, 294, 202, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3496, 5880, 23029, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 2947, 21, 30, 4033, 30, 261, 261, 511, 7192, 3649, 534, 7192, 3649, 8618, 262, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 6290, 18, 75, 30, 2947, 21, 30, 4033, 30, 261, 511, 7192, 3649, 534, 7192, 3649, 8618, 95, 2 ]
if(key.getKeyScope()==ChannelCacheKey.SYSTEM_KEY_SCOPE) { systemCache.put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded system cache based on a key \""+key.getKey()+"\""); } else { getChannelCache().put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded instance cache based on a key \""+key.getKey()+"\"");
if(key.getKeyScope()==ChannelCacheKey.SYSTEM_KEY_SCOPE) { systemCache.put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded system cache based on a key \""+key.getKey()+"\""); } else { getChannelCache().put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded instance cache based on a key \""+key.getKey()+"\""); }
public void run () { try { if(rd!=null) { channel.setRuntimeData(rd); } setRuntimeDataComplete=true; if(groupSemaphore!=null) { groupSemaphore.checkInAndWaitOn(groupRenderingKey); } if(CACHE_CHANNELS) { // try to obtain rendering from cache if(channel instanceof ICacheable ) { ChannelCacheKey key=((ICacheable)channel).generateKey(); if(key!=null) { if(key.getKeyScope()==ChannelCacheKey.SYSTEM_KEY_SCOPE) { ChannelCacheEntry entry=(ChannelCacheEntry)systemCache.get(key.getKey()); if(entry!=null) { // found cached page // check page validity if(((ICacheable)channel).isCacheValid(entry.validity) && (entry.buffer!=null)) { // use it if(ccacheable && (entry.buffer instanceof String)) { cbuffer=(String)entry.buffer; LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : retrieved system-wide cached character content based on a key \""+key.getKey()+"\""); } else if(entry.buffer instanceof SAX2BufferImpl) { buffer=(SAX2BufferImpl) entry.buffer; LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : retrieved system-wide cached content based on a key \""+key.getKey()+"\""); } } else { // remove it systemCache.remove(key.getKey()); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : removed system-wide unvalidated cache based on a key \""+key.getKey()+"\""); } } } else { // by default we assume INSTANCE_KEY_SCOPE ChannelCacheEntry entry=(ChannelCacheEntry)getChannelCache().get(key.getKey()); if(entry!=null) { // found cached page // check page validity if(((ICacheable)channel).isCacheValid(entry.validity) && (entry.buffer!=null)) { // use it if(ccacheable && (entry.buffer instanceof String)) { cbuffer=(String)entry.buffer; LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : retrieved instance-cached character content based on a key \""+key.getKey()+"\""); } else if(entry.buffer instanceof SAX2BufferImpl) { buffer=(SAX2BufferImpl) entry.buffer; LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : retrieved instance-cached content based on a key \""+key.getKey()+"\""); } } else { // remove it getChannelCache().remove(key.getKey()); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : removed unvalidated instance-cache based on a key \""+key.getKey()+"\""); } } } } // future work: here we should synchronize based on a particular cache key. // Imagine a VERY popular cache entry timing out, then portal will attempt // to re-render the page in many threads (serving many requests) simultaneously. // If one was to synchronize on writing cache for a particular key, one thread // would render and others would wait for it to complete. // check if need to render if((ccacheable && cbuffer==null && buffer==null) || ((!ccacheable) && buffer==null)) { // need to render again and cache the output buffer = new SAX2BufferImpl (); buffer.startBuffering(); channel.renderXML(buffer); // save cache if(key!=null) { if(key.getKeyScope()==ChannelCacheKey.SYSTEM_KEY_SCOPE) { systemCache.put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded system cache based on a key \""+key.getKey()+"\""); } else { getChannelCache().put(key.getKey(),new ChannelCacheEntry(buffer,key.getKeyValidity())); LogService.log(LogService.DEBUG,"ChannelRenderer.Worker::run() : recorded instance cache based on a key \""+key.getKey()+"\""); } } } } else { buffer = new SAX2BufferImpl (); buffer.startBuffering(); channel.renderXML(buffer); } } else { // in the case when channel cache is not enabled buffer = new SAX2BufferImpl (); buffer.startBuffering(); channel.renderXML (buffer); } successful = true; } catch (Exception e) { if(groupSemaphore!=null) { groupSemaphore.checkIn(groupRenderingKey); } this.setException(e); } done = true; }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/b10491bffd0f5a43e6b2d8880f44bc6717ce53f4/ChannelRenderer.java/clean/source/org/jasig/portal/ChannelRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1832, 288, 5411, 775, 288, 7734, 309, 12, 13623, 5, 33, 2011, 13, 288, 10792, 1904, 18, 542, 5576, 751, 12, 13623, 1769, 7734, 289, 7734, 444, 5576, 751, 6322, 33, 3767, 31, 27573, 309, 12, 1655, 13185, 18837, 5, 33, 2011, 13, 288, 10792, 1041, 13185, 18837, 18, 1893, 382, 1876, 5480, 1398, 12, 1655, 14261, 653, 1769, 7734, 289, 7734, 309, 12, 8495, 67, 15814, 55, 13, 288, 10792, 368, 775, 358, 7161, 9782, 628, 1247, 10792, 309, 12, 4327, 1276, 467, 1649, 429, 262, 288, 13491, 5307, 15554, 498, 33, 12443, 45, 1649, 429, 13, 4327, 2934, 7163, 653, 5621, 13491, 309, 12, 856, 5, 33, 2011, 13, 288, 18701, 309, 12, 856, 18, 588, 653, 3876, 1435, 631, 2909, 15554, 18, 14318, 67, 3297, 67, 19444, 13, 288, 27573, 5307, 27630, 1241, 28657, 2909, 27630, 13, 4299, 1649, 18, 588, 12, 856, 18, 588, 653, 10663, 27573, 309, 12, 4099, 5, 33, 2011, 13, 288, 4766, 565, 368, 1392, 3472, 1363, 4766, 565, 368, 866, 1363, 13800, 4766, 565, 309, 12443, 12, 45, 1649, 429, 13, 4327, 2934, 291, 1649, 1556, 12, 4099, 18, 877, 560, 13, 597, 261, 4099, 18, 4106, 5, 33, 2011, 3719, 288, 4766, 3639, 368, 999, 518, 4766, 3639, 309, 12, 952, 807, 429, 597, 261, 4099, 18, 4106, 1276, 514, 3719, 288, 4766, 5411, 2875, 962, 28657, 780, 13, 4099, 18, 4106, 31, 4766, 5411, 1827, 1179, 18, 1330, 12, 1343, 1179, 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, 540, 1071, 918, 1086, 1832, 288, 5411, 775, 288, 7734, 309, 12, 13623, 5, 33, 2011, 13, 288, 10792, 1904, 18, 542, 5576, 751, 12, 13623, 1769, 7734, 289, 7734, 444, 5576, 751, 6322, 33, 3767, 31, 27573, 309, 12, 1655, 13185, 18837, 5, 33, 2011, 13, 288, 10792, 1041, 13185, 18837, 18, 1893, 382, 1876, 5480, 1398, 12, 1655, 14261, 653, 1769, 7734, 289, 7734, 309, 12, 8495, 67, 15814, 55, 13, 288, 10792, 368, 775, 358, 7161, 9782, 628, 1247, 10792, 309, 12, 4327, 1276, 467, 1649, 429, 262, 288, 13491, 5307, 15554, 498, 33, 12443, 45, 1649, 429, 13, 4327, 2934, 7163, 653, 5621, 13491, 309, 12, 856, 5, 33, 2011, 13, 288, 18701, 309, 12, 2 ]
file = _file; fileStream = new FileInputStream(_file);
FileInputStream is = null; try{ is = new FileInputStream(_file);
public RegexTaglist (String _file) throws Exception { file = _file; fileStream = new FileInputStream(_file); FileChannel fc = fileStream.getChannel(); ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, (int)fc.size()); Charset cs = Charset.forName(new InputStreamReader(fileStream).getEncoding()); CharsetDecoder cd = cs.newDecoder(); fileBuffer = cd.decode(bb); offsets = FileOffsets.compile(_file); }
45354 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45354/bebc15518c6b7e5a9f85a460b82b8ed9c985f084/RegexTaglist.java/buggy/src/java/org/eclim/command/taglist/RegexTaglist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 15078, 1805, 1098, 261, 780, 389, 768, 13, 565, 1216, 1185, 225, 288, 565, 585, 273, 389, 768, 31, 565, 585, 1228, 273, 394, 11907, 24899, 768, 1769, 565, 1387, 2909, 8036, 273, 585, 1228, 18, 588, 2909, 5621, 565, 7400, 7129, 273, 8036, 18, 1458, 12, 812, 2909, 18, 863, 2309, 18, 6949, 67, 10857, 16, 374, 16, 261, 474, 13, 7142, 18, 1467, 10663, 565, 12080, 2873, 273, 12080, 18, 1884, 461, 12, 2704, 15322, 12, 768, 1228, 2934, 588, 4705, 10663, 565, 12080, 7975, 7976, 273, 2873, 18, 2704, 7975, 5621, 565, 585, 1892, 273, 7976, 18, 3922, 12, 9897, 1769, 565, 8738, 273, 1387, 13830, 18, 11100, 24899, 768, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 15078, 1805, 1098, 261, 780, 389, 768, 13, 565, 1216, 1185, 225, 288, 565, 585, 273, 389, 768, 31, 565, 585, 1228, 273, 394, 11907, 24899, 768, 1769, 565, 1387, 2909, 8036, 273, 585, 1228, 18, 588, 2909, 5621, 565, 7400, 7129, 273, 8036, 18, 1458, 12, 812, 2909, 18, 863, 2309, 18, 6949, 67, 10857, 16, 374, 16, 261, 474, 13, 7142, 18, 1467, 10663, 565, 12080, 2873, 273, 12080, 18, 1884, 461, 12, 2704, 15322, 12, 768, 1228, 2934, 588, 4705, 10663, 565, 12080, 7975, 7976, 273, 2873, 18, 2704, 7975, 5621, 565, 585, 1892, 273, 7976, 18, 3922, 12, 9897, 1769, 565, 8738, 273, 1387, 13830, 18, 11100, 24899, 768, 1769, 225, 289, 2, -100 ]
if (r > max) {
if ((r == p.size()-1) && (r > max)) {
List prefixMatch(Pattern currentPattern) { int max = 0; Pattern longestMatchingPattern = null; for (Pattern p: rules.keySet()) { String last = p.peekLast(); if("*".equals(last)) { int r = currentPattern.getPrefixMatchLength(p); //System.out.println("prefixMatch " +r); if (r > max) { //System.out.println("New longest prefixMatch "+p); max = r; longestMatchingPattern = p; } } } if (longestMatchingPattern != null) { //System.out.println("prefixMatch will return" +rules.get(longestMatchingPattern)); return rules.get(longestMatchingPattern); } else { return null; } }
48264 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48264/b17afdd922fb715ce4d262907d6b474541e9bd32/SimpleRuleStore.java/clean/logback-core/src/main/java/ch/qos/logback/core/joran/spi/SimpleRuleStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 987, 1633, 2060, 12, 3234, 783, 3234, 13, 288, 565, 509, 943, 273, 374, 31, 565, 6830, 12163, 9517, 3234, 273, 446, 31, 565, 364, 261, 3234, 293, 30, 2931, 18, 856, 694, 10756, 288, 1377, 514, 1142, 273, 293, 18, 347, 3839, 3024, 5621, 1377, 309, 2932, 7388, 18, 14963, 12, 2722, 3719, 288, 3639, 509, 436, 273, 783, 3234, 18, 588, 2244, 2060, 1782, 12, 84, 1769, 3639, 368, 3163, 18, 659, 18, 8222, 2932, 3239, 2060, 315, 397, 86, 1769, 1850, 309, 14015, 86, 422, 293, 18, 1467, 1435, 17, 21, 13, 597, 261, 86, 405, 943, 3719, 288, 1850, 368, 3163, 18, 659, 18, 8222, 2932, 1908, 12163, 1633, 2060, 13773, 84, 1769, 1850, 943, 273, 436, 31, 1850, 12163, 9517, 3234, 273, 293, 31, 3639, 289, 1377, 289, 565, 289, 565, 309, 261, 5748, 395, 9517, 3234, 480, 446, 13, 288, 1377, 368, 3163, 18, 659, 18, 8222, 2932, 3239, 2060, 903, 327, 6, 397, 7482, 18, 588, 12, 5748, 395, 9517, 3234, 10019, 1377, 327, 2931, 18, 588, 12, 5748, 395, 9517, 3234, 1769, 565, 289, 469, 288, 1377, 327, 446, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 987, 1633, 2060, 12, 3234, 783, 3234, 13, 288, 565, 509, 943, 273, 374, 31, 565, 6830, 12163, 9517, 3234, 273, 446, 31, 565, 364, 261, 3234, 293, 30, 2931, 18, 856, 694, 10756, 288, 1377, 514, 1142, 273, 293, 18, 347, 3839, 3024, 5621, 1377, 309, 2932, 7388, 18, 14963, 12, 2722, 3719, 288, 3639, 509, 436, 273, 783, 3234, 18, 588, 2244, 2060, 1782, 12, 84, 1769, 3639, 368, 3163, 18, 659, 18, 8222, 2932, 3239, 2060, 315, 397, 86, 1769, 1850, 309, 14015, 86, 422, 293, 18, 1467, 1435, 17, 21, 13, 597, 261, 86, 405, 943, 3719, 288, 1850, 368, 3163, 18, 659, 18, 8222, 2932, 1908, 12163, 1633, 2060, 13773, 84, 1769, 1850, 2 ]
System.out.println(win);
System.out.println(win);
public static void main(String[] args) { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333); win.add(sender1, 1); win.add(sender1, 2); win.add(sender3, 2); win.add(sender2, 2); win.add(sender4, 2); win.add(sender1, 3); win.add(sender1, 2); System.out.println(win); win.suspect(sender1); System.out.println(win); win.add(sender1, 1); win.add(sender1, 2); win.add(sender1, 3); win.add(sender1, 4); win.add(sender1, 5); win.add(sender1, 6); win.add(sender1, 7); win.add(sender1, 8); System.out.println(win); Vector seqnos=new Vector(); seqnos.addElement(new Long(4)); seqnos.addElement(new Long(6)); seqnos.addElement(new Long(8)); win.remove(sender2, seqnos); System.out.println(win); win.remove(sender1, seqnos); System.out.println(win); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/d87286058cfcbdd88699897608edd017b16ae389/AckMcastReceiverWindow.java/buggy/src/org/jgroups/stack/AckMcastReceiverWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 11931, 49, 4155, 12952, 3829, 5657, 33, 2704, 22322, 49, 4155, 12952, 3829, 5621, 202, 1887, 5793, 21, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 16344, 21, 1769, 202, 1887, 5793, 22, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 1059, 6334, 24, 1769, 202, 1887, 5793, 23, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 1666, 6669, 27, 1769, 202, 1887, 5793, 24, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 890, 3707, 23, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 404, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 23, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 22, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 24, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 890, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 576, 1769, 202, 3163, 18, 659, 18, 8222, 12, 8082, 1769, 202, 8082, 18, 87, 407, 1181, 12, 15330, 21, 1769, 202, 3163, 18, 659, 18, 8222, 12, 8082, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 404, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 890, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 1059, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 1381, 1769, 202, 8082, 18, 1289, 12, 15330, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 11931, 49, 4155, 12952, 3829, 5657, 33, 2704, 22322, 49, 4155, 12952, 3829, 5621, 202, 1887, 5793, 21, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 16344, 21, 1769, 202, 1887, 5793, 22, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 1059, 6334, 24, 1769, 202, 1887, 5793, 23, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 1666, 6669, 27, 1769, 202, 1887, 5793, 24, 33, 2704, 14709, 1887, 2932, 78, 304, 278, 3113, 890, 3707, 23, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 404, 1769, 202, 8082, 18, 1289, 12, 15330, 21, 16, 576, 1769, 202, 8082, 18, 1289, 12, 15330, 2 ]
final TemplatesImpl templates = new TemplatesImpl(xsltc.getBytecodes(), transletName,
final TemplatesImpl templates = new TemplatesImpl(xsltc.getBytecodes(), transletName,
public Templates getTemplates() { try { final XSLTC xsltc = getXSLTC(); // Set a document loader (for xsl:include/import) if defined if (_uriResolver != null) { xsltc.setSourceLoader(this); } // Set the translet class name if not already set String transletName = null; if (_systemId != null) { transletName = Util.baseName(_systemId); } else { transletName = (String)_tfactory.getAttribute("translet-name"); } xsltc.setClassName(transletName); // Get java-legal class name from XSLTC module transletName = xsltc.getClassName(); Stylesheet stylesheet = null; SyntaxTreeNode root = getDocumentRoot(); // Compile the translet - this is where the work is done! if (!errorsFound() && root != null) { // Create a Stylesheet element from the root node stylesheet = makeStylesheet(root); stylesheet.setSystemId(_systemId); stylesheet.setParentStylesheet(null); setCurrentStylesheet(stylesheet); // Set it as top-level in the XSLTC object xsltc.setStylesheet(stylesheet); // Create AST under the Stylesheet element createAST(stylesheet); } // Generate the bytecodes and output the translet class(es) if (!errorsFound() && stylesheet != null) { stylesheet.setMultiDocument(xsltc.isMultiDocument()); stylesheet.translate(); } if (!errorsFound()) { // Check that the transformation went well before returning final byte[][] bytecodes = xsltc.getBytecodes(); if (bytecodes != null) { final TemplatesImpl templates = new TemplatesImpl(xsltc.getBytecodes(), transletName, getOutputProperties(), _indentNumber, _tfactory); // Set URIResolver on templates object if (_uriResolver != null) { templates.setURIResolver(_uriResolver); } return templates; } } } catch (CompilerException e) { // falls through } return null; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/650d589e772deafbd7ea76f08c5d3551c36d5f4b/TemplatesHandlerImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TemplatesHandlerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26212, 336, 8218, 1435, 288, 202, 698, 288, 202, 565, 727, 17243, 15988, 20791, 5111, 273, 6538, 4559, 15988, 5621, 202, 565, 368, 1000, 279, 1668, 4088, 261, 1884, 20791, 30, 6702, 19, 5666, 13, 309, 2553, 202, 565, 309, 261, 67, 1650, 4301, 480, 446, 13, 288, 202, 202, 30903, 5111, 18, 542, 1830, 2886, 12, 2211, 1769, 202, 565, 289, 202, 565, 368, 1000, 326, 906, 1810, 667, 508, 309, 486, 1818, 444, 202, 565, 514, 906, 1810, 461, 273, 446, 31, 202, 565, 309, 261, 67, 4299, 548, 480, 446, 13, 288, 202, 202, 2338, 1810, 461, 273, 3564, 18, 1969, 461, 24899, 4299, 548, 1769, 202, 565, 289, 202, 565, 469, 288, 202, 377, 202, 2338, 1810, 461, 273, 261, 780, 13, 67, 88, 6848, 18, 588, 1499, 2932, 2338, 1810, 17, 529, 8863, 202, 565, 289, 202, 565, 20791, 5111, 18, 542, 3834, 12, 2338, 1810, 461, 1769, 202, 565, 368, 968, 2252, 17, 2013, 667, 508, 628, 17243, 15988, 1605, 202, 565, 906, 1810, 461, 273, 20791, 5111, 18, 588, 3834, 5621, 202, 565, 29483, 2963, 13820, 273, 446, 31, 202, 565, 11517, 12513, 1365, 273, 9956, 2375, 5621, 202, 565, 368, 16143, 326, 906, 1810, 300, 333, 353, 1625, 326, 1440, 353, 2731, 5, 202, 565, 309, 16051, 4324, 2043, 1435, 597, 1365, 480, 446, 13, 288, 202, 202, 759, 1788, 279, 29483, 2963, 930, 628, 326, 1365, 756, 202, 202, 19403, 273, 1221, 24656, 12, 3085, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26212, 336, 8218, 1435, 288, 202, 698, 288, 202, 565, 727, 17243, 15988, 20791, 5111, 273, 6538, 4559, 15988, 5621, 202, 565, 368, 1000, 279, 1668, 4088, 261, 1884, 20791, 30, 6702, 19, 5666, 13, 309, 2553, 202, 565, 309, 261, 67, 1650, 4301, 480, 446, 13, 288, 202, 202, 30903, 5111, 18, 542, 1830, 2886, 12, 2211, 1769, 202, 565, 289, 202, 565, 368, 1000, 326, 906, 1810, 667, 508, 309, 486, 1818, 444, 202, 565, 514, 906, 1810, 461, 273, 446, 31, 202, 565, 309, 261, 67, 4299, 548, 480, 446, 13, 288, 202, 202, 2338, 1810, 461, 273, 3564, 18, 1969, 461, 24899, 4299, 548, 1769, 202, 565, 289, 202, 565, 469, 288, 202, 2 ]
if (display == null) return;
if (display == null) { return; }
public void run(final boolean fork, final boolean cancelable, final IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { final InvocationTargetException[] invokes = new InvocationTargetException[1]; final InterruptedException[] interrupt = new InterruptedException[1]; Runnable dialogWaitRunnable = new Runnable() { public void run() { try { TimeTriggeredProgressMonitorDialog.super.run(fork, cancelable, runnable); } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0]= e; } } }; final Display display = PlatformUI.getWorkbench().getDisplay(); if (display == null) return; //show a busy cursor until the dialog opens BusyIndicator.showWhile(display, dialogWaitRunnable); if (invokes[0] != null) { throw invokes[0]; } if (interrupt[0] != null) { throw interrupt[0]; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/TimeTriggeredProgressMonitorDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/operations/TimeTriggeredProgressMonitorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 6385, 1250, 12515, 16, 727, 1250, 3755, 429, 16, 5411, 727, 467, 20013, 1190, 5491, 14685, 13, 1216, 15342, 16, 5411, 7558, 288, 377, 202, 6385, 15342, 8526, 18058, 273, 394, 15342, 63, 21, 15533, 3639, 727, 7558, 8526, 13123, 273, 394, 7558, 63, 21, 15533, 3639, 10254, 6176, 5480, 20013, 273, 394, 10254, 1435, 288, 377, 202, 202, 482, 918, 1086, 1435, 288, 377, 1082, 202, 698, 288, 377, 9506, 202, 950, 6518, 329, 5491, 7187, 6353, 18, 9565, 18, 2681, 12, 23335, 16, 3755, 429, 16, 14685, 1769, 377, 1082, 202, 97, 1044, 261, 9267, 14950, 425, 13, 288, 377, 9506, 202, 5768, 601, 281, 63, 20, 65, 273, 425, 31, 377, 1082, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 377, 9506, 202, 31847, 63, 20, 65, 33, 425, 31, 377, 1082, 202, 97, 377, 202, 202, 97, 3639, 289, 31, 3639, 727, 9311, 2562, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 5621, 3639, 309, 261, 5417, 422, 446, 13, 5411, 327, 31, 3639, 368, 4500, 279, 21697, 3347, 3180, 326, 6176, 10400, 3639, 13190, 93, 13140, 18, 4500, 15151, 12, 5417, 16, 6176, 5480, 20013, 1769, 3639, 309, 261, 5768, 601, 281, 63, 20, 65, 480, 446, 13, 288, 5411, 604, 18058, 63, 20, 15533, 3639, 289, 3639, 309, 261, 31847, 63, 20, 65, 480, 446, 13, 288, 5411, 604, 13123, 63, 20, 15533, 3639, 289, 377, 289, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 6385, 1250, 12515, 16, 727, 1250, 3755, 429, 16, 5411, 727, 467, 20013, 1190, 5491, 14685, 13, 1216, 15342, 16, 5411, 7558, 288, 377, 202, 6385, 15342, 8526, 18058, 273, 394, 15342, 63, 21, 15533, 3639, 727, 7558, 8526, 13123, 273, 394, 7558, 63, 21, 15533, 3639, 10254, 6176, 5480, 20013, 273, 394, 10254, 1435, 288, 377, 202, 202, 482, 918, 1086, 1435, 288, 377, 1082, 202, 698, 288, 377, 9506, 202, 950, 6518, 329, 5491, 7187, 6353, 18, 9565, 18, 2681, 12, 23335, 16, 3755, 429, 16, 14685, 1769, 377, 1082, 202, 97, 1044, 261, 9267, 14950, 425, 13, 288, 377, 9506, 202, 5768, 601, 281, 63, 20, 65, 273, 425, 31, 377, 2 ]
Timer.start("LM Load");
public static void main(String[] args) throws Exception { String propsPath; if (args.length == 0) { propsPath = "file:./binary.props"; } else { propsPath = args[0]; } Timer.start("LM Load"); SphinxProperties.initContext("test", new URL(propsPath)); LargeTrigramModel sm = new LargeTrigramModel("test"); Timer.stop("LM Load"); Timer.dumpAll(); LogMath logMath = LogMath.getLogMath("test"); BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String input; System.out.println("Max depth is " + sm.getMaxDepth()); System.out.print("Enter words: "); while ((input = reader.readLine()) != null) { StringTokenizer st = new StringTokenizer(input); List list = new ArrayList(); while (st.hasMoreTokens()) { String tok = (String) st.nextToken(); list.add(tok); } WordSequence wordSequence = new WordSequence(list); float logProbability = sm.getProbability(wordSequence); System.out.println ("Probability of " + wordSequence + " is: " + logProbability + "(log), " + LogMath.logToLog(logProbability, logMath.getLogBase(), 10.0f) + "(log10)"); long usedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); System.out.println("Used memory: " + usedMemory + " bytes"); System.out.print("Enter words: "); } Timer timer = Timer.getTimer("test", "lookup trigram"); List list1 = new ArrayList(); WordSequence ws1 = new WordSequence("t", "h", "e"); WordSequence ws2 = new WordSequence("a", "l", "q"); for (int i = 0; i < 1000000; i++) { timer.start(); sm.getProbability(ws1); timer.stop(); timer.start(); sm.getProbability(ws2); timer.stop(); } Timer.dumpAll("test"); }
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/ef368666f7102af27d133f38694b695495bc2f80/LargeTrigramModelTest.java/clean/edu/cmu/sphinx/knowledge/language/large/LargeTrigramModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 514, 3458, 743, 31, 540, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 3458, 743, 273, 315, 768, 13147, 19, 8578, 18, 9693, 14432, 3639, 289, 469, 288, 5411, 3458, 743, 273, 833, 63, 20, 15533, 3639, 289, 9079, 348, 15922, 2297, 18, 2738, 1042, 2932, 3813, 3113, 394, 1976, 12, 9693, 743, 10019, 3639, 16236, 908, 1070, 360, 1940, 1488, 3029, 273, 394, 16236, 908, 1070, 360, 1940, 1488, 2932, 3813, 8863, 3639, 12290, 18, 5681, 2932, 17063, 4444, 8863, 3639, 12290, 18, 8481, 1595, 5621, 3639, 1827, 10477, 613, 10477, 273, 1827, 10477, 18, 588, 1343, 10477, 2932, 3813, 8863, 7734, 10633, 2949, 273, 394, 10633, 5411, 261, 2704, 15322, 12, 3163, 18, 267, 10019, 7734, 514, 810, 31, 7734, 2332, 18, 659, 18, 8222, 2932, 2747, 3598, 353, 315, 397, 3029, 18, 588, 2747, 6148, 10663, 3639, 2332, 18, 659, 18, 1188, 2932, 10237, 4511, 30, 315, 1769, 3639, 1323, 14015, 2630, 273, 2949, 18, 896, 1670, 10756, 480, 446, 13, 288, 5411, 16370, 384, 273, 394, 16370, 12, 2630, 1769, 5411, 987, 666, 273, 394, 2407, 5621, 5411, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 7734, 514, 946, 273, 261, 780, 13, 384, 18, 4285, 1345, 5621, 7734, 666, 18, 1289, 12, 17692, 1769, 5411, 289, 5411, 9926, 4021, 2076, 4021, 273, 394, 9926, 4021, 12, 1098, 1769, 5411, 1431, 613, 25598, 273, 3029, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 514, 3458, 743, 31, 540, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 3458, 743, 273, 315, 768, 13147, 19, 8578, 18, 9693, 14432, 3639, 289, 469, 288, 5411, 3458, 743, 273, 833, 63, 20, 15533, 3639, 289, 9079, 348, 15922, 2297, 18, 2738, 1042, 2932, 3813, 3113, 394, 1976, 12, 9693, 743, 10019, 3639, 16236, 908, 1070, 360, 1940, 1488, 3029, 273, 394, 16236, 908, 1070, 360, 1940, 1488, 2932, 3813, 8863, 3639, 12290, 18, 5681, 2932, 17063, 4444, 8863, 3639, 12290, 18, 8481, 1595, 5621, 3639, 1827, 10477, 613, 10477, 273, 1827, 10477, 18, 588, 1343, 10477, 2932, 3813, 8863, 7734, 2 ]
public void displayMech(Entity en) { // Grab a copy of the game. IGame game = client.getClient().game; // update pointer to weapons this.weapons = en.getWeaponList(); this.entity = en; int currentHeatBuildup = en.heat // heat from last round + en.getEngineCritHeat() // heat engine crits will add + en.heatBuildup; // heat we're building up this round if ( en instanceof Mech) { if (en.infernos.isStillBurning() ) { // hit with inferno ammo currentHeatBuildup += en.infernos.getHeat(); } // extreme temperatures. if (game.getOptions().intOption("temperature") > 0) { currentHeatBuildup += game.getTemperatureDifference(); } else { currentHeatBuildup -= game.getTemperatureDifference(); } } Coords position = entity.getPosition(); if (!en.isOffBoard()) { if ( position != null && game.getBoard().getHex(position).terrainLevel(Terrains.FIRE) == 2 ) { currentHeatBuildup += 5; // standing in fire } } if ( en instanceof Mech && en.isStealthActive() ) { currentHeatBuildup += 10; // active stealth heat } // update weapon list weaponList.removeAll(); m_chAmmo.removeAll(); m_chAmmo.setEnabled(false); for(int i = 0; i < weapons.size(); i++) { Mounted mounted = (Mounted) weapons.elementAt(i); WeaponType wtype = (WeaponType) mounted.getType(); StringBuffer wn = new StringBuffer(mounted.getDesc()); wn.append(" ["); //$NON-NLS-1$ wn.append(en.getLocationAbbr(mounted.getLocation())); wn.append("]"); //$NON-NLS-1$ // determine shots left & total shots left if (wtype.getAmmoType() != AmmoType.T_NA && !wtype.hasFlag(WeaponType.F_ONESHOT)) { int shotsLeft = 0; if (mounted.getLinked() != null && !mounted.getLinked().isDumping()) { shotsLeft = mounted.getLinked().getShotsLeft(); } EquipmentType typeUsed = null; if (null != mounted.getLinked()) { typeUsed = mounted.getLinked().getType(); } int totalShotsLeft = entity.getTotalMunitionsOfType(typeUsed); wn.append(" ("); //$NON-NLS-1$ wn.append(shotsLeft); wn.append("/"); //$NON-NLS-1$ wn.append(totalShotsLeft); wn.append(")"); //$NON-NLS-1$ } // MG rapidfire if (mounted.isRapidfire()) { wn.append(Messages.getString("MechDisplay.rapidFire")); //$NON-NLS-1$ } // Fire Mode - lots of things have variable modes if (wtype.hasModes()) { wn.append(" ");wn.append(mounted.curMode().getDisplayableName()); //$NON-NLS-1$ } weaponList.add(wn.toString()); if (mounted.isUsedThisRound() && game.getPhase() == IGame.PHASE_FIRING) { // add heat from weapons fire to heat tracker currentHeatBuildup += wtype.getHeat() * mounted.howManyShots(); } } // This code block copied from the MovementPanel class, // bad coding practice (duplicate code). int heatCap = en.getHeatCapacity(); int heatCapWater = en.getHeatCapacityWithWater(); String heatCapacityStr = Integer.toString(heatCap); if ( heatCap < heatCapWater ) { heatCapacityStr = heatCap + " [" + heatCapWater + "]"; //$NON-NLS-1$ //$NON-NLS-2$ } // end duplicate block String heatText = Integer.toString(currentHeatBuildup); if (currentHeatBuildup > en.getHeatCapacityWithWater()) { heatText += "*"; // overheat indication //$NON-NLS-1$ } // check for negative values due to extreme temp if (currentHeatBuildup < 0) { currentHeatBuildup = 0; } this.currentHeatBuildupR.setText(heatText + " (" + heatCapacityStr + ")"); //$NON-NLS-1$ //$NON-NLS-2$ // If MaxTech range rules are in play, display the extreme range. if (game.getOptions().booleanOption("maxtech_range")) { //$NON-NLS-1$ wExtL.setVisible (true); wExtR.setVisible (true); } else { wExtL.setVisible (false); wExtR.setVisible (false); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/4a2a11057099df308e855828868a554cea1d9d8e/MechDisplay.java/buggy/megamek/src/megamek/client/ui/AWT/MechDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 5417, 4667, 343, 12, 1943, 275, 15329, 759, 14571, 70, 1077, 1101, 792, 451, 1332, 339, 18, 3047, 339, 13957, 33, 2625, 18, 588, 1227, 7675, 13957, 31, 759, 2725, 10437, 31091, 73, 28629, 20244, 291, 18, 1814, 438, 7008, 33, 275, 18, 588, 3218, 28629, 682, 5621, 2211, 18, 1096, 33, 275, 31, 474, 2972, 5256, 270, 3116, 416, 33, 275, 18, 580, 270, 759, 580, 270, 2080, 2722, 2260, 15, 275, 18, 588, 4410, 39, 583, 5256, 270, 1435, 759, 580, 270, 275, 1912, 557, 583, 5328, 737, 1289, 15, 275, 18, 580, 270, 3116, 416, 31, 759, 580, 270, 1814, 4565, 3510, 14344, 2397, 291, 2260, 430, 12, 275, 1336, 792, 4667, 343, 15329, 430, 12, 275, 18, 25889, 18050, 18, 291, 510, 737, 38, 321, 310, 10756, 95, 759, 15989, 25850, 586, 2135, 301, 81, 504, 3761, 5256, 270, 3116, 416, 15, 33, 275, 18, 25889, 18050, 18, 588, 5256, 270, 5621, 97, 759, 408, 2764, 278, 351, 457, 2790, 18, 430, 12, 13957, 18, 588, 1320, 7675, 474, 1895, 2932, 19557, 7923, 34, 20, 15329, 2972, 5256, 270, 3116, 416, 15, 33, 13957, 18, 588, 1837, 9289, 16220, 5621, 97, 12107, 95, 2972, 5256, 270, 3116, 416, 17, 33, 13957, 18, 588, 1837, 9289, 16220, 5621, 9090, 13089, 3276, 33, 1096, 18, 588, 2555, 5621, 430, 12, 5, 275, 18, 291, 7210, 22233, 10756, 95, 430, 12, 3276, 5, 33, 2011, 10, 10, 13957, 18, 588, 22233, 7675, 588, 7037, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 5417, 4667, 343, 12, 1943, 275, 15329, 759, 14571, 70, 1077, 1101, 792, 451, 1332, 339, 18, 3047, 339, 13957, 33, 2625, 18, 588, 1227, 7675, 13957, 31, 759, 2725, 10437, 31091, 73, 28629, 20244, 291, 18, 1814, 438, 7008, 33, 275, 18, 588, 3218, 28629, 682, 5621, 2211, 18, 1096, 33, 275, 31, 474, 2972, 5256, 270, 3116, 416, 33, 275, 18, 580, 270, 759, 580, 270, 2080, 2722, 2260, 15, 275, 18, 588, 4410, 39, 583, 5256, 270, 1435, 759, 580, 270, 275, 1912, 557, 583, 5328, 737, 1289, 15, 275, 18, 580, 270, 3116, 416, 31, 759, 580, 270, 1814, 4565, 3510, 14344, 2397, 291, 2260, 430, 12, 275, 1336, 792, 4667, 343, 15329, 2 ]
public RaiseException newNoMethodError(String message) {
public RaiseException newNoMethodError(String message, String name) {
public RaiseException newNoMethodError(String message) { throw new MockException(); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/1278c5bb3507a052d150d814f15453542ae41aed/BaseMockRuby.java/buggy/test/org/jruby/test/BaseMockRuby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 20539, 503, 394, 2279, 1305, 668, 12, 780, 883, 13, 288, 202, 202, 12849, 394, 7867, 503, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 20539, 503, 394, 2279, 1305, 668, 12, 780, 883, 13, 288, 202, 202, 12849, 394, 7867, 503, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus;
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus;
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); setText(val.toString()); setHorizontalAlignment(LEFT); setVerticalAlignment(TOP); return this; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/DefaultTreeCellRenderer.java/clean/libraries/javalib/javax/swing/tree/DefaultTreeCellRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 4766, 15604, 1033, 1244, 16, 4766, 15604, 1250, 3170, 16, 4766, 15604, 1250, 8406, 16, 4766, 15604, 1250, 7839, 16, 4766, 15604, 509, 1027, 16, 4766, 15604, 1250, 711, 9233, 13, 288, 1850, 333, 18, 8109, 273, 3170, 31, 1850, 333, 18, 5332, 9233, 273, 711, 9233, 31, 1850, 309, 261, 12070, 13, 5411, 21481, 12, 588, 9858, 5554, 10663, 1850, 469, 309, 261, 17336, 13, 5411, 21481, 12, 588, 3678, 5554, 10663, 1850, 469, 5411, 21481, 12, 588, 7395, 5554, 10663, 1850, 7883, 12, 1125, 18, 10492, 10663, 1850, 444, 14457, 11535, 12, 10066, 1769, 1850, 444, 15704, 11535, 12, 10462, 1769, 1850, 327, 333, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 4766, 15604, 1033, 1244, 16, 4766, 15604, 1250, 3170, 16, 4766, 15604, 1250, 8406, 16, 4766, 15604, 1250, 7839, 16, 4766, 15604, 509, 1027, 16, 4766, 15604, 1250, 711, 9233, 13, 288, 1850, 333, 18, 8109, 273, 3170, 31, 1850, 333, 18, 5332, 9233, 273, 711, 9233, 31, 1850, 309, 261, 12070, 13, 5411, 21481, 12, 588, 9858, 5554, 10663, 1850, 469, 309, 261, 17336, 13, 5411, 21481, 12, 588, 3678, 5554, 10663, 1850, 469, 5411, 21481, 12, 588, 7395, 5554, 10663, 1850, 7883, 12, 1125, 18, 10492, 10663, 1850, 444, 14457, 11535, 12, 10066, 1769, 1850, 444, 15704, 11535, 12, 10462, 1769, 1850, 327, 333, 2 ]
public Object eGet( EStructuralFeature eFeature, boolean resolve )
public Object eGet( int featureID, boolean resolve, boolean coreType )
public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LEGEND__CHILDREN : return getChildren( ); case LayoutPackage.LEGEND__BOUNDS : return getBounds( ); case LayoutPackage.LEGEND__ANCHOR : return getAnchor( ); case LayoutPackage.LEGEND__STRETCH : return getStretch( ); case LayoutPackage.LEGEND__INSETS : return getInsets( ); case LayoutPackage.LEGEND__ROW : return new Integer( getRow( ) ); case LayoutPackage.LEGEND__COLUMN : return new Integer( getColumn( ) ); case LayoutPackage.LEGEND__ROWSPAN : return new Integer( getRowspan( ) ); case LayoutPackage.LEGEND__COLUMNSPAN : return new Integer( getColumnspan( ) ); case LayoutPackage.LEGEND__MIN_SIZE : return getMinSize( ); case LayoutPackage.LEGEND__OUTLINE : return getOutline( ); case LayoutPackage.LEGEND__BACKGROUND : return getBackground( ); case LayoutPackage.LEGEND__VISIBLE : return isVisible( ) ? Boolean.TRUE : Boolean.FALSE; case LayoutPackage.LEGEND__TRIGGERS : return getTriggers( ); case LayoutPackage.LEGEND__HORIZONTAL_SPACING : return new Integer( getHorizontalSpacing( ) ); case LayoutPackage.LEGEND__VERTICAL_SPACING : return new Integer( getVerticalSpacing( ) ); case LayoutPackage.LEGEND__CLIENT_AREA : return getClientArea( ); case LayoutPackage.LEGEND__TEXT : return getText( ); case LayoutPackage.LEGEND__ORIENTATION : return getOrientation( ); case LayoutPackage.LEGEND__DIRECTION : return getDirection( ); case LayoutPackage.LEGEND__SEPARATOR : return getSeparator( ); case LayoutPackage.LEGEND__POSITION : return getPosition( ); case LayoutPackage.LEGEND__ITEM_TYPE : return getItemType( ); case LayoutPackage.LEGEND__TITLE : return getTitle( ); case LayoutPackage.LEGEND__TITLE_POSITION : return getTitlePosition( ); case LayoutPackage.LEGEND__SHOW_VALUE : return isShowValue( ) ? Boolean.TRUE : Boolean.FALSE; case LayoutPackage.LEGEND__SHOW_PERCENT : return isShowPercent( ) ? Boolean.TRUE : Boolean.FALSE; case LayoutPackage.LEGEND__SHOW_TOTAL : return isShowTotal( ) ? Boolean.TRUE : Boolean.FALSE; } return eDynamicGet( eFeature, resolve ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/LegendImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LegendImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 294, 9506, 202, 2463, 10268, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 294, 9506, 202, 2463, 22107, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 294, 9506, 202, 2463, 336, 11605, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 294, 9506, 202, 2463, 21491, 20783, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 706, 28092, 294, 9506, 202, 2463, 7854, 4424, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11226, 294, 9506, 202, 2463, 394, 2144, 12, 11835, 12, 262, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11009, 294, 9506, 202, 2463, 394, 2144, 12, 6716, 12, 262, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 28402, 30819, 294, 9506, 202, 2463, 394, 2144, 12, 11835, 3969, 12, 262, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11009, 3118, 1258, 294, 9506, 202, 2463, 394, 2144, 12, 6716, 3969, 12, 262, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 6236, 67, 4574, 294, 9506, 202, 2463, 9555, 1225, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 294, 9506, 202, 2463, 10268, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 294, 9506, 202, 2463, 22107, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 294, 9506, 202, 2463, 336, 11605, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 294, 9506, 202, 2463, 21491, 20783, 12, 11272, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 2 ]
StringTokenizer st = new StringTokenizer(packagePath, ", "); while (st.hasMoreTokens()) { sb.append( "#include <" ) .append( st.nextToken() ) .append( ".h>\n" ); } return sb.toString();
StringTokenizer st = new StringTokenizer(packagePath, ", "); while (st.hasMoreTokens()) { sb.append( "#include <" ) .append( st.nextToken() ) .append( ".h>\n" );
private String generateHeaderImportLine4Item( MModelElement cls_depend ) { // Argo.log.info("generateHeaderImportLine4Item: fuer Item " + cls_depend.getName() + " in Namespace: " + cls_depend.getNamespace().getName() ); StringBuffer sb = new StringBuffer(80); String packagePath = cls_depend.getName(); MNamespace parent = cls_depend.getNamespace().getNamespace(); if ( parent != null ) { packagePath = cls_depend.getNamespace().getName() + "/" + packagePath; while (parent != null) { // ommit root package name; it's the model's root if (parent.getNamespace() != null) packagePath = parent.getName() + "/" + packagePath; // Argo.log.info("generateHeaderImportLine4Item: Runde mit Parent" + parent.getName() ); parent = parent.getNamespace(); } } // if class depends on a list of other classes, all inheritance // elements are seperated by Tokens ", " -> use StringTokenizer // to access the single elements StringTokenizer st = new StringTokenizer(packagePath, ", "); while (st.hasMoreTokens()) { sb.append( "#include <" ) .append( st.nextToken() ) .append( ".h>\n" ); } return sb.toString(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/GeneratorCpp.java/buggy/modules/cpp/src/org/argouml/language/cpp/generator/GeneratorCpp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2103, 1864, 5010, 1670, 24, 1180, 12, 490, 1488, 1046, 2028, 67, 5817, 262, 202, 95, 565, 368, 1201, 3240, 18, 1330, 18, 1376, 2932, 7163, 1864, 5010, 1670, 24, 1180, 30, 284, 6211, 4342, 315, 397, 2028, 67, 5817, 18, 17994, 1435, 397, 315, 316, 6005, 30, 315, 397, 2028, 67, 5817, 18, 588, 3402, 7675, 17994, 1435, 11272, 565, 6674, 2393, 273, 394, 6674, 12, 3672, 1769, 202, 202, 780, 27503, 273, 2028, 67, 5817, 18, 17994, 5621, 565, 490, 3402, 982, 273, 2028, 67, 5817, 18, 588, 3402, 7675, 588, 3402, 5621, 202, 202, 430, 261, 982, 480, 446, 262, 288, 377, 202, 5610, 743, 273, 2028, 67, 5817, 18, 588, 3402, 7675, 17994, 1435, 397, 4016, 397, 27503, 31, 377, 202, 17523, 261, 2938, 480, 446, 13, 288, 202, 21114, 202, 759, 8068, 1938, 1365, 2181, 508, 31, 518, 1807, 326, 938, 1807, 1365, 202, 21114, 202, 430, 261, 2938, 18, 588, 3402, 1435, 480, 446, 13, 4202, 202, 202, 5610, 743, 273, 982, 18, 17994, 1435, 397, 4016, 397, 27503, 31, 202, 377, 202, 759, 1201, 3240, 18, 1330, 18, 1376, 2932, 7163, 1864, 5010, 1670, 24, 1180, 30, 1939, 323, 20310, 9520, 6, 397, 982, 18, 17994, 1435, 11272, 377, 202, 202, 2938, 273, 982, 18, 588, 3402, 5621, 377, 202, 97, 202, 202, 97, 202, 202, 759, 309, 667, 10935, 603, 279, 666, 434, 1308, 3318, 16, 777, 16334, 202, 202, 759, 2186, 854, 22282, 690, 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, 514, 2103, 1864, 5010, 1670, 24, 1180, 12, 490, 1488, 1046, 2028, 67, 5817, 262, 202, 95, 565, 368, 1201, 3240, 18, 1330, 18, 1376, 2932, 7163, 1864, 5010, 1670, 24, 1180, 30, 284, 6211, 4342, 315, 397, 2028, 67, 5817, 18, 17994, 1435, 397, 315, 316, 6005, 30, 315, 397, 2028, 67, 5817, 18, 588, 3402, 7675, 17994, 1435, 11272, 565, 6674, 2393, 273, 394, 6674, 12, 3672, 1769, 202, 202, 780, 27503, 273, 2028, 67, 5817, 18, 17994, 5621, 565, 490, 3402, 982, 273, 2028, 67, 5817, 18, 588, 3402, 7675, 588, 3402, 5621, 202, 202, 430, 261, 982, 480, 446, 262, 288, 377, 202, 5610, 743, 273, 2028, 67, 5817, 18, 588, 3402, 2 ]
writeSection( "Return", method.getReturnText( ) ); writeSection( "Description", method.getDescription( ) ); writeSection( "See Also", method.getSeeAlso( ) ); }
writeSection( "Return", method.getReturnText( ) ); writeSection( "Description", method.getDescription( ) ); writeSection( "See Also", method.getSeeAlso( ) ); }
private void writeMethodDetail( DocMethod method ) { startDetail( METHOD_NAME, method.getName( ), method.getSummary( ) ); writeSynopsis( method ); writeSectionHeader( "Details\n" ); startDetailsTable( ); detailRow( "Since", method.getSince( ) ); detailRow( "Context", method.getContext( ) ); detailRow( "Arguments", "None" ); // In R1, no element methods have arguments. detailRow( "Return Type", method.getReturnType( ) ); endDetailsTable( );// writeSectionHeader( "Arguments" );// writePara( "None" ); // In R1, no element methods have arguments. writeSection( "Return", method.getReturnText( ) ); writeSection( "Description", method.getDescription( ) ); writeSection( "See Also", method.getSeeAlso( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2012a7e6d8d91844c6c396ee5b7b69a4345dea99/Generator.java/clean/model/org.eclipse.birt.report.model/romdoc/src/org/eclipse/birt/doc/romdoc/Generator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 1305, 6109, 12, 3521, 1305, 707, 262, 202, 95, 202, 202, 1937, 6109, 12, 10152, 67, 1985, 16, 707, 18, 17994, 12, 262, 16, 707, 18, 588, 4733, 12, 262, 11272, 202, 202, 2626, 10503, 29522, 12, 707, 11272, 202, 202, 2626, 5285, 1864, 12, 315, 3790, 64, 82, 6, 11272, 202, 202, 1937, 3790, 1388, 12, 11272, 202, 202, 8992, 1999, 12, 315, 9673, 3113, 707, 18, 588, 9673, 12, 262, 11272, 202, 202, 8992, 1999, 12, 315, 1042, 3113, 707, 18, 29120, 12, 262, 11272, 202, 202, 8992, 1999, 12, 315, 4628, 3113, 315, 7036, 6, 11272, 368, 657, 534, 21, 16, 1158, 930, 2590, 1240, 1775, 18, 202, 202, 8992, 1999, 12, 315, 990, 1412, 3113, 707, 18, 588, 9102, 12, 262, 11272, 202, 202, 409, 3790, 1388, 12, 11272, 759, 202, 202, 2626, 5285, 1864, 12, 315, 4628, 6, 11272, 759, 202, 202, 2626, 23529, 12, 315, 7036, 6, 11272, 368, 657, 534, 21, 16, 1158, 930, 2590, 1240, 1775, 18, 202, 202, 2626, 5285, 12, 315, 990, 3113, 707, 18, 588, 990, 1528, 12, 262, 11272, 202, 202, 2626, 5285, 12, 315, 3291, 3113, 707, 18, 588, 3291, 12, 262, 11272, 202, 202, 2626, 5285, 12, 315, 9704, 8080, 3113, 707, 18, 588, 9704, 1067, 2048, 12, 262, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 918, 1045, 1305, 6109, 12, 3521, 1305, 707, 262, 202, 95, 202, 202, 1937, 6109, 12, 10152, 67, 1985, 16, 707, 18, 17994, 12, 262, 16, 707, 18, 588, 4733, 12, 262, 11272, 202, 202, 2626, 10503, 29522, 12, 707, 11272, 202, 202, 2626, 5285, 1864, 12, 315, 3790, 64, 82, 6, 11272, 202, 202, 1937, 3790, 1388, 12, 11272, 202, 202, 8992, 1999, 12, 315, 9673, 3113, 707, 18, 588, 9673, 12, 262, 11272, 202, 202, 8992, 1999, 12, 315, 1042, 3113, 707, 18, 29120, 12, 262, 11272, 202, 202, 8992, 1999, 12, 315, 4628, 3113, 315, 7036, 6, 11272, 368, 657, 534, 21, 16, 1158, 930, 2590, 1240, 1775, 18, 202, 202, 8992, 1999, 2 ]
gridData.widthHint = Math.max( widthHint, button.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x );
gridData.widthHint = Math.max( widthHint, button.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x );
protected void setButtonLayoutData( Button button ) { GridData gridData; if ( button.getText( ).equals( IDialogConstants.HELP_LABEL ) ) { gridData = new GridData( GridData.VERTICAL_ALIGN_END | GridData.HORIZONTAL_ALIGN_CENTER ); gridData.grabExcessVerticalSpace = true; } else { gridData = new GridData( GridData.VERTICAL_ALIGN_BEGINNING ); } int widthHint = convertHorizontalDLUsToPixels( IDialogConstants.BUTTON_WIDTH ); gridData.widthHint = Math.max( widthHint, button.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x ); button.setLayoutData( gridData ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/018ed60258a7970a95a6d310022fe87bdd503e3b/ExpressionBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 444, 3616, 3744, 751, 12, 12569, 3568, 262, 202, 95, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 430, 261, 3568, 18, 588, 1528, 12, 262, 18, 14963, 12, 1599, 3529, 2918, 18, 27396, 67, 13545, 262, 262, 202, 202, 95, 1082, 202, 5222, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 4415, 6862, 202, 96, 7145, 751, 18, 44, 20344, 67, 26439, 67, 19835, 11272, 1082, 202, 5222, 751, 18, 2752, 70, 424, 614, 15704, 3819, 273, 638, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 5222, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 11272, 202, 202, 97, 202, 202, 474, 1835, 7002, 273, 1765, 14457, 8914, 3477, 774, 18079, 12, 1599, 3529, 2918, 18, 20068, 67, 10023, 11272, 202, 202, 5222, 751, 18, 2819, 7002, 273, 2361, 18, 1896, 12, 1835, 7002, 16, 9506, 202, 5391, 18, 9200, 1225, 12, 348, 8588, 18, 5280, 16, 348, 8588, 18, 5280, 16, 638, 262, 18, 92, 11272, 202, 202, 5391, 18, 542, 3744, 751, 12, 3068, 751, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 444, 3616, 3744, 751, 12, 12569, 3568, 262, 202, 95, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 430, 261, 3568, 18, 588, 1528, 12, 262, 18, 14963, 12, 1599, 3529, 2918, 18, 27396, 67, 13545, 262, 262, 202, 202, 95, 1082, 202, 5222, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 4415, 6862, 202, 96, 7145, 751, 18, 44, 20344, 67, 26439, 67, 19835, 11272, 1082, 202, 5222, 751, 18, 2752, 70, 424, 614, 15704, 3819, 273, 638, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 5222, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 2 ]
g.fillRect(rect.x + bracket.x,rect.y + bracket.y,
g.fillRect(bracket.x,bracket.y,
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent textComponent) { if(getSelectionStart() != getSelectionEnd() || !bracketHighlight) return; if(p0 == p1) return; Rectangle rect = (Rectangle)bounds; Rectangle bracket; Document doc = getDocument(); FontMetrics metrics = g.getFontMetrics(); try { bracket = modelToView(p0); doc.getText(p0,1,lineSegment); bracket.width += metrics.charWidth(lineSegment .array[lineSegment.offset]); } catch(BadLocationException bl) { bl.printStackTrace(); return; } g.setColor(bracketHighlightColor); g.fillRect(rect.x + bracket.x,rect.y + bracket.y, bracket.width,bracket.height); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3dd880fa154feb10894aee38225042b80125b1bc/SyntaxTextArea.java/clean/org/gjt/sp/jedit/gui/SyntaxTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 12574, 12, 17558, 314, 16, 509, 293, 20, 16, 509, 293, 21, 16, 12383, 4972, 16, 1082, 202, 46, 1528, 1841, 977, 1841, 13, 202, 202, 95, 1082, 202, 430, 12, 588, 6233, 1685, 1435, 480, 23204, 1638, 1435, 9506, 202, 20081, 401, 21025, 16205, 13, 9506, 202, 2463, 31, 1082, 202, 430, 12, 84, 20, 422, 293, 21, 13, 9506, 202, 2463, 31, 1082, 202, 19463, 4917, 273, 261, 19463, 13, 10576, 31, 1082, 202, 19463, 9843, 31, 1082, 202, 2519, 997, 273, 9956, 5621, 1082, 202, 5711, 5653, 4309, 273, 314, 18, 588, 5711, 5653, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 21025, 273, 938, 774, 1767, 12, 84, 20, 1769, 9506, 202, 2434, 18, 588, 1528, 12, 84, 20, 16, 21, 16, 1369, 4131, 1769, 9506, 202, 21025, 18, 2819, 1011, 4309, 18, 3001, 2384, 12, 1369, 4131, 6862, 202, 18, 1126, 63, 1369, 4131, 18, 3348, 19226, 1082, 202, 97, 1082, 202, 14683, 12, 6434, 2735, 503, 2811, 13, 1082, 202, 95, 9506, 202, 3083, 18, 1188, 6332, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 75, 18, 542, 2957, 12, 21025, 16205, 2957, 1769, 1082, 202, 75, 18, 5935, 6120, 12, 2607, 18, 92, 397, 9843, 18, 92, 16, 2607, 18, 93, 397, 9843, 18, 93, 16, 9506, 202, 21025, 18, 2819, 16, 21025, 18, 4210, 1769, 202, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 1, 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, 918, 12574, 12, 17558, 314, 16, 509, 293, 20, 16, 509, 293, 21, 16, 12383, 4972, 16, 1082, 202, 46, 1528, 1841, 977, 1841, 13, 202, 202, 95, 1082, 202, 430, 12, 588, 6233, 1685, 1435, 480, 23204, 1638, 1435, 9506, 202, 20081, 401, 21025, 16205, 13, 9506, 202, 2463, 31, 1082, 202, 430, 12, 84, 20, 422, 293, 21, 13, 9506, 202, 2463, 31, 1082, 202, 19463, 4917, 273, 261, 19463, 13, 10576, 31, 1082, 202, 19463, 9843, 31, 1082, 202, 2519, 997, 273, 9956, 5621, 1082, 202, 5711, 5653, 4309, 273, 314, 18, 588, 5711, 5653, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 21025, 273, 938, 774, 1767, 12, 84, 20, 1769, 2 ]
submitErrorEvent = new XFormsSubmitErrorEvent(XFormsModelSubmission.this, resolvedAction);
submitErrorEvent = new XFormsSubmitErrorEvent(XFormsModelSubmission.this, resolvedActionOrResource);
private XFormsSubmitErrorEvent createErrorEvent(ConnectionResult connectionResult) throws IOException { XFormsSubmitErrorEvent submitErrorEvent = null; if (connectionResult.hasContent()) { if (ProcessorUtils.isXMLContentType(connectionResult.resultMediaType)) { // XML content-type // TODO: XForms 1.1 may mandate that we always try to parse the body as XML first // Read stream into Document final DocumentInfo responseBody = TransformerUtils.readTinyTree(connectionResult.getResultInputStream(), connectionResult.resourceURI); submitErrorEvent = new XFormsSubmitErrorEvent(XFormsModelSubmission.this, resolvedAction); submitErrorEvent.setBodyDocument(responseBody); } else if (ProcessorUtils.isTextContentType(connectionResult.resultMediaType)) { // Text content-type // Read stream into String final String charset; { final String connectionCharset = NetUtils.getContentTypeCharset(connectionResult.resultMediaType); if (connectionCharset != null) charset = connectionCharset; else charset = DEFAULT_TEXT_READING_ENCODING; } final Reader reader = new InputStreamReader(connectionResult.getResultInputStream(), charset); final String responseBody = NetUtils.readStreamAsString(reader); submitErrorEvent = new XFormsSubmitErrorEvent(XFormsModelSubmission.this, resolvedAction); submitErrorEvent.setBodyString(responseBody); } else { // This is binary // Don't store anything for now } } return submitErrorEvent; }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/4fb6cf3fac9f1dc7fff303d2d1018b171043a9da/XFormsModelSubmission.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1139, 18529, 11620, 668, 1133, 752, 668, 1133, 12, 1952, 1253, 1459, 1253, 13, 1216, 1860, 288, 3639, 1139, 18529, 11620, 668, 1133, 4879, 668, 1133, 273, 446, 31, 3639, 309, 261, 4071, 1253, 18, 5332, 1350, 10756, 288, 5411, 309, 261, 5164, 1989, 18, 291, 4201, 8046, 12, 4071, 1253, 18, 2088, 20870, 3719, 288, 7734, 368, 3167, 913, 17, 723, 7734, 368, 2660, 30, 1139, 18529, 404, 18, 21, 2026, 312, 464, 340, 716, 732, 3712, 775, 358, 1109, 326, 1417, 487, 3167, 1122, 7734, 368, 2720, 1407, 1368, 4319, 7734, 727, 4319, 966, 18761, 13491, 273, 11519, 1989, 18, 896, 56, 11652, 2471, 12, 4071, 1253, 18, 588, 1253, 4348, 9334, 1459, 1253, 18, 3146, 3098, 1769, 7734, 4879, 668, 1133, 273, 394, 1139, 18529, 11620, 668, 1133, 12, 60, 18529, 1488, 17865, 18, 2211, 16, 4640, 1803, 1162, 1420, 1769, 7734, 4879, 668, 1133, 18, 542, 2250, 2519, 12, 2740, 2250, 1769, 5411, 289, 469, 309, 261, 5164, 1989, 18, 291, 1528, 8046, 12, 4071, 1253, 18, 2088, 20870, 3719, 288, 7734, 368, 3867, 913, 17, 723, 7734, 368, 2720, 1407, 1368, 514, 7734, 727, 514, 4856, 31, 7734, 288, 10792, 727, 514, 1459, 9652, 273, 8503, 1989, 18, 588, 8046, 9652, 12, 4071, 1253, 18, 2088, 20870, 1769, 10792, 309, 261, 4071, 9652, 480, 446, 13, 13491, 4856, 273, 1459, 9652, 31, 10792, 469, 13491, 4856, 273, 3331, 67, 5151, 67, 6949, 1360, 67, 14672, 31, 7734, 289, 7734, 727, 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, 1139, 18529, 11620, 668, 1133, 752, 668, 1133, 12, 1952, 1253, 1459, 1253, 13, 1216, 1860, 288, 3639, 1139, 18529, 11620, 668, 1133, 4879, 668, 1133, 273, 446, 31, 3639, 309, 261, 4071, 1253, 18, 5332, 1350, 10756, 288, 5411, 309, 261, 5164, 1989, 18, 291, 4201, 8046, 12, 4071, 1253, 18, 2088, 20870, 3719, 288, 7734, 368, 3167, 913, 17, 723, 7734, 368, 2660, 30, 1139, 18529, 404, 18, 21, 2026, 312, 464, 340, 716, 732, 3712, 775, 358, 1109, 326, 1417, 487, 3167, 1122, 7734, 368, 2720, 1407, 1368, 4319, 7734, 727, 4319, 966, 18761, 13491, 273, 11519, 1989, 18, 896, 56, 11652, 2471, 12, 4071, 1253, 18, 588, 1253, 4348, 9334, 1459, 1253, 18, 2 ]
s_logger.info("User '" + userDetails.getDn() + "' does not have '" + m_userAttribute + "'. Returning empty list.");
if (s_logger.isInfoEnabled()) { s_logger.info("User '" + userDetails.getDn() + "' does not have attribute '" + m_userAttribute + "'. Returning empty GrantedAuthority list."); }
public GrantedAuthority[] getGrantedAuthorities(LdapUserDetails userDetails) throws LdapDataAccessException { Assert.notNull(userDetails, "UserDetails can not be null"); Attributes attributes = userDetails.getAttributes(); Assert.notNull(attributes, "Attributes in the UserDetails object cannot be null"); Attribute attribute = attributes.get(m_userAttribute); if (attribute == null) { s_logger.info("User '" + userDetails.getDn() + "' does not have '" + m_userAttribute + "'. Returning empty list."); return new GrantedAuthority[0]; } List<GrantedAuthority> authorities = new LinkedList<GrantedAuthority>(); try { NamingEnumeration enumeration = attribute.getAll(); while (enumeration.hasMore()) { Object o = enumeration.next(); s_logger.debug("Got '" + m_userAttribute + "' value for user '" + userDetails.getDn() + "': '" + o + "'"); String s; if (o == null) { s = null; } else { s = o.toString(); } if ("OpenNMS User".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_USER")); } else if ("OpenNMS Administrator".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_ADMIN")); } else if ("OpenNMS RTC".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_RTC")); } else { authorities.add(new GrantedAuthorityImpl(s)); } } } catch (NamingException e) { s_logger.info("Received NamingException: " + e.getMessage(), e); throw new LdapDataAccessException("Received naming exception while iterating through values for '" + m_userAttribute + "' attribute.", e); } return authorities.toArray(new GrantedAuthority[0]); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/59510b40d9c7ad0f3ea10e9cd9748a78df6d986f/UserAttributeLdapAuthoritiesPopulator.java/clean/opennms-webapp/src/main/java/org/opennms/web/acegisecurity/UserAttributeLdapAuthoritiesPopulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19689, 329, 10962, 8526, 7162, 6890, 329, 3594, 1961, 12, 18437, 1299, 3790, 729, 3790, 13, 1216, 18053, 751, 9773, 288, 3639, 5452, 18, 902, 2041, 12, 1355, 3790, 16, 315, 1299, 3790, 848, 486, 506, 446, 8863, 3639, 9055, 1677, 273, 729, 3790, 18, 588, 2498, 5621, 3639, 5452, 18, 902, 2041, 12, 4350, 16, 315, 2498, 316, 326, 2177, 3790, 733, 2780, 506, 446, 8863, 7734, 3601, 1566, 273, 1677, 18, 588, 12, 81, 67, 1355, 1499, 1769, 3639, 309, 261, 4589, 422, 446, 13, 288, 5411, 309, 261, 87, 67, 4901, 18, 291, 966, 1526, 10756, 288, 272, 67, 4901, 18, 1376, 2932, 1299, 2119, 397, 729, 3790, 18, 588, 19053, 1435, 397, 2491, 1552, 486, 1240, 1566, 2119, 397, 312, 67, 1355, 1499, 397, 2491, 18, 225, 2000, 310, 1008, 19689, 329, 10962, 666, 1199, 1769, 289, 5411, 327, 394, 19689, 329, 10962, 63, 20, 15533, 3639, 289, 7734, 987, 32, 14570, 10962, 34, 2869, 1961, 273, 394, 10688, 32, 14570, 10962, 34, 5621, 3639, 775, 288, 5411, 18884, 21847, 16836, 273, 1566, 18, 588, 1595, 5621, 5411, 1323, 261, 7924, 7067, 18, 5332, 7417, 10756, 288, 7734, 1033, 320, 273, 16836, 18, 4285, 5621, 7734, 272, 67, 4901, 18, 4148, 2932, 15617, 2119, 397, 312, 67, 1355, 1499, 397, 2491, 460, 364, 729, 2119, 397, 729, 3790, 18, 588, 19053, 1435, 397, 2491, 30, 2119, 397, 320, 397, 5862, 1769, 7734, 514, 272, 31, 7734, 309, 261, 83, 422, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19689, 329, 10962, 8526, 7162, 6890, 329, 3594, 1961, 12, 18437, 1299, 3790, 729, 3790, 13, 1216, 18053, 751, 9773, 288, 3639, 5452, 18, 902, 2041, 12, 1355, 3790, 16, 315, 1299, 3790, 848, 486, 506, 446, 8863, 3639, 9055, 1677, 273, 729, 3790, 18, 588, 2498, 5621, 3639, 5452, 18, 902, 2041, 12, 4350, 16, 315, 2498, 316, 326, 2177, 3790, 733, 2780, 506, 446, 8863, 7734, 3601, 1566, 273, 1677, 18, 588, 12, 81, 67, 1355, 1499, 1769, 3639, 309, 261, 4589, 422, 446, 13, 288, 5411, 309, 261, 87, 67, 4901, 18, 291, 966, 1526, 10756, 288, 272, 67, 4901, 18, 1376, 2932, 1299, 2119, 397, 729, 3790, 18, 588, 19053, 1435, 397, 2491, 2 ]
results.put("BagConstraint", "SELECT Company.id AS \"Companyid\" FROM Company AS Company WHERE (Company.name IN ('CompanyA', 'goodbye', 'hello')) ORDER BY Company.id");
results.put("BagConstraint", "SELECT Company.id AS \"Companyid\" FROM Company AS Company WHERE Company.name IN ('CompanyA', 'goodbye', 'hello') ORDER BY Company.id");
public static void setUpResults() throws Exception { companyAId = ((Company) data.get("CompanyA")).getId(); companyBId = ((Company) data.get("CompanyB")).getId(); departmentA1Id = ((Department) data.get("DepartmentA1")).getId(); departmentB1Id = ((Department) data.get("DepartmentB1")).getId(); employeeA1Id = ((Employee) data.get("EmployeeA1")).getId(); employeeA2Id = ((Employee) data.get("EmployeeA2")).getId(); employeeB1Id = ((Employee) data.get("EmployeeB1")).getId(); results = new MustBeDifferentMap(new HashMap()); results2 = new MustBeDifferentMap(new HashMap()); results.put("SelectSimpleObject", "SELECT intermine_Alias.id AS \"intermine_Aliasid\" FROM Company AS intermine_Alias ORDER BY intermine_Alias.id"); results2.put("SelectSimpleObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("SubQuery", "SELECT DISTINCT intermine_All.intermine_Arrayname AS a1_, intermine_All.intermine_Alias AS \"intermine_Alias\" FROM (SELECT intermine_Array.CEOId AS intermine_ArrayCEOId, intermine_Array.addressId AS intermine_ArrayaddressId, intermine_Array.id AS intermine_Arrayid, intermine_Array.name AS intermine_Arrayname, intermine_Array.vatNumber AS intermine_ArrayvatNumber, 5 AS intermine_Alias FROM Company AS intermine_Array) AS intermine_All ORDER BY intermine_All.intermine_Arrayname, intermine_All.intermine_Alias"); results2.put("SubQuery", Collections.singleton("Company")); results.put("WhereSimpleEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber = 1234 ORDER BY a1_.name"); results2.put("WhereSimpleEquals", Collections.singleton("Company")); results.put("WhereSimpleNotEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNotEquals", Collections.singleton("Company")); results.put("WhereSimpleNegEquals", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNegEquals", Collections.singleton("Company")); results.put("WhereSimpleLike", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.name LIKE 'Company%' ORDER BY a1_.name"); results2.put("WhereSimpleLike", Collections.singleton("Company")); results.put("WhereEqualsString", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE a1_.name = 'CompanyA' ORDER BY a1_.name"); results2.put("WhereEqualsString", Collections.singleton("Company")); results.put("WhereAndSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereAndSet", Collections.singleton("Company")); results.put("WhereOrSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE (a1_.name LIKE 'CompanyA%' OR a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereOrSet", Collections.singleton("Company")); results.put("WhereNotSet", "SELECT DISTINCT a1_.name AS a2_ FROM Company AS a1_ WHERE ( NOT (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000)) ORDER BY a1_.name"); results2.put("WhereNotSet", Collections.singleton("Company")); results.put("WhereSubQueryField", "SELECT a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM Department AS a1_ WHERE a1_.name IN (SELECT DISTINCT a1_.name FROM Department AS a1_) ORDER BY a1_.name, a1_.id"); results2.put("WhereSubQueryField", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Department"}))); results.put("WhereSubQueryClass", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id IN (SELECT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereSubQueryClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereNotSubQueryClass", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id NOT IN (SELECT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNotSubQueryClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereNegSubQueryClass", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id NOT IN (SELECT a1_.id FROM Company AS a1_ WHERE a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNegSubQueryClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereClassClass", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id = a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereClassClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereNotClassClass", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNotClassClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereNegClassClass", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Company AS a1_, Company AS a2_ WHERE a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNegClassClass", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("WhereClassObject", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE a1_.id = " + companyAId + " ORDER BY a1_.id"); results2.put("WhereClassObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("Contains11", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId = a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("Contains11", new HashSet(Arrays.asList(new String[] {"Department", "Manager", "InterMineObject"}))); results.put("ContainsNot11", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNot11", new HashSet(Arrays.asList(new String[] {"Department", "Manager", "InterMineObject"}))); results.put("ContainsNeg11", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Department AS a1_, Manager AS a2_ WHERE (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNeg11", new HashSet(Arrays.asList(new String[] {"Department", "Manager", "InterMineObject"}))); results.put("Contains1N", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Company AS a1_, Department AS a2_ WHERE (a1_.id = a2_.companyId AND a1_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("Contains1N", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("ContainsNot1N", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Company AS a1_, Department AS a2_ WHERE (a1_.id != a2_.companyId AND a1_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNot1N", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("ContainsN1", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Department AS a1_, Company AS a2_ WHERE (a1_.companyId = a2_.id AND a2_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsN1", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("ContainsMN", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Contractor AS a1_, Company AS a2_, CompanysContractors AS indirect0 WHERE ((a1_.id = indirect0.Companys AND indirect0.Contractors = a2_.id) AND a1_.name = 'ContractorA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsMN", new HashSet(Arrays.asList(new String[] {"Contractor", "Company", "CompanysContractors", "InterMineObject"}))); results.put("ContainsDuplicatesMN", "SELECT a1_.id AS a1_id, a2_.id AS a2_id FROM Contractor AS a1_, Company AS a2_, OldComsOldContracts AS indirect0 WHERE (a1_.id = indirect0.OldComs AND indirect0.OldContracts = a2_.id) ORDER BY a1_.id, a2_.id"); results2.put("ContainsDuplicatesMN", new HashSet(Arrays.asList(new String[] {"Contractor", "Company", "OldComsOldContracts", "InterMineObject"}))); results.put("ContainsNotMN", new Failure(ObjectStoreException.class, "Cannot represent many-to-many collection DOES NOT CONTAIN in SQL")); //TODO: Fix this (ticket #445) results.put("SimpleGroupBy", "SELECT DISTINCT a1_.id AS a1_id, COUNT(*) AS a2_ FROM Company AS a1_, Department AS a3_ WHERE a1_.id = a3_.companyId GROUP BY a1_.CEOId, a1_.addressId, a1_.id, a1_.name, a1_.vatNumber ORDER BY a1_.id, COUNT(*)"); results2.put("SimpleGroupBy", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("MultiJoin", "SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id, a4_.id AS a4_id FROM Company AS a1_, Department AS a2_, Manager AS a3_, Address AS a4_ WHERE (a1_.id = a2_.companyId AND a2_.managerId = a3_.id AND a3_.addressId = a4_.id AND a3_.name = 'EmployeeA1') ORDER BY a1_.id, a2_.id, a3_.id, a4_.id"); results2.put("MultiJoin", new HashSet(Arrays.asList(new String[] {"Department", "Manager", "Company", "Address", "InterMineObject"}))); results.put("SelectComplex", "SELECT DISTINCT (AVG(a1_.vatNumber) + 20) AS a3_, a2_.name AS a4_, a2_.id AS a2_id FROM Company AS a1_, Department AS a2_ GROUP BY a2_.companyId, a2_.id, a2_.managerId, a2_.name ORDER BY (AVG(a1_.vatNumber) + 20), a2_.name, a2_.id"); results2.put("SelectComplex", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("SelectClassAndSubClasses", "SELECT a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM Employee AS a1_ ORDER BY a1_.name, a1_.id"); results2.put("SelectClassAndSubClasses", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("SelectInterfaceAndSubClasses", "SELECT a1_.id AS a1_id FROM Employable AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employable"}))); results.put("SelectInterfaceAndSubClasses2", "SELECT a1_.id AS a1_id FROM RandomInterface AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses2", new HashSet(Arrays.asList(new String[] {"InterMineObject", "RandomInterface"}))); results.put("SelectInterfaceAndSubClasses3", "SELECT a1_.id AS a1_id FROM ImportantPerson AS a1_ ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses3", new HashSet(Arrays.asList(new String[] {"InterMineObject", "ImportantPerson"}))); results.put("OrderByAnomaly", "SELECT DISTINCT 5 AS a2_, a1_.name AS a3_ FROM Company AS a1_ ORDER BY a1_.name"); results2.put("OrderByAnomaly", Collections.singleton("Company")); results.put("SelectClassObjectSubquery", "SELECT DISTINCT a1_.id AS a1_id FROM Company AS a1_, Department AS a2_ WHERE (a1_.id = " + companyAId + " AND a1_.id = a2_.companyId AND a2_.id IN (SELECT a1_.id FROM Department AS a1_ WHERE a1_.id = " + departmentA1Id + ")) ORDER BY a1_.id"); results2.put("SelectClassObjectSubquery", new HashSet(Arrays.asList(new String[] {"Department", "Company", "InterMineObject"}))); results.put("SelectUnidirectionalCollection", "SELECT DISTINCT a2_.id AS a2_id FROM Company AS a1_, Secretary AS a2_, HasSecretarysSecretarys AS indirect0 WHERE (a1_.name = 'CompanyA' AND (a1_.id = indirect0.Secretarys AND indirect0.HasSecretarys = a2_.id)) ORDER BY a2_.id"); results2.put("SelectUnidirectionalCollection", new HashSet(Arrays.asList(new String[] {"Company", "Secretary", "HasSecretarysSecretarys", "InterMineObject"}))); results.put("EmptyAndConstraintSet", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE true ORDER BY a1_.id"); results2.put("EmptyAndConstraintSet", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("EmptyOrConstraintSet", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE false ORDER BY a1_.id"); results2.put("EmptyOrConstraintSet", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("EmptyNandConstraintSet", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE false ORDER BY a1_.id"); results2.put("EmptyNandConstraintSet", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("EmptyNorConstraintSet", "SELECT a1_.id AS a1_id FROM Company AS a1_ WHERE true ORDER BY a1_.id"); results2.put("EmptyNorConstraintSet", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("BagConstraint", "SELECT Company.id AS \"Companyid\" FROM Company AS Company WHERE (Company.name IN ('CompanyA', 'goodbye', 'hello')) ORDER BY Company.id"); results2.put("BagConstraint", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("BagConstraint2", "SELECT Company.id AS \"Companyid\" FROM Company AS Company WHERE (Company.id IN (" + companyAId + ")) ORDER BY Company.id"); results2.put("BagConstraint2", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("InterfaceField", "SELECT a1_.id AS a1_id FROM Employable AS a1_ WHERE a1_.name = 'EmployeeA1' ORDER BY a1_.id"); results2.put("InterfaceField", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employable"}))); results.put("InterfaceReference", NO_RESULT); results.put("InterfaceCollection", NO_RESULT); Set res = new HashSet(); res.add("SELECT a1_.id AS a1_id, a1__1.debt AS a2_, a1_.age AS a3_ FROM Employee AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id AND (a1__1.debt > 0 AND a1_.age > 0) ORDER BY a1_.id"); res.add("SELECT a1_.id AS a1_id, a1_.debt AS a2_, a1__1.age AS a3_ FROM Broke AS a1_, Employee AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.debt > 0 AND a1__1.age > 0) ORDER BY a1_.id"); results.put("DynamicInterfacesAttribute", res); results2.put("DynamicInterfacesAttribute", new HashSet(Arrays.asList(new String[] {"Employee", "Broke", "InterMineObject"}))); res = new HashSet(); res.add("SELECT a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id ORDER BY a1_.id"); res.add("SELECT a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1 WHERE a1_.id = a1__1.id ORDER BY a1_.id"); results.put("DynamicClassInterface", res); results2.put("DynamicClassInterface", new HashSet(Arrays.asList(new String[] {"Employable", "Broke", "InterMineObject"}))); res = new HashSet(); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Department AS a1_, Broke AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a2_.id = a1_.companyId AND a3_.id = a1__1.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Broke AS a1_, Department AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a2_.id = a1__1.companyId AND a3_.id = a1_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef1", res); results2.put("DynamicClassRef1", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank", "InterMineObject"}))); res = new HashSet(); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Department AS a1_, Broke AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a1_.companyId = a2_.id AND a1__1.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Broke AS a1_, Department AS a1__1, Company AS a2_, Bank AS a3_ WHERE a1_.id = a1__1.id AND (a1__1.companyId = a2_.id AND a1_.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef2", res); results2.put("DynamicClassRef2", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank", "InterMineObject"}))); res = new HashSet(); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Company AS a1_, Bank AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Bank AS a1_, Company AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef3", res); results2.put("DynamicClassRef3", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank", "InterMineObject"}))); res = new HashSet(); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Company AS a1_, Bank AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.id AS a1_id, a2_.id AS a2_id, a3_.id AS a3_id FROM Bank AS a1_, Company AS a1__1, Department AS a2_, Broke AS a3_ WHERE a1_.id = a1__1.id AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef4", res); results2.put("DynamicClassRef4", new HashSet(Arrays.asList(new String[] {"Department", "Broke", "Company", "Bank", "InterMineObject"}))); res = new HashSet(); res.add("SELECT DISTINCT a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1, HasAddress AS a2_, Broke AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1, Broke AS a2_, HasAddress AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1, HasAddress AS a2_, Broke AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1, Broke AS a2_, HasAddress AS a2__1 WHERE a1_.id = a1__1.id AND a2_.id = a2__1.id AND a1_.id = a2_.id ORDER BY a1_.id"); results.put("DynamicClassConstraint", res); results2.put("DynamicClassConstraint", new HashSet(Arrays.asList(new String[] {"Employable", "Broke", "HasAddress", "InterMineObject"}))); results.put("ContainsConstraintNull", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.addressId IS NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNull", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("ContainsConstraintNotNull", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.addressId IS NOT NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNotNull", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("ContainsConstraintObjectRefObject", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.departmentId = 5 ORDER BY a1_.id"); results2.put("ContainsConstraintObjectRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("ContainsConstraintNotObjectRefObject", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.departmentId != 5 ORDER BY a1_.id"); results2.put("ContainsConstraintNotObjectRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("ContainsConstraintCollectionRefObject", "SELECT a1_.id AS a1_id FROM Department AS a1_, Employee AS indirect0 WHERE (a1_.id = indirect0.departmentId AND indirect0.id = 11) ORDER BY a1_.id"); results2.put("ContainsConstraintCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Department", "Employee"}))); results.put("ContainsConstraintNotCollectionRefObject", "SELECT a1_.id AS a1_id FROM Department AS a1_, Employee AS indirect0 WHERE (a1_.id != indirect0.departmentId AND indirect0.id = 11) ORDER BY a1_.id"); results2.put("ContainsConstraintNotCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Department", "Employee"}))); results.put("ContainsConstraintMMCollectionRefObject", "SELECT a1_.id AS a1_id FROM Company AS a1_, CompanysContractors AS indirect0 WHERE (a1_.id = indirect0.Contractors AND indirect0.Companys = 3) ORDER BY a1_.id"); results2.put("ContainsConstraintMMCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company", "CompanysContractors"}))); results.put("ContainsConstraintNotMMCollectionRefObject", new Failure(ObjectStoreException.class, "Cannot represent many-to-many collection DOES NOT CONTAIN in SQL")); //TODO: Fix this (ticket #445) //results.put("ContainsConstraintNotMMCollectionRefObject", "SELECT a1_.id AS a1_id FROM Company AS a1_, CompanysContractors AS indirect0 WHERE (a1_.id != indirect0.Contractors AND indirect0.Companys = 3) ORDER BY a1_.id"); //results2.put("ContainsConstraintNotMMCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company", "CompanysContractors"}))); results.put("SimpleConstraintNull", "SELECT a1_.id AS a1_id FROM Manager AS a1_ WHERE a1_.title IS NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNull", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Manager"}))); results.put("SimpleConstraintNotNull", "SELECT a1_.id AS a1_id FROM Manager AS a1_ WHERE a1_.title IS NOT NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNotNull", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Manager"}))); results.put("TypeCast", "SELECT DISTINCT (a1_.age)::TEXT AS a2_ FROM Employee AS a1_ ORDER BY (a1_.age)::TEXT"); results2.put("TypeCast", Collections.singleton("Employee")); results.put("IndexOf", "SELECT STRPOS(a1_.name, 'oy') AS a2_ FROM Employee AS a1_ ORDER BY STRPOS(a1_.name, 'oy')"); results2.put("IndexOf", Collections.singleton("Employee")); results.put("Substring", "SELECT SUBSTR(a1_.name, 2, 2) AS a2_ FROM Employee AS a1_ ORDER BY SUBSTR(a1_.name, 2, 2)"); results2.put("Substring", Collections.singleton("Employee")); results.put("Substring2", "SELECT SUBSTR(a1_.name, 2) AS a2_ FROM Employee AS a1_ ORDER BY SUBSTR(a1_.name, 2)"); results2.put("Substring2", Collections.singleton("Employee")); results.put("OrderByReference", "SELECT a1_.id AS a1_id, a1_.departmentId AS orderbyfield0 FROM Employee AS a1_ ORDER BY a1_.departmentId, a1_.id"); results2.put("OrderByReference", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("FailDistinctOrder", new Failure(ObjectStoreException.class, "Field a1_.age in the ORDER BY list must be in the SELECT list, or the whole QueryClass org.intermine.model.testmodel.Employee must be in the SELECT list, or the query made non-distinct")); String largeBagConstraintText = new BufferedReader(new InputStreamReader(TruncatedSqlGeneratorTest.class.getClassLoader().getResourceAsStream("largeBag.sql"))).readLine(); results.put("LargeBagConstraint", largeBagConstraintText); results2.put("LargeBagConstraint", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); String largeNotBagConstraintText = new BufferedReader(new InputStreamReader(TruncatedSqlGeneratorTest.class.getClassLoader().getResourceAsStream("largeNotBag.sql"))).readLine(); results.put("LargeBagNotConstraint", largeNotBagConstraintText); results2.put("LargeBagNotConstraint", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("LargeBagConstraintUsingTable", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.name IN (SELECT value FROM " + LARGE_BAG_TABLE_NAME + ") ORDER BY a1_.id"); results2.put("LargeBagConstraintUsingTable", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("LargeBagNotConstraintUsingTable", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE NOT (a1_.name IN (SELECT value FROM " + LARGE_BAG_TABLE_NAME + ")) ORDER BY a1_.id"); results2.put("LargeBagNotConstraintUsingTable", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("NegativeNumbers", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE a1_.age > -51 ORDER BY a1_.id"); results2.put("NegativeNumbers", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("Lower", "SELECT LOWER(a1_.name) AS a2_ FROM Employee AS a1_ ORDER BY LOWER(a1_.name)"); results2.put("Lower", Collections.singleton("Employee")); results.put("Upper", "SELECT UPPER(a1_.name) AS a2_ FROM Employee AS a1_ ORDER BY UPPER(a1_.name)"); results2.put("Upper", Collections.singleton("Employee")); results.put("CollectionQueryOneMany", "SELECT a1_.id AS a1_id FROM Employee AS a1_ WHERE " + departmentA1Id + " = a1_.departmentId ORDER BY a1_.id"); results2.put("CollectionQueryOneMany", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("CollectionQueryManyMany", "SELECT a1_.id AS a1_id FROM Secretary AS a1_, HasSecretarysSecretarys AS indirect0 WHERE (" + companyBId + " = indirect0.Secretarys AND indirect0.HasSecretarys = a1_.id) ORDER BY a1_.id"); results2.put("CollectionQueryManyMany", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Secretary", "HasSecretarysSecretarys"}))); results.put("QueryClassBag", "SELECT a2_.departmentId AS a3_, a2_.id AS a2_id FROM Employee AS a2_ WHERE (a2_.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) ORDER BY a2_.departmentId, a2_.id"); results2.put("QueryClassBag", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("QueryClassBagMM", "SELECT indirect0.Secretarys AS a3_, a2_.id AS a2_id FROM Secretary AS a2_, HasSecretarysSecretarys AS indirect0 WHERE ((indirect0.Secretarys IN (" + companyAId + ", " + companyBId + ", " + employeeB1Id + ")) AND indirect0.HasSecretarys = a2_.id) ORDER BY indirect0.Secretarys, a2_.id"); results2.put("QueryClassBagMM", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Secretary", "HasSecretarysSecretarys"}))); results.put("QueryClassBagNot", new Failure(ObjectStoreException.class, "Invalid constraint: DOES NOT CONTAINS cannot be applied to a QueryClassBag")); //results.put("QueryClassBagNot", "SELECT a2_.departmentId AS a3_, a2_.id AS a2_id FROM Employee AS a2_ WHERE ( NOT (a2_.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + "))) ORDER BY a2_.departmentId, a2_.id"); //results2.put("QueryClassBagNot", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("QueryClassBagNotMM", new Failure(ObjectStoreException.class, "Invalid constraint: DOES NOT CONTAINS cannot be applied to a QueryClassBag")); results.put("QueryClassBagDynamic", "SELECT indirect0.Secretarys AS a3_, a2_.id AS a2_id FROM Secretary AS a2_, HasSecretarysSecretarys AS indirect0 WHERE ((indirect0.Secretarys IN (" + employeeB1Id + ")) AND indirect0.HasSecretarys = a2_.id) ORDER BY indirect0.Secretarys, a2_.id"); results2.put("QueryClassBagDynamic", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Secretary", "HasSecretarysSecretarys"}))); //res = new HashSet() //res.add("SELECT a1_.id AS a1_id FROM Employable AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); //res.add("SELECT a1_.id AS a1_id FROM Broke AS a1_, Employable AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); //results.put("DynamicBagConstraint", res); //results2.put("DynamicBagConstraint", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Broke", "CEO"}))); // See ticket #469 res = new HashSet(); res.add("SELECT a1_.id AS a1_id FROM CEO AS a1_, Broke AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); res.add("SELECT a1_.id AS a1_id FROM Broke AS a1_, CEO AS a1__1 WHERE a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); results.put("DynamicBagConstraint2", res); results2.put("DynamicBagConstraint2", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Broke", "CEO"}))); results.put("QueryClassBagDouble", "SELECT a2_.departmentId AS a4_, a2_.id AS a2_id, a3_.id AS a3_id FROM Employee AS a2_, Employee AS a3_ WHERE ((a2_.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND a3_.departmentId = a2_.departmentId) ORDER BY a2_.departmentId, a2_.id, a3_.id"); results2.put("QueryClassBagDouble", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee"}))); results.put("QueryClassBagContainsObject", "SELECT indirect0.departmentId AS a2_ FROM Employee AS indirect0 WHERE ((indirect0.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND indirect0.id = " + employeeA1Id + ") ORDER BY indirect0.departmentId"); results2.put("QueryClassBagContainsObject", Collections.singleton("Employee")); results.put("QueryClassBagContainsObjectDouble", "SELECT indirect0.departmentId AS a2_ FROM Employee AS indirect0, Employee AS indirect1 WHERE (((indirect0.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND indirect0.id = " + employeeA1Id + ") AND (indirect1.departmentId = indirect0.departmentId AND indirect1.id = " + employeeA2Id + ")) ORDER BY indirect0.departmentId"); results2.put("QueryClassBagContainsObjectDouble", Collections.singleton("Employee")); results.put("QueryClassBagNotContainsObject", new Failure(ObjectStoreException.class, "Invalid constraint: DOES NOT CONTAINS cannot be applied to a QueryClassBag")); results.put("ObjectContainsObject", "SELECT 'hello' AS a1_ FROM Employee AS indirect0 WHERE (" + departmentA1Id + " = indirect0.departmentId AND indirect0.id = " + employeeA1Id + ")"); results2.put("ObjectContainsObject", Collections.singleton("Employee")); results.put("ObjectContainsObject2", "SELECT 'hello' AS a1_ FROM Employee AS indirect0 WHERE (" + departmentA1Id + " = indirect0.departmentId AND indirect0.id = " + employeeB1Id + ")"); results2.put("ObjectContainsObject2", Collections.singleton("Employee")); results.put("ObjectNotContainsObject", "SELECT 'hello' AS a1_ FROM Employee AS indirect0 WHERE (" + departmentA1Id + " != indirect0.departmentId AND indirect0.id = " + employeeA1Id + ")"); results2.put("ObjectNotContainsObject", Collections.singleton("Employee")); results.put("QueryClassBagNotViaNand", new Failure(ObjectStoreException.class, "Invalid constraint: QueryClassBag ContainsConstraint cannot be inside an OR ConstraintSet")); results.put("QueryClassBagNotViaNor", new Failure(ObjectStoreException.class, "Invalid constraint: DOES NOT CONTAINS cannot be applied to a QueryClassBag")); results.put("SubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE EXISTS(SELECT a1_.id FROM Company AS a1_)"); results2.put("SubqueryExistsConstraint", Collections.singleton("Company")); results.put("NotSubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE (NOT EXISTS(SELECT a1_.id FROM Company AS a1_))"); results2.put("NotSubqueryExistsConstraint", Collections.singleton("Company")); results.put("SubqueryExistsConstraintNeg", "SELECT 'hello' AS a1_ WHERE EXISTS(SELECT a1_.id FROM Bank AS a1_)"); results2.put("SubqueryExistsConstraintNeg", Collections.singleton("Bank")); //results.put("ObjectPathExpression", "SELECT a1_.id AS a1_id FROM Employee AS a1_ ORDER BY a1_.id"); //results2.put("ObjectPathExpression", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Employee", "Department"}))); //results.put("FieldPathExpression", "SELECT a1_.id AS a1_id FROM Company AS a1_ ORDER BY a1_.id"); //results2.put("FieldPathExpression", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company", "CEO"}))); results.put("ObjectPathExpression", NO_RESULT); results.put("FieldPathExpression", NO_RESULT); results.put("ForeignKey", "SELECT a1_.id AS a1_id, a1_.CEOId AS a2_ FROM Company AS a1_ ORDER BY a1_.id"); results2.put("ForeignKey", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); results.put("ForeignKey2", "SELECT a1_.id AS a1_id, a1_.CEOId AS a2_ FROM Company AS a1_ ORDER BY a1_.id"); results2.put("ForeignKey2", new HashSet(Arrays.asList(new String[] {"InterMineObject", "Company"}))); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/c8af41491c45bdf301a00060b3d923f1e2c08033/SqlGeneratorTest.java/buggy/intermine/objectstore/test/src/org/intermine/objectstore/intermine/SqlGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 24292, 3447, 1435, 1216, 1185, 288, 3639, 9395, 37, 548, 273, 14015, 12627, 13, 501, 18, 588, 2932, 12627, 37, 7923, 2934, 26321, 5621, 3639, 9395, 38, 548, 273, 14015, 12627, 13, 501, 18, 588, 2932, 12627, 38, 7923, 2934, 26321, 5621, 3639, 443, 15750, 37, 21, 548, 273, 14015, 30358, 13, 501, 18, 588, 2932, 30358, 37, 21, 7923, 2934, 26321, 5621, 3639, 443, 15750, 38, 21, 548, 273, 14015, 30358, 13, 501, 18, 588, 2932, 30358, 38, 21, 7923, 2934, 26321, 5621, 3639, 24539, 1340, 37, 21, 548, 273, 14015, 41, 27520, 13, 501, 18, 588, 2932, 41, 27520, 37, 21, 7923, 2934, 26321, 5621, 3639, 24539, 1340, 37, 22, 548, 273, 14015, 41, 27520, 13, 501, 18, 588, 2932, 41, 27520, 37, 22, 7923, 2934, 26321, 5621, 3639, 24539, 1340, 38, 21, 548, 273, 14015, 41, 27520, 13, 501, 18, 588, 2932, 41, 27520, 38, 21, 7923, 2934, 26321, 5621, 3639, 1686, 273, 394, 6753, 1919, 26270, 863, 12, 2704, 4317, 10663, 3639, 1686, 22, 273, 394, 6753, 1919, 26270, 863, 12, 2704, 4317, 10663, 3639, 1686, 18, 458, 2932, 3391, 5784, 921, 3113, 315, 4803, 1554, 3081, 67, 2936, 18, 350, 5355, 1239, 2761, 3081, 67, 2936, 350, 2412, 4571, 26782, 5355, 1554, 3081, 67, 2936, 10205, 6953, 1554, 3081, 67, 2936, 18, 350, 8863, 3639, 1686, 22, 18, 458, 2932, 3391, 5784, 921, 3113, 394, 6847, 12, 12726, 18, 345, 682, 12, 2704, 514, 8526, 12528, 2465, 49, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 24292, 3447, 1435, 1216, 1185, 288, 3639, 9395, 37, 548, 273, 14015, 12627, 13, 501, 18, 588, 2932, 12627, 37, 7923, 2934, 26321, 5621, 3639, 9395, 38, 548, 273, 14015, 12627, 13, 501, 18, 588, 2932, 12627, 38, 7923, 2934, 26321, 5621, 3639, 443, 15750, 37, 21, 548, 273, 14015, 30358, 13, 501, 18, 588, 2932, 30358, 37, 21, 7923, 2934, 26321, 5621, 3639, 443, 15750, 38, 21, 548, 273, 14015, 30358, 13, 501, 18, 588, 2932, 30358, 38, 21, 7923, 2934, 26321, 5621, 3639, 24539, 1340, 37, 21, 548, 273, 14015, 41, 27520, 13, 501, 18, 588, 2932, 41, 27520, 37, 21, 7923, 2934, 26321, 5621, 3639, 24539, 1340, 37, 22, 548, 273, 14015, 2 ]
SwingUtilities.invokeLater(new Runnable() { public void run() { archiveCount++; archiveCountLabel.setText(archiveCount + "/" + numArchives); } });
step();
public void finishArchive() { SwingUtilities.invokeLater(new Runnable() { public void run() { archiveCount++; archiveCountLabel.setText(archiveCount + "/" + numArchives); } }); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/11a1bdf9713eade5da1a50d02653125b7fb3a585/RunAnalysisDialog.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/RunAnalysisDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 4076, 7465, 1435, 288, 5411, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 5052, 1380, 9904, 31, 10792, 5052, 1380, 2224, 18, 542, 1528, 12, 10686, 1380, 397, 4016, 397, 818, 12269, 3606, 1769, 7734, 289, 5411, 15549, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4076, 7465, 1435, 288, 5411, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 5052, 1380, 9904, 31, 10792, 5052, 1380, 2224, 18, 542, 1528, 12, 10686, 1380, 397, 4016, 397, 818, 12269, 3606, 1769, 7734, 289, 5411, 15549, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public PrintColor(float red, float green, float blue, float asGray, boolean asBlack) {
public PrintColor(float red, float green, float blue, float asGray, boolean asBlack) {
public PrintColor(float red, float green, float blue, float asGray, boolean asBlack) { this(red, green, blue, 1.0f, asGray, asBlack); }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/d2255fbe86a662c3d5768854411509915a7f3e00/PrintColor.java/clean/freehep-graphics2d/src/main/java/org/freehep/graphics2d/PrintColor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3038, 2957, 12, 5659, 1755, 16, 1431, 10004, 16, 1431, 8024, 16, 1431, 487, 23521, 16, 1250, 487, 13155, 13, 288, 3639, 333, 12, 1118, 16, 10004, 16, 8024, 16, 404, 18, 20, 74, 16, 487, 23521, 16, 487, 13155, 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, 3038, 2957, 12, 5659, 1755, 16, 1431, 10004, 16, 1431, 8024, 16, 1431, 487, 23521, 16, 1250, 487, 13155, 13, 288, 3639, 333, 12, 1118, 16, 10004, 16, 8024, 16, 404, 18, 20, 74, 16, 487, 23521, 16, 487, 13155, 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 ]
setupLex(Parser.PARENOPEN); setupLex(Parser.PARENCLOSE);
setupLex(Parser.BRACEOPEN); setupLex(Parser.BRACECLOSE);
public void testEmptyClassImplementsMultipleInterfaces() throws Exception { // setup values setupLex(Parser.CLASS); setupLex(Parser.IDENTIFIER, "MyClass"); setupLex(Parser.IMPLEMENTS); setupLex(Parser.IDENTIFIER, "com"); setupLex(Parser.DOT); setupLex(Parser.IDENTIFIER, "blah"); setupLex(Parser.DOT); setupLex(Parser.IDENTIFIER, "AnInterface"); setupLex(Parser.COMMA); setupLex(Parser.IDENTIFIER, "java"); setupLex(Parser.DOT); setupLex(Parser.IDENTIFIER, "io"); setupLex(Parser.DOT); setupLex(Parser.IDENTIFIER, "Serializable"); setupLex(Parser.COMMA); setupLex(Parser.IDENTIFIER, "Eatable"); setupLex(Parser.PARENOPEN); setupLex(Parser.PARENCLOSE); setupLex(0); // expectations ClassDef cls = new ClassDef(); cls.name = "MyClass"; cls.implementz.add("com.blah.AnInterface"); cls.implementz.add("java.io.Serializable"); cls.implementz.add("Eatable"); builder.addExpectedAddClassValues(cls); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
5818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5818/965f3f001c3ba451603c4915ad20ae6271dac0ef/ParserTest.java/buggy/src/test/com/thoughtworks/qdox/parser/ParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 797, 17516, 8438, 10273, 1435, 1216, 1185, 288, 202, 202, 759, 3875, 924, 202, 202, 8401, 14756, 12, 2678, 18, 5237, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 12062, 797, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 9883, 7618, 55, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 832, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 3083, 9795, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 979, 1358, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 4208, 5535, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 6290, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 1594, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 21682, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 4208, 5535, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 41, 8163, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 11713, 3417, 52, 1157, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 11713, 10346, 9320, 1769, 202, 202, 8401, 14756, 12, 20, 1769, 202, 202, 759, 26305, 202, 202, 797, 3262, 2028, 273, 394, 1659, 3262, 5621, 202, 202, 6429, 18, 529, 273, 315, 12062, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 797, 17516, 8438, 10273, 1435, 1216, 1185, 288, 202, 202, 759, 3875, 924, 202, 202, 8401, 14756, 12, 2678, 18, 5237, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 12062, 797, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 9883, 7618, 55, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 832, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 3083, 9795, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 17591, 1769, 202, 202, 8401, 14756, 12, 2678, 18, 16606, 16, 315, 979, 1358, 8863, 202, 202, 8401, 14756, 12, 2678, 18, 4208, 5535, 1769, 202, 2 ]
options.noWeave = true;
options.terminateAfterCompilation = true;
public void testDirectSet() { options.noWeave = true; options.xSerializableAspects = true; options.xLazyThisJoinPoint = true; options.xNoInline = true; options.xNotReweavable = true; options.generateModel = true; options.generateJavaDocsInModel = true; options.generateEmacsSymFiles = true; options.noAtAspectJProcessing = true; Map map = options.getMap(); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_NoWeave)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_XSerializableAspects)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_XLazyThisJoinPoint)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_XNoInline)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_XNotReweavable)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_GenerateModel)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_GenerateJavaDocsInModel)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_Emacssym)); assertEquals(CompilerOptions.ENABLED,map.get(AjCompilerOptions.OPTION_XDevNoAtAspectJProcessing)); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/b2259116b8731725743d255a85c894d6f998afb1/AjCompilerOptionsTest.java/clean/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjCompilerOptionsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5368, 694, 1435, 288, 202, 202, 2116, 18, 2135, 3218, 836, 273, 638, 31, 202, 202, 2116, 18, 92, 21682, 17468, 87, 273, 638, 31, 202, 202, 2116, 18, 92, 14443, 2503, 4572, 2148, 273, 638, 31, 202, 202, 2116, 18, 92, 2279, 10870, 273, 638, 31, 202, 202, 2116, 18, 92, 1248, 17631, 73, 842, 429, 273, 638, 31, 202, 202, 2116, 18, 7163, 1488, 273, 638, 31, 202, 202, 2116, 18, 7163, 5852, 12656, 382, 1488, 273, 638, 31, 202, 202, 2116, 18, 7163, 1514, 28965, 11901, 2697, 273, 638, 31, 202, 202, 2116, 18, 2135, 861, 17468, 46, 7798, 273, 638, 31, 202, 202, 863, 852, 273, 702, 18, 588, 863, 5621, 202, 202, 11231, 8867, 12, 9213, 1320, 18, 13560, 16, 1458, 18, 588, 12, 37, 78, 9213, 1320, 18, 7425, 67, 2279, 3218, 836, 10019, 202, 202, 11231, 8867, 12, 9213, 1320, 18, 13560, 16, 1458, 18, 588, 12, 37, 78, 9213, 1320, 18, 7425, 67, 60, 21682, 17468, 87, 10019, 202, 202, 11231, 8867, 12, 9213, 1320, 18, 13560, 16, 1458, 18, 588, 12, 37, 78, 9213, 1320, 18, 7425, 67, 60, 14443, 2503, 4572, 2148, 10019, 202, 202, 11231, 8867, 12, 9213, 1320, 18, 13560, 16, 1458, 18, 588, 12, 37, 78, 9213, 1320, 18, 7425, 67, 60, 2279, 10870, 10019, 202, 202, 11231, 8867, 12, 9213, 1320, 18, 13560, 16, 1458, 18, 588, 12, 37, 78, 9213, 1320, 18, 7425, 67, 60, 1248, 17631, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5368, 694, 1435, 288, 202, 202, 2116, 18, 2135, 3218, 836, 273, 638, 31, 202, 202, 2116, 18, 92, 21682, 17468, 87, 273, 638, 31, 202, 202, 2116, 18, 92, 14443, 2503, 4572, 2148, 273, 638, 31, 202, 202, 2116, 18, 92, 2279, 10870, 273, 638, 31, 202, 202, 2116, 18, 92, 1248, 17631, 73, 842, 429, 273, 638, 31, 202, 202, 2116, 18, 7163, 1488, 273, 638, 31, 202, 202, 2116, 18, 7163, 5852, 12656, 382, 1488, 273, 638, 31, 202, 202, 2116, 18, 7163, 1514, 28965, 11901, 2697, 273, 638, 31, 202, 202, 2116, 18, 2135, 861, 17468, 46, 7798, 273, 638, 31, 202, 202, 863, 852, 273, 702, 18, 588, 863, 2 ]
if((tuple != null) && (tuple.getLinkedList() == this.memoryMasterList)) { if(this.innerMemory != null) { this.innerMemory.remove(workingMemory, (MultiLinkedListNodeWrapper)tuple.getChild().getChild()); } LinkedList list = tuple.getChild().getLinkedList(); list.remove(tuple.getChild()); if(list.isEmpty()) { removeMemoryEntry( list ); } this.memoryMasterList.remove(tuple);
if(this.innerMemory != null) { this.innerMemory.remove(workingMemory, (MultiLinkedListNodeWrapper)tuple.getChild().getChild());
public void remove(WorkingMemory workingMemory, ReteTuple tuple) { if((tuple != null) && (tuple.getLinkedList() == this.memoryMasterList)) { if(this.innerMemory != null) { this.innerMemory.remove(workingMemory, (MultiLinkedListNodeWrapper)tuple.getChild().getChild()); } LinkedList list = tuple.getChild().getLinkedList(); list.remove(tuple.getChild()); if(list.isEmpty()) { removeMemoryEntry( list ); } this.memoryMasterList.remove(tuple); } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/703358402ea0c17d327826d817d52451ec26a2f6/ObjectNotEqualConstrLeftMemory.java/clean/drools-core/src/main/java/org/drools/reteoo/beta/ObjectNotEqualConstrLeftMemory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 12, 14836, 6031, 5960, 6031, 16, 534, 12865, 9038, 3193, 13, 288, 3639, 309, 12443, 8052, 480, 446, 13, 597, 261, 8052, 18, 588, 13174, 682, 1435, 422, 333, 18, 7858, 7786, 682, 3719, 288, 5411, 309, 12, 2211, 18, 7872, 6031, 480, 446, 13, 288, 7734, 333, 18, 7872, 6031, 18, 4479, 12, 20478, 6031, 16, 29159, 261, 5002, 13174, 682, 907, 3611, 13, 8052, 18, 588, 1763, 7675, 588, 1763, 10663, 5411, 289, 5411, 10688, 666, 273, 3193, 18, 588, 1763, 7675, 588, 13174, 682, 5621, 2398, 666, 18, 4479, 12, 8052, 18, 588, 1763, 10663, 5411, 309, 12, 1098, 18, 291, 1921, 10756, 288, 7734, 1206, 6031, 1622, 12, 666, 11272, 5411, 289, 5411, 333, 18, 7858, 7786, 682, 18, 4479, 12, 8052, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 12, 14836, 6031, 5960, 6031, 16, 534, 12865, 9038, 3193, 13, 288, 3639, 309, 12443, 8052, 480, 446, 13, 597, 261, 8052, 18, 588, 13174, 682, 1435, 422, 333, 18, 7858, 7786, 682, 3719, 288, 5411, 309, 12, 2211, 18, 7872, 6031, 480, 446, 13, 288, 7734, 333, 18, 7872, 6031, 18, 4479, 12, 20478, 6031, 16, 29159, 261, 5002, 13174, 682, 907, 3611, 13, 8052, 18, 588, 1763, 7675, 588, 1763, 10663, 5411, 289, 5411, 10688, 666, 273, 3193, 18, 588, 1763, 7675, 588, 13174, 682, 5621, 2398, 666, 18, 4479, 12, 8052, 18, 588, 1763, 10663, 5411, 309, 12, 1098, 18, 291, 1921, 10756, 288, 7734, 1206, 6031, 1622, 12, 666, 11272, 5411, 2 ]
if (parser == null) throw new IllegalStateException("Parser has not been set"); System.out.println("insertBeforeStart not implemented");
HTMLEditorKit.ParserCallback reader = getInsertingReader( elem.getStartOffset(), 0, 0, HTML.Tag.BODY, elem); getParser().parse(new StringReader(htmlText), reader, true);
public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException, NotImplementedException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not implemented"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18004, 1685, 12, 1046, 3659, 16, 514, 1729, 1528, 13, 1377, 1216, 6107, 2735, 503, 16, 1860, 16, 10051, 503, 225, 288, 565, 309, 261, 4288, 422, 446, 13, 1377, 604, 394, 5477, 2932, 2678, 711, 486, 2118, 444, 8863, 565, 368, 225, 9852, 30, 2288, 8249, 7418, 16, 999, 8040, 4870, 14, 316, 19408, 9687, 72, 1811, 14102, 35, 565, 2332, 18, 659, 18, 8222, 2932, 6387, 4649, 1685, 486, 8249, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18004, 1685, 12, 1046, 3659, 16, 514, 1729, 1528, 13, 1377, 1216, 6107, 2735, 503, 16, 1860, 16, 10051, 503, 225, 288, 565, 309, 261, 4288, 422, 446, 13, 1377, 604, 394, 5477, 2932, 2678, 711, 486, 2118, 444, 8863, 565, 368, 225, 9852, 30, 2288, 8249, 7418, 16, 999, 8040, 4870, 14, 316, 19408, 9687, 72, 1811, 14102, 35, 565, 2332, 18, 659, 18, 8222, 2932, 6387, 4649, 1685, 486, 8249, 8863, 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 ]
VM.sysWriteln("VM_HPMs.writeStringToBuffer(",index,") with bytes.length ",length);
VM.sysWriteln( "VM_HPMs.writeStringToBuffer() buffer index ",index," for length ",length);
static public int writeStringToBuffer(byte[] buffer, int index, byte[] bytes) throws VM_PragmaUninterruptible { int length = bytes.length; if(verbose>=4) { VM.sysWriteln("VM_HPMs.writeStringToBuffer(",index,") with bytes.length ",length); } VM_Magic.setIntAtOffset(buffer, index, length); index += SIZE_OF_INT; for (int i=0; i<length; i++) { VM_Magic.setByteAtOffset(buffer, index, bytes[i]); index++; } if(verbose>=4)VM.sysWriteln("VM_HPMs.writeStringToBuffer() return index ",index); return index; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/6ea02d0f64848e13fc72d7a6ea905f30f4f03740/VM_HardwarePerformanceMonitors.java/buggy/rvm/src/vm/arch/powerPC/runtime/VM_HardwarePerformanceMonitors.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 509, 12967, 774, 1892, 12, 7229, 8526, 1613, 16, 509, 770, 16, 1160, 8526, 1731, 13, 565, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 282, 288, 565, 509, 769, 273, 1731, 18, 2469, 31, 565, 309, 12, 11369, 34, 33, 24, 13, 288, 1377, 8251, 18, 9499, 4913, 292, 82, 12, 225, 315, 7397, 67, 2500, 6947, 18, 2626, 23282, 1892, 1435, 1613, 770, 3104, 1615, 10837, 364, 769, 3104, 2469, 1769, 565, 289, 565, 8251, 67, 19289, 18, 542, 1702, 861, 2335, 12, 4106, 16, 770, 16, 769, 1769, 202, 202, 1615, 1011, 11963, 67, 3932, 67, 3217, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2469, 31, 277, 27245, 288, 1377, 8251, 67, 19289, 18, 542, 3216, 861, 2335, 12, 4106, 16, 770, 16, 1731, 63, 77, 19226, 1377, 770, 9904, 31, 565, 289, 565, 309, 12, 11369, 34, 33, 24, 13, 7397, 18, 9499, 4913, 292, 82, 2932, 7397, 67, 2500, 6947, 18, 2626, 23282, 1892, 1435, 327, 770, 3104, 1615, 1769, 565, 327, 770, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 509, 12967, 774, 1892, 12, 7229, 8526, 1613, 16, 509, 770, 16, 1160, 8526, 1731, 13, 565, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 282, 288, 565, 509, 769, 273, 1731, 18, 2469, 31, 565, 309, 12, 11369, 34, 33, 24, 13, 288, 1377, 8251, 18, 9499, 4913, 292, 82, 12, 225, 315, 7397, 67, 2500, 6947, 18, 2626, 23282, 1892, 1435, 1613, 770, 3104, 1615, 10837, 364, 769, 3104, 2469, 1769, 565, 289, 565, 8251, 67, 19289, 18, 542, 1702, 861, 2335, 12, 4106, 16, 770, 16, 769, 1769, 202, 202, 1615, 1011, 11963, 67, 3932, 67, 3217, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2469, 31, 277, 27245, 288, 2 ]
new MylarJUnitMainTab(false),
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs= new ILaunchConfigurationTab[] {// new JUnitMainTab(), new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5f148eddf88f082fc8ccbea4fa5da1e75ee78035/MylarJUnitTabGroup.java/clean/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/internal/junit/MylarJUnitTabGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 918, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 752, 17348, 12, 2627, 4760, 1750, 6353, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 6176, 16, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 514, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 1965, 13, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 288, 9506, 202, 2627, 4760, 1750, 5661, 8526, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 10920, 33, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 394, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 467, 9569, 1750, 5661, 8526, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 288, 759, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 804, 2802, 6376, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 5110, 4628, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 5110, 17461, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 5110, 46, 862, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 4998, 6609, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 7518, 5661, 9334, 1082, 202, 2704, 2704, 8005, 7901, 46, 2802, 6376, 5661, 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, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 918, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 752, 17348, 12, 2627, 4760, 1750, 6353, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 6176, 16, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 514, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 1965, 13, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 288, 9506, 202, 2627, 4760, 1750, 5661, 8526, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 10920, 33, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 394, 2704, 8005, 7901, 46, 2802, 6376, 5661, 12, 5743, 3631, 467, 9569, 2 ]
System.out.println("[" + name + "]: BLOCK");
System.out.println("[" + name + ":" +getLocalAddress() +"]: BLOCK");
public void block() { if(verbose) System.out.println("[" + name + "]: BLOCK"); events.add(new BlockEvent()); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/ec03d64caa931b884e25abc91d1efc2046b3a6b6/FlushTest.java/buggy/tests/junit/org/jgroups/tests/FlushTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1203, 1435, 288, 5411, 309, 12, 11369, 13, 7734, 2332, 18, 659, 18, 8222, 2932, 9614, 397, 508, 397, 6153, 397, 588, 2042, 1887, 1435, 397, 11929, 30, 14073, 8863, 5411, 2641, 18, 1289, 12, 2704, 3914, 1133, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1203, 1435, 288, 5411, 309, 12, 11369, 13, 7734, 2332, 18, 659, 18, 8222, 2932, 9614, 397, 508, 397, 6153, 397, 588, 2042, 1887, 1435, 397, 11929, 30, 14073, 8863, 5411, 2641, 18, 1289, 12, 2704, 3914, 1133, 10663, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
break _loop307;
break _loop310;
public final Expression functionCall(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST functionCall_AST_in = (AST)_t; AST fn = null; PathExpr pathExpr; step= null; AST __t305 = _t; fn = _t==ASTNULL ? null :(AST)_t; match(_t,FUNCTION); _t = _t.getFirstChild(); List params= new ArrayList(2); { _loop307: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { pathExpr= new PathExpr(context); expr(_t,pathExpr); _t = _retTree; params.add(pathExpr); } else { break _loop307; } } while (true); } _t = __t305; _t = _t.getNextSibling(); step = FunctionFactory.createFunction(context, path, fn.getText(), params); _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 445, 1477, 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, 202, 202, 2300, 2235, 31, 9506, 202, 9053, 445, 1477, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 2295, 273, 446, 31, 6862, 202, 743, 4742, 589, 4742, 31, 1082, 202, 4119, 33, 446, 31, 25083, 202, 9053, 1001, 88, 5082, 25, 273, 389, 88, 31, 202, 202, 4293, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 682, 859, 33, 394, 2407, 12, 22, 1769, 202, 202, 95, 202, 202, 67, 6498, 5082, 27, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 430, 14015, 67, 2316, 694, 67, 20, 18, 5990, 24899, 88, 18, 588, 559, 1435, 20349, 288, 9506, 202, 803, 4742, 33, 394, 2666, 4742, 12, 2472, 1769, 9506, 202, 8638, 24899, 88, 16, 803, 4742, 1769, 9506, 202, 67, 88, 273, 389, 1349, 2471, 31, 9506, 202, 2010, 18, 1289, 12, 803, 4742, 1769, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 8820, 389, 6498, 5082, 27, 31, 1082, 202, 97, 6862, 202, 97, 1323, 261, 3767, 1769, 202, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 445, 1477, 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, 202, 202, 2300, 2235, 31, 9506, 202, 9053, 445, 1477, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 2295, 273, 446, 31, 6862, 202, 743, 4742, 589, 4742, 31, 1082, 202, 4119, 33, 446, 31, 25083, 202, 9053, 1001, 88, 5082, 25, 273, 389, 88, 31, 202, 202, 4293, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 2 ]
if (args.length > 0) { includeSuper = args[0].isTrue(); }
if (args.length > 0) { includeSuper = args[0].isTrue(); }
public RubyObject m_private_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1152, 67, 1336, 67, 5163, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 6494, 2341, 8051, 273, 629, 31, 202, 202, 430, 261, 1968, 18, 2469, 405, 374, 13, 288, 1082, 202, 6702, 8051, 273, 833, 63, 20, 8009, 291, 5510, 5621, 202, 202, 97, 202, 202, 2463, 707, 682, 12, 6702, 8051, 16, 394, 19817, 863, 1305, 1435, 288, 1082, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 10340, 1076, 11841, 273, 261, 54, 10340, 1076, 13, 1501, 31, 9506, 202, 430, 261, 3432, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 6862, 202, 814, 18, 6206, 12, 588, 54, 10340, 7675, 588, 12616, 10663, 6862, 202, 814, 18, 6206, 12, 54, 10340, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 1435, 10019, 9506, 202, 97, 469, 309, 14015, 3432, 18, 588, 2279, 338, 1435, 473, 5245, 18, 3417, 2294, 67, 20055, 13, 480, 374, 13, 288, 6862, 202, 54, 10340, 780, 508, 273, 19817, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 10663, 6862, 202, 430, 261, 814, 18, 81, 67, 18499, 12, 529, 2934, 291, 8381, 10756, 288, 25083, 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, 19817, 921, 312, 67, 1152, 67, 1336, 67, 5163, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 6494, 2341, 8051, 273, 629, 31, 202, 202, 430, 261, 1968, 18, 2469, 405, 374, 13, 288, 1082, 202, 6702, 8051, 273, 833, 63, 20, 8009, 291, 5510, 5621, 202, 202, 97, 202, 202, 2463, 707, 682, 12, 6702, 8051, 16, 394, 19817, 863, 1305, 1435, 288, 1082, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 2 ]
seqReader.skip(-1);
try { seqReader.skip(-1); fail("IllegalArgumentException expected"); } catch (IllegalArgumentException e) { }
public void testSkipNegative() throws IOException { seqReader.skip(-1); }
56200 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56200/aa4160cb7196f35c98336a30112d83e78d7450e6/SequenceReaderTest.java/buggy/src/test/java/com/randomcoder/io/SequenceReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 6368, 14959, 1435, 1216, 1860, 202, 95, 202, 202, 5436, 2514, 18, 7457, 19236, 21, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 6368, 14959, 1435, 1216, 1860, 202, 95, 202, 202, 5436, 2514, 18, 7457, 19236, 21, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate();
public quickfix.field.EventDate getEventDate() throws FieldNotFound { quickfix.field.EventDate value = new quickfix.field.EventDate();
public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/clean/src/java/src/quickfix/fix44/DerivativeSecurityList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 9832, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 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, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 9832, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 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, -100 ]
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end);
public void replaceRange (String str, int start, int end) { replaceText (str, start, end);
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextArea.java/buggy/core/src/classpath/java/java/awt/TextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1453, 2655, 12, 780, 977, 16, 509, 787, 16, 509, 679, 13, 288, 202, 202, 1528, 5484, 6813, 13495, 273, 261, 1528, 5484, 6813, 13, 29875, 5621, 202, 202, 430, 261, 29562, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 29562, 18, 2079, 2655, 12, 955, 16, 787, 16, 679, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1453, 2655, 12, 780, 977, 16, 509, 787, 16, 509, 679, 13, 288, 202, 202, 1528, 5484, 6813, 13495, 273, 261, 1528, 5484, 6813, 13, 29875, 5621, 202, 202, 430, 261, 29562, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 29562, 18, 2079, 2655, 12, 955, 16, 787, 16, 679, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ return new TreeExpansionHandler(); }
{ return new TreeExpansionHandler(); }
protected TreeExpansionListener createTreeExpansionListener() { return new TreeExpansionHandler(); }
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, 225, 202, 1117, 4902, 2966, 12162, 2223, 752, 2471, 2966, 12162, 2223, 1435, 202, 95, 202, 202, 2463, 394, 4902, 2966, 12162, 1503, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4902, 2966, 12162, 2223, 752, 2471, 2966, 12162, 2223, 1435, 202, 95, 202, 202, 2463, 394, 4902, 2966, 12162, 1503, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 busyOpenEditorBatched(input, editorID, activate, findExisting);
return busyOpenEditorBatched(input, editorID, activate, matchFlags);
private IEditorPart busyOpenEditor(IEditorInput input, String editorID, boolean activate, boolean findExisting) throws PartInitException { final Workbench workbench = (Workbench) getWorkbenchWindow() .getWorkbench(); workbench.largeUpdateStart(); try { return busyOpenEditorBatched(input, editorID, activate, findExisting); } finally { workbench.largeUpdateEnd(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/662625ea215497034847e1b37353c7cd1ca11a9f/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 1988, 21697, 3678, 6946, 12, 45, 6946, 1210, 810, 16, 514, 4858, 734, 16, 5411, 1250, 10235, 16, 1250, 1104, 9895, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 4147, 22144, 1440, 22144, 273, 261, 2421, 22144, 13, 29026, 22144, 3829, 1435, 7734, 263, 588, 2421, 22144, 5621, 3639, 1440, 22144, 18, 14095, 1891, 1685, 5621, 3639, 775, 288, 5411, 327, 21697, 3678, 6946, 4497, 329, 12, 2630, 16, 4858, 734, 16, 10235, 16, 845, 5094, 1769, 3639, 289, 3095, 288, 5411, 1440, 22144, 18, 14095, 1891, 1638, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 1988, 21697, 3678, 6946, 12, 45, 6946, 1210, 810, 16, 514, 4858, 734, 16, 5411, 1250, 10235, 16, 1250, 1104, 9895, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 4147, 22144, 1440, 22144, 273, 261, 2421, 22144, 13, 29026, 22144, 3829, 1435, 7734, 263, 588, 2421, 22144, 5621, 3639, 1440, 22144, 18, 14095, 1891, 1685, 5621, 3639, 775, 288, 5411, 327, 21697, 3678, 6946, 4497, 329, 12, 2630, 16, 4858, 734, 16, 10235, 16, 845, 5094, 1769, 3639, 289, 3095, 288, 5411, 1440, 22144, 18, 14095, 1891, 1638, 5621, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
OutputStream debug = new FileOutputStream("/tmp/" + name); debug.write(b); debug.close();
protected Class define() throws CodeGenerationException { try { try { try { generate(); String name = cg.getClassName(); byte[] b = cg.getJavaClass().getBytes(); // DEBUG OutputStream debug = new FileOutputStream("/tmp/" + name); debug.write(b); debug.close(); PrivilegedAction action = getDefineClassAction(name, b, loader); return (Class)java.security.AccessController.doPrivileged(action); } catch (WrappedException e) { throw e.getCause(); } } catch (InvocationTargetException e) { throw e.getTargetException(); } } catch (RuntimeException e) { throw e; } catch (CodeGenerationException e) { throw e; } catch (Exception e) { throw new CodeGenerationException(e); } catch (Error e) { throw e; } catch (Throwable t) { // impossible throw new CodeGenerationException(t); } }
1154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1154/c71abad5fe90224debb8a7369e4b7881b0a53290/CodeGenerator.java/clean/src/proxy/net/sf/cglib/util/CodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1659, 4426, 1435, 1216, 3356, 13842, 503, 288, 3639, 775, 288, 5411, 775, 288, 7734, 775, 288, 10792, 2103, 5621, 10792, 514, 508, 273, 14947, 18, 588, 3834, 5621, 10792, 1160, 8526, 324, 273, 14947, 18, 588, 5852, 797, 7675, 588, 2160, 5621, 10792, 368, 6369, 10792, 8962, 1198, 273, 394, 12942, 2932, 19, 5645, 4898, 397, 508, 1769, 10792, 1198, 18, 2626, 12, 70, 1769, 10792, 1198, 18, 4412, 5621, 10792, 24897, 1301, 273, 336, 11644, 797, 1803, 12, 529, 16, 324, 16, 4088, 1769, 10792, 327, 261, 797, 13, 6290, 18, 7462, 18, 1862, 2933, 18, 2896, 18845, 12, 1128, 1769, 7734, 289, 1044, 261, 17665, 503, 425, 13, 288, 10792, 604, 425, 18, 588, 10683, 5621, 7734, 289, 5411, 289, 1044, 261, 9267, 14950, 425, 13, 288, 7734, 604, 425, 18, 588, 14950, 5621, 5411, 289, 3639, 289, 1044, 261, 11949, 425, 13, 288, 5411, 604, 425, 31, 3639, 289, 1044, 261, 1085, 13842, 503, 425, 13, 288, 5411, 604, 425, 31, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 3356, 13842, 503, 12, 73, 1769, 3639, 289, 1044, 261, 668, 425, 13, 288, 5411, 604, 425, 31, 3639, 289, 1044, 261, 15155, 268, 13, 288, 5411, 368, 23343, 5411, 604, 394, 3356, 13842, 503, 12, 88, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1659, 4426, 1435, 1216, 3356, 13842, 503, 288, 3639, 775, 288, 5411, 775, 288, 7734, 775, 288, 10792, 2103, 5621, 10792, 514, 508, 273, 14947, 18, 588, 3834, 5621, 10792, 1160, 8526, 324, 273, 14947, 18, 588, 5852, 797, 7675, 588, 2160, 5621, 10792, 368, 6369, 10792, 8962, 1198, 273, 394, 12942, 2932, 19, 5645, 4898, 397, 508, 1769, 10792, 1198, 18, 2626, 12, 70, 1769, 10792, 1198, 18, 4412, 5621, 10792, 24897, 1301, 273, 336, 11644, 797, 1803, 12, 529, 16, 324, 16, 4088, 1769, 10792, 327, 261, 797, 13, 6290, 18, 7462, 18, 1862, 2933, 18, 2896, 18845, 12, 1128, 1769, 7734, 289, 1044, 261, 17665, 503, 425, 13, 288, 10792, 604, 425, 18, 588, 2 ]
private String createOutputFileName(File targetFile, String optionalOutputFile, String outputDirectory) {
private String createOutputFileName(File destFile, String optionalOutputFile, String outputDir) {
private String createOutputFileName(File targetFile, String optionalOutputFile, String outputDirectory) { optionalOutputFile = validateOutputFile(optionalOutputFile, outputDirectory); String jjtreeFile = targetFile.getAbsolutePath().replace('\\', '/'); if ((optionalOutputFile == null) || optionalOutputFile.equals("")) { int filePos = jjtreeFile.lastIndexOf("/"); if (filePos >= 0) { jjtreeFile = jjtreeFile.substring(filePos + 1); } int suffixPos = jjtreeFile.lastIndexOf('.'); if (suffixPos == -1) { optionalOutputFile = jjtreeFile + DEFAULT_SUFFIX; } else { String currentSuffix = jjtreeFile.substring(suffixPos); if (currentSuffix.equals(DEFAULT_SUFFIX)) { optionalOutputFile = jjtreeFile + DEFAULT_SUFFIX; } else { optionalOutputFile = jjtreeFile.substring(0, suffixPos) + DEFAULT_SUFFIX; } } } if ((outputDirectory == null) || outputDirectory.equals("")) { outputDirectory = getDefaultOutputDirectory(); } return (outputDirectory + "/" + optionalOutputFile).replace('\\', '/'); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/bfdef4b799b1b91d93f573e945f5f4b41fe4c4bb/JJTree.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 752, 1447, 4771, 12, 812, 21254, 16, 514, 3129, 1447, 812, 16, 4766, 3639, 514, 29373, 13, 288, 3639, 3129, 1447, 812, 273, 1954, 1447, 812, 12, 10444, 1447, 812, 16, 4766, 7734, 29373, 1769, 3639, 514, 10684, 3413, 812, 273, 21254, 18, 588, 10368, 743, 7675, 2079, 2668, 1695, 2187, 2023, 1769, 3639, 309, 14015, 10444, 1447, 812, 422, 446, 13, 747, 3129, 1447, 812, 18, 14963, 2932, 6, 3719, 288, 5411, 509, 585, 1616, 273, 10684, 3413, 812, 18, 2722, 31985, 2932, 4898, 1769, 5411, 309, 261, 768, 1616, 1545, 374, 13, 288, 7734, 10684, 3413, 812, 273, 10684, 3413, 812, 18, 28023, 12, 768, 1616, 397, 404, 1769, 5411, 289, 5411, 509, 3758, 1616, 273, 10684, 3413, 812, 18, 2722, 31985, 2668, 1093, 1769, 5411, 309, 261, 8477, 1616, 422, 300, 21, 13, 288, 7734, 3129, 1447, 812, 273, 10684, 3413, 812, 397, 3331, 67, 14964, 31, 5411, 289, 469, 288, 7734, 514, 783, 5791, 273, 10684, 3413, 812, 18, 28023, 12, 8477, 1616, 1769, 7734, 309, 261, 2972, 5791, 18, 14963, 12, 5280, 67, 14964, 3719, 288, 10792, 3129, 1447, 812, 273, 10684, 3413, 812, 397, 3331, 67, 14964, 31, 7734, 289, 469, 288, 10792, 3129, 1447, 812, 273, 10684, 3413, 812, 18, 28023, 12, 20, 16, 3758, 1616, 13, 13491, 397, 3331, 67, 14964, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 14015, 2844, 2853, 422, 446, 13, 747, 29373, 18, 14963, 2932, 6, 3719, 288, 5411, 29373, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 752, 1447, 4771, 12, 812, 21254, 16, 514, 3129, 1447, 812, 16, 4766, 3639, 514, 29373, 13, 288, 3639, 3129, 1447, 812, 273, 1954, 1447, 812, 12, 10444, 1447, 812, 16, 4766, 7734, 29373, 1769, 3639, 514, 10684, 3413, 812, 273, 21254, 18, 588, 10368, 743, 7675, 2079, 2668, 1695, 2187, 2023, 1769, 3639, 309, 14015, 10444, 1447, 812, 422, 446, 13, 747, 3129, 1447, 812, 18, 14963, 2932, 6, 3719, 288, 5411, 509, 585, 1616, 273, 10684, 3413, 812, 18, 2722, 31985, 2932, 4898, 1769, 5411, 309, 261, 768, 1616, 1545, 374, 13, 288, 7734, 10684, 3413, 812, 273, 10684, 3413, 812, 18, 28023, 12, 768, 1616, 397, 404, 1769, 5411, 289, 5411, 509, 3758, 2 ]
if (true == GUIPreferences.getInstance().getNagForMapEdReadme()) {
if (GUIPreferences.getInstance().getNagForMapEdReadme()) {
public BoardEditor() { super(); try { bv = new BoardView1(game, frame); } catch (IOException e) { JOptionPane.showMessageDialog(frame, Messages.getString("BoardEditor.CouldntInitialize") + e, Messages.getString("BoardEditor.FatalError"), JOptionPane.ERROR_MESSAGE); //$NON-NLS-1$ //$NON-NLS-2$ frame.dispose(); } bv.addBoardViewListener(new BoardViewListenerAdapter() { public void hexMoused(BoardViewEvent b) { bv.cursor(b.getCoords()); if ((b.getModifiers() & InputEvent.ALT_MASK) != 0) { setCurrentHex(board.getHex(b.getCoords())); } if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0) { if (!board.getHex(b.getCoords()).equals(curHex)) { paintHex(b.getCoords()); } } } }); bv.setUseLOSTool(false); setupEditorPanel(); setupFrame(); frame.setVisible(true); if (true == GUIPreferences.getInstance().getNagForMapEdReadme()) { String title = Messages.getString("BoardEditor.readme.title"); //$NON-NLS-1$ String body = Messages.getString("BoardEditor.readme.message"); //$NON-NLS-1$ ConfirmDialog confirm = new ConfirmDialog(frame, title, body, true); confirm.setVisible(true); if (!confirm.getShowAgain()) { GUIPreferences.getInstance().setNagForMapEdReadme(false); } if (confirm.getAnswer()) { showHelp(); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3e2c07c4b3a334f50ff43404d895908863bcff1e/BoardEditor.java/buggy/megamek/src/megamek/client/ui/swing/BoardEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17980, 1060, 6946, 1435, 288, 3639, 2240, 5621, 3639, 775, 288, 5411, 18021, 273, 394, 17980, 1060, 1767, 21, 12, 13957, 16, 2623, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 3789, 16, 4838, 18, 588, 780, 2932, 22233, 6946, 18, 4445, 496, 7520, 7923, 397, 425, 16, 4838, 18, 588, 780, 2932, 22233, 6946, 18, 19593, 668, 6, 3631, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 5411, 2623, 18, 2251, 4150, 5621, 3639, 289, 3639, 18021, 18, 1289, 22233, 1767, 2223, 12, 2704, 17980, 1060, 1767, 2223, 4216, 1435, 288, 5411, 1071, 918, 3827, 49, 21414, 12, 22233, 1767, 1133, 324, 13, 288, 7734, 18021, 18, 9216, 12, 70, 18, 588, 13089, 10663, 7734, 309, 14015, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 18255, 67, 11704, 13, 480, 374, 13, 288, 10792, 12589, 7037, 12, 3752, 18, 588, 7037, 12, 70, 18, 588, 13089, 1435, 10019, 7734, 289, 7734, 309, 14015, 70, 18, 588, 11948, 1435, 473, 2741, 1133, 18, 23876, 48, 67, 11704, 13, 480, 374, 13, 288, 10792, 309, 16051, 3752, 18, 588, 7037, 12, 70, 18, 588, 13089, 1435, 2934, 14963, 12, 1397, 7037, 3719, 288, 13491, 12574, 7037, 12, 70, 18, 588, 13089, 10663, 10792, 289, 7734, 289, 5411, 289, 3639, 15549, 3639, 18021, 18, 542, 3727, 1502, 55, 6364, 12, 5743, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17980, 1060, 6946, 1435, 288, 3639, 2240, 5621, 3639, 775, 288, 5411, 18021, 273, 394, 17980, 1060, 1767, 21, 12, 13957, 16, 2623, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 3789, 16, 4838, 18, 588, 780, 2932, 22233, 6946, 18, 4445, 496, 7520, 7923, 397, 425, 16, 4838, 18, 588, 780, 2932, 22233, 6946, 18, 19593, 668, 6, 3631, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 5411, 2623, 18, 2251, 4150, 5621, 3639, 289, 3639, 18021, 18, 1289, 22233, 1767, 2223, 12, 2704, 17980, 1060, 1767, 2223, 4216, 1435, 288, 5411, 2 ]
FileStatusManager.getInstance(myProject).fileStatusChanged(file);
final Project[] projects = ProjectManager.getInstance().getOpenProjects(); for (Project project : projects) { FileStatusManager.getInstance(project).fileStatusChanged(file); }
private void fileFileStatusChanged() { if (myProject == null) return; VirtualFile file = myDocumentFile != null ? myDocumentFile : FileDocumentManager.getInstance().getFile(getDocument()); if (file == null) return; FileStatusManager.getInstance(myProject).fileStatusChanged(file); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a84066749610e8aef35097f3d1bb9c353730739e/EditorChangeAction.java/buggy/source/com/intellij/openapi/command/impl/EditorChangeAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 585, 812, 1482, 5033, 1435, 288, 565, 309, 261, 4811, 4109, 422, 446, 13, 327, 31, 565, 7269, 812, 585, 273, 3399, 2519, 812, 480, 446, 692, 3399, 2519, 812, 294, 1387, 2519, 1318, 18, 588, 1442, 7675, 29925, 12, 588, 2519, 10663, 565, 309, 261, 768, 422, 446, 13, 327, 31, 377, 727, 5420, 8526, 10137, 273, 5420, 1318, 18, 588, 1442, 7675, 588, 3678, 15298, 5621, 364, 261, 4109, 1984, 294, 10137, 13, 288, 24366, 1318, 18, 588, 1442, 12, 4406, 2934, 768, 1482, 5033, 12, 768, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 585, 812, 1482, 5033, 1435, 288, 565, 309, 261, 4811, 4109, 422, 446, 13, 327, 31, 565, 7269, 812, 585, 273, 3399, 2519, 812, 480, 446, 692, 3399, 2519, 812, 294, 1387, 2519, 1318, 18, 588, 1442, 7675, 29925, 12, 588, 2519, 10663, 565, 309, 261, 768, 422, 446, 13, 327, 31, 377, 727, 5420, 8526, 10137, 273, 5420, 1318, 18, 588, 1442, 7675, 588, 3678, 15298, 5621, 364, 261, 4109, 1984, 294, 10137, 13, 288, 24366, 1318, 18, 588, 1442, 12, 4406, 2934, 768, 1482, 5033, 12, 768, 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 ]
throw new ArchiverException("webxml attribute is required");
throw new ArchiverException( "webxml attribute is required" );
protected void initZipOutputStream(ZipOutputStream zOut) throws IOException, ArchiverException { // If no webxml file is specified, it's an error. if (deploymentDescriptor == null && !isInUpdateMode()) { throw new ArchiverException("webxml attribute is required"); } super.initZipOutputStream(zOut); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/WarArchiver.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 9141, 4632, 12, 9141, 4632, 998, 1182, 13, 3639, 1216, 1860, 16, 16959, 1667, 503, 565, 288, 3639, 368, 971, 1158, 3311, 2902, 585, 353, 1269, 16, 518, 1807, 392, 555, 18, 3639, 309, 261, 21704, 3187, 422, 446, 597, 401, 291, 382, 1891, 2309, 10756, 3639, 288, 5411, 604, 394, 16959, 1667, 503, 12, 315, 4875, 2902, 1566, 353, 1931, 6, 11272, 3639, 289, 3639, 2240, 18, 2738, 9141, 4632, 12, 94, 1182, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 9141, 4632, 12, 9141, 4632, 998, 1182, 13, 3639, 1216, 1860, 16, 16959, 1667, 503, 565, 288, 3639, 368, 971, 1158, 3311, 2902, 585, 353, 1269, 16, 518, 1807, 392, 555, 18, 3639, 309, 261, 21704, 3187, 422, 446, 597, 401, 291, 382, 1891, 2309, 10756, 3639, 288, 5411, 604, 394, 16959, 1667, 503, 12, 315, 4875, 2902, 1566, 353, 1931, 6, 11272, 3639, 289, 3639, 2240, 18, 2738, 9141, 4632, 12, 94, 1182, 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 ]
Monomer oMono1 = new Monomer();
Monomer oMono1 = builder.newMonomer();
public void testGetMonomer_String() { Polymer oPolymer = new Polymer(); Monomer oMono1 = new Monomer(); oMono1.setMonomerName(new String("TRP279")); Monomer oMono2 = new Monomer(); oMono2.setMonomerName(new String("HOH")); Atom oAtom1 = new Atom("C1"); Atom oAtom2 = new Atom("C2"); Atom oAtom3 = new Atom("C3"); oPolymer.addAtom(oAtom1, oMono1); oPolymer.addAtom(oAtom2, oMono1); oPolymer.addAtom(oAtom3, oMono2); assertEquals(oMono1, oPolymer.getMonomer("TRP279")); assertEquals(oMono2, oPolymer.getMonomer("HOH")); assertNull(oPolymer.getMonomer("Mek")); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/67261c8143759a6ee4feb79dc1687d6dcfa25f40/PolymerTest.java/buggy/src/org/openscience/cdk/test/PolymerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 49, 14536, 67, 780, 1435, 288, 202, 202, 5850, 17878, 320, 5850, 17878, 273, 394, 6730, 17878, 5621, 9506, 202, 49, 14536, 320, 11415, 83, 21, 273, 394, 27082, 5621, 202, 202, 83, 11415, 83, 21, 18, 542, 49, 14536, 461, 12, 2704, 514, 2932, 4349, 52, 5324, 29, 7923, 1769, 202, 202, 49, 14536, 320, 11415, 83, 22, 273, 394, 27082, 5621, 202, 202, 83, 11415, 83, 22, 18, 542, 49, 14536, 461, 12, 2704, 514, 2932, 7995, 44, 7923, 1769, 202, 202, 3641, 320, 3641, 21, 273, 394, 7149, 2932, 39, 21, 8863, 202, 202, 3641, 320, 3641, 22, 273, 394, 7149, 2932, 39, 22, 8863, 202, 202, 3641, 320, 3641, 23, 273, 394, 7149, 2932, 39, 23, 8863, 202, 202, 83, 5850, 17878, 18, 1289, 3641, 12, 83, 3641, 21, 16, 320, 11415, 83, 21, 1769, 202, 202, 83, 5850, 17878, 18, 1289, 3641, 12, 83, 3641, 22, 16, 320, 11415, 83, 21, 1769, 202, 202, 83, 5850, 17878, 18, 1289, 3641, 12, 83, 3641, 23, 16, 320, 11415, 83, 22, 1769, 202, 202, 11231, 8867, 12, 83, 11415, 83, 21, 16, 320, 5850, 17878, 18, 588, 49, 14536, 2932, 4349, 52, 5324, 29, 7923, 1769, 202, 202, 11231, 8867, 12, 83, 11415, 83, 22, 16, 320, 5850, 17878, 18, 588, 49, 14536, 2932, 7995, 44, 7923, 1769, 202, 202, 11231, 2041, 12, 83, 5850, 17878, 18, 588, 49, 14536, 2932, 49, 3839, 7923, 1769, 202, 97, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 49, 14536, 67, 780, 1435, 288, 202, 202, 5850, 17878, 320, 5850, 17878, 273, 394, 6730, 17878, 5621, 9506, 202, 49, 14536, 320, 11415, 83, 21, 273, 394, 27082, 5621, 202, 202, 83, 11415, 83, 21, 18, 542, 49, 14536, 461, 12, 2704, 514, 2932, 4349, 52, 5324, 29, 7923, 1769, 202, 202, 49, 14536, 320, 11415, 83, 22, 273, 394, 27082, 5621, 202, 202, 83, 11415, 83, 22, 18, 542, 49, 14536, 461, 12, 2704, 514, 2932, 7995, 44, 7923, 1769, 202, 202, 3641, 320, 3641, 21, 273, 394, 7149, 2932, 39, 21, 8863, 202, 202, 3641, 320, 3641, 22, 273, 394, 7149, 2932, 39, 22, 8863, 202, 202, 3641, 320, 3641, 2 ]
return StringValue.stringValue(node).toUpperCase();
return coerceToString(node, "upper-case", 1, "").toUpperCase();
public static Object upperCase (Object node) { return StringValue.stringValue(node).toUpperCase(); }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/cc5365ab0e847f284bac33b5cd2a685324bf4143/StringUtils.java/clean/gnu/xquery/util/StringUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 3854, 2449, 261, 921, 756, 13, 225, 288, 565, 327, 12270, 5808, 12, 2159, 16, 315, 5797, 17, 3593, 3113, 404, 16, 1408, 2934, 869, 8915, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 760, 1033, 3854, 2449, 261, 921, 756, 13, 225, 288, 565, 327, 12270, 5808, 12, 2159, 16, 315, 5797, 17, 3593, 3113, 404, 16, 1408, 2934, 869, 8915, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Assert.isTrue(object instanceof Object[] || object instanceof IContextComputer);
Assert.isTrue( object instanceof Object[] || object instanceof IContextComputer || object instanceof String); if (object instanceof String) { contextList.add(object); return; }
private void addContexts(Object object, HelpEvent event) { Assert.isTrue(object instanceof Object[] || object instanceof IContextComputer); Object[] contexts; if (object instanceof IContextComputer) // get local contexts contexts = ((IContextComputer)object).getLocalContexts(event); else contexts = (Object[])object; // copy the contexts into our list for (int i = 0; i < contexts.length; i++) contextList.add(contexts[i]); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9d3584025202ee775f55c6fe5252f412dc0543fa/DialogPageContextComputer.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/help/DialogPageContextComputer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 527, 15518, 12, 921, 733, 16, 11288, 1133, 871, 13, 288, 202, 8213, 18, 291, 5510, 12, 1612, 1276, 1033, 8526, 747, 733, 1276, 467, 1042, 7703, 264, 1769, 202, 921, 8526, 5781, 31, 202, 430, 261, 1612, 1276, 467, 1042, 7703, 264, 13, 3196, 202, 759, 336, 1191, 5781, 202, 202, 18332, 273, 14015, 45, 1042, 7703, 264, 13, 1612, 2934, 588, 2042, 15518, 12, 2575, 1769, 202, 12107, 202, 202, 18332, 273, 261, 921, 63, 5717, 1612, 31, 202, 759, 1610, 326, 5781, 1368, 3134, 666, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5781, 18, 2469, 31, 277, 27245, 3196, 202, 2472, 682, 18, 1289, 12, 18332, 63, 77, 19226, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 527, 15518, 12, 921, 733, 16, 11288, 1133, 871, 13, 288, 202, 8213, 18, 291, 5510, 12, 1612, 1276, 1033, 8526, 747, 733, 1276, 467, 1042, 7703, 264, 1769, 202, 921, 8526, 5781, 31, 202, 430, 261, 1612, 1276, 467, 1042, 7703, 264, 13, 3196, 202, 759, 336, 1191, 5781, 202, 202, 18332, 273, 14015, 45, 1042, 7703, 264, 13, 1612, 2934, 588, 2042, 15518, 12, 2575, 1769, 202, 12107, 202, 202, 18332, 273, 261, 921, 63, 5717, 1612, 31, 202, 759, 1610, 326, 5781, 1368, 3134, 666, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 5781, 18, 2469, 31, 277, 27245, 3196, 202, 2472, 682, 18, 1289, 12, 18332, 63, 77, 19226, 289, 2 ]