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
spacer.setBackground(bg);
spacer.setBackground(background);
private Composite createInfoArea(Composite parent) { // Create the title area which will contain // a title, message, and image. this.scrolledComposite = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL); this.scrolledComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); Composite infoArea = new Composite(this.scrolledComposite, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 10; layout.verticalSpacing = 5; layout.numColumns = 2; infoArea.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); infoArea.setLayoutData(data); // Get the background color for the title area Display display = parent.getDisplay(); Color bg = JFaceColors.getBannerBackground(display); infoArea.setBackground(bg); StyledText sampleStyledText = null; // Create the intro item WelcomeItem item = getIntroItem(); if (item != null) { StyledText styledText = new StyledText(infoArea, SWT.MULTI | SWT.READ_ONLY); this.texts.add(styledText); sampleStyledText = styledText; styledText.setCursor(null); styledText.setBackground(bg); styledText.setText(getIntroItem().getText()); setBoldRanges(styledText, item.getBoldRanges()); setLinkRanges(styledText, item.getActionRanges()); setLinkRanges(styledText, item.getHelpRanges()); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; gd.horizontalIndent = 20; styledText.setLayoutData(gd); styledText.setData(item); addListeners(styledText); Label spacer = new Label(infoArea, SWT.NONE); spacer.setBackground(bg); gd = new GridData(); gd.horizontalSpan = 2; spacer.setLayoutData(gd); } // Create the welcome items WelcomeItem[] items = getItems(); for (int i = 0; i < items.length; i++) { Label image = new Label(infoArea, SWT.NONE); image.setBackground(bg); image.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_OBJS_WELCOME_ITEM)); GridData gd = new GridData(); gd.horizontalIndent = 20; gd.verticalAlignment = gd.VERTICAL_ALIGN_BEGINNING; image.setLayoutData(gd); StyledText styledText = new StyledText(infoArea, SWT.MULTI | SWT.READ_ONLY); this.texts.add(styledText); sampleStyledText = styledText; styledText.setCursor(null); styledText.setBackground(bg); styledText.setText(items[i].getText()); setBoldRanges(styledText, items[i].getBoldRanges()); setLinkRanges(styledText, items[i].getActionRanges()); setLinkRanges(styledText, items[i].getHelpRanges()); gd = new GridData(GridData.FILL_HORIZONTAL); gd.verticalAlignment = gd.VERTICAL_ALIGN_BEGINNING; gd.verticalSpan = 2; styledText.setLayoutData(gd); styledText.setData(items[i]); addListeners(styledText); Label spacer = new Label(infoArea, SWT.NONE); spacer.setBackground(bg); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; spacer.setLayoutData(gd); } this.scrolledComposite.setContent(infoArea); Point p = infoArea.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); this.scrolledComposite.setMinHeight(p.y); this.scrolledComposite.setMinWidth(p.x); this.scrolledComposite.setExpandHorizontal(true); this.scrolledComposite.setExpandVertical(true); // Adjust the scrollbar increments if (sampleStyledText == null) { this.scrolledComposite.getHorizontalBar().setIncrement(HORZ_SCROLL_INCREMENT); this.scrolledComposite.getVerticalBar().setIncrement(VERT_SCROLL_INCREMENT); } else { GC gc = new GC(sampleStyledText); int width = gc.getFontMetrics().getAverageCharWidth(); gc.dispose(); this.scrolledComposite.getHorizontalBar().setIncrement(width); this.scrolledComposite.getVerticalBar().setIncrement(sampleStyledText.getLineHeight()); } this.scrolledComposite.addControlListener(new ControlAdapter() { public void controlResized(ControlEvent e) { ScrolledComposite localSC = (ScrolledComposite)e.widget; ScrollBar horizontal = localSC.getHorizontalBar(); ScrollBar vertical = localSC.getVerticalBar(); Rectangle clientArea = localSC.getClientArea(); horizontal.setPageIncrement(clientArea.width - horizontal.getIncrement()); vertical.setPageIncrement(clientArea.height - vertical.getIncrement()); } }); return infoArea;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d9e53d405d102e67c4c5d467d554a378e07f112d/WelcomeEditor.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WelcomeEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 14728, 752, 966, 5484, 12, 9400, 982, 13, 288, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 2211, 18, 1017, 25054, 9400, 273, 394, 2850, 25054, 9400, 12, 2938, 16, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 44, 67, 2312, 14555, 1769, 202, 2211, 18, 1017, 25054, 9400, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 202, 9400, 1123, 5484, 273, 394, 14728, 12, 2211, 18, 1017, 25054, 9400, 16, 348, 8588, 18, 9826, 1769, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 6741, 18, 10107, 2686, 273, 1728, 31, 202, 6741, 18, 17824, 18006, 273, 1381, 31, 202, 6741, 18, 2107, 3380, 273, 576, 31, 202, 1376, 5484, 18, 542, 3744, 12, 6741, 1769, 202, 6313, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 202, 1376, 5484, 18, 542, 3744, 751, 12, 892, 1769, 202, 759, 968, 326, 5412, 2036, 364, 326, 2077, 5091, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 2957, 7611, 273, 804, 11824, 12570, 18, 588, 27398, 8199, 12, 5417, 1769, 202, 1376, 5484, 18, 542, 8199, 12, 12370, 1769, 202, 24273, 1259, 1528, 3296, 24273, 1259, 1528, 273, 446, 31, 202, 759, 1788, 326, 13079, 761, 202, 59, 16312, 1180, 761, 273, 8145, 303, 1180, 5621, 202, 430, 261, 1726, 480, 446, 13, 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, 3238, 14728, 752, 966, 5484, 12, 9400, 982, 13, 288, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 2211, 18, 1017, 25054, 9400, 273, 394, 2850, 25054, 9400, 12, 2938, 16, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 44, 67, 2312, 14555, 1769, 202, 2211, 18, 1017, 25054, 9400, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 202, 9400, 1123, 5484, 273, 394, 14728, 12, 2211, 18, 1017, 25054, 9400, 16, 348, 8588, 18, 9826, 1769, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 6741, 18, 10107, 2686, 273, 1728, 31, 202, 2 ]
pixels.setPixelType(pixelType);
pixels.setPixelType(pixelTypeAsString(pixelType));
public void setPixels(Integer sizeX, Integer sizeY, Integer sizeZ, Integer sizeC, Integer sizeT, String pixelType, Boolean bigEndian, String dimensionOrder, Integer i) { int ndx = i == null ? 0 : i.intValue(); // TODO find a better way to specify which Pixels we want ImageNode image = (ImageNode) getChild(root, "Image", ndx); CustomAttributesNode ca = (CustomAttributesNode) getChild(image, "CustomAttributes", 0); PixelsNode pixels = (PixelsNode) getChild(ca, "Pixels", ndx); pixels.setSizeX(sizeX); pixels.setSizeY(sizeY); pixels.setSizeZ(sizeZ); pixels.setSizeC(sizeC); pixels.setSizeT(sizeT); pixels.setPixelType(pixelType); pixels.setBigEndian(bigEndian); pixels.setDimensionOrder(dimensionOrder); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f900d398818eefec3108ce2138214e42901a0aa0/OMEXMLMetadataStore.java/clean/loci/formats/OMEXMLMetadataStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 18079, 12, 4522, 963, 60, 16, 2144, 963, 61, 16, 2144, 963, 62, 16, 565, 2144, 963, 39, 16, 2144, 963, 56, 16, 514, 4957, 559, 16, 3411, 5446, 7583, 16, 565, 514, 4968, 2448, 16, 2144, 277, 13, 225, 288, 565, 509, 5346, 92, 273, 277, 422, 446, 692, 374, 294, 277, 18, 474, 620, 5621, 565, 368, 2660, 1104, 279, 7844, 4031, 358, 4800, 1492, 26070, 87, 732, 2545, 565, 3421, 907, 1316, 273, 261, 2040, 907, 13, 8154, 12, 3085, 16, 315, 2040, 3113, 5346, 92, 1769, 565, 6082, 2498, 907, 3474, 273, 261, 3802, 2498, 907, 13, 1377, 8154, 12, 2730, 16, 315, 3802, 2498, 3113, 374, 1769, 565, 26070, 87, 907, 8948, 273, 261, 18079, 907, 13, 8154, 12, 5353, 16, 315, 18079, 3113, 5346, 92, 1769, 565, 8948, 18, 542, 1225, 60, 12, 1467, 60, 1769, 565, 8948, 18, 542, 1225, 61, 12, 1467, 61, 1769, 565, 8948, 18, 542, 1225, 62, 12, 1467, 62, 1769, 565, 8948, 18, 542, 1225, 39, 12, 1467, 39, 1769, 565, 8948, 18, 542, 1225, 56, 12, 1467, 56, 1769, 565, 8948, 18, 542, 9037, 559, 12, 11743, 559, 8092, 12, 11743, 559, 10019, 565, 8948, 18, 542, 9901, 7583, 12, 14002, 7583, 1769, 565, 8948, 18, 542, 8611, 2448, 12, 11808, 2448, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 18079, 12, 4522, 963, 60, 16, 2144, 963, 61, 16, 2144, 963, 62, 16, 565, 2144, 963, 39, 16, 2144, 963, 56, 16, 514, 4957, 559, 16, 3411, 5446, 7583, 16, 565, 514, 4968, 2448, 16, 2144, 277, 13, 225, 288, 565, 509, 5346, 92, 273, 277, 422, 446, 692, 374, 294, 277, 18, 474, 620, 5621, 565, 368, 2660, 1104, 279, 7844, 4031, 358, 4800, 1492, 26070, 87, 732, 2545, 565, 3421, 907, 1316, 273, 261, 2040, 907, 13, 8154, 12, 3085, 16, 315, 2040, 3113, 5346, 92, 1769, 565, 6082, 2498, 907, 3474, 273, 261, 3802, 2498, 907, 13, 1377, 8154, 12, 2730, 16, 315, 3802, 2498, 3113, 374, 1769, 565, 26070, 87, 2 ]
runParallelQueries(1, 1);
runParallelQueries(1, 1, false);
public void testParallelNot() { runParallelQueries(1, 1); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/f86908f2e4349128103e34ddb65608667faafbe6/BasicQueryTest.java/clean/src/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 13056, 1248, 1435, 288, 202, 202, 2681, 13056, 9592, 12, 21, 16, 404, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13056, 1248, 1435, 288, 202, 202, 2681, 13056, 9592, 12, 21, 16, 404, 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, -100, -100 ]
positions[i] = pos;
positions[i] = free;
protected void chainFreelist() { free = -1; for (int i = positions.length; --i >= END_POSITION; ) { int pos = positions[i]; if (pos == FREE_POSITION) { positions[i] = pos; free = i; } } }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/10b7403ba29d18485ccc25e266c326fe17119874/StableVector.java/buggy/gnu/lists/StableVector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2687, 42, 266, 5449, 1435, 225, 288, 565, 4843, 273, 300, 21, 31, 565, 364, 261, 474, 277, 273, 6865, 18, 2469, 31, 225, 1493, 77, 1545, 7273, 67, 15258, 31, 262, 1377, 288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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2687, 42, 266, 5449, 1435, 225, 288, 565, 4843, 273, 300, 21, 31, 565, 364, 261, 474, 277, 273, 6865, 18, 2469, 31, 225, 1493, 77, 1545, 7273, 67, 15258, 31, 262, 1377, 288, 202, 474, 949, 273, 6865, 63, 77, 15533, 202, 430, 261, 917, 422, 478, 9719, 67, 15258, 13, 202, 225, 288, 202, 565, 6865, 63, 77, 65, 273, 949, 31, 202, 565, 4843, 273, 277, 31, 202, 225, 289, 1377, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if( (lhs.zone!=null && rhs.zone!=null) || (lhs.zone==null && rhs.zone==null) ) { if(!Util.objEqual(lhs.year,rhs.year)) return Util.objCompare(lhs.year,rhs.year); if(!Util.objEqual(lhs.month,rhs.month)) return Util.objCompare(lhs.month,rhs.month); if(!Util.objEqual(lhs.day,rhs.day)) return Util.objCompare(lhs.day,rhs.day); if(!Util.objEqual(lhs.hour,rhs.hour)) return Util.objCompare(lhs.hour,rhs.hour); if(!Util.objEqual(lhs.minute,rhs.minute)) return Util.objCompare(lhs.minute,rhs.minute); if(!Util.objEqual(lhs.second,rhs.second)) return Util.objCompare(lhs.second,rhs.second); return Comparator.EQUAL; } if( lhs.zone==null ) { int r; r = compare( (BigDateTimeValueType)new BigDateTimeValueType(lhs,Util.timeZoneNeg14).normalize(), rhs ); if( r==Comparator.EQUAL || r==Comparator.LESS ) return Comparator.LESS; r = compare( (BigDateTimeValueType)new BigDateTimeValueType(lhs,Util.timeZonePos14).normalize(), rhs ); if( r==Comparator.EQUAL || r==Comparator.GREATER ) return Comparator.GREATER; return Comparator.UNDECIDABLE; } else { int r; r = compare( lhs, (BigDateTimeValueType)new BigDateTimeValueType(rhs,Util.timeZonePos14) ); if( r==Comparator.EQUAL || r==Comparator.LESS ) return Comparator.LESS; r = compare( lhs, (BigDateTimeValueType)new BigDateTimeValueType(rhs,Util.timeZoneNeg14) ); if( r==Comparator.EQUAL || r==Comparator.GREATER ) return Comparator.GREATER; return Comparator.UNDECIDABLE; }
return compare( this, (BigDateTimeValueType)o );
protected static int compare( BigDateTimeValueType lhs, BigDateTimeValueType rhs ) { lhs = (BigDateTimeValueType)lhs.normalize(); rhs = (BigDateTimeValueType)rhs.normalize(); if( (lhs.zone!=null && rhs.zone!=null) || (lhs.zone==null && rhs.zone==null) ) { if(!Util.objEqual(lhs.year,rhs.year)) return Util.objCompare(lhs.year,rhs.year); if(!Util.objEqual(lhs.month,rhs.month)) return Util.objCompare(lhs.month,rhs.month); if(!Util.objEqual(lhs.day,rhs.day)) return Util.objCompare(lhs.day,rhs.day); if(!Util.objEqual(lhs.hour,rhs.hour)) return Util.objCompare(lhs.hour,rhs.hour); if(!Util.objEqual(lhs.minute,rhs.minute)) return Util.objCompare(lhs.minute,rhs.minute); if(!Util.objEqual(lhs.second,rhs.second)) return Util.objCompare(lhs.second,rhs.second); return Comparator.EQUAL; } if( lhs.zone==null ) { int r; r = compare( (BigDateTimeValueType)new BigDateTimeValueType(lhs,Util.timeZoneNeg14).normalize(), rhs ); if( r==Comparator.EQUAL || r==Comparator.LESS ) return Comparator.LESS; // lhs < rhs r = compare( (BigDateTimeValueType)new BigDateTimeValueType(lhs,Util.timeZonePos14).normalize(), rhs ); if( r==Comparator.EQUAL || r==Comparator.GREATER ) return Comparator.GREATER; // lhs > rhs return Comparator.UNDECIDABLE; // lhs <> rhs } else { int r; r = compare( lhs, (BigDateTimeValueType)new BigDateTimeValueType(rhs,Util.timeZonePos14) ); if( r==Comparator.EQUAL || r==Comparator.LESS ) return Comparator.LESS; // lhs < rhs r = compare( lhs, (BigDateTimeValueType)new BigDateTimeValueType(rhs,Util.timeZoneNeg14) ); if( r==Comparator.EQUAL || r==Comparator.GREATER ) return Comparator.GREATER; // lhs > rhs return Comparator.UNDECIDABLE; // lhs <> rhs } }
45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/c730681d9d18f4ddbd9529c10021b3f87dc11cbc/BigDateTimeValueType.java/buggy/xsdlib/src/com/sun/msv/datatype/xsd/datetime/BigDateTimeValueType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 509, 3400, 12, 4454, 5096, 17930, 8499, 16, 4454, 5096, 17930, 7711, 262, 288, 202, 202, 80, 4487, 273, 261, 9901, 5096, 17930, 13, 80, 4487, 18, 12237, 5621, 202, 202, 86, 4487, 273, 261, 9901, 5096, 17930, 13, 86, 4487, 18, 12237, 5621, 9506, 202, 430, 12, 261, 80, 4487, 18, 3486, 5, 33, 2011, 597, 7711, 18, 3486, 5, 33, 2011, 13, 747, 261, 80, 4487, 18, 3486, 631, 2011, 597, 7711, 18, 3486, 631, 2011, 13, 262, 288, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 80, 4487, 18, 6874, 16, 86, 4487, 18, 6874, 3719, 202, 202, 2463, 3564, 18, 2603, 8583, 12, 80, 4487, 18, 6874, 16, 86, 4487, 18, 6874, 1769, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 80, 4487, 18, 7496, 16, 86, 4487, 18, 7496, 3719, 202, 202, 2463, 3564, 18, 2603, 8583, 12, 80, 4487, 18, 7496, 16, 86, 4487, 18, 7496, 1769, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 80, 4487, 18, 2881, 16, 86, 4487, 18, 2881, 3719, 1082, 202, 2463, 3564, 18, 2603, 8583, 12, 80, 4487, 18, 2881, 16, 86, 4487, 18, 2881, 1769, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 80, 4487, 18, 12091, 16, 86, 4487, 18, 12091, 3719, 202, 202, 2463, 3564, 18, 2603, 8583, 12, 80, 4487, 18, 12091, 16, 86, 4487, 18, 12091, 1769, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 509, 3400, 12, 4454, 5096, 17930, 8499, 16, 4454, 5096, 17930, 7711, 262, 288, 202, 202, 80, 4487, 273, 261, 9901, 5096, 17930, 13, 80, 4487, 18, 12237, 5621, 202, 202, 86, 4487, 273, 261, 9901, 5096, 17930, 13, 86, 4487, 18, 12237, 5621, 9506, 202, 430, 12, 261, 80, 4487, 18, 3486, 5, 33, 2011, 597, 7711, 18, 3486, 5, 33, 2011, 13, 747, 261, 80, 4487, 18, 3486, 631, 2011, 597, 7711, 18, 3486, 631, 2011, 13, 262, 288, 1082, 202, 430, 12, 5, 1304, 18, 2603, 5812, 12, 80, 4487, 18, 6874, 16, 86, 4487, 18, 6874, 3719, 202, 202, 2463, 3564, 18, 2603, 8583, 12, 80, 4487, 18, 6874, 16, 86, 2 ]
tree.expandPath(new TreePath(currentlyLoadingTreeNode.getPath()));
for(int i = 0; i < toExpand.size(); i++) { TreePath path = (TreePath)toExpand.elementAt(i); tree.expandPath(path); }
public void directoryLoaded(Vector directory) { currentlyLoadingTreeNode.removeAllChildren(); if(directory != null) { for(int i = 0; i < directory.size(); i++) { VFS.DirectoryEntry file = (VFS.DirectoryEntry) directory.elementAt(i); boolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE); currentlyLoadingTreeNode.add(new DefaultMutableTreeNode(file,allowsChildren)); } } // fire events model.reload(currentlyLoadingTreeNode); tree.expandPath(new TreePath(currentlyLoadingTreeNode.getPath())); /* If the user expands a tree node manually, the tree * listener sets currentlyLoadingTreeNode to that. * But if VFSBrowser.setDirectory() is called, we want * the root node to be updated. * * Since the browser view receives no prior notification * to a setDirectory(), we set the currentlyLoadingTreeNode * to null here. */ currentlyLoadingTreeNode = rootNode; timer.stop(); typeSelectBuffer.setLength(0); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8e72809e7a6d1c2b4d00efd734b3907725856133/BrowserView.java/clean/org/gjt/sp/jedit/browser/BrowserView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1867, 8835, 12, 5018, 1867, 13, 202, 95, 202, 202, 2972, 715, 10515, 12513, 18, 4479, 1595, 4212, 5621, 202, 202, 430, 12, 5149, 480, 446, 13, 202, 202, 95, 1082, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 1867, 18, 1467, 5621, 277, 27245, 1082, 202, 95, 9506, 202, 58, 4931, 18, 2853, 1622, 585, 273, 261, 58, 4931, 18, 2853, 1622, 13, 6862, 202, 5149, 18, 2956, 861, 12, 77, 1769, 9506, 202, 6494, 5360, 4212, 273, 261, 768, 18, 723, 480, 23567, 18, 2853, 1622, 18, 3776, 1769, 9506, 202, 2972, 715, 10515, 12513, 18, 1289, 12, 2704, 2989, 19536, 12513, 12, 768, 16, 5965, 87, 4212, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 4452, 2641, 202, 202, 2284, 18, 17517, 12, 2972, 715, 10515, 12513, 1769, 202, 202, 3413, 18, 12320, 743, 12, 2704, 4902, 743, 12, 2972, 715, 10515, 12513, 18, 588, 743, 1435, 10019, 202, 202, 20308, 971, 326, 729, 4542, 87, 279, 2151, 756, 10036, 16, 326, 2151, 1082, 380, 2991, 1678, 4551, 10515, 12513, 358, 716, 18, 1082, 380, 12484, 309, 23567, 9132, 18, 542, 2853, 1435, 353, 2566, 16, 732, 2545, 1082, 380, 326, 1365, 756, 358, 506, 3526, 18, 1082, 380, 1082, 380, 7897, 326, 4748, 1476, 17024, 1158, 6432, 3851, 1082, 380, 358, 279, 444, 2853, 9334, 732, 444, 326, 4551, 10515, 12513, 1082, 380, 358, 446, 2674, 18, 1195, 202, 202, 2972, 715, 10515, 12513, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1867, 8835, 12, 5018, 1867, 13, 202, 95, 202, 202, 2972, 715, 10515, 12513, 18, 4479, 1595, 4212, 5621, 202, 202, 430, 12, 5149, 480, 446, 13, 202, 202, 95, 1082, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 1867, 18, 1467, 5621, 277, 27245, 1082, 202, 95, 9506, 202, 58, 4931, 18, 2853, 1622, 585, 273, 261, 58, 4931, 18, 2853, 1622, 13, 6862, 202, 5149, 18, 2956, 861, 12, 77, 1769, 9506, 202, 6494, 5360, 4212, 273, 261, 768, 18, 723, 480, 23567, 18, 2853, 1622, 18, 3776, 1769, 9506, 202, 2972, 715, 10515, 12513, 18, 1289, 12, 2704, 2989, 19536, 12513, 12, 768, 16, 5965, 87, 4212, 10019, 1082, 202, 2 ]
* the follow code will produce the dimmensions in the
* the following code will produce the dimmensions in the
private void arrayInitBlock(Object varAccess, JArrayInitializer init, JBlock block, Vector indices) { for (int i = 0; i < init.getElems().length; i++) { //recurse through the array initializer statements, building //the array access indices as we recurse if (init.getElems()[i] instanceof JArrayInitializer) { Vector indices1 = new Vector(indices); indices1.add(new JIntLiteral(i)); arrayInitBlock(varAccess, (JArrayInitializer)init.getElems()[i], block, indices1); } else { //otherwise we have an expression that is supposed to be assigned //to the calculated array element JExpression prefix; assert varAccess instanceof String || varAccess instanceof JLocalVariable; if (varAccess instanceof String) prefix = new JFieldAccessExpression((String)varAccess); else prefix = new JLocalVariableExpression(null, (JLocalVariable)varAccess); // RMR { /* the code below will reverse the order of the * dimmensions in an array expression; this is a bug! * //build the final array access expression JArrayAccessExpression access = new JArrayAccessExpression(null, prefix, new JIntLiteral(i)); //build the remaining, from bottom up for (int j = indices.size() - 1; j >= 0; j--) { access = new JArrayAccessExpression(null, access, (JExpression)indices.get(j)); } * the follow code will produce the dimmensions in the * proper order: the prefix is the variable name, append * to that the first dimmension and then in the loop add * every other dimmension but the last; following the * loop, add the very last dimmension */ //build the final array access expression, top down JArrayAccessExpression access = new JArrayAccessExpression(null, prefix, (JExpression)indices.get(0)); for (int j = 1; j <= indices.size() - 1; j++) { access = new JArrayAccessExpression(null, access, (JExpression)indices.get(j)); } access = new JArrayAccessExpression(null, access, new JIntLiteral(i)); // } RMR //only handle constant initializers for now assert (Utils.passThruParens(init.getElems()[i]) instanceof JLiteral) : "Error: Currently we only handle constant array initializers."; //generate the assignment statement block.addStatement(new JExpressionStatement (null, new JAssignmentExpression(null, access, init.getElems()[i]), null)); } } }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/d20dcc043e2e1bcae366a2348878591c73935f92/ConvertArrayInitializers.java/buggy/streams/src/at/dms/kjc/rstream/ConvertArrayInitializers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 526, 2570, 1768, 12, 921, 569, 1862, 16, 804, 1076, 14729, 1208, 16, 804, 1768, 1203, 16, 4697, 202, 5018, 4295, 13, 565, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1208, 18, 588, 23207, 7675, 2469, 31, 277, 27245, 288, 202, 565, 368, 29362, 3059, 326, 526, 12562, 6317, 16, 10504, 202, 565, 368, 5787, 526, 2006, 4295, 487, 732, 11502, 202, 565, 309, 261, 2738, 18, 588, 23207, 1435, 63, 77, 65, 1276, 804, 1076, 14729, 13, 288, 202, 202, 5018, 4295, 21, 273, 394, 5589, 12, 6836, 1769, 202, 202, 6836, 21, 18, 1289, 12, 2704, 804, 1702, 6177, 12, 77, 10019, 202, 202, 1126, 2570, 1768, 12, 1401, 1862, 16, 261, 46, 1076, 14729, 13, 2738, 18, 588, 23207, 1435, 63, 77, 6487, 1203, 16, 6862, 565, 4295, 21, 1769, 202, 565, 289, 202, 565, 469, 288, 202, 202, 759, 29778, 732, 1240, 392, 2652, 716, 353, 18405, 358, 506, 6958, 202, 202, 759, 869, 326, 8894, 526, 930, 202, 202, 46, 2300, 1633, 31, 9506, 202, 11231, 569, 1862, 1276, 514, 747, 569, 1862, 1276, 804, 2042, 3092, 31, 9506, 202, 430, 261, 1401, 1862, 1276, 514, 13, 1082, 565, 1633, 273, 394, 804, 974, 1862, 2300, 12443, 780, 13, 1401, 1862, 1769, 202, 202, 12107, 1875, 565, 1633, 273, 394, 804, 2042, 3092, 2300, 12, 2011, 16, 6862, 9506, 225, 261, 46, 2042, 3092, 13, 1401, 1862, 1769, 202, 202, 759, 534, 23464, 288, 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, 377, 3238, 918, 526, 2570, 1768, 12, 921, 569, 1862, 16, 804, 1076, 14729, 1208, 16, 804, 1768, 1203, 16, 4697, 202, 5018, 4295, 13, 565, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1208, 18, 588, 23207, 7675, 2469, 31, 277, 27245, 288, 202, 565, 368, 29362, 3059, 326, 526, 12562, 6317, 16, 10504, 202, 565, 368, 5787, 526, 2006, 4295, 487, 732, 11502, 202, 565, 309, 261, 2738, 18, 588, 23207, 1435, 63, 77, 65, 1276, 804, 1076, 14729, 13, 288, 202, 202, 5018, 4295, 21, 273, 394, 5589, 12, 6836, 1769, 202, 202, 6836, 21, 18, 1289, 12, 2704, 804, 1702, 6177, 12, 77, 10019, 202, 202, 1126, 2570, 1768, 12, 1401, 1862, 2 ]
public static void main(String[] argv) throws Exception { // set headless for non-gui workstations System.setProperty("java.awt.headless", "true"); // create an options object and populate it CommandLineParser parser = new PosixParser(); Options options = new Options(); options.addOption("v", "verbose", false, "print all extracted text and other details to STDOUT"); options.addOption("f", "force", false, "force all bitstreams to be processed"); options.addOption("n", "noindex", false, "do NOT re-create search index after filtering bitstreams"); options.addOption("h", "help", false, "help"); CommandLine line = parser.parse(options, argv); if (line.hasOption('h')) { HelpFormatter myhelp = new HelpFormatter(); myhelp.printHelp("MediaFilter\n", options); System.exit(0); } if (line.hasOption('v')) { isVerbose = true; } if (line.hasOption('n')) { createIndex = false; } if (line.hasOption('f')) { isForce = true; } Context c = null; try { c = new Context(); // have to be super-user to do the filtering c.setIgnoreAuthorization(true); // now apply the filters applyFiltersAllItems(c); // create search index? if (createIndex) { System.out.println("Creating search index:"); DSIndexer.createIndex(c); } c.complete(); c = null; } finally { if (c != null) { c.abort(); } } }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/023d79e6144ffc2d11960ed6775770e4300da5e6/MediaFilterManager.java/clean/dspace/src/org/dspace/app/mediafilter/MediaFilterManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 1216, 1185, 565, 288, 3639, 368, 444, 910, 2656, 364, 1661, 17, 20292, 1440, 31478, 3639, 2332, 18, 542, 1396, 2932, 6290, 18, 2219, 88, 18, 1978, 2656, 3113, 315, 3767, 8863, 3639, 368, 752, 392, 702, 733, 471, 6490, 518, 3639, 15893, 2678, 2082, 273, 394, 6818, 697, 2678, 5621, 3639, 5087, 702, 273, 394, 5087, 5621, 3639, 702, 18, 1289, 1895, 2932, 90, 3113, 315, 11369, 3113, 629, 16, 7734, 315, 1188, 777, 9438, 977, 471, 1308, 3189, 358, 19331, 8863, 3639, 702, 18, 1289, 1895, 2932, 74, 3113, 315, 5734, 3113, 629, 16, 7734, 315, 5734, 777, 2831, 16320, 358, 506, 5204, 8863, 3639, 702, 18, 1289, 1895, 2932, 82, 3113, 315, 82, 885, 561, 3113, 629, 16, 7734, 315, 2896, 4269, 283, 17, 2640, 1623, 770, 1839, 11346, 2831, 16320, 8863, 3639, 702, 18, 1289, 1895, 2932, 76, 3113, 315, 5201, 3113, 629, 16, 315, 5201, 8863, 3639, 15893, 980, 273, 2082, 18, 2670, 12, 2116, 16, 5261, 1769, 3639, 309, 261, 1369, 18, 5332, 1895, 2668, 76, 26112, 3639, 288, 5411, 11288, 5074, 3399, 5201, 273, 394, 11288, 5074, 5621, 5411, 3399, 5201, 18, 1188, 6696, 2932, 5419, 1586, 64, 82, 3113, 702, 1769, 5411, 2332, 18, 8593, 12, 20, 1769, 3639, 289, 3639, 309, 261, 1369, 18, 5332, 1895, 2668, 90, 26112, 3639, 288, 5411, 353, 14489, 273, 638, 31, 3639, 289, 3639, 309, 261, 1369, 18, 5332, 1895, 2668, 82, 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, 5261, 13, 1216, 1185, 565, 288, 3639, 368, 444, 910, 2656, 364, 1661, 17, 20292, 1440, 31478, 3639, 2332, 18, 542, 1396, 2932, 6290, 18, 2219, 88, 18, 1978, 2656, 3113, 315, 3767, 8863, 3639, 368, 752, 392, 702, 733, 471, 6490, 518, 3639, 15893, 2678, 2082, 273, 394, 6818, 697, 2678, 5621, 3639, 5087, 702, 273, 394, 5087, 5621, 3639, 702, 18, 1289, 1895, 2932, 90, 3113, 315, 11369, 3113, 629, 16, 7734, 315, 1188, 777, 9438, 977, 471, 1308, 3189, 358, 19331, 8863, 3639, 702, 18, 1289, 1895, 2932, 74, 3113, 315, 5734, 3113, 629, 16, 7734, 315, 5734, 777, 2831, 16320, 358, 506, 5204, 8863, 3639, 702, 18, 2 ]
public SingleSelectionModel getSelectionModel() { return null; }
public SingleSelectionModel getSelectionModel() { return selectionModel; }
public SingleSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10326, 6233, 1488, 23204, 1488, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 23204, 1488, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10326, 6233, 1488, 23204, 1488, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 23204, 1488, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
getSingletonClass().addMethod(name, method, Constants.NOEX_PUBLIC);
getSingletonClass().addMethod(name, new WrapperCallable(method, Visibility.PUBLIC));
public RubyModule module_function(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuntime(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuntime().setCurrentMethodScope(Constants.SCOPE_MODFUNC); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); for (int i = 0; i < args.length; i++) { String name = args[i].toId(); ICallable method = searchMethod(name); if (method == null) { throw new RubyBugException("undefined method '" + name + "'; can't happen"); } getSingletonClass().addMethod(name, method, Constants.NOEX_PUBLIC); callMethod("singleton_method_added", RubySymbol.newSymbol(getRuntime(), name)); } } return this; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 3120, 1605, 67, 915, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 588, 5576, 7675, 588, 9890, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 5411, 604, 394, 19817, 24918, 12, 588, 5576, 9334, 315, 382, 8869, 30, 848, 1404, 2549, 707, 9478, 8863, 3639, 289, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 18814, 7675, 542, 3935, 1305, 3876, 12, 2918, 18, 19444, 67, 6720, 42, 21163, 1769, 3639, 289, 469, 288, 5411, 19539, 10135, 12, 1968, 16, 5245, 18, 3417, 2294, 67, 20055, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 7734, 514, 508, 273, 833, 63, 77, 8009, 869, 548, 5621, 7734, 467, 11452, 707, 273, 1623, 1305, 12, 529, 1769, 7734, 309, 261, 2039, 422, 446, 13, 288, 10792, 604, 394, 19817, 19865, 503, 2932, 5978, 707, 2119, 397, 508, 397, 2491, 31, 848, 1404, 5865, 8863, 7734, 289, 7734, 31662, 797, 7675, 1289, 1305, 12, 529, 16, 394, 18735, 11452, 12, 2039, 16, 27791, 18, 14939, 10019, 7734, 745, 1305, 2932, 24487, 67, 2039, 67, 9665, 3113, 19817, 5335, 18, 2704, 5335, 12, 588, 5576, 9334, 508, 10019, 5411, 289, 3639, 289, 3639, 327, 333, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 3120, 1605, 67, 915, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 588, 5576, 7675, 588, 9890, 2355, 1435, 1545, 1059, 597, 401, 291, 29048, 10756, 288, 5411, 604, 394, 19817, 24918, 12, 588, 5576, 9334, 315, 382, 8869, 30, 848, 1404, 2549, 707, 9478, 8863, 3639, 289, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 18814, 7675, 542, 3935, 1305, 3876, 12, 2918, 18, 19444, 67, 6720, 42, 21163, 1769, 3639, 289, 469, 288, 5411, 19539, 10135, 12, 1968, 16, 5245, 18, 3417, 2294, 67, 20055, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 7734, 514, 508, 273, 833, 2 ]
throw Debug.abort(Debug.show(clasz, " - ", context.clasz));
throw Debug.abort(Debug.show(clasz, context.clasz));
private Tree genOuterRef(int pos, Symbol clasz) { if (context.clasz == clasz) return gen.This(pos, clasz); TypeContext tcontext = null; for (int i = 0; i < context.context.outers.length; i++) if (context.context.outers[i].clasz == clasz) tcontext = context.context.outers[i]; assert tcontext != null: Debug.show(clasz, " -- ", context.clasz); if (tcontext.isStable) { throw Debug.abort(Debug.show(clasz, " - ", context.clasz)); /* if (!clasz.owner().isPackageClass()) { Tree qualifier = genOuterRef(pos,tcontext.outers[0].clasz); return gen.Select(pos, qualifier, clasz.module()); } else { assert clasz.owner().isPackageClass(): Debug.show(clasz); return gen.Ident(pos, clasz.module()); } */ } else { assert context.context.vlink != null: Debug.show(clasz, " -- ", context.clasz); Tree tree = context.method == null || context.method.isConstructor() ? gen.Ident(pos, context.context.vlink) : gen.Select(gen.This(pos, context.clasz), context.context.context.vfield); Context context = this.context; while (true) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); while (context.context.isStable) { context = context.outer; assert context != null: Debug.show(clasz, " -- ", this.context.clasz); } if (context.clasz == clasz) return tree; Symbol access = getAccessSymbol(context.context.context.vfield, null); assert access != context.context.context.vfield: Debug.show(access) + " - " + Debug.show(this.context.clasz); tree = gen.Apply(gen.Select(tree, access)); } } }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/d94a30d34746ddbe4274c00231734e2bbc3e9ff5/ExplicitOuterClassesPhase.java/buggy/sources/scalac/transformer/ExplicitOuterClassesPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 4902, 3157, 15040, 1957, 12, 474, 949, 16, 8565, 23268, 94, 13, 288, 5411, 309, 261, 2472, 18, 830, 345, 94, 422, 23268, 94, 13, 327, 3157, 18, 2503, 12, 917, 16, 23268, 94, 1769, 5411, 1412, 1042, 268, 2472, 273, 446, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 819, 18, 2472, 18, 659, 414, 18, 2469, 31, 277, 27245, 7734, 309, 261, 2472, 18, 2472, 18, 659, 414, 63, 77, 8009, 830, 345, 94, 422, 23268, 94, 13, 10792, 268, 2472, 273, 819, 18, 2472, 18, 659, 414, 63, 77, 15533, 5411, 1815, 268, 2472, 480, 446, 30, 4015, 18, 4500, 12, 830, 345, 94, 16, 315, 1493, 3104, 819, 18, 830, 345, 94, 1769, 5411, 309, 261, 88, 2472, 18, 291, 30915, 13, 288, 7734, 604, 4015, 18, 18623, 12, 2829, 18, 4500, 12, 830, 345, 94, 16, 819, 18, 830, 345, 94, 10019, 7734, 1748, 7734, 309, 16051, 830, 345, 94, 18, 8443, 7675, 291, 2261, 797, 10756, 288, 10792, 4902, 12327, 273, 3157, 15040, 1957, 12, 917, 16, 88, 2472, 18, 659, 414, 63, 20, 8009, 830, 345, 94, 1769, 10792, 327, 3157, 18, 3391, 12, 917, 16, 12327, 16, 23268, 94, 18, 2978, 10663, 7734, 289, 469, 288, 10792, 1815, 23268, 94, 18, 8443, 7675, 291, 2261, 797, 13332, 4015, 18, 4500, 12, 830, 345, 94, 1769, 10792, 327, 3157, 18, 6106, 12, 917, 16, 23268, 94, 18, 2978, 10663, 7734, 289, 7734, 1195, 5411, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 4902, 3157, 15040, 1957, 12, 474, 949, 16, 8565, 23268, 94, 13, 288, 5411, 309, 261, 2472, 18, 830, 345, 94, 422, 23268, 94, 13, 327, 3157, 18, 2503, 12, 917, 16, 23268, 94, 1769, 5411, 1412, 1042, 268, 2472, 273, 446, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 819, 18, 2472, 18, 659, 414, 18, 2469, 31, 277, 27245, 7734, 309, 261, 2472, 18, 2472, 18, 659, 414, 63, 77, 8009, 830, 345, 94, 422, 23268, 94, 13, 10792, 268, 2472, 273, 819, 18, 2472, 18, 659, 414, 63, 77, 15533, 5411, 1815, 268, 2472, 480, 446, 30, 4015, 18, 4500, 12, 830, 345, 94, 16, 315, 1493, 3104, 819, 18, 830, 2 ]
public Object getValueAt(int rowIndex, int columnIndex) { return exceptionsList.get(rowIndex);
public Object getValueAt(int rowIndex, int columnIndex){ synchronized(lock){ return exceptionsList.get(rowIndex); }
public Object getValueAt(int rowIndex, int columnIndex) { return exceptionsList.get(rowIndex); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/10b2499ccbed55bc1c41db3f30d360c7ad4dd94c/BadExceptionThrownInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/BadExceptionThrownInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 288, 5411, 327, 4798, 682, 18, 588, 12, 492, 1016, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 288, 5411, 327, 4798, 682, 18, 588, 12, 492, 1016, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_pool.refreshBuilders();
if (_pool.getSettings().isExploratory()) _pool.refreshBuilders(4, 4); else _pool.refreshBuilders(1, 4);
public void runJob() { _pool.refreshBuilders(); }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/ab4f3008cb78a7ef0ea6b25b04e9b6eeb83f8443/RebuildJob.java/buggy/router/java/src/net/i2p/router/tunnel/pool/RebuildJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 309, 261, 67, 6011, 18, 588, 2628, 7675, 291, 424, 412, 280, 8452, 10756, 389, 6011, 18, 9144, 20460, 12, 24, 16, 1059, 1769, 469, 389, 6011, 18, 9144, 20460, 12, 21, 16, 1059, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 2278, 1435, 288, 3639, 309, 261, 67, 6011, 18, 588, 2628, 7675, 291, 424, 412, 280, 8452, 10756, 389, 6011, 18, 9144, 20460, 12, 24, 16, 1059, 1769, 469, 389, 6011, 18, 9144, 20460, 12, 21, 16, 1059, 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 ]
protected List getCellsUnderColumn( int columnIndex )
protected List getCellsUnderColumn( int columnIndex, boolean mustBeStartPosition )
protected List getCellsUnderColumn( int columnIndex ) { List cells = new ArrayList( ); cells.addAll( getCellsInSlot( element.getHeader( ), columnIndex ) ); SlotHandle groups = element.getGroups( ); for ( int i = 0; i < groups.getCount( ); i++ ) { GroupHandle group = (GroupHandle) groups.get( i ); cells.addAll( getCellsInSlot( group.getHeader( ), columnIndex ) ); cells.addAll( getCellsInSlot( group.getFooter( ), columnIndex ) ); } cells.addAll( getCellsInSlot( element.getDetail( ), columnIndex ) ); cells.addAll( getCellsInSlot( element.getFooter( ), columnIndex ) ); return cells; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8df4e191178cef7c67e59bfee82e0f188412b61b/TableColumnBandAdapter.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TableColumnBandAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 16458, 87, 14655, 1494, 12, 509, 14882, 262, 202, 95, 202, 202, 682, 5983, 273, 394, 2407, 12, 11272, 202, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 930, 18, 588, 1864, 12, 262, 16, 14882, 262, 11272, 202, 202, 8764, 3259, 3252, 273, 930, 18, 588, 3621, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 3252, 18, 588, 1380, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 1114, 3259, 1041, 273, 261, 1114, 3259, 13, 3252, 18, 588, 12, 277, 11272, 1082, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 1041, 18, 588, 1864, 12, 262, 16, 14882, 262, 11272, 1082, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 1041, 18, 588, 13787, 12, 262, 16, 14882, 262, 11272, 202, 202, 97, 202, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 930, 18, 588, 6109, 12, 262, 16, 14882, 262, 11272, 202, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 930, 18, 588, 13787, 12, 262, 16, 14882, 262, 11272, 202, 202, 2463, 5983, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 16458, 87, 14655, 1494, 12, 509, 14882, 262, 202, 95, 202, 202, 682, 5983, 273, 394, 2407, 12, 11272, 202, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 930, 18, 588, 1864, 12, 262, 16, 14882, 262, 11272, 202, 202, 8764, 3259, 3252, 273, 930, 18, 588, 3621, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 3252, 18, 588, 1380, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 1114, 3259, 1041, 273, 261, 1114, 3259, 13, 3252, 18, 588, 12, 277, 11272, 1082, 202, 14741, 18, 1289, 1595, 12, 16458, 87, 382, 8764, 12, 1041, 18, 588, 1864, 12, 262, 16, 14882, 262, 11272, 1082, 2 ]
return BLocale;
return browserLocale;
public Locale getClientLocale() { return BLocale; }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/c93fa59b33dcc791084733b4478d8d246986b385/Browser.java/clean/wings2/src/java/org/wings/session/Browser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6458, 7635, 3916, 1435, 288, 3639, 327, 4748, 3916, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6458, 7635, 3916, 1435, 288, 3639, 327, 4748, 3916, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pn = new PeerNode(fs, this.node);
pn = new PeerNode(fs, this.node, false);
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Too much data, darknet toadlet limited to 1MB"); return; } HTTPRequest request = new HTTPRequest(uri, data, ctx); if (request.isPartSet("connect")) { // connect to a new node String urltext = request.getPartAsString("url", 100); urltext = urltext.trim(); String reftext = request.getPartAsString("ref", 2000); reftext = reftext.trim(); if (reftext.length() < 200) { reftext = request.getPartAsString("reffile", 2000); reftext = reftext.trim(); } String ref = ""; if (urltext.length() > 0) { // fetch reference from a URL BufferedReader in = null; try { URL url = new URL(urltext); URLConnection uc = url.openConnection(); in = new BufferedReader(new InputStreamReader(uc.getInputStream())); String line; while ( (line = in.readLine()) != null) { ref += line+"\n"; } } catch (IOException e) { this.sendErrorPage(ctx, 200, "OK", "Failed to add node: Unable to retrieve node reference from "+urltext+"."); } finally { if( in != null ){ in.close(); } } } else if (reftext.length() > 0) { // read from post data or file upload // this slightly scary looking regexp chops any extra characters off the beginning or ends of lines and removes extra line breaks ref = reftext.replaceAll(".*?((?:[\\w,\\.]+\\=[^\r\n]+?)|(?:End))[ \\t]*(?:\\r?\\n)+", "$1\n"); } else { this.sendErrorPage(ctx, 200, "OK", "Failed to add node: Could not detect either a node reference or a URL. Please <a href=\".\">Try again</a>."); request.freeParts(); return; } ref = ref.trim(); request.freeParts(); // we have a node reference in ref SimpleFieldSet fs; try { fs = new SimpleFieldSet(ref, true); } catch (IOException e) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e+" Please <a href=\".\">Try again</a>."); return; } PeerNode pn; try { pn = new PeerNode(fs, this.node); } catch (FSParseException e1) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e1+". Please <a href=\".\">Try again</a>."); return; } catch (PeerParseException e1) { this.sendErrorPage(ctx, 200, "Failed to add node", "Unable to parse the given text: <pre>"+ref+"</pre> as a node reference: "+e1+". Please <a href=\".\">Try again</a>."); return; } if(!this.node.addDarknetConnection(pn)) { this.sendErrorPage(ctx, 200, "Failed to add node", "We already have the given reference. Return to the connections page <a href=\".\">here</a>."); return; } } else if (request.isPartSet("disconnect")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("delete_node_"+peerNodes[i].hashCode())) { this.node.removeDarknetConnection(peerNodes[i]); } } } this.handleGet(uri, ctx); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/474d190c633c367c5c3ff7fbe0f75a1ea669294b/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 10703, 9816, 501, 16, 23433, 2758, 358, 361, 1810, 13594, 358, 404, 7969, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 501, 16, 1103, 1769, 9506, 202, 430, 261, 2293, 18, 291, 1988, 694, 2932, 3612, 6, 3719, 288, 1082, 202, 759, 3077, 358, 279, 394, 756, 1082, 202, 780, 880, 955, 273, 590, 18, 588, 1988, 8092, 2932, 718, 3113, 2130, 1769, 1082, 202, 718, 955, 273, 880, 955, 18, 5290, 5621, 1082, 202, 780, 1278, 955, 273, 590, 18, 588, 1988, 8092, 2932, 1734, 3113, 16291, 1769, 1082, 202, 1734, 955, 273, 1278, 955, 18, 5290, 5621, 1082, 202, 430, 261, 1734, 955, 18, 2469, 1435, 411, 4044, 13, 288, 9506, 202, 1734, 955, 273, 590, 18, 588, 1988, 8092, 2932, 1734, 768, 3113, 16291, 1769, 9506, 202, 1734, 955, 273, 1278, 955, 18, 5290, 5621, 1082, 202, 97, 25083, 202, 780, 1278, 273, 1408, 31, 1082, 202, 430, 261, 718, 955, 18, 2469, 1435, 405, 374, 13, 288, 9506, 202, 759, 2158, 2114, 628, 279, 1976, 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, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 10703, 9816, 501, 16, 23433, 2758, 358, 361, 1810, 13594, 358, 404, 7969, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 501, 16, 1103, 1769, 9506, 202, 430, 261, 2293, 18, 291, 1988, 694, 2932, 3612, 6, 3719, 288, 1082, 202, 2 ]
private JMenu createHelpMenu() {
private JMenu createHelpMenu() {
private JMenu createHelpMenu() { JMenu helpMenu = new JMenu("Help"); // Help menu helpMenu.add(contactUsAction); helpMenu.setMnemonic('H'); return helpMenu; }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/b614d4abef68545f39b6afc1e8521d6ccc484b8e/MainFrame.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 804, 4599, 752, 6696, 4599, 1435, 288, 202, 202, 46, 4599, 2809, 4599, 273, 394, 804, 4599, 2932, 6696, 8863, 202, 202, 759, 11288, 3824, 202, 202, 5201, 4599, 18, 1289, 12, 8994, 3477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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 804, 4599, 752, 6696, 4599, 1435, 288, 202, 202, 46, 4599, 2809, 4599, 273, 394, 804, 4599, 2932, 6696, 8863, 202, 202, 759, 11288, 3824, 202, 202, 5201, 4599, 18, 1289, 12, 8994, 3477, 1803, 1769, 3196, 202, 5201, 4599, 18, 542, 29668, 20918, 2668, 44, 8284, 1082, 202, 2463, 2809, 4599, 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 ]
pane.setFastViewSash(fastViewSash); updateFastViewSashBounds(bounds);
Rectangle clientArea = newClientComposite.getClientArea(); getPresentation().getControl().moveAbove(null); currentPane.moveAbove(null); fastViewSash.moveAbove(null); hider = new WidgetHider(fastViewSash); setSize((int)(Geometry.getDimension(clientArea, !horizontal) * sizeRatio));
public void showView(Composite newClientComposite, ViewPane pane, int newSide, float sizeRatio) { side = newSide; if (currentPane != null) { hideView(); } currentPane = pane; ratio = sizeRatio; clientComposite = newClientComposite; clientComposite.addListener(SWT.Resize, resizeListener); if (fastViewSash != null) { fastViewSash.dispose(); fastViewSash = null; } // Create the control first Control ctrl = pane.getControl(); if (ctrl == null) { pane.createControl(clientComposite); ctrl = pane.getControl(); } StackPresentation presentation = new PartTabFolderPresentation(newClientComposite, site, SWT.MIN | SWT.MAX); site.setPresentation(presentation); site.setPresentationState(IPresentationSite.STATE_MAXIMIZED); presentation.addPart(pane.getPresentablePart(), null); presentation.selectPart(pane.getPresentablePart()); presentation.setActive(true); presentation.setVisible(true); setFastViewSizeUsingRatio(); // Show pane fast. ctrl.setEnabled(true); // Add focus support. Composite parent = ctrl.getParent(); Rectangle bounds = getFastViewBounds(); pane.setVisible(true); presentation.setBounds(bounds); presentation.getControl().moveAbove(null); pane.moveAbove(null); pane.setFocus(); fastViewSash = new Sash(parent, Geometry.getSwtHorizontalOrVerticalConstant(Geometry.isHorizontal(side))); fastViewSash.addSelectionListener(selectionListener); pane.setFastViewSash(fastViewSash); updateFastViewSashBounds(bounds); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1334a76d3033f5c80020f1a0c5c45fe244eebfad/FastViewPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 1767, 12, 9400, 28052, 9400, 16, 4441, 8485, 13618, 16, 509, 394, 8895, 16, 1431, 963, 8541, 13, 288, 202, 202, 5564, 273, 394, 8895, 31, 9506, 202, 430, 261, 2972, 8485, 480, 446, 13, 288, 1082, 202, 11248, 1767, 5621, 202, 202, 97, 1082, 202, 2972, 8485, 273, 13618, 31, 202, 202, 9847, 273, 963, 8541, 31, 9506, 202, 2625, 9400, 273, 28052, 9400, 31, 1082, 202, 2625, 9400, 18, 1289, 2223, 12, 55, 8588, 18, 12182, 16, 7041, 2223, 1769, 202, 202, 430, 261, 8076, 1767, 55, 961, 480, 446, 13, 288, 1082, 202, 8076, 1767, 55, 961, 18, 2251, 4150, 5621, 1082, 202, 8076, 1767, 55, 961, 273, 446, 31, 202, 202, 97, 9506, 202, 759, 1788, 326, 3325, 1122, 202, 202, 3367, 6414, 273, 13618, 18, 588, 3367, 5621, 202, 202, 430, 261, 16277, 422, 446, 13, 288, 1082, 202, 29009, 18, 2640, 3367, 12, 2625, 9400, 1769, 1082, 202, 16277, 273, 13618, 18, 588, 3367, 5621, 6862, 202, 97, 9506, 202, 2624, 6351, 367, 22525, 273, 394, 6393, 5661, 3899, 6351, 367, 12, 2704, 1227, 9400, 16, 2834, 16, 348, 8588, 18, 6236, 571, 348, 8588, 18, 6694, 1769, 9506, 202, 4256, 18, 542, 6351, 367, 12, 10364, 1769, 202, 202, 4256, 18, 542, 6351, 367, 1119, 12, 2579, 1581, 367, 4956, 18, 7998, 67, 6694, 3445, 24131, 1769, 202, 202, 10364, 18, 1289, 1988, 12, 29009, 18, 588, 6351, 429, 1988, 9334, 446, 1769, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 1767, 12, 9400, 28052, 9400, 16, 4441, 8485, 13618, 16, 509, 394, 8895, 16, 1431, 963, 8541, 13, 288, 202, 202, 5564, 273, 394, 8895, 31, 9506, 202, 430, 261, 2972, 8485, 480, 446, 13, 288, 1082, 202, 11248, 1767, 5621, 202, 202, 97, 1082, 202, 2972, 8485, 273, 13618, 31, 202, 202, 9847, 273, 963, 8541, 31, 9506, 202, 2625, 9400, 273, 28052, 9400, 31, 1082, 202, 2625, 9400, 18, 1289, 2223, 12, 55, 8588, 18, 12182, 16, 7041, 2223, 1769, 202, 202, 430, 261, 8076, 1767, 55, 961, 480, 446, 13, 288, 1082, 202, 8076, 1767, 55, 961, 18, 2251, 4150, 5621, 1082, 202, 8076, 1767, 55, 961, 273, 446, 31, 202, 2 ]
log.debug((m_forceRescan ? "Forced r" : "R") + "escan for node w/ nodeid " + m_scheduledNode.getNodeId() + " completed."); } }
log.debug((m_forceRescan ? "Forced r" : "R") + "escan " + "for node w/ nodeid " + m_scheduledNode.getNodeId() + " completed."); } }
public void run() { Category log = ThreadCategory.getInstance(RescanProcessor.class); // perform rescan of the node DbNodeEntry dbNodeEntry = getNode(); if (dbNodeEntry == null) { return; } if (log.isDebugEnabled()) { log.debug("start rescanning node: " + m_scheduledNode.getNodeId()); } DbIpInterfaceEntry[] dbInterfaces = getInterfaces(dbNodeEntry); if (dbInterfaces == null) return; // this indicates whether or not we found an iface the responds to snmp boolean doesSnmp = true; IfSnmpCollector prevSnmpc = null; IpAddrTable ipAddTable = null; List prevAddrList = null; boolean snmpcAgree = false; boolean gotSnmpc = false; Map collectorMap = new HashMap(); Map nonSnmpCollectorMap = new HashMap(); Set probedAddrs = new HashSet(); boolean gotSnmpCollection = false; DbIpInterfaceEntry oldPrimarySnmpInterface = DbNodeEntry.getPrimarySnmpInterface(dbInterfaces); if (oldPrimarySnmpInterface != null) { gotSnmpCollection = scanPrimarySnmpInterface(log, oldPrimarySnmpInterface, collectorMap, probedAddrs); } if (!gotSnmpCollection) { /* * Run collector for each retrieved interface and add result * to a collector map. */ for (int i = 0; i < dbInterfaces.length; i++) { InetAddress ifaddr = dbInterfaces[i].getIfAddress(); /* * collect the information from the interface. * NOTE: skip '127.*.*.*' and '0.0.0.0' addresses. */ if (ifaddr.getHostAddress().startsWith("127") || ifaddr.getHostAddress().equals("0.0.0.0")) { continue; } if (log.isDebugEnabled()) { log.debug("running collection for " + ifaddr.getHostAddress()); } IfCollector collector = new IfCollector(ifaddr, true, probedAddrs); collector.run(); IfSnmpCollector snmpc = collector.getSnmpCollector(); if (snmpc != null) { gotSnmpc = true; } if (snmpc != null && snmpc.hasIpAddrTable() && snmpc.getIfIndex(snmpc.getCollectorTargetAddress()) != -1) { if (areDbInterfacesInSnmpCollection(dbInterfaces, snmpc)) { collectorMap.put(ifaddr.getHostAddress(), collector); gotSnmpCollection = true; if (log.isDebugEnabled()) { log.debug("SNMP data collected via " + ifaddr.getHostAddress()); log.debug("Adding " + ifaddr.getHostAddress() + " to collectorMap for node: " + m_scheduledNode.getNodeId()); } snmpcAgree = false; break; } else if (ipAddTable == null) { snmpcAgree = true; collectorMap.put(ifaddr.getHostAddress(), collector); ipAddTable = snmpc.getIpAddrTable(); prevAddrList = IpAddrTable.getIpAddresses(ipAddTable.getEntries()); prevSnmpc = snmpc; if (log.isDebugEnabled()) { log.debug("SNMP data collected via " + ifaddr.getHostAddress() + " does not agree with database. Tentatively adding to the collectorMap and continuing"); Iterator h = prevAddrList.iterator(); while (h.hasNext()) { log.debug("IP address in list = " +h.next()); } } } else if (ipAddTable != null && snmpcAgree == true) { ipAddTable = snmpc.getIpAddrTable(); List addrList = IpAddrTable.getIpAddresses(ipAddTable.getEntries()); boolean listMatch = true; String jstring = null; String kstring = null; Iterator j = prevAddrList.iterator(); Iterator k = addrList.iterator(); while (j.hasNext()) { jstring = j.next().toString(); if (k.hasNext()) { kstring = k.next().toString(); if (jstring.equals(kstring)) { if (log.isDebugEnabled()) { log.debug(jstring + " = " + kstring); } } else { if (log.isDebugEnabled()) { log.debug(jstring + " != " + kstring); } listMatch = false; } } else { listMatch = false; } } if (k.hasNext()) { listMatch = false; } if (listMatch) { log.debug("Current and previous address lists match"); } else { log.debug("Current and previous address lists DO NOT match"); snmpcAgree = false; } collector.deleteSnmpCollector(); } if (snmpcAgree == false) { if (log.isDebugEnabled()) { log.debug("SNMP data collected via " + ifaddr.getHostAddress() + " does not agree with database or with other interface(s) on this node."); } } } else { // Build a non-SNMP collectorMap, skipping 127.*.*.* and 0.0.0.0 nonSnmpCollectorMap.put(ifaddr.getHostAddress(), collector); if (log.isDebugEnabled()) { log.debug("Adding " + ifaddr.getHostAddress() + " to nonSnmpCollectorMap for node: " + m_scheduledNode.getNodeId()); } } } } if (!gotSnmpCollection && snmpcAgree == false) { /* * We didn't get a collection from a primary snmp interface, * and we didn't get a collection that agrees with the db, and * multiple interface collections don't agree with each other. * First check for lame SNMP host, otherwise use the * nonSnmpCollectorMap and set doesSnmp = false */ collectorMap = nonSnmpCollectorMap; if (nonSnmpCollectorMap.size() == 1 && gotSnmpc) { doesSnmp = true; if (log.isDebugEnabled()) { log.debug("node " + m_scheduledNode.getNodeId() + " appears to be a lame SNMP host... Proceeding"); } } else { doesSnmp = false; if (log.isDebugEnabled()) { if (gotSnmpc == false) { log.debug("Could not collect SNMP data for node: " + m_scheduledNode.getNodeId()); } else { log.debug("Not using SNMP data for node: " + m_scheduledNode.getNodeId() + ". Collection does not agree with database."); } } } } else if (snmpcAgree == true) { /* * We didn't get a collection from a primary snmp interface, * and we didn't get a collection that agrees with the db, but * all collections we DID get agree with each other. * May want to create an event here */ if (log.isDebugEnabled()) { log.debug("SNMP collection for node: " + m_scheduledNode.getNodeId() + " does not agree with database, but there is no conflict among the interfaces on this node which respond to SNMP. Proceeding..."); } createSnmpConflictsWithDbEvent(dbNodeEntry); } // Update the database Date now = null; Connection dbc = null; boolean updateCompleted = false; try { /* * Synchronize on the Capsd sync lock so we can check if * the interface is already in the database and perform * the necessary inserts in one atomic operation * * The SuspectEventProcessor class is also synchronizing on this * lock prior to performing database inserts or updates. */ log.debug("Waiting for capsd dbLock to process "+m_scheduledNode.getNodeId()); synchronized (Capsd.getDbSyncLock()) { log.debug("Got capsd dbLock. processing "+m_scheduledNode.getNodeId()); // Get database connection dbc = DataSourceFactory.getInstance().getConnection(); /* * There is a slight possibility that the node being rescanned * has been deleted (due to reparenting) by another thread * between the time this rescan was started and the database * sync lock was grabbed. Verify that the current nodeid is * still valid (ie, not deleted) before continuing. */ if (!isNodeDeleted(dbc, m_scheduledNode.getNodeId())) { // Update interface information now = new Date(); updateInterfaces(dbc, now, dbNodeEntry, collectorMap, doesSnmp); if (doesSnmp) { InetAddress oldPriIf = null; if(oldPrimarySnmpInterface != null) { oldPriIf = oldPrimarySnmpInterface.getIfAddress(); } InetAddress newSnmpPrimaryIf = updatePrimarySnmpInterface(dbc, dbNodeEntry, collectorMap, oldPriIf); DbNodeEntry updatedNodeEntry = updateNode(dbc, now, dbNodeEntry, newSnmpPrimaryIf, dbInterfaces, collectorMap); } updateCompleted = true; createRescanCompletedEvent(dbNodeEntry); } } } catch (Throwable t) { log.error("Error updating records", t); } finally { // Finished with the database connection, close it. try { if (dbc != null) { dbc.close(); } } catch (SQLException e) { log.error("Error closing connection", e); } } // Send events associcatd with the rescan if (updateCompleted) { // Send all events created during rescan process to eventd Iterator iter = m_eventList.iterator(); while (iter.hasNext()) { try { EventIpcManagerFactory.getIpcManager().sendNow((Event) iter.next()); } catch (Throwable t) { log.warn("run: unexpected throwable exception caught during send to middleware", t); } } } // Update the schedule information for the rescanned node m_scheduledNode.setLastScanned(now); m_scheduledNode.setScheduled(false); if (log.isDebugEnabled()) { log.debug((m_forceRescan ? "Forced r" : "R") + "escan for node w/ nodeid " + m_scheduledNode.getNodeId() + " completed."); } } // end run
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/2d7d01a6c8884e6784a932ca6408a4304fe577cf/RescanProcessor.java/clean/opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 607, 4169, 5164, 18, 1106, 1769, 3639, 368, 3073, 29144, 434, 326, 756, 3639, 8408, 907, 1622, 1319, 907, 1622, 273, 5973, 5621, 7734, 309, 261, 1966, 907, 1622, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 7734, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 5411, 613, 18, 4148, 2932, 1937, 400, 71, 10903, 756, 30, 315, 397, 312, 67, 23307, 907, 18, 588, 15883, 10663, 3639, 289, 3639, 8408, 5273, 1358, 1622, 8526, 1319, 10273, 273, 29833, 12, 1966, 907, 1622, 1769, 7734, 309, 261, 1966, 10273, 422, 446, 13, 327, 31, 3639, 368, 333, 8527, 2856, 578, 486, 732, 1392, 392, 9751, 326, 26617, 358, 15366, 3639, 1250, 1552, 10461, 1291, 273, 638, 31, 7734, 971, 10461, 1291, 7134, 2807, 10461, 1291, 71, 273, 446, 31, 3639, 14709, 3178, 1388, 2359, 986, 1388, 273, 446, 31, 3639, 987, 2807, 3178, 682, 273, 446, 31, 3639, 1250, 15366, 71, 2577, 992, 273, 629, 31, 3639, 1250, 2363, 10461, 1291, 71, 273, 629, 31, 3639, 1635, 8543, 863, 273, 394, 4317, 5621, 3639, 1635, 1661, 10461, 1291, 7134, 863, 273, 394, 4317, 5621, 3639, 1000, 450, 2992, 13811, 273, 394, 6847, 5621, 3639, 1250, 2363, 10461, 1291, 2532, 273, 629, 31, 3639, 8408, 5273, 1358, 1622, 1592, 6793, 10461, 1291, 1358, 273, 8408, 907, 1622, 18, 588, 6793, 10461, 1291, 1358, 12, 1966, 10273, 1769, 3639, 309, 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, 918, 1086, 1435, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 607, 4169, 5164, 18, 1106, 1769, 3639, 368, 3073, 29144, 434, 326, 756, 3639, 8408, 907, 1622, 1319, 907, 1622, 273, 5973, 5621, 7734, 309, 261, 1966, 907, 1622, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 7734, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 5411, 613, 18, 4148, 2932, 1937, 400, 71, 10903, 756, 30, 315, 397, 312, 67, 23307, 907, 18, 588, 15883, 10663, 3639, 289, 3639, 8408, 5273, 1358, 1622, 8526, 1319, 10273, 273, 29833, 12, 1966, 907, 1622, 1769, 7734, 309, 261, 1966, 10273, 422, 446, 13, 327, 31, 3639, 368, 333, 8527, 2856, 578, 486, 2 ]
RankedDocRef rdr = new SimpleRankedDocRef(dr, new Integer(ref_start), new Integer(ref_end), ref_rank);
RankedDocRef rdr = new SimpleRankedDocRef(dr, (ref_start != -1 ? new Integer(ref_start) : null), (ref_end != -1 ? new Integer(ref_end) : null), ref_rank);
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; boolean hasInternalWhitespace = false; rlistener.startSequence(); rlistener.setNamespace(RichObjectFactory.getGenbankNamespace()); // Get an ordered list of key->value pairs in array-tuples String sectionKey = null; NCBITaxon tax = null; String organism = null; String accession = null; do { List section = this.readSection(reader); sectionKey = ((String[])section.get(0))[0]; // process section-by-section if (sectionKey.equals(LOCUS_TAG)) { String loc = ((String[])section.get(0))[1]; String regex = "^(\\S+)\\s+\\d+\\s+bp\\s+([dms]s-)?(\\S+)\\s+(circular|linear)?\\s+(\\S+)\\s+(\\S+)$"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(loc); if (m.matches()) {// if (!symParser.getAlphabet().getName().equals(m.group(3)))// throw new ParseException("Genbank alphabet does not match expected alphabet in parser"); rlistener.setName(m.group(1)); rlistener.setDivision(m.group(5)); rlistener.addSequenceProperty(getModificationTerm(),m.group(6)); // Optional extras String stranded = m.group(2); String circular = m.group(4); if (stranded!=null) rlistener.addSequenceProperty(getStrandedTerm(),stranded); if (circular!=null && circular.equals("circular")) rlistener.setCircular(true); } else { throw new ParseException("Bad locus line found: "+loc); } } else if (sectionKey.equals(DEFINITION_TAG)) { rlistener.setDescription(((String[])section.get(0))[1]); } else if (sectionKey.equals(ACCESSION_TAG)) { // if multiple accessions, store only first as accession, // and store rest in annotation String[] accs = ((String[])section.get(0))[1].split("\\s+"); accession = accs[0].trim(); rlistener.setAccession(accession); for (int i = 1; i < accs.length; i++) { rlistener.addSequenceProperty(getAccessionTerm(),accs[i].trim()); } } else if (sectionKey.equals(VERSION_TAG)) { String ver = ((String[])section.get(0))[1]; String regex = "^(\\S+?)\\.(\\d+)\\s+GI:(\\S+)$"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(ver); if (m.matches()) { rlistener.setVersion(Integer.parseInt(m.group(2))); rlistener.setIdentifier(m.group(3)); } else { throw new ParseException("Bad version line found: "+ver); } } else if (sectionKey.equals(KEYWORDS_TAG)) { rlistener.addSequenceProperty(getKeywordsTerm(), ((String[])section.get(0))[1]); } else if (sectionKey.equals(SOURCE_TAG)) { // ignore - can get all this from the first feature } else if (sectionKey.equals(REFERENCE_TAG)) { // first line of section has rank and location int ref_rank; int ref_start; int ref_end; String ref = ((String[])section.get(0))[1]; String regex = "^(\\d+)\\s+\\(bases\\s+(\\d+)\\s+to\\s+(\\d+)\\)$"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(ref); if (m.matches()) { ref_rank = Integer.parseInt(m.group(1)); ref_start = Integer.parseInt(m.group(2)); ref_end = Integer.parseInt(m.group(3)); } else { throw new ParseException("Bad reference line found: "+ref); } // rest can be in any order String authors = null; String title = null; String journal = null; String medline = null; String pubmed = null; String remark = null; for (int i = 1; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; if (key.equals("AUTHORS")) authors = val; if (key.equals("TITLE")) title = val; if (key.equals("JOURNAL")) journal = val; if (key.equals("MEDLINE")) medline = val; if (key.equals("PUBMED")) pubmed = val; if (key.equals("REMARK")) authors = val; } // create the pubmed crossref and assign to the bioentry CrossRef pcr = null; if (pubmed!=null) { pcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{"PUBMED", pubmed}); RankedCrossRef rpcr = new SimpleRankedCrossRef(pcr, 0); rlistener.setRankedCrossRef(rpcr); } // create the medline crossref and assign to the bioentry CrossRef mcr = null; if (medline!=null) { mcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{"MEDLINE", medline}); RankedCrossRef rmcr = new SimpleRankedCrossRef(mcr, 0); rlistener.setRankedCrossRef(rmcr); } // create the docref object try { DocRef dr = (DocRef)RichObjectFactory.getObject(SimpleDocRef.class,new Object[]{authors,journal}); if (title!=null) dr.setTitle(title); // assign either the pubmed or medline to the docref if (pcr!=null) dr.setCrossref(pcr); else if (mcr!=null) dr.setCrossref(mcr); // assign the remarks dr.setRemark(remark); // assign the docref to the bioentry RankedDocRef rdr = new SimpleRankedDocRef(dr, new Integer(ref_start), new Integer(ref_end), ref_rank); rlistener.setRankedDocRef(rdr); } catch (ChangeVetoException e) { throw new ParseException(e); } } else if (sectionKey.equals(COMMENT_TAG)) { // Set up some comments rlistener.setComment(((String[])section.get(0))[1]); } else if (sectionKey.equals(FEATURE_TAG)) { // starting from second line of input, start a new feature whenever we come across // a value that does not start with " boolean seenAFeature = false; for (int i = 1 ; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; if (key.startsWith("/")) { key = key.substring(1); // strip leading slash val = val.trim().replaceAll("\"",""); // strip quotes // parameter on old feature if (key.equals("db_xref")) { String regex = "^(\\S+?):(\\S+)$"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(val); if (m.matches()) { String dbname = m.group(1); String raccession = m.group(2); if (dbname.equals("taxon")) { // Set the Taxon instead of a dbxref tax = (NCBITaxon)RichObjectFactory.getObject(SimpleNCBITaxon.class, new Object[]{Integer.valueOf(raccession)}); rlistener.setTaxon(tax); try { if (organism!=null) tax.addName(NCBITaxon.SCIENTIFIC,organism); } catch (ChangeVetoException e) { throw new ParseException(e); } } else { try { CrossRef cr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{dbname, raccession}); RankedCrossRef rcr = new SimpleRankedCrossRef(cr, 0); rlistener.getCurrentFeature().addRankedCrossRef(rcr); } catch (ChangeVetoException e) { throw new ParseException(e); } } } else { throw new ParseException("Bad dbxref found: "+val); } } else if (key.equals("organism")) { try { organism = val; if (tax!=null) tax.addName(NCBITaxon.SCIENTIFIC,organism); } catch (ChangeVetoException e) { throw new ParseException(e); } } else { if (key.equals("translation")) { // strip spaces from sequence val = val.replaceAll("\\s+",""); } rlistener.addFeatureProperty(RichObjectFactory.getDefaultOntology().getOrCreateTerm(key),val); } } else { // new feature! // end previous feature if (seenAFeature) rlistener.endFeature(); // start next one, with lots of lovely info in it RichFeature.Template templ = new RichFeature.Template(); templ.annotation = new SimpleRichAnnotation(); templ.sourceTerm = getGenBankTerm(); templ.typeTerm = RichObjectFactory.getDefaultOntology().getOrCreateTerm(key); templ.featureRelationshipSet = new TreeSet(); templ.rankedCrossRefs = new TreeSet(); String tidyLocStr = val.replaceAll("\\s+",""); templ.location = GenbankLocationParser.parseLocation(RichObjectFactory.getDefaultLocalNamespace(), accession, tidyLocStr); rlistener.startFeature(templ); seenAFeature = true; } } if (seenAFeature) rlistener.endFeature(); } else if (sectionKey.equals(BASE_COUNT_TAG)) { // ignore - can calculate from sequence content later if needed } else if (sectionKey.equals(START_SEQUENCE_TAG) && !this.elideSymbols) { // our first line is ignorable as it is the ORIGIN tag // the second line onwards conveniently have the number as // the [0] tuple, and sequence string as [1] so all we have // to do is concat the [1] parts and then strip out spaces, // and replace '.' and '~' with '-' for our parser. StringBuffer seq = new StringBuffer(); for (int i = 1 ; i < section.size(); i++) seq.append(((String[])section.get(i))[1]); try { SymbolList sl = new SimpleSymbolList(symParser, seq.toString().replaceAll("\\s+","").replaceAll("[\\.|~]","-")); rlistener.addSymbols(symParser.getAlphabet(), (Symbol[])(sl.toList().toArray(new Symbol[0])), 0, sl.length()); } catch (Exception e) { throw new ParseException(e); } } } while (!sectionKey.equals(END_SEQUENCE_TAG)); // Allows us to tolerate trailing whitespace without // thinking that there is another Sequence to follow while (true) { reader.mark(1); int c = reader.read(); if (c == -1) { hasAnotherSequence = false; break; } if (Character.isWhitespace((char) c)) { hasInternalWhitespace = true; continue; } if (hasInternalWhitespace) System.err.println("Warning: whitespace found between sequence entries"); reader.reset(); break; } // Finish up. rlistener.endSequence(); return hasAnotherSequence; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/0035460f798f6bbb7a3366e59da5d626fd695e2b/GenbankFormat.java/clean/src/org/biojavax/bio/seq/io/GenbankFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 855, 22591, 4021, 12, 17947, 2514, 2949, 16, 5411, 8565, 1345, 1588, 5382, 2678, 16, 5411, 534, 1354, 6926, 4294, 2223, 436, 12757, 13, 5411, 1216, 2141, 5335, 503, 16, 1860, 16, 10616, 288, 3639, 514, 980, 31, 3639, 1250, 711, 37, 24413, 4021, 565, 273, 638, 31, 3639, 1250, 711, 3061, 9431, 273, 629, 31, 7734, 436, 12757, 18, 1937, 4021, 5621, 7734, 436, 12757, 18, 542, 3402, 12, 22591, 921, 1733, 18, 588, 7642, 10546, 3402, 10663, 7734, 368, 968, 392, 5901, 666, 434, 498, 2122, 1132, 5574, 316, 526, 17, 17705, 3639, 514, 2442, 653, 273, 446, 31, 3639, 423, 8876, 1285, 651, 265, 5320, 273, 446, 31, 3639, 514, 15501, 6228, 273, 446, 31, 3639, 514, 2006, 285, 273, 446, 31, 3639, 741, 288, 5411, 987, 2442, 273, 333, 18, 896, 5285, 12, 10530, 1769, 5411, 2442, 653, 273, 14015, 780, 63, 5717, 3464, 18, 588, 12, 20, 3719, 63, 20, 15533, 13491, 368, 1207, 2442, 17, 1637, 17, 3464, 5411, 309, 261, 3464, 653, 18, 14963, 12, 29450, 3378, 67, 7927, 3719, 288, 7734, 514, 1515, 273, 14015, 780, 63, 5717, 3464, 18, 588, 12, 20, 3719, 63, 21, 15533, 7734, 514, 3936, 273, 15017, 24480, 55, 6975, 1695, 87, 15, 1695, 72, 15, 1695, 87, 15, 17152, 1695, 87, 15, 3816, 72, 959, 65, 87, 17, 9945, 24480, 55, 6975, 1695, 87, 15, 12, 11614, 9559, 96, 12379, 9945, 1695, 87, 15, 24480, 55, 6975, 1695, 87, 15, 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, 1250, 855, 22591, 4021, 12, 17947, 2514, 2949, 16, 5411, 8565, 1345, 1588, 5382, 2678, 16, 5411, 534, 1354, 6926, 4294, 2223, 436, 12757, 13, 5411, 1216, 2141, 5335, 503, 16, 1860, 16, 10616, 288, 3639, 514, 980, 31, 3639, 1250, 711, 37, 24413, 4021, 565, 273, 638, 31, 3639, 1250, 711, 3061, 9431, 273, 629, 31, 7734, 436, 12757, 18, 1937, 4021, 5621, 7734, 436, 12757, 18, 542, 3402, 12, 22591, 921, 1733, 18, 588, 7642, 10546, 3402, 10663, 7734, 368, 968, 392, 5901, 666, 434, 498, 2122, 1132, 5574, 316, 526, 17, 17705, 3639, 514, 2442, 653, 273, 446, 31, 3639, 423, 8876, 1285, 651, 265, 5320, 273, 446, 31, 3639, 514, 15501, 6228, 273, 2 ]
println(" yy_currentPos_l = yy_currentPos;"); println(" yy_markedPos_l = yy_markedPos;"); println(" yy_buffer_l = yy_buffer;"); println(" yy_endRead_l = yy_endRead;");
println(" yyFlexCurrentPosL = yyFlexCurrentPos;"); println(" yyFlexMarkedPosL = yyFlexMarkedPos;"); println(" yyFlexBufferL = yyFlexBuffer;"); println(" yyFlexEndReadL = yyFlexEndRead;");
private void emitNextInput() { println(" if (yy_currentPos_l < yy_endRead_l)"); println(" yy_input = yy_buffer_l[yy_currentPos_l++];"); println(" else if (yy_atEOF) {"); println(" yy_input = YYEOF;"); println(" break yy_forAction;"); println(" }"); println(" else {"); println(" // store back cached positions"); println(" yy_currentPos = yy_currentPos_l;"); println(" yy_markedPos = yy_markedPos_l;"); if ( scanner.lookAheadUsed ) println(" yy_pushbackPos = yy_pushbackPos_l;"); println(" boolean eof = yy_refill();"); println(" // get translated positions and possibly new buffer"); println(" yy_currentPos_l = yy_currentPos;"); println(" yy_markedPos_l = yy_markedPos;"); println(" yy_buffer_l = yy_buffer;"); println(" yy_endRead_l = yy_endRead;"); if ( scanner.lookAheadUsed ) println(" yy_pushbackPos_l = yy_pushbackPos;"); println(" if (eof) {"); println(" yy_input = YYEOF;"); println(" break yy_forAction;"); println(" }"); println(" else {"); println(" yy_input = yy_buffer_l[yy_currentPos_l++];"); println(" }"); println(" }"); }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/2be54126140619a5f1a55243415a849954586b1c/Emitter.java/buggy/src/JFlex/Emitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 2134, 1210, 1435, 288, 565, 3785, 2932, 1850, 309, 261, 6795, 67, 2972, 1616, 67, 80, 411, 9016, 67, 409, 1994, 67, 80, 2225, 1769, 565, 3785, 2932, 5411, 9016, 67, 2630, 273, 9016, 67, 4106, 67, 80, 63, 6795, 67, 2972, 1616, 67, 80, 9904, 65, 4868, 1769, 565, 3785, 2932, 1850, 469, 309, 261, 6795, 67, 270, 12706, 13, 288, 8863, 565, 3785, 2932, 5411, 9016, 67, 2630, 273, 1624, 61, 12706, 4868, 1769, 565, 3785, 2932, 5411, 898, 9016, 67, 1884, 1803, 4868, 1769, 565, 3785, 2932, 1850, 289, 8863, 565, 3785, 2932, 1850, 469, 288, 8863, 565, 3785, 2932, 5411, 368, 1707, 1473, 3472, 6865, 8863, 565, 3785, 2932, 5411, 9016, 67, 2972, 1616, 225, 273, 9016, 67, 2972, 1616, 67, 80, 4868, 1769, 565, 3785, 2932, 5411, 9016, 67, 3355, 329, 1616, 282, 273, 9016, 67, 3355, 329, 1616, 67, 80, 4868, 1769, 565, 309, 261, 7683, 18, 7330, 24250, 6668, 262, 4202, 3785, 2932, 5411, 9016, 67, 6206, 823, 1616, 273, 9016, 67, 6206, 823, 1616, 67, 80, 4868, 1769, 565, 3785, 2932, 5411, 1250, 14813, 273, 9016, 67, 1734, 737, 26994, 1769, 565, 3785, 2932, 5411, 368, 336, 9955, 6865, 471, 10016, 394, 1613, 8863, 565, 3785, 2932, 5411, 9016, 67, 2972, 1616, 67, 80, 225, 273, 9016, 67, 2972, 1616, 4868, 1769, 565, 3785, 2932, 5411, 9016, 67, 3355, 329, 1616, 67, 80, 282, 273, 9016, 67, 3355, 329, 1616, 4868, 1769, 565, 3785, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 2134, 1210, 1435, 288, 565, 3785, 2932, 1850, 309, 261, 6795, 67, 2972, 1616, 67, 80, 411, 9016, 67, 409, 1994, 67, 80, 2225, 1769, 565, 3785, 2932, 5411, 9016, 67, 2630, 273, 9016, 67, 4106, 67, 80, 63, 6795, 67, 2972, 1616, 67, 80, 9904, 65, 4868, 1769, 565, 3785, 2932, 1850, 469, 309, 261, 6795, 67, 270, 12706, 13, 288, 8863, 565, 3785, 2932, 5411, 9016, 67, 2630, 273, 1624, 61, 12706, 4868, 1769, 565, 3785, 2932, 5411, 898, 9016, 67, 1884, 1803, 4868, 1769, 565, 3785, 2932, 1850, 289, 8863, 565, 3785, 2932, 1850, 469, 288, 8863, 565, 3785, 2932, 5411, 368, 1707, 1473, 3472, 6865, 8863, 565, 3785, 2932, 5411, 9016, 2 ]
{ }
{ this(LOWERED); }
public EtchedBorder() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 88, 2049, 8107, 1435, 565, 288, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 512, 88, 2049, 8107, 1435, 565, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Document createDefaultDocument() {
public InteractionsDJDocument createDefaultDocument() {
public Document createDefaultDocument() { return new InteractionsDJDocument(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/53d061333fe3393f6569c1f553912f1a449482ad/InteractionsEditorKit.java/buggy/drjava/src/edu/rice/cs/drjava/model/repl/InteractionsEditorKit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5294, 4905, 40, 46, 2519, 27346, 2519, 1435, 288, 565, 327, 394, 5294, 4905, 40, 46, 2519, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5294, 4905, 40, 46, 2519, 27346, 2519, 1435, 288, 565, 327, 394, 5294, 4905, 40, 46, 2519, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (readyOps () & OP_WRITE) != 0;
return (readyOps() & OP_WRITE) != 0;
public final boolean isWritable () { return (readyOps () & OP_WRITE) != 0; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e3f7218be7244f0de74b2230a33469c2bf32546b/SelectionKey.java/buggy/core/src/classpath/java/java/nio/channels/SelectionKey.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1250, 353, 12061, 1832, 225, 288, 565, 327, 261, 1672, 8132, 1435, 473, 7247, 67, 11677, 13, 480, 374, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1250, 353, 12061, 1832, 225, 288, 565, 327, 261, 1672, 8132, 1435, 473, 7247, 67, 11677, 13, 480, 374, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public SingleFileFetcher(ClientGet get, GetCompletionCallback cb, ClientMetadata metadata, ClientKey key, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token) throws FetchException {
public SingleFileFetcher(ClientGetter get, GetCompletionCallback cb, ClientMetadata metadata, ClientKey key, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token) throws FetchException {
public SingleFileFetcher(ClientGet get, GetCompletionCallback cb, ClientMetadata metadata, ClientKey key, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token) throws FetchException { this.cancelled = false; this.dontTellClientGet = dontTellClientGet; this.token = token; this.parent = get; //this.uri = uri; //this.key = ClientKey.getBaseKey(uri); //metaStrings = uri.listMetaStrings(); this.key = key; this.metaStrings = metaStrings; this.ctx = ctx; retryCount = 0; this.rcb = cb; this.clientMetadata = metadata; this.maxRetries = maxRetries; thisKey = key.getURI(); this.actx = actx; this.recursionLevel = recursionLevel + 1; if(recursionLevel > ctx.maxRecursionLevel) throw new FetchException(FetchException.TOO_MUCH_RECURSION); this.decompressors = new LinkedList(); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/d32229c02576d531c915059f111c468591f30e84/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10326, 812, 16855, 12, 1227, 967, 336, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1982, 16, 2445, 653, 498, 16, 10688, 2191, 7957, 16, 8065, 264, 1042, 1103, 16, 13124, 1042, 1328, 92, 16, 509, 30222, 16, 509, 13917, 2355, 16, 1250, 14046, 21009, 1227, 967, 16, 1033, 1147, 13, 1216, 8065, 503, 288, 202, 202, 2211, 18, 10996, 1259, 273, 629, 31, 202, 202, 2211, 18, 72, 1580, 21009, 1227, 967, 273, 14046, 21009, 1227, 967, 31, 202, 202, 2211, 18, 2316, 273, 1147, 31, 202, 202, 2211, 18, 2938, 273, 336, 31, 202, 202, 759, 2211, 18, 1650, 273, 2003, 31, 202, 202, 759, 2211, 18, 856, 273, 2445, 653, 18, 588, 2171, 653, 12, 1650, 1769, 202, 202, 759, 3901, 7957, 273, 2003, 18, 1098, 2781, 7957, 5621, 202, 202, 2211, 18, 856, 273, 498, 31, 202, 202, 2211, 18, 3901, 7957, 273, 2191, 7957, 31, 202, 202, 2211, 18, 5900, 273, 1103, 31, 202, 202, 9620, 1380, 273, 374, 31, 202, 202, 2211, 18, 1310, 70, 273, 2875, 31, 202, 202, 2211, 18, 2625, 2277, 273, 1982, 31, 202, 202, 2211, 18, 1896, 13656, 273, 30222, 31, 202, 202, 2211, 653, 273, 498, 18, 588, 3098, 5621, 202, 202, 2211, 18, 621, 92, 273, 1328, 92, 31, 202, 202, 2211, 18, 31347, 2355, 273, 13917, 2355, 397, 404, 31, 202, 202, 430, 12, 31347, 2355, 405, 1103, 18, 1896, 426, 10919, 2355, 13, 1082, 202, 12849, 394, 8065, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10326, 812, 16855, 12, 1227, 967, 336, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1982, 16, 2445, 653, 498, 16, 10688, 2191, 7957, 16, 8065, 264, 1042, 1103, 16, 13124, 1042, 1328, 92, 16, 509, 30222, 16, 509, 13917, 2355, 16, 1250, 14046, 21009, 1227, 967, 16, 1033, 1147, 13, 1216, 8065, 503, 288, 202, 202, 2211, 18, 10996, 1259, 273, 629, 31, 202, 202, 2211, 18, 72, 1580, 21009, 1227, 967, 273, 14046, 21009, 1227, 967, 31, 202, 202, 2211, 18, 2316, 273, 1147, 31, 202, 202, 2211, 18, 2938, 273, 336, 31, 202, 202, 759, 2211, 18, 1650, 273, 2003, 31, 202, 202, 759, 2211, 18, 856, 273, 2445, 653, 18, 588, 2171, 2 ]
for (i=nsi;i<nsi+nsf;i++) { smooth_gain = .96f*smooth_gain + .04f*gain;
for (i = nsi; i < nsi + nsf; i++) { smooth_gain = .96f * smooth_gain + .04f * gain;
public void comb_filter(final float[] exc, final int esi, final float[] new_exc, final int nsi, final int nsf, final int pitch, final float[] pitch_gain, float comb_gain) { int i, j; float exc_energy=0.0f, new_exc_energy=0.0f; float gain, step, fact, g=0.0f; /*Compute excitation energy prior to enhancement*/ for (i=esi; i<esi+nsf; i++) { exc_energy+=exc[i]*exc[i]; } /* Some gain adjustment if pitch is too high or if unvoiced */ g = .5f*Math.abs(pitch_gain[0] + pitch_gain[1] + pitch_gain[2] + last_pitch_gain[0] + last_pitch_gain[1] + last_pitch_gain[2]); if (g>1.3f) comb_gain*=1.3f/g; if (g<.5f) comb_gain*=2.0f*g; step = 1.0f/nsf; fact=0; /* Apply pitch comb-filter (filter out noise between pitch harmonics)*/ for (i=0, j=esi; i<nsf; i++, j++) { fact += step; new_exc[nsi+i] = exc[j] + comb_gain * fact * (pitch_gain[0]*exc[j-pitch+1] + pitch_gain[1]*exc[j-pitch] + pitch_gain[2]*exc[j-pitch-1]) + comb_gain * (1.0f-fact) * (last_pitch_gain[0]*exc[j-last_pitch+1] + last_pitch_gain[1]*exc[j-last_pitch] + last_pitch_gain[2]*exc[j-last_pitch-1]); } last_pitch_gain[0] = pitch_gain[0]; last_pitch_gain[1] = pitch_gain[1]; last_pitch_gain[2] = pitch_gain[2]; last_pitch = pitch; /* Gain after enhancement*/ for (i=nsi;i<nsi+nsf;i++) new_exc_energy+=new_exc[i]*new_exc[i]; /* Compute scaling factor and normalize energy*/ gain = (float) (Math.sqrt(exc_energy/(.1f+new_exc_energy))); if (gain < .5f) { gain=.5f; } if (gain>1.0f) { gain=1.0f; } for (i=nsi;i<nsi+nsf;i++) { smooth_gain = .96f*smooth_gain + .04f*gain; new_exc[i] *= smooth_gain; } }
6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/81112208859292bc5ef5f9b0033ab2ea6dab38c0/Filters.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/Filters.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3894, 67, 2188, 12, 6385, 1431, 8526, 3533, 16, 12900, 727, 509, 27453, 16, 12900, 727, 1431, 8526, 394, 67, 10075, 16, 12900, 727, 509, 3153, 77, 16, 12900, 727, 509, 3153, 74, 16, 12900, 727, 509, 14486, 16, 12900, 727, 1431, 8526, 14486, 67, 25540, 16, 12900, 1431, 3894, 67, 25540, 13, 225, 288, 565, 509, 277, 16, 525, 31, 565, 1431, 3533, 67, 15358, 33, 20, 18, 20, 74, 16, 394, 67, 10075, 67, 15358, 33, 20, 18, 20, 74, 31, 565, 1431, 17527, 16, 2235, 16, 5410, 16, 314, 33, 20, 18, 20, 74, 31, 565, 1748, 7018, 3533, 8773, 12929, 6432, 358, 29119, 475, 5549, 565, 364, 261, 77, 33, 281, 77, 31, 277, 32, 281, 77, 15, 2387, 74, 31, 277, 27245, 288, 1377, 3533, 67, 15358, 15, 33, 10075, 63, 77, 5772, 10075, 63, 77, 15533, 565, 289, 565, 1748, 10548, 17527, 18335, 309, 14486, 353, 4885, 3551, 578, 309, 640, 25993, 72, 1195, 565, 314, 273, 263, 25, 74, 14, 10477, 18, 5113, 12, 25910, 67, 25540, 63, 20, 65, 397, 14486, 67, 25540, 63, 21, 65, 397, 14486, 67, 25540, 63, 22, 65, 397, 5397, 1142, 67, 25910, 67, 25540, 63, 20, 65, 397, 1142, 67, 25910, 67, 25540, 63, 21, 65, 397, 1142, 67, 25910, 67, 25540, 63, 22, 19226, 565, 309, 261, 75, 34, 21, 18, 23, 74, 13, 1377, 3894, 67, 25540, 14, 33, 21, 18, 23, 74, 19, 75, 31, 565, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3894, 67, 2188, 12, 6385, 1431, 8526, 3533, 16, 12900, 727, 509, 27453, 16, 12900, 727, 1431, 8526, 394, 67, 10075, 16, 12900, 727, 509, 3153, 77, 16, 12900, 727, 509, 3153, 74, 16, 12900, 727, 509, 14486, 16, 12900, 727, 1431, 8526, 14486, 67, 25540, 16, 12900, 1431, 3894, 67, 25540, 13, 225, 288, 565, 509, 277, 16, 525, 31, 565, 1431, 3533, 67, 15358, 33, 20, 18, 20, 74, 16, 394, 67, 10075, 67, 15358, 33, 20, 18, 20, 74, 31, 565, 1431, 17527, 16, 2235, 16, 5410, 16, 314, 33, 20, 18, 20, 74, 31, 565, 1748, 7018, 3533, 8773, 12929, 6432, 358, 29119, 475, 5549, 565, 364, 261, 77, 33, 281, 77, 2 ]
case M_OP_POW:
case FixnumDefinition.OP_POW:
public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case M_OP_PLUS: return op_plus(args[0]); case M_OP_MINUS: return op_minus(args[0]); case M_OP_MUL: return op_mul(args[0]); case M_OP_DIV: return op_div(args[0]); case M_OP_MOD: return op_mod(args[0]); case M_OP_POW: return op_pow(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_CMP: return op_cmp(args[0]); case M_OP_GT: return op_gt(args[0]); case M_OP_GE: return op_ge(args[0]); case M_OP_LT: return op_lt(args[0]); case M_OP_LE: return op_le(args[0]); case M_OP_AND: return op_and(args[0]); case M_SIZE: return size(); case M_HASH: return hash(); case M_ID2NAME: return id2name(); case M_INVERT: return invert(); case M_ID: return id(); } return super.callIndexed(index, args); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/5f6bd2ce57ff6ed96fea5760d028882d8af6113c/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 745, 15034, 12, 474, 770, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 1620, 261, 1615, 13, 288, 3639, 648, 490, 67, 4296, 67, 42, 30, 5411, 327, 358, 67, 74, 5621, 3639, 648, 490, 67, 4296, 67, 55, 30, 5411, 327, 358, 67, 87, 5621, 3639, 648, 490, 67, 3665, 67, 48, 23191, 30, 5411, 327, 1061, 67, 80, 4012, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 54, 23191, 30, 5411, 327, 1061, 67, 86, 4012, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 6253, 3378, 30, 5411, 327, 1061, 67, 10103, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 6236, 3378, 30, 5411, 327, 1061, 67, 19601, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 49, 1506, 30, 5411, 327, 1061, 67, 16411, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 31901, 30, 5411, 327, 1061, 67, 2892, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 6720, 30, 5411, 327, 1061, 67, 1711, 12, 1968, 63, 20, 19226, 3639, 648, 12139, 2107, 1852, 18, 3665, 67, 2419, 59, 30, 5411, 327, 1061, 67, 23509, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 12853, 30, 5411, 327, 3959, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 39, 4566, 30, 5411, 327, 1061, 67, 9625, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 16506, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 745, 15034, 12, 474, 770, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 1620, 261, 1615, 13, 288, 3639, 648, 490, 67, 4296, 67, 42, 30, 5411, 327, 358, 67, 74, 5621, 3639, 648, 490, 67, 4296, 67, 55, 30, 5411, 327, 358, 67, 87, 5621, 3639, 648, 490, 67, 3665, 67, 48, 23191, 30, 5411, 327, 1061, 67, 80, 4012, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 54, 23191, 30, 5411, 327, 1061, 67, 86, 4012, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 6253, 3378, 30, 5411, 327, 1061, 67, 10103, 12, 1968, 63, 20, 19226, 3639, 648, 490, 67, 3665, 67, 6236, 3378, 2 ]
break;
if ( !scX.zoomOut( ) ) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; }
protected final double adjustHorizontal( double dBlockX, double dBlockWidth, AllAxes aax ) throws ChartException, IllegalArgumentException { final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final AutoScale scX = axPH.getScale( ); final AutoScale scY = axPV.getScale( ); final int iXLabelLocation = axPH.getLabelPosition( ); final int iYLabelLocation = axPV.getLabelPosition( ); final int iYTitleLocation = axPV.getTitlePosition( ); final Label laXAxisLabels = axPH.getLabel( ); final Label laYAxisLabels = axPV.getLabel( ); final Label laYAxisTitle = axPV.getTitle( ); final int iYTickStyle = axPV.getCombinedTickStyle( ); final IntersectionValue iv = axPV.getIntersectionValue( ); // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS AND // AXIS-PLOT SPACING final boolean bTicksLeft = ( iYTickStyle & TICK_LEFT ) == TICK_LEFT; final boolean bTicksRight = ( iYTickStyle & TICK_RIGHT ) == TICK_RIGHT; final double dAppliedYAxisPlotSpacing = ( iv.iType == IntersectionValue.MAX || iv.iType == IntersectionValue.MIN ) ? dYAxisPlotSpacing : 0; // UPDATE Y-AXIS ENDPOINTS DUE TO AXIS LABEL SHIFTS double dStart = scY.getStart( ), dEnd = scY.getEnd( ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { if ( !scY.zoomOut( ) ) { break; } scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( scY.getUnit( ) != null && asInteger( scY.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } double dYAxisLabelsThickness = scY.computeAxisLabelThickness( ids, axPV.getLabel( ), VERTICAL ); double dYAxisTitleThickness = 0; if ( laYAxisTitle.isVisible( ) ) { final String sPreviousValue = laYAxisTitle.getCaption( ).getValue( ); laYAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); try { dYAxisTitleThickness = computeBox( ids, iYTitleLocation, laYAxisTitle, 0, 0 ).getWidth( ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } finally { laYAxisTitle.getCaption( ).setValue( sPreviousValue ); } } double dX = getLocation( scX, iv ), dX1 = dX, dX2 = dX; // COMPUTE VALUES FOR x1, x, x2 // x = HORIZONTAL LOCATION OF Y-AXIS ALONG PLOT // x1 = LEFT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TITLE, TICKS & // SPACING) // x2 = RIGHT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TITLE, TICKS & // SPACING) if ( iv.iType == IntersectionValue.MIN ) { if ( scX.getDirection( ) == BACKWARD ) { // switch if scale is backward. dX = getLocation( scX, IntersectionValue.MAX_VALUE ); } dX -= dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksLeft ) { dX1 -= TICK_SIZE; } if ( iYLabelLocation == LEFT ) { dX1 -= dYAxisLabelsThickness; dX2 += Math.max( // IF LABELS ARE LEFT, THEN RIGHT SPACING IS // MAX(RT_TICK_SIZE, HORZ_SPACING) bTicksRight ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( iYLabelLocation == RIGHT ) { // IF LABELS ARE RIGHT, THEN RIGHT SPACING IS // MAX(RT_TICK_SIZE+AXIS_LBL_THCKNESS, HORZ_SPACING) dX2 += Math.max( ( bTicksRight ? TICK_SIZE : 0 ) + dYAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } else if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } // ENSURE THAT WE DON'T GO BEHIND THE LEFT PLOT BLOCK EDGE if ( dX1 < dBlockX ) { final double dDelta = ( dBlockX - dX1 ); dX1 = dBlockX; dX += dDelta; dX2 += dDelta; } final double dDeltaX1 = dX - dX1; final double dDeltaX2 = dX2 - dX; // COMPUTE THE Y-AXIS BAND THICKNESS AND ADJUST X2 FOR LABELS BELOW if ( iYLabelLocation == RIGHT ) { // Y-AXIS BAND IS (x1 -> (x+AxisPlotSpacing)) dX2 = ( dX + dAppliedYAxisPlotSpacing ); } dYAxisLabelsThickness = dX2 - dX1; // REUSE VARIABLE // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END scX.computeAxisStartEndShifts( ids, laXAxisLabels, HORIZONTAL, iXLabelLocation, aax ); if ( scX.getDirection( ) == BACKWARD ) { if ( dYAxisLabelsThickness > scX.getEndShift( ) ) { // REDUCE scX's STARTPOINT TO FIT THE Y-AXIS ON THE LEFT dEnd = dX2 - scX.getEndShift( ); } else { dEnd = scX.getEnd( ); } dStart = scX.getStart( ); } else { if ( dYAxisLabelsThickness > scX.getStartShift( ) ) { // REDUCE scX's STARTPOINT TO FIT THE Y-AXIS ON THE LEFT dStart = dX2 - scX.getStartShift( ); } else { dStart = scX.getStart( ); } dEnd = scX.getEnd( ); } scX.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS IF // OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } // MOVE THE Y-AXIS TO THE LEFT EDGE OF THE PLOT IF SLACK SPACE // EXISTS if ( scX.getDirection( ) == BACKWARD ) { if ( dYAxisLabelsThickness < scX.getEndShift( ) ) { dX = scX.getEnd( ) - ( dX2 - dX ); } } else { if ( dYAxisLabelsThickness < scX.getStartShift( ) ) { dX = scX.getStart( ) - ( dX2 - dX ); } } dX -= insCA.getLeft( ); dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } else if ( iv.iType == IntersectionValue.MAX ) { if ( scX.getDirection( ) == BACKWARD ) { // switch if scale is backward. dX = getLocation( scX, IntersectionValue.MIN_VALUE ); } dX += dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksRight ) { dX2 += TICK_SIZE; } if ( iYLabelLocation == RIGHT ) { dX2 += dYAxisLabelsThickness; dX1 -= Math.max( bTicksLeft ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( iYLabelLocation == LEFT ) { dX1 -= Math.max( ( bTicksLeft ? TICK_SIZE : 0 ) + dYAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } else if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } // ENSURE THAT WE DON'T GO AHEAD OF THE RIGHT PLOT BLOCK EDGE if ( dX2 > dBlockX + dBlockWidth ) { final double dDelta = dX2 - ( dBlockX + dBlockWidth ); dX2 = dBlockX + dBlockWidth; dX -= dDelta; dX1 -= dDelta; } final double dDeltaX1 = dX - dX1; final double dDeltaX2 = dX2 - dX; // COMPUTE THE Y-AXIS BAND THICKNESS AND ADJUST X1 IF Y-AXIS LABELS // ARE ON THE LEFT if ( iYLabelLocation == LEFT ) { // Y-AXIS BAND IS ((x-AxisPlotSpacing) -> x2) dX1 = ( dX - dAppliedYAxisPlotSpacing ); } dYAxisLabelsThickness = dX2 - dX1; // REUSE VARIABLE // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END scX.computeAxisStartEndShifts( ids, laXAxisLabels, HORIZONTAL, iXLabelLocation, aax ); if ( scX.getDirection( ) == BACKWARD ) { if ( dYAxisLabelsThickness > scX.getStartShift( ) ) { // REDUCE scX's ENDPOINT TO FIT THE Y-AXIS ON THE RIGHT dStart = dX1 + scX.getStartShift( ); } else { dStart = scX.getStart( ); } dEnd = scX.getEnd( ); } else { if ( dYAxisLabelsThickness > scX.getEndShift( ) ) { // REDUCE scX's ENDPOINT TO FIT THE Y-AXIS ON THE RIGHT dEnd = dX1 + scX.getEndShift( ); } else { dEnd = scX.getEnd( ); } dStart = scX.getStart( ); } scX.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS IF // OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } // MOVE THE Y-AXIS TO THE LEFT EDGE OF THE PLOT IF SLACK SPACE // EXISTS if ( scX.getDirection( ) == BACKWARD ) { if ( dYAxisLabelsThickness < scX.getStartShift( ) ) { dX = scX.getStart( ) - ( dX1 - dX ); } } else { if ( dYAxisLabelsThickness < scX.getEndShift( ) ) { dX = scX.getEnd( ) - ( dX1 - dX ); } } dX += insCA.getRight( ); dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } else { double dDeltaX1 = 0, dDeltaX2 = 0; if ( iYTitleLocation == RIGHT ) { dX2 += dYAxisTitleThickness; } else if ( iYTitleLocation == LEFT ) { dX1 -= dYAxisTitleThickness; } if ( iYLabelLocation == LEFT ) { dX1 -= ( bTicksLeft ? TICK_SIZE : 0 ) + dYAxisLabelsThickness; dX2 += ( bTicksRight ? TICK_SIZE : 0 ); dDeltaX1 = dX - dX1; dDeltaX2 = dX2 - dX; // CHECK IF LEFT EDGE OF Y-AXIS BAND GOES BEHIND THE PLOT LEFT // EDGE if ( dX1 < dBlockX ) { final Object[] oaMinMax = scX.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE LEFT EDGE // OF THE Y-AXIS LABELS WITH THE LEFT EDGE OF THE PLOT // AND/OR // ENSURE THAT THE START POINT OF THE X-AXIS SCALE IS // SUITABLY POSITIONED do { // CANCEL OUT THE ENDPOINT LABEL SHIFT COMPUTATIONS FROM // THE X-AXIS scX.setEndPoints( scX.getStart( ) - scX.getStartShift( ), scX.getEnd( ) + scX.getEndShift( ) ); // RESTORE scX.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. X-AXIS // STARTPOINT double[] da = scX.getEndPoints( ); double dT_RI = dBlockX - dX1; // THRESHOLD - // REQUESTEDINTERSECTION if ( scX.getDirection( ) == BACKWARD ) { double dAMin_AMax = da[0] - da[1]; double dAMax_RI = Math.abs( da[0] - dX ); double dDelta = ( dT_RI / dAMax_RI ) * dAMin_AMax; dEnd = da[1] + dDelta; dStart = da[0]; if ( dEnd < dBlockX ) { dEnd = dBlockX; bForceBreak = true; } } else { double dAMin_AMax = da[1] - da[0]; double dAMax_RI = Math.abs( da[1] - dX ); double dDelta = ( dT_RI / dAMax_RI ) * dAMin_AMax; dStart = da[0] + dDelta; dEnd = da[1]; if ( dStart < dBlockX ) { dStart = dBlockX; bForceBreak = true; } } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { bForceBreak = true; break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } dX = getLocation( scX, iv ); dX1 = dX - dDeltaX1; // RE-CALCULATE X-AXIS BAND LEFT // EDGE } while ( Math.abs( dX1 - dBlockX ) > 1 && !bForceBreak ); } else { // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR dStart = scX.getStart( ); dEnd = scX.getEnd( ); scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } dX = getLocation( scX, iv ); } dX1 = dX - dDeltaX1; dX2 = dX + dDeltaX2; } else if ( iYLabelLocation == RIGHT ) { dX2 += ( bTicksRight ? TICK_SIZE : 0 ) + dYAxisLabelsThickness; dX1 -= ( bTicksLeft ? TICK_SIZE : 0 ); dDeltaX1 = dX - dX1; dDeltaX2 = dX2 - dX; // CHECK IF RIGHT EDGE OF Y-AXIS BAND GOES BEHIND THE PLOT RIGHT // EDGE if ( dX2 > dBlockX + dBlockWidth ) { final Object[] oaMinMax = scX.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE RIGHT EDGE // OF THE Y-AXIS LABELS WITH THE RIGHT EDGE OF THE PLOT // AND/OR // ENSURE THAT THE START POINT OF THE X-AXIS SCALE IS // SUITABLY POSITIONED do { // CANCEL OUT THE ENDPOINT LABEL SHIFT COMPUTATIONS FROM // THE X-AXIS scX.setEndPoints( scX.getStart( ) - scX.getStartShift( ), scX.getEnd( ) + scX.getEndShift( ) ); // RESTORE scX.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. X-AXIS // ENDPOINT double[] da = scX.getEndPoints( ); double dT_RI = dX2 - ( dBlockX + dBlockWidth ); // THRESHOLD // - // REQUESTEDINTERSECTION if ( scX.getDirection( ) == BACKWARD ) { double dAMin_AMax = da[0] - da[1]; double dAMin_RI = Math.abs( dX - da[1] ); double dDelta = Math.abs( dT_RI / dAMin_RI ) * dAMin_AMax; dStart = da[0] - dDelta; dEnd = da[1]; if ( dStart > dBlockX + dBlockWidth ) { dStart = dBlockX + dBlockWidth; bForceBreak = true; } } else { double dAMin_AMax = da[1] - da[0]; double dAMin_RI = Math.abs( dX - da[0] ); double dDelta = ( dT_RI / dAMin_RI ) * dAMin_AMax; dEnd = da[1] - dDelta; dStart = da[0]; if ( dEnd > dBlockX + dBlockWidth ) { dEnd = dBlockX + dBlockWidth; bForceBreak = true; } } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { bForceBreak = true; break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { bForceBreak = true; break; } } } dX = getLocation( scX, iv ); dX2 = dX + dDeltaX2; // RE-CALCULATE X-AXIS BAND // RIGHT // EDGE } while ( Math.abs( dX2 - ( dBlockX + dBlockWidth ) ) > 1 && !bForceBreak ); } else { // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR dStart = scX.getStart( ); dEnd = scX.getEnd( ); scX.setEndPoints( dStart, dEnd ); scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( !scX.isStepFixed( ) ) { final Object[] oaMinMax = scX.getMinMax( ); while ( !scX.checkFit( ids, laXAxisLabels, iXLabelLocation ) ) { if ( !scX.zoomOut( ) ) { break; } scX.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); int tickCount = scX.computeTicks( ids, laXAxisLabels, iXLabelLocation, HORIZONTAL, dStart, dEnd, true, aax ); if ( scX.getUnit( ) != null && asInteger( scX.getUnit( ) ) == Calendar.YEAR && tickCount <= 3 ) { break; } } } dX = getLocation( scX, iv ); } dX2 = dX + dDeltaX2; dX1 = dX - dDeltaX1; } axPV.setTitleCoordinate( ( iYTitleLocation == LEFT ) ? dX1 - 1 : dX2 + 1 - dYAxisTitleThickness ); } return dX; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/48591faaeb26460761e9a40eb903978ef98c0f90/PlotWithAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWithAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 1645, 5765, 14457, 12, 1645, 302, 1768, 60, 16, 1082, 202, 9056, 302, 1768, 2384, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 6942, 6558, 1740, 8939, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 2171, 12, 11272, 202, 202, 6385, 6942, 6558, 1740, 30201, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 2171, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 60, 273, 1740, 8939, 18, 588, 5587, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 61, 273, 1740, 30201, 18, 588, 5587, 12, 11272, 202, 202, 6385, 509, 277, 60, 2224, 2735, 273, 1740, 8939, 18, 588, 2224, 2555, 12, 11272, 202, 202, 6385, 509, 277, 61, 2224, 2735, 273, 1740, 30201, 18, 588, 2224, 2555, 12, 11272, 202, 202, 6385, 509, 277, 61, 4247, 2735, 273, 1740, 30201, 18, 588, 4247, 2555, 12, 11272, 202, 202, 6385, 5287, 7125, 60, 6558, 5888, 273, 1740, 8939, 18, 588, 2224, 12, 11272, 202, 202, 6385, 5287, 7125, 61, 6558, 5888, 273, 1740, 30201, 18, 588, 2224, 12, 11272, 202, 202, 6385, 5287, 7125, 61, 6558, 4247, 273, 1740, 30201, 18, 588, 4247, 12, 11272, 202, 202, 6385, 509, 277, 61, 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, 1117, 727, 1645, 5765, 14457, 12, 1645, 302, 1768, 60, 16, 1082, 202, 9056, 302, 1768, 2384, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 6942, 6558, 1740, 8939, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 2171, 12, 11272, 202, 202, 6385, 6942, 6558, 1740, 30201, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 2171, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 60, 2 ]
void commandChanged();
void commandChanged(int queueSize, int redoSize);
void commandChanged();
2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/65d8ba1e1c7192a02b1c996304587a81a85155f1/OsmDataLayer.java/buggy/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6459, 1296, 5033, 5621, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6459, 1296, 5033, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
index++;
private boolean attempt() { UserCredentials uc = config.getCredentials(); try { if (uc == null) throw new DSOutOfServiceException( "No user's credentials have been entered yet."); //NOTE: This will never happen if the Splash Screen always blocks //waiting for the user's credentials and the login dialog never //passes null credentials along. DataServicesFactory factory = DataServicesFactory.getInstance( container); if (factory.isConnected()) return true; factory.connect(uc); //Log success. LogMessage msg = new LogMessage(); msg.println("Logged onto OMERO at: "+uc.getHostName()); msg.println(uc); Logger logger = container.getRegistry().getLogger(); logger.info(this, msg); //Write property. Properties defaultProp = new Properties(); try { FileInputStream in = new FileInputStream( LookupNames.OMERO_PROPERTIES); defaultProp.load(in); in.close(); } catch (Exception e) { // TODO: handle exception } String s = defaultProp.getProperty(LookupNames.OMERO_SERVER); String listOfServers = null; if (s == null) { listOfServers = uc.getHostName(); } else { List l = Arrays.asList( s.split(LookupNames.SERVER_NAME_SEPARATOR, 0)); if (l == null || l.size() == 0) { listOfServers = uc.getHostName(); } else { Iterator i = l.iterator(); boolean b = false; int index = 0; int n = l.size()-1; String name = uc.getHostName(); String host; while (i.hasNext()) { host = ((String) i.next()).trim(); if (name.equals(host)) b = true; if (index == 0) listOfServers = host; else listOfServers += host; if (index != n) listOfServers += ","; index++; } if (!b) listOfServers += ","+uc.getHostName(); } } Properties prop = new Properties(); if (listOfServers != null) prop.setProperty(LookupNames.OMERO_SERVER, listOfServers); try { FileOutputStream out = new FileOutputStream( LookupNames.OMERO_PROPERTIES); prop.store(out, ""); out.close(); } catch (Exception e) { // TODO: handle exception } return true; } catch (DSOutOfServiceException dsose) { //Log failure. LogMessage msg = new LogMessage(); msg.println("Failed to log onto OMERO."); msg.println("Reason: "+dsose); msg.println("OMERO Address: "+uc.getHostName()); if (uc != null) msg.println(uc); Logger logger = container.getRegistry().getLogger(); logger.error(this, msg); } return false; }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/7bf166a5aea933565232544ef7535e345cd27f93/LoginServiceImpl.java/clean/SRC/org/openmicroscopy/shoola/env/data/login/LoginServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 4395, 1435, 565, 288, 3639, 2177, 6163, 6232, 273, 642, 18, 588, 6163, 5621, 3639, 775, 288, 5411, 309, 261, 5286, 422, 446, 13, 1171, 604, 394, 8678, 11224, 15133, 12, 27573, 315, 2279, 729, 1807, 4448, 1240, 2118, 16219, 4671, 1199, 1769, 5411, 368, 17857, 30, 1220, 903, 5903, 5865, 309, 326, 29356, 10146, 3712, 4398, 5411, 368, 20241, 364, 326, 729, 1807, 4448, 471, 326, 3925, 6176, 5903, 5411, 368, 5466, 281, 446, 4448, 7563, 18, 13491, 1910, 5676, 1733, 3272, 273, 1910, 5676, 1733, 18, 588, 1442, 12, 28524, 565, 1478, 1769, 5411, 309, 261, 6848, 18, 291, 8932, 10756, 327, 638, 31, 5411, 3272, 18, 3612, 12, 5286, 1769, 5411, 368, 1343, 2216, 18, 5411, 1827, 1079, 1234, 273, 394, 1827, 1079, 5621, 5411, 1234, 18, 8222, 2932, 19862, 10170, 28839, 13309, 622, 30, 13773, 5286, 18, 588, 20946, 10663, 5411, 1234, 18, 8222, 12, 5286, 1769, 5411, 4242, 1194, 273, 1478, 18, 588, 4243, 7675, 588, 3328, 5621, 5411, 1194, 18, 1376, 12, 2211, 16, 1234, 1769, 13491, 368, 3067, 1272, 18, 5411, 6183, 805, 4658, 273, 394, 6183, 5621, 5411, 775, 288, 7734, 11907, 316, 273, 394, 11907, 12, 4766, 5411, 8834, 1557, 18, 1872, 13309, 67, 17421, 1769, 7734, 805, 4658, 18, 945, 12, 267, 1769, 7734, 316, 18, 4412, 5621, 2398, 289, 1044, 261, 503, 425, 13, 288, 7734, 368, 2660, 30, 1640, 1520, 5411, 289, 5411, 514, 272, 273, 805, 4658, 18, 588, 1396, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 4395, 1435, 565, 288, 3639, 2177, 6163, 6232, 273, 642, 18, 588, 6163, 5621, 3639, 775, 288, 5411, 309, 261, 5286, 422, 446, 13, 1171, 604, 394, 8678, 11224, 15133, 12, 27573, 315, 2279, 729, 1807, 4448, 1240, 2118, 16219, 4671, 1199, 1769, 5411, 368, 17857, 30, 1220, 903, 5903, 5865, 309, 326, 29356, 10146, 3712, 4398, 5411, 368, 20241, 364, 326, 729, 1807, 4448, 471, 326, 3925, 6176, 5903, 5411, 368, 5466, 281, 446, 4448, 7563, 18, 13491, 1910, 5676, 1733, 3272, 273, 1910, 5676, 1733, 18, 588, 1442, 12, 28524, 565, 1478, 1769, 5411, 309, 261, 6848, 18, 291, 8932, 10756, 327, 638, 31, 5411, 3272, 18, 3612, 12, 5286, 1769, 5411, 368, 1343, 2 ]
titlePanel.add(title); Color aColor = title.getBackground();
title.setForeground(new Color(255,255,255)); JButton saveButton = new JButton("Save"); saveButton.setPreferredSize(new Dimension(70,17)); saveButton.setActionCommand("save"); saveButton.addActionListener(this); saveButton.setOpaque(false); saveButton.setForeground(TEXT_COLOR); if(!addSave) saveButton.setVisible(false); Color aColor = getBackground(); JTextArea descrip = new JTextArea();
public void renderTab(TabPanel tp) { if(!tp.isRendered) { tp.isRendered = true; tp.removeAll(); Vector iHoldTables = new Vector(); //add a title label to show which element JPanel titlePanel = new JPanel(); titlePanel.setLayout(new GridLayout(2,1)); JLabel title = new JLabel(); Font thisFont = title.getFont(); Font newFont = new Font(thisFont.getFontName(),Font.BOLD,18); title.setFont(newFont); if (tp.oNode != null) title.setText(" " + getTreePathName(tp.el,tp.oNode) + ":"); else title.setText(" " + getTreePathName(tp.el) + ":"); titlePanel.add(title); Color aColor = title.getBackground(); //if title has a description, add it in italics if (tp.el.hasAttribute("Description")) { if(tp.el.getAttribute("Description").length() != 0) { JTextArea descrip = new JTextArea(); descrip.setEditable(false); descrip.setLineWrap(true); descrip.setWrapStyleWord(true); descrip.setBackground(aColor); newFont = new Font(thisFont.getFontName(), Font.ITALIC,thisFont.getSize()); descrip.setFont(newFont); descrip.setText( " " + tp.el.getAttribute("Description")); titlePanel.add(descrip); } } title.setForeground(new Color(255,255,255)); titlePanel.setBackground(new Color(0,0,50)); //this sets up titlePanel so we can access its height later to //use for "Goto" button scrollpane view setting purposes tp.titlePanel = titlePanel; //First instantiation of TablePanel. This one corresponds to the //actual "top-level" element, e.g. what the main Tab element is TablePanel pan = new TablePanel(tp.el, tp, tp.oNode); iHoldTables.add(pan); //make the nested elements have a further indent to distinguish them //look at the template to get the nested Elements we need to display //with their own TablePanels Vector theseElements = DOMUtil.getChildElements("OMEElement",tp.el); //will be a list of those nested elements that have their own nested //elements Vector branchElements = new Vector(theseElements.size()); //check out each nested Element for(int i = 0;i<theseElements.size();i++) { Element e = null; if (theseElements.get(i) instanceof Element) { e = (Element) theseElements.get(i); } if (DOMUtil.getChildElements("OMEElement",e).size() != 0) { branchElements.add(e); } else { if(tp.oNode != null) { Vector v = new Vector(); String aName = e.getAttribute("XMLName"); if( aName.equals("Image") || aName.equals("Feature") || aName.equals("Dataset") || aName.equals("Project") ) { v = DOMUtil.getChildElements(aName, tp.oNode.getDOMElement()); } else if (tp.oNode.getChild("CustomAttributes") != null) { v = DOMUtil.getChildElements(aName, tp.oNode.getChild("CustomAttributes").getDOMElement()); } if (v.size() == 0) { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } else { for(int j = 0;j<v.size();j++) { Element anEle = (Element) v.get(j); OMEXMLNode n = null; String unknownName = aName; try { ReflectedUniverse r = new ReflectedUniverse(); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } else { r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } } catch (Exception exc) {// System.out.println(exc.toString()); } if (n == null) { n = new AttributeNode(anEle); } TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } else { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } String rowString = ""; for (int i = 0;i<iHoldTables.size();i++) { rowString = rowString + "5dlu, pref, "; } rowString = rowString.substring(0, rowString.length() - 2); FormLayout layout = new FormLayout( "5dlu, 5dlu, pref:grow, 5dlu, 5dlu", rowString); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); int row = 0; for (int i = 0;i<iHoldTables.size();i++) { row = row + 2; if (i == 0) builder.add( (Component)iHoldTables.get(i), cc.xyw(2, row, 2, "left,center")); else builder.add( (Component)iHoldTables.get(i), cc.xyw(3, row, 2, "left,center")); } //Layout stuff distinguishes between the title and the data panels tp.setLayout(new BorderLayout()); tp.add(titlePanel,BorderLayout.NORTH); tp.add(builder.getPanel(),BorderLayout.CENTER); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/6298bc44d12f634ef846a5bb08de557962763ff0/MetadataPane.java/clean/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, 5589, 277, 20586, 6905, 273, 394, 5589, 5621, 1377, 368, 1289, 279, 2077, 1433, 358, 2405, 1492, 930, 1377, 24048, 2077, 5537, 273, 394, 24048, 5621, 1377, 2077, 5537, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 22, 16, 21, 10019, 1377, 21403, 2077, 273, 394, 21403, 5621, 1377, 10063, 333, 5711, 273, 2077, 18, 588, 5711, 5621, 1377, 10063, 394, 5711, 273, 394, 10063, 12, 2211, 5711, 18, 588, 5711, 461, 9334, 5711, 18, 38, 11846, 16, 2643, 1769, 1377, 2077, 18, 542, 5711, 12, 2704, 5711, 1769, 1377, 309, 261, 6834, 18, 83, 907, 480, 446, 13, 2077, 18, 542, 1528, 2932, 315, 397, 15867, 743, 461, 12, 6834, 18, 292, 16, 6834, 18, 83, 907, 13, 397, 6153, 1769, 1377, 469, 2077, 18, 542, 1528, 2932, 315, 397, 15867, 743, 461, 12, 6834, 18, 292, 13, 397, 6153, 1769, 1377, 2077, 5537, 18, 1289, 12, 2649, 1769, 1377, 5563, 279, 2957, 273, 2077, 18, 588, 8199, 5621, 1377, 368, 430, 2077, 711, 279, 2477, 16, 527, 518, 316, 518, 287, 2102, 1377, 309, 261, 6834, 18, 292, 18, 5332, 1499, 2932, 3291, 6, 3719, 288, 3639, 309, 12, 6834, 18, 292, 18, 588, 1499, 2932, 3291, 20387, 2469, 1435, 480, 374, 13, 288, 1850, 804, 1528, 5484, 302, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, 5589, 277, 20586, 6905, 273, 394, 5589, 5621, 1377, 368, 1289, 279, 2077, 1433, 358, 2405, 1492, 930, 1377, 24048, 2077, 5537, 273, 394, 24048, 5621, 1377, 2077, 5537, 18, 542, 3744, 12, 2704, 7145, 3744, 12, 22, 16, 21, 10019, 1377, 21403, 2077, 273, 394, 21403, 5621, 1377, 10063, 333, 5711, 273, 2077, 18, 588, 5711, 5621, 1377, 10063, 394, 5711, 273, 394, 10063, 12, 2211, 5711, 18, 588, 5711, 461, 9334, 5711, 18, 38, 11846, 16, 2643, 1769, 1377, 2077, 18, 2 ]
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_RANGE__FORMAT_SPECIFIER, oldFormatSpecifier, newFormatSpecifier); if (msgs == null) msgs = notification; else msgs.add(notification);
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_RANGE__FORMAT_SPECIFIER, oldFormatSpecifier, newFormatSpecifier); if (msgs == null) msgs = notification; else msgs.add(notification);
public NotificationChain basicSetFormatSpecifier(FormatSpecifier newFormatSpecifier, NotificationChain msgs) { FormatSpecifier oldFormatSpecifier = formatSpecifier; formatSpecifier = newFormatSpecifier; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_RANGE__FORMAT_SPECIFIER, oldFormatSpecifier, newFormatSpecifier); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerRangeImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerRangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27050, 5337, 694, 1630, 21416, 12, 1630, 21416, 394, 1630, 21416, 16, 27050, 8733, 13, 565, 288, 3639, 4077, 21416, 1592, 1630, 21416, 273, 740, 21416, 31, 3639, 740, 21416, 273, 394, 1630, 21416, 31, 3639, 309, 261, 73, 21107, 10756, 3639, 288, 5411, 19953, 3851, 273, 394, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 5435, 2261, 18, 25989, 67, 15928, 972, 7254, 67, 13847, 10591, 16, 1592, 1630, 21416, 16, 394, 1630, 21416, 1769, 5411, 309, 261, 27439, 422, 446, 13, 8733, 273, 3851, 31, 469, 8733, 18, 1289, 12, 9927, 1769, 3639, 289, 3639, 327, 8733, 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, 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 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27050, 5337, 694, 1630, 21416, 12, 1630, 21416, 394, 1630, 21416, 16, 27050, 8733, 13, 565, 288, 3639, 4077, 21416, 1592, 1630, 21416, 273, 740, 21416, 31, 3639, 740, 21416, 273, 394, 1630, 21416, 31, 3639, 309, 261, 73, 21107, 10756, 3639, 288, 5411, 19953, 3851, 273, 394, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 5435, 2261, 18, 25989, 67, 15928, 972, 7254, 67, 13847, 10591, 16, 1592, 1630, 21416, 16, 394, 1630, 21416, 1769, 5411, 309, 261, 27439, 422, 446, 13, 8733, 273, 3851, 31, 469, 8733, 18, 1289, 12, 9927, 1769, 3639, 289, 3639, 327, 8733, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (nextSibling == catchTarget || nextSibling == finallyTarget)
if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget))
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { Number num = (Number)node.getDatum(); if (num.doubleValue() == 0.0) iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); else if (num.doubleValue() == 1.0) iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (nextSibling == catchTarget || nextSibling == finallyTarget) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/9cb3a99d5ec2bd7323b96ccc980627fa3395c9dc/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 1671, 1725, 3631, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 473, 374, 5297, 3631, 277, 1085, 3401, 1769, 4766, 3639, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3155, 1228, 18, 10885, 294, 7734, 277, 1085, 3401, 273, 1089, 31063, 12, 2159, 16, 277, 1085, 3401, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 309, 261, 3624, 18, 588, 559, 1435, 480, 3155, 1228, 18, 7788, 13, 7682, 277, 1085, 3401, 273, 2103, 45, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 2 ]
public DynamicUtilTreeNode(Object value, Object children)
public DynamicUtilTreeNode(Object value, Object children)
public DynamicUtilTreeNode(Object value, Object children) { super(value); childValue = children; loadedChildren = false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12208, 1304, 12513, 12, 921, 460, 16, 1171, 9079, 1033, 2325, 13, 377, 288, 1377, 2240, 12, 1132, 1769, 1377, 1151, 620, 273, 2325, 31, 1377, 4203, 4212, 273, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 12208, 1304, 12513, 12, 921, 460, 16, 1171, 9079, 1033, 2325, 13, 377, 288, 1377, 2240, 12, 1132, 1769, 1377, 1151, 620, 273, 2325, 31, 1377, 4203, 4212, 273, 629, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, sentEventCount, XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE, lastSourceControlId, null, lastValueChangeEventValue);
executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE, lastSourceControlId, null, lastValueChangeEventValue);
private void doIt(final PipelineContext pipelineContext, ContentHandler contentHandler) { final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); final Element filesElement; final Element actionElement; final XFormsContainingDocument containingDocument; final XFormsState xformsState; final String staticStateUUID; // Use request input provided by client final Document requestDocument = readInputAsDOM4J(pipelineContext, INPUT_REQUEST); // Get action actionElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_ACTION_QNAME); // Get files if any (those come from xforms-server-submit.xpl upon submission) filesElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_FILES_QNAME); // Retrieve state { // Get static state final String staticStateString; { final Element staticStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_STATIC_STATE_QNAME); staticStateString = staticStateElement.getTextTrim(); } // Get dynamic state final String dynamicStateString; { final Element dynamicStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_DYNAMIC_STATE_QNAME); dynamicStateString = dynamicStateElement.getTextTrim(); } if (dynamicStateString.startsWith(APPLICATION_STATE_PREFIX)) { // State is currently stored in the application scope final String dynamicStateUUID = dynamicStateString.substring(APPLICATION_STATE_PREFIX.length()); // Extract page generation id staticStateUUID = staticStateString.substring(APPLICATION_STATE_PREFIX.length()); // We don't create the session cache at this point as it may not be necessary final XFormsServerApplicationStateCache applicationStateCache = XFormsServerApplicationStateCache.instance(externalContext, false); final XFormsState applicationFormsState = applicationStateCache.find(staticStateUUID, dynamicStateUUID); // This is not going to be good when it happens, and we must create a caching heuristic that minimizes this if (applicationFormsState == null) throw new OXFException("Unable to retrieve XForms engine state from application cache."); xformsState = applicationFormsState; } else if (dynamicStateString.startsWith(SESSION_STATE_PREFIX)) { // State doesn't come with the request, we should look it up in the repository final String dynamicStateUUID = dynamicStateString.substring(SESSION_STATE_PREFIX.length()); // Extract page generation id staticStateUUID = staticStateString.startsWith(SESSION_STATE_PREFIX) ? staticStateString.substring(SESSION_STATE_PREFIX.length()) : staticStateString.substring(APPLICATION_STATE_PREFIX.length()); // We don't create the session cache at this point as it may not be necessary final XFormsServerSessionStateCache sessionStateCache = XFormsServerSessionStateCache.instance(externalContext.getSession(false), false); final XFormsState sessionFormsState = (sessionStateCache == null) ? null : sessionStateCache.find(staticStateUUID, dynamicStateUUID); // This is not going to be good when it happens, and we must create a caching heuristic that minimizes this if (sessionFormsState == null) throw new OXFException("Unable to retrieve XForms engine state from session cache."); xformsState = sessionFormsState; } else { // State comes with request staticStateUUID = null; xformsState = new XFormsState(staticStateString, dynamicStateString); } } if (XFormsUtils.isCacheDocument()) { // Try to obtain containing document from cache if (filesElement == null) { // No fileElements, this may have been cached containingDocument = XFormsServerDocumentCache.instance().find(pipelineContext, xformsState); } else { // If there are filesElement, then we know this was not cached logger.debug("XForms - containing document cache (getContainingDocument): fileElements present."); containingDocument = createXFormsContainingDocument(pipelineContext, xformsState, filesElement); } } else { // Otherwise we recreate the containing document from scratch containingDocument = createXFormsContainingDocument(pipelineContext, xformsState, filesElement); } try { // Run event if any boolean allEvents = false; final Map valueChangeControlIds = new HashMap(); if (actionElement != null) { final List eventElements = actionElement.elements(XFormsConstants.XXFORMS_EVENT_QNAME); if (eventElements != null && eventElements.size() > 0) { // NOTE: We store here the last xxforms-value-change-with-focus-change event so // we can coalesce values in case several such events are sent for the same // control. The client should not send us such series of events, but currently // it may happen. String lastSourceControlId = null; String lastValueChangeEventValue = null; int[] sentEventCount = { 0 } ; containingDocument.prepareForExternalEventsSequence(pipelineContext); for (Iterator i = eventElements.iterator(); i.hasNext();) { final Element eventElement = (Element) i.next(); final String sourceControlId = eventElement.attributeValue("source-control-id"); final String otherControlId = eventElement.attributeValue("other-control-id"); final String eventName = eventElement.attributeValue("name"); final String value = eventElement.getText(); if (XFormsEvents.XXFORMS_ALL_EVENTS_REQUIRED.equals(eventName)) { // Special event telling us to resend the client all the events since initialization allEvents = true; } else if (sourceControlId != null && eventName != null) { // An event is passed if (eventName.equals(XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE) && otherControlId == null) { // xxforms-value-change-with-focus-change event if (lastSourceControlId == null) { // Rember event lastSourceControlId = sourceControlId; lastValueChangeEventValue = value; } else if (lastSourceControlId.equals(sourceControlId)) { // Update event lastValueChangeEventValue = value; } else { // Send old event executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, sentEventCount, XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE, lastSourceControlId, null, lastValueChangeEventValue); // Remember new event lastSourceControlId = sourceControlId; lastValueChangeEventValue = value; } } else { if (lastSourceControlId != null) { // Send old event executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, sentEventCount, XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE, lastSourceControlId, null, lastValueChangeEventValue); lastSourceControlId = null; lastValueChangeEventValue = null; } // Send new event executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, sentEventCount, eventName, sourceControlId, otherControlId, value); } if (eventName.equals(XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE)) { // Remember id of control of which value changed valueChangeControlIds.put(sourceControlId, ""); } } else if (!(sourceControlId == null && eventName == null)) { throw new OXFException("<event> element must either have source-control-id and name attributes, or no attribute."); } } // Flush stored event if needed if (lastSourceControlId != null) { // Send old event executeExternalEventPrepareIfNecessary(pipelineContext, containingDocument, sentEventCount, XFormsEvents.XXFORMS_VALUE_CHANGE_WITH_FOCUS_CHANGE, lastSourceControlId, null, lastValueChangeEventValue); } } } // Create resulting document if there is a ContentHandler if (contentHandler != null) { outputResponse(containingDocument, allEvents, valueChangeControlIds, pipelineContext, contentHandler, staticStateUUID, externalContext, xformsState); } } catch (Throwable e) { // If an exception is caught, we need to discard the object as its state may be inconsistent final ObjectPool sourceObjectPool = containingDocument.getSourceObjectPool(); if (sourceObjectPool != null) { logger.debug("XForms - containing document cache: throwable caught, discarding document from pool."); try { sourceObjectPool.invalidateObject(containingDocument); containingDocument.setSourceObjectPool(null); } catch (Exception e1) { throw new OXFException(e1); } } throw new OXFException(e); } }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/ddf570ce111ad74e1bea3ec73c30bed0bec1dadd/XFormsServer.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7193, 12, 6385, 13671, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 3639, 727, 11352, 1042, 3903, 1042, 273, 261, 6841, 1042, 13, 5873, 1042, 18, 588, 1499, 12, 8798, 1042, 18, 2294, 11702, 67, 13181, 1769, 3639, 727, 3010, 1390, 1046, 31, 3639, 727, 3010, 1301, 1046, 31, 3639, 727, 1139, 18529, 24344, 2519, 4191, 2519, 31, 3639, 727, 1139, 18529, 1119, 619, 9741, 1119, 31, 3639, 727, 514, 760, 1119, 5562, 31, 3639, 368, 2672, 590, 810, 2112, 635, 1004, 3639, 727, 4319, 590, 2519, 273, 855, 1210, 1463, 8168, 24, 46, 12, 14511, 1042, 16, 12943, 67, 5519, 1769, 3639, 368, 968, 1301, 3639, 1301, 1046, 273, 590, 2519, 18, 588, 2375, 1046, 7675, 2956, 12, 60, 18529, 2918, 18, 5619, 4983, 55, 67, 12249, 67, 16032, 1769, 3639, 368, 968, 1390, 309, 1281, 261, 451, 2584, 12404, 628, 619, 9741, 17, 3567, 17, 9297, 18, 92, 412, 12318, 8515, 13, 3639, 1390, 1046, 273, 590, 2519, 18, 588, 2375, 1046, 7675, 2956, 12, 60, 18529, 2918, 18, 5619, 4983, 55, 67, 12669, 67, 16032, 1769, 3639, 368, 10708, 919, 3639, 288, 5411, 368, 968, 760, 919, 5411, 727, 514, 760, 1119, 780, 31, 5411, 288, 7734, 727, 3010, 760, 1119, 1046, 273, 590, 2519, 18, 588, 2375, 1046, 7675, 2956, 12, 60, 18529, 2918, 18, 5619, 4983, 55, 67, 22741, 67, 7998, 67, 16032, 1769, 7734, 760, 1119, 780, 273, 760, 1119, 1046, 18, 588, 1528, 14795, 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, 741, 7193, 12, 6385, 13671, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 3639, 727, 11352, 1042, 3903, 1042, 273, 261, 6841, 1042, 13, 5873, 1042, 18, 588, 1499, 12, 8798, 1042, 18, 2294, 11702, 67, 13181, 1769, 3639, 727, 3010, 1390, 1046, 31, 3639, 727, 3010, 1301, 1046, 31, 3639, 727, 1139, 18529, 24344, 2519, 4191, 2519, 31, 3639, 727, 1139, 18529, 1119, 619, 9741, 1119, 31, 3639, 727, 514, 760, 1119, 5562, 31, 3639, 368, 2672, 590, 810, 2112, 635, 1004, 3639, 727, 4319, 590, 2519, 273, 855, 1210, 1463, 8168, 24, 46, 12, 14511, 1042, 16, 12943, 67, 5519, 1769, 3639, 368, 968, 1301, 3639, 1301, 1046, 273, 590, 2519, 18, 2 ]
this.groupList = groupList;
this( new LinkedList<VpnGroup>());
public GroupList( List<VpnGroup> groupList ) { this.groupList = groupList; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0afec2d604f9d347ce31ebdf52c56305e1b65d7e/GroupList.java/buggy/tran/openvpn/main/com/metavize/tran/openvpn/GroupList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3756, 682, 12, 987, 32, 18251, 1114, 34, 1041, 682, 262, 565, 288, 3639, 333, 12, 394, 10688, 32, 18251, 1114, 34, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3756, 682, 12, 987, 32, 18251, 1114, 34, 1041, 682, 262, 565, 288, 3639, 333, 12, 394, 10688, 32, 18251, 1114, 34, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super( );
super();
protected ScatterSeriesImpl( ) { super( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/ScatterSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 348, 2574, 387, 6485, 2828, 12, 262, 202, 95, 202, 202, 9565, 12, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 348, 2574, 387, 6485, 2828, 12, 262, 202, 95, 202, 202, 9565, 12, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String fileName = "tests/org/cubictest/common/converters/MediumTreeExtensionPoint.aat";
String fileName = "src/test/resources/org/cubictest/common/converters/MediumTreeExtensionPoint.aat";
public void testTraversesMediumTreeOnlyToExtensionPoint() { String fileName = "tests/org/cubictest/common/converters/MediumTreeExtensionPoint.aat"; Test test = TestPersistance.loadFromFile(fileName); testWalker.convertTest(test, assertionList, setUpTargetExtensionPoint("page299655571162117362723")); assertionList.assertContainsInOrder("www.test.org"); assertionList.assertContainsInOrder("First"); assertionList.assertContainsInOrder("First Page --> Third Page"); assertionList.assertContainsInOrder("Third"); assertionList.assertContainsInOrder("Third Page --> Fifth Page"); assertionList.assertContainsInOrder("Fifth"); //Assert wrong paths in pre-test: assertionList.assertNotContains("First Page --> Second Page"); assertionList.assertNotContains("Second"); assertionList.assertNotContains("Third Page --> Fouth Page"); assertionList.assertNotContains("Fourth"); }
51065 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51065/01704306537a14ab4263baf009581e2174731e2a/TreeTestWalkerTest.java/clean/CubicTestPlugin/src/test/java/org/cubictest/common/coverters/TreeTestWalkerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15844, 281, 25599, 2471, 3386, 774, 3625, 2148, 1435, 288, 202, 202, 780, 3968, 273, 315, 16341, 19, 3341, 19, 71, 373, 933, 395, 19, 6054, 19, 15747, 87, 19, 25599, 2471, 3625, 2148, 18, 69, 270, 14432, 202, 202, 4709, 1842, 273, 7766, 12771, 1359, 18, 945, 13087, 12, 17812, 1769, 9506, 202, 3813, 16246, 18, 6283, 4709, 12, 3813, 16, 11240, 682, 16, 24292, 2326, 3625, 2148, 2932, 2433, 22, 2733, 26, 2539, 10321, 20562, 22, 23454, 5718, 5324, 4366, 7923, 1769, 9506, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 5591, 18, 3813, 18, 3341, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 3759, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 3759, 3460, 15431, 935, 6909, 3460, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 24694, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 24694, 3460, 15431, 478, 430, 451, 3460, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 42, 430, 451, 8863, 202, 202, 759, 8213, 7194, 2953, 316, 675, 17, 3813, 30, 202, 202, 29104, 682, 18, 11231, 1248, 10846, 2932, 3759, 3460, 15431, 7631, 3460, 8863, 202, 202, 29104, 682, 18, 11231, 1248, 10846, 2932, 8211, 8863, 202, 202, 29104, 682, 18, 11231, 1248, 10846, 2932, 24694, 3460, 15431, 478, 15347, 3460, 8863, 202, 202, 29104, 682, 18, 11231, 1248, 10846, 2932, 42, 477, 451, 8863, 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, 15844, 281, 25599, 2471, 3386, 774, 3625, 2148, 1435, 288, 202, 202, 780, 3968, 273, 315, 16341, 19, 3341, 19, 71, 373, 933, 395, 19, 6054, 19, 15747, 87, 19, 25599, 2471, 3625, 2148, 18, 69, 270, 14432, 202, 202, 4709, 1842, 273, 7766, 12771, 1359, 18, 945, 13087, 12, 17812, 1769, 9506, 202, 3813, 16246, 18, 6283, 4709, 12, 3813, 16, 11240, 682, 16, 24292, 2326, 3625, 2148, 2932, 2433, 22, 2733, 26, 2539, 10321, 20562, 22, 23454, 5718, 5324, 4366, 7923, 1769, 9506, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 5591, 18, 3813, 18, 3341, 8863, 202, 202, 29104, 682, 18, 11231, 10846, 382, 2448, 2932, 3759, 8863, 202, 202, 2 ]
this.sink.propagateAssertObject( tuple.get( this.column ),
this.sink.propagateAssertObject( tuple.get( this.column.getFactIndex() ),
public void assertTuple(final ReteTuple tuple, final PropagationContext context, final InternalWorkingMemory workingMemory) { this.sink.propagateAssertObject( tuple.get( this.column ), context, workingMemory ); }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf6ccf9b384846dc44348db5c1a3b774252510aa/RightInputAdapterNode.java/clean/drools-core/src/main/java/org/drools/reteoo/RightInputAdapterNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1815, 9038, 12, 6385, 534, 12865, 9038, 3193, 16, 18701, 727, 1186, 9095, 367, 1042, 819, 16, 18701, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 333, 18, 17074, 18, 5986, 346, 340, 8213, 921, 12, 3193, 18, 588, 12, 333, 18, 2827, 18, 588, 9766, 1016, 1435, 262, 16, 29159, 819, 16, 29159, 5960, 6031, 11272, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1815, 9038, 12, 6385, 534, 12865, 9038, 3193, 16, 18701, 727, 1186, 9095, 367, 1042, 819, 16, 18701, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 333, 18, 17074, 18, 5986, 346, 340, 8213, 921, 12, 3193, 18, 588, 12, 333, 18, 2827, 18, 588, 9766, 1016, 1435, 262, 16, 29159, 819, 16, 29159, 5960, 6031, 11272, 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 ]
private DocumentVersion handleDocumentPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes) throws IOException {
private DocumentVersion handleDocumentPublished(final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes, final JabberId publishedBy, final Calendar publishedOn) throws IOException {
private DocumentVersion handleDocumentPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes) throws IOException { final InternalDocumentModel documentModel = getInternalDocumentModel(); final InputStream inputStream = new BufferedInputStream(new ByteArrayInputStream(bytes), IO.BUFFER_SIZE); try { final DocumentVersion version = documentModel.handleDocumentPublished(publishedBy, publishedOn, uniqueId, versionId, name, checksum, inputStream); return version; } finally { inputStream.close(); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/41eddff52230d01def2ddcb3326068e890b6efd6/ContainerModelImpl.java/clean/client-model/src/main/java/com/thinkparity/model/parity/model/container/ContainerModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4319, 1444, 1640, 2519, 16451, 12, 6385, 804, 378, 744, 548, 9487, 858, 16, 5411, 727, 5542, 9487, 1398, 16, 727, 5866, 22345, 16, 5411, 727, 3407, 15287, 16, 727, 514, 508, 16, 727, 514, 6697, 16, 5411, 727, 1160, 8526, 1731, 13, 1216, 1860, 288, 3639, 727, 3186, 2519, 1488, 1668, 1488, 273, 16918, 2519, 1488, 5621, 3639, 727, 5037, 10010, 273, 5411, 394, 24742, 12, 2704, 16180, 12, 3890, 3631, 1665, 18, 11302, 67, 4574, 1769, 3639, 775, 288, 5411, 727, 4319, 1444, 1177, 273, 10792, 1668, 1488, 18, 4110, 2519, 16451, 12, 12614, 858, 16, 18701, 9487, 1398, 16, 22345, 16, 15287, 16, 508, 16, 6697, 16, 18701, 10010, 1769, 5411, 327, 1177, 31, 3639, 289, 3639, 3095, 288, 10010, 18, 4412, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4319, 1444, 1640, 2519, 16451, 12, 6385, 804, 378, 744, 548, 9487, 858, 16, 5411, 727, 5542, 9487, 1398, 16, 727, 5866, 22345, 16, 5411, 727, 3407, 15287, 16, 727, 514, 508, 16, 727, 514, 6697, 16, 5411, 727, 1160, 8526, 1731, 13, 1216, 1860, 288, 3639, 727, 3186, 2519, 1488, 1668, 1488, 273, 16918, 2519, 1488, 5621, 3639, 727, 5037, 10010, 273, 5411, 394, 24742, 12, 2704, 16180, 12, 3890, 3631, 1665, 18, 11302, 67, 4574, 1769, 3639, 775, 288, 5411, 727, 4319, 1444, 1177, 273, 10792, 1668, 1488, 18, 4110, 2519, 16451, 12, 12614, 858, 16, 18701, 9487, 1398, 16, 22345, 16, 15287, 16, 508, 16, 6697, 16, 18701, 10010, 1769, 5411, 327, 1177, 31, 2 ]
private void parseEnumeration (boolean isNames)
private void parseEnumeration(boolean isNames)
private void parseEnumeration (boolean isNames) throws Exception { dataBufferAppend ('('); // Read the first token. skipWhitespace (); dataBufferAppend (readNmtoken (isNames)); // Read the remaining tokens. skipWhitespace (); while (!tryRead (')')) { require ('|'); dataBufferAppend ('|'); skipWhitespace (); dataBufferAppend (readNmtoken (isNames)); skipWhitespace (); } dataBufferAppend (')'); }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 21847, 12, 6494, 353, 1557, 13, 565, 1216, 1185, 565, 288, 202, 892, 1892, 5736, 7707, 2668, 1769, 202, 759, 2720, 326, 1122, 1147, 18, 202, 7457, 9431, 261, 1769, 202, 892, 1892, 5736, 261, 896, 50, 1010, 969, 261, 291, 1557, 10019, 202, 759, 2720, 326, 4463, 2430, 18, 202, 7457, 9431, 261, 1769, 202, 17523, 16051, 698, 1994, 7707, 2506, 3719, 288, 202, 565, 2583, 7707, 96, 8284, 202, 565, 501, 1892, 5736, 7707, 96, 8284, 202, 565, 2488, 9431, 261, 1769, 202, 565, 501, 1892, 5736, 261, 896, 50, 1010, 969, 261, 291, 1557, 10019, 202, 565, 2488, 9431, 261, 1769, 202, 97, 202, 892, 1892, 5736, 7707, 2506, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 21847, 12, 6494, 353, 1557, 13, 565, 1216, 1185, 565, 288, 202, 892, 1892, 5736, 7707, 2668, 1769, 202, 759, 2720, 326, 1122, 1147, 18, 202, 7457, 9431, 261, 1769, 202, 892, 1892, 5736, 261, 896, 50, 1010, 969, 261, 291, 1557, 10019, 202, 759, 2720, 326, 4463, 2430, 18, 202, 7457, 9431, 261, 1769, 202, 17523, 16051, 698, 1994, 7707, 2506, 3719, 288, 202, 565, 2583, 7707, 96, 8284, 202, 565, 501, 1892, 5736, 7707, 96, 8284, 202, 565, 2488, 9431, 261, 1769, 202, 565, 501, 1892, 5736, 261, 896, 50, 1010, 969, 261, 291, 1557, 10019, 202, 565, 2488, 9431, 261, 1769, 202, 97, 202, 892, 1892, 5736, 7707, 2506, 1769, 565, 289, 2 ]
if (lock == null) throw new IllegalMonitorStateException(); else
if (lock == null) { VM_Lock.raiseIllegalMonitorStateException("lock nursery: unlock", o); } else {
public static void unlock (Object o) { VM_Lock lock = nursery.findOrInsert(o, false); if (lock == null) throw new IllegalMonitorStateException(); else lock.unlockHeavy(o); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/2fa590c80682746e4c5a9573d3bc4a3db8acfdc7/VM_LockNursery.java/buggy/rvm/src/vm/scheduler/VM_LockNursery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 7186, 261, 921, 320, 13, 288, 565, 8251, 67, 2531, 2176, 273, 290, 295, 550, 93, 18, 4720, 1162, 4600, 12, 83, 16, 629, 1769, 565, 309, 261, 739, 422, 446, 13, 4202, 604, 394, 2141, 7187, 5060, 5621, 565, 469, 1377, 2176, 18, 26226, 5256, 23935, 12, 83, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 7186, 261, 921, 320, 13, 288, 565, 8251, 67, 2531, 2176, 273, 290, 295, 550, 93, 18, 4720, 1162, 4600, 12, 83, 16, 629, 1769, 565, 309, 261, 739, 422, 446, 13, 4202, 604, 394, 2141, 7187, 5060, 5621, 565, 469, 1377, 2176, 18, 26226, 5256, 23935, 12, 83, 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 ]
FAState state = new FAFactory(getGrammar().getGrammarForRule(rule.name)).buildNFA(getGrammar().getRuleStartState(rule.name), true); if(state == null) return;
try { FAState state = new FAFactory(getGrammar().getGrammarForRule(rule.name)).buildNFA(getGrammar().getRuleStartState(rule.name), true); if(state == null) return;
public void saveOptimizedNFA2DOT(GrammarSyntaxRule rule) { String dotFile = chooseDOTFile(); if(dotFile == null) return; FAState state = new FAFactory(getGrammar().getGrammarForRule(rule.name)).buildNFA(getGrammar().getRuleStartState(rule.name), true); if(state == null) return; DotGenerator jdot = new DotGenerator(state); try { jdot.writeToFile(dotFile); } catch (Exception e) { XJAlert.display(editor.getJavaContainer(), "Error", "Cannot save DOT file: "+dotFile+"\nError: "+e); } Statistics.shared().recordEvent(Statistics.EVENT_EXPORT_OPTIMIZEDNFA_DOT); }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/95ba6ba72773f8ce77a463ceeadb53dafdcad590/Visual.java/clean/src/org/antlr/works/visualization/Visual.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 13930, 1235, 50, 2046, 22, 17591, 12, 18576, 8070, 2175, 1720, 13, 288, 3639, 514, 3928, 812, 273, 9876, 17591, 812, 5621, 3639, 309, 12, 9811, 812, 422, 446, 13, 5411, 327, 31, 3639, 15064, 1119, 919, 273, 394, 15064, 1733, 12, 588, 18576, 7675, 588, 18576, 1290, 2175, 12, 5345, 18, 529, 13, 2934, 3510, 50, 2046, 12, 588, 18576, 7675, 588, 2175, 1685, 1119, 12, 5345, 18, 529, 3631, 638, 1769, 3639, 309, 12, 2019, 422, 446, 13, 5411, 327, 31, 3639, 17502, 3908, 525, 9811, 273, 394, 17502, 3908, 12, 2019, 1769, 3639, 775, 288, 5411, 525, 9811, 18, 2626, 15450, 12, 9811, 812, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 1139, 46, 13298, 18, 5417, 12, 9177, 18, 588, 5852, 2170, 9334, 315, 668, 3113, 315, 4515, 1923, 15772, 585, 30, 13773, 9811, 812, 9078, 64, 82, 668, 30, 13773, 73, 1769, 3639, 289, 3639, 22964, 18, 11574, 7675, 3366, 1133, 12, 8569, 18, 10454, 67, 31275, 67, 15620, 3445, 24131, 50, 2046, 67, 17591, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 13930, 1235, 50, 2046, 22, 17591, 12, 18576, 8070, 2175, 1720, 13, 288, 3639, 514, 3928, 812, 273, 9876, 17591, 812, 5621, 3639, 309, 12, 9811, 812, 422, 446, 13, 5411, 327, 31, 3639, 15064, 1119, 919, 273, 394, 15064, 1733, 12, 588, 18576, 7675, 588, 18576, 1290, 2175, 12, 5345, 18, 529, 13, 2934, 3510, 50, 2046, 12, 588, 18576, 7675, 588, 2175, 1685, 1119, 12, 5345, 18, 529, 3631, 638, 1769, 3639, 309, 12, 2019, 422, 446, 13, 5411, 327, 31, 3639, 17502, 3908, 525, 9811, 273, 394, 17502, 3908, 12, 2019, 1769, 3639, 775, 288, 5411, 525, 9811, 18, 2626, 15450, 12, 9811, 812, 1769, 3639, 289, 1044, 261, 503, 425, 13, 2 ]
if (b1 == -1 || b2 == -1)
if ((b1 == -1) || (b2 == -1))
public static BigInteger readMPI(InputStream in) throws IOException { int b1 = in.read(); int b2 = in.read(); if (b1 == -1 || b2 == -1) throw new EOFException(); byte[] data = new byte[(((b1 << 8) + b2) + 8) >> 3]; readFully(in, data, 0, data.length); //(new DataInputStream(in)).readFully(data, 0, data.length); // REDFLAG: This can't possibly be negative, right? return new NativeBigInteger(1, data); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Util.java/clean/src/freenet/crypt/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 10246, 855, 49, 1102, 12, 4348, 316, 13, 1216, 1860, 288, 202, 202, 474, 324, 21, 273, 316, 18, 896, 5621, 202, 202, 474, 324, 22, 273, 316, 18, 896, 5621, 202, 202, 430, 261, 70, 21, 422, 300, 21, 747, 324, 22, 422, 300, 21, 13, 1082, 202, 12849, 394, 30051, 5621, 202, 202, 7229, 8526, 501, 273, 394, 1160, 63, 12443, 12, 70, 21, 2296, 1725, 13, 397, 324, 22, 13, 397, 1725, 13, 1671, 890, 15533, 202, 202, 896, 16999, 12, 267, 16, 501, 16, 374, 16, 501, 18, 2469, 1769, 202, 202, 759, 12, 2704, 29382, 12, 267, 13, 2934, 896, 16999, 12, 892, 16, 374, 16, 501, 18, 2469, 1769, 202, 202, 759, 14411, 9651, 30, 1220, 848, 1404, 10016, 506, 6092, 16, 2145, 35, 202, 202, 2463, 394, 16717, 24198, 12, 21, 16, 501, 1769, 202, 97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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 10246, 855, 49, 1102, 12, 4348, 316, 13, 1216, 1860, 288, 202, 202, 474, 324, 21, 273, 316, 18, 896, 5621, 202, 202, 474, 324, 22, 273, 316, 18, 896, 5621, 202, 202, 430, 261, 70, 21, 422, 300, 21, 747, 324, 22, 422, 300, 21, 13, 1082, 202, 12849, 394, 30051, 5621, 202, 202, 7229, 8526, 501, 273, 394, 1160, 63, 12443, 12, 70, 21, 2296, 1725, 13, 397, 324, 22, 13, 397, 1725, 13, 1671, 890, 15533, 202, 202, 896, 16999, 12, 267, 16, 501, 16, 374, 16, 501, 18, 2469, 1769, 202, 202, 759, 12, 2704, 29382, 12, 267, 13, 2934, 896, 16999, 12, 892, 16, 374, 16, 501, 18, 2469, 1769, 2 ]
public Channel[] getAvailableChannels() { ArrayList channelList=new ArrayList(); Iterator it=mChannelGroupSet.iterator(); while (it.hasNext()) { ChannelGroup group=(ChannelGroup)it.next(); Channel[] ch=group.getAvailableChannels(); for (int j=0;j<ch.length;j++) { channelList.add(ch[j]); } } /* If we could not find any channel we check, if there is a channel file * from a previous tvbrowser version. If the file exists, we ask the user * to load the new channel files from the internet. */ if (channelList.size()==0) { File file = new File(mDataDir, ChannelList.FILE_NAME); if (file.exists()) { Object[] options = {"Jetzt herunterladen (empfohlen)", "Sp\u00E4ter neu einrichten"}; int n = JOptionPane.showOptionDialog(null, "Es befindet sich keine aktuelle Senderliste auf dem System.\n" + "Senderlisten werden ben\u00F6tigt, um TV-Browser mitzuteilen,\nwelche Sender zur Verf\u00FCgung stehen.\n\n" + "Soll nun eine aktuelle Senderliste heruntergeladen werden? (erfordert eine Internetverbinung)", "Keine Senderlisten verf\u00FCgbar", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); if (n==0) { final ProgressWindow win=new ProgressWindow(null); mChannelsTempArr=null; win.run(new Progress(){ public void run() { try { mChannelsTempArr = checkForAvailableChannels(win); }catch (TvBrowserException exc) { ErrorHandler.handle(exc); } } }); if (mChannelsTempArr==null) { return new Channel[0]; } Channel[] result=new Channel[mChannelsTempArr.length]; System.arraycopy(mChannelsTempArr,0,result,0,result.length); return result; } } } Channel[] result=new Channel[channelList.size()]; channelList.toArray(result); return result; }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/7eaf419733944c0f61794b6b1a35e49c7e3032f7/TvBrowserDataService.java/buggy/tvbrowser/src/tvbrowserdataservice/TvBrowserDataService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5307, 8526, 15796, 10585, 1435, 288, 3639, 2407, 1904, 682, 33, 2704, 2407, 5621, 565, 4498, 518, 33, 81, 2909, 1114, 694, 18, 9838, 5621, 565, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 1377, 5307, 1114, 1041, 28657, 2909, 1114, 13, 305, 18, 4285, 5621, 1377, 5307, 8526, 462, 33, 1655, 18, 588, 5268, 10585, 5621, 1377, 364, 261, 474, 525, 33, 20, 31, 78, 32, 343, 18, 2469, 31, 78, 27245, 288, 3639, 1904, 682, 18, 1289, 12, 343, 63, 78, 19226, 3639, 289, 6647, 289, 3639, 1748, 971, 732, 3377, 486, 1104, 1281, 1904, 732, 866, 16, 309, 1915, 353, 279, 1904, 585, 377, 380, 628, 279, 2416, 13521, 11213, 1177, 18, 971, 326, 585, 1704, 16, 732, 6827, 326, 729, 377, 380, 358, 1262, 326, 394, 1904, 1390, 628, 326, 24264, 18, 377, 1195, 3639, 309, 261, 4327, 682, 18, 1467, 1435, 631, 20, 13, 288, 5411, 1387, 585, 273, 394, 1387, 12, 81, 751, 1621, 16, 5307, 682, 18, 3776, 67, 1985, 1769, 1377, 309, 261, 768, 18, 1808, 10756, 288, 9079, 1033, 8526, 702, 273, 12528, 46, 278, 94, 88, 366, 19780, 387, 80, 361, 275, 261, 30752, 617, 76, 1897, 2225, 16, 10792, 315, 3389, 64, 89, 713, 41, 24, 387, 1073, 89, 16315, 1512, 647, 275, 6, 20451, 3639, 509, 290, 273, 804, 1895, 8485, 18, 4500, 1895, 6353, 12, 2011, 16, 6647, 315, 6705, 506, 4720, 278, 272, 1354, 12519, 558, 22371, 20317, 298, 15044, 1098, 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, 5307, 8526, 15796, 10585, 1435, 288, 3639, 2407, 1904, 682, 33, 2704, 2407, 5621, 565, 4498, 518, 33, 81, 2909, 1114, 694, 18, 9838, 5621, 565, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 1377, 5307, 1114, 1041, 28657, 2909, 1114, 13, 305, 18, 4285, 5621, 1377, 5307, 8526, 462, 33, 1655, 18, 588, 5268, 10585, 5621, 1377, 364, 261, 474, 525, 33, 20, 31, 78, 32, 343, 18, 2469, 31, 78, 27245, 288, 3639, 1904, 682, 18, 1289, 12, 343, 63, 78, 19226, 3639, 289, 6647, 289, 3639, 1748, 971, 732, 3377, 486, 1104, 1281, 1904, 732, 866, 16, 309, 1915, 353, 279, 1904, 585, 377, 380, 628, 279, 2416, 13521, 11213, 1177, 18, 971, 326, 2 ]
NODE defn = node.nd_defn().copyNodeScope(ruby_cref);
NODE defn = node.nd_defn().copyNodeScope(ruby.getRubyCRef());
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: // return rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: // return rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: RubyObject r = eval(self, node.nd_recv()); RubyObject l = eval(self, node.nd_value()); if (l instanceof RubyString) { // return rb_reg_match(r, l); } else { return l.funcall(ruby.intern("=~"), r); } return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyArray)obj).entry(i).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyObject eqq = ((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = getRubyFrame().getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; ruby.getRubyScope().push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.getRubyScope().pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyObject val = recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, rval); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, node.nd_value()); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().getRubyScope().setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby.getRubyClass().setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().getRubyScope().getLocalVars(node.nd_cnt()); case NODE_DVAR: return ruby.getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.getRubyScope().getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getClasses().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); SearchMethodResult smr = ruby.getRubyClass().searchMethod((RubyId)node.nd_mid()); NODE body = smr.getBody(); RubyObject origin = smr.getOrigin(); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby.getRubyClass() == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby.getRubyClass() && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby.getRubyClass().addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby.getRubyClass().getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby.getRubyClass().funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby.getRubyClass().isSingleton()) { ruby.getRubyClass().getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby.getRubyClass().funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to undef method"); } ruby.getRubyClass().undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to make alias"); } ruby.getRubyClass().aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby.getRubyClass().funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby.getRubyClass() == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby.getRubyClass().isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby.getRubyClass().getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby.getRubyClass() == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby.getRubyClass().isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby.getRubyClass().getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 261, 2159, 18, 4880, 67, 4285, 1435, 480, 446, 13, 288, 13491, 5302, 12, 2890, 16, 756, 18, 4880, 67, 1978, 10663, 13491, 756, 273, 756, 18, 4880, 67, 4285, 5621, 10792, 289, 10792, 756, 273, 756, 18, 4880, 67, 1978, 5621, 10792, 898, 31, 4766, 565, 648, 11922, 67, 3798, 2294, 41, 30, 10792, 368, 7138, 67, 74, 67, 4415, 5621, 10792, 756, 18, 4880, 67, 542, 67, 723, 12, 8744, 67, 50, 2627, 1769, 1748, 1196, 2537, 3647, 1195, 10792, 327, 4170, 10340, 7675, 588, 12616, 5621, 4766, 565, 1748, 2376, 6116, 679, 2887, 14093, 1195, 7734, 648, 11922, 67, 16061, 30, 10792, 756, 273, 756, 18, 4880, 67, 3432, 5621, 10792, 898, 31, 4766, 565, 1748, 2199, 364, 8632, 17, 416, 12, 1886, 845, 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, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31, 3639, 19817, 921, 460, 273, 446, 31, 3639, 19817, 921, 563, 273, 446, 31, 3639, 19817, 3120, 22155, 797, 273, 446, 31, 3639, 368, 509, 919, 31, 7734, 368, 19817, 8176, 4712, 24137, 273, 4170, 10340, 7675, 588, 8176, 4712, 5621, 7734, 1323, 261, 3767, 13, 288, 13491, 309, 261, 2159, 422, 446, 13, 288, 7734, 327, 4170, 10340, 7675, 588, 12616, 5621, 5411, 289, 13491, 1620, 261, 2159, 18, 4880, 67, 723, 10756, 288, 7734, 648, 11922, 67, 11403, 30, 10792, 1323, 2 ]
cfw = new ClassFileWriter(generatedClassName, superClassName, sourceFile); generatedClassSignature = cfw.classNameToSignature(generatedClassName);
generateBodyMethods(cfwMain, encodedSource);
private void generateCode(Context cx, ScriptOrFnNode scriptOrFn, ObjArray names, ObjArray classFiles) { String superClassName; this.scriptOrFn = scriptOrFn; if (scriptOrFn.getType() == Token.FUNCTION) { fnCurrent = (OptFunctionNode)scriptOrFn; generatedClassName = fnCurrent.getClassName(); superClassName = FUNCTION_SUPER_CLASS_NAME; } else { // better be a script if (scriptOrFn.getType() != Token.SCRIPT) badTree(); fnCurrent = null; boolean isPrimary = (nameHelper.getTargetExtends() == null && nameHelper.getTargetImplements() == null); generatedClassName = getScriptClassName(null, isPrimary); superClassName = SCRIPT_SUPER_CLASS_NAME; } String sourceFile = null; // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { sourceFile = scriptOrFn.getSourceName(); } cfw = new ClassFileWriter(generatedClassName, superClassName, sourceFile); generatedClassSignature = cfw.classNameToSignature(generatedClassName); // Generate nested function code int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; ++i) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); Codegen codegen = new Codegen(mainCodegen); codegen.generateCode(cx, fn, names, classFiles); } Node codegenBase; if (fnCurrent != null) { generateInit(cx, superClassName); if (fnCurrent.isTargetOfDirectCall()) { cfw.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.ALOAD_1); cfw.add(ByteCode.ALOAD_2); cfw.add(ByteCode.ALOAD_3); for (int i = 0; i < scriptOrFn.getParamCount(); i++) { cfw.addPush(i); cfw.add(ByteCode.ALOAD, 4); cfw.add(ByteCode.ARRAYLENGTH); int undefArg = cfw.acquireLabel(); int beyond = cfw.acquireLabel(); cfw.add(ByteCode.IF_ICMPGE, undefArg); cfw.add(ByteCode.ALOAD, 4); cfw.addPush(i); cfw.add(ByteCode.AALOAD); cfw.addPush(0.0); cfw.add(ByteCode.GOTO, beyond); cfw.markLabel(undefArg); pushUndefined(cfw); cfw.addPush(0.0); cfw.markLabel(beyond); } cfw.add(ByteCode.ALOAD, 4); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, generatedClassName, "callDirect", fnCurrent.getDirectCallMethodSignature()); cfw.add(ByteCode.ARETURN); cfw.stopMethod((short)5, null); // 1 for this, 1 for js this, 1 for args[] emitDirectConstructor(); } } else { // script cfw.addInterface("org/mozilla/javascript/Script"); generateInit(cx, superClassName); generateScriptCtor(cx, superClassName); generateMain(cx); generateExecute(cx); } BodyCodegen bodygen = new BodyCodegen(); bodygen.cfw = cfw; bodygen.mainCodegen = mainCodegen; bodygen.currentCodegen = this; bodygen.scriptOrFn = scriptOrFn; bodygen.fnCurrent = fnCurrent; bodygen.itsSourceFile = sourceFile; bodygen.generateBodyCode(cx); emitConstantDudeInitializers(); if (isMainCodegen && mainCodegen.directCallTargets != null) { int N = mainCodegen.directCallTargets.size(); for (int i = 0; i != N; ++i) { OptFunctionNode fn = (OptFunctionNode)directCallTargets.get(i); cfw.addField(getDirectTargetFieldName(i), cfw.classNameToSignature(fn.getClassName()), (short)0); } } byte[] bytes = cfw.toByteArray(); names.add(generatedClassName); classFiles.add(bytes); cfw = null; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/3c9b84173796cf5a1eb1f786e5ba6af89b66fcab/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1085, 12, 1042, 9494, 16, 7739, 1162, 5372, 907, 2728, 1162, 5372, 16, 17311, 18760, 1076, 1257, 16, 18760, 1076, 667, 2697, 13, 565, 288, 3639, 514, 2240, 3834, 31, 3639, 333, 18, 4263, 1162, 5372, 273, 2728, 1162, 5372, 31, 3639, 309, 261, 4263, 1162, 5372, 18, 588, 559, 1435, 422, 3155, 18, 7788, 13, 288, 5411, 2295, 3935, 273, 261, 6179, 2083, 907, 13, 4263, 1162, 5372, 31, 5411, 4374, 3834, 273, 2295, 3935, 18, 588, 3834, 5621, 5411, 2240, 3834, 273, 13690, 67, 13272, 654, 67, 5237, 67, 1985, 31, 3639, 289, 469, 288, 5411, 368, 7844, 506, 279, 2728, 5411, 309, 261, 4263, 1162, 5372, 18, 588, 559, 1435, 480, 3155, 18, 10885, 13, 5570, 2471, 5621, 5411, 2295, 3935, 273, 446, 31, 5411, 1250, 353, 6793, 273, 261, 529, 2276, 18, 588, 2326, 19581, 1435, 422, 446, 4766, 597, 508, 2276, 18, 588, 2326, 17516, 1435, 422, 446, 1769, 5411, 4374, 3834, 273, 22611, 3834, 12, 2011, 16, 353, 6793, 1769, 5411, 2240, 3834, 273, 22812, 67, 13272, 654, 67, 5237, 67, 1985, 31, 3639, 289, 3639, 514, 16338, 273, 446, 31, 3639, 368, 805, 353, 358, 2103, 1198, 1123, 3639, 309, 16051, 71, 92, 18, 291, 21755, 2829, 5033, 1435, 747, 9494, 18, 291, 21755, 2829, 10756, 288, 5411, 16338, 273, 2728, 1162, 5372, 18, 588, 1830, 461, 5621, 3639, 289, 3639, 6080, 91, 273, 394, 30614, 2289, 12, 11168, 3834, 16, 2240, 3834, 16, 21394, 16338, 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, 2103, 1085, 12, 1042, 9494, 16, 7739, 1162, 5372, 907, 2728, 1162, 5372, 16, 17311, 18760, 1076, 1257, 16, 18760, 1076, 667, 2697, 13, 565, 288, 3639, 514, 2240, 3834, 31, 3639, 333, 18, 4263, 1162, 5372, 273, 2728, 1162, 5372, 31, 3639, 309, 261, 4263, 1162, 5372, 18, 588, 559, 1435, 422, 3155, 18, 7788, 13, 288, 5411, 2295, 3935, 273, 261, 6179, 2083, 907, 13, 4263, 1162, 5372, 31, 5411, 4374, 3834, 273, 2295, 3935, 18, 588, 3834, 5621, 5411, 2240, 3834, 273, 13690, 67, 13272, 654, 67, 5237, 67, 1985, 31, 3639, 289, 469, 288, 5411, 368, 7844, 506, 279, 2728, 5411, 309, 261, 4263, 1162, 5372, 18, 588, 559, 1435, 480, 3155, 2 ]
final HtmlPage htmlPage, String sourceCode, final String sourceName ) {
final HtmlPage htmlPage, String sourceCode, final String sourceName, final HtmlElement htmlElementScope ) {
public Object execute( final HtmlPage htmlPage, String sourceCode, final String sourceName ) { assertNotNull( "sourceCode", sourceCode ); // Remove html comments around the source if needed sourceCode = sourceCode.trim(); if( sourceCode.startsWith("<!--") ) { int startIndex = 4; final int endIndex; if( sourceCode.endsWith("-->") ) { endIndex = sourceCode.length()-3; } else { endIndex = sourceCode.length(); } // Anything on the same line as the opening comment should be ignored char eachChar = sourceCode.charAt(startIndex); while( startIndex <= endIndex && eachChar != '\n' && eachChar != '\r' ) { eachChar = sourceCode.charAt( ++startIndex ); } sourceCode = sourceCode.substring(startIndex, endIndex); } final PageInfo pageInfo = getPageInfo(htmlPage); final int lineNumber = 1; final Object securityDomain = null; try { final Object result = pageInfo.getContext().evaluateString( pageInfo.getScope(), sourceCode, sourceName, lineNumber, securityDomain ); return result; } catch( final JavaScriptException e ) { throw new ScriptException( e, sourceCode ); } catch( final Throwable t ) { throw new ScriptException(t, sourceCode); } }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/c124e9a745361c94066e2aee2d32793a0f9f4a55/JavaScriptEngine.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1836, 12, 3639, 727, 5430, 1964, 1729, 1964, 16, 514, 20260, 16, 727, 514, 28337, 16, 727, 5430, 1046, 1729, 1046, 3876, 262, 288, 3639, 25395, 12, 315, 3168, 1085, 3113, 20260, 11272, 3639, 368, 3581, 1729, 5678, 6740, 326, 1084, 309, 3577, 3639, 20260, 273, 20260, 18, 5290, 5621, 3639, 309, 12, 20260, 18, 17514, 1190, 2932, 5586, 413, 7923, 262, 288, 5411, 509, 10588, 273, 1059, 31, 5411, 727, 509, 13818, 31, 5411, 309, 12, 20260, 18, 5839, 1190, 2932, 413, 2984, 13, 262, 288, 7734, 13818, 273, 20260, 18, 2469, 1435, 17, 23, 31, 5411, 289, 5411, 469, 288, 7734, 13818, 273, 20260, 18, 2469, 5621, 5411, 289, 5411, 368, 5502, 4274, 603, 326, 1967, 980, 487, 326, 10890, 2879, 1410, 506, 5455, 5411, 1149, 1517, 2156, 273, 20260, 18, 3001, 861, 12, 1937, 1016, 1769, 5411, 1323, 12, 10588, 1648, 13818, 597, 1517, 2156, 480, 2337, 82, 11, 597, 1517, 2156, 480, 2337, 86, 11, 262, 288, 7734, 1517, 2156, 273, 20260, 18, 3001, 861, 12, 965, 1937, 1016, 11272, 5411, 289, 5411, 20260, 273, 20260, 18, 28023, 12, 1937, 1016, 16, 13818, 1769, 3639, 289, 3639, 727, 3460, 966, 1363, 966, 273, 8957, 966, 12, 2620, 1964, 1769, 3639, 727, 509, 13629, 273, 404, 31, 3639, 727, 1033, 4373, 3748, 273, 446, 31, 3639, 775, 288, 5411, 727, 1033, 563, 273, 1363, 966, 18, 29120, 7675, 21024, 780, 12, 10792, 1363, 966, 18, 588, 3876, 9334, 20260, 16, 28337, 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, 1033, 1836, 12, 3639, 727, 5430, 1964, 1729, 1964, 16, 514, 20260, 16, 727, 514, 28337, 16, 727, 5430, 1046, 1729, 1046, 3876, 262, 288, 3639, 25395, 12, 315, 3168, 1085, 3113, 20260, 11272, 3639, 368, 3581, 1729, 5678, 6740, 326, 1084, 309, 3577, 3639, 20260, 273, 20260, 18, 5290, 5621, 3639, 309, 12, 20260, 18, 17514, 1190, 2932, 5586, 413, 7923, 262, 288, 5411, 509, 10588, 273, 1059, 31, 5411, 727, 509, 13818, 31, 5411, 309, 12, 20260, 18, 5839, 1190, 2932, 413, 2984, 13, 262, 288, 7734, 13818, 273, 20260, 18, 2469, 1435, 17, 23, 31, 5411, 289, 5411, 469, 288, 7734, 13818, 273, 20260, 18, 2469, 5621, 5411, 289, 5411, 368, 5502, 4274, 603, 2 ]
this.classId = name;
setBaseName(name);
protected RubyModule(Ruby runtime, RubyClass metaClass, RubyClass superClass, RubyModule parentModule, String name) { super(runtime, metaClass); this.superClass = superClass; this.parentModule = parentModule; this.classId = name; // If no parent is passed in, it is safe to assume Object. if (this.parentModule == null) { this.parentModule = runtime.getClasses().getObjectClass(); // We are constructing object itself...Set its parent to itself. if (this.parentModule == null) { this.parentModule = this; } } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 19817, 3120, 12, 54, 10340, 3099, 16, 19817, 797, 2191, 797, 16, 19817, 797, 18846, 16, 19817, 3120, 982, 3120, 16, 514, 508, 13, 288, 3639, 2240, 12, 9448, 16, 2191, 797, 1769, 7734, 333, 18, 9565, 797, 273, 18846, 31, 3639, 333, 18, 2938, 3120, 273, 982, 3120, 31, 540, 26435, 461, 12, 529, 1769, 3639, 368, 971, 1158, 982, 353, 2275, 316, 16, 518, 353, 4183, 358, 6750, 1033, 18, 3639, 309, 261, 2211, 18, 2938, 3120, 422, 446, 13, 288, 5411, 333, 18, 2938, 3120, 273, 3099, 18, 588, 4818, 7675, 588, 921, 797, 5621, 5411, 368, 1660, 854, 27389, 733, 6174, 2777, 694, 2097, 982, 358, 6174, 18, 5411, 309, 261, 2211, 18, 2938, 3120, 422, 446, 13, 288, 7734, 333, 18, 2938, 3120, 273, 333, 31, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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12, 9448, 16, 2191, 797, 1769, 7734, 333, 18, 9565, 797, 273, 18846, 31, 3639, 333, 18, 2938, 3120, 273, 982, 3120, 31, 540, 26435, 461, 12, 529, 1769, 3639, 368, 971, 1158, 982, 353, 2275, 316, 16, 518, 353, 4183, 358, 6750, 1033, 18, 3639, 309, 261, 2211, 18, 2938, 3120, 422, 446, 13, 288, 5411, 333, 18, 2938, 3120, 273, 3099, 18, 588, 4818, 7675, 588, 921, 797, 5621, 5411, 368, 1660, 854, 27389, 733, 6174, 2777, 694, 2097, 982, 358, 6174, 18, 5411, 309, 261, 2211, 18, 2 ]
createTaskSection(parent, toolkit);
createOverviewSection(parent, toolkit); createPlanningGameSection(parent, toolkit);
private Composite createContent(Composite parent, FormToolkit toolkit) { TaskEditorInput taskEditorInput = (TaskEditorInput)getEditorInput(); task = taskEditorInput.getTask(); if (task == null) { MessageDialog.openError(parent.getShell(), "No such task", "No task exists with this id"); return null; } try { createTaskSection(parent, toolkit); createNotesSection(parent, toolkit); createPlanningGameSection(parent, toolkit); createRelatedLinksSection(parent, toolkit); createDetailsSection(parent, toolkit); } catch (SWTException e) { MylarPlugin.log(e, "content failed"); } return null; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/31e357a4e5f33e7d4c631fa13cf0945749eed369/TaskSummaryEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14728, 752, 1350, 12, 9400, 982, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 25083, 202, 2174, 6946, 1210, 1562, 6946, 1210, 273, 261, 2174, 6946, 1210, 13, 588, 6946, 1210, 5621, 9506, 202, 4146, 273, 1562, 6946, 1210, 18, 588, 2174, 5621, 202, 202, 430, 261, 4146, 422, 446, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2938, 18, 588, 13220, 9334, 315, 2279, 4123, 1562, 3113, 315, 2279, 1562, 1704, 598, 333, 612, 8863, 1082, 202, 2463, 446, 31, 202, 202, 97, 1082, 540, 202, 202, 698, 288, 1082, 202, 2640, 2174, 5285, 12, 2938, 16, 5226, 8691, 1769, 6862, 202, 2640, 18063, 5285, 12, 2938, 16, 5226, 8691, 1769, 1082, 202, 2640, 1749, 10903, 12496, 5285, 12, 2938, 16, 5226, 8691, 1769, 202, 3639, 752, 8017, 7100, 5285, 12, 2938, 16, 5226, 8691, 1769, 202, 3639, 752, 3790, 5285, 12, 2938, 16, 5226, 8691, 1769, 3639, 289, 1044, 261, 55, 8588, 503, 425, 13, 288, 540, 202, 12062, 7901, 3773, 18, 1330, 12, 73, 16, 315, 1745, 2535, 8863, 3639, 289, 202, 3639, 202, 202, 2463, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14728, 752, 1350, 12, 9400, 982, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 25083, 202, 2174, 6946, 1210, 1562, 6946, 1210, 273, 261, 2174, 6946, 1210, 13, 588, 6946, 1210, 5621, 9506, 202, 4146, 273, 1562, 6946, 1210, 18, 588, 2174, 5621, 202, 202, 430, 261, 4146, 422, 446, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2938, 18, 588, 13220, 9334, 315, 2279, 4123, 1562, 3113, 315, 2279, 1562, 1704, 598, 333, 612, 8863, 1082, 202, 2463, 446, 31, 202, 202, 97, 1082, 540, 202, 202, 698, 288, 1082, 202, 2640, 2174, 5285, 12, 2938, 16, 5226, 8691, 1769, 6862, 202, 2640, 18063, 5285, 12, 2938, 16, 5226, 8691, 1769, 1082, 202, 2 ]
public org.quickfix.field.UnderlyingSecurityAltID get(org.quickfix.field.UnderlyingSecurityAltID value)
public quickfix.field.UnderlyingSecurityAltID get(quickfix.field.UnderlyingSecurityAltID value)
public org.quickfix.field.UnderlyingSecurityAltID get(org.quickfix.field.UnderlyingSecurityAltID value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 336, 12, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 336, 12, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testFromBytes() { byte[] val = new byte[] {0x34, 0x12}; ZipShort zs = new ZipShort(val); assertEquals("value from bytes", 0x1234, zs.getValue());
public void testFromBytes() { byte[] val = new byte[]{0x34, 0x12}; ZipShort zs = new ZipShort( val ); assertEquals( "value from bytes", 0x1234, zs.getValue() );
public void testFromBytes() { byte[] val = new byte[] {0x34, 0x12}; ZipShort zs = new ZipShort(val); assertEquals("value from bytes", 0x1234, zs.getValue()); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/ZipShortTest.java/clean/plexus-archiver/src/test/java/org/codehaus/plexus/archiver/zip/ZipShortTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29930, 1435, 288, 3639, 1160, 8526, 1244, 273, 394, 1160, 8526, 288, 20, 92, 5026, 16, 374, 92, 2138, 20451, 3639, 8603, 4897, 998, 87, 273, 394, 8603, 4897, 12, 1125, 1769, 3639, 1815, 8867, 2932, 1132, 628, 1731, 3113, 374, 92, 28462, 16, 998, 87, 18, 24805, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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12, 1125, 1769, 3639, 1815, 8867, 2932, 1132, 628, 1731, 3113, 374, 92, 28462, 16, 998, 87, 18, 24805, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (CurricularCourseScope curricularCourseScope : curricularCourse.getScopes()) { CurricularSemester curricularSemester = curricularCourseScope .getCurricularSemester(); curricularYears.add(curricularSemester.getCurricularYear().getYear().toString()); } }
Set<String> curricularYears = new HashSet<String>(); Set<String> degreeNames = new HashSet<String>(); for (CurricularCourse curricularCourse : executionCourse .getAssociatedCurricularCourses()) { degreeNames.add(curricularCourse.getDegreeCurricularPlan().getDegree().getSigla());
public List run(String username, Integer executionYearID) throws FenixServiceException, ExcepcaoPersistencia { DistributionTeacherServicesByTeachersDTO returnDTO = new DistributionTeacherServicesByTeachersDTO(); List<Teacher> teachers; List<ExecutionPeriod> executionPeriodList; ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IPersistentTeacher persistentTeacher = sp.getIPersistentTeacher(); IPersistentExecutionPeriod persistentExecutionPeriod = sp.getIPersistentExecutionPeriod(); executionPeriodList = persistentExecutionPeriod.readByExecutionYear(executionYearID); Department department = persistentTeacher.readTeacherByUsername(username) .getLastWorkingDepartment(); teachers = department.getCurrentTeachers(); /* Information about teacher */ Double hoursSpentByTeacher; for (Teacher teacher : teachers) { returnDTO.addTeacher(teacher.getIdInternal(), teacher.getTeacherNumber(), teacher .getCategory().getCode(), teacher.getPerson().getNome(), 0, 0d); for (Professorship professorShip : teacher.getProfessorships()) { ExecutionCourse executionCourse = professorShip.getExecutionCourse(); if (!executionPeriodList.contains(executionCourse.getExecutionPeriod())) { continue; } Set<String> curricularYears = new HashSet<String>(); Set<String> degreeNames = new HashSet<String>(); for (CurricularCourse curricularCourse : executionCourse .getAssociatedCurricularCourses()) { degreeNames.add(curricularCourse.getDegreeCurricularPlan().getDegree().getSigla()); for (CurricularCourseScope curricularCourseScope : curricularCourse.getScopes()) { CurricularSemester curricularSemester = curricularCourseScope .getCurricularSemester(); curricularYears.add(curricularSemester.getCurricularYear().getYear().toString()); } } hoursSpentByTeacher = StrictMath.ceil(teacher .getHoursLecturedOnExecutionCourse(executionCourse)); returnDTO.addExecutionCourseToTeacher(teacher.getIdInternal(), executionCourse .getIdInternal(), executionCourse.getNome(), hoursSpentByTeacher.intValue(), degreeNames, curricularYears, executionCourse.getExecutionPeriod().getName()); } } ArrayList<TeacherDistributionServiceEntryDTO> returnArraylist = new ArrayList<TeacherDistributionServiceEntryDTO>(); for (TeacherDistributionServiceEntryDTO teacher : returnDTO.getTeachersMap().values()) { returnArraylist.add(teacher); } Collections.sort(returnArraylist); return returnArraylist; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/945fe060c9b347f752b4cdba6ab252a8f897c881/ReadTeacherServiceDistributionByTeachers.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/teacher/teacherService/ReadTeacherServiceDistributionByTeachers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 1086, 12, 780, 2718, 16, 2144, 4588, 5593, 734, 13, 1216, 478, 275, 697, 15133, 16, 1312, 311, 2436, 6033, 12771, 28115, 288, 202, 202, 9003, 56, 13798, 264, 5676, 858, 56, 13798, 414, 19792, 327, 19792, 273, 394, 17547, 56, 13798, 264, 5676, 858, 56, 13798, 414, 19792, 5621, 202, 202, 682, 32, 56, 13798, 264, 34, 6489, 497, 414, 31, 202, 202, 682, 32, 3210, 5027, 34, 4588, 5027, 682, 31, 202, 202, 45, 3088, 499, 73, 11906, 73, 1694, 273, 13381, 6289, 1733, 18, 588, 1868, 13182, 6289, 5621, 202, 202, 2579, 6572, 56, 13798, 264, 9195, 56, 13798, 264, 273, 1694, 18, 588, 2579, 6572, 56, 13798, 264, 5621, 202, 202, 2579, 6572, 3210, 5027, 9195, 3210, 5027, 273, 1694, 18, 588, 2579, 6572, 3210, 5027, 5621, 202, 202, 16414, 5027, 682, 273, 9195, 3210, 5027, 18, 896, 858, 3210, 5593, 12, 16414, 5593, 734, 1769, 202, 202, 30358, 443, 15750, 273, 9195, 56, 13798, 264, 18, 896, 56, 13798, 264, 858, 8575, 12, 5053, 13, 9506, 202, 18, 588, 3024, 14836, 30358, 5621, 202, 202, 736, 497, 414, 273, 443, 15750, 18, 588, 3935, 56, 13798, 414, 5621, 202, 202, 20308, 15353, 2973, 6489, 27779, 1195, 202, 202, 5265, 7507, 3389, 319, 858, 56, 13798, 264, 31, 202, 202, 1884, 261, 56, 13798, 264, 6489, 27779, 294, 6489, 497, 414, 13, 288, 1082, 202, 2463, 19792, 18, 1289, 56, 13798, 264, 12, 736, 27779, 18, 26321, 3061, 9334, 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, 987, 1086, 12, 780, 2718, 16, 2144, 4588, 5593, 734, 13, 1216, 478, 275, 697, 15133, 16, 1312, 311, 2436, 6033, 12771, 28115, 288, 202, 202, 9003, 56, 13798, 264, 5676, 858, 56, 13798, 414, 19792, 327, 19792, 273, 394, 17547, 56, 13798, 264, 5676, 858, 56, 13798, 414, 19792, 5621, 202, 202, 682, 32, 56, 13798, 264, 34, 6489, 497, 414, 31, 202, 202, 682, 32, 3210, 5027, 34, 4588, 5027, 682, 31, 202, 202, 45, 3088, 499, 73, 11906, 73, 1694, 273, 13381, 6289, 1733, 18, 588, 1868, 13182, 6289, 5621, 202, 202, 2579, 6572, 56, 13798, 264, 9195, 56, 13798, 264, 273, 1694, 18, 588, 2579, 6572, 56, 13798, 264, 5621, 202, 202, 2 ]
AST tmp1113_AST_in = (AST)_t;
AST tmp1123_AST_in = (AST)_t;
public final void defineparameterstate(AST _t) throws RecognitionException { AST defineparameterstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST bid = null; AST brec = null; AST id = null; AST ds = null; AST id3 = null; AST id2 = null; AST __t520 = _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 INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: case PRIVATE: case PUBLIC: case RETURN: 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 INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: case RETURN: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PARAMETER: { AST tmp1110_AST_in = (AST)_t; match(_t,PARAMETER); _t = _t.getNextSibling(); AST tmp1111_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); bid = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp1112_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); brec = _t==ASTNULL ? null : (AST)_t; tbl(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.defineBuffer(def, bid, brec, true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRESELECT: { AST tmp1113_AST_in = (AST)_t; match(_t,PRESELECT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMNLABEL: case FIELDS: case LABEL: { 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 FIELDS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIELDS: { AST __t527 = _t; AST tmp1114_AST_in = (AST)_t; match(_t,FIELDS); _t = _t.getFirstChild(); { _loop529: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop529; } } while (true); } _t = __t527; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } break; } case INPUT: case INPUTOUTPUT: case OUTPUT: case RETURN: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INPUT: { AST tmp1115_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getNextSibling(); break; } case OUTPUT: { AST tmp1116_AST_in = (AST)_t; match(_t,OUTPUT); _t = _t.getNextSibling(); break; } case INPUTOUTPUT: { AST tmp1117_AST_in = (AST)_t; match(_t,INPUTOUTPUT); _t = _t.getNextSibling(); break; } case RETURN: { AST tmp1118_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp1119_AST_in = (AST)_t; match(_t,PARAMETER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST tmp1120_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); AST tmp1121_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); tbl(_t,CQ.TEMPTABLESYMBOL); _t = _retTree; { _loop533: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1122_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1123_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop533; } } } while (true); } break; } case TABLEHANDLE: { AST tmp1124_AST_in = (AST)_t; match(_t,TABLEHANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp1125_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop536: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1126_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1127_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop536; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(def, id, HANDLE)); } break; } case DATASET: { AST tmp1128_AST_in = (AST)_t; match(_t,DATASET); _t = _t.getNextSibling(); AST tmp1129_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); ds = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop538: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1130_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BYVALUE: { AST tmp1131_AST_in = (AST)_t; match(_t,BYVALUE); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1132_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop538; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineSymbol(DATASET, ds, ds)); } break; } case DATASETHANDLE: { AST tmp1133_AST_in = (AST)_t; match(_t,DATASETHANDLE); _t = _t.getNextSibling(); id3 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop540: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1134_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BYVALUE: { AST tmp1135_AST_in = (AST)_t; match(_t,BYVALUE); _t = _t.getNextSibling(); break; } case BIND: { AST tmp1136_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } default: { break _loop540; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(def, id3, HANDLE)); } break; } case ID: { id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineVariable(def, id2)); } defineparam_var(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t520; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 6775, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 6775, 2019, 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, 9949, 273, 446, 31, 202, 202, 9053, 324, 3927, 273, 446, 31, 202, 202, 9053, 612, 273, 446, 31, 202, 202, 9053, 3780, 273, 446, 31, 202, 202, 9053, 612, 23, 273, 446, 31, 202, 202, 9053, 612, 22, 273, 446, 31, 9506, 202, 9053, 1001, 88, 25, 3462, 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, 12943, 30, 202, 202, 3593, 12943, 15527, 30, 202, 202, 3593, 11550, 30, 202, 202, 3593, 18120, 30, 202, 202, 3593, 23685, 30, 202, 202, 3593, 17187, 30, 202, 202, 3593, 14780, 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, 4426, 6775, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 6775, 2019, 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, 9949, 273, 446, 31, 202, 202, 9053, 324, 3927, 273, 446, 31, 202, 202, 9053, 612, 273, 446, 31, 202, 202, 9053, 3780, 273, 446, 31, 202, 202, 9053, 612, 23, 273, 446, 31, 202, 202, 9053, 612, 22, 273, 446, 31, 9506, 202, 9053, 1001, 88, 25, 3462, 273, 389, 88, 31, 202, 202, 536, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 2 ]
public envelopePanel(String name, Patch p, int snd, int Func, int msByte, int msBit) { super(name); int ofs = (msByte-53)*8 + msBit; int controlIdx=0, yPos=0; // 76. Sound pitch env attack 12 0 0 0 99 7 53:0-52:2 // 77. Sound pitch env decay 12 0 1 0 100 7 53:7-53:1 // 78. Sound pitch env sustain 12 0 2 0 99 7 54:6-54:0 // 79. Sound pitch env release 12 0 3 0 99 7 55:5-54:7 // 80. Sound pitch env delay 12 1 0 0 99 7 56:4-55:6 // 81. Sound pitch env sustain decay 12 1 1 0 99 7 57:3-56:5 // 82. Sound pitch env trig type 12 1 3 0 3 2 57:5-57:4 // 83. Sound pitch env time track 12 2 0 0 1 1 57:6 // 84. Sound pitch env sustain pedal 12 2 1 0 1 1 57:7 // 85. Sound pitch env level 12 2 2 0 99 7 58:6-58:0 // 86. Sound pitch env velocity mod 12 2 3 -99 199 8 59:6-58:7 addWidget(this, new EnvelopeWidget("Envelope", p, new EnvelopeNode[] { new EnvelopeNode(0, 100, new SoundModel(p,snd,7,56,4+ofs), 0,0,null, 1,false, new ProgSender(snd,12,1,0),null, "Delay",null), new EnvelopeNode(0,99, new SoundModel(p,snd,7,53,ofs), 99,99,null, 0, false, new ProgSender(snd,12,0,0),null, "Attack", null), new EnvelopeNode(0,99, new SoundModel(p,snd,7,53,7+ofs), 0,99, new SoundModel(p,snd,7,54,6+ofs), 50, false, new ProgSender(snd,12,0,1), new ProgSender(snd,12,0,2), "Decay", "Sustain"), new EnvelopeNode(50,50,null, 0,99, new SoundModel(p,snd,7,57,3+ofs), 0, false, null, new ProgSender(snd,12,1,1), null, "Sustain decay"), new EnvelopeNode(0,99, new SoundModel(p,snd,7,55,5+ofs), 0,0,null, 0, false, new ProgSender(snd,12,0,3),null, "Release", null), }), 0,++yPos,2,1,controlIdx++); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/dfc740ebb2b5145b6a32ecb0714524b25b62a58c/AlesisQSProgramEditor.java/clean/JSynthLib/synthdrivers/AlesisQS/AlesisQSProgramEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9045, 5537, 12, 780, 508, 16, 12042, 293, 16, 509, 31158, 16, 509, 6165, 16, 509, 4086, 3216, 16, 509, 4086, 5775, 13, 288, 282, 2240, 12, 529, 1769, 282, 509, 26927, 273, 261, 959, 3216, 17, 8643, 17653, 28, 397, 4086, 5775, 31, 282, 509, 3325, 4223, 33, 20, 16, 677, 1616, 33, 20, 31, 282, 368, 22997, 18, 202, 24331, 14486, 1550, 13843, 202, 282, 2593, 202, 20, 202, 20, 202, 20, 202, 2733, 202, 27, 202, 8643, 30, 20, 17, 9401, 30, 22, 282, 368, 28244, 18, 202, 24331, 14486, 1550, 22286, 202, 282, 2593, 202, 20, 202, 21, 202, 20, 202, 6625, 202, 27, 202, 8643, 30, 27, 17, 8643, 30, 21, 282, 368, 22860, 18, 202, 24331, 14486, 1550, 272, 641, 530, 202, 282, 2593, 202, 20, 202, 22, 202, 20, 202, 2733, 202, 27, 202, 6564, 30, 26, 17, 6564, 30, 20, 282, 368, 26517, 18, 202, 24331, 14486, 1550, 3992, 202, 282, 2593, 202, 20, 202, 23, 202, 20, 202, 2733, 202, 27, 202, 2539, 30, 25, 17, 6564, 30, 27, 282, 368, 8958, 18, 202, 24331, 14486, 1550, 4624, 202, 282, 2593, 202, 21, 202, 20, 202, 20, 202, 2733, 202, 27, 202, 4313, 30, 24, 17, 2539, 30, 26, 282, 368, 29424, 18, 202, 24331, 14486, 1550, 272, 641, 530, 22286, 202, 2138, 202, 21, 202, 21, 202, 20, 202, 2733, 202, 27, 202, 10321, 30, 23, 17, 4313, 30, 25, 282, 368, 28024, 18, 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, 377, 1071, 9045, 5537, 12, 780, 508, 16, 12042, 293, 16, 509, 31158, 16, 509, 6165, 16, 509, 4086, 3216, 16, 509, 4086, 5775, 13, 288, 282, 2240, 12, 529, 1769, 282, 509, 26927, 273, 261, 959, 3216, 17, 8643, 17653, 28, 397, 4086, 5775, 31, 282, 509, 3325, 4223, 33, 20, 16, 677, 1616, 33, 20, 31, 282, 368, 22997, 18, 202, 24331, 14486, 1550, 13843, 202, 282, 2593, 202, 20, 202, 20, 202, 20, 202, 2733, 202, 27, 202, 8643, 30, 20, 17, 9401, 30, 22, 282, 368, 28244, 18, 202, 24331, 14486, 1550, 22286, 202, 282, 2593, 202, 20, 202, 21, 202, 20, 202, 6625, 202, 27, 202, 8643, 30, 27, 17, 8643, 30, 21, 282, 2 ]
String strValue = null; if (value != null) { strValue = value.toString(); } strMap.put(strKey, strValue);
strMap.put(strKey, value);
public static Map toStringMap(Map _map) { Map strMap; if (_map == null) { strMap = null; } else { strMap = new HashMap(); Iterator entrySetIter = _map.entrySet().iterator(); while (entrySetIter.hasNext()) { Map.Entry entry = (Map.Entry) entrySetIter.next(); Object key = entry.getKey(); String strKey = null; if (key != null) { strKey = key.toString(); } Object value = entry.getValue(); String strValue = null; if (value != null) { strValue = value.toString(); } strMap.put(strKey, strValue); } } return strMap; }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/c4b8489f8965a2412bb213dc1b2edc049bdddf53/MapUtils.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/utils/MapUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1635, 1762, 863, 12, 863, 389, 1458, 13, 288, 565, 1635, 609, 863, 31, 565, 309, 261, 67, 1458, 422, 446, 13, 288, 1377, 609, 863, 273, 446, 31, 565, 289, 565, 469, 288, 1377, 609, 863, 273, 394, 4317, 5621, 1377, 4498, 6296, 2360, 273, 389, 1458, 18, 4099, 694, 7675, 9838, 5621, 1377, 1323, 261, 4099, 694, 2360, 18, 5332, 2134, 10756, 288, 3639, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 6296, 2360, 18, 4285, 5621, 3639, 1033, 498, 273, 1241, 18, 588, 653, 5621, 3639, 514, 28841, 273, 446, 31, 3639, 309, 261, 856, 480, 446, 13, 288, 1850, 28841, 273, 498, 18, 10492, 5621, 3639, 289,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1635, 1762, 863, 12, 863, 389, 1458, 13, 288, 565, 1635, 609, 863, 31, 565, 309, 261, 67, 1458, 422, 446, 13, 288, 1377, 609, 863, 273, 446, 31, 565, 289, 565, 469, 288, 1377, 609, 863, 273, 394, 4317, 5621, 1377, 4498, 6296, 2360, 273, 389, 1458, 18, 4099, 694, 7675, 9838, 5621, 1377, 1323, 261, 4099, 694, 2360, 18, 5332, 2134, 10756, 288, 3639, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 6296, 2360, 18, 4285, 5621, 3639, 1033, 498, 273, 1241, 18, 588, 653, 5621, 3639, 514, 28841, 273, 446, 31, 3639, 309, 261, 856, 480, 446, 13, 288, 1850, 28841, 273, 498, 18, 10492, 5621, 3639, 289, 3639, 1033, 460, 2 ]
BodyAdapter rbody = (BodyAdapter) bodies.get(id);
BodyAdapter rbody = bodies.get(id);
public SecurityContext getPolicy(UniqueID id, SecurityContext securityContext) throws SecurityNotAvailableException, IOException { BodyAdapter rbody = (BodyAdapter) bodies.get(id); if (rbody != null) { return rbody.getPolicy(securityContext); } else { throw new IOException("No BodyAdapter associated to id=" + id); } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/37c8e6097acabc81aec07825e20b696a91c8ae0b/BodyForwarderImpl.java/buggy/src/org/objectweb/proactive/core/body/BodyForwarderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22672, 1689, 1590, 12, 31118, 612, 16, 3639, 22672, 23202, 13, 3639, 1216, 6036, 1248, 5268, 503, 16, 1860, 288, 3639, 5652, 4216, 436,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22672, 1689, 1590, 12, 31118, 612, 16, 3639, 22672, 23202, 13, 3639, 1216, 6036, 1248, 5268, 503, 16, 1860, 288, 3639, 5652, 4216, 436, 3432, 273, 225, 25126, 18, 588, 12, 350, 1769, 3639, 309, 261, 86, 3432, 480, 446, 13, 288, 5411, 327, 436, 3432, 18, 588, 2582, 12, 7462, 1042, 1769, 3639, 289, 469, 288, 5411, 604, 394, 1860, 2932, 2279, 5652, 4216, 3627, 358, 612, 1546, 397, 612, 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 ]
File localFile = getFile(resource); if(localFile == null) return FILE_NOT_FOUND; else{
File localFile = location.toFile(); if (localFile.exists()) {
private String getDateStringValue(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; else { File localFile = getFile(resource); if(localFile == null) return FILE_NOT_FOUND; else{ DateFormat format = new SimpleDateFormat(); return format.format(new Date(localFile.lastModified())); } }}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/93d9ef054713470f826dadb16bc66048104f12dd/ResourcePropertySource.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/ResourcePropertySource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 10713, 19733, 12, 45, 1420, 1058, 13, 288, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 12107, 288, 202, 202, 812, 30649, 273, 6034, 12, 3146, 1769, 202, 202, 430, 12, 3729, 812, 422, 446, 13, 1082, 202, 2463, 7527, 67, 4400, 67, 9294, 31, 202, 202, 12107, 95, 1082, 202, 11878, 740, 273, 394, 17005, 5621, 1082, 202, 2463, 740, 18, 2139, 12, 2704, 2167, 12, 3729, 812, 18, 2722, 4575, 1435, 10019, 202, 202, 97, 202, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 10713, 19733, 12, 45, 1420, 1058, 13, 288, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 12107, 288, 202, 202, 812, 30649, 273, 6034, 12, 3146, 1769, 202, 202, 430, 12, 3729, 812, 422, 446, 13, 1082, 202, 2463, 7527, 67, 4400, 67, 9294, 31, 202, 202, 12107, 95, 1082, 202, 11878, 740, 273, 394, 17005, 5621, 1082, 202, 2463, 740, 18, 2139, 12, 2704, 2167, 12, 3729, 812, 18, 2722, 4575, 1435, 10019, 202, 202, 97, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.jacorb.poa.POA _getChildPOA( String adapter_name ) throws ParentIsHolding { checkDestructionApparent (); POA child = (POA) childs.get(adapter_name); if (child == null || child.isDestructionApparent()) { if (adapterActivator == null) throw new org.omg.CORBA.OBJECT_NOT_EXIST("no adapter activator exists for " + adapter_name); if (isHolding()) throw new ParentIsHolding(); if (isDiscarding()) throw new org.omg.CORBA.TRANSIENT("a parent poa is in discarding state"); if (isInactive()) throw new org.omg.CORBA.OBJ_ADAPTER("a parent poa is in inactive state"); /* poa should be active */ boolean successful = false; if (isSingleThreadModel()) { /* all invocations an adapter activator are serialized if the single thread model is in use */ synchronized (unknownAdapterLog) { while (unknownAdapterCalled) { try { unknownAdapterLog.wait(); } catch (InterruptedException e) { } } unknownAdapterCalled = true; try { successful = the_activator().unknown_adapter(this, POAUtil.unmaskStr(adapter_name)); } finally { unknownAdapterCalled = false; unknownAdapterLog.notifyAll(); } } } else { /* ORB_CTRL_MODEL */ successful = the_activator().unknown_adapter(this, POAUtil.unmaskStr(adapter_name)); } /* unknown_adapter doesn't return until the poa is created and initialized */ if (successful) { if ((child = (POA) childs.get(adapter_name)) == null) { throw new POAInternalError("error: unknown_adapter returns true, but the child poa doesn't extist"); } } else { throw new org.omg.CORBA.OBJECT_NOT_EXIST("poa activation is failed"); } } return child; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a74dc4ac69615c8e503cb9145c3594f1702d4c75/POA.java/buggy/src/org/jacorb/poa/POA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 31390, 16640, 18, 1631, 69, 18, 2419, 37, 389, 588, 1763, 2419, 37, 12, 514, 4516, 67, 529, 262, 540, 1216, 9520, 2520, 20586, 310, 377, 288, 3639, 866, 6305, 313, 4062, 1294, 2938, 261, 1769, 13491, 13803, 37, 1151, 273, 261, 2419, 37, 13, 21619, 18, 588, 12, 10204, 67, 529, 1769, 3639, 309, 261, 3624, 422, 446, 747, 1151, 18, 291, 6305, 313, 4062, 1294, 2938, 10756, 540, 288, 4766, 565, 309, 261, 10204, 12241, 639, 422, 446, 13, 1171, 604, 394, 2358, 18, 362, 75, 18, 9428, 12536, 18, 9422, 67, 4400, 67, 11838, 2932, 2135, 4516, 5981, 639, 1704, 364, 315, 397, 4766, 12900, 4516, 67, 529, 1769, 28524, 4766, 5411, 309, 261, 291, 20586, 310, 10756, 1171, 604, 394, 9520, 2520, 20586, 310, 5621, 5411, 309, 261, 291, 14185, 310, 10756, 1171, 604, 394, 2358, 18, 362, 75, 18, 9428, 12536, 18, 28412, 2932, 69, 982, 8275, 69, 353, 316, 10388, 310, 919, 8863, 5411, 309, 261, 291, 24384, 10756, 1171, 604, 394, 2358, 18, 362, 75, 18, 9428, 12536, 18, 24547, 67, 1880, 37, 1856, 654, 2932, 69, 982, 8275, 69, 353, 316, 16838, 919, 8863, 5411, 1748, 8275, 69, 1410, 506, 2695, 1195, 5411, 1250, 6873, 273, 629, 31, 28524, 18701, 309, 261, 291, 5281, 3830, 1488, 10756, 2398, 288, 7734, 1748, 777, 27849, 392, 4516, 5981, 639, 854, 5343, 10402, 309, 326, 2202, 2650, 938, 353, 316, 999, 1195, 4766, 8227, 3852, 261, 8172, 4216, 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, 2358, 18, 31390, 16640, 18, 1631, 69, 18, 2419, 37, 389, 588, 1763, 2419, 37, 12, 514, 4516, 67, 529, 262, 540, 1216, 9520, 2520, 20586, 310, 377, 288, 3639, 866, 6305, 313, 4062, 1294, 2938, 261, 1769, 13491, 13803, 37, 1151, 273, 261, 2419, 37, 13, 21619, 18, 588, 12, 10204, 67, 529, 1769, 3639, 309, 261, 3624, 422, 446, 747, 1151, 18, 291, 6305, 313, 4062, 1294, 2938, 10756, 540, 288, 4766, 565, 309, 261, 10204, 12241, 639, 422, 446, 13, 1171, 604, 394, 2358, 18, 362, 75, 18, 9428, 12536, 18, 9422, 67, 4400, 67, 11838, 2932, 2135, 4516, 5981, 639, 1704, 364, 315, 397, 4766, 12900, 4516, 67, 529, 1769, 28524, 4766, 5411, 2 ]
String src = img[0].getSource(); WebResponse responseImg = getResponse( src + "&srcOnly=true"); assertEquals("Image", Consts.DEFAULT_IMAGE_NAME_PREFIX + "ok.gif" , responseImg.getText());
String src = img[0].getSource(); WebResponse responseImg = getResponse(src + "&srcOnly=true"); assertEquals("Image", Consts.DEFAULT_IMAGE_NAME_PREFIX + "ok.png", responseImg.getText());
public void testValidateOnly() throws Exception { WebResponse response = getResponse(); WebImage[] img = response.getImages(); assertEquals("Expected 1 image in result.", 1, img.length); assertEquals("Expected my name Page Validation", "Page Validation", img[0].getAltText()); WebTable[] tables = response.getTables(); assertEquals("Expected 1 table in result.", 1, tables.length); String RequestID1 = response.getNewCookieValue(Consts.ATTRIBUTE_REQUEST_ID); assertEquals("Expected RequestID in Cookie.", RequestID1, tables[0].getSummary()); response = getResponse(); tables = response.getTables(); assertEquals("Expected 1 table in result.", 1, tables.length); String RequestID2 = response.getNewCookieValue(Consts.ATTRIBUTE_REQUEST_ID); assertEquals("Expected Next RequestID in Cookie", RequestID2, tables[0].getSummary()); assertFalse("Expected Different RequestID in Cookie", RequestID2.equals(RequestID1)); String src = img[0].getSource(); WebResponse responseImg = getResponse( src + "&srcOnly=true"); assertEquals("Image", Consts.DEFAULT_IMAGE_NAME_PREFIX + "ok.gif" , responseImg.getText()); }
53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/48ba85e12dae361be74b9faa8225f7e118b83737/ValidationOKTest.java/buggy/jtidyservlet/src/test/org/w3c/tidy/servlet/ValidationOKTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4270, 3386, 1435, 1216, 1185, 565, 288, 3639, 2999, 1064, 766, 273, 225, 6476, 5621, 3639, 2999, 2040, 8526, 3774, 273, 766, 18, 588, 8946, 5621, 3639, 1815, 8867, 2932, 6861, 404, 1316, 316, 563, 1199, 16, 404, 16, 3774, 18, 2469, 1769, 3639, 1815, 8867, 2932, 6861, 3399, 508, 3460, 5684, 3113, 315, 1964, 5684, 3113, 3774, 63, 20, 8009, 588, 10655, 1528, 10663, 3639, 2999, 1388, 8526, 4606, 273, 766, 18, 588, 6905, 5621, 3639, 1815, 8867, 2932, 6861, 404, 1014, 316, 563, 1199, 16, 404, 16, 4606, 18, 2469, 1769, 3639, 514, 1567, 734, 21, 273, 766, 18, 588, 1908, 6151, 620, 12, 21543, 18, 11616, 67, 5519, 67, 734, 1769, 3639, 1815, 8867, 2932, 6861, 1567, 734, 316, 10201, 1199, 16, 1567, 734, 21, 16, 4606, 63, 20, 8009, 588, 4733, 10663, 7734, 766, 273, 225, 6476, 5621, 3639, 4606, 273, 766, 18, 588, 6905, 5621, 3639, 1815, 8867, 2932, 6861, 404, 1014, 316, 563, 1199, 16, 404, 16, 4606, 18, 2469, 1769, 3639, 514, 1567, 734, 22, 273, 766, 18, 588, 1908, 6151, 620, 12, 21543, 18, 11616, 67, 5519, 67, 734, 1769, 3639, 1815, 8867, 2932, 6861, 4804, 1567, 734, 316, 10201, 3113, 1567, 734, 22, 16, 4606, 63, 20, 8009, 588, 4733, 10663, 3639, 1815, 8381, 2932, 6861, 21104, 3518, 1567, 734, 316, 10201, 3113, 1567, 734, 22, 18, 14963, 12, 691, 734, 21, 10019, 3639, 514, 1705, 273, 3774, 63, 20, 8009, 588, 1830, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4270, 3386, 1435, 1216, 1185, 565, 288, 3639, 2999, 1064, 766, 273, 225, 6476, 5621, 3639, 2999, 2040, 8526, 3774, 273, 766, 18, 588, 8946, 5621, 3639, 1815, 8867, 2932, 6861, 404, 1316, 316, 563, 1199, 16, 404, 16, 3774, 18, 2469, 1769, 3639, 1815, 8867, 2932, 6861, 3399, 508, 3460, 5684, 3113, 315, 1964, 5684, 3113, 3774, 63, 20, 8009, 588, 10655, 1528, 10663, 3639, 2999, 1388, 8526, 4606, 273, 766, 18, 588, 6905, 5621, 3639, 1815, 8867, 2932, 6861, 404, 1014, 316, 563, 1199, 16, 404, 16, 4606, 18, 2469, 1769, 3639, 514, 1567, 734, 21, 273, 766, 18, 588, 1908, 6151, 620, 12, 21543, 18, 11616, 67, 5519, 67, 734, 1769, 3639, 2 ]
return getTestsSupport().hasExtension(extension, this);
return SVGTestsSupport.hasExtension(extension, this);
public boolean hasExtension(String extension) { return getTestsSupport().hasExtension(extension, this); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/c91b2fb5364b1bf541875570f744ed45f27d936e/SVGOMSVGElement.java/clean/sources/org/apache/batik/dom/svg/SVGOMSVGElement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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 3625, 12, 780, 2710, 13, 288, 3639, 327, 11281, 14650, 6289, 18, 5332, 3625, 12, 6447, 16, 333, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
jfritz.getPhonebook().saveToXMLFile(JFritz.PHONEBOOK_FILE);
jfritz.getPhonebook().saveToXMLFile(JFritz.SAVE_DIR + JFritz.PHONEBOOK_FILE);
public void run() { Debug.msg("Show Outlook-Import-Dialog"); //$NON-NLS-1$ toFront(); setSize(400, 500); this.getContentPane().setLayout(null); setBackground(Color.white); JPanel jPanel = new JPanel(); jPanel.setBounds(0, 0, 400, 500); jPanel.setLayout(null); JLabel jLab = new JLabel(JFritz.getMessage("importing_outlook_contacts")); //$NON-NLS-1$ jLab.setFont(new Font(null, 1, 22)); jLab.setBounds(10, 0, 380, 80); jPanel.add(jLab); Dispatch myFolder = init(); Dispatch items = Dispatch.get(myFolder, "Items").toDispatch(); //$NON-NLS-1$ int count = Dispatch.call(items, "Count").toInt(); //$NON-NLS-1$ JPanel jPan = new JPanel(new GridLayout(count, 1)); jPan.setBackground(Color.white); JScrollPane jsp = new JScrollPane(jPan); jsp.setBounds(20, 80, 350, 325); jPanel.add(jsp); getContentPane().add(jPanel); setLocationRelativeTo(jfritz.getJframe()); setVisible(true); Debug.msg("Importing..."); //$NON-NLS-1$ int entriesImported = 0; for (int i = 1; i <= count; i++) { boolean hasTel = false; Dispatch item = Dispatch.call(items, "Item", new Integer(i)) //$NON-NLS-1$ .toDispatch(); Person newContact = new Person(); for (oElements = outlookElements.elements(); oElements .hasMoreElements();) try { String strName = oElements.nextElement().toString(); String strValue = Dispatch.get(item, strName).toString(); if (strName.equals("FullName")) { //$NON-NLS-1$ jPan.add(new JLabel(" " + strValue)); //$NON-NLS-1$ jPan.updateUI(); } if (!strValue.equals("") //$NON-NLS-1$ && ((strName.equals("BusinessTelephoneNumber") //$NON-NLS-1$ || strName.equals("Business2TelephoneNumber") //$NON-NLS-1$ || strName.equals("HomeTelephoneNumber") //$NON-NLS-1$ || strName.equals("Home2TelephoneNumber") //$NON-NLS-1$ || strName.equals("MobileTelephoneNumber") //$NON-NLS-1$ || strName.equals("CarTelephoneNumber") //$NON-NLS-1$ || strName.equals("RadioTelephoneNumber") //$NON-NLS-1$ || strName.equals("PrimaryTelephoneNumber") //$NON-NLS-1$ || strName.equals("CallbackTelephoneNumber") //$NON-NLS-1$ || strName.equals("AssistantTelephoneNumber") //$NON-NLS-1$ || strName.equals("CompanyMainTelephoneNumber") //$NON-NLS-1$ || strName.equals("OtherTelephoneNumber")))) { //$NON-NLS-1$ hasTel = true; } /** * if (strName.equals("HasPicture") && * strValue.equals("-1")) contact.addContent((new * Element("Picture")) .addContent(new * Text(getContactPic(item)))); */ if (strName.equals("FirstName")) { //$NON-NLS-1$ newContact.setFirstName(strValue); } else if (strName.equals("LastName")) { //$NON-NLS-1$ newContact.setLastName(strValue); } else if (strName.equals("MiddleName")) { //$NON-NLS-1$ newContact.setCompany(strValue); } else if (strName.equals("HomeAddressStreet")) { //$NON-NLS-1$ newContact.setStreet(strValue); } else if (strName.equals("HomeAddressPostalCode")) { //$NON-NLS-1$ newContact.setPostalCode(strValue); } else if (strName.equals("HomeAddressCity")) { //$NON-NLS-1$ newContact.setCity(strValue); } else if (strName.equals("HomeTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact.addNumber(new PhoneNumber(strValue, "home")); //$NON-NLS-1$ } else if (strName.equals("Home2TelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact.addNumber(new PhoneNumber(strValue, "home")); //$NON-NLS-1$ } else if (strName.equals("PrimaryTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact.addNumber(new PhoneNumber(strValue, "home")); //$NON-NLS-1$ } else if (strName.equals("MobileTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "mobile")); //$NON-NLS-1$ } else if (strName.equals("BusinessTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact.addNumber(new PhoneNumber(strValue, "business")); //$NON-NLS-1$ } else if (strName.equals("Business2TelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact.addNumber(new PhoneNumber(strValue, "business")); //$NON-NLS-1$ } else if (strName.equals("RadioTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } else if (strName.equals("CarTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } else if (strName.equals("CallbackTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } else if (strName.equals("AssistantTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } else if (strName.equals("CompanyMainTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } else if (strName.equals("OtherTelephoneNumber") //$NON-NLS-1$ && (!strValue.equals(""))) { //$NON-NLS-1$ newContact .addNumber(new PhoneNumber(strValue, "other")); //$NON-NLS-1$ } } catch (Exception exception1) { } if (hasTel) { jfritz.getPhonebook().addEntry(newContact); entriesImported++; } } if (entriesImported > 0) { jfritz.getPhonebook().saveToXMLFile(JFritz.PHONEBOOK_FILE); } Debug.msg("Import done, " + entriesImported + " entries imported"); //$NON-NLS-1$, //$NON-NLS-2$ JButton jButton = new JButton(JFritz.getMessage("okay")); //$NON-NLS-1$ //set default confirm button (Enter) this.getRootPane().setDefaultButton(jButton); jButton.addActionListener(this); jButton.setBounds(160, 425, 80, 25); jPanel.add(jButton); jPanel.updateUI(); }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/a2afb8d40fbdb48400402032c6c2194ee2436fb7/ImportOutlookContacts.java/buggy/jfritz/src/de/moonflower/jfritz/utils/ImportOutlookContacts.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 4015, 18, 3576, 2932, 5706, 2976, 7330, 17, 5010, 17, 6353, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 358, 9580, 5621, 3639, 19106, 12, 16010, 16, 6604, 1769, 3639, 333, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2011, 1769, 3639, 31217, 12, 2957, 18, 14739, 1769, 3639, 24048, 17871, 273, 394, 24048, 5621, 3639, 17871, 18, 542, 5694, 12, 20, 16, 374, 16, 7409, 16, 6604, 1769, 3639, 17871, 18, 542, 3744, 12, 2011, 1769, 3639, 21403, 525, 14506, 273, 394, 21403, 12, 46, 42, 583, 94, 18, 24906, 2932, 5666, 310, 67, 659, 7330, 67, 20777, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 525, 14506, 18, 542, 5711, 12, 2704, 10063, 12, 2011, 16, 404, 16, 11201, 10019, 3639, 525, 14506, 18, 542, 5694, 12, 2163, 16, 374, 16, 890, 3672, 16, 8958, 1769, 3639, 17871, 18, 1289, 12, 78, 14506, 1769, 3639, 11552, 3399, 3899, 273, 1208, 5621, 3639, 11552, 1516, 273, 11552, 18, 588, 12, 4811, 3899, 16, 315, 3126, 20387, 869, 5325, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 509, 1056, 273, 11552, 18, 1991, 12, 3319, 16, 315, 1380, 20387, 869, 1702, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 24048, 525, 4069, 273, 394, 24048, 12, 2704, 7145, 3744, 12, 1883, 16, 404, 10019, 3639, 525, 4069, 18, 542, 8199, 12, 2957, 18, 14739, 1769, 3639, 804, 26360, 22535, 273, 394, 804, 26360, 12, 78, 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, 1086, 1435, 288, 3639, 4015, 18, 3576, 2932, 5706, 2976, 7330, 17, 5010, 17, 6353, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 358, 9580, 5621, 3639, 19106, 12, 16010, 16, 6604, 1769, 3639, 333, 18, 588, 1350, 8485, 7675, 542, 3744, 12, 2011, 1769, 3639, 31217, 12, 2957, 18, 14739, 1769, 3639, 24048, 17871, 273, 394, 24048, 5621, 3639, 17871, 18, 542, 5694, 12, 20, 16, 374, 16, 7409, 16, 6604, 1769, 3639, 17871, 18, 542, 3744, 12, 2011, 1769, 3639, 21403, 525, 14506, 273, 394, 21403, 12, 46, 42, 583, 94, 18, 24906, 2932, 5666, 310, 67, 659, 7330, 67, 20777, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 525, 14506, 2 ]
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/4d22840dae349fccc763d621c45be8eacebe533e/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 31087, 1676, 4137, 87, 1435, 202, 95, 202, 202, 6494, 1392, 1685, 4137, 273, 629, 31, 202, 202, 1884, 261, 4498, 1400, 273, 389, 4660, 682, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 202, 202, 95, 1082, 202, 20565, 4137, 314, 273, 261, 20565, 4137, 13, 1400, 18, 4285, 5621, 25083, 202, 921, 8526, 6928, 273, 314, 18, 588, 13371, 7675, 31447, 5621, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 6928, 18, 2469, 31, 277, 9904, 262, 1082, 202, 95, 9506, 202, 5368, 329, 20565, 6475, 331, 273, 261, 5368, 329, 20565, 6475, 13, 17476, 63, 277, 308, 31, 9506, 202, 759, 4163, 777, 6928, 716, 854, 787, 2199, 261, 7570, 67, 8744, 13, 9506, 202, 430, 261, 331, 18, 588, 1299, 18268, 12, 18210, 67, 3297, 262, 18, 14963, 12, 10485, 67, 8744, 262, 262, 9506, 202, 95, 6862, 202, 921, 8526, 5231, 273, 331, 18, 588, 1182, 10697, 7675, 31447, 5621, 6862, 202, 430, 261, 5231, 18, 2469, 480, 404, 262, 6862, 202, 95, 25083, 202, 12849, 394, 3235, 12, 315, 37, 787, 14003, 848, 1338, 1240, 1245, 596, 3591, 16, 2324, 316, 585, 30, 315, 397, 314, 18, 588, 1299, 18268, 12, 7527, 67, 3297, 262, 11272, 6862, 202, 97, 6862, 202, 5368, 329, 20565, 6098, 3591, 273, 261, 5368, 329, 20565, 6098, 13, 8746, 63, 374, 308, 31, 6862, 202, 75, 18, 1289, 1299, 18268, 12, 18210, 67, 3297, 16, 3591, 18, 588, 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, 31087, 1676, 4137, 87, 1435, 202, 95, 202, 202, 6494, 1392, 1685, 4137, 273, 629, 31, 202, 202, 1884, 261, 4498, 1400, 273, 389, 4660, 682, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 202, 202, 95, 1082, 202, 20565, 4137, 314, 273, 261, 20565, 4137, 13, 1400, 18, 4285, 5621, 25083, 202, 921, 8526, 6928, 273, 314, 18, 588, 13371, 7675, 31447, 5621, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 6928, 18, 2469, 31, 277, 9904, 262, 1082, 202, 95, 9506, 202, 5368, 329, 20565, 6475, 331, 273, 261, 5368, 329, 20565, 6475, 13, 17476, 63, 277, 308, 31, 9506, 202, 759, 4163, 777, 6928, 716, 854, 787, 2199, 2 ]
assertNotSame(m1,m2); assertEquals(m1.getSubject(),"new text 1"); assertEquals(m2.getSubject(),"new text 2");
assertNotSame(m1, m2); assertEquals(m1.getSubject(), "new text 1"); assertEquals(m2.getSubject(), "new text 2");
public void testCopyOnWrite() throws IOException, MessagingException { linearProcessor.setSpool(new MockSpoolRepository()); Matcher recipientIs = new RecipientIs(); recipientIs.init(new DummyMatcherConfig("rec1@domain.com")); Matcher all = new All(); all.init(new DummyMatcherConfig("")); Mailet changeBody = new MyMailet(); Mailet changeBody2 = new MyMailet(); changeBody.init(mockMailetConfig); changeBody2.init(mockMailetConfig); Mailet dumpSystemErr = new DumpSystemErr(); changeBody.init(mockMailetConfig); checkerMailet = new CheckerMailet(); linearProcessor.openProcessorList(); linearProcessor.add(recipientIs,changeBody); linearProcessor.add(all,changeBody); linearProcessor.add(all,dumpSystemErr); linearProcessor.add(all,checkerMailet); linearProcessor.closeProcessorLists(); Collection recipients = new ArrayList(); recipients.add(new MailAddress("rec1","domain.com")); recipients.add(new MailAddress("rec2","domain.com")); try { MailImpl m = new MailImpl("mail1",new MailAddress("sender","domain.com"),recipients,mimeMessage); linearProcessor.service(m); ArrayList a = checkerMailet.receivedMails; assertEquals(2,a.size()); MimeMessage m1 = ((Mail) a.get(0)).getMessage(); MimeMessage m2 = ((Mail) a.get(1)).getMessage(); assertNotSame(m1,m2); assertEquals(m1.getSubject(),"new text 1"); assertEquals(m2.getSubject(),"new text 2"); m.dispose(); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6989849378482869552fed286d5ab85cdd35900b/LinearProcessorTest.java/buggy/trunk/src/test/org/apache/james/transport/LinearProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2951, 1398, 3067, 1435, 1216, 1860, 16, 23794, 503, 288, 3639, 9103, 5164, 18, 542, 3389, 1371, 12, 2704, 7867, 3389, 1371, 3305, 10663, 3639, 9757, 8027, 2520, 273, 394, 23550, 2520, 5621, 3639, 8027, 2520, 18, 2738, 12, 2704, 28622, 6286, 809, 2932, 3927, 21, 36, 4308, 18, 832, 7923, 1769, 7734, 9757, 777, 273, 394, 4826, 5621, 3639, 777, 18, 2738, 12, 2704, 28622, 6286, 809, 2932, 7923, 1769, 7734, 11542, 278, 2549, 2250, 273, 394, 8005, 6759, 278, 5621, 3639, 11542, 278, 2549, 2250, 22, 273, 394, 8005, 6759, 278, 5621, 3639, 2549, 2250, 18, 2738, 12, 22851, 6759, 278, 809, 1769, 3639, 2549, 2250, 22, 18, 2738, 12, 22851, 6759, 278, 809, 1769, 7734, 11542, 278, 4657, 3163, 2524, 273, 394, 18242, 3163, 2524, 5621, 3639, 2549, 2250, 18, 2738, 12, 22851, 6759, 278, 809, 1769, 7734, 12489, 6759, 278, 273, 394, 31577, 6759, 278, 5621, 3639, 9103, 5164, 18, 3190, 5164, 682, 5621, 3639, 9103, 5164, 18, 1289, 12, 20367, 2520, 16, 3427, 2250, 1769, 3639, 9103, 5164, 18, 1289, 12, 454, 16, 3427, 2250, 1769, 3639, 9103, 5164, 18, 1289, 12, 454, 16, 8481, 3163, 2524, 1769, 3639, 9103, 5164, 18, 1289, 12, 454, 16, 19243, 6759, 278, 1769, 3639, 9103, 5164, 18, 4412, 5164, 7432, 5621, 3639, 2200, 12045, 273, 394, 2407, 5621, 3639, 12045, 18, 1289, 12, 2704, 11542, 1887, 2932, 3927, 21, 15937, 4308, 18, 832, 7923, 1769, 3639, 12045, 18, 1289, 12, 2704, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2951, 1398, 3067, 1435, 1216, 1860, 16, 23794, 503, 288, 3639, 9103, 5164, 18, 542, 3389, 1371, 12, 2704, 7867, 3389, 1371, 3305, 10663, 3639, 9757, 8027, 2520, 273, 394, 23550, 2520, 5621, 3639, 8027, 2520, 18, 2738, 12, 2704, 28622, 6286, 809, 2932, 3927, 21, 36, 4308, 18, 832, 7923, 1769, 7734, 9757, 777, 273, 394, 4826, 5621, 3639, 777, 18, 2738, 12, 2704, 28622, 6286, 809, 2932, 7923, 1769, 7734, 11542, 278, 2549, 2250, 273, 394, 8005, 6759, 278, 5621, 3639, 11542, 278, 2549, 2250, 22, 273, 394, 8005, 6759, 278, 5621, 3639, 2549, 2250, 18, 2738, 12, 22851, 6759, 278, 809, 1769, 3639, 2549, 2250, 22, 18, 2738, 12, 22851, 6759, 278, 2 ]
baseUrl = originatingUrl_;
baseUrl = webResponse_.getUrl();
public URL getFullyQualifiedUrl( final String relativeUrl ) throws MalformedURLException { final List baseElements = getDocumentElement().getHtmlElementsByTagNames( Collections.singletonList("base")); final URL baseUrl; if( baseElements.isEmpty() ) { baseUrl = originatingUrl_; } else { final HtmlBase htmlBase = (HtmlBase)baseElements.get(0); final String href = htmlBase.getHrefAttribute(); if (href == null || href.length() == 0) { baseUrl = originatingUrl_; } else { baseUrl = new URL(href); } } return WebClient.expandUrl( baseUrl, relativeUrl ); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/278d9a210ae748519c8779570f0c45d33f248be6/HtmlPage.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1976, 10208, 93, 8708, 1489, 12, 727, 514, 3632, 1489, 262, 3639, 1216, 20710, 288, 3639, 727, 987, 1026, 3471, 273, 9956, 1046, 7675, 588, 4353, 3471, 29309, 1557, 12, 5737, 18, 24487, 682, 2932, 1969, 7923, 1769, 3639, 727, 1976, 9818, 31, 3639, 309, 12, 1026, 3471, 18, 291, 1921, 1435, 262, 288, 5411, 9818, 273, 3311, 1064, 27799, 588, 1489, 5621, 3639, 289, 3639, 469, 288, 5411, 727, 5430, 2171, 1729, 2171, 273, 261, 4353, 2171, 13, 1969, 3471, 18, 588, 12, 20, 1769, 5411, 727, 514, 3897, 273, 1729, 2171, 18, 588, 15962, 1499, 5621, 5411, 309, 261, 7547, 422, 446, 747, 3897, 18, 2469, 1435, 422, 374, 13, 288, 7734, 9818, 273, 3311, 1064, 27799, 588, 1489, 5621, 5411, 289, 5411, 469, 288, 7734, 9818, 273, 394, 1976, 12, 7547, 1769, 5411, 289, 3639, 289, 3639, 327, 2999, 1227, 18, 12320, 1489, 12, 9818, 16, 3632, 1489, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1976, 10208, 93, 8708, 1489, 12, 727, 514, 3632, 1489, 262, 3639, 1216, 20710, 288, 3639, 727, 987, 1026, 3471, 273, 9956, 1046, 7675, 588, 4353, 3471, 29309, 1557, 12, 5737, 18, 24487, 682, 2932, 1969, 7923, 1769, 3639, 727, 1976, 9818, 31, 3639, 309, 12, 1026, 3471, 18, 291, 1921, 1435, 262, 288, 5411, 9818, 273, 3311, 1064, 27799, 588, 1489, 5621, 3639, 289, 3639, 469, 288, 5411, 727, 5430, 2171, 1729, 2171, 273, 261, 4353, 2171, 13, 1969, 3471, 18, 588, 12, 20, 1769, 5411, 727, 514, 3897, 273, 1729, 2171, 18, 588, 15962, 1499, 5621, 5411, 309, 261, 7547, 422, 446, 747, 3897, 18, 2469, 1435, 422, 374, 13, 288, 7734, 9818, 273, 3311, 2 ]
System.out.println("Range: x=" + selRange.x + "; y=" + selRange.y);
public void run() { PerlEditor editor = getEditor(); Point selRange = editor.getViewer().getSelectedRange(); IDocument myDoc = editor.getViewer().getDocument(); // It would be nice to toggle comment in a rewrite session // to avoid wasteful and slow reparsing in PerlPartitioner // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=121320 // for why it seems unpractical. System.out.println("Range: x=" + selRange.x + "; y=" + selRange.y); try { int line2 = 0; if (selRange.y > 0) { line2 = myDoc.getLineOfOffset(selRange.x + selRange.y - 1); } else { line2 = myDoc.getLineOfOffset(selRange.x + selRange.y); } boolean noCommentFound = true; for (int i = myDoc.getLineOfOffset(selRange.x); i <= line2 && noCommentFound; i++) { /*System.out.println("Line: " + myDoc.getLineOffset(i) + "; Lnge=" + myDoc.getLineLength(i) + "; 1. zwei Zeichen=" + myDoc.getChar(myDoc.getLineOffset(i)) + myDoc.getChar(myDoc.getLineOffset(i) + 1));*/ if (myDoc.getChar(myDoc.getLineOffset(i)) != '#') { noCommentFound = false; } } Action action; if (noCommentFound) { action = new TextOperationAction( PerlEditorMessages.getResourceBundle(), "Uncomment.", editor, ITextOperationTarget.STRIP_PREFIX); } else { action = new TextOperationAction( PerlEditorMessages.getResourceBundle(), "Comment.", editor, ITextOperationTarget.PREFIX); } action.run(); } catch (BadLocationException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/a2a5a672d10e0c0ff2a86e111f4ee3cc394b34c0/ToggleCommentAction.java/buggy/org.epic.perleditor/src/org/epic/perleditor/actions/ToggleCommentAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 5722, 80, 6946, 4858, 273, 336, 6946, 5621, 3639, 4686, 357, 2655, 273, 4858, 18, 588, 18415, 7675, 588, 7416, 2655, 5621, 3639, 1599, 504, 650, 3399, 1759, 273, 4858, 18, 588, 18415, 7675, 588, 2519, 5621, 7734, 368, 2597, 4102, 506, 13752, 358, 10486, 2879, 316, 279, 10738, 1339, 3639, 368, 358, 4543, 341, 14725, 2706, 471, 11816, 283, 24979, 316, 5722, 80, 7003, 264, 3639, 368, 2164, 2333, 2207, 19381, 18, 20416, 18, 3341, 19, 19381, 19, 4500, 67, 925, 18, 19062, 35, 350, 33, 2138, 22152, 20, 3639, 368, 364, 11598, 518, 12001, 640, 84, 14266, 1706, 18, 7734, 775, 3639, 288, 5411, 509, 980, 22, 273, 374, 31, 5411, 309, 261, 1786, 2655, 18, 93, 405, 374, 13, 5411, 288, 7734, 980, 22, 273, 3399, 1759, 18, 588, 1670, 951, 2335, 12, 1786, 2655, 18, 92, 397, 357, 2655, 18, 93, 300, 404, 1769, 5411, 289, 5411, 469, 5411, 288, 7734, 980, 22, 273, 3399, 1759, 18, 588, 1670, 951, 2335, 12, 1786, 2655, 18, 92, 397, 357, 2655, 18, 93, 1769, 5411, 289, 5411, 1250, 1158, 4469, 2043, 273, 638, 31, 5411, 364, 261, 474, 277, 273, 3399, 1759, 18, 588, 1670, 951, 2335, 12, 1786, 2655, 18, 92, 1769, 1171, 277, 1648, 980, 22, 597, 1158, 4469, 2043, 31, 1171, 277, 27245, 5411, 288, 7734, 1748, 3163, 18, 659, 18, 8222, 2932, 1670, 30, 315, 397, 3399, 1759, 18, 588, 1670, 2335, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 5722, 80, 6946, 4858, 273, 336, 6946, 5621, 3639, 4686, 357, 2655, 273, 4858, 18, 588, 18415, 7675, 588, 7416, 2655, 5621, 3639, 1599, 504, 650, 3399, 1759, 273, 4858, 18, 588, 18415, 7675, 588, 2519, 5621, 7734, 368, 2597, 4102, 506, 13752, 358, 10486, 2879, 316, 279, 10738, 1339, 3639, 368, 358, 4543, 341, 14725, 2706, 471, 11816, 283, 24979, 316, 5722, 80, 7003, 264, 3639, 368, 2164, 2333, 2207, 19381, 18, 20416, 18, 3341, 19, 19381, 19, 4500, 67, 925, 18, 19062, 35, 350, 33, 2138, 22152, 20, 3639, 368, 364, 11598, 518, 12001, 640, 84, 14266, 1706, 18, 7734, 775, 3639, 288, 5411, 509, 980, 22, 273, 374, 2 ]
for (i = level;; ++i)
for (int i = level;; ++i)
public boolean availableSpells(final int level, final PCClass aClass, final String bookName, final boolean knownLearned, final boolean isSpecialtySpell, final PlayerCharacter aPC) { boolean available = false; final boolean isDivine = ("Divine".equalsIgnoreCase(aClass.getSpellType())); int knownTot; int knownNon; int knownSpec; int i; int memTot; int memNon; int memSpec; //int excTot int excNon; //int excTot int excSpec; int lowExcSpec = 0; int lowExcNon = 0; int goodExcSpec = 0; int goodExcNon = 0; for (i = 0; i < level; ++i) { // Get the number of castable slots if (knownLearned) { knownNon = aClass.getKnownForLevel(aClass.getLevel(), i, bookName, aPC); knownSpec = aClass.getSpecialtyKnownForLevel(aClass.getLevel(), i, aPC); knownTot = knownNon + knownSpec; // TODO: : value never used } else { // Get the number of castable slots knownTot = aClass.getCastForLevel(aClass.getLevel(), i, bookName, true, true, aPC); knownNon = aClass.getCastForLevel(aClass.getLevel(), i, bookName, false, true, aPC); knownSpec = knownTot - knownNon; } // Now get the number of spells memorized, total and specialties memTot = aClass.memorizedSpellForLevelBook(i, bookName); memSpec = aClass.memorizedSpecialtiesForLevelBook(i, bookName); memNon = memTot - memSpec; // Excess castings excSpec = knownSpec - memSpec; excNon = knownNon - memNon; // Now we spend these slots making up any deficits in lower levels // while ((excNon > 0) && (lowExcNon < 0)) { --excNon; ++lowExcNon; } while ((excSpec > 0) && (lowExcSpec < 0)) { --excSpec; ++lowExcSpec; } if (!isDivine || knownLearned) { // If I'm not divine, I can use non-specialty slots of this level // to take up the slack of my excess specialty spells from // lower levels. while ((excNon > 0) && (lowExcSpec < 0)) { --excNon; ++lowExcSpec; } // And I can use non-specialty slots of this level to take // up the slack of my excess specialty spells of this level. // while ((excNon > 0) && (excSpec < 0)) { --excNon; ++excSpec; } } // Now, if there are slots left over, I don't add them to the running totals. // Spell slots of this level won't help me at the next level. // Deficits, however, will have to be made up at the next level. // if (excSpec < 0) { lowExcSpec += excSpec; } if (excNon < 0) { lowExcNon += excNon; } } for (i = level;; ++i) { if (knownLearned) { knownNon = aClass.getKnownForLevel(aClass.getLevel(), i, bookName, aPC); knownSpec = aClass.getSpecialtyKnownForLevel(aClass.getLevel(), i, aPC); knownTot = knownNon + knownSpec; // for completeness } else { // Get the number of castable slots knownTot = aClass.getCastForLevel(aClass.getLevel(), i, bookName, true, true, aPC); knownNon = aClass.getCastForLevel(aClass.getLevel(), i, bookName, false, true, aPC); knownSpec = knownTot - knownNon; } // At the level currently being looped through, if the number of casts // is zero, that means we have reached a level beyond which no higher-level // casts are possible. Therefore, it's time to break. // if ((knownLearned && ((knownNon + knownSpec) == 0)) || (!knownLearned && (knownTot == 0))) { break; } // Now get the number of spells memorized, total and specialties memTot = aClass.memorizedSpellForLevelBook(i, bookName); memSpec = aClass.memorizedSpecialtiesForLevelBook(i, bookName); memNon = memTot - memSpec; // Excess castings excSpec = knownSpec - memSpec; excNon = knownNon - memNon; // Now we spend these slots making up any deficits in lower levels // while ((excNon > 0) && (lowExcNon < 0)) { --excNon; ++lowExcNon; } while ((excNon > 0) && (goodExcNon < 0)) { --excNon; ++goodExcNon; } while ((excSpec > 0) && (lowExcSpec < 0)) { --excSpec; ++lowExcSpec; } while ((excSpec > 0) && (goodExcSpec < 0)) { --excSpec; ++goodExcSpec; } if (!isDivine) { // If I'm not divine, I can use non-specialty slots of this level // to take up the slack of my excess specialty spells from // lower levels. while ((excNon > 0) && (lowExcSpec < 0)) { --excNon; ++lowExcSpec; } // And also for levels sufficiently high for the spell that got me // into this mess, but of lower level than the level currently // being calculated. while ((excNon > 0) && (goodExcSpec < 0)) { --excNon; ++goodExcSpec; } // And finally use non-specialty slots of this level to take // up the slack of excess specialty spells of this level. // while ((excNon > 0) && (excSpec < 0)) { --excNon; ++excSpec; } } // Right now, if there are slots left over at this level, // it means that there are slots left to add the spell that started // all of this. if (isDivine) { if (isSpecialtySpell && (excSpec > 0)) { available = true; } if (!isSpecialtySpell && (excNon > 0)) { available = true; } } else { if (!isSpecialtySpell && (excNon > 0)) { available = true; } if (isSpecialtySpell && ((excNon > 0) || (excSpec > 0))) { available = true; } } // If we found a slot, we need look no further. if (available) { break; } // Now, if there are slots left over, I don't add them to the running totals. // Spell slots of this level won't help me at the next level. // Deficits, however, will have to be made up at the next level. // if (excSpec < 0) { goodExcSpec += excSpec; } if (excNon < 0) { goodExcNon += excNon; } } return available; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/8ce24dae71e590a1255ba1449adf8b06f5a2b1b9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2319, 3389, 1165, 87, 12, 6385, 509, 1801, 16, 727, 26300, 797, 20148, 16, 727, 514, 6978, 461, 16, 727, 1250, 4846, 1682, 1303, 329, 16, 6862, 6862, 202, 6385, 1250, 353, 12193, 4098, 3389, 1165, 16, 727, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 6494, 2319, 273, 629, 31, 202, 202, 6385, 1250, 353, 7244, 558, 273, 7566, 7244, 558, 9654, 14963, 5556, 12, 69, 797, 18, 588, 3389, 1165, 559, 1435, 10019, 202, 202, 474, 4846, 18801, 31, 202, 202, 474, 4846, 3989, 31, 202, 202, 474, 4846, 1990, 31, 202, 202, 474, 277, 31, 202, 202, 474, 1663, 18801, 31, 202, 202, 474, 1663, 3989, 31, 202, 202, 474, 1663, 1990, 31, 202, 202, 759, 474, 3533, 18801, 202, 202, 474, 3533, 3989, 31, 202, 202, 759, 474, 3533, 18801, 202, 202, 474, 3533, 1990, 31, 202, 202, 474, 4587, 29924, 1990, 273, 374, 31, 202, 202, 474, 4587, 29924, 3989, 273, 374, 31, 202, 202, 474, 7494, 29924, 1990, 273, 374, 31, 202, 202, 474, 7494, 29924, 3989, 273, 374, 31, 202, 202, 1884, 261, 77, 273, 374, 31, 277, 411, 1801, 31, 965, 77, 13, 202, 202, 95, 1082, 202, 759, 968, 326, 1300, 434, 4812, 429, 12169, 1082, 202, 430, 261, 2994, 1682, 1303, 329, 13, 1082, 202, 95, 9506, 202, 2994, 3989, 273, 20148, 18, 588, 11925, 1290, 2355, 12, 69, 797, 18, 588, 2355, 9334, 277, 16, 6978, 461, 16, 279, 3513, 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, 482, 1250, 2319, 3389, 1165, 87, 12, 6385, 509, 1801, 16, 727, 26300, 797, 20148, 16, 727, 514, 6978, 461, 16, 727, 1250, 4846, 1682, 1303, 329, 16, 6862, 6862, 202, 6385, 1250, 353, 12193, 4098, 3389, 1165, 16, 727, 19185, 7069, 279, 3513, 13, 202, 95, 202, 202, 6494, 2319, 273, 629, 31, 202, 202, 6385, 1250, 353, 7244, 558, 273, 7566, 7244, 558, 9654, 14963, 5556, 12, 69, 797, 18, 588, 3389, 1165, 559, 1435, 10019, 202, 202, 474, 4846, 18801, 31, 202, 202, 474, 4846, 3989, 31, 202, 202, 474, 4846, 1990, 31, 202, 202, 474, 277, 31, 202, 202, 474, 1663, 18801, 31, 202, 202, 474, 1663, 3989, 31, 202, 202, 474, 1663, 2 ]
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource();
public quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { quickfix.field.PartyIDSource value = new quickfix.field.PartyIDSource();
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationACK.java/buggy/src/java/src/quickfix/fix43/AllocationACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 1689, 7325, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 1689, 7325, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 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 ]
throws TdsException, java.io.IOException { Object result;
throws TdsException, java.io.IOException { Object result;
private Object getCharValue(boolean wideChars, boolean outputParam) throws TdsException, java.io.IOException { Object result; boolean shortLen = (tdsVer == Tds.TDS70) && (wideChars || !outputParam); int len = shortLen ? comm.getTdsShort() : (comm.getByte() & 0xFF); // SAfe 2002-08-23 // TDS 7.0 no longer uses 0 length values as NULL if( tdsVer<TDS70 && len==0 || tdsVer==TDS70 && len==0xFFFF ) { result = null; } else if (len >= 0) { if (wideChars) { result = comm.getString(len/2, encoder); } else { result = encoder.getString(comm.getBytes(len, false), 0, len); } // SAfe 2002-08-23 // TDS 7.0 does not use the same logic, one space is one space if( tdsVer<TDS70 && " ".equals(result) ) { // In SQL trailing spaces are stripped from strings // MS SQLServer denotes a zero length string // as a single space. result = ""; } } else { throw new TdsConfused("String with length<0"); } return result; }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 1033, 23577, 620, 12, 6494, 14812, 7803, 16, 1250, 876, 786, 13, 1377, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 1033, 563, 31, 1377, 1250, 3025, 2891, 273, 261, 88, 2377, 3945, 422, 399, 2377, 18, 56, 3948, 7301, 13, 597, 261, 26767, 7803, 747, 401, 2844, 786, 1769, 1377, 509, 562, 273, 3025, 2891, 692, 1543, 18, 588, 56, 2377, 4897, 1435, 294, 261, 5702, 18, 588, 3216, 1435, 473, 374, 6356, 1769, 1377, 368, 17127, 3030, 4044, 22, 17, 6840, 17, 4366, 1377, 368, 399, 3948, 2371, 18, 20, 1158, 7144, 4692, 374, 769, 924, 487, 3206, 1377, 309, 12, 268, 2377, 3945, 32, 56, 3948, 7301, 597, 562, 631, 20, 747, 268, 2377, 3945, 631, 56, 3948, 7301, 597, 562, 631, 20, 21718, 262, 288, 1850, 563, 273, 446, 31, 1377, 289, 1377, 469, 309, 261, 1897, 1545, 374, 13, 288, 1850, 309, 261, 26767, 7803, 13, 288, 2868, 563, 273, 1543, 18, 588, 780, 12, 1897, 19, 22, 16, 7261, 1769, 1850, 289, 1850, 469, 288, 2868, 563, 273, 7261, 18, 588, 780, 12, 5702, 18, 588, 2160, 12, 1897, 16, 629, 3631, 374, 16, 562, 1769, 1850, 289, 1850, 368, 17127, 3030, 4044, 22, 17, 6840, 17, 4366, 1850, 368, 399, 3948, 2371, 18, 20, 1552, 486, 999, 326, 1967, 4058, 16, 1245, 3476, 353, 1245, 3476, 1850, 309, 12, 268, 2377, 3945, 32, 56, 3948, 7301, 597, 315, 3552, 14963, 12, 2088, 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, 565, 3238, 1033, 23577, 620, 12, 6494, 14812, 7803, 16, 1250, 876, 786, 13, 1377, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 1033, 563, 31, 1377, 1250, 3025, 2891, 273, 261, 88, 2377, 3945, 422, 399, 2377, 18, 56, 3948, 7301, 13, 597, 261, 26767, 7803, 747, 401, 2844, 786, 1769, 1377, 509, 562, 273, 3025, 2891, 692, 1543, 18, 588, 56, 2377, 4897, 1435, 294, 261, 5702, 18, 588, 3216, 1435, 473, 374, 6356, 1769, 1377, 368, 17127, 3030, 4044, 22, 17, 6840, 17, 4366, 1377, 368, 399, 3948, 2371, 18, 20, 1158, 7144, 4692, 374, 769, 924, 487, 3206, 1377, 309, 12, 268, 2377, 3945, 32, 56, 3948, 7301, 597, 562, 2 ]
jumpStack.clear();
private int resetForMethodEntry0(PreorderVisitor v) { if (DEBUG) System.out.println(" --- "); stack.clear(); jumpTarget = -1; lvValues.clear(); jumpStack.clear(); reachOnlyByBranch = false; seenTransferOfControl = false; String className = v.getClassName(); String signature = v.getMethodSig(); exceptionHandlers.clear(); Method m = v.getMethod(); Code code = m.getCode(); if (code != null) { CodeException[] exceptionTable = code.getExceptionTable(); if (exceptionTable != null) for(CodeException ex : exceptionTable) exceptionHandlers.set(ex.getHandlerPC()); } if (DEBUG) System.out.println(" --- " + className + " " + m.getName() + " " + signature); Type[] argTypes = Type.getArgumentTypes(signature); int reg = 0; if (!m.isStatic()) { Item it = new Item("L" + className+";"); it.isInitialParameter = true; it.registerNumber = reg; setLVValue( reg, it); reg += it.getSize(); } for (Type argType : argTypes) { Item it = new Item(argType.getSignature()); it.registerNumber = reg; it.isInitialParameter = true; setLVValue(reg, it); reg += it.getSize(); } return reg; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/da5e1f1b305e47277e6d4a9ddb7068801295cb66/OpcodeStack.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 2715, 1290, 1305, 1622, 20, 12, 1386, 1019, 7413, 331, 13, 288, 202, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 9948, 315, 1769, 3196, 202, 3772, 18, 8507, 5621, 202, 202, 24574, 2326, 273, 300, 21, 31, 3196, 202, 3070, 1972, 18, 8507, 5621, 202, 202, 24574, 2624, 18, 8507, 5621, 202, 202, 12974, 3386, 858, 7108, 273, 629, 31, 202, 202, 15156, 5912, 951, 3367, 273, 629, 31, 202, 202, 780, 2658, 273, 331, 18, 588, 3834, 5621, 1082, 202, 780, 3372, 273, 331, 18, 588, 1305, 8267, 5621, 202, 202, 4064, 6919, 18, 8507, 5621, 3196, 202, 1305, 312, 273, 331, 18, 588, 1305, 5621, 3196, 202, 1085, 981, 273, 312, 18, 588, 1085, 5621, 202, 202, 430, 261, 710, 480, 446, 13, 3196, 288, 1082, 202, 1085, 503, 8526, 1520, 1388, 273, 981, 18, 588, 503, 1388, 5621, 1082, 202, 430, 261, 4064, 1388, 480, 446, 13, 9506, 202, 1884, 12, 1085, 503, 431, 294, 1520, 1388, 13, 4405, 202, 4064, 6919, 18, 542, 12, 338, 18, 588, 1503, 3513, 10663, 202, 202, 97, 202, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 9948, 315, 397, 2658, 4697, 202, 15, 315, 315, 397, 312, 18, 17994, 1435, 397, 315, 315, 397, 3372, 1769, 202, 202, 559, 8526, 30973, 273, 1412, 18, 588, 1379, 2016, 12, 8195, 1769, 202, 202, 474, 960, 273, 374, 31, 202, 202, 430, 16051, 81, 18, 291, 5788, 10756, 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, 509, 2715, 1290, 1305, 1622, 20, 12, 1386, 1019, 7413, 331, 13, 288, 202, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 9948, 315, 1769, 3196, 202, 3772, 18, 8507, 5621, 202, 202, 24574, 2326, 273, 300, 21, 31, 3196, 202, 3070, 1972, 18, 8507, 5621, 202, 202, 24574, 2624, 18, 8507, 5621, 202, 202, 12974, 3386, 858, 7108, 273, 629, 31, 202, 202, 15156, 5912, 951, 3367, 273, 629, 31, 202, 202, 780, 2658, 273, 331, 18, 588, 3834, 5621, 1082, 202, 780, 3372, 273, 331, 18, 588, 1305, 8267, 5621, 202, 202, 4064, 6919, 18, 8507, 5621, 3196, 202, 1305, 312, 273, 331, 18, 588, 1305, 5621, 3196, 202, 1085, 981, 2 ]
assertStatusContains(parser.getStatus(), "Parameter has no name");
StatusCheck.assertStatusContains(parser.getStatus(), "Parameter has no name");
public void testParamNoName() { assertNotNull(parseTestFile("ParamNoName.xml")); assertEquals(IStatus.WARNING, parser.getStatus().getSeverity()); assertStatusContains(parser.getStatus(), "Parameter has no name"); }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/d0e465b219e69c0f5651f0f117339d9894cd4bef/TestCompositeParser.java/buggy/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/composite/TestCompositeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 786, 2279, 461, 1435, 288, 202, 202, 11231, 5962, 12, 2670, 4709, 812, 2932, 786, 2279, 461, 18, 2902, 7923, 1769, 202, 202, 11231, 8867, 12, 45, 1482, 18, 9511, 16, 2082, 18, 588, 1482, 7675, 588, 21630, 10663, 202, 202, 11231, 1482, 10846, 12, 4288, 18, 588, 1482, 9334, 315, 1662, 711, 1158, 508, 8863, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 786, 2279, 461, 1435, 288, 202, 202, 11231, 5962, 12, 2670, 4709, 812, 2932, 786, 2279, 461, 18, 2902, 7923, 1769, 202, 202, 11231, 8867, 12, 45, 1482, 18, 9511, 16, 2082, 18, 588, 1482, 7675, 588, 21630, 10663, 202, 202, 11231, 1482, 10846, 12, 4288, 18, 588, 1482, 9334, 315, 1662, 711, 1158, 508, 8863, 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 ]
MarkerList markerList = MarkerList.compute(getFilters(),
MarkerList markerList = MarkerList.compute(getEnabledFilters(),
private void internalRefresh(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { int markerLimit = getMarkerLimit(); monitor .beginTask( MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); haltTableUpdates(); IJobManager jobMan = Platform.getJobManager(); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); try { monitor.subTask(WAITING_FOR_WORKSPACE_CHANGES_TO_FINISH); jobMan.beginRule(root, monitor); if (monitor.isCanceled()) { return; } monitor.subTask(SEARCHING_FOR_MARKERS); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); MarkerList markerList = MarkerList.compute(getFilters(), subMonitor, true); if (monitor.isCanceled()) { return; } if (markerCountDirty) { monitor.subTask(REFRESHING_MARKER_COUNTS); totalMarkers = MarkerList.compute(getMarkerTypes()).length; markerCountDirty = false; } currentMarkers = markerList; } catch (CoreException e) { throw new InvocationTargetException(e); } finally { jobMan.endRule(root); } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. Collection markers = Arrays.asList(currentMarkers.toArray()); if (markerLimit != -1) { monitor.subTask(FILTERING_ON_MARKER_LIMIT); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); markers = SortUtil.getFirst(markers, getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; currentMarkers = new MarkerList(markers); } monitor.subTask(QUEUEING_VIEWER_UPDATES); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); setContents(markers, sub); if (monitor.isCanceled()) return; uiJob.schedule(); try { uiJob.join(); } catch (InterruptedException e) { uiJob.cancel(); monitor.done(); } finally { if (monitor.isCanceled()) { uiJob.cancel(); } } monitor.done(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e4cb6dbbe00cb11b3b6ef034f13ff2b78ebf09d1/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 474, 5373, 3039, 273, 23232, 264, 3039, 5621, 202, 202, 10259, 9506, 202, 18, 10086, 2174, 12, 25083, 202, 7078, 5058, 18, 7078, 1767, 67, 3657, 16, 5373, 3039, 422, 300, 21, 692, 4752, 294, 2130, 1769, 3196, 202, 76, 2390, 1388, 5121, 5621, 202, 202, 45, 2278, 1318, 1719, 5669, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 202, 202, 698, 288, 1082, 202, 10259, 18, 1717, 2174, 12, 19046, 1360, 67, 7473, 67, 10566, 6616, 67, 1792, 3388, 3991, 67, 4296, 67, 23259, 1769, 1082, 202, 4688, 5669, 18, 10086, 2175, 12, 3085, 16, 6438, 1769, 1082, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 10259, 18, 1717, 2174, 12, 17251, 1360, 67, 7473, 67, 12693, 11367, 1769, 1082, 202, 1676, 5491, 7187, 720, 7187, 273, 394, 2592, 5491, 7187, 12, 10259, 16, 1728, 1769, 1082, 202, 7078, 682, 5373, 682, 273, 14742, 682, 18, 9200, 12, 588, 5422, 9334, 6862, 202, 1717, 7187, 16, 638, 1769, 1082, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 261, 11145, 1380, 10785, 13, 288, 9506, 202, 10259, 18, 1717, 2174, 12, 10771, 14753, 1360, 67, 25989, 67, 7240, 55, 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, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 1082, 202, 15069, 15342, 16, 7558, 288, 202, 202, 474, 5373, 3039, 273, 23232, 264, 3039, 5621, 202, 202, 10259, 9506, 202, 18, 10086, 2174, 12, 25083, 202, 7078, 5058, 18, 7078, 1767, 67, 3657, 16, 5373, 3039, 422, 300, 21, 692, 4752, 294, 2130, 1769, 3196, 202, 76, 2390, 1388, 5121, 5621, 202, 202, 45, 2278, 1318, 1719, 5669, 273, 11810, 18, 588, 2278, 1318, 5621, 202, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 202, 202, 698, 288, 1082, 202, 10259, 18, 1717, 2174, 12, 19046, 1360, 67, 7473, 67, 10566, 6616, 67, 1792, 3388, 3991, 67, 4296, 2 ]
private void usage() { System.out.println("zmprov [cmd] [args ...]"); System.out.println(""); //System.out.println(" CopyAccount(cpa) {name@domain} {ldap-url} {ldap-bind-dn} {ldap-bind-passwd}"); //System.out.println(" CreateBulkAccounts(cabulk) {domain} {namemask} {number of accounts to create} "); System.out.println(" CreateAccount(ca) {name@domain} {password} [attr1 value1 [attr2 value2...]]"); System.out.println(" DeleteAccount(da) {name@domain|id}"); System.out.println(" GetAccount(ga) {name@domain|id}"); System.out.println(" GetAllAccounts(gaa) [-v] [{domain}]"); System.out.println(" GetAllAdminAccounts(gaaa) [-v]"); System.out.println(" ModifyAccount(ma) {name@domain|id} [attr1 value1 [attr2 value2...]]"); System.out.println(" SetPassword(sp) {name@domain|id} {password}"); System.out.println(" AddAccountAlias(aaa) {name@domain|id} {alias@domain}"); System.out.println(" RemoveAccountAlias(raa) {name@domain|id} {alias@domain}"); System.out.println(" SetAccountCos(sac) {name@domain|id} {cos-name|cos-id}"); System.out.println(" SearchAccounts(sa) [-v] {ldap-query} [limit {limit}] [offset {offset}] [sortBy {attr}] [attrs {a1,a2...}] [sortAscending 0|1*] [applyCos [0|1*] [domain {domain}]"); System.out.println(" SearchGal(sg) {domain} {name}"); System.out.println(" AutoCompleteGal(acg) {domain} {name}"); System.out.println(" RenameAccount(ra) {name@domain|id} {newName@domain}"); System.out.println(" GetAccountMembership(gam) {name@domain|id}"); System.out.println(); System.out.println(" CreateDomain(cd) {domain} [attr1 value1 [attr2 value2...]]"); System.out.println(" DeleteDomain(dd) {domain|id}"); System.out.println(" GetDomain(gd) {domain|id}"); System.out.println(" GetAllDomains(gad) [-v]"); System.out.println(" ModifyDomain(md) {domain|id} [attr1 value1 [attr2 value2...]]"); System.out.println(" GenerateDomainPreAuthKey(gdpak) {domain|id}"); System.out.println(" GenerateDomainPreAuth(gdpa) {domain|id} {name} {name|id|foreignPrincipal} {timestamp|0} {expires|0}"); System.out.println(); System.out.println(" CreateCos(cc) {name} [attr1 value1 [attr2 value2...]]"); System.out.println(" DeleteCos(dc) {name|id}"); System.out.println(" GetCos(gc) {name|id}"); System.out.println(" GetAllCos(gac) [-v]"); System.out.println(" ModifyCos(mc) {name|id} [attr1 value1 [attr2 value2...]]"); System.out.println(" RenameCos(rc) {name|id} {newName}"); System.out.println(); System.out.println(" CreateServer(cs) {name} [attr1 value1 [attr2 value2...]]"); System.out.println(" DeleteServer(ds) {name|id}"); System.out.println(" GetServer(gs) {name|id}"); System.out.println(" GetAllServers(gas) [-v] [service]"); System.out.println(" ModifyServer(ms) {name|id} [attr1 value1 [attr2 value2...]]"); System.out.println(); System.out.println(" GetAllConfig(gacf)"); System.out.println(" GetConfig(gcf) {name}"); System.out.println(" ModifyConfig(mcf) attr1 value1 [attr2 value2...]"); System.out.println(); System.out.println(" CreateDistributionList(cdl) {list@domain}"); System.out.println(" GetAllDistributionLists(gadl) [-v]"); System.out.println(" GetDistributionList(gdl) {list@domain|id}"); System.out.println(" ModifyDistributionList(mdl) {list@domain|id} attr1 value1 [attr2 value2...]"); System.out.println(" DeleteDistributionList(ddl) {list@domain|id}"); System.out.println(" AddDistributionListMember(adlm) {list@domain|id} {member@domain}"); System.out.println(" RemoveDistributionListMember(rdlm) {list@domain|id} {member@domain}"); System.out.println(" AddDistributionListAlias(adla) {list@domain|id} {alias@domain}"); System.out.println(" RemoveDistributionListAlias(rdla) {list@domain|id} {alias@domain}"); System.out.println(" RenameDistributionList(rdl) {list@domain|id} {newName@domain}"); System.out.println(" GetDistributionListMembership(gdlm) {name@domain|id}"); System.out.println(); System.out.println(" CreateCalendarResource(ccr) {name@domain} [attr1 value1 [attr2 value2...]]"); System.out.println(" DeleteCalendarResource(dcr) {name@domain|id}"); System.out.println(" ModifyCalendarResource(mcr) {name@domain|id} [attr1 value1 [attr2 value2...]]"); System.out.println(" RenameCalendarResource(rcr) {name@domain|id} {newName@domain}"); System.out.println(" GetCalendarResource(gcr) {name@domain|id}"); System.out.println(" GetAllCalendarResources(gacr) [-v] [{domain}]"); System.out.println(" SearchCalendarResources(scr) [-v] domain attr op value [attr op value...]"); StringBuilder sb = new StringBuilder(); EntrySearchFilter.Operator vals[] = EntrySearchFilter.Operator.values(); for (int i = 0; i < vals.length; i++) { if (i > 0) sb.append(", "); sb.append(vals[i].toString()); } System.out.println(" op = " + sb.toString()); System.out.println(); System.out.println(" exit (quit)"); System.out.println(" help (?)"); System.out.println(); if (!mInteractive) System.exit(1); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4424927a428f268cb1e987254f377e9557307ba0/ProvUtil.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/ProvUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 9167, 1435, 95, 3163, 18, 659, 18, 8222, 2932, 94, 81, 25529, 63, 4172, 6362, 1968, 2777, 4279, 1769, 3163, 18, 659, 18, 8222, 2932, 8863, 759, 3163, 18, 659, 18, 8222, 2932, 2951, 3032, 12, 4057, 69, 15329, 529, 36, 4308, 8637, 14394, 17, 718, 8637, 14394, 17, 4376, 17, 5176, 8637, 14394, 17, 4376, 17, 24002, 1532, 1769, 759, 3163, 18, 659, 18, 8222, 2932, 1684, 13112, 13971, 12, 71, 378, 5257, 15329, 4308, 8637, 529, 4455, 8637, 2696, 83, 507, 1422, 334, 504, 602, 1532, 1769, 3163, 18, 659, 18, 8222, 2932, 1684, 3032, 12, 5353, 15329, 529, 36, 4308, 8637, 3664, 20294, 1747, 21, 1132, 21, 63, 1747, 22, 1132, 22, 2777, 65, 4279, 1769, 3163, 18, 659, 18, 8222, 2932, 2613, 3032, 12, 2414, 15329, 529, 36, 4308, 96, 350, 1532, 1769, 3163, 18, 659, 18, 8222, 2932, 967, 3032, 12, 15833, 15329, 529, 36, 4308, 96, 350, 1532, 1769, 3163, 18, 659, 18, 8222, 2932, 21413, 13971, 12, 75, 7598, 13, 18919, 90, 6362, 95, 4308, 23410, 1769, 3163, 18, 659, 18, 8222, 2932, 21413, 4446, 13971, 12, 75, 26676, 13, 18919, 90, 4279, 1769, 3163, 18, 659, 18, 8222, 2932, 11047, 3032, 12, 2540, 15329, 529, 36, 4308, 96, 350, 20294, 1747, 21, 1132, 21, 63, 1747, 22, 1132, 22, 2777, 65, 4279, 1769, 3163, 18, 659, 18, 8222, 2932, 694, 3913, 12, 1752, 15329, 529, 36, 4308, 96, 350, 8637, 3664, 1532, 1769, 3163, 18, 659, 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, 3238, 6459, 9167, 1435, 95, 3163, 18, 659, 18, 8222, 2932, 94, 81, 25529, 63, 4172, 6362, 1968, 2777, 4279, 1769, 3163, 18, 659, 18, 8222, 2932, 8863, 759, 3163, 18, 659, 18, 8222, 2932, 2951, 3032, 12, 4057, 69, 15329, 529, 36, 4308, 8637, 14394, 17, 718, 8637, 14394, 17, 4376, 17, 5176, 8637, 14394, 17, 4376, 17, 24002, 1532, 1769, 759, 3163, 18, 659, 18, 8222, 2932, 1684, 13112, 13971, 12, 71, 378, 5257, 15329, 4308, 8637, 529, 4455, 8637, 2696, 83, 507, 1422, 334, 504, 602, 1532, 1769, 3163, 18, 659, 18, 8222, 2932, 1684, 3032, 12, 5353, 15329, 529, 36, 4308, 8637, 3664, 20294, 1747, 21, 1132, 21, 63, 1747, 22, 1132, 22, 2777, 65, 2 ]
JComboBox comboBox = formModel.createBoundComboBox("stringProperty");
JComboBox comboBox = formModel.createBoundComboBox("stringProperty");
public void testCreateBoundComboBox() { testBean.setStringProperty("item1"); JComboBox comboBox = formModel.createBoundComboBox("stringProperty"); // if we add items like this, it fails, because no action is taken when // the model of the combobox changes // comboBox.setModel(new // DefaultComboBoxModel(Arrays.asList(STRING_ARRAY))); ComboBoxListModel model = (ComboBoxListModel) comboBox.getModel(); model.addAll(Arrays.asList(STRING_ARRAY)); assertComboBoxBinding(comboBox, "stringProperty", testBean.getStringProperty(), "item3"); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModelTests.java/clean/test/org/springframework/richclient/forms/SwingFormModelTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 3499, 22199, 1435, 288, 3639, 1842, 3381, 18, 542, 780, 1396, 2932, 1726, 21, 8863, 3639, 804, 22199, 16778, 3514, 273, 646, 1488, 18, 2640, 3499, 22199, 2932, 1080, 1396, 8863, 3639, 368, 309, 732, 527, 1516, 3007, 333, 16, 518, 6684, 16, 2724, 1158, 1301, 353, 9830, 1347, 3639, 368, 326, 938, 434, 326, 3894, 27570, 3478, 3639, 368, 16778, 3514, 18, 542, 1488, 12, 2704, 3639, 368, 2989, 22199, 1488, 12, 12726, 18, 345, 682, 12, 5804, 67, 8552, 3719, 1769, 3639, 1286, 1075, 3514, 682, 1488, 938, 273, 261, 22199, 682, 1488, 13, 16778, 3514, 18, 588, 1488, 5621, 3639, 938, 18, 1289, 1595, 12, 12726, 18, 345, 682, 12, 5804, 67, 8552, 10019, 3639, 1815, 22199, 5250, 12, 25053, 3514, 16, 315,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1684, 3499, 22199, 1435, 288, 3639, 1842, 3381, 18, 542, 780, 1396, 2932, 1726, 21, 8863, 3639, 804, 22199, 16778, 3514, 273, 646, 1488, 18, 2640, 3499, 22199, 2932, 1080, 1396, 8863, 3639, 368, 309, 732, 527, 1516, 3007, 333, 16, 518, 6684, 16, 2724, 1158, 1301, 353, 9830, 1347, 3639, 368, 326, 938, 434, 326, 3894, 27570, 3478, 3639, 368, 16778, 3514, 18, 542, 1488, 12, 2704, 3639, 368, 2989, 22199, 1488, 12, 12726, 18, 345, 682, 12, 5804, 67, 8552, 3719, 1769, 3639, 1286, 1075, 3514, 682, 1488, 938, 273, 261, 22199, 682, 1488, 13, 16778, 3514, 18, 588, 1488, 5621, 3639, 938, 18, 1289, 1595, 12, 12726, 18, 345, 682, 12, 5804, 2 ]
public org.quickfix.field.UnderlyingRepurchaseRate getUnderlyingRepurchaseRate() throws FieldNotFound { org.quickfix.field.UnderlyingRepurchaseRate value = new org.quickfix.field.UnderlyingRepurchaseRate();
public quickfix.field.UnderlyingRepurchaseRate getUnderlyingRepurchaseRate() throws FieldNotFound { quickfix.field.UnderlyingRepurchaseRate value = new quickfix.field.UnderlyingRepurchaseRate();
public org.quickfix.field.UnderlyingRepurchaseRate getUnderlyingRepurchaseRate() throws FieldNotFound { org.quickfix.field.UnderlyingRepurchaseRate value = new org.quickfix.field.UnderlyingRepurchaseRate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/clean/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 10833, 765, 6291, 426, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 10833, 765, 6291, 426, 12688, 12104, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 426, 12688, 12104, 4727, 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 ]
lblSeriesType.setEnabled( cbMultipleY.getSelection( ) ); cbSeriesType.setEnabled( cbMultipleY.getSelection( ) );
lblSeriesType.setEnabled( isTwoAxesEnabled( ) ); cbSeriesType.setEnabled( isTwoAxesEnabled( ) );
private void updateSelection( ) { if ( chartModel instanceof ChartWithAxes ) { lblMultipleY.setEnabled( !is3D( ) ); cbMultipleY.setEnabled( !is3D( ) ); lblSeriesType.setEnabled( cbMultipleY.getSelection( ) ); cbSeriesType.setEnabled( cbMultipleY.getSelection( ) ); } else { cbMultipleY.setSelection( false ); lblMultipleY.setEnabled( false ); cbMultipleY.setEnabled( false ); lblSeriesType.setEnabled( false ); cbSeriesType.setEnabled( false ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/28738ea1377c73d595430451bea56e1444db4233/TaskSelectType.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 6233, 12, 262, 202, 95, 202, 202, 430, 261, 4980, 1488, 1276, 14804, 1190, 26494, 262, 202, 202, 95, 1082, 202, 31885, 8438, 61, 18, 542, 1526, 12, 401, 291, 23, 40, 12, 262, 11272, 1082, 202, 7358, 8438, 61, 18, 542, 1526, 12, 401, 291, 23, 40, 12, 262, 11272, 1082, 202, 31885, 6485, 559, 18, 542, 1526, 12, 2875, 8438, 61, 18, 588, 6233, 12, 262, 11272, 1082, 202, 7358, 6485, 559, 18, 542, 1526, 12, 2875, 8438, 61, 18, 588, 6233, 12, 262, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 7358, 8438, 61, 18, 542, 6233, 12, 629, 11272, 1082, 202, 31885, 8438, 61, 18, 542, 1526, 12, 629, 11272, 1082, 202, 7358, 8438, 61, 18, 542, 1526, 12, 629, 11272, 1082, 202, 31885, 6485, 559, 18, 542, 1526, 12, 629, 11272, 1082, 202, 7358, 6485, 559, 18, 542, 1526, 12, 629, 11272, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,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316, 326, 981, 30, 225, 202, 1152, 918, 1089, 6233, 12, 262, 202, 95, 202, 202, 430, 261, 4980, 1488, 1276, 14804, 1190, 26494, 262, 202, 202, 95, 1082, 202, 31885, 8438, 61, 18, 542, 1526, 12, 401, 291, 23, 40, 12, 262, 11272, 1082, 202, 7358, 8438, 61, 18, 542, 1526, 12, 401, 291, 23, 40, 12, 262, 11272, 1082, 202, 31885, 6485, 559, 18, 542, 1526, 12, 2875, 8438, 61, 18, 588, 6233, 12, 262, 11272, 1082, 202, 7358, 6485, 559, 18, 542, 1526, 12, 2875, 8438, 61, 18, 588, 6233, 12, 262, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 7358, 8438, 61, 18, 542, 6233, 12, 629, 11272, 1082, 202, 31885, 8438, 61, 18, 542, 2 ]
LOG.info("GraphEditor.deleteSelectedItems"); Object[] cells = _graph.getSelectionCells(); for (Object cell: cells) { if (cell instanceof NexusCell) { NexusCell ncell = (NexusCell) cell; GraphPort port = ncell.getProxy().getGraphPort(); LOG.info("Items:" + cell + ":" + port); Set<Edge> edges = new HashSet<Edge>(port.getEdges()); for (Edge edge: edges) { LOG.info("Edge:" + edge); _graph.getGraphLayoutCache().remove(new Object[] {edge}); _graph.getGraphLayoutCache().removeMapping(new Object[] {edge}); } _graph.getGraphLayoutCache().remove(new Object[] {port}); _graph.getGraphLayoutCache().removeMapping(new Object[] {port}); } } this._graph.getGraphLayoutCache().remove(_graph.getSelectionCells()); this._graph.getGraphLayoutCache().removeMapping(_graph.getSelectionCells()); }
LOG.info( "GraphEditor.deleteSelectedItems" ); Object[] cells = _graph.getSelectionCells(); for( Object cell : cells ) { if( cell instanceof NexusCell ) { NexusCell ncell = (NexusCell) cell; GraphPort port = ncell.getProxy().getGraphPort(); LOG.info( "Items:" + cell + ":" + port ); Set<Edge> edges = new HashSet<Edge>( port.getEdges() ); for( Edge edge : edges ) { LOG.info( "Edge:" + edge ); _graph.getGraphLayoutCache().remove( new Object[] { edge } ); _graph.getGraphLayoutCache().removeMapping( new Object[] { edge } ); } _graph.getGraphLayoutCache().remove( new Object[] { port } ); _graph.getGraphLayoutCache().removeMapping( new Object[] { port } ); } } this._graph.getGraphLayoutCache().remove( _graph.getSelectionCells() ); this._graph.getGraphLayoutCache().removeMapping( _graph.getSelectionCells() ); }
private void deleteSelectedItems() { LOG.info("GraphEditor.deleteSelectedItems"); Object[] cells = _graph.getSelectionCells(); for (Object cell: cells) { if (cell instanceof NexusCell) { NexusCell ncell = (NexusCell) cell; GraphPort port = ncell.getProxy().getGraphPort(); LOG.info("Items:" + cell + ":" + port); Set<Edge> edges = new HashSet<Edge>(port.getEdges()); for (Edge edge: edges) { LOG.info("Edge:" + edge); _graph.getGraphLayoutCache().remove(new Object[] {edge}); _graph.getGraphLayoutCache().removeMapping(new Object[] {edge}); } _graph.getGraphLayoutCache().remove(new Object[] {port}); _graph.getGraphLayoutCache().removeMapping(new Object[] {port}); } } this._graph.getGraphLayoutCache().remove(_graph.getSelectionCells()); this._graph.getGraphLayoutCache().removeMapping(_graph.getSelectionCells()); }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/66c9dbbf8f8e85cbb73c99a01903807d85ce09e3/GraphEditor.java/buggy/yawl/editor/com/nexusbpm/editor/editors/net/GraphEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1430, 7416, 3126, 1435, 288, 202, 202, 4842, 18, 1376, 2932, 4137, 6946, 18, 3733, 7416, 3126, 8863, 202, 202, 921, 8526, 5983, 273, 389, 4660, 18, 588, 6233, 10505, 5621, 202, 202, 1884, 261, 921, 2484, 30, 5983, 13, 288, 1082, 202, 430, 261, 3855, 1276, 423, 21029, 4020, 13, 288, 9506, 202, 50, 21029, 4020, 290, 3855, 273, 261, 50, 21029, 4020, 13, 2484, 31, 9506, 202, 4137, 2617, 1756, 273, 290, 3855, 18, 588, 3886, 7675, 588, 4137, 2617, 5621, 9506, 202, 4842, 18, 1376, 2932, 3126, 2773, 397, 2484, 397, 6153, 397, 1756, 1769, 9506, 202, 694, 32, 6098, 34, 5231, 273, 394, 6847, 32, 6098, 34, 12, 655, 18, 588, 10697, 10663, 9506, 202, 1884, 261, 6098, 3591, 30, 5231, 13, 288, 6862, 202, 4842, 18, 1376, 2932, 6098, 2773, 397, 3591, 1769, 6862, 202, 67, 4660, 18, 588, 4137, 3744, 1649, 7675, 4479, 12, 2704, 1033, 8526, 288, 7126, 22938, 6862, 202, 67, 4660, 18, 588, 4137, 3744, 1649, 7675, 4479, 3233, 12, 2704, 1033, 8526, 288, 7126, 22938, 9506, 202, 97, 9506, 202, 67, 4660, 18, 588, 4137, 3744, 1649, 7675, 4479, 12, 2704, 1033, 8526, 288, 655, 22938, 9506, 202, 67, 4660, 18, 588, 4137, 3744, 1649, 7675, 4479, 3233, 12, 2704, 1033, 8526, 288, 655, 22938, 1082, 202, 97, 202, 202, 97, 202, 202, 2211, 6315, 4660, 18, 588, 4137, 3744, 1649, 7675, 4479, 24899, 4660, 18, 588, 6233, 10505, 10663, 202, 202, 2211, 6315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1430, 7416, 3126, 1435, 288, 202, 202, 4842, 18, 1376, 2932, 4137, 6946, 18, 3733, 7416, 3126, 8863, 202, 202, 921, 8526, 5983, 273, 389, 4660, 18, 588, 6233, 10505, 5621, 202, 202, 1884, 261, 921, 2484, 30, 5983, 13, 288, 1082, 202, 430, 261, 3855, 1276, 423, 21029, 4020, 13, 288, 9506, 202, 50, 21029, 4020, 290, 3855, 273, 261, 50, 21029, 4020, 13, 2484, 31, 9506, 202, 4137, 2617, 1756, 273, 290, 3855, 18, 588, 3886, 7675, 588, 4137, 2617, 5621, 9506, 202, 4842, 18, 1376, 2932, 3126, 2773, 397, 2484, 397, 6153, 397, 1756, 1769, 9506, 202, 694, 32, 6098, 34, 5231, 273, 394, 6847, 32, 6098, 34, 12, 655, 18, 588, 10697, 2 ]
IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null) { return null;
if(this.getActivePage() != 0) { this.switchToJava();
public IAction getAction(String actionId) { IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null) { return null; } if(!(editorPart instanceof ITextEditor)) { return null; } ITextEditor textEditor = (ITextEditor)editorPart; return textEditor.getAction(actionId); }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/cfa60f4c7c64179ca3e944698b55b7f81acf67a1/ComponentEditor.java/clean/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/part/ComponentEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1803, 12473, 12, 780, 1301, 548, 13, 288, 202, 202, 45, 6946, 1988, 4858, 1988, 273, 333, 18, 588, 3896, 6946, 5621, 202, 202, 430, 12, 9177, 1988, 422, 446, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 12, 5, 12, 9177, 1988, 1276, 467, 1528, 6946, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 408, 6946, 977, 6946, 273, 261, 1285, 408, 6946, 13, 9177, 1988, 31, 202, 202, 2463, 977, 6946, 18, 588, 1803, 12, 1128, 548, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 467, 1803, 12473, 12, 780, 1301, 548, 13, 288, 202, 202, 45, 6946, 1988, 4858, 1988, 273, 333, 18, 588, 3896, 6946, 5621, 202, 202, 430, 12, 9177, 1988, 422, 446, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 12, 5, 12, 9177, 1988, 1276, 467, 1528, 6946, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 408, 6946, 977, 6946, 273, 261, 1285, 408, 6946, 13, 9177, 1988, 31, 202, 202, 2463, 977, 6946, 18, 588, 1803, 12, 1128, 548, 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 ]
IType t_a_1 = a.getType(); assertTrue(t_a_1 instanceof IBasicType); assertFalse(((IBasicType) t_a_1).isLong()); assertFalse(((IBasicType) t_a_1).isShort()); assertFalse(((IBasicType) t_a_1).isSigned()); assertFalse(((IBasicType) t_a_1).isUnsigned()); assertEquals(((IBasicType) t_a_1).getType(), IBasicType.t_int);
IType t_a_1 = a.getType(); assertTrue(t_a_1 instanceof IBasicType); assertFalse(((IBasicType) t_a_1).isLong()); assertFalse(((IBasicType) t_a_1).isShort()); assertFalse(((IBasicType) t_a_1).isSigned()); assertFalse(((IBasicType) t_a_1).isUnsigned()); assertEquals(((IBasicType) t_a_1).getType(), IBasicType.t_int);
public void testBasicTypes() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int a; \n"); //$NON-NLS-1$ buffer.append("char * b; \n"); //$NON-NLS-1$ buffer.append("const int c; \n"); //$NON-NLS-1$ buffer.append("const char * const d; \n"); //$NON-NLS-1$ buffer.append("const char ** e; \n"); //$NON-NLS-1$ buffer.append("const char * const * const volatile ** const * f; \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu.getDeclarations()[0]; IVariable a = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[1]; IVariable b = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[2]; IVariable c = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[3]; IVariable d = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[4]; IVariable e = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); decl = (IASTSimpleDeclaration) tu.getDeclarations()[5]; IVariable f = (IVariable) decl.getDeclarators()[0].getName() .resolveBinding(); IType t_a_1 = a.getType(); assertTrue(t_a_1 instanceof IBasicType); assertFalse(((IBasicType) t_a_1).isLong()); assertFalse(((IBasicType) t_a_1).isShort()); assertFalse(((IBasicType) t_a_1).isSigned()); assertFalse(((IBasicType) t_a_1).isUnsigned()); assertEquals(((IBasicType) t_a_1).getType(), IBasicType.t_int); IType t_b_1 = b.getType(); assertTrue(t_b_1 instanceof IPointerType); IType t_b_2 = ((IPointerType) t_b_1).getType(); assertTrue(t_b_2 instanceof IBasicType); assertEquals(((IBasicType) t_b_2).getType(), IBasicType.t_char); IType t_c_1 = c.getType(); assertTrue(t_c_1 instanceof IQualifierType); assertTrue(((IQualifierType) t_c_1).isConst()); IType t_c_2 = ((IQualifierType) t_c_1).getType(); assertTrue(t_c_2 instanceof IBasicType); assertEquals(((IBasicType) t_c_2).getType(), IBasicType.t_int); IType t_d_1 = d.getType(); assertTrue(t_d_1 instanceof IPointerType); assertTrue(((IPointerType) t_d_1).isConst()); IType t_d_2 = ((IPointerType) t_d_1).getType(); assertTrue(t_d_2 instanceof IQualifierType); assertTrue(((IQualifierType) t_d_2).isConst()); IType t_d_3 = ((IQualifierType) t_d_2).getType(); assertTrue(t_d_3 instanceof IBasicType); assertEquals(((IBasicType) t_d_3).getType(), IBasicType.t_char); IType t_e_1 = e.getType(); assertTrue(t_e_1 instanceof IPointerType); assertFalse(((IPointerType) t_e_1).isConst()); IType t_e_2 = ((IPointerType) t_e_1).getType(); assertTrue(t_e_2 instanceof IPointerType); assertFalse(((IPointerType) t_e_2).isConst()); IType t_e_3 = ((IPointerType) t_e_2).getType(); assertTrue(t_e_3 instanceof IQualifierType); assertTrue(((IQualifierType) t_e_3).isConst()); IType t_e_4 = ((IQualifierType) t_e_3).getType(); assertTrue(t_e_4 instanceof IBasicType); assertEquals(((IBasicType) t_e_4).getType(), IBasicType.t_char); IType t_f_1 = f.getType(); assertTrue(t_f_1 instanceof IPointerType); assertFalse(((IPointerType) t_f_1).isConst()); assertFalse(((IPointerType) t_f_1).isVolatile()); IType t_f_2 = ((IPointerType) t_f_1).getType(); assertTrue(t_f_2 instanceof IPointerType); assertTrue(((IPointerType) t_f_2).isConst()); assertFalse(((IPointerType) t_f_2).isVolatile()); IType t_f_3 = ((IPointerType) t_f_2).getType(); assertTrue(t_f_3 instanceof IPointerType); assertFalse(((IPointerType) t_f_3).isConst()); assertFalse(((IPointerType) t_f_3).isVolatile()); IType t_f_4 = ((IPointerType) t_f_3).getType(); assertTrue(t_f_4 instanceof IPointerType); assertTrue(((IPointerType) t_f_4).isConst()); assertTrue(((IPointerType) t_f_4).isVolatile()); IType t_f_5 = ((IPointerType) t_f_4).getType(); assertTrue(t_f_5 instanceof IPointerType); assertTrue(((IPointerType) t_f_5).isConst()); assertFalse(((IPointerType) t_f_5).isVolatile()); IType t_f_6 = ((IPointerType) t_f_5).getType(); assertTrue(t_f_6 instanceof IQualifierType); assertTrue(((IQualifierType) t_f_6).isConst()); IType t_f_7 = ((IQualifierType) t_f_6).getType(); assertTrue(t_f_7 instanceof IBasicType); assertEquals(((IBasicType) t_f_7).getType(), IBasicType.t_char); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 8252, 2016, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 5621, 1377, 1613, 18, 6923, 2932, 474, 279, 31, 4202, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 3001, 380, 324, 31, 565, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 509, 276, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 1149, 380, 1866, 302, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 1149, 2826, 425, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 1149, 380, 1866, 380, 1866, 31548, 2826, 1866, 380, 284, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 467, 9053, 6717, 2802, 28325, 273, 1109, 12, 4106, 18, 10492, 9334, 6783, 3779, 18, 39, 1769, 1377, 467, 9053, 5784, 6094, 3496, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 18, 588, 21408, 1435, 63, 20, 15533, 1377, 467, 3092, 279, 273, 261, 45, 3092, 13, 3496, 18, 588, 3456, 297, 3062, 1435, 63, 20, 8009, 17994, 1435, 5411, 263, 10828, 5250, 5621, 1377, 3496, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 18, 588, 21408, 1435, 63, 21, 15533, 1377, 467, 3092, 324, 273, 261, 45, 3092, 13, 3496, 18, 588, 3456, 297, 3062, 1435, 63, 20, 8009, 17994, 1435, 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, 565, 1071, 918, 1842, 8252, 2016, 1435, 1216, 1185, 288, 1377, 6674, 1613, 273, 394, 6674, 5621, 1377, 1613, 18, 6923, 2932, 474, 279, 31, 4202, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 3001, 380, 324, 31, 565, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 509, 276, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 1149, 380, 1866, 302, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 6923, 2932, 10248, 1149, 2826, 425, 31, 521, 82, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1377, 1613, 18, 2 ]
public void addMimeType(final String fileExtension, final String mimeType) { mimeTypes.put(fileExtension, mimeType); }
public void addMimeType(final String fileExtension, final String mimeType) { mimeTypes.put(fileExtension, mimeType); }
public void addMimeType(final String fileExtension, final String mimeType) { mimeTypes.put(fileExtension, mimeType); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/MockServletContext.java/buggy/wicket/src/java/wicket/protocol/http/MockServletContext.java
[ 1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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 16821, 12, 6385, 514, 23908, 16, 727, 514, 10707, 13, 288, 3639, 30847, 18, 458, 12, 768, 3625, 16, 10707, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super(container, cause);
super(container);
public CmsVfsException(CmsMessageContainer container, Throwable cause) { super(container, cause); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/3490d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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2149, 25908, 503, 12, 4747, 1079, 2170, 1478, 16, 4206, 4620, 13, 288, 3639, 2240, 12, 3782, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
initAction.run();
if (DEBUG && VERBOSE) { System.err.println("GLDrawableHelper " + this + ".invokeGL(): Running runnable"); } runnable.run(); if (autoSwapBufferMode) { if (drawable != null) { drawable.swapBuffers(); } }
public void invokeGL(GLDrawable drawable, GLContext context, Runnable runnable, Runnable initAction) { // Support for recursive makeCurrent() calls as well as calling // other drawables' display() methods from within another one's GLContext lastContext = GLContext.getCurrent(); Runnable lastInitAction = (Runnable) perThreadInitAction.get(); if (lastContext != null) { lastContext.release(); } int res = 0; try { res = context.makeCurrent(); if (res != GLContext.CONTEXT_NOT_CURRENT) { perThreadInitAction.set(initAction); if (res == GLContext.CONTEXT_CURRENT_NEW) { if (DEBUG) { System.err.println("GLDrawableHelper " + this + ".invokeGL(): Running initAction"); } initAction.run(); } if (DEBUG && VERBOSE) { System.err.println("GLDrawableHelper " + this + ".invokeGL(): Running runnable"); } runnable.run(); if (autoSwapBufferMode) { if (drawable != null) { drawable.swapBuffers(); } } } } finally { try { if (res != GLContext.CONTEXT_NOT_CURRENT) { context.release(); } } catch (Exception e) { } if (lastContext != null) { int res2 = lastContext.makeCurrent(); if (res2 == GLContext.CONTEXT_CURRENT_NEW) { lastInitAction.run(); } } } }
46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/36887db6c983244917802f3ec761a0d28171887a/GLDrawableHelper.java/buggy/src/classes/com/sun/opengl/impl/GLDrawableHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4356, 11261, 12, 11261, 16149, 19021, 16, 15604, 10252, 1042, 819, 16, 15604, 10254, 225, 14685, 16, 15604, 10254, 225, 1208, 1803, 13, 288, 565, 368, 13619, 364, 5904, 1221, 3935, 1435, 4097, 487, 5492, 487, 4440, 565, 368, 1308, 3724, 1538, 11, 2562, 1435, 2590, 628, 3470, 4042, 1245, 1807, 565, 10252, 1042, 1142, 1042, 565, 273, 10252, 1042, 18, 588, 3935, 5621, 565, 10254, 225, 1142, 2570, 1803, 273, 261, 20013, 13, 1534, 3830, 2570, 1803, 18, 588, 5621, 565, 309, 261, 2722, 1042, 480, 446, 13, 288, 1377, 1142, 1042, 18, 9340, 5621, 565, 289, 3639, 509, 400, 273, 374, 31, 565, 775, 288, 1377, 400, 273, 819, 18, 6540, 3935, 5621, 1377, 309, 261, 455, 480, 10252, 1042, 18, 13181, 67, 4400, 67, 15487, 13, 288, 3639, 1534, 3830, 2570, 1803, 18, 542, 12, 2738, 1803, 1769, 3639, 309, 261, 455, 422, 10252, 1042, 18, 13181, 67, 15487, 67, 12917, 13, 288, 1850, 309, 261, 9394, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 11261, 16149, 2276, 315, 397, 333, 397, 3552, 14407, 11261, 13332, 20480, 1208, 1803, 8863, 1850, 289, 1850, 309, 261, 9394, 597, 27857, 13, 288, 2332, 18, 370, 18, 8222, 2932, 11261, 16149, 2276, 315, 397, 333, 397, 3552, 14407, 11261, 13332, 20480, 14685, 8863, 289, 14685, 18, 2681, 5621, 309, 261, 6079, 12521, 1892, 2309, 13, 288, 309, 261, 9446, 429, 480, 446, 13, 288, 19021, 18, 22270, 13699, 5621, 289, 289, 3639, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4356, 11261, 12, 11261, 16149, 19021, 16, 15604, 10252, 1042, 819, 16, 15604, 10254, 225, 14685, 16, 15604, 10254, 225, 1208, 1803, 13, 288, 565, 368, 13619, 364, 5904, 1221, 3935, 1435, 4097, 487, 5492, 487, 4440, 565, 368, 1308, 3724, 1538, 11, 2562, 1435, 2590, 628, 3470, 4042, 1245, 1807, 565, 10252, 1042, 1142, 1042, 565, 273, 10252, 1042, 18, 588, 3935, 5621, 565, 10254, 225, 1142, 2570, 1803, 273, 261, 20013, 13, 1534, 3830, 2570, 1803, 18, 588, 5621, 565, 309, 261, 2722, 1042, 480, 446, 13, 288, 1377, 1142, 1042, 18, 9340, 5621, 565, 289, 3639, 509, 400, 273, 374, 31, 565, 775, 288, 1377, 400, 273, 819, 18, 6540, 3935, 5621, 1377, 2 ]
public org.quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { org.quickfix.field.BenchmarkPrice value = new org.quickfix.field.BenchmarkPrice();
public quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { quickfix.field.BenchmarkPrice value = new quickfix.field.BenchmarkPrice();
public org.quickfix.field.BenchmarkPrice getBenchmarkPrice() throws FieldNotFound { org.quickfix.field.BenchmarkPrice value = new org.quickfix.field.BenchmarkPrice(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/clean/src/java/src/quickfix/fix44/CollateralRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 2882, 9737, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 2882, 9737, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 30672, 5147, 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 ]
getMessageResources(String config) {
public synchronized static MessageResources getMessageResources(String config) {
getMessageResources(String config) { if (defaultFactory == null) defaultFactory = MessageResourcesFactory.createFactory(); return defaultFactory.createResources(config); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/0d965ad0759cf8fd629f4e8fd466df069ca5c27c/MessageResources.java/clean/src/share/org/apache/struts/util/MessageResources.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 760, 2350, 3805, 2381, 3805, 12, 780, 642, 13, 288, 3639, 309, 261, 1886, 1733, 422, 446, 13, 5411, 805, 1733, 273, 2350, 3805, 1733, 18, 2640, 1733, 5621, 3639, 327, 805, 1733, 18, 2640, 3805, 12, 1425, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 760, 2350, 3805, 2381, 3805, 12, 780, 642, 13, 288, 3639, 309, 261, 1886, 1733, 422, 446, 13, 5411, 805, 1733, 273, 2350, 3805, 1733, 18, 2640, 1733, 5621, 3639, 327, 805, 1733, 18, 2640, 3805, 12, 1425, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertEquals(sel, selProv.getSelection());
assertEquals(sel.size(), ((IStructuredSelection)selProv.getSelection()).size()); assertEquals(sel.getFirstElement(), ((IStructuredSelection)selProv.getSelection()).getFirstElement());
public void testFileAddition() throws CoreException, PartInitException { createTestFolder(); // create the project and folder before the Navigator is shown showNav(); createTestFile(); // create the file after the Navigator is shown // test its initial content by setting and getting selection on the file ISelectionProvider selProv = navigator.getSite().getSelectionProvider(); StructuredSelection sel = new StructuredSelection(testFile); selProv.setSelection(sel); assertEquals(sel, selProv.getSelection()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c06e04ef3c8ab5103deba44e7ab0a55a85aa1d0b/NavigatorTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/navigator/NavigatorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 812, 30296, 1435, 1216, 30015, 16, 6393, 2570, 503, 288, 3639, 752, 4709, 3899, 5621, 368, 752, 326, 1984, 471, 3009, 1865, 326, 423, 13061, 353, 12188, 3639, 2405, 12599, 5621, 3639, 752, 4709, 812, 5621, 368, 752, 326, 585, 1839, 326, 423, 13061, 353, 12188, 3639, 368, 1842, 2097, 2172, 913, 635, 3637, 471, 8742, 4421, 603, 326, 585, 3639, 467, 6233, 2249, 357, 626, 90, 273, 19796, 18, 588, 4956, 7675, 588, 6233, 2249, 5621, 3639, 7362, 2862, 6233, 357, 273, 394, 7362, 2862, 6233, 12, 3813, 812, 1769, 3639, 357, 626, 90, 18, 542, 6233, 12, 1786, 1769, 3639, 1815, 8867, 12, 1786,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 812, 30296, 1435, 1216, 30015, 16, 6393, 2570, 503, 288, 3639, 752, 4709, 3899, 5621, 368, 752, 326, 1984, 471, 3009, 1865, 326, 423, 13061, 353, 12188, 3639, 2405, 12599, 5621, 3639, 752, 4709, 812, 5621, 368, 752, 326, 585, 1839, 326, 423, 13061, 353, 12188, 3639, 368, 1842, 2097, 2172, 913, 635, 3637, 471, 8742, 4421, 603, 326, 585, 3639, 467, 6233, 2249, 357, 626, 90, 273, 19796, 18, 588, 4956, 7675, 588, 6233, 2249, 5621, 3639, 7362, 2862, 6233, 357, 273, 394, 7362, 2862, 6233, 12, 3813, 812, 1769, 3639, 357, 626, 90, 18, 542, 6233, 12, 1786, 1769, 3639, 1815, 8867, 12, 1786, 18, 1467, 9334, 14015, 45, 30733, 6233, 13, 1786, 2 ]
cat.refreshBugs(); for (IQueryHit hit : cat.getHits()) {
repositoryQuery.clearHits(); TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryQuery.getRepositoryUrl()); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog .openInformation(Display.getDefault().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, "No task repository associated with this query. Open the query to associate it with a repository."); } }); } else { final BugzillaCategorySearchOperation catSearch = new BugzillaCategorySearchOperation(repository, repositoryQuery.getQueryUrl(), repositoryQuery.getMaxHits()); catSearch.addResultsListener(new BugzillaQueryCategorySearchListener(repositoryQuery)); final IStatus[] status = new IStatus[1]; try { catSearch.execute(monitor); repositoryQuery.setLastRefresh(new Date()); status[0] = catSearch.getStatus(); if (status[0].getCode() == IStatus.CANCEL) { status[0] = Status.OK_STATUS; } else if (!status[0].isOK()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { ErrorDialog.openError(null, "Bugzilla Search Error", null, status[0]); } }); status[0] = Status.OK_STATUS; } } catch (LoginException e) { MessageDialog .openError( Display.getDefault().getActiveShell(), "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "", e)); } } for (IQueryHit hit : repositoryQuery.getHits()) {
protected IStatus run(IProgressMonitor monitor) { cat.refreshBugs(); for (IQueryHit hit : cat.getHits()) { if (hit.getCorrespondingTask() != null && hit instanceof BugzillaQueryHit) { requestRefresh((BugzillaTask) hit.getCorrespondingTask()); } } // TODO: Uncomment this // Display.getDefault().asyncExec(new Runnable() { // public void run() { // if (TaskListView.getDefault() != null) // TaskListView.getDefault().getViewer().refresh(); // } // }); return Status.OK_STATUS; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d91a4c7a3effbbe8b742e700082f8e9f1c02b294/BugzillaRepositoryClient.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 2574, 18, 9144, 31559, 5621, 9506, 202, 1884, 261, 45, 1138, 13616, 6800, 294, 6573, 18, 588, 20950, 10756, 288, 6862, 202, 430, 261, 15989, 18, 588, 6217, 17863, 310, 2174, 1435, 480, 446, 597, 6800, 1276, 16907, 15990, 1138, 13616, 13, 288, 25083, 202, 2293, 8323, 12443, 19865, 15990, 2174, 13, 6800, 18, 588, 6217, 17863, 310, 2174, 10663, 6862, 202, 97, 9506, 202, 97, 9506, 202, 759, 2660, 30, 1351, 3469, 333, 9506, 202, 759, 9311, 18, 588, 1868, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 9506, 202, 759, 1071, 918, 1086, 1435, 288, 9506, 202, 759, 309, 261, 2174, 682, 1767, 18, 588, 1868, 1435, 480, 446, 13, 9506, 202, 759, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 9144, 5621, 9506, 202, 759, 289, 9506, 202, 759, 15549, 9506, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 2574, 18, 9144, 31559, 5621, 9506, 202, 1884, 261, 45, 1138, 13616, 6800, 294, 6573, 18, 588, 20950, 10756, 288, 6862, 202, 430, 261, 15989, 18, 588, 6217, 17863, 310, 2174, 1435, 480, 446, 597, 6800, 1276, 16907, 15990, 1138, 13616, 13, 288, 25083, 202, 2293, 8323, 12443, 19865, 15990, 2174, 13, 6800, 18, 588, 6217, 17863, 310, 2174, 10663, 6862, 202, 97, 9506, 202, 97, 9506, 202, 759, 2660, 30, 1351, 3469, 333, 9506, 202, 759, 9311, 18, 588, 1868, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 9506, 202, 759, 1071, 918, 1086, 1435, 288, 9506, 202, 759, 309, 261, 2174, 682, 2 ]
node.fileLoggerHook.listAvailableLogs(new OutputStreamWriter(os, "ISO-8859-1"));
Logger.minor(this, "Listing available logs"); OutputStreamWriter osw = new OutputStreamWriter(os, "ISO-8859-1"); node.fileLoggerHook.listAvailableLogs(osw); osw.close();
public void run() { InputStream is = null; OutputStream os = null; try { is = s.getInputStream(); os = s.getOutputStream(); // Read command InputStreamReader isr = new InputStreamReader(is, "ISO-8859-1"); BufferedReader br = new BufferedReader(isr); String command = br.readLine(); if(command.equalsIgnoreCase("LIST")) { node.fileLoggerHook.listAvailableLogs(new OutputStreamWriter(os, "ISO-8859-1")); } else if(command.startsWith("GET:")) { String date = command.substring("GET:".length()); DateFormat df = DateFormat.getDateTimeInstance(); df.setTimeZone(TimeZone.getTimeZone("GMT")); Date d; try { d = df.parse(date); } catch (ParseException e) { return; } node.fileLoggerHook.sendLogByContainedDate(d.getTime(), os); } } catch (IOException e) { Logger.normal(this, "Failure handling testnet connection: "+e); } finally { if(is != null) try { is.close(); } catch (IOException e) { // Ignore } if(os != null) try { os.close(); } catch (IOException e) { // Ignore } } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/45c195894828cf5e23b9838d00649bb2e4fd86ce/TestnetHandler.java/buggy/src/freenet/node/TestnetHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 4348, 353, 273, 446, 31, 1082, 202, 4632, 1140, 273, 446, 31, 1082, 202, 698, 288, 9506, 202, 291, 273, 272, 18, 588, 4348, 5621, 9506, 202, 538, 273, 272, 18, 588, 4632, 5621, 9506, 202, 759, 2720, 1296, 9506, 202, 4348, 2514, 353, 86, 273, 394, 15322, 12, 291, 16, 315, 12609, 17, 17258, 17, 21, 8863, 9506, 202, 17947, 2514, 5186, 273, 394, 10633, 12, 291, 86, 1769, 9506, 202, 780, 1296, 273, 5186, 18, 896, 1670, 5621, 9506, 202, 430, 12, 3076, 18, 14963, 5556, 2932, 7085, 6, 3719, 288, 6862, 202, 2159, 18, 768, 3328, 5394, 18, 1098, 5268, 7777, 12, 2704, 24248, 12, 538, 16, 315, 12609, 17, 17258, 17, 21, 7923, 1769, 9506, 202, 97, 469, 309, 12, 3076, 18, 17514, 1190, 2932, 3264, 2773, 3719, 288, 6862, 202, 780, 1509, 273, 1296, 18, 28023, 2932, 3264, 2773, 18, 2469, 10663, 6862, 202, 11878, 3013, 273, 18371, 18, 588, 5096, 1442, 5621, 6862, 202, 2180, 18, 542, 16760, 12, 16760, 18, 588, 16760, 2932, 25315, 7923, 1769, 6862, 202, 1626, 302, 31, 6862, 202, 698, 288, 25083, 202, 72, 273, 3013, 18, 2670, 12, 712, 1769, 6862, 202, 97, 1044, 261, 13047, 425, 13, 288, 25083, 202, 2463, 31, 6862, 202, 97, 6862, 202, 2159, 18, 768, 3328, 5394, 18, 4661, 1343, 858, 660, 8707, 1626, 12, 72, 18, 588, 950, 9334, 1140, 1769, 9506, 202, 97, 1082, 202, 97, 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 4348, 353, 273, 446, 31, 1082, 202, 4632, 1140, 273, 446, 31, 1082, 202, 698, 288, 9506, 202, 291, 273, 272, 18, 588, 4348, 5621, 9506, 202, 538, 273, 272, 18, 588, 4632, 5621, 9506, 202, 759, 2720, 1296, 9506, 202, 4348, 2514, 353, 86, 273, 394, 15322, 12, 291, 16, 315, 12609, 17, 17258, 17, 21, 8863, 9506, 202, 17947, 2514, 5186, 273, 394, 10633, 12, 291, 86, 1769, 9506, 202, 780, 1296, 273, 5186, 18, 896, 1670, 5621, 9506, 202, 430, 12, 3076, 18, 14963, 5556, 2932, 7085, 6, 3719, 288, 6862, 202, 2159, 18, 768, 3328, 5394, 18, 1098, 5268, 7777, 12, 2704, 24248, 12, 538, 16, 2 ]
if (size != (44 * channels)) {
if (size != (44 * c)) {
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = new String(fourBytes).equals("iiii"); // populate standard metadata hashtable and OME root node in.seek(0); in.skipBytes(16); long dataSize = DataTools.read4UnsignedBytes(in, littleEndian); dataSize -= 28; // size of raw image data, in bytes long width = DataTools.read4UnsignedBytes(in, littleEndian); long height = DataTools.read4UnsignedBytes(in, littleEndian); long channels = DataTools.read4UnsignedBytes(in, littleEndian); long zDepth = DataTools.read4UnsignedBytes(in, littleEndian); long tDepth = DataTools.read4UnsignedBytes(in, littleEndian); long pixelType = DataTools.read4UnsignedBytes(in, littleEndian); metadata.put("Width", new Long(width)); metadata.put("Height", new Long(height)); metadata.put("Channels", new Long(channels)); metadata.put("ZDepth", new Long(zDepth)); metadata.put("TDepth", new Long(tDepth)); String ptype; switch ((int) pixelType) { case 0: ptype = "8 bit unsigned"; break; case 1: ptype = "16 bit signed short"; break; case 2: ptype = "16 bit unsigned short"; break; case 3: ptype = "32 bit signed long"; break; case 4: ptype = "32 bit single-precision float"; break; case 5: ptype = "Color24"; break; case 6: ptype = "Color48"; break; case 10: ptype = "64 bit double-precision float"; break; default: ptype = "reserved"; // for values 7-9 } metadata.put("PixelType", ptype); in.skipBytes((int) dataSize); if (ome != null) { String type; switch ((int) pixelType) { case 0: type = "Uint8"; break; case 1: type = "int16"; break; case 2: type = "Uint16"; break; case 3: type = "Uint32"; break; case 4: type = "float"; break; case 5: type = "Uint32"; break; case 6: type = "Uint32"; break; case 10: type = "float"; break; default: type = "Uint8"; } OMETools.setPixels(ome, new Integer((int) width), // SizeX new Integer((int) height), // SizeY new Integer((int) zDepth), // SizeZ new Integer((int) channels), // SizeC new Integer((int) tDepth), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder OMETools.setImageName(ome, id); } in.read(fourBytes); String tag = new String(fourBytes); while (!tag.equals("fini")) { if (tag.equals("clut")) { // read in Color Lookup Table long size = DataTools.read4UnsignedBytes(in, littleEndian); if (size == 8) { // indexed lookup table in.skipBytes(4); long type=DataTools.read4UnsignedBytes(in, littleEndian); String clutType; switch ((int) type) { case 0: clutType = "monochrome"; break; case 1: clutType = "reverse monochrome"; break; case 2: clutType = "BGR"; break; case 3: clutType = "classify"; break; case 4: clutType = "rainbow"; break; case 5: clutType = "red"; break; case 6: clutType = "green"; break; case 7: clutType = "blue"; break; case 8: clutType = "cyan"; break; case 9: clutType = "magenta"; break; case 10: clutType = "yellow"; break; case 11: clutType = "saturated pixels"; break; } } else { // explicitly defined lookup table // length is 772 in.skipBytes(4); byte[] colorTable = new byte[256*3]; in.read(colorTable); } } else if (tag.equals("norm")) { // read in normalization information long size = DataTools.read4UnsignedBytes(in, littleEndian); // error checking if (size != (44 * channels)) { throw new FormatException("Bad normalization settings"); } for (int i=0; i<channels; i++) { long source = DataTools.read4UnsignedBytes(in, littleEndian); String sourceType; switch ((int) source) { case 0: sourceType = "user"; break; case 1: sourceType = "plane"; break; case 2: sourceType = "sequence"; break; case 3: sourceType = "saturated plane"; break; case 4: sourceType = "saturated sequence"; break; case 5: sourceType = "ROI"; break; default: sourceType = "user"; } metadata.put("NormalizationSource" + i, sourceType); double min=DataTools.read8SignedBytes(in, littleEndian); double max=DataTools.read8SignedBytes(in, littleEndian); double gamma=DataTools.read8SignedBytes(in, littleEndian); double black=DataTools.read8SignedBytes(in, littleEndian); double white=DataTools.read8SignedBytes(in, littleEndian); metadata.put("NormalizationMin" + i, new Double(min)); metadata.put("NormalizationMax" + i, new Double(max)); metadata.put("NormalizationGamma" + i, new Double(gamma)); metadata.put("NormalizationBlack" + i, new Double(black)); metadata.put("NormalizationWhite" + i, new Double(white)); } } else if (tag.equals("head")) { // read in header labels in.skipBytes(4); // size is defined to 2200 for (int i=0; i<100; i++) { int num = DataTools.read2UnsignedBytes(in, littleEndian); in.read(fourBytes); String name = new String(fourBytes); metadata.put("Header" + num, name); } } else if (tag.equals("roi ")) { // read in ROI information long size = DataTools.read4UnsignedBytes(in, littleEndian); long roiType = DataTools.read4UnsignedBytes(in, littleEndian); long roiLeft = DataTools.read4UnsignedBytes(in, littleEndian); long roiTop = DataTools.read4UnsignedBytes(in, littleEndian); long roiRight = DataTools.read4UnsignedBytes(in, littleEndian); long roiBottom = DataTools.read4UnsignedBytes(in, littleEndian); long numRoiPts = DataTools.read4UnsignedBytes(in, littleEndian); if (ome != null) { Integer x0 = new Integer((int) roiLeft); Integer x1 = new Integer((int) roiRight); Integer y0 = new Integer((int) roiBottom); Integer y1 = new Integer((int) roiTop); OMETools.setDisplayROI(ome, x0, y0, null, x1, y1, null, null, null, null); } for (int i=0; i<numRoiPts; i++) { long ptX = DataTools.read4UnsignedBytes(in, littleEndian); long ptY = DataTools.read4UnsignedBytes(in, littleEndian); } } else if (tag.equals("mask")) { // read in Segmentation Mask } else if (tag.equals("unit")) { // read in units in.skipBytes(4); // size is 48 for (int i=0; i<4; i++) { long xResStyle = DataTools.read4UnsignedBytes(in, littleEndian); long unitsPerPixel = DataTools.read4UnsignedBytes(in, littleEndian); long xUnitName = DataTools.read4UnsignedBytes(in, littleEndian); metadata.put("ResolutionStyle" + i, new Long(xResStyle)); metadata.put("UnitsPerPixel" + i, new Long(unitsPerPixel)); if (i == 0 && ome != null) { Float pixelSize = new Float(unitsPerPixel); OMETools.setDimensions(ome, pixelSize, pixelSize, null, null, null); } metadata.put("UnitName" + i, new Long(xUnitName)); } } else if (tag.equals("view")) { // read in view in.skipBytes(4); } else if (tag.equals("plot")) { // read in plot // skipping this field for the moment in.skipBytes(4); // size is 2508 in.skipBytes(2508); } else if (tag.equals("notes")) { // read in notes (image info) in.skipBytes(4); // size is 576 byte[] temp = new byte[64]; in.read(temp); String descriptor = new String(temp); temp = new byte[512]; in.read(temp); String notes = new String(temp); metadata.put("Descriptor", descriptor); metadata.put("Notes", notes); if (ome != null) { OMETools.setDescription(ome, notes); } } int r = in.read(fourBytes); if (r > 0) { tag = new String(fourBytes); } else { // eof tag = "fini"; } } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/91859a26506b8a1d312b398da2c3ecd94e02fa60/IPLabReader.java/clean/loci/formats/IPLabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1160, 8526, 12792, 2160, 273, 394, 1160, 63, 24, 15533, 565, 316, 18, 896, 12, 74, 477, 2160, 1769, 565, 328, 10609, 273, 394, 514, 12, 74, 477, 2160, 2934, 14963, 2932, 2835, 2835, 8863, 565, 368, 6490, 4529, 1982, 711, 14544, 471, 531, 958, 1365, 756, 565, 316, 18, 16508, 12, 20, 1769, 565, 316, 18, 7457, 2160, 12, 2313, 1769, 565, 1525, 30216, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 30216, 3947, 9131, 31, 368, 963, 434, 1831, 1316, 501, 16, 316, 1731, 565, 1525, 1835, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1525, 2072, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1525, 5750, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1525, 998, 6148, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1525, 268, 6148, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1525, 4957, 559, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 1982, 18, 458, 2932, 2384, 3113, 394, 3407, 12, 2819, 10019, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1160, 8526, 12792, 2160, 273, 394, 1160, 63, 24, 15533, 565, 316, 18, 896, 12, 74, 477, 2160, 1769, 565, 328, 10609, 273, 394, 514, 12, 74, 477, 2160, 2934, 14963, 2932, 2835, 2835, 8863, 565, 368, 6490, 4529, 1982, 711, 14544, 471, 531, 958, 1365, 756, 565, 316, 18, 16508, 12, 20, 1769, 565, 316, 18, 7457, 2160, 12, 2313, 1769, 565, 1525, 30216, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 328, 10609, 1769, 565, 30216, 3947, 9131, 2 ]
this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); appear();
if (dot >= 0) { this.mark = dot; this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); }
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); appear(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/84a98fbb140d95f40590611670c4ede4748faabf/DefaultCaret.java/buggy/javax/swing/text/DefaultCaret.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 10412, 12, 474, 3928, 13, 225, 288, 565, 333, 18, 9811, 273, 3928, 31, 565, 333, 18, 3355, 273, 3928, 31, 565, 1640, 16205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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 10412, 12, 474, 3928, 13, 225, 288, 565, 333, 18, 9811, 273, 3928, 31, 565, 333, 18, 3355, 273, 3928, 31, 565, 1640, 16205, 5621, 565, 5765, 10135, 12, 2211, 1769, 565, 9788, 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 ]
return getMembersInLevel((RolapLevel) hierarchy.getLevels()[0],
return getMembersInLevel((RolapLevel) hierarchy.getLevels()[0],
public List getRootMembers() { return getMembersInLevel((RolapLevel) hierarchy.getLevels()[0], 0, Integer.MAX_VALUE); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/04e646f31dd5b7942980cee630c94f49bdab0e26/SqlMemberSource.java/buggy/src/main/mondrian/rolap/SqlMemberSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 7656, 6918, 1435, 288, 3639, 327, 29106, 382, 2355, 12443, 4984, 438, 2355, 13, 9360, 18, 588, 12240, 1435, 63, 20, 6487, 21394, 374, 16, 4766, 2144, 18, 6694, 67, 4051, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 7656, 6918, 1435, 288, 3639, 327, 29106, 382, 2355, 12443, 4984, 438, 2355, 13, 9360, 18, 588, 12240, 1435, 63, 20, 6487, 21394, 374, 16, 4766, 2144, 18, 6694, 67, 4051, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(maxRetryChild != null){
if(maxRetryChild != null) {
public RunProperties(Element el) throws ConfigurationException{ Element runNameChild = SodUtil.getElement(el, "runName"); if(runNameChild != null ){ runName = SodUtil.getText(runNameChild); CookieJar.getCommonContext().put("runName", runName); } Element statusBaseChild = SodUtil.getElement(el, "statusBase"); if(statusBaseChild != null){ statusDir = SodUtil.getText(statusBaseChild); } Element eventQueryChild = SodUtil.getElement(el, "eventQueryIncrement"); if(eventQueryChild != null){ eventQueryIncrement = SodUtil.loadTimeInterval(eventQueryChild); } Element eventLagChild = SodUtil.getElement(el, "eventLag"); if(eventLagChild != null){ eventLag = SodUtil.loadTimeInterval(eventLagChild); } Element eventRefreshChild = SodUtil.getElement(el, "eventRefreshInterval"); if(eventRefreshChild != null){ eventRefresh = SodUtil.loadTimeInterval(eventRefreshChild); } Element maxRetryChild = SodUtil.getElement(el, "maxRetryDelay"); if(maxRetryChild != null){ maxRetry = SodUtil.loadTimeInterval(maxRetryChild); } Element serverRetryChild = SodUtil.getElement(el, "serverRetryDelay"); if(serverRetryChild != null){ serverRetryDelay = SodUtil.loadTimeInterval(serverRetryChild); } Element numWorkersChild = SodUtil.getElement(el, "waveformWorkerThreads"); if(numWorkersChild != null){ numWorkers = Integer.parseInt(SodUtil.getText(numWorkersChild)); } Element evChanPairProcChild = SodUtil.getElement(el, "eventChannelPairProcessing"); if(evChanPairProcChild != null){ evChanPairProc = SodUtil.getText(evChanPairProcChild); } if(SodUtil.isTrue(el, "reopenEvents")){ reopenEvents = true; } if(SodUtil.isTrue(el, "removeDatabase")){ removeDatabase = true; } if(!SodUtil.isTrue(el, "makeIndexPage")){ doIndex = false; } }
45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/19c15ebe9a5330174818a5f9d6ba00fb257336e5/RunProperties.java/buggy/src/edu/sc/seis/sod/RunProperties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1939, 2297, 12, 1046, 415, 13, 1216, 22196, 95, 3639, 3010, 1086, 461, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2681, 461, 8863, 3639, 309, 12, 2681, 461, 1763, 480, 446, 262, 95, 5411, 1086, 461, 273, 348, 369, 1304, 18, 588, 1528, 12, 2681, 461, 1763, 1769, 5411, 10201, 10813, 18, 588, 6517, 1042, 7675, 458, 2932, 2681, 461, 3113, 1086, 461, 1769, 3639, 289, 3639, 3010, 1267, 2171, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2327, 2171, 8863, 3639, 309, 12, 2327, 2171, 1763, 480, 446, 15329, 5411, 1267, 1621, 273, 348, 369, 1304, 18, 588, 1528, 12, 2327, 2171, 1763, 1769, 3639, 289, 3639, 3010, 871, 1138, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2575, 1138, 10798, 8863, 3639, 309, 12, 2575, 1138, 1763, 480, 446, 15329, 5411, 871, 1138, 10798, 273, 348, 369, 1304, 18, 945, 950, 4006, 12, 2575, 1138, 1763, 1769, 3639, 289, 3639, 3010, 871, 26093, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2575, 26093, 8863, 3639, 309, 12, 2575, 26093, 1763, 480, 446, 15329, 5411, 871, 26093, 273, 348, 369, 1304, 18, 945, 950, 4006, 12, 2575, 26093, 1763, 1769, 3639, 289, 3639, 3010, 871, 8323, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2575, 8323, 4006, 8863, 3639, 309, 12, 2575, 8323, 1763, 480, 446, 15329, 5411, 871, 8323, 273, 348, 369, 1304, 18, 945, 950, 4006, 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, 1939, 2297, 12, 1046, 415, 13, 1216, 22196, 95, 3639, 3010, 1086, 461, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2681, 461, 8863, 3639, 309, 12, 2681, 461, 1763, 480, 446, 262, 95, 5411, 1086, 461, 273, 348, 369, 1304, 18, 588, 1528, 12, 2681, 461, 1763, 1769, 5411, 10201, 10813, 18, 588, 6517, 1042, 7675, 458, 2932, 2681, 461, 3113, 1086, 461, 1769, 3639, 289, 3639, 3010, 1267, 2171, 1763, 273, 348, 369, 1304, 18, 21336, 12, 292, 16, 315, 2327, 2171, 8863, 3639, 309, 12, 2327, 2171, 1763, 480, 446, 15329, 5411, 1267, 1621, 273, 348, 369, 1304, 18, 588, 1528, 12, 2327, 2171, 1763, 1769, 3639, 289, 3639, 3010, 871, 2 ]
mock.registerMethodName(BUILDER_ID, builder1); mock.registerMethodName(BUILDER_ID, builder2);
mock.registerMethodName(BUILDER_ID, builder1); mock.registerMethodName(BUILDER_ID, builder2);
public void testDuplicateMethodNameOverridesPreviousMapping() { MockMatchBuilder builder1 = new MockMatchBuilder(); MockMatchBuilder builder2 = new MockMatchBuilder(); mock.registerMethodName(BUILDER_ID, builder1); mock.registerMethodName(BUILDER_ID, builder2); assertSame("builder2", builder2, mock.lookupID(BUILDER_ID)); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/MockTest.java/buggy/jmock/core/src/test/jmock/MockTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11826, 11666, 13084, 8351, 3233, 1435, 288, 202, 202, 9865, 2060, 1263, 2089, 21, 273, 394, 7867, 2060, 1263, 5621, 202, 202, 9865, 2060, 1263, 2089, 22, 273, 394, 7867, 2060, 1263, 5621, 202, 202, 22851, 18, 4861, 11666, 12, 3000, 2627, 4179, 67, 734, 16, 2089, 21, 1769, 202, 202, 22851, 18, 4861, 11666, 12, 3000, 2627, 4179, 67, 734, 16, 2089, 22, 1769, 202, 202, 11231, 8650, 2932, 9574, 22, 3113, 2089, 22, 16, 5416, 18, 8664, 734, 12, 3000, 2627, 4179, 67, 734, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 2060, 1263, 2089, 22, 273, 394, 7867, 2060, 1263, 5621, 202, 202, 22851, 18, 4861, 11666, 12, 3000, 2627, 4179, 67, 734, 16, 2089, 21, 1769, 202, 202, 22851, 18, 4861, 11666, 12, 3000, 2627, 4179, 67, 734, 16, 2089, 22, 1769, 202, 202, 11231, 8650, 2932, 9574, 22, 3113, 2089, 22, 16, 5416, 18, 8664, 734, 12, 3000, 2627, 4179, 67, 734, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.sliderY = (selectionStart * screenAvailableHeight) / screenContentHeight;
this.sliderY = ( (selectionStart - contentYOffset) * screenAvailableHeight) / screenContentHeight;
public int initScrollBar( int screenWidth, int screenAvailableHeight, int screenContentHeight, int contentYOffset, int selectionStart, int selectionHeight, int focusedIndex, int numberOfItems ) { //#debug System.out.println("initScrollBar( screenWidth=" + screenWidth + ", screenAvailableHeight=" + screenAvailableHeight + ", screenContentHeight=" + screenContentHeight + ", contentYOffset=" + contentYOffset + ", selectionStart=" + selectionStart + ", selectionHeight=" + selectionHeight + ", focusedIndex=" + focusedIndex + ", numberOfItems=" + numberOfItems + ")"); if ( screenAvailableHeight >= screenContentHeight ) { this.isVisible = false; return 0; } this.isVisible = true; this.scrollBarHeight = screenAvailableHeight; //#if polish.css.scrollbar-slider-mode if ( this.sliderMode == MODE_ITEM && focusedIndex != -1) { //System.out.println("using item"); int chunkPerSlider = (screenAvailableHeight << 8) / numberOfItems; this.sliderY = (chunkPerSlider * focusedIndex) >>> 8; this.sliderHeight = chunkPerSlider >>> 8; } else if ( this.sliderMode == MODE_AREA && selectionHeight != 0 ) { //#else //# if (selectionHeight != 0) { //#endif // take the currently selected area //System.out.println("using area"); this.sliderY = (selectionStart * screenAvailableHeight) / screenContentHeight; this.sliderHeight = (selectionHeight * screenAvailableHeight) / screenContentHeight; } else { // use the page dimensions: //System.out.println("using page"); this.sliderY = (-contentYOffset * screenAvailableHeight) / screenContentHeight; this.sliderHeight = (screenAvailableHeight * screenAvailableHeight) / screenContentHeight; } //#if polish.css.scrollbar-slider-image && polish.css.scrollbar-slider-image-repeat if (this.repeatSliderImage && this.sliderImage != null ) { if (this.sliderHeight > this.sliderImage.getHeight()) { this.repeatSliderNumber = this.sliderHeight / this.sliderImage.getHeight(); } else { this.repeatSliderNumber = 1; } } //#endif //#debug System.out.println("sliderY=" + this.sliderY + ", sliderHeight=" + this.sliderHeight); if (!this.isInitialised) { init( screenWidth, screenWidth ); } return this.itemWidth; }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/d4ac220dfdc492e426ee884721aa301e9b1370e7/ScrollBar.java/buggy/j2me/source/src/de/enough/polish/ui/ScrollBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1208, 6806, 5190, 12, 509, 5518, 2384, 16, 509, 5518, 5268, 2686, 16, 509, 5518, 1350, 2686, 16, 509, 913, 61, 2335, 16, 509, 4421, 1685, 16, 509, 4421, 2686, 16, 509, 22397, 1016, 16, 509, 7922, 3126, 262, 288, 202, 202, 759, 7, 4148, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2738, 6806, 5190, 12, 5518, 2384, 1546, 397, 5518, 2384, 397, 3104, 5518, 5268, 2686, 1546, 397, 5518, 5268, 2686, 397, 3104, 5518, 1350, 2686, 1546, 397, 5518, 1350, 2686, 397, 3104, 913, 61, 2335, 1546, 397, 913, 61, 2335, 397, 3104, 4421, 1685, 1546, 397, 4421, 1685, 397, 3104, 4421, 2686, 1546, 397, 4421, 2686, 397, 3104, 22397, 1016, 1546, 397, 22397, 1016, 397, 3104, 7922, 3126, 1546, 397, 7922, 3126, 397, 7310, 1769, 9506, 202, 430, 261, 5518, 5268, 2686, 1545, 5518, 1350, 2686, 262, 288, 1082, 202, 2211, 18, 291, 6207, 273, 629, 31, 1082, 202, 2463, 374, 31, 202, 202, 97, 202, 202, 2211, 18, 291, 6207, 273, 638, 31, 202, 202, 2211, 18, 12033, 5190, 2686, 273, 5518, 5268, 2686, 31, 202, 202, 759, 7, 430, 2952, 1468, 18, 5212, 18, 12033, 3215, 17, 28372, 17, 3188, 1082, 202, 430, 261, 333, 18, 28372, 2309, 422, 11741, 67, 12674, 597, 22397, 1016, 480, 300, 21, 13, 288, 9506, 202, 759, 3163, 18, 659, 18, 8222, 2932, 9940, 761, 8863, 9506, 202, 474, 2441, 2173, 21824, 273, 261, 9252, 5268, 2686, 2296, 1725, 13, 342, 7922, 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, 509, 1208, 6806, 5190, 12, 509, 5518, 2384, 16, 509, 5518, 5268, 2686, 16, 509, 5518, 1350, 2686, 16, 509, 913, 61, 2335, 16, 509, 4421, 1685, 16, 509, 4421, 2686, 16, 509, 22397, 1016, 16, 509, 7922, 3126, 262, 288, 202, 202, 759, 7, 4148, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2738, 6806, 5190, 12, 5518, 2384, 1546, 397, 5518, 2384, 397, 3104, 5518, 5268, 2686, 1546, 397, 5518, 5268, 2686, 397, 3104, 5518, 1350, 2686, 1546, 397, 5518, 1350, 2686, 397, 3104, 913, 61, 2335, 1546, 397, 913, 61, 2335, 397, 3104, 4421, 1685, 1546, 397, 4421, 1685, 397, 3104, 4421, 2686, 1546, 397, 4421, 2686, 397, 3104, 22397, 1016, 1546, 397, 2 ]
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public void handleListChange(IObservableList source, ListDiff diff) { // Fires a Change and then ListChange event. fireListChange(diff); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/UnmodifiableObservableList.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/internal/databinding/observable/UnmodifiableObservableList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 682, 3043, 12, 4294, 3745, 682, 1084, 16, 987, 5938, 3122, 13, 288, 9506, 202, 759, 478, 2814, 279, 7576, 471, 1508, 987, 3043, 871, 18, 9506, 202, 12179, 682, 3043, 12, 5413, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 682, 3043, 12, 4294, 3745, 682, 1084, 16, 987, 5938, 3122, 13, 288, 9506, 202, 759, 478, 2814, 279, 7576, 471, 1508, 987, 3043, 871, 18, 9506, 202, 12179, 682, 3043, 12, 5413, 1769, 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 ]
try {
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); JRubyFile file = JRubyFile.create(runtime.getCurrentDirectory(),name); if(file.isFile() && file.isAbsolute()) { try { return new LoadServiceResource(file.toURL(),name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); // Look in classpath next (we do not use File as a test since UNC names will match) // Note: Jar resources must always begin with an '/'. if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } for (Iterator pathIter = loadPath.iterator(); pathIter.hasNext();) { String entry = pathIter.next().toString(); if (entry.startsWith("jar:")) { JarFile current = (JarFile)jarFiles.get(entry); if(null == current) { try { current = new JarFile(entry.substring(4)); jarFiles.put(entry,current); } catch (FileNotFoundException ignored) { } catch (IOException e) { throw runtime.newIOErrorFromException(e); } } if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } } // // Load from local filesystem // NormalizedFile current = (NormalizedFile)new NormalizedFile(entry, name).getAbsoluteFile(); JRubyFile current = JRubyFile.create(JRubyFile.create(runtime.getCurrentDirectory(),entry).getAbsolutePath(), name); if (current.isFile()) { try { return new LoadServiceResource(current.toURL(), current.getPath()); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // otherwise, try to load from classpath (Note: Jar resources always uses '/') URL loc = classLoader.getResource(entry.replace('\\', '/') + "/" + xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } // Try to load from classpath without prefix. "A/b.rb" will not load as // "./A/b.rb" in a jar file. (Note: Jar resources always uses '/') URL loc = classLoader.getResource(xname); return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null; // } catch (MalformedURLException e) { // throw runtime.newIOErrorFromException(e); // } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/buggy/src/org/jruby/runtime/load/LoadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 775, 288, 775, 288, 3238, 4444, 1179, 1420, 1104, 812, 12, 780, 508, 13, 288, 698, 288, 775, 288, 775, 288, 775, 288, 368, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 309, 261, 529, 18, 17514, 1190, 2932, 11930, 2773, 3719, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 327, 394, 4444, 1179, 1420, 12, 2704, 1976, 12, 529, 3631, 508, 1769, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 289, 1044, 261, 18695, 20160, 425, 13, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 604, 3099, 18, 2704, 4294, 668, 1265, 503, 12, 73, 1769, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 289, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 289, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 368, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 9403, 11138, 273, 4884, 18, 2972, 3830, 7675, 29120, 7805, 5621, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 225, 27974, 10340, 812, 585, 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, 775, 288, 775, 288, 3238, 4444, 1179, 1420, 1104, 812, 12, 780, 508, 13, 288, 698, 288, 775, 288, 775, 288, 775, 288, 368, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 309, 261, 529, 18, 17514, 1190, 2932, 11930, 2773, 3719, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 288, 327, 394, 4444, 1179, 1420, 12, 2704, 1976, 12, 529, 3631, 508, 1769, 698, 288, 775, 288, 775, 288, 775, 288, 775, 288, 775, 2 ]
public IOption setOption(ITool tool, IOption option, String value)
public IOption setOption(ITool tool, IOption option, boolean value)
public IOption setOption(ITool tool, IOption option, String value) throws BuildException;
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ec7b7d407631005d692b25cf5b8f5b0fd6b7bc85/IConfiguration.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IConfiguration.java
[ 1, 8585, 326, 22398, 316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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1665, 375, 14211, 12, 45, 6364, 5226, 16, 1665, 375, 1456, 16, 514, 460, 13, 202, 202, 15069, 18463, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ParserRule sourceRule = getEnclosingRuleAtPosition(textPane.getCaretPosition());
ParserRule sourceRule = getEnclosingRuleAtPosition(editor.getCaretPosition());
public void actionPerformed(ActionEvent event) { ParserRule sourceRule = getEnclosingRuleAtPosition(textPane.getCaretPosition()); int previousRuleIndex = parser.getRules().indexOf(sourceRule)-1; if(previousRuleIndex>=0) { ParserRule targetRule = parser.getRuleAtIndex(previousRuleIndex); moveRule(sourceRule, targetRule, true); } }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/436dfac0820b7f97c5dbfa0a5a51e36ec25fb64f/Rules.java/buggy/src/org/antlr/works/editor/rules/Rules.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 288, 5411, 6783, 2175, 1084, 2175, 273, 336, 21594, 2175, 861, 2555, 12, 9177, 18, 588, 39, 20731, 2555, 10663, 5411, 509, 2416, 2175, 1016, 273, 2082, 18, 588, 4478, 7675, 31806, 12, 3168, 2175, 24950, 21, 31, 5411, 309, 12, 11515, 2175, 1016, 34, 33, 20, 13, 288, 7734, 6783, 2175, 1018, 2175, 273, 2082, 18, 588, 2175, 24499, 12, 11515, 2175, 1016, 1769, 7734, 3635, 2175, 12, 3168, 2175, 16, 1018, 2175, 16, 638, 1769, 5411, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 288, 5411, 6783, 2175, 1084, 2175, 273, 336, 21594, 2175, 861, 2555, 12, 9177, 18, 588, 39, 20731, 2555, 10663, 5411, 509, 2416, 2175, 1016, 273, 2082, 18, 588, 4478, 7675, 31806, 12, 3168, 2175, 24950, 21, 31, 5411, 309, 12, 11515, 2175, 1016, 34, 33, 20, 13, 288, 7734, 6783, 2175, 1018, 2175, 273, 2082, 18, 588, 2175, 24499, 12, 11515, 2175, 1016, 1769, 7734, 3635, 2175, 12, 3168, 2175, 16, 1018, 2175, 16, 638, 1769, 5411, 289, 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 ]
public void defineScopeEquivalence(Class scopeClass, Class equivClass){
protected void defineScopeEquivalence(Class scopeClass, Class equivClass){
public void defineScopeEquivalence(Class scopeClass, Class equivClass){ final Iterator<CompletionVariant> iter = myCompletionVariants.iterator(); if(isScopeFinal(scopeClass)){ declareFinalScope(equivClass); } while(iter.hasNext()){ final CompletionVariant variant = iter.next(); if(variant.isScopeClassAcceptable(scopeClass)){ variant.includeScopeClass(equivClass, variant.isScopeClassFinal(scopeClass)); } } return; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f251efe26525495da44dafdbea831741c4697c01/CompletionData.java/clean/source/com/intellij/codeInsight/completion/CompletionData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4426, 3876, 13142, 19713, 12, 797, 2146, 797, 16, 1659, 1298, 427, 797, 15329, 565, 727, 4498, 32, 11238, 9356, 34, 1400, 273, 3399, 11238, 21165, 18, 9838, 5621, 565, 309, 12, 291, 3876, 7951, 12, 4887, 797, 3719, 95, 1377, 14196, 7951, 3876, 12, 14298, 427, 797, 1769, 565, 289, 565, 1323, 12, 2165, 18, 5332, 2134, 10756, 95, 1377, 727, 20735, 9356, 5437, 273, 1400, 18, 4285, 5621, 1377, 309, 12, 8688, 18, 291, 3876, 797, 5933, 429, 12, 4887, 797, 3719, 95, 3639, 5437, 18, 6702, 3876, 797, 12, 14298, 427, 797, 16, 5437, 18, 291, 3876, 797, 7951, 12, 4887, 797, 10019, 1377, 289, 565, 289, 565, 327, 31, 225, 289, 2, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4426, 3876, 13142, 19713, 12, 797, 2146, 797, 16, 1659, 1298, 427, 797, 15329, 565, 727, 4498, 32, 11238, 9356, 34, 1400, 273, 3399, 11238, 21165, 18, 9838, 5621, 565, 309, 12, 291, 3876, 7951, 12, 4887, 797, 3719, 95, 1377, 14196, 7951, 3876, 12, 14298, 427, 797, 1769, 565, 289, 565, 1323, 12, 2165, 18, 5332, 2134, 10756, 95, 1377, 727, 20735, 9356, 5437, 273, 1400, 18, 4285, 5621, 1377, 309, 12, 8688, 18, 291, 3876, 797, 5933, 429, 12, 4887, 797, 3719, 95, 3639, 5437, 18, 6702, 3876, 797, 12, 14298, 427, 797, 16, 5437, 18, 291, 3876, 797, 7951, 12, 4887, 797, 10019, 1377, 289, 565, 289, 565, 327, 31, 225, 289, 2, -100 ]
if (!found) { super.visitElement(element); } }
if (!found) { super.visitElement(element); } }
public void visitElement(@NotNull PsiElement element) { if (!found) { super.visitElement(element); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0c22d3bce35a1ee7d70c329328f649614cf6f21a/UnusedLabelInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/UnusedLabelInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1046, 26964, 5962, 453, 7722, 1046, 930, 13, 288, 1377, 309, 16051, 7015, 13, 288, 3639, 2240, 18, 11658, 1046, 12, 2956, 1769, 1377, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 1046, 26964, 5962, 453, 7722, 1046, 930, 13, 288, 1377, 309, 16051, 7015, 13, 288, 3639, 2240, 18, 11658, 1046, 12, 2956, 1769, 1377, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
expected += eol + " ";
expected.append(eol).append(" ");
public String getMessage() { if (!specialConstructor) { return super.getMessage(); } String expected = ""; int maxSize = 0; for (int i = 0; i < expectedTokenSequences.length; i++) { if (maxSize < expectedTokenSequences[i].length) { maxSize = expectedTokenSequences[i].length; } for (int j = 0; j < expectedTokenSequences[i].length; j++) { expected += tokenImage[expectedTokenSequences[i][j]] + " "; } if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { expected += "..."; } expected += eol + " "; } String retval = "Encountered \""; Token tok = currentToken.next; for (int i = 0; i < maxSize; i++) { if (i != 0) retval += " "; if (tok.kind == 0) { retval += tokenImage[0]; break; } retval += add_escapes(tok.image); tok = tok.next; } retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn; retval += "." + eol; if (expectedTokenSequences.length == 1) { retval += "Was expecting:" + eol + " "; } else { retval += "Was expecting one of:" + eol + " "; } retval += expected; return retval; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2eb65c2e9ac6a276eef58ee5964cacd059b114f4/ParseException.java/buggy/pmd/src/net/sourceforge/pmd/ast/ParseException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2381, 1435, 288, 565, 309, 16051, 9371, 6293, 13, 288, 1377, 327, 2240, 18, 24906, 5621, 565, 289, 565, 514, 2665, 273, 1408, 31, 565, 509, 14777, 273, 374, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2665, 1345, 21710, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 1896, 1225, 411, 2665, 1345, 21710, 63, 77, 8009, 2469, 13, 288, 3639, 14777, 273, 2665, 1345, 21710, 63, 77, 8009, 2469, 31, 1377, 289, 1377, 364, 261, 474, 525, 273, 374, 31, 525, 411, 2665, 1345, 21710, 63, 77, 8009, 2469, 31, 525, 27245, 288, 3639, 2665, 1011, 1147, 2040, 63, 3825, 1345, 21710, 63, 77, 6362, 78, 13563, 397, 315, 13636, 1377, 289, 1377, 309, 261, 3825, 1345, 21710, 63, 77, 6362, 3825, 1345, 21710, 63, 77, 8009, 2469, 300, 404, 65, 480, 374, 13, 288, 3639, 2665, 1011, 26456, 31, 1377, 289, 1377, 2665, 18, 6923, 12, 30951, 2934, 6923, 2932, 565, 315, 1769, 565, 289, 565, 514, 5221, 273, 315, 4280, 29625, 11843, 31, 565, 3155, 946, 273, 23719, 18, 4285, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 14777, 31, 277, 27245, 288, 1377, 309, 261, 77, 480, 374, 13, 5221, 1011, 315, 13636, 1377, 309, 261, 17692, 18, 9224, 422, 374, 13, 288, 3639, 5221, 1011, 1147, 2040, 63, 20, 15533, 3639, 898, 31, 1377, 289, 1377, 5221, 1011, 527, 67, 742, 7315, 12, 17692, 18, 2730, 1769, 1377, 946, 273, 946, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2381, 1435, 288, 565, 309, 16051, 9371, 6293, 13, 288, 1377, 327, 2240, 18, 24906, 5621, 565, 289, 565, 514, 2665, 273, 1408, 31, 565, 509, 14777, 273, 374, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2665, 1345, 21710, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 1896, 1225, 411, 2665, 1345, 21710, 63, 77, 8009, 2469, 13, 288, 3639, 14777, 273, 2665, 1345, 21710, 63, 77, 8009, 2469, 31, 1377, 289, 1377, 364, 261, 474, 525, 273, 374, 31, 525, 411, 2665, 1345, 21710, 63, 77, 8009, 2469, 31, 525, 27245, 288, 3639, 2665, 1011, 1147, 2040, 63, 3825, 1345, 21710, 63, 77, 6362, 78, 13563, 397, 315, 13636, 1377, 2 ]