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
description = RenderUtils.getResourceString(bundle, enumerate.toString());
description = RenderUtils.getResourceString(bundle, e.toString());
public static String getEnumString(Enum enumerate, String bundle) { String description = null; if(bundle == null) { bundle = "ENUMERATION_RESOURCES"; } String fullPrefix = enumerate.getClass().getName(); description = RenderUtils.getResourceString(bundle, fullPrefix + "." + enumerate.name()); if (description == null) { String simplePrefix = enumerate.getClass().getSimpleName(); description = RenderUtils.getResourceString(bundle, simplePrefix + "." + enumerate.name()); } if (description == null) { description = RenderUtils.getResourceString(bundle, enumerate.toString()); } if (description == null) { description = RenderUtils.getResourceString(enumerate.toString()); } if (description == null) { description = enumerate.toString(); } return description; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/d32363319c9e607818130781b2e28e9ad680bb5f/RenderUtils.java/buggy/src/net/sourceforge/fenixedu/renderers/utils/RenderUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 26813, 780, 12, 3572, 4241, 16, 514, 3440, 13, 288, 3639, 514, 2477, 273, 446, 31, 7734, 309, 12, 9991, 422, 446, 13, 288, 5411, 3440, 273, 315, 16509, 654, 2689, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 26813, 780, 12, 3572, 4241, 16, 514, 3440, 13, 288, 3639, 514, 2477, 273, 446, 31, 7734, 309, 12, 9991, 422, 446, 13, 288, 5411, 3440, 273, 315, 16509, 654, 2689, 67, ...
if (length > 0)
if (canCompleteEmptyToken || length > 0)
private void findKeywords(char[] keyword, char[][] choices) { if(choices == null || choices.length == 0) return; int length = keyword.length; if (length > 0) for (int i = 0; i < choices.length; i++) if (length <= choices[i].length && CharOperation.prefixEquals(keyword, choices[i], false /* ignore case */ )){ int relevance = computeBaseRelevance(); relevance += computeRelevanceForInterestingProposal(); relevance += computeRelevanceForCaseMatching(keyword, choices[i]); relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); // no access restriction for keywors if(CharOperation.equals(choices[i], Keywords.TRUE) || CharOperation.equals(choices[i], Keywords.FALSE)) { relevance += computeRelevanceForExpectingType(BaseTypes.BooleanBinding); relevance += computeRelevanceForQualification(false); } this.noProposal = false; if(!this.requestor.isIgnored(CompletionProposal.KEYWORD)) { CompletionProposal proposal = this.createProposal(CompletionProposal.KEYWORD, this.actualCompletionPosition); proposal.setName(choices[i]); proposal.setCompletion(choices[i]); proposal.setReplaceRange(this.startPosition - this.offset, this.endPosition - this.offset); proposal.setRelevance(relevance); this.requestor.accept(proposal); if(DEBUG) { this.printDebug(proposal); } } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0d4007eb15023a950a5e732906ce998c79797847/CompletionEngine.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1104, 14149, 12, 3001, 8526, 4932, 16, 1149, 63, 6362, 65, 7246, 13, 288, 202, 202, 430, 12, 11937, 422, 446, 747, 7246, 18, 2469, 422, 374, 13, 327, 31, 9506, 202, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 14149, 12, 3001, 8526, 4932, 16, 1149, 63, 6362, 65, 7246, 13, 288, 202, 202, 430, 12, 11937, 422, 446, 747, 7246, 18, 2469, 422, 374, 13, 327, 31, 9506, 202, 47...
defaultsInited = false;
protected void allocate() { //System.out.println(this + " allocating for " + width + " " + height); //new Exception().printStackTrace(); pixelCount = width * height; pixels = new int[pixelCount]; zbuffer = new float[pixelCount]; if (mainDrawingSurface) { // because of a java 1.1 bug, pixels must be registered as // opaque before their first run, the memimgsrc will flicker // and run very slowly. //backgroundColor |= 0xff000000; // just for good measure for (int i = 0; i < pixelCount; i++) pixels[i] = backgroundColor; //for (int i = 0; i < pixelCount; i++) pixels[i] = 0xffffffff; cm = new DirectColorModel(32, 0x00ff0000, 0x0000ff00, 0x000000ff);; mis = new MemoryImageSource(width, height, pixels, 0, width); mis.setFullBufferUpdates(true); mis.setAnimated(true); image = Toolkit.getDefaultToolkit().createImage(mis); } else { // when not the main drawing surface, need to set the zbuffer, // because there's a possibility that background() will not be called for (int i = 0; i < pixelCount; i++) { zbuffer[i] = Float.MAX_VALUE; } } stencil = new int[pixelCount]; line = new PLine(this); triangle = new PTriangle(this); defaultsInited = false; //System.out.println(this + " done allocating"); }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/f0bf17c5c90db0ec98383f84af116745f781078a/PGraphics3D.java/buggy/core/src/processing/core/PGraphics3D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 10101, 1435, 288, 565, 368, 3163, 18, 659, 18, 8222, 12, 2211, 397, 315, 4767, 1776, 364, 315, 397, 1835, 397, 315, 315, 397, 2072, 1769, 565, 368, 2704, 1185, 7675, 1188, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10101, 1435, 288, 565, 368, 3163, 18, 659, 18, 8222, 12, 2211, 397, 315, 4767, 1776, 364, 315, 397, 1835, 397, 315, 315, 397, 2072, 1769, 565, 368, 2704, 1185, 7675, 1188, 63...
return this.showAromaticityInCDKStyle; }
return this.showAromaticityInCDKStyle; }
public boolean getShowAromaticityInCDKStyle() { return this.showAromaticityInCDKStyle; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/b7597d09b03980486670c72a7289affda9ea694b/Renderer2DModel.java/clean/src/org/openscience/cdk/renderer/Renderer2DModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 7932, 543, 37, 27468, 560, 382, 39, 3398, 2885, 1435, 288, 565, 327, 333, 18, 4500, 37, 27468, 560, 382, 39, 3398, 2885, 31, 225, 289, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 7932, 543, 37, 27468, 560, 382, 39, 3398, 2885, 1435, 288, 565, 327, 333, 18, 4500, 37, 27468, 560, 382, 39, 3398, 2885, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100,...
return _thread.isSuspended();
try { return _thread.isSuspended(); } catch (ObjectCollectedException oce) { return false; }
public boolean isSuspended() { return _thread.isSuspended(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6222fd84e3aa6c7b8b3da9d73ccf7a9a3370487b/DebugThreadData.java/clean/drjava/src/edu/rice/cs/drjava/model/debug/DebugThreadData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 11604, 22942, 1435, 288, 565, 775, 288, 327, 389, 5930, 18, 291, 55, 22942, 5621, 289, 1044, 261, 921, 10808, 329, 503, 320, 311, 13, 288, 327, 629, 31, 289, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 11604, 22942, 1435, 288, 565, 775, 288, 327, 389, 5930, 18, 291, 55, 22942, 5621, 289, 1044, 261, 921, 10808, 329, 503, 320, 311, 13, 288, 327, 629, 31, 289, 225, 289, 2, ...
return super.hashCode() + objectHashCode(defaultValue);
return objectHashCode(defaultValue) + objectHashCode(name);
public int hashCode() { return super.hashCode() + objectHashCode(defaultValue); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/4cf2a60f945bc9d3a479672765bab3fdaadc0c78/MacroDef.java/clean/src/main/org/apache/tools/ant/taskdefs/MacroDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 13374, 1435, 288, 5411, 327, 733, 21952, 12, 27652, 13, 397, 733, 21952, 12, 529, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 13374, 1435, 288, 5411, 327, 733, 21952, 12, 27652, 13, 397, 733, 21952, 12, 529, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
InboundVariable iv = new InboundVariable(ctx, "type", "23");
InboundVariable iv = new InboundVariable(ctx, null, "type", "23");
public void testConvertInboundBigInteger() throws Exception { InboundContext ctx = new InboundContext(); InboundVariable iv = new InboundVariable(ctx, "type", "23"); Object result = converter.convertInbound(BigInteger.class, iv, ctx); assertNotNull(result); assertTrue(result instanceof BigInteger); assertEquals(new BigInteger("23"), result); }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/5036a4257c94dc7f3331ef721820289056906448/BigNumberConverterTests.java/clean/test/uk/ltd/getahead/dwr/convert/BigNumberConverterTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2723, 20571, 24198, 1435, 1216, 1185, 565, 288, 3639, 657, 3653, 1042, 1103, 273, 394, 657, 3653, 1042, 5621, 3639, 657, 3653, 3092, 4674, 273, 394, 657, 3653, 3092, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2723, 20571, 24198, 1435, 1216, 1185, 565, 288, 3639, 657, 3653, 1042, 1103, 273, 394, 657, 3653, 1042, 5621, 3639, 657, 3653, 3092, 4674, 273, 394, 657, 3653, 3092, 12, ...
status.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.STATUS_VALUES)));
status.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs .getString(IBugzillaConstants.STATUS_VALUES)));
protected Control createUpdate(final Composite control) { GridData gd; Label label; Composite group = new Composite(control, SWT.NONE); GridLayout layout = new GridLayout(2, false); group.setLayout(layout); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); gd = new GridData(GridData.BEGINNING); gd.horizontalSpan = 2; group.setLayoutData(gd); // Info text label = new Label(group, SWT.LEFT); label.setText("Update search options from server:"); gd = new GridData(GridData.BEGINNING); label.setLayoutData(gd); updateButton = new Button(group, SWT.LEFT | SWT.PUSH); updateButton.setText("Update Products"); updateButton.setLayoutData(new GridData()); updateButton.addMouseListener(new MouseAdapter() { @Override public void mouseUp(MouseEvent e) { monitorDialog.open(); IProgressMonitor monitor = monitorDialog.getProgressMonitor(); monitor.beginTask("Updating search options...", 55); try { BugzillaPreferencePage.updateQueryOptions(monitor); product.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRODUCT_VALUES))); monitor.worked(1); component.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.COMPONENT_VALUES))); monitor.worked(1); version.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.VERSION_VALUES))); monitor.worked(1); target.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.TARGET_VALUES))); monitor.worked(1); status.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.STATUS_VALUES))); monitor.worked(1); status.setSelection(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRESELECTED_STATUS_VALUES))); monitor.worked(1); resolution.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.RESOLUTION_VALUES))); monitor.worked(1); severity.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.SEVERITY_VALUES))); monitor.worked(1); priority.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.PRIORITY_VALUES))); monitor.worked(1); hardware.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.HARDWARE_VALUES))); monitor.worked(1); os.setItems(BugzillaPreferencePage.queryOptionsToArray(prefs.getString(IBugzillaConstants.OS_VALUES))); monitor.worked(1); } catch (LoginException exception) { // we had a problem that seems to have been caused from bad login info MessageDialog.openError(null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); BugzillaPlugin.log(exception); } finally { monitor.done(); monitorDialog.close(); } } }); return group; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/fec7424c90714d3bb3e31f7fbe0ed914b805a795/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/search/BugzillaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 1891, 12, 6385, 14728, 3325, 13, 288, 202, 202, 6313, 751, 15551, 31, 202, 202, 2224, 1433, 31, 202, 202, 9400, 1041, 273, 394, 14728, 12, 7098, 16, 348, 8588, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 1891, 12, 6385, 14728, 3325, 13, 288, 202, 202, 6313, 751, 15551, 31, 202, 202, 2224, 1433, 31, 202, 202, 9400, 1041, 273, 394, 14728, 12, 7098, 16, 348, 8588, 18,...
assertEquals(InstanceDef.PROTOTYPE_NAME, cd6.getInstanceDef()
assertEquals(InstanceDef.PROTOTYPE_NAME, cd6.getInstanceDef().getName()); assertEquals(AutoBindingDef.SEMIAUTO_NAME, cd6.getAutoBindingDef()
public void testCreateComponentDef() throws Exception { assertNotNull(handler.createComponentDef(Hoge.class, null)); ComponentDef cd = handler.createComponentDef(Hoge2.class, null); assertEquals("aaa", cd.getComponentName()); assertEquals("prototype", cd.getInstanceDef().getName()); assertEquals("property", cd.getAutoBindingDef().getName()); assertTrue(cd.isExternalBinding()); ComponentDef cd2 = handler.createComponentDef(Hoge.class, InstanceDefFactory.REQUEST); assertEquals(InstanceDef.REQUEST_NAME, cd2.getInstanceDef() .getName()); assertFalse(cd2.isExternalBinding()); ComponentDef cd3 = handler.createComponentDef(Hoge7.class, null); assertEquals("hoge77", cd3.getComponentName()); assertEquals(InstanceDef.PROTOTYPE_NAME, cd3.getInstanceDef() .getName()); assertEquals(AutoBindingDef.SEMIAUTO_NAME, cd3.getAutoBindingDef() .getName()); ComponentDef cd4 = handler.createComponentDef(Hoge8.class, null); assertEquals("hoge7", cd4.getComponentName()); assertEquals(InstanceDef.PROTOTYPE_NAME, cd4.getInstanceDef() .getName()); assertEquals(AutoBindingDef.SEMIAUTO_NAME, cd4 .getAutoBindingDef().getName()); ComponentDef cd5 = handler.createComponentDef(Hoge7.class, InstanceDefFactory.REQUEST); assertEquals(InstanceDef.REQUEST_NAME, cd5.getInstanceDef() .getName()); ComponentDef cd6 = handler.createComponentDef(Hoge9.class, null); assertEquals("hoge99", cd6.getComponentName()); assertEquals(InstanceDef.PROTOTYPE_NAME, cd6.getInstanceDef() .getName()); assertEquals(AutoBindingDef.SEMIAUTO_NAME, cd6 .getAutoBindingDef().getName()); ComponentDef cd7 = handler.createComponentDef(Hoge10.class, null); assertNull(cd7.getComponentName()); assertEquals(InstanceDef.PROTOTYPE_NAME, cd7.getInstanceDef() .getName()); assertEquals(AutoBindingDef.SEMIAUTO_NAME, cd7 .getAutoBindingDef().getName()); ComponentDef cd8 = handler.createComponentDef(Hoge9.class, InstanceDefFactory.REQUEST); assertEquals(InstanceDef.REQUEST_NAME, cd8.getInstanceDef() .getName()); ComponentDef cd9 = handler.createComponentDef(Hoge.class, InstanceDefFactory.REQUEST, AutoBindingDefFactory.NONE); assertEquals(AutoBindingDef.NONE_NAME, cd9.getAutoBindingDef() .getName()); ComponentDef cd10 = handler.createComponentDef(Hoge2.class, InstanceDefFactory.REQUEST, AutoBindingDefFactory.NONE); assertEquals(AutoBindingDef.PROPERTY_NAME, cd10 .getAutoBindingDef().getName()); ComponentDef cd11 = handler.createComponentDef(Hoge3.class, InstanceDefFactory.REQUEST, AutoBindingDefFactory.NONE); assertEquals(AutoBindingDef.PROPERTY_NAME, cd11 .getAutoBindingDef().getName()); ComponentDef cd12 = handler.createComponentDef(Hoge7.class, InstanceDefFactory.REQUEST, AutoBindingDefFactory.NONE, true); assertTrue(cd12.isExternalBinding()); }
49853 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49853/d864305dd60eb9503c3bf0191ad3c13a7cff5efd/TigerAnnotationHandlerTest.java/buggy/s2-tiger/src/test/java/org/seasar/framework/container/factory/TigerAnnotationHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 1841, 3262, 1435, 1216, 1185, 288, 3639, 25395, 12, 4176, 18, 2640, 1841, 3262, 12, 44, 717, 73, 18, 1106, 16, 446, 10019, 3639, 5435, 3262, 7976, 273, 1838, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 1841, 3262, 1435, 1216, 1185, 288, 3639, 25395, 12, 4176, 18, 2640, 1841, 3262, 12, 44, 717, 73, 18, 1106, 16, 446, 10019, 3639, 5435, 3262, 7976, 273, 1838, 18, ...
m_relativePath = FileUtils.getRelativeURI(outFile, testFileDir);
m_relativePath = FileUtil.getRelativeURI(outFile, testFileDir);
private void runTest(String test) throws Exception { m_tests.clear(); m_dataFiles.clear(); m_otherErrors = 0; m_testFile = new File(test); initOutFile(); File outFile = new File(m_outFileName); File testFileDir = m_testFile.getAbsoluteFile().getParentFile(); m_relativePath = FileUtils.getRelativeURI(outFile, testFileDir); if (! m_relativePath.equals("") && ! m_relativePath.endsWith("/")) m_relativePath = m_relativePath + "/"; FileReader fileReader = new FileReader(m_testFile); BufferedReader reader = new BufferedReader(fileReader); m_gtp = new GtpClient(m_program, m_verbose, this); m_lastSgf = null; try { m_name = send("name"); } catch (GtpError e) { m_name = ""; if (m_gtp.isProgramDead()) throw e; } try { m_version = send("version"); } catch (GtpError e) { m_version = ""; } double cpuTime = getCpuTime(); long timeMillis = System.currentTimeMillis(); printOutSeparator(); String line; while (true) { line = reader.readLine(); if (line == null) break; handleLine(line); } timeMillis = System.currentTimeMillis() - timeMillis; if (m_lastFullResponse != null) { handleLastResponse(); m_lastFullResponse = null; } printOutSeparator(); cpuTime = getCpuTime() - cpuTime; if (m_lastFullResponse != null) { handleLastResponse(); m_lastFullResponse = null; } if (! m_gtp.isProgramDead()) send("quit"); m_gtp.waitForExit(); reader.close(); finishOutFile(); TestSummary testSummary = getTestSummary(timeMillis, cpuTime); m_testSummaries.add(testSummary); writeTestSummary(testSummary); }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/1f50ffb219183ddaf94720a4aba453e11f412425/GtpRegress.java/buggy/src/net/sf/gogui/gtpregress/GtpRegress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1086, 4709, 12, 780, 1842, 13, 3639, 1216, 1185, 565, 288, 3639, 312, 67, 16341, 18, 8507, 5621, 3639, 312, 67, 892, 2697, 18, 8507, 5621, 3639, 312, 67, 3011, 4229, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 4709, 12, 780, 1842, 13, 3639, 1216, 1185, 565, 288, 3639, 312, 67, 16341, 18, 8507, 5621, 3639, 312, 67, 892, 2697, 18, 8507, 5621, 3639, 312, 67, 3011, 4229, 273, 374...
public Object execMethod(int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
public Object execMethod(int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case Id_constructor: return jsConstructor(cx, scope, args); case Id_toString: { BaseFunction realf = realFunction(thisObj, f); int indent = ScriptRuntime.toInt32(args, 0); return realf.decompile(indent, 0); } case Id_toSource: { BaseFunction realf = realFunction(thisObj, f); int indent = 0; int flags = Decompiler.TO_SOURCE_FLAG; if (args.length != 0) { indent = ScriptRuntime.toInt32(args[0]); if (indent >= 0) { flags = 0; } else { indent = 0; } } return realf.decompile(indent, flags); } case Id_apply: case Id_call: return applyOrCall(methodId == Id_apply, cx, scope, thisObj, args); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/3526c0f6981dc6716171a07605c6bcc7b6b20cb3/BaseFunction.java/clean/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 284, 16, 1772, 9494, 16, 11794, 22780, 2146, 16, 22780, 15261, 16, 11794, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 284, 16, 1772, 9494, 16, 11794, 22780, 2146, 16, 22780, 15261, 16, 11794, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288,...
if (stmt.rsIsClosed()) { writeQRYNOPRM(CodePoint.SVRCOD_ERROR); skipRemainder(true); return null; }
if (stmt.rsIsClosed()) { writeQRYNOPRM(CodePoint.SVRCOD_ERROR); skipRemainder(true); return null; }
private DRDAStatement parseCNTQRY() throws DRDAProtocolException, SQLException { byte val; Pkgnamcsn pkgnamcsn = null; boolean gotQryblksz = false; boolean qryrelscr = true; long qryrownbr = 1; boolean qryrfrtbl = false; int nbrrow = 1; int blksize = 0; int maxblkext = -1; long qryinsid; boolean gotQryinsid = false; int qryscrorn = CodePoint.QRYSCRREL; boolean qryrowsns = false; boolean gotQryrowsns = false; boolean qryblkrst = false; boolean qryrtndta = true; int qryrowset = CodePoint.QRYROWSET_DEFAULT; int rtnextdta = CodePoint.RTNEXTROW; reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch(codePoint) { //optional case CodePoint.RDBNAM: setDatabase(CodePoint.CNTQRY); break; //required case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; //required case CodePoint.QRYBLKSZ: blksize = parseQRYBLKSZ(); gotQryblksz = true; break; //optional case CodePoint.QRYRELSCR: qryrelscr = readBoolean(CodePoint.QRYRELSCR); if (SanityManager.DEBUG) trace("qryrelscr = "+qryrelscr); break; //optional case CodePoint.QRYSCRORN: checkLength(CodePoint.QRYSCRORN, 1); qryscrorn = reader.readUnsignedByte(); if (SanityManager.DEBUG) trace("qryscrorn = "+qryscrorn); switch (qryscrorn) { case CodePoint.QRYSCRREL: case CodePoint.QRYSCRABS: case CodePoint.QRYSCRAFT: case CodePoint.QRYSCRBEF: break; default: invalidValue(CodePoint.QRYSCRORN); } break; //optional case CodePoint.QRYROWNBR: checkLength(CodePoint.QRYROWNBR, 8); qryrownbr = reader.readNetworkLong(); if (SanityManager.DEBUG) trace("qryrownbr = "+qryrownbr); break; //optional case CodePoint.QRYROWSNS: checkLength(CodePoint.QRYROWSNS, 1); qryrowsns = readBoolean(CodePoint.QRYROWSNS); if (SanityManager.DEBUG) trace("qryrowsns = "+qryrowsns); gotQryrowsns = true; break; //optional case CodePoint.QRYBLKRST: checkLength(CodePoint.QRYBLKRST, 1); qryblkrst = readBoolean(CodePoint.QRYBLKRST); if (SanityManager.DEBUG) trace("qryblkrst = "+qryblkrst); break; //optional case CodePoint.QRYRTNDTA: qryrtndta = readBoolean(CodePoint.QRYRTNDTA); if (SanityManager.DEBUG) trace("qryrtndta = "+qryrtndta); break; //optional case CodePoint.QRYROWSET: //Note minimum for CNTQRY is 1 qryrowset = parseQRYROWSET(1); if (SanityManager.DEBUG) trace("qryrowset = "+qryrowset); break; //optional case CodePoint.QRYRFRTBL: qryrfrtbl = readBoolean(CodePoint.QRYRFRTBL); if (SanityManager.DEBUG) trace("qryrfrtbl = "+qryrfrtbl); break; //optional case CodePoint.NBRROW: checkLength(CodePoint.NBRROW, 4); nbrrow = reader.readNetworkInt(); if (SanityManager.DEBUG) trace("nbrrow = "+nbrrow); break; //optional case CodePoint.MAXBLKEXT: checkLength(CodePoint.MAXBLKEXT, 2); maxblkext = reader.readSignedNetworkShort(); if (SanityManager.DEBUG) trace("maxblkext = "+maxblkext); break; //optional case CodePoint.RTNEXTDTA: checkLength(CodePoint.RTNEXTDTA, 1); rtnextdta = reader.readUnsignedByte(); if (rtnextdta != CodePoint.RTNEXTROW && rtnextdta != CodePoint.RTNEXTALL) invalidValue(CodePoint.RTNEXTDTA); if (SanityManager.DEBUG) trace("rtnextdta = "+rtnextdta); break; // required for SQLAM >= 7 case CodePoint.QRYINSID: checkLength(CodePoint.QRYINSID, 8); qryinsid = reader.readNetworkLong(); gotQryinsid = true; if (SanityManager.DEBUG) trace("qryinsid = "+qryinsid); break; // optional case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } // check for required variables if (pkgnamcsn == null) missingCodePoint(CodePoint.PKGNAMCSN); if (!gotQryblksz) missingCodePoint(CodePoint.QRYBLKSZ); if (sqlamLevel >= MGRLVL_7 && !gotQryinsid) missingCodePoint(CodePoint.QRYINSID); // get the statement we are continuing DRDAStatement stmt = database.getDRDAStatement(pkgnamcsn); if (stmt == null) { //XXX should really throw a SQL Exception here invalidValue(CodePoint.CNTQRY); } if (stmt.rsIsClosed()) { writeQRYNOPRM(CodePoint.SVRCOD_ERROR); skipRemainder(true); return null; } stmt.setQueryOptions(blksize,qryrelscr,qryrownbr,qryrfrtbl,nbrrow,maxblkext, qryscrorn,qryrowsns,qryblkrst,qryrtndta,qryrowset, rtnextdta); if (reader.isChainedWithSameID()) parseCNTQRYobjects(stmt); return stmt; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d2989b7c8e85d8e5237ca2f36344eb4f163a426b/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16801, 9793, 3406, 1109, 39, 1784, 53, 9590, 1435, 1216, 16801, 9793, 5752, 503, 16, 6483, 565, 288, 202, 7229, 1244, 31, 202, 7789, 1600, 301, 2143, 82, 2365, 1600, 301, 2143, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16801, 9793, 3406, 1109, 39, 1784, 53, 9590, 1435, 1216, 16801, 9793, 5752, 503, 16, 6483, 565, 288, 202, 7229, 1244, 31, 202, 7789, 1600, 301, 2143, 82, 2365, 1600, 301, 2143, 82, ...
boolean rfc3261Compliant = getBranch() != null && messageBranch != null && getBranch().startsWith(SIPConstants.BRANCH_MAGIC_COOKIE) && messageBranch.startsWith(SIPConstants.BRANCH_MAGIC_COOKIE);
boolean rfc3261Compliant = getBranch() != null && messageBranch != null && getBranch().startsWith(SIPConstants.BRANCH_MAGIC_COOKIE) && messageBranch.startsWith(SIPConstants.BRANCH_MAGIC_COOKIE);
public boolean isMessagePartOfTransaction(SIPMessage messageToTest) { // List of Via headers in the message to test ViaList viaHeaders = messageToTest.getViaHeaders(); // Flags whether the select message is part of this transaction boolean transactionMatches; String messageBranch = ((Via) viaHeaders.getFirst()).getBranch(); boolean rfc3261Compliant = getBranch() != null && messageBranch != null && getBranch().startsWith(SIPConstants.BRANCH_MAGIC_COOKIE) && messageBranch.startsWith(SIPConstants.BRANCH_MAGIC_COOKIE); /** * if (parentStack.logWriter.needsLogging) { * sipStack.logWriter.logMessage("--------- TEST ------------"); * sipStack.logWriter.logMessage(" testing " + this.getOriginalRequest()); * sipStack.logWriter.logMessage("Against " + messageToTest); * sipStack.logWriter.logMessage("isTerminated = " + isTerminated()); * sipStack.logWriter.logMessage("messageBranch = " + messageBranch); * sipStack.logWriter.logMessage("viaList = " + messageToTest.getViaHeaders()); * sipStack.logWriter.logMessage("myBranch = " + getBranch()); * } **/ transactionMatches = false; if (TransactionState.COMPLETED == this.getState()) { if (rfc3261Compliant) { transactionMatches = getBranch().equals( ((Via) viaHeaders.getFirst()).getBranch()); } else { transactionMatches = getBranch().equals(messageToTest.getTransactionId()); } } else if (!isTerminated()) { if (rfc3261Compliant) { if (viaHeaders != null) { // If the branch parameter is the //same as this transaction and the method is the same, if (getBranch() .equals(((Via) viaHeaders.getFirst()).getBranch())) { transactionMatches = getOriginalRequest().getCSeq().getMethod().equals( messageToTest.getCSeq().getMethod()); } } } else { // not RFC 3261 compliant. if (getBranch() != null) { transactionMatches = getBranch().equals(messageToTest.getTransactionId()); } else { transactionMatches = getOriginalRequest().getTransactionId().equals( messageToTest.getTransactionId()); } } } return transactionMatches; }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/48d0f5aefaaec7a6c6f768504e4d3fcffcc8313f/SIPClientTransaction.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPClientTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 1079, 1988, 951, 3342, 12, 17739, 1079, 883, 774, 4709, 13, 288, 7734, 368, 987, 434, 776, 1155, 1607, 316, 326, 883, 358, 1842, 3639, 776, 1155, 682, 3970, 3121, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 1079, 1988, 951, 3342, 12, 17739, 1079, 883, 774, 4709, 13, 288, 7734, 368, 987, 434, 776, 1155, 1607, 316, 326, 883, 358, 1842, 3639, 776, 1155, 682, 3970, 3121, 273, ...
this.baseClassType = new ObjectType(baseClass);
this.baseClassType = ObjectTypeFactory.getInstance(baseClass);
public MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig) { this.baseClassType = new ObjectType(baseClass); this.methodName = methodName; this.methodSig = methodSig; this.isUninteresting = true; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/9f106f80e443416691845c69b524e8659b327ea6/MethodReturnValueStreamFactory.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/MethodReturnValueStreamFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2985, 19092, 1228, 1733, 12, 780, 23955, 16, 514, 4918, 16, 514, 707, 8267, 13, 288, 202, 202, 2211, 18, 1969, 18328, 273, 394, 21338, 12, 1969, 797, 1769, 202, 202, 2211, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2985, 19092, 1228, 1733, 12, 780, 23955, 16, 514, 4918, 16, 514, 707, 8267, 13, 288, 202, 202, 2211, 18, 1969, 18328, 273, 394, 21338, 12, 1969, 797, 1769, 202, 202, 2211, 18,...
AST __t315 = _t; AST tmp893_AST_in = (AST)_t;
AST __t300 = _t; AST tmp897_AST_in = (AST)_t;
public final void createbufferstate(AST _t) throws RecognitionException { AST createbufferstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t313 = _t; AST tmp889_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp890_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; AST tmp891_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); AST tmp892_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFERNAME: { AST __t315 = _t; AST tmp893_AST_in = (AST)_t; match(_t,BUFFERNAME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t315; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case IN_KW: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t317 = _t; AST tmp894_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp895_AST_in = (AST)_t; match(_t,WIDGETPOOL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t317; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp896_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t313; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 4106, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 4106, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 4106, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 4106, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) { update(); } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/Identities.java/buggy/grendel/sources/grendel/prefs/ui/Identities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 460, 5033, 12, 682, 6233, 1133, 425, 13, 288, 2398, 309, 261, 73, 18, 24805, 2520, 10952, 310, 10756, 288, 4202, 202, 3639, 1089, 5621, 2868, 289, 6647, 289, 2, 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, 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, 460, 5033, 12, 682, 6233, 1133, 425, 13, 288, 2398, 309, 261, 73, 18, 24805, 2520, 10952, 310, 10756, 288, 4202, 202, 3639, 1089, 5621, 2868, 289, 6647, 289, 2, -100, -100, -...
return TA_RetCode.TA_SUCCESS; }
if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; nbBar = endIdx-startIdx+1; outNbElement.value = nbBar; outBegIdx.value = startIdx; currentBar = startIdx; outIdx = 0; ad = 0.0; while( nbBar != 0 ) { high = inHigh[currentBar]; low = inLow[currentBar]; tmp = high-low; close = inClose[currentBar]; if( tmp > 0.0 ) ad += (((close-low)-(high-close))/tmp)*((double)inVolume[currentBar]); outReal[outIdx++] = ad; currentBar++; nbBar--; } return TA_RetCode. TA_SUCCESS; }
public TA_RetCode AD(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int inVolume[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int nbBar, currentBar, outIdx; double high, low, close, tmp; double ad; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; nbBar = endIdx - startIdx + 1; outNbElement.value = nbBar; outBegIdx.value = startIdx; currentBar = startIdx; outIdx = 0; ad = 0.0; while (nbBar != 0) { high = inHigh[currentBar]; low = inLow[currentBar]; tmp = high - low; close = inClose[currentBar]; if (tmp > 0.0) ad += (((close - low) - (high - close)) / tmp) * ((double) inVolume[currentBar]); outReal[outIdx++] = ad; currentBar++; nbBar--; } return TA_RetCode.TA_SUCCESS; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 11738, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1082, 202, 9056, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 11738, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1082, 202, 9056, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 316, ...
public ProblemTreeViewer(Composite parent, int style) { super(parent, style);
public ProblemTreeViewer(Composite parent) { super(parent);
public ProblemTreeViewer(Composite parent, int style) { super(parent, style); initMapper(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0629cdbc412b1ce2257986ea4d31b99e588b9cac/ProblemTreeViewer.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ProblemTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 21685, 2471, 18415, 12, 9400, 982, 16, 509, 2154, 13, 288, 202, 202, 9565, 12, 2938, 16, 2154, 1769, 202, 202, 2738, 4597, 5621, 202, 97, 2, 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, 0, 0, 0, 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, 21685, 2471, 18415, 12, 9400, 982, 16, 509, 2154, 13, 288, 202, 202, 9565, 12, 2938, 16, 2154, 1769, 202, 202, 2738, 4597, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100...
throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg);
throw new DOMException (DOMException.TYPE_MISMATCH_ERR, msg);
public void setParameter (String name, Object value) throws DOMException { // set features if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue (); try { if (name.equalsIgnoreCase (Constants.DOM_COMMENTS)) { fConfiguration.setFeature (INCLUDE_COMMENTS_FEATURE, state); } else if (name.equalsIgnoreCase (Constants.DOM_DATATYPE_NORMALIZATION)) { fConfiguration.setFeature (NORMALIZE_DATA, state); } else if (name.equalsIgnoreCase (Constants.DOM_ENTITIES)) { fConfiguration.setFeature (CREATE_ENTITY_REF_NODES, state); } else if (name.equalsIgnoreCase (Constants.DOM_DISALLOW_DOCTYPE)) { fConfiguration.setFeature (DISALLOW_DOCTYPE_DECL_FEATURE, state); } else if (name.equalsIgnoreCase (Constants.DOM_SUPPORTED_MEDIATYPES_ONLY) || name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase (Constants.DOM_CHECK_CHAR_NORMALIZATION) || name.equalsIgnoreCase (Constants.DOM_CANONICAL_FORM)) { if (state) { // true is not supported String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } // setting those features to false is no-op } else if (name.equalsIgnoreCase (Constants.DOM_NAMESPACES)) { fConfiguration.setFeature (NAMESPACES, state); } else if (name.equalsIgnoreCase (Constants.DOM_INFOSET)) { // Setting false has no effect. if (state) { // true: namespaces, namespace-declarations, // comments, element-content-whitespace fConfiguration.setFeature(NAMESPACES, true); fConfiguration.setFeature(Constants.DOM_NAMESPACE_DECLARATIONS, true); fConfiguration.setFeature(INCLUDE_COMMENTS_FEATURE, true); fConfiguration.setFeature(INCLUDE_IGNORABLE_WHITESPACE, true); // false: validate-if-schema, entities, // datatype-normalization, cdata-sections fConfiguration.setFeature(DYNAMIC_VALIDATION, false); fConfiguration.setFeature(CREATE_ENTITY_REF_NODES, false); fConfiguration.setFeature(NORMALIZE_DATA, false); fConfiguration.setFeature(CREATE_CDATA_NODES_FEATURE, false); } } else if (name.equalsIgnoreCase(Constants.DOM_CDATA_SECTIONS)) { fConfiguration.setFeature(CREATE_CDATA_NODES_FEATURE, state); } else if (name.equalsIgnoreCase (Constants.DOM_NAMESPACE_DECLARATIONS)) { fConfiguration.setFeature(Constants.DOM_NAMESPACE_DECLARATIONS, state); } else if (name.equalsIgnoreCase (Constants.DOM_WELLFORMED) || name.equalsIgnoreCase (Constants.DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS)) { if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } // setting these features to true is no-op // REVISIT: implement "namespace-declaration" feature } else if (name.equalsIgnoreCase (Constants.DOM_VALIDATE)) { fConfiguration.setFeature (VALIDATION_FEATURE, state); if (fSchemaType != Constants.NS_DTD) { fConfiguration.setFeature (XMLSCHEMA, state); } if (state){ fConfiguration.setFeature (DYNAMIC_VALIDATION, false); } } else if (name.equalsIgnoreCase (Constants.DOM_VALIDATE_IF_SCHEMA)) { fConfiguration.setFeature (DYNAMIC_VALIDATION, state); // Note: validation and dynamic validation are mutually exclusive if (state){ fConfiguration.setFeature (VALIDATION_FEATURE, false); } } else if (name.equalsIgnoreCase (Constants.DOM_ELEMENT_CONTENT_WHITESPACE)) { fConfiguration.setFeature (INCLUDE_IGNORABLE_WHITESPACE, state); } else if (name.equalsIgnoreCase (Constants.DOM_PSVI)){ //XSModel - turn on PSVI augmentation fConfiguration.setFeature (PSVI_AUGMENT, true); fConfiguration.setProperty (DOCUMENT_CLASS_NAME, "org.apache.xerces.dom.PSVIDocumentImpl"); } else { // Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING feature, // Constants.DOM_SPLIT_CDATA feature, // or any Xerces feature fConfiguration.setFeature (name.toLowerCase(Locale.ENGLISH), state); } } catch (XMLConfigurationException e) { String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException (DOMException.NOT_FOUND_ERR, msg); } } else { // set properties if (name.equalsIgnoreCase (Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { try { fErrorHandler = new DOMErrorHandlerWrapper ((DOMErrorHandler) value); fConfiguration.setProperty (ERROR_HANDLER, fErrorHandler); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { try { fConfiguration.setProperty (ENTITY_RESOLVER, new DOMEntityResolverWrapper ((LSResourceResolver) value)); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) { try { if (value == null) { fSchemaLocation = null; fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, null); } else { fSchemaLocation = (String)value; // map DOM schema-location to JAXP schemaSource property // tokenize location string StringTokenizer t = new StringTokenizer (fSchemaLocation, " \n\t\r"); if (t.hasMoreTokens ()){ fSchemaLocations.clear (); fSchemaLocations.add (t.nextToken ()); while (t.hasMoreTokens ()) { fSchemaLocations.add (t.nextToken ()); } fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, fSchemaLocations.toArray ()); } else { fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, value); } } } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_TYPE)) { if (value instanceof String || value == null) { try { if (value == null) { // turn off schema feature fConfiguration.setFeature ( Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE, false); // map to JAXP schemaLanguage fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, null); fSchemaType = null; } else if (value.equals (Constants.NS_XMLSCHEMA)) { // turn on schema feature fConfiguration.setFeature (Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE, true); // map to JAXP schemaLanguage fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_XMLSCHEMA); fSchemaType = Constants.NS_XMLSCHEMA; } else if (value.equals (Constants.NS_DTD)) { // turn off schema feature fConfiguration.setFeature ( Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE, false); // map to JAXP schemaLanguage fConfiguration.setProperty ( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_DTD); fSchemaType = Constants.NS_DTD; } } catch (XMLConfigurationException e) {} } else { String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (DOCUMENT_CLASS_NAME)) { fConfiguration.setProperty (DOCUMENT_CLASS_NAME, value); } else { // REVISIT: check if this is a boolean parameter -- type mismatch should be thrown. //parameter is not recognized String msg = DOMMessageFormatter.formatMessage ( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException (DOMException.NOT_FOUND_ERR, msg); } } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/315a1d388e7248c487145a5c1193e31a2573319b/DOMParserImpl.java/buggy/src/org/apache/xerces/parsers/DOMParserImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6690, 261, 780, 508, 16, 1033, 460, 13, 1216, 4703, 503, 288, 3639, 368, 444, 4467, 377, 202, 3639, 309, 12, 1132, 1276, 3411, 15329, 5411, 1250, 919, 273, 14015, 5507, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6690, 261, 780, 508, 16, 1033, 460, 13, 1216, 4703, 503, 288, 3639, 368, 444, 4467, 377, 202, 3639, 309, 12, 1132, 1276, 3411, 15329, 5411, 1250, 919, 273, 14015, 5507, 13, 1...
RegularExpression regex = new RegularExpression(fPattern, "X" ); if ( regex.matches( content) == false ) throw new InvalidDatatypeValueException("Value'"+content+ "does not match regular expression facet" + fPattern );
if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value '"+content+ "' does not match regular expression facet '" + fPattern + "'." );
private void checkContent( String content )throws InvalidDatatypeValueException { if ( (fFacetsDefined & DatatypeValidator.FACET_MAXLENGTH) != 0 ) { if ( content.length() > fMaxLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+content.length()+ "' exceeds maximum length of "+fMaxLength+"."); } } if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION) != 0 ) { if ( fEnumeration.contains( content ) == false ) throw new InvalidDatatypeValueException("Value '"+content+"' must be one of "+fEnumeration); } if ( isMaxExclusiveDefined == true ) { int comparisonResult; comparisonResult = compare( content, fMaxExclusive ); if ( comparisonResult > 0 ) { throw new InvalidDatatypeValueException( "Value '"+content+ "' must be" + "lexicographically less than" + fMaxExclusive ); } } if ( isMaxInclusiveDefined == true ) { int comparisonResult; comparisonResult = compare( content, fMaxInclusive ); if ( comparisonResult >= 0 ) throw new InvalidDatatypeValueException( "Value '"+content+ "' must be" + "lexicographically less or equal than" + fMaxInclusive ); } if ( isMinExclusiveDefined == true ) { int comparisonResult; comparisonResult = compare( content, fMinExclusive ); if ( comparisonResult < 0 ) throw new InvalidDatatypeValueException( "Value '"+content+ "' must be" + "lexicographically greater than" + fMinExclusive ); } if ( isMinInclusiveDefined == true ) { int comparisonResult; comparisonResult = compare( content, fMinInclusive ); if ( comparisonResult <= 0 ) throw new InvalidDatatypeValueException( "Value '"+content+ "' must be" + "lexicographically greater or equal than" + fMinInclusive ); } if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { RegularExpression regex = new RegularExpression(fPattern, "X" ); if ( regex.matches( content) == false ) throw new InvalidDatatypeValueException("Value'"+content+ "does not match regular expression facet" + fPattern ); } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9a6741938cdb0738cd1f53a2a2f555fcac1e06d0/QNameDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/QNameDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 1350, 12, 514, 913, 262, 15069, 1962, 20228, 9738, 565, 288, 3639, 309, 261, 261, 74, 6645, 2413, 8116, 473, 21168, 5126, 18, 11300, 56, 67, 6694, 7096, 13, 480, 374, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 1350, 12, 514, 913, 262, 15069, 1962, 20228, 9738, 565, 288, 3639, 309, 261, 261, 74, 6645, 2413, 8116, 473, 21168, 5126, 18, 11300, 56, 67, 6694, 7096, 13, 480, 374, 26...
setAttribute("id", newValue); }
setAttribute("id", newValue); }
public void setId(String newValue) { setAttribute("id", newValue); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/bf94d6634ab3635fdb8210105d9c1c839d13e555/WMLSetvarElementImpl.java/buggy/src/org/apache/wml/dom/WMLSetvarElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 10446, 12, 780, 6129, 13, 288, 565, 4730, 2932, 350, 3113, 6129, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10446, 12, 780, 6129, 13, 288, 565, 4730, 2932, 350, 3113, 6129, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public abstract GLDrawable createExternalGLDrawable();
public abstract GLDrawable createExternalGLDrawable() throws GLException;
public abstract GLDrawable createExternalGLDrawable();
46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/7bc47042a9203aa18a71b92ef8ef90af19518d51/GLDrawableFactory.java/buggy/src/classes/javax/media/opengl/GLDrawableFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 10252, 16149, 752, 6841, 11261, 16149, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 10252, 16149, 752, 6841, 11261, 16149, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
0, 0, 0, 0, 787, 0, 0, 106, 47, 48,
0, 0, 0, 0, 276, 0, 0, 106, 47, 48,
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
event.setParms( parms );
event.setParms(parms);
public static void sendSubscribeEvent( EventProxy proxy, String url, String username, String password, String categoryName ) { if( proxy == null || url == null || username == null || password == null || categoryName == null ) { throw new IllegalArgumentException( "Cannot take null parameters." ); } Event event = new Event(); event.setSource("RTCPostSubscriber"); event.setUei(EventConstants.RTC_SUBSCRIBE_EVENT_UEI); event.setHost("host"); event.setTime(EventConstants.formatToString(new java.util.Date())); Parms parms = new Parms(); // URL Value value = new Value(); value.setContent(url); Parm parm = new Parm(); parm.setParmName(EventConstants.PARM_URL); parm.setValue(value); parms.addParm(parm); // User value = new Value(); value.setContent(username); parm = new Parm(); parm.setParmName(EventConstants.PARM_USER); parm.setValue(value); parms.addParm(parm); // Password value = new Value(); value.setContent(password); parm = new Parm(); parm.setParmName(EventConstants.PARM_PASSWD); parm.setValue(value); parms.addParm(parm); // category value = new Value(); value.setContent(categoryName); parm = new Parm(); parm.setParmName(EventConstants.PARM_CAT_LABEL); parm.setValue(value); parms.addParm(parm); event.setParms( parms ); proxy.send( event ); log.info("Subscription requested for " + username + " to " + url ); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/2317e1a9dd7a748fde624d753fa09ed78675e1d9/RTCPostSubscriber.java/buggy/src/web/src/org/opennms/web/category/RTCPostSubscriber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1366, 16352, 1133, 12, 2587, 3886, 2889, 16, 514, 880, 16, 514, 2718, 16, 514, 2201, 16, 514, 3150, 461, 262, 288, 3639, 309, 12, 2889, 422, 446, 747, 880, 422, 446, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1366, 16352, 1133, 12, 2587, 3886, 2889, 16, 514, 880, 16, 514, 2718, 16, 514, 2201, 16, 514, 3150, 461, 262, 288, 3639, 309, 12, 2889, 422, 446, 747, 880, 422, 446, 7...
return required;
return required;
public boolean isRequired() { return required; }
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/09b200a563efc77be8bd8eceb05423772e261e18/DCInput.java/buggy/dspace/src/org/dspace/app/webui/util/DCInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 14967, 1435, 565, 288, 377, 202, 2463, 1931, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 14967, 1435, 565, 288, 377, 202, 2463, 1931, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private short reserveWordLocal(int local) {
private short reserveWordLocal(int local) {
private short reserveWordLocal(int local) { if (getNewWordLocal() != local) throw new RuntimeException("Local allocation error"); return (short) local; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/e741d0cb339d08bcfa9cb588bcb30951ac0436be/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3025, 20501, 3944, 2042, 12, 474, 1191, 13, 288, 3639, 309, 261, 588, 1908, 3944, 2042, 1435, 480, 1191, 13, 5411, 604, 394, 3235, 2932, 2042, 13481, 555, 8863, 3639, 327, 261, 6620...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3025, 20501, 3944, 2042, 12, 474, 1191, 13, 288, 3639, 309, 261, 588, 1908, 3944, 2042, 1435, 480, 1191, 13, 5411, 604, 394, 3235, 2932, 2042, 13481, 555, 8863, 3639, 327, 261, 6620...
public DefaultRequestHelper(HttpServletRequest servletRequest)
public DefaultRequestHelper(HttpServletRequest servletRequest, HttpServletResponse servletResponse)
public DefaultRequestHelper(HttpServletRequest servletRequest) { this.request = servletRequest; }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/7015b661775cd81721ef7476f951f285fd5ef574/DefaultRequestHelper.java/buggy/displaytag/src/main/java/org/displaytag/util/DefaultRequestHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 691, 2276, 12, 2940, 18572, 8100, 691, 16, 12446, 8100, 1064, 13, 565, 288, 3639, 333, 18, 2293, 273, 8100, 691, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 2989, 691, 2276, 12, 2940, 18572, 8100, 691, 16, 12446, 8100, 1064, 13, 565, 288, 3639, 333, 18, 2293, 273, 8100, 691, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -...
try { put(PdfName.AA, writer.addToBody(actions).getIndirectReference()); } catch (Exception e) { new ExceptionConverter(e); } }
try { put(PdfName.AA, writer.addToBody(actions).getIndirectReference()); } catch (Exception e) { new ExceptionConverter(e); } }
void setAdditionalActions(PdfDictionary actions) { try { put(PdfName.AA, writer.addToBody(actions).getIndirectReference()); } catch (Exception e) { new ExceptionConverter(e); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/7b2d5c246ce0031b08a0d0ca23a5093e3eb983bc/PdfDocument.java/clean/src/com/lowagie/text/pdf/PdfDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 444, 10552, 6100, 12, 18562, 10905, 4209, 13, 288, 5411, 775, 288, 7734, 1378, 12, 18562, 461, 18, 5284, 16, 2633, 18, 1289, 774, 2250, 12, 4905, 2934, 588, 24943, 2404, 10663, 13491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 444, 10552, 6100, 12, 18562, 10905, 4209, 13, 288, 5411, 775, 288, 7734, 1378, 12, 18562, 461, 18, 5284, 16, 2633, 18, 1289, 774, 2250, 12, 4905, 2934, 588, 24943, 2404, 10663, 13491...
-1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1,
private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -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, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -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, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 28245, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 727, 3025, 8526, 9016, 1564, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 28245, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, ...
public void setEntityName(String entityName) { this.entityName = entityName; }
void setEntityName(String entityName);
public void setEntityName(String entityName) { this.entityName = entityName; }
15561 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15561/15c086cfad17b485a7454e3685abf8c8e3d26e8e/PropertySetItem.java/buggy/src/java/com/opensymphony/module/propertyset/hibernate/PropertySetItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 19441, 12, 780, 14868, 13, 288, 3639, 333, 18, 1096, 461, 273, 14868, 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, ...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 19441, 12, 780, 14868, 13, 288, 3639, 333, 18, 1096, 461, 273, 14868, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public TableRenderer(ColumnMetaData[] meta, PrintStream out) { this(meta, out, "|");
public TableRenderer(ColumnMetaData[] meta, PrintStream out, String separator) { this.meta = meta; this.out = out; /* * we cache the rows in order to dynamically determine the * output width of each column. */ this.cacheRows = new ArrayList( MAX_CACHE_ELEMENTS ); this.alreadyFlushed = false; this.writtenRows = 0; this.colSeparator = " " + separator; this.separatorWidth = separator.length();
public TableRenderer(ColumnMetaData[] meta, PrintStream out) { this(meta, out, "|"); }
49725 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49725/78f0dfe67ad38b25fcc7a30cb3baadd66bf67de1/TableRenderer.java/buggy/src/henplus/util/TableRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3555, 6747, 12, 1494, 6998, 8526, 2191, 16, 21677, 596, 13, 288, 3639, 333, 12, 3901, 16, 596, 16, 11747, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 3555, 6747, 12, 1494, 6998, 8526, 2191, 16, 21677, 596, 13, 288, 3639, 333, 12, 3901, 16, 596, 16, 11747, 8863, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return combine(yyCheck1(), yyCheck2()); }
return combine(yyCheck1(), yyCheck2()); }
public static final short[] yyCheck() { return combine(yyCheck1(), yyCheck2()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/clean/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 3025, 8526, 9016, 1564, 1435, 288, 3639, 327, 8661, 12, 6795, 1564, 21, 9334, 9016, 1564, 22, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 3025, 8526, 9016, 1564, 1435, 288, 3639, 327, 8661, 12, 6795, 1564, 21, 9334, 9016, 1564, 22, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if(sorter == null){ if(itemExists(items,element)){
if (getSorter() == null) { if (itemExists(items, element)) {
private void createAddedElements(Widget widget, Object parent, Object[] elements) { if(elements.length == 1){ if (equals(elements[0], widget.getData())) return; } ViewerSorter sorter = getSorter (parent); Item[] items = getChildren(widget); //As the items are sorted already we optimize for a //start position int lastInsertion = 0; //Optimize for the empty case if(items.length == 0){ for (int i = 0; i < elements.length; i++) { createTreeItem(widget, elements[i], -1); } return; } for (int i = 0; i < elements.length; i++) { boolean newItem = true; Object element = elements[i]; int index; if(sorter == null){ if(itemExists(items,element)){ refresh(element); newItem = false; } index = -1; } else{ lastInsertion = insertionPosition(items,sorter,lastInsertion, element); //As we are only searching the original array we keep track of those positions only if(lastInsertion == items.length) index = -1; else{//See if we should just refresh while(lastInsertion < items.length && sorter.compare(this,element,items[lastInsertion].getData()) == 0){ //As we cannot assume the sorter is consistent with equals() - therefore we can // just check against the item prior to this index (if any) if (items[lastInsertion].getData().equals(element)) { //refresh the element in case it has new children refresh(element); newItem = false; } lastInsertion ++;//We had an insertion so increment } //Did we get to the end? if(lastInsertion == items.length) index = -1; else index = lastInsertion + i; //Add the index as the array is growing } } if(newItem) createTreeItem(widget, element, index); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1869fb0f66846c5ed765b0677f0e3907b2d6a068/CommonViewer.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 8602, 3471, 12, 4609, 3604, 16, 1033, 982, 16, 1033, 8526, 2186, 13, 288, 202, 202, 430, 12, 6274, 18, 2469, 422, 404, 15329, 1082, 202, 430, 261, 14963, 12, 6274, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 8602, 3471, 12, 4609, 3604, 16, 1033, 982, 16, 1033, 8526, 2186, 13, 288, 202, 202, 430, 12, 6274, 18, 2469, 422, 404, 15329, 1082, 202, 430, 261, 14963, 12, 6274, 63, ...
consumer.setPixels(bounds.x, bounds.y,
consumer.setPixels(0, 0,
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { Rectangle filterBounds = new Rectangle(this.x, this.y, this.width, this.height); Rectangle pixelBounds = new Rectangle(x, y, w, h); if (filterBounds.intersects(pixelBounds)) { Rectangle bounds = filterBounds.intersection(pixelBounds); byte[] cropped = new byte[bounds.width * bounds.height]; for (int i = 0; i < bounds.height; i++) { int start = (bounds.y - pixelBounds.y + i) * scansize + offset; for (int j = 0; j < bounds.width; j++) cropped[i * bounds.width + j] = pixels[start + bounds.x + j]; } if (consumer != null) consumer.setPixels(bounds.x, bounds.y, bounds.width, bounds.height, model, cropped, 0, bounds.width); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/CropImageFilter.java/clean/libraries/javalib/java/awt/image/CropImageFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 18079, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 30378, 5563, 1488, 938, 16, 1160, 8526, 8948, 16, 509, 1384, 16, 509, 19676, 554, 13, 565, 288, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 18079, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 30378, 5563, 1488, 938, 16, 1160, 8526, 8948, 16, 509, 1384, 16, 509, 19676, 554, 13, 565, 288, 202,...
public void visitLALOAD(LALOAD obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
public void visitLALOAD(LALOAD obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
public void visitLALOAD(LALOAD obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/BetterTypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterTypeFrameModelingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 48, 1013, 51, 1880, 12, 48, 1013, 51, 1880, 1081, 13, 9506, 202, 95, 7865, 2624, 12, 2603, 1769, 1817, 620, 12, 723, 3305, 18, 588, 3708, 559, 10663, 289, 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, 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, 3757, 48, 1013, 51, 1880, 12, 48, 1013, 51, 1880, 1081, 13, 9506, 202, 95, 7865, 2624, 12, 2603, 1769, 1817, 620, 12, 723, 3305, 18, 588, 3708, 559, 10663, 289, 2, -100...
Thread.sleep(sleepTime);
Thread.sleep(sleepTime);
public void testTaskTime(){ //This set of parameters runs quickly but has a relatively high fudge factor //See parameters below for a longer test that can have a low fudge factor //Note: ActivityTimeout is set to 1 second in setup() long fudgeFactor = 2000; //Maximum time it takes for the inactivity timer to notice plus a fudge factor for computation time long sleepTime = 500; //Must be less than ActivityTimeout long activityTimeoutTime = 1500; //Should be X * activity timeout long notCountedTime = 1000; //Here's a slower test with higher times so that the fudge factor //can be relatively small compared to the desired task time //Set ActivityTimeoutSeconds to 10 in setup() above to use these parameters// //Note: ActivityTimeout is set to be set to 10 seconds in setup() above// long fudgeFactor = 2000; //Maximum time it takes for the inactivity timer to notice plus a fudge factor for computation time// long sleepTime = 4000; //Must be less than ActivityTimeout// long activityTimeoutTime = 11000; //Should be around 1.X * activity timeout// long notCountedTime = 20000; long startTime = GregorianCalendar.getInstance().getTimeInMillis(); (new TaskActivateAction()).run(task1); try { Thread.sleep(sleepTime); //this time should be counted assertTrue(task1.getElapsedTimeLong() >= sleepTime); mockInteraction(); Thread.sleep(activityTimeoutTime); //should not be counted Thread.sleep(notCountedTime); //should not be counted //At this point the task should have "stalled," causing the activityTimeoutTime //to be subtracted. long time1 = task1.getElapsedTimeLong(); assertTrue(time1 >= sleepTime); assertTrue(time1 < sleepTime + fudgeFactor); mockInteraction(); Thread.sleep(sleepTime); //This time should be counted assertTrue(task1.getElapsedTimeLong() >= sleepTime + sleepTime); assertTrue(task1.getElapsedTimeLong() < sleepTime + sleepTime + fudgeFactor); } catch (InterruptedException e) { e.printStackTrace(); } (new TaskDeactivateAction()).run(task1); long endTime = GregorianCalendar.getInstance().getTimeInMillis(); //Sleep after the task has been deactivated to make sure it isn't still counting try { Thread.sleep(sleepTime); } catch (InterruptedException e) { e.printStackTrace(); } long totalReportedTime = task1.getElapsedTimeLong(); //Check that the reported time is less than the timestamp upper bound times assertTrue(totalReportedTime <= endTime - startTime); //Check that reported time is greater than the wait times that should be added assertTrue(totalReportedTime >= sleepTime + sleepTime); //Check that it didn't count too much time assertTrue(totalReportedTime < sleepTime + sleepTime + fudgeFactor); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/60a11b503bcd5753572f2ff6f9276a4b414f3931/TaskTimerTest.java/buggy/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/TaskTimerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2174, 950, 1435, 95, 1082, 202, 759, 2503, 444, 434, 1472, 7597, 23459, 1496, 711, 279, 1279, 17526, 3551, 284, 27110, 5578, 202, 202, 759, 9704, 1472, 5712, 364, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2174, 950, 1435, 95, 1082, 202, 759, 2503, 444, 434, 1472, 7597, 23459, 1496, 711, 279, 1279, 17526, 3551, 284, 27110, 5578, 202, 202, 759, 9704, 1472, 5712, 364, 279...
private static int runInShell(IRuby runtime, String command, StringBuffer output) {
private static int runInShell(IRuby runtime, IRubyObject[] rawArgs, OutputStream output) {
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell != null) { if (!shell.endsWith("sh")) { shellSwitch = "/c"; } aProcess = Runtime.getRuntime().exec(new String[] { shell, shellSwitch, command }); } else { aProcess = Runtime.getRuntime().exec(command); } final BufferedReader reader = new BufferedReader(new InputStreamReader(aProcess.getInputStream())); // Fairly innefficient impl, but readLine is unable to tell // whether the last line in a process ended with a newline or not. int c; boolean crSeen = false; while ((c = reader.read()) != -1) { if (c == '\r') { crSeen = true; } else { if (crSeen) { if (c != '\n') { output.append('\r'); } crSeen = false; } output.append((char)c); } } if (crSeen) { output.append('\r'); } aProcess.getErrorStream().close(); aProcess.getOutputStream().close(); reader.close(); return aProcess.waitFor(); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } catch (InterruptedException e) { throw runtime.newThreadError("unexpected interrupt"); } }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/b4a189a27604d62c317938f16a124fb9dab1e94a/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 15908, 10340, 921, 8526, 1831, 2615, 16, 8962, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 15908, 10340, 921, 8526, 1831, 2615, 16, 8962, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, ...
adjType = "BLOCK_DECREMENT";
adjType = "BLOCK_DECREMENT";
public String paramString() { /* The format is based on 1.5 release behavior * which can be revealed by the following code: * * AdjustmentEvent e = new AdjustmentEvent(new Scrollbar(), * AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, * AdjustmentEvent.UNIT_INCREMENT, 1); * System.out.println(e); */ String idString = (id == ADJUSTMENT_VALUE_CHANGED ? "ADJUSTMENT_VALUE_CHANGED" : "unknown type"); String adjType = null; switch (type) { case UNIT_INCREMENT: adjType = "UNIT_INCREMENT"; break; case UNIT_DECREMENT: adjType = "UNIT_DECREMENT"; break; case BLOCK_INCREMENT: adjType = "BLOCK_INCREMENT"; break; case BLOCK_DECREMENT: adjType = "BLOCK_DECREMENT"; break; case TRACK: adjType = "TRACK"; break; default: adjType = "unknown type"; } return (idString + ",adjType=" + adjType + ",value=" + value + ",isAdjusting=" + isAdjusting); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/783daf59edbe8ecf33f080c323352267b1d7f22a/AdjustmentEvent.java/clean/modules/awt/src/main/java/common/java/awt/event/AdjustmentEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 579, 780, 1435, 288, 3639, 1748, 1021, 740, 353, 2511, 603, 404, 18, 25, 3992, 6885, 1850, 380, 1492, 848, 506, 283, 537, 18931, 635, 326, 3751, 981, 30, 540, 380, 1850, 380,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 579, 780, 1435, 288, 3639, 1748, 1021, 740, 353, 2511, 603, 404, 18, 25, 3992, 6885, 1850, 380, 1492, 848, 506, 283, 537, 18931, 635, 326, 3751, 981, 30, 540, 380, 1850, 380,...
return true;
return true;
public static final boolean isLive(ObjectReference object) { if (object.isNull()) return false; if (!fullHeapGC) { if (object.toAddress().GE(NURSERY_START)) return nurserySpace.isLive(object); else return true; } else { Space space = Space.getSpaceForObject(object); if (space == nurserySpace) return nurserySpace.isLive(object); else if (space == matureSpace0) return matureSpace0.isLive(object); else if (space == matureSpace1) return matureSpace1.isLive(object); else if (space == loSpace) return loSpace.isLive(object); else if (space == null) { if (Assert.VERIFY_ASSERTIONS) { Log.write("space failure: "); Log.writeln(object); } } return true; } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/fcd75edc79dd2d11a22c8bdd22f8fcd19eb62a3c/GenCopy.java/buggy/MMTk/src/org/mmtk/plan/GenCopy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 1250, 353, 12328, 12, 22101, 733, 13, 288, 565, 309, 261, 1612, 18, 291, 2041, 10756, 327, 629, 31, 565, 309, 16051, 2854, 15648, 15396, 13, 288, 1377, 309, 261, 1612, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 1250, 353, 12328, 12, 22101, 733, 13, 288, 565, 309, 261, 1612, 18, 291, 2041, 10756, 327, 629, 31, 565, 309, 16051, 2854, 15648, 15396, 13, 288, 1377, 309, 261, 1612, 1...
KeySequenceAssignment castedObject = (KeySequenceAssignment) object; int compareTo = Util.compare(contextId, castedObject.contextId);
KeySequenceAssignment castedObject = (KeySequenceAssignment) object; int compareTo = Util.compare(contextId, castedObject.contextId);
public int compareTo(Object object) { KeySequenceAssignment castedObject = (KeySequenceAssignment) object; int compareTo = Util.compare(contextId, castedObject.contextId); if (compareTo == 0) compareTo = Util.compare(assignment, castedObject.assignment); return compareTo; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 9292, 12, 921, 733, 13, 288, 1082, 202, 653, 4021, 7729, 4812, 23016, 273, 261, 653, 4021, 7729, 13, 733, 31, 1082, 202, 474, 9292, 273, 3564, 18, 9877, 12, 2472, 548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 9292, 12, 921, 733, 13, 288, 1082, 202, 653, 4021, 7729, 4812, 23016, 273, 261, 653, 4021, 7729, 13, 733, 31, 1082, 202, 474, 9292, 273, 3564, 18, 9877, 12, 2472, 548, ...
mapFastViewToWidth.clear();
mapFastViewToWidthRatio.clear();
public void dispose() { // Get rid of presentation. presentation.deactivate(); presentation.disposeSashes(); // Release each view. IViewPart [] views = getViews(); int length = views.length; for (int nX = 0; nX < length; nX ++) { getViewFactory().releaseView(views[nX].getSite().getId()); } // Dispose of the sash too... if (fastViewSash != null) { fastViewSash.dispose(); fastViewSash = null; } mapFastViewToWidth.clear();}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0e6f617107d1cc3413b9b7efcee0aea68cf63c87/Perspective.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Perspective.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 15825, 1435, 288, 202, 759, 968, 10911, 434, 22525, 18, 202, 10364, 18, 323, 10014, 5621, 202, 10364, 18, 2251, 4150, 55, 7690, 5621, 202, 202, 759, 10819, 1517, 1476, 18, 202, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 15825, 1435, 288, 202, 759, 968, 10911, 434, 22525, 18, 202, 10364, 18, 323, 10014, 5621, 202, 10364, 18, 2251, 4150, 55, 7690, 5621, 202, 202, 759, 10819, 1517, 1476, 18, 202, 45, ...
model.setInstanceDocument(pipelineContext, 0, instanceDocument, null, false);
model.setInstanceDocument(pipelineContext, 0, instanceDocument, null, null, null);
public ProcessorOutput createOutput(String name) { ProcessorOutput output = new ProcessorImpl.CacheableTransformerOutputImpl(getClass(), name) { public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { // Get XForms model XFormsModel model = (XFormsModel) readCacheInputAsObject(pipelineContext, getInputByName(INPUT_MODEL), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { return new XFormsModel(readInputAsDOM4J(context, input)); } }); try { // Clone because we set the instance, and that must not be cached model = (XFormsModel) model.clone(); } catch (CloneNotSupportedException e) { throw new OXFException(e); } // Set annotated instance on model final Document instanceDocument = (Document) readInputAsDOM4J(pipelineContext, INPUT_INSTANCE); model.setInstanceDocument(pipelineContext, 0, instanceDocument, null, false); // Create and initialize XForms Engine final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); final XFormsContainingDocument containingDocument = new XFormsContainingDocument(model, externalContext); containingDocument.dispatchExternalEvent(pipelineContext, new XXFormsInitializeEvent(containingDocument)); // Create evaluation context final XFormsElementContext elementContext = new XFormsElementContext(pipelineContext, containingDocument, contentHandler); // Send SAX events of view to ViewContentHandler readInputAsSAX(pipelineContext, INPUT_DATA, new ViewContentHandler(contentHandler, elementContext)); } }; addOutput(name, output); return output; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/4991b30415dcfb1b79b16bb5c46a194e21aa81a4/XFormsOutput.java/buggy/src/java/org/orbeon/oxf/processor/xforms/output/XFormsOutput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 1649, 429, 8319, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 1649, 429, 8319, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 8...
if(s.startsWith("freenet-") && s.indexOf(".log") != -1) {
if(s.startsWith("freenet-") && (s.indexOf(".log") != -1)) {
private boolean delete(File dir) { boolean failed = false; File[] files = dir.listFiles(); for(int i=0;i<files.length;i++) { File f = files[i]; String s = f.getName(); if(s.startsWith("freenet-") && s.indexOf(".log") != -1) { if(f.isFile()) { if(!f.delete()) failed = true; } else if(f.isDirectory()) { if(delete(f)) failed = true; } } else { failed = true; } } if(!failed) { failed = !(dir.delete()); } return failed; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/LoggingConfigHandler.java/clean/src/freenet/node/LoggingConfigHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 1250, 1430, 12, 812, 1577, 13, 288, 1082, 202, 6494, 2535, 273, 629, 31, 1082, 202, 812, 8526, 1390, 273, 1577, 18, 1098, 2697, 5621, 1082, 202, 1884, 12, 474, 277, 33, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 1250, 1430, 12, 812, 1577, 13, 288, 1082, 202, 6494, 2535, 273, 629, 31, 1082, 202, 812, 8526, 1390, 273, 1577, 18, 1098, 2697, 5621, 1082, 202, 1884, 12, 474, 277, 33, 20, ...
if (field != DST_OFFSET && field != ZONE_OFFSET)
if (!explicitDSTOffset && (field != DST_OFFSET && field != ZONE_OFFSET))
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR: case MONTH: case DATE: isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; break; case AM_PM: isSet[HOUR_OF_DAY] = false; break; case HOUR_OF_DAY: isSet[AM_PM] = false; isSet[HOUR] = false; break; case HOUR: isSet[HOUR_OF_DAY] = false; break; } // May have crossed over a DST boundary. if (field != DST_OFFSET && field != ZONE_OFFSET) isSet[DST_OFFSET] = false; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/122b37a6d79e2eccc945e52a435ea28307dcc327/Calendar.java/buggy/libraries/javalib/java/util/Calendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 474, 652, 16, 509, 460, 13, 225, 288, 565, 353, 950, 694, 273, 629, 31, 565, 1466, 63, 1518, 65, 273, 460, 31, 565, 13532, 63, 1518, 65, 273, 638, 31, 565, 1620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 474, 652, 16, 509, 460, 13, 225, 288, 565, 353, 950, 694, 273, 629, 31, 565, 1466, 63, 1518, 65, 273, 460, 31, 565, 13532, 63, 1518, 65, 273, 638, 31, 565, 1620,...
return getFilterProperties(null); }
return getFilterProperties(null); }
public final org.rcfaces.core.model.IFilterProperties getFilterProperties() { return getFilterProperties(null); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ServiceComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/ServiceComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2358, 18, 1310, 4601, 18, 3644, 18, 2284, 18, 45, 1586, 2297, 12267, 2297, 1435, 288, 3639, 327, 12267, 2297, 12, 2011, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2358, 18, 1310, 4601, 18, 3644, 18, 2284, 18, 45, 1586, 2297, 12267, 2297, 1435, 288, 3639, 327, 12267, 2297, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, ...
_call .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName( new javax.xml.namespace.QName("http:
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName(new javax.xml.namespace.QName("http:
public TaskInfo getTask(java.lang.String lsidOrTaskName) throws java.rmi.RemoteException, org.genepattern.webservice.WebServiceException { if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[0]); _call.setUseSOAPAction(true); _call.setSOAPActionURI(""); _call .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName( new javax.xml.namespace.QName("http://server.webservice.server.genepattern.org", "getTask")); setRequestHeaders(_call); setAttachments(_call); try { java.lang.Object _resp = _call .invoke(new java.lang.Object[]{lsidOrTaskName}); if (_resp instanceof java.rmi.RemoteException) { throw(java.rmi.RemoteException) _resp; } else { extractAttachments(_call); try { return (TaskInfo) _resp; } catch (java.lang.Exception _exception) { return (TaskInfo) org.apache.axis.utils.JavaUtils.convert(_resp, TaskInfo.class); } } } catch (org.apache.axis.AxisFault axisFaultException) { if (axisFaultException.detail != null) { if (axisFaultException.detail instanceof java.rmi.RemoteException) { throw(java.rmi.RemoteException) axisFaultException.detail; } if (axisFaultException.detail instanceof org.genepattern.webservice.WebServiceException) { throw(org.genepattern.webservice.WebServiceException) axisFaultException.detail; } } throw axisFaultException; } }
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/a0155594d89ec195e6c5da1587aba6dc217a6f24/AdminSoapBindingStub.java/buggy/src/org/genepattern/webservice/AdminSoapBindingStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 966, 11478, 12, 6290, 18, 4936, 18, 780, 7180, 350, 1162, 2174, 461, 13, 5411, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 2358, 18, 4507, 881, 1344, 18, 1814, 20015, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 966, 11478, 12, 6290, 18, 4936, 18, 780, 7180, 350, 1162, 2174, 461, 13, 5411, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 2358, 18, 4507, 881, 1344, 18, 1814, 20015, 18, ...
AminoAcid oAminoAcid = new AminoAcid();
AminoAcid oAminoAcid = builder.newAminoAcid();
public void testAminoAcid() { AminoAcid oAminoAcid = new AminoAcid(); assertNotNull(oAminoAcid); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/2569471249d8066c9cb1c037569a570e039ed288/AminoAcidTest.java/clean/src/org/openscience/cdk/test/AminoAcidTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 37, 19544, 9988, 350, 1435, 288, 3639, 432, 19544, 9988, 350, 320, 37, 19544, 9988, 350, 273, 2089, 18, 2704, 37, 19544, 9988, 350, 5621, 3639, 25395, 12, 83, 37, 19544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 37, 19544, 9988, 350, 1435, 288, 3639, 432, 19544, 9988, 350, 320, 37, 19544, 9988, 350, 273, 2089, 18, 2704, 37, 19544, 9988, 350, 5621, 3639, 25395, 12, 83, 37, 19544, ...
printMessage("recorded 1 frame (" + numBytesRead + ") bytes");
if (tracing) { printMessage( "recorded 1 frame (" + numBytesRead + ") bytes"); }
public void run() { if (audioLine != null && audioLine.isOpen()) { Utterance currentUtterance = new Utterance ("Microphone", getContext()); utteranceList.add(currentUtterance); audioLine.start(); printMessage("started recording"); while (getRecording() && !getClosed()) { // Read the next chunk of data from the TargetDataLine. byte[] data = new byte[frameSizeInBytes]; int numBytesRead = audioLine.read(data, 0, data.length); if (numBytesRead == frameSizeInBytes) { currentUtterance.add(data); } else { numBytesRead = (numBytesRead % 2 == 0) ? numBytesRead + 2 : numBytesRead + 3; byte[] shrinked = new byte[numBytesRead]; System.arraycopy(data, 0, shrinked, 0, numBytesRead); currentUtterance.add(shrinked); } printMessage("recorded 1 frame (" + numBytesRead + ") bytes"); } audioLine.stop(); audioLine.close(); printMessage("stopped recording"); } else { printMessage("Unable to open line"); } }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/16e6acc325a5d864972e9c075375ea964abafc98/Microphone.java/clean/sphinx4/edu/cmu/sphinx/frontend/util/Microphone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 13491, 309, 261, 11509, 1670, 480, 446, 597, 7447, 1670, 18, 291, 3678, 10756, 288, 27573, 587, 88, 387, 1359, 783, 57, 88, 387, 1359, 273, 394, 587, 88, 387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 13491, 309, 261, 11509, 1670, 480, 446, 597, 7447, 1670, 18, 291, 3678, 10756, 288, 27573, 587, 88, 387, 1359, 783, 57, 88, 387, 1359, 273, 394, 587, 88, 387...
out.write((int)len);
out.write((int) len);
static void writeParam(RequestStream out, String charset, boolean isWideChar, byte[] collation, ParamInfo pi) throws IOException, SQLException { int len; String tmp; byte[] buf; boolean isTds8 = out.getTdsVersion() == TdsCore.TDS80; if (isTds8 && pi.collation == null) { pi.collation = collation; } switch (pi.tdsType) { case XSYBVARCHAR: if (pi.value == null) { out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short)0xFFFF); } else { buf = pi.getBytes(charset); if (buf.length > 8000) { out.write((byte) SYBTEXT); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } else { out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short) buf.length); out.write(buf); } } break; case SYBVARCHAR: if (pi.value == null) { out.write((byte) pi.tdsType); out.write((byte) 255); out.write((byte) 0); } else { buf = pi.getBytes(charset); if (buf.length > 255) { if (buf.length < 8001 && out.getTdsVersion() >= TdsCore.TDS70) { out.write((byte) XSYBVARCHAR); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } out.write((short) buf.length); out.write(buf); } else { out.write((byte) SYBTEXT); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } } else { if (buf.length == 0) { buf = new byte[1]; buf[0] = ' '; } out.write((byte) pi.tdsType); out.write((byte) 255); out.write((byte) buf.length); out.write(buf); } } break; case XSYBNVARCHAR: out.write((byte) pi.tdsType); out.write((short) 8000); if (isTds8) { putCollation(out, pi); } if (pi.value == null) { out.write((short) 0xFFFF); } else { tmp = pi.getString(charset); out.write((short) (tmp.length() * 2)); out.write(tmp); } break; case SYBTEXT: if (pi.value == null) { len = 0; } else { len = pi.length; if (len == 0 && out.getTdsVersion() < TdsCore.TDS70) { pi.value = " "; len = 1; } } out.write((byte) pi.tdsType); if (len > 0) { if (pi.value instanceof InputStream) { // Write output directly from stream out.write((int)len); if (isTds8) { putCollation(out, pi); } out.write((int) len); out.writeStreamBytes((InputStream) pi.value, len); } else if (pi.value instanceof Reader && !isWideChar) { // Write output directly from stream with character translation out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len); out.writeReaderBytes((Reader) pi.value, len); } else { buf = pi.getBytes(charset); out.write((int) buf.length); if (isTds8) { putCollation(out, pi); } out.write((int) buf.length); out.write(buf); } } else { out.write((int) len); // Zero length if (isTds8) { putCollation(out, pi); } out.write((int)len); } break; case SYBNTEXT: if (pi.value == null) { len = 0; } else { len = pi.length; } out.write((byte)pi.tdsType); if (len > 0) { if (pi.value instanceof Reader) { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.writeReaderChars((Reader) pi.value, len); } else if (pi.value instanceof InputStream && !isWideChar) { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.writeReaderChars(new InputStreamReader((InputStream) pi.value, charset), len); } else { tmp = pi.getString(charset); len = tmp.length(); out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len * 2); out.write(tmp); } } else { out.write((int) len); if (isTds8) { putCollation(out, pi); } out.write((int) len); } break; case XSYBVARBINARY: out.write((byte) pi.tdsType); out.write((short) 8000); if (pi.value == null) { out.write((short)0xFFFF); } else { buf = pi.getBytes(charset); out.write((short) buf.length); out.write(buf); } break; case SYBVARBINARY: out.write((byte) pi.tdsType); out.write((byte) 255); if (pi.value == null) { out.write((byte) 0); } else { buf = pi.getBytes(charset); out.write((byte) buf.length); out.write(buf); } break; case SYBIMAGE: if (pi.value == null) { len = 0; } else { len = pi.length; } out.write((byte) pi.tdsType); if (len > 0) { if (pi.value instanceof InputStream) { out.write((int) len); out.write((int) len); out.writeStreamBytes((InputStream) pi.value, len); } else { buf = pi.getBytes(charset); out.write((int) buf.length); out.write((int) buf.length); out.write(pi.getBytes(charset)); } } else { out.write((int) len); out.write((int) len); } break; case SYBINTN: out.write((byte)pi.tdsType); if (pi.value == null) { out.write((byte) 4); out.write((byte) 0); } else { if (pi.sqlType.equals("bigint")) { out.write((byte) 8); out.write((byte) 8); out.write((long) ((Number) pi.value).longValue()); } else { out.write((byte) 4); out.write((byte) 4); out.write((int) ((Number) pi.value).intValue()); } } break; case SYBFLTN: if (pi.value == null) { out.write((byte) pi.tdsType); out.write((byte) 8); out.write((byte) 0); } else { out.write((byte) SYBFLT8); out.write(((Number) pi.value).doubleValue()); } break; case SYBDATETIMN: out.write((byte) SYBDATETIMN); out.write((byte) 8); putDateTimeValue(out, pi.value); break; case SYBBIT: out.write((byte) pi.tdsType); if (pi.value == null) { out.write((byte) 0); } else { out.write((byte) (((Boolean) pi.value).booleanValue() ? 1 : 0)); } break; case SYBBITN: if (pi.value == null) { out.write((byte) SYBBITN); out.write((byte) 1); out.write((byte) 0); } else { out.write((byte) SYBBIT); out.write((byte) (((Boolean) pi.value).booleanValue() ? 1 : 0)); } break; case SYBNUMERIC: case SYBDECIMAL: out.write((byte) pi.tdsType); BigDecimal value = null; int scale = pi.scale; if (pi.value != null) { if (pi.value instanceof Long) { value = new BigDecimal(((Long) pi.value).longValue()); scale = 0; } else { value = (BigDecimal) pi.value; } if (scale < 0) { value = value.setScale(10, BigDecimal.ROUND_HALF_UP); scale = 10; } } if (scale < 0) { scale = 0; } byte prec = (byte) out.getMaxPrecision(); byte maxLen = (prec <= 28) ? (byte) 13 : (byte) 17; out.write((byte) maxLen); out.write((byte) prec); out.write((byte) scale); out.write(value, scale); break; default: throw new IllegalStateException( "Unsupported output TDS type " + Integer.toHexString(pi.tdsType)); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/bcae017a911f64ecf6c496a9f07e1c36b5e0afe1/TdsData.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1045, 786, 12, 691, 1228, 596, 16, 21821, 514, 4856, 16, 21821, 1250, 353, 11075, 2156, 16, 21821, 1160, 8526, 21277, 16, 21821, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 1045, 786, 12, 691, 1228, 596, 16, 21821, 514, 4856, 16, 21821, 1250, 353, 11075, 2156, 16, 21821, 1160, 8526, 21277, 16, 21821, 3014, 966, 4790, 13, 565, 1216, 1860, 16, 6483, ...
if (parser.getName().equals("body"))
if (parser.getName().equals("body")) {
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { XHTMLExtension xhtmlExtension = new XHTMLExtension(); boolean done = false; StringBuffer buffer = new StringBuffer();; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("body")) buffer = new StringBuffer(); buffer.append(parser.getText()); } else if (eventType == XmlPullParser.TEXT) { if (buffer != null) buffer.append(parser.getText()); } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("body")) { buffer.append(parser.getText()); xhtmlExtension.addBody(buffer.toString()); } else if (parser.getName().equals(xhtmlExtension.getElementName())) { done = true; } else buffer.append(parser.getText()); } } return xhtmlExtension; }
52005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52005/c4168bf3d76a9327fbd61f597c5a4cd95338cdac/XHTMLExtensionProvider.java/buggy/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11114, 3625, 1109, 3625, 12, 4432, 9629, 2678, 2082, 13, 3639, 1216, 1185, 288, 3639, 30551, 3625, 619, 2620, 3625, 273, 394, 30551, 3625, 5621, 3639, 1250, 2731, 273, 629, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11114, 3625, 1109, 3625, 12, 4432, 9629, 2678, 2082, 13, 3639, 1216, 1185, 288, 3639, 30551, 3625, 619, 2620, 3625, 273, 394, 30551, 3625, 5621, 3639, 1250, 2731, 273, 629, 31, 3639, ...
_text.setText( "This is the console area. \nLots of stuff to see here..."); setPreferredSize(new Dimension(200, 40));
public Console(AppContext context) { setLayout(new GridLayout(1,1)); _context = context; _text = new JTextPane(); _text.setEditable(false); JScrollPane scroller = new JScrollPane(_text); add(scroller); _text.setText( "This is the console area. \nLots of stuff to see here..."); setPreferredSize(new Dimension(200, 40)); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/c70641243c667093d23f689c7c28866fa661b1af/Console.java/clean/src/antidote/org/apache/tools/ant/gui/Console.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9657, 12, 3371, 1042, 819, 13, 288, 3639, 18479, 12, 2704, 7145, 3744, 12, 21, 16, 21, 10019, 3639, 389, 2472, 273, 819, 31, 3639, 389, 955, 273, 394, 804, 1528, 8485, 5621, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9657, 12, 3371, 1042, 819, 13, 288, 3639, 18479, 12, 2704, 7145, 3744, 12, 21, 16, 21, 10019, 3639, 389, 2472, 273, 819, 31, 3639, 389, 955, 273, 394, 804, 1528, 8485, 5621, 3639,...
buf.append(text);
literalBuf.append(text);
private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); buf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = false; boolean entities = false; for (char c = literalReadCh(); c != delim; c = literalReadCh()) { switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) c = ' '; // normalize to space break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) c = ' '; // normalize to space break; case '&': mark(2); c = readCh(); if (c == '#') { if ((flags & LIT_DISABLE_CREF) != 0) error("literal may not contain character reference"); mark(1); c = readCh(); boolean hex = (c == 'x'); if (!hex) reset(); char[] ref = readCharacterRef(hex ? 16 : 10); for (int i = 0; i < ref.length; i++) { c = ref[i]; if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0 && (c == '\n' || c == '\r')) c = ' '; // normalize else if ((flags & LIT_ATTRIBUTE) != 0 && c == '\t') c = ' '; // normalize buf.append(c); } entities = true; continue; } else { if ((flags & LIT_DISABLE_EREF) != 0) error("literal may not contain entity reference"); reset(); if (replaceERefs || (flags & LIT_NORMALIZE) > 0) { String entityName = readNmtoken(true); require(';'); String text = (String) PREDEFINED_ENTITIES.get(entityName); if (text != null) buf.append(text); else expandEntity(entityName); entities = true; continue; } else error("parser is configured not to replace entity " + "references"); } break; case '<': if ((flags & LIT_ATTRIBUTE) != 0) error("attribute values may not contain '<'"); break; } buf.append(c); } expandPE = saved; if (entities) normalizeCRLF(); if ((flags & LIT_NORMALIZE) > 0) normalize(); return buf.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0194d0bf7a4335231f8ce3fab46cefa8a9a70bb0/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 855, 6177, 12, 474, 2943, 13, 565, 1216, 1860, 16, 21526, 225, 288, 565, 1250, 5198, 273, 4542, 1423, 31, 565, 1149, 10508, 273, 855, 782, 5621, 565, 309, 261, 23822, 480, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 855, 6177, 12, 474, 2943, 13, 565, 1216, 1860, 16, 21526, 225, 288, 565, 1250, 5198, 273, 4542, 1423, 31, 565, 1149, 10508, 273, 855, 782, 5621, 565, 309, 261, 23822, 480, 15...
image.setVerticalSpace( Integer.parseInt( v_space ) );
image.setVerticalSpace( Integer.parseInt( verticalSpace ) );
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String okParameter = req.getParameter( "ok" ); String showImageParam = req.getParameter( "show_img" ); // get old image_height String oldH = req.getParameter( "oldH" ); // get new image_height String image_height = req.getParameter( "image_height" ); // get old image_width String oldW = req.getParameter( "oldW" ); // get new image_width String image_width = req.getParameter( "image_width" ); // get image_border String image_border = req.getParameter( "image_border" ); // get vertical_space String v_space = req.getParameter( "v_space" ); // get horizonal_space String h_space = req.getParameter( "h_space" ); boolean keepAspectRatio = (req.getParameter( "keepAspectRatio" ) != null); String origWidth = req.getParameter( "origW" ); // width String origHeight = req.getParameter( "origH" ); // height ImageDomainObject image = new ImageDomainObject(); try { image.setHeight( Integer.parseInt( image_height ) ); } catch ( NumberFormatException ex ) { image_height = "0"; image.setHeight( 0 ); } try { image.setBorder( Integer.parseInt( image_border ) ); } catch ( NumberFormatException ex ) { image_border = "0"; image.setBorder( 0 ); } try { image.setWidth( Integer.parseInt( image_width ) ); } catch ( NumberFormatException ex ) { image_width = "0"; image.setWidth( 0 ); } if ( keepAspectRatio && (okParameter != null || showImageParam != null) ) { int oHeight = 0; try { oHeight = Integer.parseInt( origHeight ); // image height } catch ( NumberFormatException ex ) { log( "Failed to parse origHeight" ); } int oWidth = 0; try { oWidth = Integer.parseInt( origWidth ); // image width } catch ( NumberFormatException ex ) { log( "Failed to parse origHeight" ); } int iHeight = 0; try { iHeight = Integer.parseInt( image_height ); // form width } catch ( NumberFormatException ex ) { log( "Failed to parse image_height" ); } int iWidth = 0; try { iWidth = Integer.parseInt( image_width ); // form height } catch ( NumberFormatException ex ) { log( "Failed to parse image_width" ); } int oldHeight = 0; try { oldHeight = (oldH.length() > 0) ? Integer.parseInt( oldH ) : oHeight; } catch ( NumberFormatException ex ) { log( "Failed to parse oldHeight" ); } int oldWidth = 0; try { oldWidth = (oldW.length() > 0) ? Integer.parseInt( oldW ) : oWidth; } catch ( NumberFormatException ex ) { log( "Failed to parse oldWidth" ); } double asp_rat = ((double) oWidth / (double) oHeight); int heightDiff = Math.abs( iHeight - oldHeight ); int widthDiff = Math.abs( iWidth - oldWidth ); // Dominant value: // 1. greatest diff, 2. greatest int, 3. width if ( widthDiff > heightDiff ) { iHeight = (int) (iWidth / asp_rat); } else if ( heightDiff > widthDiff ) { iWidth = (int) (iHeight * asp_rat); } else if ( heightDiff == widthDiff ) { if ( iHeight > iWidth ) { iWidth = (int) (iHeight * asp_rat); } else { iHeight = (int) (iWidth / asp_rat); } } else { iHeight = (int) (iWidth * asp_rat); } image.setHeight( iHeight ); image.setWidth( iWidth ); image_width = "" + iWidth; image_height = "" + iHeight; } try { image.setVerticalSpace( Integer.parseInt( v_space ) ); } catch ( NumberFormatException ex ) { v_space = "0"; image.setVerticalSpace( 0 ); } try { image.setVerticalSpace( Integer.parseInt( v_space ) ); } catch ( NumberFormatException ex ) { v_space = "0"; image.setVerticalSpace( 0 ); } try { image.setHorizontalSpace( Integer.parseInt( h_space ) ); } catch ( NumberFormatException ex ) { h_space = "0"; image.setHorizontalSpace( 0 ); } // get imageref String image_ref = req.getParameter( "imageref" ); image.setUrl( image_ref ); if ( "".equals( image_ref ) ) { // remove width and height if user removes image ref image.setWidth( 0 ); image.setHeight( 0 ); } // get image_name String image_name = req.getParameter( "image_name" ); if ( null != image_name ) { image_name = image_name.trim(); image.setName( image_name ); } // get image_align String image_align = req.getParameter( "image_align" ); image.setAlign( image_align ); // get alt_text String alt_text = imcode.server.HTMLConv.toHTML( req.getParameter( "alt_text" ) ); image.setAlternateText( alt_text ); // get low_scr String low_scr = req.getParameter( "low_scr" ); image.setLowResolutionUrl( low_scr ); // get target String target = EditDocumentInformationPageFlow.getTargetFromRequest( req ); image.setTarget( target ); // get image_ref_link String imageref_link = req.getParameter( "imageref_link" ); image.setLinkUrl( imageref_link ); // Check if user has write rights UserDomainObject user = Utility.getLoggedOnUser( req ); IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); Utility.setDefaultHtmlContentType( res ); Writer out = res.getWriter(); String m_id = req.getParameter( "meta_id" ); int meta_id = Integer.parseInt( m_id ); if ( !imcref.checkDocAdminRights( meta_id, user, 131072 ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if ( output != null ) { out.write( output ); } return; } user.put( "flags", new Integer( 131072 ) ); //the folderlist HttpSession session = req.getSession( true ); String dirList = (String) session.getAttribute( "imageFolderOptionList" ); if ( dirList == null ) dirList = ""; String i_no = req.getParameter( "img_no" ); int img_no = Integer.parseInt( i_no ); if ( req.getParameter( "cancel" ) != null ) { String output = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if ( output != null ) { out.write( output ); } return; } else if ( req.getParameter( "show_img" ) != null ) { //**************************************************************** File image_path = Utility.getDomainPrefPath( "image_path" ); ImageFileMetaData imagefile = new ImageFileMetaData( new FileInputStream(new File( image_path, image_ref )), image_ref ); int width = imagefile.getWidth(); int height = imagefile.getHeight(); //**************************************************************** Vector vec = new Vector(); vec.add( "#imgUrl#" ); vec.add( imcref.getImageUrl() ); vec.add( "#imgName#" ); vec.add( image_name ); vec.add( "#imgRef#" ); vec.add( image_ref ); vec.add( "#imgWidth#" ); vec.add( "0".equals( image_width ) ? "" + width : image_width ); vec.add( "#imgHeight#" ); vec.add( "0".equals( image_height ) ? "" + height : image_height ); vec.add( "#origW#" ); vec.add( "" + width ); vec.add( "#origH#" ); vec.add( "" + height ); vec.add( "#imgBorder#" ); vec.add( image_border ); vec.add( "#imgVerticalSpace#" ); vec.add( v_space ); vec.add( "#imgHorizontalSpace#" ); vec.add( h_space ); if ( "_top".equals( target ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#top_checked#" ); } else if ( "_self".equals( target ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); } else if ( "_blank".equals( target ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else if ( "_parent".equals( target ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else { vec.add( "#target_name#" ); vec.add( target ); vec.add( "#other_checked#" ); } vec.add( "selected" ); if ( "baseline".equals( image_align ) ) { vec.add( "#baseline_selected#" ); } else if ( "top".equals( image_align ) ) { vec.add( "#top_selected#" ); } else if ( "middle".equals( image_align ) ) { vec.add( "#middle_selected#" ); } else if ( "bottom".equals( image_align ) ) { vec.add( "#bottom_selected#" ); } else if ( "texttop".equals( image_align ) ) { vec.add( "#texttop_selected#" ); } else if ( "absmiddle".equals( image_align ) ) { vec.add( "#absmiddle_selected#" ); } else if ( "absbottom".equals( image_align ) ) { vec.add( "#absbottom_selected#" ); } else if ( "left".equals( image_align ) ) { vec.add( "#left_selected#" ); } else if ( "right".equals( image_align ) ) { vec.add( "#right_selected#" ); } else { vec.add( "#none_selected#" ); } vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( alt_text ); vec.add( "#imgLowScr#" ); vec.add( low_scr ); vec.add( "#imgRefLink#" ); vec.add( imageref_link ); vec.add( "#getMetaId#" ); vec.add( m_id ); vec.add( "#img_no#" ); vec.add( i_no ); vec.add( "#label#" ); // get img label String label = req.getParameter( "label" ); if ( label == null ) { label = ""; } vec.add( label ); vec.add( "#folders#" ); vec.add( dirList ); String htmlStr = imcref.getAdminTemplate( "change_img.html", user, vec ); out.write( htmlStr ); return; } else if ( req.getParameter( "delete" ) != null ) { Vector vec = new Vector(); vec.add( "#imgUrl#" ); vec.add( "" ); vec.add( "#imgName#" ); vec.add( "" ); vec.add( "#imgRef#" ); vec.add( "" ); vec.add( "#imgWidth#" ); vec.add( "0" ); vec.add( "#imgHeight#" ); vec.add( "0" ); vec.add( "#imgBorder#" ); vec.add( "0" ); vec.add( "#imgVerticalSpace#" ); vec.add( "0" ); vec.add( "#imgHorizontalSpace#" ); vec.add( "0" ); vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); vec.add( "selected" ); vec.add( "#top_selected#" ); vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( "" ); vec.add( "#imgLowScr#" ); vec.add( "" ); vec.add( "#imgRefLink#" ); vec.add( "" ); vec.add( "#getMetaId#" ); vec.add( String.valueOf( meta_id ) ); vec.add( "#img_no#" ); vec.add( String.valueOf( img_no ) ); vec.add( "#folders#" ); vec.add( dirList ); String htmlStr = imcref.getAdminTemplate( "change_img.html", user, vec ); out.write( htmlStr ); return; } else { String imageDocumentFileId = req.getParameter( ChangeImage.REQUEST_PARAM__IMAGE_FILE_DOCUMENT_ID ); if ( null != imageDocumentFileId ) { int metaId = Integer.parseInt( imageDocumentFileId ); log.debug( "todo, save imageFileDocument and link it to the document. Image file id = " + imageDocumentFileId ); image.setType( ImageDomainObject.FILE_DOCUMENT_IMAGE_TYPE ); image.setUrl( "" + metaId ); } imcref.saveImage( meta_id, user, img_no, image ); DocumentMapper documentMapper = imcref.getDocumentMapper(); documentMapper.touchDocument( documentMapper.getDocument( meta_id ) ); String tempstring = AdminDoc.adminDoc( meta_id, meta_id, user, req, res ); if ( tempstring != null ) { out.write( tempstring ); } return; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/b24fc78e5c2dd9532c7e22c62b4f1d46bc95b744/SaveImage.java/buggy/server/src/com/imcode/imcms/servlet/admin/SaveImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1529, 1662, 273, 1111, 18, 588, 1662, 12, 315, 601, 6, 11272, 3639, 514, 2405, 2040, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 1529, 1662, 273, 1111, 18, 588, 1662, 12, 315, 601, 6, 11272, 3639, 514, 2405, 2040, 78...
public boolean isValid(Component a_Component) { if(a_Component==textField) { String lS_Text = textField.getText(); if(lS_Text.trim().length()>0) { return true; } } return false; }
3284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3284/14ef7a7fd08d4ef23946ee5379da2e82e7c3149d/FieldForm.java/clean/webapp/WEB-INF/src/com/sohlman/webapp/netform/FieldForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4908, 12, 1841, 279, 67, 1841, 13, 202, 202, 95, 1082, 202, 430, 12, 69, 67, 1841, 631, 955, 974, 13, 1082, 202, 95, 9506, 202, 780, 328, 55, 67, 1528, 273, 977, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 4908, 12, 1841, 279, 67, 1841, 13, 202, 202, 95, 1082, 202, 430, 12, 69, 67, 1841, 631, 955, 974, 13, 1082, 202, 95, 9506, 202, 780, 328, 55, 67, 1528, 273, 977, 97...
private void _setUpActions() { _setUpAction(_newAction, "New", "Create a new document"); _setUpAction(_newJUnitTestAction, "New", "Create a new JUnit test case class"); _setUpAction(_newProjectAction, "New", "Make a new project"); _setUpAction(_openAction, "Open", "Open an existing file"); _setUpAction(_openFolderAction, "Open Folder", "OpenAll", "Open all files within a directory"); _setUpAction(_openFileOrProjectAction, "Open", "Open an existing file or project"); _setUpAction(_openProjectAction, "Open", "Open an existing project"); _setUpAction(_saveAction, "Save", "Save the current document"); _setUpAction(_saveAsAction, "Save As", "SaveAs", "Save the current document with a new name"); _setUpAction(_saveProjectAction, "Save", "Save", "Save the current project"); _saveProjectAction.setEnabled(false); _setUpAction(_saveProjectAsAction, "Save As", "SaveAs", "Save all currently open files to new project file"); _setUpAction(_revertAction, "Revert", "Revert the current document to the saved version"); //_setUpAction(_revertAllAction, "Revert All", "RevertAll", // "Revert all open documents to the saved versions"); _setUpAction(_closeAction, "Close", "Close the current document"); _setUpAction(_closeAllAction, "Close All", "CloseAll", "Close all documents"); _setUpAction(_closeProjectAction, "Close", "CloseAll", "Close the current project"); _closeProjectAction.setEnabled(false); _setUpAction(_projectPropertiesAction, "Project Properties", "Preferences", "Edit Project Properties"); _projectPropertiesAction.setEnabled(false); // _setUpAction(_junitProjectAction, "Test", "Test", "Test the current project");// _junitProjectAction.setEnabled(false); _setUpAction(_junitOpenProjectFilesAction, "Test", "Test Project"); _junitOpenProjectFilesAction.setEnabled(false);// _setUpAction(_compileOpenProjectAction, "Compile", "Compile", "Compile the open project documents"); _setUpAction(_compileProjectAction, "Compile", "Compile", "Compile the current project");// _compileOpenProjectAction.setEnabled(false); _compileProjectAction.setEnabled(false); _setUpAction(_runProjectAction, "Run","Run the project's main method"); _runProjectAction.setEnabled(false); _setUpAction(_jarProjectAction, "Jar", "Create a jar archive from this project"); _jarProjectAction.setEnabled(false); _setUpAction(_saveAllAction, "Save All", "SaveAll", "Save all open documents"); _setUpAction(_cleanAction, "Clean", "Clean Build directory"); _cleanAction.setEnabled(false); _setUpAction(_compileAction, "Compile", "Compile the current document"); _setUpAction(_compileAllAction, "Compile All", "CompileAll", "Compile all open documents"); _setUpAction(_printAction, "Print", "Print the current document"); _setUpAction(_pageSetupAction, "Page Setup", "PageSetup", "Change the printer settings"); _setUpAction(_printPreviewAction, "Print Preview", "PrintPreview", "Preview how the document will be printed"); _setUpAction(_quitAction, "Quit", "Quit", "Quit DrJava"); _setUpAction(_undoAction, "Undo", "Undo previous command"); _setUpAction(_redoAction, "Redo", "Redo last undo"); _undoAction.putValue(Action.NAME, "Undo Previous Command"); _redoAction.putValue(Action.NAME, "Redo Last Undo"); _setUpAction(cutAction, "Cut", "Cut selected text to the clipboard"); _setUpAction(copyAction, "Copy", "Copy selected text to the clipboard"); _setUpAction(pasteAction, "Paste", "Paste text from the clipboard"); _setUpAction(_selectAllAction, "Select All", "Select all text"); cutAction.putValue(Action.NAME, "Cut"); copyAction.putValue(Action.NAME, "Copy"); pasteAction.putValue(Action.NAME, "Paste"); _setUpAction(_indentLinesAction, "Indent Lines", "Indent all selected lines"); _setUpAction(_commentLinesAction, "Comment Lines", "Comment out all selected lines"); _setUpAction(_uncommentLinesAction, "Uncomment Lines", "Uncomment all selected lines"); _setUpAction(_findReplaceAction, "Find", "Find or replace text in the document"); _setUpAction(_findNextAction, "Find Next", "Repeats the last find"); _setUpAction(_findPrevAction, "Find Previous", "Repeats the last find in the opposite direction"); _setUpAction(_gotoLineAction, "Go to line", "Go to a line number in the document"); _setUpAction(_switchToPrevAction, "Back", "Switch to the previous document"); _setUpAction(_switchToNextAction, "Forward", "Switch to the next document"); _setUpAction(_switchToPreviousPaneAction, "Previous Pane", "Switch focus to the previous pane"); _setUpAction(_switchToNextPaneAction, "Next Pane", "Switch focus to the next pane"); _setUpAction(_editPreferencesAction, "Preferences", "Edit configurable settings in DrJava"); _setUpAction(_junitAction, "Test Current", "Run JUnit over the current document"); _setUpAction(_junitAllAction, "Test", "Run JUnit over all open JUnit tests"); _setUpAction(_javadocAllAction, "Javadoc", "Create and save Javadoc for the packages of all open documents"); _setUpAction(_javadocCurrentAction, "Preview Javadoc Current", "Preview the Javadoc for the current document"); _setUpAction(_runAction, "Run Document", "Run the main method of the current document"); _setUpAction(_executeHistoryAction, "Execute History", "Load and execute a history of interactions from a file"); _setUpAction(_loadHistoryScriptAction, "Load History as Script", "Load a history from a file as a series of interactions"); _setUpAction(_saveHistoryAction, "Save History", "Save the history of interactions to a file"); _setUpAction(_clearHistoryAction, "Clear History", "Clear the current history of interactions"); //_setUpAction(_abortInteractionAction, "Break", "Abort the current interaction"); _setUpAction(_resetInteractionsAction, "Reset", "Reset the Interactions Pane"); _setUpAction(_viewInteractionsClasspathAction, "View Interactions Classpath", "Display the classpath in use by the Interactions Pane"); _setUpAction(_copyInteractionToDefinitionsAction, "Lift Current Interaction", "Copy the current interaction into the Definitions Pane"); _setUpAction(_clearConsoleAction, "Clear Console", "Clear all text in the Console Pane"); _setUpAction(_showDebugConsoleAction, "Show DrJava Debug Console", "<html>Show a console for debugging DrJava<br>" + "(with \"mainFrame\", \"model\", and \"config\" variables defined)</html>"); _setUpAction(_toggleDebuggerAction, "Debug Mode", "Enable or disable DrJava's debugger"); _setUpAction(_toggleBreakpointAction, "Toggle Breakpoint", "Set or clear a breakpoint on the current line"); _setUpAction(_clearAllBreakpointsAction, "Clear Breakpoints", "Clear all breakpoints in all classes"); _setUpAction(_resumeDebugAction, "Resume", "Resume the current suspended thread"); _setUpAction(_stepIntoDebugAction, "Step Into", "Step into the current line or method call"); _setUpAction(_stepOverDebugAction, "Step Over", "Step over the current line or method call"); _setUpAction(_stepOutDebugAction, "Step Out", "Step out of the current method"); _setUpAction(_helpAction, "Help", "Show documentation on how to use DrJava"); _setUpAction(_quickStartAction, "Help", "View Quick Start Guide for DrJava"); _setUpAction(_aboutAction, "About", "About DrJava"); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/2de653a0c121f420695cbc85c38fd5c41317e81a/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 542, 1211, 6100, 1435, 288, 565, 389, 542, 1211, 1803, 24899, 2704, 1803, 16, 315, 1908, 3113, 315, 1684, 279, 394, 1668, 8863, 565, 389, 542, 1211, 1803, 24899, 2704, 46,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 542, 1211, 6100, 1435, 288, 565, 389, 542, 1211, 1803, 24899, 2704, 1803, 16, 315, 1908, 3113, 315, 1684, 279, 394, 1668, 8863, 565, 389, 542, 1211, 1803, 24899, 2704, 46,...
public ServiceInfo(String type, String name, InetAddress addr, int port, String text)
public ServiceInfo(String type, String name, InetAddress addr, int port, int weight, int priority, String text)
public ServiceInfo(String type, String name, InetAddress addr, int port, String text) { this(type, name, addr, port, 0, 0, text); }
364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/364/ef7056f53003696f3f1b4d82ad3cbdfa8b208903/ServiceInfo.java/clean/rdfweb.org/software/foaffinger/src/com/strangeberry/rendezvous/ServiceInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 966, 12, 780, 618, 16, 514, 508, 16, 14218, 3091, 16, 509, 1756, 16, 509, 3119, 16, 509, 4394, 16, 514, 977, 13, 565, 288, 202, 2211, 12, 723, 16, 508, 16, 3091, 16, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 966, 12, 780, 618, 16, 514, 508, 16, 14218, 3091, 16, 509, 1756, 16, 509, 3119, 16, 509, 4394, 16, 514, 977, 13, 565, 288, 202, 2211, 12, 723, 16, 508, 16, 3091, 16, 175...
.addAttribute("name","long")
.addAttribute("label","long")
public void testVarTableLoadBogus() { String[] args = {"CV", "Name"}; VariableTableModel t = new VariableTableModel(null, args, new CvTableModel(null)); // create a JDOM tree with just some elements Element root = new Element("decoder-config"); Document doc = new Document(root); doc.setDocType(new DocType("decoder-config","decoder-config.dtd")); // add some elements Element el0, el1; root.addContent(new Element("decoder") // the sites information here lists all relevant .addContent(new Element("variables") .addContent(el0 = new Element("variable") .addAttribute("CV","17") .addAttribute("mask","VVVVVVVV") .addAttribute("readOnly","no") .addAttribute("name","long") .addContent( new Element("bogusVal") ) ) ) // variables element ) // decoder element ; // end of adding contents // print JDOM tree, to check //OutputStream o = System.out; //XMLOutputter fmt = new XMLOutputter(); //fmt.setNewlines(true); // pretty printing //fmt.setIndent(true); //try { // fmt.output(doc, o); //} catch (Exception e) { System.out.println("error writing XML: "+e);} // and test reading this log.warn("expect next message: ERROR jmri.symbolicprog.VariableTableModel - Did not find a valid variable type"); t.setRow(0, el0); assert(t.getRowCount() == 0); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/501123ba97c6bc0ed235f4099a3ce77a13f3fcd3/VariableTableModelTest.java/clean/tests/jmrit/symbolicprog/VariableTableModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1537, 1388, 23380, 28774, 1435, 288, 202, 202, 780, 8526, 833, 273, 12528, 22007, 3113, 315, 461, 6, 20451, 202, 202, 3092, 1388, 1488, 268, 273, 394, 7110, 1388, 148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1537, 1388, 23380, 28774, 1435, 288, 202, 202, 780, 8526, 833, 273, 12528, 22007, 3113, 315, 461, 6, 20451, 202, 202, 3092, 1388, 1488, 268, 273, 394, 7110, 1388, 148...
fListeners.nodeCollapsed(event);
fListeners.treeCollapsed(event);
public void setCollapsed(TreePath aPath, boolean aCollapsed) { TreeTableModelEvent event = new TreeTableModelEvent(this, aPath); if (aCollapsed) { if (fCollapsed.put(aPath, "x") == null) { if (fListeners != null) { fListeners.nodeCollapsed(event); } } } else { if (fCollapsed.remove(aPath) != null) { if (fListeners != null) { fListeners.nodeExpanded(event); } } } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8c0a3f0dc0fd80182185cba30e58932b2539c17a/MessageModel.java/clean/grendel/sources/grendel/ui/MessageModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 28084, 12, 2471, 743, 279, 743, 16, 1250, 279, 28084, 13, 288, 565, 4902, 1388, 1488, 1133, 871, 273, 1377, 394, 4902, 1388, 1488, 1133, 12, 2211, 16, 279, 743, 1769, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 28084, 12, 2471, 743, 279, 743, 16, 1250, 279, 28084, 13, 288, 565, 4902, 1388, 1488, 1133, 871, 273, 1377, 394, 4902, 1388, 1488, 1133, 12, 2211, 16, 279, 743, 1769, 56...
for (int i = 0; i < arrayDimensions.length; i++) { final PsiExpression dim = arrayDimensions[i]; if (expressionMustAssignVariableOrFail(field, dim, checkedMethods)) {
for(final PsiExpression dim : arrayDimensions){ if(expressionMustAssignVariableOrFail(field, dim, checkedMethods)){
private static boolean newExpressionMustAssignVariableOrFail(PsiExpression expression, PsiVariable field, Set checkedMethods) { final PsiNewExpression callExpression = (PsiNewExpression) expression; final PsiExpressionList argumentList = callExpression.getArgumentList(); if (argumentList != null) { final PsiExpression[] args = argumentList.getExpressions(); for (int i = 0; i < args.length; i++) { final PsiExpression arg = args[i]; if (expressionMustAssignVariableOrFail(field, arg, checkedMethods)) { return true; } } } final PsiArrayInitializerExpression arrayInitializer = callExpression.getArrayInitializer(); if (expressionMustAssignVariableOrFail(field, arrayInitializer, checkedMethods)) { return true; } final PsiExpression[] arrayDimensions = callExpression.getArrayDimensions(); if (arrayDimensions != null) { for (int i = 0; i < arrayDimensions.length; i++) { final PsiExpression dim = arrayDimensions[i]; if (expressionMustAssignVariableOrFail(field, dim, checkedMethods)) { return true; } } } return false; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/InitializationUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 394, 2300, 10136, 4910, 3092, 18492, 12, 52, 7722, 2300, 2652, 16, 453, 7722, 3092, 652, 16, 1000, 5950, 4712, 13, 288, 3639, 727, 453, 7722, 1908, 2300, 745, 2300, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 394, 2300, 10136, 4910, 3092, 18492, 12, 52, 7722, 2300, 2652, 16, 453, 7722, 3092, 652, 16, 1000, 5950, 4712, 13, 288, 3639, 727, 453, 7722, 1908, 2300, 745, 2300, 273, ...
return DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL).format(date);
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL); df.setTimeZone(TimeZone.getTimeZone("GMT")); return df.format(date);
public static final String formatToString(Date date) { return DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL).format(date); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/2f8ff322ae2645f43f3f55366fdbd8d803af68b9/EventConstants.java/buggy/src/services/org/opennms/netmgt/EventConstants.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 514, 740, 5808, 12, 1626, 1509, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 5096, 1442, 12, 11878, 18, 18111, 16, 18371, 18, 18111, 1769, 3013, 18, 542, 16760, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 514, 740, 5808, 12, 1626, 1509, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 5096, 1442, 12, 11878, 18, 18111, 16, 18371, 18, 18111, 1769, 3013, 18, 542, 16760, 12, ...
{ this.ignorePcdata = ignorePcdata; }
{ this.ignorePcdata = ignorePcdata; }
public void setIgnorePcdata(boolean ignorePcdata) { this.ignorePcdata = ignorePcdata; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/XMLOutput.java/buggy/src/main/mondrian/xom/XMLOutput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3777, 28136, 892, 12, 6494, 2305, 28136, 892, 13, 202, 95, 202, 202, 2211, 18, 6185, 28136, 892, 273, 2305, 28136, 892, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3777, 28136, 892, 12, 6494, 2305, 28136, 892, 13, 202, 95, 202, 202, 2211, 18, 6185, 28136, 892, 273, 2305, 28136, 892, 31, 202, 97, 2, -100, -100, -100, -100, -100,...
acceptChannel = ServerSocketChannel.open(); acceptChannel.configureBlocking(false); acceptChannel.socket().bind(address); selector= Selector.open(); acceptChannel.register(selector, SelectionKey.OP_ACCEPT); this.setName("Server listener on port " + port); LOG.info(getName() + ": starting"); while (running) { SelectionKey key = null; try { selector.select(timeout); Iterator iter = selector.selectedKeys().iterator(); while (iter.hasNext()) { key = (SelectionKey)iter.next(); if (key.isAcceptable()) doAccept(key); else if (key.isReadable()) doRead(key); iter.remove(); key = null; } } catch (OutOfMemoryError e) { closeCurrentConnection(key, e); cleanupConnections(true); Thread.sleep(60000); } catch (Exception e) { closeCurrentConnection(key, e); } cleanupConnections(false); } } catch (Exception e) { LOG.fatal("selector",e);
socket.close(); } catch (IOException e) { LOG.info(getName() + ": e=" + e);
public void run() { SERVER.set(Server.this); try { // Create a new server socket and set to non blocking mode acceptChannel = ServerSocketChannel.open(); acceptChannel.configureBlocking(false); // Bind the server socket to the local host and port acceptChannel.socket().bind(address); // create a selector; selector= Selector.open(); // Register accepts on the server socket with the selector. acceptChannel.register(selector, SelectionKey.OP_ACCEPT); this.setName("Server listener on port " + port); LOG.info(getName() + ": starting"); while (running) { SelectionKey key = null; try { selector.select(timeout); Iterator iter = selector.selectedKeys().iterator(); while (iter.hasNext()) { key = (SelectionKey)iter.next(); if (key.isAcceptable()) doAccept(key); else if (key.isReadable()) doRead(key); iter.remove(); key = null; } } catch (OutOfMemoryError e) { closeCurrentConnection(key, e); cleanupConnections(true); Thread.sleep(60000); } catch (Exception e) { closeCurrentConnection(key, e); } cleanupConnections(false); } } catch (Exception e) { LOG.fatal("selector",e); } LOG.info("Stopping " + this.getName()); try { if (acceptChannel != null) acceptChannel.close(); if (selector != null) selector.close(); } catch (IOException e) { } selector= null; acceptChannel= null; connectionList = null; }
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/c244f1709006c4db4d644eddce36174aa25c8cdd/Server.java/clean/src/java/org/apache/hadoop/ipc/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 5411, 775, 288, 3639, 368, 1788, 279, 394, 1438, 2987, 471, 444, 358, 1661, 9445, 1965, 3639, 2791, 2909, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 5411, 775, 288, 3639, 368, 1788, 279, 394, 1438, 2987, 471, 444, 358, 1661, 9445, 1965, 3639, 2791, 2909, 273, ...
global.debugPrinter.print(arg1).flush();
System.err.println(arg1);
private Tree transformArg(Tree arg, Symbol formal) { if ((formal.flags & DEF) != 0) { Symbol sym = arg.symbol(); if (sym != null && (sym.flags & DEF) != 0) { Tree arg1 = transform(arg); switch (arg1) { case Apply(Select(Tree qual, Name name), Tree[] args1): assert name == Names.apply && args1.length == 0; return qual; default: global.debugPrinter.print(arg1).flush();//debug throw new ApplicationError(); } } return transform( gen.mkUnitFunction(arg, descr.uncurry(arg.type.widen()), currentOwner)); } else { return transform(arg); } }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/bd139b1e9e03830477ead13b7fee037387ded130/UnCurry.java/clean/sources/scalac/transformer/UnCurry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4902, 2510, 4117, 12, 2471, 1501, 16, 8565, 25739, 13, 288, 202, 430, 14015, 687, 287, 18, 7133, 473, 25957, 13, 480, 374, 13, 288, 202, 565, 8565, 5382, 273, 1501, 18, 7175, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 2510, 4117, 12, 2471, 1501, 16, 8565, 25739, 13, 288, 202, 430, 14015, 687, 287, 18, 7133, 473, 25957, 13, 480, 374, 13, 288, 202, 565, 8565, 5382, 273, 1501, 18, 7175, 5621...
public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price();
public quickfix.field.Price getPrice() throws FieldNotFound { quickfix.field.Price value = new quickfix.field.Price();
public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix44/NewOrderCross.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 5147, 25930, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 514...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 5147, 25930, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 514...
Endpoint e=new Endpoint(hostAndPort, requireNumeric);
new Endpoint(hostAndPort, requireNumeric);
private static void check(String hostAndPort, boolean requireNumeric, boolean allowed) { try { Endpoint e=new Endpoint(hostAndPort, requireNumeric); assertTrue("Allowed: \""+hostAndPort+"\"", allowed); } catch (IllegalArgumentException e) { assertTrue("Disallowed: \""+hostAndPort+"\"", !allowed); } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/2cd6c4a96369272d11c63d55dfb5a2671a5efcad/EndpointTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/EndpointTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 866, 12, 780, 1479, 1876, 2617, 16, 1171, 9079, 1250, 2583, 9902, 16, 1171, 9079, 1250, 2935, 13, 288, 3639, 775, 288, 5411, 394, 6961, 12, 2564, 1876, 2617, 16, 2583, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 866, 12, 780, 1479, 1876, 2617, 16, 1171, 9079, 1250, 2583, 9902, 16, 1171, 9079, 1250, 2935, 13, 288, 3639, 775, 288, 5411, 394, 6961, 12, 2564, 1876, 2617, 16, 2583, 9...
if (is_identchar(c)) {
if (isIdentifierChar(c)) {
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261...
return type.isVoid() ? 0 : 1001;
return type.isVoid() ? 0 : 0x1001;
public static int itemCountRange (Type type) { if (type instanceof SingletonType) return (1 << 12) | 1; if (type instanceof OccurrenceType) { OccurrenceType occ = (OccurrenceType) type; int min = occ.minOccurs(); int max = occ.maxOccurs(); int bnum = itemCountRange(occ.getBase()); if ((min == 1 && max == 1) || bnum == 0) return bnum; if (max > 0xfffff) max = -1; if (max == 0) return 0; int bmin = bnum & 0xfff; int bmax = bnum >> 12; if (bnum != 1001) { if (min > 0xfff) min = 0xfff; min = min * bmin; if (min > 0xfff) min = 0xfff; if (max < 0 || bmax < 0) max = -1; else max = max * bmax; if (max > 0xfffff) max = -1; } return (max << 12) | min; } if (type instanceof PrimType) return type.isVoid() ? 0 : 1001; if (type instanceof ArrayType) return 1001; if (type instanceof ClassType) { int cmp = type.compare(Compilation.typeValues); if (cmp == -3) return 1001; } return -1 << 12; }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/0cf10cbe985f3aa26e1effe6758a938e40731a7e/OccurrenceType.java/clean/gnu/kawa/reflect/OccurrenceType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 761, 1380, 2655, 261, 559, 618, 13, 225, 288, 565, 309, 261, 723, 1276, 27802, 559, 13, 1377, 327, 261, 21, 2296, 2593, 13, 571, 404, 31, 565, 309, 261, 723, 1276, 531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 761, 1380, 2655, 261, 559, 618, 13, 225, 288, 565, 309, 261, 723, 1276, 27802, 559, 13, 1377, 327, 261, 21, 2296, 2593, 13, 571, 404, 31, 565, 309, 261, 723, 1276, 531...
ISuportePersistente sp = null; IMasterDegreeCandidate existingMasterDegreeCandidate = null;
ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();
public InfoMasterDegreeCandidate run(InfoMasterDegreeCandidate newMasterDegreeCandidate, InfoPerson infoPerson, IUserView userView) throws FenixServiceException, ExcepcaoPersistencia { ISuportePersistente sp = null; IMasterDegreeCandidate existingMasterDegreeCandidate = null; try { sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IExecutionDegree executionDegree = Cloner .copyInfoExecutionDegree2ExecutionDegree(newMasterDegreeCandidate .getInfoExecutionDegree()); existingMasterDegreeCandidate = sp.getIPersistentMasterDegreeCandidate() .readByIdentificationDocNumberAndTypeAndExecutionDegreeAndSpecialization( newMasterDegreeCandidate.getInfoPerson().getNumeroDocumentoIdentificacao(), newMasterDegreeCandidate.getInfoPerson().getTipoDocumentoIdentificacao(), executionDegree.getIdInternal(), newMasterDegreeCandidate.getSpecialization()); } catch (ExcepcaoPersistencia ex) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx; } if (existingMasterDegreeCandidate == null) { throw new ExcepcaoInexistente("Unknown Candidate !!"); } try { IService service = new ChangePersonalInfo(); ((ChangePersonalInfo) service).run(userView, infoPerson); } catch (ExcepcaoPersistencia ex) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx; } // Change the Information sp.getIPersistentMasterDegreeCandidate().simpleLockWrite(existingMasterDegreeCandidate); existingMasterDegreeCandidate.setAverage(newMasterDegreeCandidate.getAverage()); existingMasterDegreeCandidate.setMajorDegree(newMasterDegreeCandidate.getMajorDegree()); existingMasterDegreeCandidate.setMajorDegreeSchool(newMasterDegreeCandidate .getMajorDegreeSchool()); existingMasterDegreeCandidate.setMajorDegreeYear(newMasterDegreeCandidate.getMajorDegreeYear()); existingMasterDegreeCandidate.setSpecializationArea(newMasterDegreeCandidate .getSpecializationArea()); // Change the Candidate Situation InfoMasterDegreeCandidate infoMasterDegreeCandidate = null; try { IPersistentCandidateSituation candidateSituationDAO = sp.getIPersistentCandidateSituation(); infoMasterDegreeCandidate = InfoMasterDegreeCandidateWithInfoPerson .newInfoFromDomain(existingMasterDegreeCandidate); List situations = new ArrayList(); ICandidateView candidateView = null; ICandidateSituation candidateSituationFromBD = new CandidateSituation(); candidateSituationFromBD = (ICandidateSituation) sp.getIPersistentCandidateSituation() .readByOID(CandidateSituation.class, existingMasterDegreeCandidate.getActiveCandidateSituation().getIdInternal(), true); candidateSituationFromBD.setValidation(new State(State.INACTIVE)); // Create the New Candidate Situation ICandidateSituation activeCandidateSituation = createActiveSituation( existingMasterDegreeCandidate, candidateSituationDAO); sp.confirmarTransaccao(); sp.iniciarTransaccao(); situations.add(Cloner .copyICandidateSituation2InfoCandidateSituation(activeCandidateSituation)); candidateView = new CandidateView(situations); userView.setCandidateView(candidateView); infoMasterDegreeCandidate.setInfoCandidateSituation(Cloner .copyICandidateSituation2InfoCandidateSituation(activeCandidateSituation)); infoMasterDegreeCandidate.setInfoPerson(infoPerson); } catch (ExcepcaoPersistencia ex) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx; } return infoMasterDegreeCandidate; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/a62eb7a4586a8394ed307800fe54c0129aab102c/ChangeApplicationInfo.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/masterDegree/candidate/ChangeApplicationInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3807, 7786, 22885, 11910, 1086, 12, 966, 7786, 22885, 11910, 394, 7786, 22885, 11910, 16, 5411, 3807, 8346, 1123, 8346, 16, 467, 1299, 1767, 729, 1767, 13, 1216, 478, 275, 697, 15133,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3807, 7786, 22885, 11910, 1086, 12, 966, 7786, 22885, 11910, 394, 7786, 22885, 11910, 16, 5411, 3807, 8346, 1123, 8346, 16, 467, 1299, 1767, 729, 1767, 13, 1216, 478, 275, 697, 15133,...
case 624: break;
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/4b2801ac2ab00275efc7eb5f3257db525f56ab9d/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
public void setReferenceResolver ( ReferenceResolver resolver ) { ensureInit(); throw new RuntimeException( "Not impl" ); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/e64541c2a5184517e57e41818324b55954b6f211/GenericXmlInputStream.java/buggy/src/common/org/apache/xmlbeans/impl/common/GenericXmlInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31098, 4301, 261, 6268, 4301, 5039, 262, 565, 288, 3639, 3387, 2570, 5621, 7734, 604, 394, 3235, 12, 315, 1248, 9380, 6, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31098, 4301, 261, 6268, 4301, 5039, 262, 565, 288, 3639, 3387, 2570, 5621, 7734, 604, 394, 3235, 12, 315, 1248, 9380, 6, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100,...
final BugzillaTaskEditorInput input = new BugzillaTaskEditorInput(bugTask, offline);
boolean isLikeOffline = offline || syncState == BugReportSyncState.OUTGOING; final BugzillaTaskEditorInput input = new BugzillaTaskEditorInput(bugTask, isLikeOffline);
protected IStatus run(IProgressMonitor monitor) { try{ final BugzillaTaskEditorInput input = new BugzillaTaskEditorInput(bugTask, offline);// state = BugTaskState.OPENING;// notifyTaskDataChange(); openTaskEditor(input, offline); // state = BugTaskState.FREE;// notifyTaskDataChange(); return new Status(IStatus.OK, MylarPlugin.IDENTIFIER, IStatus.OK, "", null); }catch(Exception e){// MessageDialog.openError(null, "Error Opening Bug", "Unable to open Bug report: " + BugzillaTask.getBugId(bugTask.getHandle())); MylarPlugin.fail(e, "Unable to open Bug report: " + BugzillaTask.getBugId(bugTask.getHandle()), true); } return Status.CANCEL_STATUS; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/061af9510c0ba2869c85bcd4b75126b7b04e7249/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 95, 9506, 202, 6385, 16907, 15990, 2174, 6946, 1210, 810, 273, 394, 16907, 15990, 2174, 6946, 1210, 12, 925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 95, 9506, 202, 6385, 16907, 15990, 2174, 6946, 1210, 810, 273, 394, 16907, 15990, 2174, 6946, 1210, 12, 925...
public NotPointcut(Pointcut left) {
public NotPointcut(Pointcut negated) {
public NotPointcut(Pointcut left) { super(); this.body = left; }
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/d75206bea48d3f442b326f19303e4c5e5a0705e9/NotPointcut.java/buggy/org.aspectj/modules/weaver/src/org/aspectj/weaver/patterns/NotPointcut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2288, 2148, 5150, 12, 2148, 5150, 2002, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 3432, 273, 2002, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 2288, 2148, 5150, 12, 2148, 5150, 2002, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 3432, 273, 2002, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } };
return new NonEmptyCrossJoinFunDef(dummyFunDef);
protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } }; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/3041f930b5fc4bf6aa3339845b828801c1d8b366/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 7734, 327, 394, 478, 318, 3262, 2171, 12, 21050, 22783, 3262, 13, 288, 10792,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 7734, 327, 394, 478, 318, 3262, 2171, 12, 21050, 22783, 3262, 13, 288, 10792,...
public SQLStatement getSQLStatements(TransMeta transMeta, StepMeta stepMeta, Row prev) { SQLStatement retval = new SQLStatement(stepMeta.getName(), database, null); // default: nothing to do! int i; if (database!=null) { if (prev!=null && prev.size()>0) { if (tablename!=null && tablename.length()>0) { Database db = new Database(database); try { boolean doHash = false; String cr_table = null; db.connect(); // OK, what do we put in the new table?? Row fields = new Row(); // First, the new technical key... Value vkeyfield = new Value(technicalKeyField, Value.VALUE_TYPE_INTEGER); vkeyfield.setLength(10,0); // Then the hashcode (optional) Value vhashfield = null; if (useHash && hashField != null && hashField.length()>0) { vhashfield = new Value(hashField, Value.VALUE_TYPE_INTEGER); vhashfield.setLength(15,0); doHash = true; } if ( ! db.checkTableExists(tablename) ) { // Add technical key field. fields.addValue(vkeyfield); int cnt = prev.size(); for (i=0;i<cnt;i++) { String error_field=""; //$NON-NLS-1$ Value v = prev.getValue(i); String name = v.getName(); if ( name.equals(vkeyfield.getName()) || (doHash == true && name.equals(vhashfield.getName())) ) { error_field+=name; } if (error_field.length()>0) { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NameCollision", error_field)); //$NON-NLS-1$ } fields.addValue(v); } if ( doHash == true ) { fields.addValue(vhashfield); } } else { // Table already exists // Get the fields that are in the table now: Row tabFields = db.getTableFields(tablename); // Don't forget to quote these as well... database.quoteReservedWords(tabFields); if (tabFields.searchValue( vkeyfield.getName() ) == null ) { // Add technical key field if it didn't exist yet fields.addValue(vkeyfield); } // Add the already existing fields int cnt = tabFields.size(); for ( i=0;i<cnt;i++ ) { Value v = tabFields.getValue(i); fields.addValue(v); } // Find the missing fields in the real table cnt = prev.size(); for ( i=0;i<cnt;i++ ) { Value v = prev.getValue(i); if ( tabFields.searchValue( v.getName() )==null ) { fields.addValue(v); // nope --> add } } if (doHash == true && tabFields.searchValue( vhashfield.getName() ) == null ) { // Add hash field fields.addValue(vhashfield); } } cr_table = db.getDDL(tablename, fields, (CREATION_METHOD_SEQUENCE.equals(getTechKeyCreation()) && sequenceFrom!=null && sequenceFrom.length()==0)?technicalKeyField:null, CREATION_METHOD_AUTOINC.equals(getTechKeyCreation()), null, true); // // OK, now let's build the index // // What fields do we put int the index? // Only the hashcode or all fields? String cr_index = ""; //$NON-NLS-1$ String cr_uniq_index = ""; //$NON-NLS-1$ String idx_fields[] = null; if (useHash) { if (hashField!=null && hashField.length()>0) { idx_fields = new String[] { hashField }; } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotHashFieldSpecified")); //$NON-NLS-1$ } } else // index on all key fields... { if (keyLookup!=null && keyLookup.length>0) { int nrfields = keyLookup.length; if (nrfields>32 && database.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE) { nrfields=32; // Oracle indexes are limited to 32 fields... } idx_fields = new String[nrfields]; for (i=0;i<nrfields;i++) idx_fields[i] = keyLookup[i]; } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotFieldsSpecified")); //$NON-NLS-1$ } } // OK, now get the create index statement... if ( technicalKeyField != null ) { String techKeyArr[] = new String [] { technicalKeyField }; if (!db.checkIndexExists(tablename, techKeyArr)) { String indexname = "idx_"+tablename+"_pk"; //$NON-NLS-1$ //$NON-NLS-2$ cr_uniq_index = db.getCreateIndexStatement(tablename, indexname, techKeyArr, true, true, false, true); cr_uniq_index+=Const.CR; } } // OK, now get the create lookup index statement... if (idx_fields!=null && idx_fields.length>0 && !db.checkIndexExists(tablename, idx_fields) ) { String indexname = "idx_"+tablename+"_lookup"; //$NON-NLS-1$ //$NON-NLS-2$ cr_index = db.getCreateIndexStatement(tablename, indexname, idx_fields, false, false, false, true); cr_index+=Const.CR; } // // Don't forget the sequence (optional) // String cr_seq=""; //$NON-NLS-1$ if ((database.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE) && CREATION_METHOD_SEQUENCE.equals(getTechKeyCreation()) && sequenceFrom!=null && sequenceFrom.length()>0 ) { if (!db.checkSequenceExists(sequenceFrom)) { cr_seq+=db.getCreateSequenceStatement(sequenceFrom, 1L, 1L, -1L, true); cr_seq+=Const.CR; } } retval.setSQL(cr_table+cr_uniq_index+cr_index+cr_seq); } catch(KettleException e) { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.ErrorOccurred")+Const.CR+e.getMessage()); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotTableDefined")); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotReceivingField")); //$NON-NLS-1$ } } else { retval.setError(Messages.getString("CombinationLookupMeta.ReturnValue.NotConnectionDefined")); //$NON-NLS-1$ } return retval; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/31758b7a61625816b29ede0a1b4f554f1d8134fd/CombinationLookupMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3063, 3406, 21708, 14663, 12, 1429, 2781, 906, 2781, 16, 8693, 2781, 2235, 2781, 16, 6556, 2807, 13, 202, 95, 202, 202, 3997, 3406, 5221, 273, 394, 3063, 3406, 12, 4119, 2781, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3063, 3406, 21708, 14663, 12, 1429, 2781, 906, 2781, 16, 8693, 2781, 2235, 2781, 16, 6556, 2807, 13, 202, 95, 202, 202, 3997, 3406, 5221, 273, 394, 3063, 3406, 12, 4119, 2781, ...
for(i = 0; i < alphaSize; i++)
} for(i = 0; i < alphaSize; i++) {
private void hbCreateDecodeTables(int[] limit, int[] base, int[] perm, char[] length, int minLen, int maxLen, int alphaSize) { int pp, i, j, vec; pp = 0; for(i = minLen; i <= maxLen; i++) for(j = 0; j < alphaSize; j++) if (length[j] == i) { perm[pp] = j; pp++; }; for(i = 0; i < MAX_CODE_LEN; i++) base[i] = 0; for(i = 0; i < alphaSize; i++) base[length[i]+1]++; for(i = 1; i < MAX_CODE_LEN; i++) base[i] += base[i-1]; for (i = 0; i < MAX_CODE_LEN; i++) limit[i] = 0; vec = 0; for (i = minLen; i <= maxLen; i++) { vec += (base[i+1] - base[i]); limit[i] = vec-1; vec <<= 1; } for (i = minLen + 1; i <= maxLen; i++) base[i] = ((limit[i-1] + 1) << 1) - base[i]; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/e3b6d1fe768d87352d3d0348638911045fc4668e/CBZip2InputStream.java/clean/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 21749, 1684, 6615, 6905, 12, 474, 8526, 1800, 16, 509, 8526, 1026, 16, 4766, 1377, 509, 8526, 4641, 16, 1149, 8526, 769, 16, 4766, 1377, 509, 1131, 2891, 16, 509, 29618, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 21749, 1684, 6615, 6905, 12, 474, 8526, 1800, 16, 509, 8526, 1026, 16, 4766, 1377, 509, 8526, 4641, 16, 1149, 8526, 769, 16, 4766, 1377, 509, 1131, 2891, 16, 509, 29618, 16, ...
_valueLocale = null; _valueDateFormat = null; _valueTimeFormat = null; _valueNumberFormat = null;
_valueLocale = null; setValueDateFormat(null); setValueTimeFormat(null); setValueNumberFormat(null);
public void setValueLocale(String localeStr) { if (localeStr != null) { int sepPos = localeStr.indexOf('_'); String language = null; String country = null; String variant = null; if (sepPos > 0) { language = localeStr.substring(0, sepPos); country = localeStr.substring(sepPos + 1); sepPos = country.indexOf('_'); if (sepPos > 0) { variant = country.substring(sepPos + 1); country = country.substring(0, sepPos); } } else { language = localeStr; } if (language != null) { Locale locale = null; if (variant != null) { locale = new Locale(language, country, variant); } else if (country != null) { locale = new Locale(language, country); } else { locale = new Locale(language); } _valueLocale = localeStr; _valueDateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale); _valueTimeFormat = DateFormat.getTimeInstance(DateFormat.SHORT, locale); _valueNumberFormat = NumberFormat.getNumberInstance(locale); return; } } _valueLocale = null; _valueDateFormat = null; _valueTimeFormat = null; _valueNumberFormat = null; }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/320fa876f1f19ea466d65796c45a11dd08320655/SqlBuilder.java/clean/src/java/org/apache/ddlutils/platform/SqlBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5524, 3916, 12, 780, 2573, 1585, 13, 565, 288, 3639, 309, 261, 6339, 1585, 480, 446, 13, 3639, 288, 5411, 509, 565, 5478, 1616, 282, 273, 2573, 1585, 18, 31806, 2668, 4623, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5524, 3916, 12, 780, 2573, 1585, 13, 565, 288, 3639, 309, 261, 6339, 1585, 480, 446, 13, 3639, 288, 5411, 509, 565, 5478, 1616, 282, 273, 2573, 1585, 18, 31806, 2668, 4623, 1...
eDynamicUnset( eFeature );
super.eUnset( featureID );
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.DATA_POINT_COMPONENT__TYPE : unsetType( ); return; case AttributePackage.DATA_POINT_COMPONENT__FORMAT_SPECIFIER : setFormatSpecifier( (FormatSpecifier) null ); return; } eDynamicUnset( eFeature ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/DataPointComponentImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/DataPointComponentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 226...
public void setDefaultZ(int z);
public void setDefaultZ(int z);
public void setDefaultZ(int z); //Is it the best way to do it?
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngine.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9277, 62, 12, 474, 998, 1769, 368, 2520, 518, 326, 3796, 4031, 358, 741, 518, 35, 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, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9277, 62, 12, 474, 998, 1769, 368, 2520, 518, 326, 3796, 4031, 358, 741, 518, 35, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
unaryExpr(ts, source));
unaryExpr(ts));
private Object unaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.UNARYOP: source.append((char)ts.UNARYOP); source.append((char)ts.getOp()); return nf.createUnary(ts.UNARYOP, ts.getOp(), unaryExpr(ts, source)); case TokenStream.ADD: case TokenStream.SUB: source.append((char)ts.UNARYOP); source.append((char)tt); return nf.createUnary(ts.UNARYOP, tt, unaryExpr(ts, source)); case TokenStream.INC: case TokenStream.DEC: source.append((char)tt); return nf.createUnary(tt, ts.PRE, memberExpr(ts, source, true)); case TokenStream.DELPROP: source.append((char)ts.DELPROP); return nf.createUnary(ts.DELPROP, unaryExpr(ts, source)); case TokenStream.ERROR: break; default: ts.ungetToken(tt); int lineno = ts.getLineno(); Object pn = memberExpr(ts, source, true); /* don't look across a newline boundary for a postfix incop. * the rhino scanner seems to work differently than the js * scanner here; in js, it works to have the line number check * precede the peekToken calls. It'd be better if they had * similar behavior... */ int peeked; if (((peeked = ts.peekToken()) == ts.INC || peeked == ts.DEC) && ts.getLineno() == lineno) { int pf = ts.getToken(); source.append((char)pf); return nf.createUnary(pf, ts.POST, pn); } return pn; } return nf.createName("err"); // Only reached on error. Try to continue. }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 19017, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 19017, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 3742, 18, 7133, 5626, 3742, 18, 8047, 42, 67, 2...
if(logMINOR) Logger.minor(this, "Creating SingleFileFetcher for "+key+" meta="+metaStrings.toString(), new Exception("debug"));
if(logMINOR) Logger.minor(this, "Creating SingleFileFetcher for "+key+" from "+origURI+" meta="+metaStrings.toString(), new Exception("debug"));
public SingleFileFetcher(BaseClientGetter get, GetCompletionCallback cb, ClientMetadata metadata, ClientKey key, LinkedList metaStrings, FreenetURI origURI, int addedMetaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket, boolean isFinal) throws FetchException { super(key, maxRetries, ctx, get); logMINOR = Logger.shouldLog(Logger.MINOR, this); if(logMINOR) Logger.minor(this, "Creating SingleFileFetcher for "+key+" meta="+metaStrings.toString(), new Exception("debug")); this.isFinal = isFinal; this.cancelled = false; this.returnBucket = returnBucket; this.dontTellClientGet = dontTellClientGet; this.token = token; //this.uri = uri; //this.key = ClientKey.getBaseKey(uri); //metaStrings = uri.listMetaStrings(); this.metaStrings = metaStrings; this.addedMetaStrings = addedMetaStrings; this.rcb = cb; this.clientMetadata = metadata; thisKey = key.getURI(); this.uri = origURI; this.actx = actx; this.recursionLevel = recursionLevel + 1; if(recursionLevel > ctx.maxRecursionLevel) throw new FetchException(FetchException.TOO_MUCH_RECURSION, "Too much recursion: "+recursionLevel+" > "+ctx.maxRecursionLevel); this.decompressors = new LinkedList(); parent.addBlock(); if(isEssential) parent.addMustSucceedBlocks(1); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/3ee7d7b42bb8bbd126e170321a48a0658fa2347f/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10326, 812, 16855, 12, 2171, 1227, 8461, 336, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1982, 16, 1082, 202, 1227, 653, 498, 16, 10688, 2191, 7957, 16, 478, 2842, 278, 3098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2171, 1227, 8461, 336, 16, 968, 11238, 2428, 2875, 16, 2445, 2277, 1982, 16, 1082, 202, 1227, 653, 498, 16, 10688, 2191, 7957, 16, 478, 2842, 278, 3098, ...
for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator();
for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator();
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); } RubyModule module = (RubyModule) arg; // Make sure the module we include does not already exist if (isSame(module)) { return; } infectBy(module); RubyModule p, c; boolean changed = false; boolean skip = false; c = this; while (module != null) { if (getNonIncludedClass() == module.getNonIncludedClass()) { throw getRuntime().newArgumentError("cyclic include detected"); } boolean superclassSeen = false; for (p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p instanceof IncludedModuleWrapper) { if (p.getNonIncludedClass() == module.getNonIncludedClass()) { if (!superclassSeen) { c = p; } skip = true; break; } } else { superclassSeen = true; } } if (!skip) { // In the current logic, if we get here we know that module is not an // IncludedModuleWrapper, so there's no need to fish out the delegate. But just // in case the logic should change later, let's do it anyway: c.setSuperClass(new IncludedModuleWrapper(getRuntime(), c.getSuperClass(), module.getNonIncludedClass())); c = c.getSuperClass(); changed = true; } module = module.getSuperClass(); skip = false; } if (changed) { // MRI seems to blow away its cache completely after an include; is // what we're doing here really safe? for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName)); } } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 2341, 3120, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 1815, 1501, 480, 446, 31, 7734, 1842, 42, 9808, 2932, 2978, 8863, 3639, 309, 16051, 291, 29048, 10756, 288, 5411, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 2341, 3120, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 1815, 1501, 480, 446, 31, 7734, 1842, 42, 9808, 2932, 2978, 8863, 3639, 309, 16051, 291, 29048, 10756, 288, 5411, 1...
Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); }
PropertyDescriptor descriptor = propertyDescriptors[i]; if(isNotConfigurational(descriptor) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); establishRelationships(); Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); }
public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); // process the constraints evaluateConstraints(); // get mapped by setting if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(isNotConfigurational(descriptor) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2989, 14571, 14573, 3748, 797, 12, 797, 4003, 13, 288, 202, 202, 9565, 12, 830, 3638, 16, 1408, 1769, 202, 202, 1396, 3187, 8526, 1272, 12705, 273, 13223, 7675, 588, 1396, 12705...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2989, 14571, 14573, 3748, 797, 12, 797, 4003, 13, 288, 202, 202, 9565, 12, 830, 3638, 16, 1408, 1769, 202, 202, 1396, 3187, 8526, 1272, 12705, 273, 13223, 7675, 588, 1396, 12705...
ic.setPixels(0, 0, width, height, cm, pixelb, offset, scansize);
ic.setPixels( 0, 0, width, height, cm, pixelb, offset, scansize );
private void sendPicture(ImageConsumer ic) { ic.setHints(ImageConsumer.TOPDOWNLEFTRIGHT); if (props != null) { ic.setProperties(props); } if (pixeli != null) { ic.setPixels(0, 0, width, height, cm, pixeli, offset, scansize); } else { ic.setPixels(0, 0, width, height, cm, pixelb, offset, scansize); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MemoryImageSource.java/buggy/core/src/classpath/java/java/awt/image/MemoryImageSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1366, 24061, 12, 2040, 5869, 13579, 13, 288, 202, 202, 335, 18, 542, 13368, 12, 2040, 5869, 18, 10462, 12711, 10066, 11847, 1769, 202, 202, 430, 261, 9693, 480, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1366, 24061, 12, 2040, 5869, 13579, 13, 288, 202, 202, 335, 18, 542, 13368, 12, 2040, 5869, 18, 10462, 12711, 10066, 11847, 1769, 202, 202, 430, 261, 9693, 480, 446, 13, ...
return isSubType(tree, pt) ? tree : cast(tree, pt);
if (isSubType(tree.type(), pt)) { return tree; } else if (isUnboxed(tree.type) && !isUnboxed(pt)) { return coerce(box(tree), pt); } else if ((isUnboxedArray(tree.type) || (tree.type.symbol() == definitions.ANY_CLASS)) && isUnboxedArray(pt)) { return gen.mkAsInstanceOf(tree, pt); } else if (!isUnboxed(tree.type) && isUnboxed(pt)) { if (isBoxed(tree.type)) { return coerce(unbox(tree, pt), pt); } else { Type bt = boxedType(pt); while (isBoxed(bt.parents()[0])) { bt = bt.parents()[0]; } return coerce(coerce(tree, bt), pt); } } else if (isUnboxed(tree.type) && isUnboxed(pt)) { return gen.mkApply__(gen.Select(box(tree), unboxSym(pt))); } else if (!isUnboxed(tree.type) && !isUnboxed(pt) || isUnboxedArray(tree.type) && isUnboxedArray(pt)) { return gen.mkAsInstanceOf(tree, pt); } else { throw Debug.abort("cannot coerce " + tree.type + " to " + pt); }
Tree coerce(Tree tree, Type pt) { return isSubType(tree, pt) ? tree : cast(tree, pt); }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/d8cb8dd987856e35645682f5a5c96b4c0d733940/Erasure.java/clean/sources/scalac/transformer/Erasure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4902, 12270, 12, 2471, 2151, 16, 1412, 5818, 13, 288, 202, 430, 261, 291, 30511, 12, 3413, 18, 723, 9334, 5818, 3719, 288, 327, 2151, 31, 289, 469, 309, 261, 291, 984, 2147, 329, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4902, 12270, 12, 2471, 2151, 16, 1412, 5818, 13, 288, 202, 430, 261, 291, 30511, 12, 3413, 18, 723, 9334, 5818, 3719, 288, 327, 2151, 31, 289, 469, 309, 261, 291, 984, 2147, 329, 12, ...
public org.quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedSecurityDescLen value = new org.quickfix.field.EncodedSecurityDescLen();
public quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { quickfix.field.EncodedSecurityDescLen value = new quickfix.field.EncodedSecurityDescLen();
public org.quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedSecurityDescLen value = new org.quickfix.field.EncodedSecurityDescLen(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 4368, 4217, 2891, 28799, 4368, 4217, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 4368, 4217, 2891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 4368, 4217, 2891, 28799, 4368, 4217, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 4368, 4217, 2891, ...
show(english, groups, seen);
show(log, desiredLocaleFile, groups, seen, col, false, english);
private static void printSupplementalData() { Factory cldrFactory = Factory.make("C:\\ICU4C\\locale\\common\\main\\", ".*"); CLDRFile english = cldrFactory.make("en", false); CLDRFile supp = cldrFactory.make(CLDRFile.SUPPLEMENTAL_NAME, false); XPathParts parts = new XPathParts(null, null); for (Iterator it = supp.keySet().iterator(); it.hasNext();) { String path = (String) it.next(); Value v = supp.getValue(path); parts.set(v.getFullXPath()); Map m = parts.findAttributes("language"); if (m == null) continue; System.out.println("Type: " + m.get("type") + "\tscripts: " + m.get("scripts") + "\tterritories: " + m.get("territories") ); } // territories Map groups = new TreeMap(); for (Iterator it = supp.keySet().iterator(); it.hasNext();) { String path = (String) it.next(); Value v = supp.getValue(path); parts.set(v.getFullXPath()); Map m = parts.findAttributes("territoryContainment"); if (m == null) continue; Map attributes = parts.getAttributes(2); String type = (String) attributes.get("type"); Collection contents = Utility.splitList((String)attributes.get("contains"), ' ', true, new ArrayList()); groups.put(type, contents); if (false) { System.out.print("\t\t<group type=\"" + fixNumericKey(type) + "\" contains=\""); boolean first = true; for (Iterator it2 = contents.iterator(); it2.hasNext();) { if (first) first = false; else System.out.print(" "); System.out.print(fixNumericKey((String)it2.next())); } System.out.println("\"> <!--" + english.getName(CLDRFile.TERRITORY_NAME, type, false) + " -->"); } } Set seen = new TreeSet(); show(english, groups, seen); StandardCodes sc = StandardCodes.make(); Set codes = sc.getAvailableCodes("territory"); Set missing = new TreeSet(codes); missing.removeAll(seen); if (missing.size() != 0) System.out.println("Missing: "); for (Iterator it = missing.iterator(); it.hasNext();) { String key = (String) it.next(); //String name = english.getName(CLDRFile.TERRITORY_NAME, key, false); System.out.println("\t" + key + "\t" + sc.getFullData("territory", key)); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d314d402dd141c745a0ffd7696af6a7648a1d32e/Misc.java/buggy/tools/java/org/unicode/cldr/tool/Misc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1172, 3088, 23026, 751, 1435, 288, 202, 202, 1733, 927, 3069, 1733, 273, 7822, 18, 6540, 2932, 39, 31027, 2871, 57, 24, 39, 1695, 6339, 1695, 6054, 1695, 5254, 1695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1172, 3088, 23026, 751, 1435, 288, 202, 202, 1733, 927, 3069, 1733, 273, 7822, 18, 6540, 2932, 39, 31027, 2871, 57, 24, 39, 1695, 6339, 1695, 6054, 1695, 5254, 1695, ...
public static boolean isListItem(CascadedStyle style) {
public static boolean isListItem(CalculatedStyle style) {
public static boolean isListItem(CascadedStyle style) { if (style == null) { return false; } IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.LIST_ITEM; }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/c96efe21dd32b0a4f0420c8495d49144792cbc9d/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 13575, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 2562, 273, 2154, 18, 588, 6106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 353, 13575, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 2562, 273, 2154, 18, 588, 6106...
identifierLengthPtr--; char[] identifierName = identifierStack[identifierPtr]; long namePositions = identifierPositionStack[identifierPtr--]; TypeReference type = getTypeReference(intStack[intPtr--] + intStack[intPtr--]); int modifierPositions = intStack[intPtr--]; intPtr--;
this.identifierLengthPtr--; char[] identifierName = this.identifierStack[this.identifierPtr]; long namePositions = this.identifierPositionStack[this.identifierPtr--]; TypeReference type = getTypeReference(this.intStack[this.intPtr--] + this.intStack[this.intPtr--]); int modifierPositions = this.intStack[this.intPtr--]; this.intPtr--;
protected void consumeFormalParameter() { // FormalParameter ::= Type VariableDeclaratorId ==> false // FormalParameter ::= Modifiers Type VariableDeclaratorId ==> true /* astStack : identifierStack : type identifier intStack : dim dim ==> astStack : Argument identifierStack : intStack : */ identifierLengthPtr--; char[] identifierName = identifierStack[identifierPtr]; long namePositions = identifierPositionStack[identifierPtr--]; TypeReference type = getTypeReference(intStack[intPtr--] + intStack[intPtr--]); int modifierPositions = intStack[intPtr--]; intPtr--; Argument arg = new Argument( identifierName, namePositions, type, intStack[intPtr + 1] & ~AccDeprecated); // modifiers arg.declarationSourceStart = modifierPositions; pushOnAstStack(arg); /* if incomplete method header, listLength counter will not have been reset, indicating that some arguments are available on the stack */ listLength++; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 13985, 1435, 288, 202, 759, 478, 1687, 1662, 493, 33, 1412, 7110, 31419, 548, 422, 34, 629, 202, 759, 478, 1687, 1662, 493, 33, 3431, 3383, 1412, 7110, 31419, 548, 422, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 13985, 1435, 288, 202, 759, 478, 1687, 1662, 493, 33, 1412, 7110, 31419, 548, 422, 34, 629, 202, 759, 478, 1687, 1662, 493, 33, 3431, 3383, 1412, 7110, 31419, 548, 422, 34, ...
} else if (child.isFile()) {
} else if (CoreModel.isValidTranslationUnitName(names[i]) && child.isFile()) {
protected boolean computeChildren(OpenableInfo info, IResource res) throws CModelException { ArrayList vChildren = new ArrayList(); File file = null; if (fPath != null) { file = fPath.toFile(); } else if (fIncludeEntry != null) { file = fIncludeEntry.getIncludePath().toFile(); } String[] names = null; if (file != null && file.isDirectory()) { names = file.list(); } if (names != null) { IPath path = new Path(file.getAbsolutePath()); for (int i = 0; i < names.length; i++) { File child = new File(file, names[i]); ICElement celement = null; if (child.isDirectory()) { celement = new IncludeReference(this, fIncludeEntry, new Path(child.getAbsolutePath())); } else if (child.isFile()) { celement = new ExternalTranslationUnit(this, path.append(names[i])); } if (celement != null) { vChildren.add(celement); } } } info.setChildren(vChildren); return true; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/be49f6a48fa1c9c06e583538fba9a522fd229f61/IncludeReference.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IncludeReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 3671, 4212, 12, 3678, 429, 966, 1123, 16, 467, 1420, 400, 13, 1216, 385, 1488, 503, 288, 1082, 202, 19558, 331, 4212, 273, 394, 2407, 5621, 1082, 202, 812, 585, 273, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 3671, 4212, 12, 3678, 429, 966, 1123, 16, 467, 1420, 400, 13, 1216, 385, 1488, 503, 288, 1082, 202, 19558, 331, 4212, 273, 394, 2407, 5621, 1082, 202, 812, 585, 273, 44...
layoutStore.setFragment(person,fragment); }
layoutStore.setFragment(person,fragment); }
public void saveFragment ( ILayoutFragment fragment ) throws PortalException { layoutStore.setFragment(person,fragment); }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/a70ada928fe06bf9bc2b55f2f32208ea99e82cb6/AggregatedLayoutManager.java/clean/source/org/jasig/portal/layout/alm/AggregatedLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 7456, 261, 467, 3744, 7456, 5481, 262, 1216, 25478, 503, 288, 4202, 3511, 2257, 18, 542, 7456, 12, 12479, 16, 11956, 1769, 202, 565, 289, 2, 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, 0, 0, 0, 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, 7456, 261, 467, 3744, 7456, 5481, 262, 1216, 25478, 503, 288, 4202, 3511, 2257, 18, 542, 7456, 12, 12479, 16, 11956, 1769, 202, 565, 289, 2, -100, -100, -100, -100, -100,...
if ((category != null || entry.hasChildEntries()) && childItems.length == 0)
if (category != null || entry.hasChildEntries()){
private void updateChildrenOf(Object node, Widget widget) { // cast the entry or category IPropertySheetEntry entry = null; PropertySheetCategory category = null; if (node instanceof IPropertySheetEntry) entry = (IPropertySheetEntry) node; else category = (PropertySheetCategory) node; // get the current child table tree items TableTreeItem item = null; TableTreeItem[] childItems; if (node == rootEntry) { childItems = tableTree.getItems(); } else { item = (TableTreeItem) widget; childItems = item.getItems(); } // optimization! prune collapsed subtrees if (item != null && !item.getExpanded()) { // remove all children for (int i = 0; i < childItems.length; i++) { if (childItems[i].getData() != null) { removeItem(childItems[i]); } } // append a dummy if necessary if ((category != null || entry.hasChildEntries()) && childItems.length == 0) // may already have a dummy // its is either a category (which always has at least one // child) // or an entry with chidren. // Note that this test is not perfect, if we have filtering on // then there in fact may be no entires to show when the user // presses the "+" expand icon. But this is an acceptable // compromise. new TableTreeItem(item, SWT.NULL); return; } // get the child entries or categories if (node == rootEntry && isShowingCategories) // update the categories updateCategories(); List children = getChildren(node); // remove items Set set = new HashSet(childItems.length * 2 + 1); for (int i = 0; i < childItems.length; i++) { Object data = childItems[i].getData(); if (data != null) { Object e = data; int ix = children.indexOf(e); if (ix < 0) { // not found removeItem(childItems[i]); } else { // found set.add(e); } } else if (data == null) { // the dummy item.dispose(); } } // WORKAROUND int oldCnt = -1; if (widget == tableTree) oldCnt = tableTree.getItemCount(); // add new items int newSize = children.size(); for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (!set.contains(el)) createItem(el, widget, i); } // WORKAROUND if (widget == tableTree && oldCnt == 0 && tableTree.getItemCount() == 1) { tableTree.setRedraw(false); tableTree.setRedraw(true); } // get the child table tree items after our changes if (entry == rootEntry) childItems = tableTree.getItems(); else childItems = item.getItems(); // update the child items // This ensures that the children are in the correct order // are showing the correct values. for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (el instanceof IPropertySheetEntry) updateEntry((IPropertySheetEntry) el, childItems[i]); else { updateCategory((PropertySheetCategory) el, childItems[i]); updateChildrenOf((PropertySheetCategory) el, childItems[i]); } } // The tree's original selection may no longer apply after the update, // so fire the selection changed event. entrySelectionChanged(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3fe46568fedba60643e0be03da922f6da9a1bdb3/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 202, 202, 759, 4812, 326, 1241, 578, 3150, 202, 202, 45, 1396, 8229, 1622, 1241, 273, 446, 31, 202, 202, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 202, 202, 759, 4812, 326, 1241, 578, 3150, 202, 202, 45, 1396, 8229, 1622, 1241, 273, 446, 31, 202, 202, 1396, ...
return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC);
return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC);
protected FuzzyBoolean matchInternal(Shadow shadow) { if (!couldMatch(shadow)) return FuzzyBoolean.NO; UnresolvedType typeToMatch = isThis ? shadow.getThisType() : shadow.getTargetType(); //if (typeToMatch == ResolvedType.MISSING) return FuzzyBoolean.NO; return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/8a34d98b678b9d85657d81b8991928b8b2788d05/ThisOrTargetPointcut.java/buggy/weaver/src/org/aspectj/weaver/patterns/ThisOrTargetPointcut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 478, 13903, 5507, 845, 3061, 12, 12957, 10510, 13, 288, 202, 202, 430, 16051, 15195, 2060, 12, 19119, 3719, 327, 478, 13903, 5507, 18, 3417, 31, 202, 202, 984, 11792, 559, 618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 13903, 5507, 845, 3061, 12, 12957, 10510, 13, 288, 202, 202, 430, 16051, 15195, 2060, 12, 19119, 3719, 327, 478, 13903, 5507, 18, 3417, 31, 202, 202, 984, 11792, 559, 618,...
client.doGetRevisionProperty(path, null, svnRevision, propHandler);
client.doGetRevisionProperty(SVNURL.parseURIEncoded(path), null, svnRevision, propHandler);
public PropertyData[] revProperties(String path, Revision rev) throws ClientException { if(path == null){ return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = SVNConverterUtil.getSVNRevision(rev); SVNRevision svnPegRevision = SVNConverterUtil.getSVNRevision(null); final Collection properties = new ArrayList(); ISVNPropertyHandler propHandler = new ISVNPropertyHandler(){ public void handleProperty(File fpath, SVNPropertyData property) { properties.add(new PropertyData(SVNClient.this, fpath.getAbsolutePath(), property.getName(), property.getValue(), property.getValue().getBytes())); } public void handleProperty(String url, SVNPropertyData property) { properties.add(new PropertyData(SVNClient.this, url, property.getName(), property.getValue(), property.getValue().getBytes())); } }; try { if(isURL(path)){ client.doGetRevisionProperty(path, null, svnRevision, propHandler); }else{ client.doGetRevisionProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, propHandler); } } catch (SVNException e) { throwException(e); } return (PropertyData[]) properties.toArray(new PropertyData[properties.size()]); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/28381179e464d7990498164d52693487f9dddb79/SVNClient.java/buggy/javasvn/src/org/tigris/subversion/javahl/SVNClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4276, 751, 8526, 5588, 2297, 12, 780, 589, 16, 13132, 5588, 13, 1216, 20881, 288, 3639, 309, 12, 803, 422, 446, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 29537, 50, 59, 39, 1227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4276, 751, 8526, 5588, 2297, 12, 780, 589, 16, 13132, 5588, 13, 1216, 20881, 288, 3639, 309, 12, 803, 422, 446, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 29537, 50, 59, 39, 1227...
String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex);
String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupAffFullName(elementIndex);
public boolean isEquivalentTo(QName anElement, QName exemplar) throws Exception{ if (anElement.localpart==exemplar.localpart && anElement.uri==exemplar.uri ) { return true; // they're the same! } if (fGrammarResolver == null || fStringPool == null) { throw new SAXException("Internal error; tried to check an element against a substitutionGroup, but no GrammarResolver is defined"); } int uriIndex = anElement.uri; int localpartIndex = anElement.localpart; String uri = fStringPool.toString(anElement.uri); String localpart = fStringPool.toString(anElement.localpart); // In addition to simply trying to find a chain between anElement and exemplar, // we need to make sure that no steps in the chain are blocked. // That is, at every step, we need to make sure that the element // being substituted for will permit being substituted // for, and whether the type of the element will permit derivations in // instance documents of this sort. if(uri==null) { return false; } SchemaGrammar sGrammar = null; try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } // this will be the index of anElement int elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); int anElementIndex = elementIndex; String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); boolean foundIt = false; while (substitutionGroupFullName != null) { int commaAt = substitutionGroupFullName.indexOf(","); uri = ""; localpart = substitutionGroupFullName; if ( commaAt >= 0 ) { if (commaAt > 0 ) { uri = substitutionGroupFullName.substring(0,commaAt); } localpart = substitutionGroupFullName.substring(commaAt+1); } if(uri==null) { return false; } try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } uriIndex = fStringPool.addSymbol(uri); localpartIndex = fStringPool.addSymbol(localpart); elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); if (elementIndex == -1) { return false; } if (uriIndex == exemplar.uri && localpartIndex == exemplar.localpart) { // time to check for block value on element if((sGrammar.getElementDeclBlockSet(elementIndex) & SchemaSymbols.SUBSTITUTION) != 0) { return false; } foundIt = true; break; } substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); } if (!foundIt) { return false; } // this will contain anElement's complexType information. TraverseSchema.ComplexTypeInfo aComplexType = sGrammar.getElementComplexTypeInfo(anElementIndex); // elementIndex contains the index of the substitutionGroup head int exemplarBlockSet = sGrammar.getElementDeclBlockSet(elementIndex); if(aComplexType == null) { // check on simpleType case XMLElementDecl anElementDecl = new XMLElementDecl(); sGrammar.getElementDecl(anElementIndex, anElementDecl); DatatypeValidator anElementDV = anElementDecl.datatypeValidator; XMLElementDecl exemplarDecl = new XMLElementDecl(); sGrammar.getElementDecl(elementIndex, exemplarDecl); DatatypeValidator exemplarDV = exemplarDecl.datatypeValidator; return((anElementDV == null) || ((anElementDV == exemplarDV) || ((exemplarBlockSet & SchemaSymbols.RESTRICTION) == 0))); } // now we have to make sure there are no blocks on the complexTypes that this is based upon int anElementDerivationMethod = aComplexType.derivedBy; if((anElementDerivationMethod & exemplarBlockSet) != 0) return false; // this will contain exemplar's complexType information. TraverseSchema.ComplexTypeInfo exemplarComplexType = sGrammar.getElementComplexTypeInfo(elementIndex); for(TraverseSchema.ComplexTypeInfo tempType = aComplexType; tempType != null && tempType != exemplarComplexType; tempType = tempType.baseComplexTypeInfo) { if((tempType.blockSet & anElementDerivationMethod) != 0) { return false; } } return true; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/dded6e20bac6cc9df13e1872b030c11a48d96261/SubstitutionGroupComparator.java/buggy/src/org/apache/xerces/validators/schema/SubstitutionGroupComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
Mode mode = new Mode(modeName);
Mode mode = jEdit.getMode(modeName); if(mode == null) { mode = new Mode(modeName); jEdit.addMode(mode); }
public void endElement(String name) { if(name.equals("MODE")) { Mode mode = new Mode(modeName); Object path; if(resource) { path = jEdit.class.getResource(directory + '/' + file); } else path = MiscUtilities.constructPath(directory,file); mode.setProperty("file",path); if(filenameGlob != null) mode.setProperty("filenameGlob",filenameGlob); if(firstlineGlob != null) mode.setProperty("firstlineGlob",firstlineGlob); jEdit.addMode(mode); modeName = file = filenameGlob = firstlineGlob = null; } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/8645d39f892f95a8348cc6903451df3bcb7fd5d5/ModeCatalogHandler.java/clean/org/gjt/sp/jedit/ModeCatalogHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 508, 13, 202, 95, 202, 202, 430, 12, 529, 18, 14963, 2932, 7038, 6, 3719, 202, 202, 95, 1082, 202, 2309, 1965, 273, 394, 8126, 12, 3188, 461, 1769, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14840, 12, 780, 508, 13, 202, 95, 202, 202, 430, 12, 529, 18, 14963, 2932, 7038, 6, 3719, 202, 202, 95, 1082, 202, 2309, 1965, 273, 394, 8126, 12, 3188, 461, 1769, 1082...
&& plugin.installedVersion != null
&& installedVersion != null
public void update() { PluginList pluginList = window.getPluginList(); if (pluginList == null) return; entries = new ArrayList(); for(int i = 0; i < pluginList.pluginSets.size(); i++) { PluginList.PluginSet set = (PluginList.PluginSet) pluginList.pluginSets.get(i); for(int j = 0; j < set.plugins.size(); j++) { PluginList.Plugin plugin = (PluginList.Plugin) pluginList.pluginHash.get(set.plugins.get(j)); PluginList.Branch branch = plugin.getCompatibleBranch(); if (updates) { if(branch != null && branch.canSatisfyDependencies() && plugin.installedVersion != null && MiscUtilities.compareStrings(branch.version, plugin.installedVersion,false) > 0) { entries.add(new Entry(plugin,set.name)); } } else { if(plugin.installed == null && plugin.canBeInstalled()) entries.add(new Entry(plugin,set.name)); } } } sort(sortType); fireTableChanged(new TableModelEvent(this)); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/819a5ea26abad40a3c10b66b97ceebe13a03a7f8/InstallPanel.java/buggy/org/gjt/sp/jedit/pluginmgr/InstallPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1089, 1435, 202, 202, 95, 1082, 202, 3773, 682, 1909, 682, 273, 2742, 18, 588, 3773, 682, 5621, 1082, 202, 430, 261, 4094, 682, 422, 446, 13, 327, 31, 1082, 202, 8219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1435, 202, 202, 95, 1082, 202, 3773, 682, 1909, 682, 273, 2742, 18, 588, 3773, 682, 5621, 1082, 202, 430, 261, 4094, 682, 422, 446, 13, 327, 31, 1082, 202, 8219, ...
Reader in = null;
Reader in = null; try { URL url = new URL(filename); InputStream is = url.openStream(); in = new BufferedReader(new InputStreamReader(is)); } catch (MalformedURLException mfex) { in = null; } catch (IOException ioex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open.url", filename, ioex.toString())); exitCode = EXITCODE_FILE_NOT_FOUND; return; } if (in == null) {
public static void processFile(Context cx, Scriptable scope, String filename) { Reader in = null; try { in = new PushbackReader(new FileReader(filename)); int c = in.read(); // Support the executable script #! syntax: If // the first line begins with a '#', treat the whole // line as a comment. if (c == '#') { while ((c = in.read()) != -1) { if (c == '\n' || c == '\r') break; } ((PushbackReader) in).unread(c); } else { // No '#' line, just reopen the file and forget it // ever happened. OPT closing and reopening // undoubtedly carries some cost. Is this faster // or slower than leaving the PushbackReader // around? in.close(); in = new FileReader(filename); } filename = new java.io.File(filename).getCanonicalPath(); } catch (FileNotFoundException ex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open", filename)); exitCode = EXITCODE_FILE_NOT_FOUND; return; } catch (IOException ioe) { global.getErr().println(ioe.toString()); } // Here we evalute the entire contents of the file as // a script. Text is printed only if the print() function // is called. evaluateReader(cx, scope, in, filename, 1); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/a14d6d33c5dc5658d619b3699811402cdf007ca0/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1207, 812, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 514, 1544, 13, 565, 288, 5411, 5393, 316, 273, 446, 31, 225, 775, 288, 1976, 880, 273, 394, 1976, 12, 3459, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 812, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 514, 1544, 13, 565, 288, 5411, 5393, 316, 273, 446, 31, 225, 775, 288, 1976, 880, 273, 394, 1976, 12, 3459, ...
} else {
} else {
public Set findPDIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size()==0) { return new HashSet(); } HibernateTemplate ht = new HibernateTemplate(sessions); return (Set) ht.execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { newCache(); //QUERY Query q = session.getNamedQuery("findPDI"); q.setParameterList("img_list", arg0, new IntegerType()); List result = q.list(); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0) { return new HashSet(); } // LOGIC // This is all possible because of the use of the cache! Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); ImageData id = go(img,false); // Start using *Data to prevent lazy loading Set datasets = img.getDatasets(); if (datasets == null || datasets.size() < 1){ hierarchies.add(id); } else { Iterator d = datasets.iterator(); while (d.hasNext()) { Dataset ds = (Dataset) d.next(); DatasetData dd = go(ds,false); // Add images (since not resolved because go(*,false); if (null == dd.images) dd.images = new HashSet(); dd.images.add(id); Set projects = ds.getProjects(); if (projects == null || projects.size() < 1) { hierarchies.add(dd); } else { Iterator p = projects.iterator(); while (p.hasNext()){ Project prj = (Project) p.next(); ProjectData pd = go(prj,false); // Add datsets (since not resolved because go(*,false) if (null == pd.datasets) pd.datasets = new HashSet(); pd.datasets.add(dd); hierarchies.add(pd); } } } } } emptyCache(); return hierarchies; } }); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/8442e37c365d8ade04f3bf94b6b000049c740d2a/HierarchyBrowsingImpl.java/buggy/components/wars/srv/src/java/org/ome/omero/logic/HierarchyBrowsingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1000, 1104, 52, 2565, 44, 5148, 606, 12, 6385, 1000, 1501, 20, 13, 288, 377, 202, 759, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1000, 1104, 52, 2565, 44, 5148, 606, 12, 6385, 1000, 1501, 20, 13, 288, 377, 202, 759, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, ...
_configuration = configuration; _options = options; _actions = new ArrayList(); _printStackTrace = Boolean.valueOf(_options.getProperty( ProcessorOptions.PRINT_STACK_TRACE_PROPERTY)).booleanValue(); _env = (ProcessorEnvironment)_configuration.getEnvironment();
this(configuration,options);
public Processor(Configuration configuration, Properties options, Model model) { _configuration = configuration; _options = options; _actions = new ArrayList(); // find the value of the "print stack traces" property _printStackTrace = Boolean.valueOf(_options.getProperty( ProcessorOptions.PRINT_STACK_TRACE_PROPERTY)).booleanValue(); _env = (ProcessorEnvironment)_configuration.getEnvironment(); _model = model; }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/33dbabfd284e4ed3ba370125cc83675d80f8b655/Processor.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/processor/Processor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 12, 1750, 1664, 16, 6183, 702, 16, 3164, 938, 13, 288, 3639, 389, 7025, 273, 1664, 31, 3639, 389, 2116, 273, 702, 31, 3639, 389, 4905, 273, 394, 2407, 5621, 3639, 368, 1104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15476, 12, 1750, 1664, 16, 6183, 702, 16, 3164, 938, 13, 288, 3639, 389, 7025, 273, 1664, 31, 3639, 389, 2116, 273, 702, 31, 3639, 389, 4905, 273, 394, 2407, 5621, 3639, 368, 1104...
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol() + " at " + getName());
throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol());
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + name.asSymbol() + " at " + getName()); } throw getRuntime().newNameError("uninitialized constant " + name.asSymbol()); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/8bc77fd935108392c0bf8a671462f28f423e48c1/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...