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 |
|---|---|---|---|---|---|---|
if (diff > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (diff < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } return (int)diff; } | if (diff > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (diff < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } return (int)diff; } | public int compare(Object o1, Object o2) { if (!(o1 instanceof String) || !(o2 instanceof String)) { throw new ClassCastException(); } long diff = (numberValue((String)o1) - numberValue((String)o2)); if (diff > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (diff < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } return (int)diff; } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/0da497aad0d3b9e59e2d73dcb5418a314284e9ee/Game.java/clean/Colossus/net/sf/colossus/server/Game.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
10792,
288,
13491,
309,
16051,
12,
83,
21,
1276,
514,
13,
747,
401,
12,
83,
22,
1276,
514,
3719,
13491,
288,
18701,
604,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
10792,
288,
13491,
309,
16051,
12,
83,
21,
1276,
514,
13,
747,
401,
12,
83,
22,
1276,
514,
3719,
13491,
288,
18701,
604,
394... |
public JEnumConstant[] getConstants() { int size = _constants.size(); JEnumConstant[] farray = new JEnumConstant[size]; for (int i = 0; i < size; i++) { farray[i] = (JEnumConstant)_constants.get(i); } return farray; } | public JEnumConstant[] getConstants() { int size = _constants.size(); JEnumConstant[] farray = new JEnumConstant[size]; for (int i = 0; i < size; i++) { farray[i] = (JEnumConstant) _constants.get(i); } return farray; } | public JEnumConstant[] getConstants() { int size = _constants.size(); JEnumConstant[] farray = new JEnumConstant[size]; for (int i = 0; i < size; i++) { farray[i] = (JEnumConstant)_constants.get(i); } return farray; } //-- getConstants | 57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JEnum.java/buggy/src/main/java/org/exolab/javasource/JEnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
804,
3572,
6902,
8526,
336,
2918,
1435,
202,
95,
202,
202,
474,
963,
273,
389,
13358,
18,
1467,
5621,
202,
202,
46,
3572,
6902,
8526,
284,
1126,
273,
394,
804,
3572,
6902,
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,
225,
202,
482,
804,
3572,
6902,
8526,
336,
2918,
1435,
202,
95,
202,
202,
474,
963,
273,
389,
13358,
18,
1467,
5621,
202,
202,
46,
3572,
6902,
8526,
284,
1126,
273,
394,
804,
3572,
6902,
63,... |
fixedModelRegistry.addActivityActivityBinding("org.eclipse.activity9", | fixedModelRegistry.addActivityRequirementBinding("org.eclipse.activity9", | public void testActivityListener() { final IActivity activity_to_listen = activityManager .getActivity((String) activityManager.getDefinedActivityIds() .toArray()[0]); activity_to_listen.addActivityListener(new IActivityListener() { public void activityChanged(ActivityEvent activityEvent) { switch (listenerType) { case DEFINED_CHANGED : assertTrue(activityEvent.hasDefinedChanged()); break; case ENABLED_CHANGED : assertTrue(activityEvent.hasEnabledChanged()); break; case NAME_CHANGED : assertTrue(activityEvent.hasNameChanged()); break; case PATTERN_BINDINGS_CHANGED : assertTrue(activityEvent .haveActivityPatternBindingsChanged()); break; case ACTIVITY_ACTIVITY_BINDINGS_CHANGED : assertTrue(activityEvent .haveActivityActivityBindingsChanged()); break; case DESCRIPTION_CHANGED : assertTrue(activityEvent.hasDescriptionChanged()); break; } listenerType = -1; } }); // Remove activity and change name consequently try { fixedModelRegistry.removeActivity(activity_to_listen.getId(), activity_to_listen.getName()); } catch (NotDefinedException e) { e.printStackTrace(System.err); } assertTrue(listenerType == -1); // Add activity listenerType = 5; fixedModelRegistry.addActivity(activity_to_listen.getId(), "Activity 18"); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue(listenerType == -1); // Add to enabled activity listenerType = 6; Set enabledSet = new HashSet(activityManager.getEnabledActivityIds()); enabledSet.add(activity_to_listen.getId()); activityManager.setEnabledActivityIds(enabledSet); assertTrue(listenerType == -1); // Remove from enabled activity listenerType = 6; enabledSet.remove(activity_to_listen.getId()); activityManager.setEnabledActivityIds(enabledSet); assertTrue(listenerType == -1); // Add pattern binding listenerType = 8; fixedModelRegistry.addActivityPatternBinding("org.eclipse.activity18", //$NON-NLS-1$ "org.eclipse.pattern3"); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue(listenerType == -1); // Remove pattern binding listenerType = 8; fixedModelRegistry.removeActivityPatternBinding("org.eclipse.pattern3");//$NON-NLS-1$ assertTrue(listenerType == -1); // Add activity activity binding as parent listenerType = 9; fixedModelRegistry.addActivityActivityBinding("org.eclipse.activity9", //$NON-NLS-1$ activity_to_listen.getId());//$NON-NLS-1$ assertTrue(listenerType == -1); // Remove activity activity binding as parent listenerType = 9; fixedModelRegistry.removeActivityActivityBinding( "org.eclipse.activity9", activity_to_listen.getId());//$NON-NLS-1$ assertTrue(listenerType == -1); // Update activity name listenerType = 7; fixedModelRegistry.updateActivityName(activity_to_listen.getId(), "name_change"); //$NON-NLS-1$ assertTrue(listenerType == -1); // Update activity description listenerType = 10; fixedModelRegistry.updateActivityDescription( activity_to_listen.getId(), "description_change"); //$NON-NLS-1$ assertTrue(listenerType == -1); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/61842f9a715897e11fb6af364c40e35b86918e60/DynamicTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/activities/DynamicTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6193,
2223,
1435,
288,
202,
202,
6385,
467,
6193,
5728,
67,
869,
67,
18085,
273,
5728,
1318,
9506,
202,
18,
588,
6193,
12443,
780,
13,
5728,
1318,
18,
588,
8116,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6193,
2223,
1435,
288,
202,
202,
6385,
467,
6193,
5728,
67,
869,
67,
18085,
273,
5728,
1318,
9506,
202,
18,
588,
6193,
12443,
780,
13,
5728,
1318,
18,
588,
8116,
61... |
List ret = new ArrayList(); if (getSuperclass() != null) ret.addAll(getSuperclass().getExposedPointcuts()); for (Iterator i = Arrays.asList(getDeclaredInterfaces()).iterator(); i.hasNext();) { ResolvedType t = (ResolvedType) i.next(); addPointcutsResolvingConflicts(ret, Arrays.asList(t.getDeclaredPointcuts()), false); } addPointcutsResolvingConflicts(ret, Arrays.asList(getDeclaredPointcuts()), true); for (Iterator i = ret.iterator(); i.hasNext();) { ResolvedPointcutDefinition inherited = (ResolvedPointcutDefinition) i.next(); | List ret = new ArrayList(); if (getSuperclass() != null) ret.addAll(getSuperclass().getExposedPointcuts()); for (Iterator i = Arrays.asList(getDeclaredInterfaces()).iterator(); i.hasNext(); ) { ResolvedType t = (ResolvedType)i.next(); addPointcutsResolvingConflicts(ret, Arrays.asList(t.getDeclaredPointcuts()), false); } addPointcutsResolvingConflicts(ret, Arrays.asList(getDeclaredPointcuts()), true); for (Iterator i = ret.iterator(); i.hasNext(); ) { ResolvedPointcutDefinition inherited = (ResolvedPointcutDefinition)i.next(); | public List getExposedPointcuts() { List ret = new ArrayList(); if (getSuperclass() != null) ret.addAll(getSuperclass().getExposedPointcuts()); for (Iterator i = Arrays.asList(getDeclaredInterfaces()).iterator(); i.hasNext();) { ResolvedType t = (ResolvedType) i.next(); addPointcutsResolvingConflicts(ret, Arrays.asList(t.getDeclaredPointcuts()), false); } addPointcutsResolvingConflicts(ret, Arrays.asList(getDeclaredPointcuts()), true); for (Iterator i = ret.iterator(); i.hasNext();) { ResolvedPointcutDefinition inherited = (ResolvedPointcutDefinition) i.next();// System.err.println("looking at: " + inherited + " in " + this);// System.err.println(" " + inherited.isAbstract() + " in " + this.isAbstract()); if (inherited.isAbstract()) { if (!this.isAbstract()) { getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.POINCUT_NOT_CONCRETE, inherited, this.getName()), inherited.getSourceLocation(), this.getSourceLocation()); } } } return ret; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/65c2eca9149bcdccfa09cf078b364d750b109933/ResolvedType.java/buggy/weaver/src/org/aspectj/weaver/ResolvedType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
26246,
7423,
2148,
5150,
87,
1435,
288,
3639,
987,
325,
273,
394,
2407,
5621,
3639,
309,
261,
588,
28471,
1435,
480,
446,
13,
325,
18,
1289,
1595,
12,
588,
28471,
7675,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
26246,
7423,
2148,
5150,
87,
1435,
288,
3639,
987,
325,
273,
394,
2407,
5621,
3639,
309,
261,
588,
28471,
1435,
480,
446,
13,
325,
18,
1289,
1595,
12,
588,
28471,
7675,
588,
... |
if (repositoryEncoding != null && !repositoryEncoding.equals(defaultEncoding)) { | if (repositoryEncoding != null) { | public void createControl(Composite parent) { container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); new Label(container, SWT.NONE).setText(LABEL_LABEL); repositoryLabelCombo = new Combo(container, SWT.DROP_DOWN); GridDataFactory.swtDefaults().grab(true, false).applyTo(repositoryLabelCombo); serverUrlEditor = new StringFieldEditor("", LABEL_SERVER, StringFieldEditor.UNLIMITED, container) { @Override protected boolean doCheckState() { return isValidUrl(getStringValue()); } @Override protected void valueChanged() { super.valueChanged(); if (getWizard() != null) { getWizard().getContainer().updateButtons(); } } }; serverUrlEditor.setErrorMessage("Server path must be a valid http(s):// url"); if (needsAnonymousLogin()) { anonymousButton = new Button(container, SWT.CHECK); GridDataFactory.fillDefaults().span(2, SWT.DEFAULT).applyTo(anonymousButton); anonymousButton.setText("Anonymous Access"); anonymousButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { setAnonymous(anonymousButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { // ignore } }); // Label anonymousLabel = new Label(container, SWT.NONE); // anonymousLabel.setText(""); } userNameEditor = new StringFieldEditor("", LABEL_USER, StringFieldEditor.UNLIMITED, container); passwordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, container); if (repository != null) { originalUrl = repository.getUrl(); oldUsername = repository.getUserName(); oldPassword = repository.getPassword(); try { String repositoryLabel = repository.getProperty(IRepositoryConstants.PROPERTY_LABEL); if (repositoryLabel != null && repositoryLabel.length() > 0) { repositoryLabelCombo.add(repositoryLabel); repositoryLabelCombo.select(0); repositoryLabelCombo.setText(repositoryLabel); } serverUrlEditor.setStringValue(repository.getUrl()); userNameEditor.setStringValue(repository.getUserName()); passwordEditor.setStringValue(repository.getPassword()); } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } else { oldUsername = ""; oldPassword = ""; } // bug 131656: must set echo char after setting value on Mac ((RepositoryStringFieldEditor) passwordEditor).getTextControl().setEchoChar('*'); if (needsAnonymousLogin()) { // do this after username and password widgets have been intialized if (repository != null) { setAnonymous(isAnonymousAccess()); } } // TODO: put this back if we can't get the info from all connectors // if (needsTimeZone()) { // Label timeZoneLabel = new Label(container, SWT.NONE); // timeZoneLabel.setText("Repository time zone: "); // timeZonesCombo = new Combo(container, SWT.READ_ONLY); // String[] timeZoneIds = TimeZone.getAvailableIDs(); // Arrays.sort(timeZoneIds); // for (String zone : timeZoneIds) { // timeZonesCombo.add(zone); // } // boolean setZone = false; // if (repository != null) { // if (timeZonesCombo.indexOf(repository.getTimeZoneId()) > -1) { // timeZonesCombo.select(timeZonesCombo.indexOf(repository.getTimeZoneId())); // setZone = true; // } // } // if (!setZone) { // timeZonesCombo.select(timeZonesCombo.indexOf(TimeZone.getDefault().getID())); // } // } createAdditionalControls(container); if (needsEncoding()) { Label encodingLabel = new Label(container, SWT.HORIZONTAL); encodingLabel.setText("Character Encoding:"); GridDataFactory.fillDefaults().align(SWT.TOP, SWT.DEFAULT).applyTo(encodingLabel); Composite encodingContainer = new Composite(container, SWT.NONE); GridLayout gridLayout = new GridLayout(2, false); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; encodingContainer.setLayout(gridLayout); defaultEncoding = new Button(encodingContainer, SWT.RADIO); defaultEncoding.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1)); defaultEncoding.setText("Default (" + TaskRepository.DEFAULT_CHARACTER_ENCODING + ")"); defaultEncoding.setSelection(true); final Button otherEncoding = new Button(encodingContainer, SWT.RADIO); otherEncoding.setText("Other:"); otherEncodingCombo = new Combo(encodingContainer, SWT.READ_ONLY); for (String encoding : Charset.availableCharsets().keySet()) { if (!encoding.equals(TaskRepository.DEFAULT_CHARACTER_ENCODING)) { otherEncodingCombo.add(encoding); } } setDefaultEncoding(); otherEncoding.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (otherEncoding.getSelection()) { defaultEncoding.setSelection(false); otherEncodingCombo.setEnabled(true); } else { defaultEncoding.setSelection(true); otherEncodingCombo.setEnabled(false); } } }); if (repository != null) { try { String repositoryEncoding = repository.getCharacterEncoding(); if (repositoryEncoding != null && !repositoryEncoding.equals(defaultEncoding)) { if (otherEncodingCombo.getItemCount() > 0 && otherEncodingCombo.indexOf(repositoryEncoding) > -1) { otherEncodingCombo.setEnabled(true); otherEncoding.setSelection(true); defaultEncoding.setSelection(false); otherEncodingCombo.select(otherEncodingCombo.indexOf(repositoryEncoding)); } else { setDefaultEncoding(); } } } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } } validateServerButton = new Button(container, SWT.PUSH); GridDataFactory.swtDefaults().span(2, SWT.DEFAULT).grab(false, false).applyTo(validateServerButton); validateServerButton.setText("Validate Settings"); validateServerButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { validateSettings(); } }); setControl(container); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/afa05f249413013dc9b30198c37baa237b768116/AbstractRepositorySettingsPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AbstractRepositorySettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
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,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,... |
weapon.internalName = "CLPRMLRM8"; weapon.mtfName = "CLPRMLRM8"; weapon.mepName = "CLPRMLRM8"; weapon.tdbName = "CLPRMLRM8"; | weapon.internalName = "CLLRM8"; weapon.mtfName = "CLLRM8"; weapon.mepName = "CLLRM8"; weapon.tdbName = "CLLRM8"; | public static WeaponType createCLPROLRM8() { WeaponType weapon = new WeaponType(); weapon.name = "LRM 8"; weapon.internalName = "CLPRMLRM8"; weapon.mtfName = "CLPRMLRM8"; weapon.mepName = "CLPRMLRM8"; weapon.tdbName = "CLPRMLRM8"; weapon.heat = 0; weapon.damage=DAMAGE_MISSILE; weapon.rackSize=8; weapon.ammoType = AmmoType.T_LRM; weapon.minimumRange = 0; weapon.shortRange = 7; weapon.mediumRange=14; weapon.longRange =21; weapon.tonnage = 1.6f; weapon.criticals=0; weapon.bv = 93; weapon.flags |= F_PROTOMECH; weapon.setModes(new String[] {"", "Indirect"}); return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/b1d0ea6e6c07ca159a081e27be6997b0b2d63d48/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5017,
3373,
48,
8717,
28,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
48,
8717,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
5017,
3373,
48,
8717,
28,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
48,
8717,... |
String uri = this.urlPathHelper.getRequestUri(request); | String uri = this.urlPathHelper.getLookupPathForRequest(request); | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the name of the controller. // This maps to a slash + the name of the controller. String uri = this.urlPathHelper.getRequestUri(request); if (uri.indexOf("?") > -1) { uri = uri.substring(0, uri.indexOf("?")); } // Step 2: lookup the controller in the application. GrailsControllerClass controllerClass = this.application.getControllerByURI(uri); if (controllerClass == null) { throw new UnknownControllerException("No controller found for URI [" + uri + "]!"); } String controllerName = WordUtils.uncapitalize(controllerClass.getName()); // Step 3: load controller from application context. GroovyObject controller = (GroovyObject)this.applicationContext.getBean(controllerClass.getFullName()); // Step 4: get closure property name for URI. String closurePropertyName = controllerClass.getClosurePropertyName(uri); if (closurePropertyName == null) { throw new NoClosurePropertyForURIException("Could not find closure property for URI [" + uri + "] for controller [" + controllerClass.getFullName() + "]!"); } // Step 5: get the view name for this URI. String viewName = controllerClass.getViewName(uri); boolean viewNameBlank = (viewName == null || viewName.length() == 0); // Step 6: get closure from closure property Closure closure = (Closure)controller.getProperty(closurePropertyName); // Step 7: determine argument count and execute. Object returnValue = null; if (closure.getParameterTypes().length == 1) { // closure may have zero or one parameter, we cannot be sure. returnValue = closure.call(new Object[] { new GrailsHttpServletRequest(request) }); } else if (closure.getParameterTypes().length == 2) { returnValue = closure.call(new Object[] { new GrailsHttpServletRequest(request), response }); } else { throw new IncompatibleParameterCountException("Closure on property [" + closurePropertyName + "] in [" + controllerClass.getFullName() + "] has an incompatible parameter count [" + closure.getParameterTypes().length + "]! Supported values are 0 and 2."); } // Step 8: determine return value type and handle accordingly if (returnValue == null) { if (viewNameBlank) { return null; } else { return new ModelAndView(viewName); } } else if (returnValue instanceof Map) { if (viewNameBlank) { throw new NoViewNameDefinedException("Map instance returned by and no view name specified for closure on property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); } else { return new ModelAndView(viewName, (Map)returnValue); } } else if (returnValue instanceof ModelAndView) { ModelAndView modelAndView = (ModelAndView)returnValue; if (modelAndView.getView() == null && modelAndView.getViewName() == null) { if (viewNameBlank) { throw new NoViewNameDefinedException("ModelAndView instance returned by and no view name defined by nor for closure on property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); } else { modelAndView.setViewName(viewName); } } return modelAndView; } throw new UnsupportedReturnValueException("Return value [" + returnValue + "] is not supported for closure property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); } | 53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/5b22dfae1232294b8a15a5e1cb7e73de080b98af/SimpleGrailsController.java/buggy/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3164,
1876,
1767,
15713,
12,
2940,
18572,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
9506,
202,
759,
8693,
404,
30,
4199,
326,
508,
434,
326,
2596,
18,
202,
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,
225,
202,
482,
3164,
1876,
1767,
15713,
12,
2940,
18572,
590,
16,
1082,
202,
2940,
29910,
766,
13,
1216,
1185,
288,
9506,
202,
759,
8693,
404,
30,
4199,
326,
508,
434,
326,
2596,
18,
202,
20... |
throws SQLException { if (parameters != null) { for (int i = 0; i < parameters.size(); i++) { ps.setObject(i + 1, parameters.get(i)); } } } | throws SQLException { if (parameters != null) { for (int i = 0; i < parameters.size(); i++) { ps.setObject(i + 1, parameters.get(i)); } } } | private void setParameters(PreparedStatement ps, List parameters) throws SQLException { if (parameters != null) { for (int i = 0; i < parameters.size(); i++) { // The first parameter has index 1 ps.setObject(i + 1, parameters.get(i)); } } } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/ed885dee7d315dcab3e18c17a0ba9823bcce7968/QueryTag.java/clean/src/java/org/apache/commons/jelly/tags/sql/QueryTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
22556,
12,
29325,
4250,
16,
987,
1472,
13,
202,
202,
15069,
6483,
288,
202,
202,
430,
261,
3977,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22556,
12,
29325,
4250,
16,
987,
1472,
13,
202,
202,
15069,
6483,
288,
202,
202,
430,
261,
3977,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
... |
} | } else if (name.equals(JARS_EXTRA)) jarsExtra = entries[i]; | private void validateBuild(IBuild build) { IBuildEntry binIncludes = null; IBuildEntry srcIncludes = null; ArrayList sourceEntries = new ArrayList(); ArrayList sourceEntryKeys = new ArrayList(); IBuildEntry[] entries = build.getBuildEntries(); for (int i = 0; i < entries.length; i++) { String name = entries[i].getName(); if (entries[i].getTokens().length == 0) { prepareError(name, null, PDECoreMessages.BuildErrorReporter_emptyEntry, PDEMarkerFactory.B_REMOVAL); } else if (name.equals(BIN_INCLUDES)) binIncludes = entries[i]; else if (name.equals(SRC_INCLUDES)) srcIncludes = entries[i]; else if (name.startsWith(SOURCE)) { sourceEntries.add(entries[i]); sourceEntryKeys.add(entries[i].getName()); } else if (name.equals(CUSTOM)) { String[] tokens = entries[i].getTokens(); if (tokens.length == 1 && tokens[0].equalsIgnoreCase("true")) //$NON-NLS-1$ // nothing to validate in custom builds return; } } validateIncludes(binIncludes, sourceEntryKeys); validateIncludes(srcIncludes, sourceEntryKeys); try { if (fProject.hasNature(JavaCore.NATURE_ID)) { IJavaProject jp = JavaCore.create(fProject); IClasspathEntry[] cpes = jp.getRawClasspath(); validateMissingLibraries(sourceEntryKeys, cpes); validateSourceEntries(sourceEntries, cpes); } } catch (JavaModelException e) { } catch (CoreException e) { } validateSourceEntries(sourceEntries); validateMissingSourceInBinIncludes(binIncludes, sourceEntryKeys); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/941f6bdbf60c1bd8b7a8bfab26c2760c3aad2cc9/BuildErrorReporter.java/clean/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
3116,
12,
45,
3116,
1361,
13,
288,
9506,
202,
45,
3116,
1622,
4158,
16815,
273,
446,
31,
202,
202,
45,
3116,
1622,
1705,
16815,
273,
446,
31,
202,
202,
19558,
1084... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
3116,
12,
45,
3116,
1361,
13,
288,
9506,
202,
45,
3116,
1622,
4158,
16815,
273,
446,
31,
202,
202,
45,
3116,
1622,
1705,
16815,
273,
446,
31,
202,
202,
19558,
1084... |
String reportDesignName ) throws EngineException | IViewerReportDesignHandle design ) throws EngineException | private IGetParameterDefinitionTask getParameterDefinitionTask( String reportDesignName ) throws EngineException { IReportRunnable runnable = ReportEngineService.getInstance( ) .openReportDesign( reportDesignName ); IGetParameterDefinitionTask paramTask = ReportEngineService .getInstance( ).createGetParameterDefinitionTask( runnable ); return paramTask; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/593a2a26389f37c225fb92d1cef17318272cc832/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
967,
1662,
1852,
2174,
5575,
1852,
2174,
12,
1082,
202,
780,
2605,
15478,
461,
262,
1216,
10507,
503,
202,
95,
202,
202,
45,
4820,
20013,
14685,
273,
8706,
4410,
1179,
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,
1152,
467,
967,
1662,
1852,
2174,
5575,
1852,
2174,
12,
1082,
202,
780,
2605,
15478,
461,
262,
1216,
10507,
503,
202,
95,
202,
202,
45,
4820,
20013,
14685,
273,
8706,
4410,
1179,
18,... |
public RubyObject send(RubyString method, RubyObject[] args) { | public RubyObject send(RubyObject method, RubyObject[] args) { | public RubyObject send(RubyString method, RubyObject[] args) { try { getRuby().getIter().push(getRuby().isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); return getRubyClass().call(this, method.getValue(), new RubyPointer(args), 1); } finally { getRuby().getIter().pop(); } } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyObject.java/buggy/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1366,
12,
54,
10340,
921,
707,
16,
19817,
921,
8526,
833,
13,
288,
3639,
775,
288,
5411,
4170,
10340,
7675,
588,
2360,
7675,
6206,
12,
588,
54,
10340,
7675,
291,
1768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1366,
12,
54,
10340,
921,
707,
16,
19817,
921,
8526,
833,
13,
288,
3639,
775,
288,
5411,
4170,
10340,
7675,
588,
2360,
7675,
6206,
12,
588,
54,
10340,
7675,
291,
1768,
... |
public void work(Collection files) throws CoreException { int count = 0; if (files != null) { if (this.monitor != null) { this.monitor.beginTask("FindBugs", files.size()); } String findBugsHome = FindbugsPlugin.getFindBugsEnginePluginLocation(); if (DEBUG) { System.out.println("Looking for detecors in: " + findBugsHome); } System.setProperty("findbugs.home", findBugsHome); BugReporter bugReporter = new Reporter(this.project, this.monitor); bugReporter.setPriorityThreshold(Detector.LOW_PRIORITY); edu.umd.cs.findbugs.Project findBugsProject = new edu.umd.cs.findbugs.Project(); FindBugs findBugs = new FindBugs(bugReporter, findBugsProject); Iterator iter = files.iterator(); while (iter.hasNext()) { // get the resource IResource res = (IResource) iter.next(); if (isJavaArtifact(res)) { res.deleteMarkers( FindBugsMarker.NAME, true, IResource.DEPTH_INFINITE); } if (isClassFile(res)) { // add this file to the work list: String fileName = res.getLocation().toOSString(); res.refreshLocal(IResource.DEPTH_INFINITE, null); System.out.println("Resource: " + fileName + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE)); findBugsProject.addJar(fileName); } } try { findBugs.execute(); } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } // Iterator iter = files.iterator(); // while (iter.hasNext()) { // // get the resource // IResource res = (IResource) iter.next(); // // // advance progress monitor // if (monitor != null && count % MONITOR_INTERVAL == 0) { // monitor.worked(MONITOR_INTERVAL); // monitor.subTask("Performing bug check on: " + res.getName()); // if (monitor.isCanceled()) // break; // } // // // visit resource // res.accept(new FindBugsVisitor()); // count++; // } } else { if (DEBUG) { System.out.println("No files to build"); } } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/301b3e8271a299c63d7176e8d896e064880bcf01/FindBugsWorker.java/clean/findbugs/src/eclipsePlugin/de.tobject.findbugs/src/de/tobject/findbugs/builder/FindBugsWorker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1440,
12,
2532,
1390,
13,
1216,
30015,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
430,
261,
2354,
480,
446,
13,
288,
1082,
202,
430,
261,
2211,
18,
10259,
480,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
12,
2532,
1390,
13,
1216,
30015,
288,
202,
202,
474,
1056,
273,
374,
31,
202,
202,
430,
261,
2354,
480,
446,
13,
288,
1082,
202,
430,
261,
2211,
18,
10259,
480,
4... | ||
if (exceptionList.size() != 0) { throw exceptionList; } | protected void oneWayCallOnGroup(MethodCall mc) { Body body = ProActive.getBodyOnThis(); ExceptionList exceptionList = new ExceptionList(); if (Profiling.GROUP) { timer.setTimer("oneWayCallOnGroup."+mc.getName()); timer.start(); } // Creating Threads if (isDispatchingCall(mc) == false) { if (uniqueSerialization) { mc.transformEffectiveArgumentsIntoByteArray(); } for (int index = 0; index < this.memberList.size(); index++) { this.threadpool.addAJob(new ProcessForOneWayCall(this, this.memberList, index, mc, body, exceptionList)); } } else { // isDispatchingCall == true for (int index = 0; index < memberList.size(); index++) { Object[] individualEffectiveArguments = new Object[mc.getNumberOfParameter()]; for (int i = 0; i < mc.getNumberOfParameter(); i++) if (ProActiveGroup.isScatterGroupOn(mc.getParameter(i))) { individualEffectiveArguments[i] = ProActiveGroup.get(mc.getParameter( i), index % ProActiveGroup.size(mc.getParameter(i))); } else { individualEffectiveArguments[i] = mc.getParameter(i); } this.threadpool.addAJob(new ProcessForOneWayCall(this, this.memberList, index, new MethodCall(mc.getReifiedMethod(), individualEffectiveArguments), body, exceptionList)); } } LocalBodyStore.getInstance().setCurrentThreadBody(body); if (exceptionList.size() != 0) { throw exceptionList; } if (Profiling.GROUP) { timer.stop(); } } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/26749694aee9c953c28da69e84a4fe572d4b771a/ProxyForGroup.java/clean/src/org/objectweb/proactive/core/group/ProxyForGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1245,
21831,
1477,
1398,
1114,
12,
12592,
6108,
13,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
1185,
682,
1520,
682,
273,
394,
1185,
682,
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,
377,
4750,
918,
1245,
21831,
1477,
1398,
1114,
12,
12592,
6108,
13,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
1185,
682,
1520,
682,
273,
394,
1185,
682,
56... | |
SuiteViewer.main(new String[0]); | new SuiteViewer().render(false); | public void testRead() throws Exception { long t = System.currentTimeMillis(); SuiteViewer.main(new String[0]); t = System.currentTimeMillis() - t; System.err.println("Read PngSuite in " + t + " ms"); } | 50458 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50458/f194a19b5cb3551b80da2546f5eccb8e43538419/TestPngSuite.java/buggy/javapng2/src/test/com/sixlegs/png/TestPngSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1994,
1435,
565,
1216,
1185,
565,
288,
3639,
1525,
268,
273,
2332,
18,
2972,
28512,
5621,
3639,
394,
348,
9519,
18415,
7675,
5902,
12,
5743,
1769,
3639,
268,
273,
2332,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1994,
1435,
565,
1216,
1185,
565,
288,
3639,
1525,
268,
273,
2332,
18,
2972,
28512,
5621,
3639,
394,
348,
9519,
18415,
7675,
5902,
12,
5743,
1769,
3639,
268,
273,
2332,
1... |
public CmsGroup readGroup(CmsUUID groupId) throws CmsException { | public CmsGroup readGroup(CmsProject project) { | public CmsGroup readGroup(CmsUUID groupId) throws CmsException { return m_securityManager.readGroup(m_context, groupId); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsObject.java/buggy/src/org/opencms/file/CmsObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
855,
1114,
12,
4747,
4109,
1984,
13,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
6612,
1769,
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,
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,
377,
1071,
2149,
1114,
855,
1114,
12,
4747,
4109,
1984,
13,
288,
3639,
327,
312,
67,
7462,
1318,
18,
896,
1114,
12,
81,
67,
2472,
16,
6612,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
public static BugzillaReportSubmitForm makeExistingBugPost(RepositoryTaskData bug, String repositoryUrl, String userName, String password, Proxy proxySettings, Set<String> removeCC, String characterEncoding) throws UnsupportedEncodingException { BugzillaReportSubmitForm bugReportPostHandler; if (characterEncoding != null) { bugReportPostHandler = new BugzillaReportSubmitForm(characterEncoding); } else { bugReportPostHandler = new BugzillaReportSubmitForm(BugzillaPlugin.ENCODING_UTF_8); } //setDefaultCCValue(bug, userName); setConnectionsSettings(bugReportPostHandler, repositoryUrl, userName, password, proxySettings, PROCESS_BUG_CGI); // go through all of the attributes and add them to the bug post for (Iterator<RepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) { RepositoryTaskAttribute a = it.next(); if (a.getID().equals(BugzillaReportElement.CC.getKeyString()) || a.getID().equals(BugzillaReportElement.REPORTER.getKeyString()) || a.getID().equals(BugzillaReportElement.ASSIGNED_TO.getKeyString()) || a.getID().equals(BugzillaReportElement.CREATION_TS.getKeyString())) { continue; } if (a != null && a.getID() != null && a.getID().compareTo("") != 0 && !a.isHidden()) { String value = a.getValue(); // System.err.println(a.getID()+" "+a.getValue()); // add the attribute to the bug post bugReportPostHandler.add(a.getID(), value != null ? value : ""); } else if (a != null && a.getID() != null && a.getID().compareTo("") != 0 && a.isHidden()) { // we have a hidden attribute and we should send it back. // System.err.println(a.getID()+" "+a.getValue()); bugReportPostHandler.add(a.getID(), a.getValue()); } } // when posting the bug id is encoded in a hidden field named 'id' bugReportPostHandler.add(KEY_ID, bug.getAttributeValue(BugzillaReportElement.BUG_ID.getKeyString())); // add the operation to the bug post RepositoryOperation o = bug.getSelectedOperation(); if (o == null) bugReportPostHandler.add(KEY_KNOB, VAL_NONE); else { bugReportPostHandler.add(KEY_KNOB, o.getKnobName()); if (o.hasOptions()) { String sel = o.getOptionValue(o.getOptionSelection()); bugReportPostHandler.add(o.getOptionName(), sel); } else if (o.isInput()) { String sel = o.getInputValue(); bugReportPostHandler.add(o.getInputName(), sel); } } bugReportPostHandler.add(KEY_FORM_NAME, VAL_PROCESS_BUG); if (bug.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()) != null) { bugReportPostHandler.add(KEY_SHORT_DESC, bug.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()).getValue()); } if (bug.getNewComment().length() != 0) { bugReportPostHandler.add(KEY_COMMENT, bug.getNewComment()); } if (removeCC != null && removeCC.size() > 0) { String[] s = new String[removeCC.size()]; bugReportPostHandler.add(KEY_CC, toCommaSeparatedList(removeCC.toArray(s))); bugReportPostHandler.add(KEY_REMOVECC, VAL_TRUE); } bugReportPostHandler.attachment = bug.getNewAttachment(); return bugReportPostHandler; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/cf140edc887c0034b1e50e4c6dd814d23a56730b/BugzillaReportSubmitForm.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
15990,
4820,
11620,
1204,
1221,
9895,
19865,
3349,
12,
3305,
2174,
751,
7934,
16,
514,
3352,
1489,
16,
1082,
202,
780,
12065,
16,
514,
2201,
16,
7659,
2889,
2628,
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,
225,
202,
482,
760,
16907,
15990,
4820,
11620,
1204,
1221,
9895,
19865,
3349,
12,
3305,
2174,
751,
7934,
16,
514,
3352,
1489,
16,
1082,
202,
780,
12065,
16,
514,
2201,
16,
7659,
2889,
2628,
16... | ||
buffer.append(" buffer.append("if (DWREngine == null) { var DWREngine = {}; }\n"); buffer.append("DWREngine._defaultPath = '" + actualPath + "';\n"); buffer.append('\n'); | String init = RemoteDwrEngine.getEngineInitScript(actualPath); buffer.append(init); | public String generateInterfaceScript(String scriptName, String path) throws SecurityException { String actualPath = path; if (overridePath != null) { actualPath = overridePath; } StringBuffer buffer = new StringBuffer(); // Output the class definitions for the converted objects Collection converterMatches = converterManager.getConverterMatchStrings(); Iterator it = converterMatches.iterator(); while (it.hasNext()) { String match = (String) it.next(); try { StringBuffer paramBuffer = new StringBuffer(); Converter conv = converterManager.getConverterByMatchString(match); // We will only generate JavaScript classes for compound objects/beans if (conv instanceof NamedConverter) { NamedConverter boConv = (NamedConverter) conv; String jsClassName = boConv.getJavascript(); // We need a configured JavaScript class name if (jsClassName != null && !jsClassName.equals("")) { // Wildcard match strings are currently not supported if (match.indexOf("*") == -1) { paramBuffer.append('\n'); // output: if ( typeof <class> != "function" ) function <class>() { paramBuffer.append("if (typeof " + jsClassName + " != \"function\") function " + jsClassName + "() {\n"); // output: this.<property> = <init-value>; Class mappedType; try { mappedType = LocalUtil.classForName(match); } catch (ClassNotFoundException ex) { throw new IllegalArgumentException(ex.getMessage()); } Map properties = boConv.getPropertyMap(mappedType, true, true); for (Iterator pit = properties.entrySet().iterator(); pit.hasNext();) { Map.Entry entry = (Map.Entry) pit.next(); String name = (String) entry.getKey(); Property property = (Property) entry.getValue(); Class propType = property.getPropertyType(); // Property name paramBuffer.append(" this." + name + " = "); // Default property values if (propType.isArray()) { paramBuffer.append("[]"); } else if (propType == boolean.class) { paramBuffer.append("false"); } else if (propType.isPrimitive()) { paramBuffer.append("0"); } else { paramBuffer.append("null"); } paramBuffer.append(";\n"); } paramBuffer.append("}\n"); } } } buffer.append(paramBuffer.toString()); } catch (Exception ex) { log.warn("Failed to create parameter declaration for " + match, ex); buffer.append("// Missing parameter declaration for " + match + ". See the server logs for details."); } } Creator creator = creatorManager.getCreator(scriptName); buffer.append('\n'); buffer.append("// Provide a default path to DWREngine\n"); buffer.append("if (DWREngine == null) { var DWREngine = {}; }\n"); buffer.append("DWREngine._defaultPath = '" + actualPath + "';\n"); buffer.append('\n'); buffer.append("if (" + scriptName + " == null) var " + scriptName + " = {};\n"); buffer.append(scriptName + "._path = '" + actualPath + "';\n"); Method[] methods = creator.getType().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName(); // We don't need to check accessControl.getReasonToNotExecute() // because the checks are made by the doExec method, but we do check // if we can display it try { accessControl.assertIsDisplayable(creator, scriptName, method); } catch (SecurityException ex) { if (!allowImpossibleTests) { continue; } } // Is it on the list of banned names if (JavascriptUtil.isReservedWord(methodName)) { continue; } // Check to see if the creator is reloadable // If it is, then do not cache the generated Javascript String script; if (!creator.isCacheable()) { script = getMethodJS(scriptName, method); } else { String key = scriptName + "." + method.getName(); // For optimal performance we might synchronize on methodCache however // since performance isn't a big issue we are prepared to cope with // the off chance that getMethodJS() may be run more than once. script = (String) methodCache.get(key); if (script == null) { script = getMethodJS(scriptName, method); methodCache.put(key, script); } } buffer.append(script); } return buffer.toString(); } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/7de576ce477a96152764438d826cfc156cdf2a6a/DefaultRemoter.java/clean/java/org/directwebremoting/impl/DefaultRemoter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2103,
1358,
3651,
12,
780,
31008,
16,
514,
589,
13,
1216,
17780,
565,
288,
3639,
514,
3214,
743,
273,
589,
31,
3639,
309,
261,
10601,
743,
480,
446,
13,
3639,
288,
5411,
3214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1358,
3651,
12,
780,
31008,
16,
514,
589,
13,
1216,
17780,
565,
288,
3639,
514,
3214,
743,
273,
589,
31,
3639,
309,
261,
10601,
743,
480,
446,
13,
3639,
288,
5411,
3214... |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque () { /* While it would be safe to assume true for the opacity of * a null border, this behavior would not be according to * the API specification. Also, it is pathological to have * null borders anyway. */ if ((insideBorder == null) || (outsideBorder == null)) return false; return insideBorder.isBorderOpaque() && outsideBorder.isBorderOpaque(); } | public boolean isBorderOpaque() { return false; } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/d092ccafae9945813bbf1be1db3d5e5bd006a90b/CompoundBorder.java/clean/libjava/javax/swing/border/CompoundBorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
8107,
3817,
14886,
1435,
565,
288,
202,
2463,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
8107,
3817,
14886,
1435,
565,
288,
202,
2463,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
addConditions(result, result); | addConditions(result); | List getConditions() { List result = new ArrayList(); addConditions(result, result); return result; } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/fc72223a95ec6ff153bbcc3cf40395604956d625/QFrame.java/clean/archive/qgen/src/com/redhat/persistence/oql/QFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
336,
8545,
1435,
288,
3639,
987,
563,
273,
394,
2407,
5621,
3639,
527,
8545,
12,
2088,
1769,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
336,
8545,
1435,
288,
3639,
987,
563,
273,
394,
2407,
5621,
3639,
527,
8545,
12,
2088,
1769,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
am.setXopped(isXopped); | am.setXOPPackage(isXopped); | protected SOAPMessage doSend(MessageInfo messageInfo) { //change from LogicalEPTFactory to ContactInfoBase - should be changed back when we have things working EPTFactory contactInfo = messageInfo.getEPTFactory(); SOAPXMLEncoder encoder = (SOAPXMLEncoder) contactInfo.getEncoder(messageInfo); SOAPMessage sm = null; boolean handlerResult = true; boolean isRequestResponse = (messageInfo.getMEP() == MessageStruct.REQUEST_RESPONSE_MEP); try { if (messageInfo.getMetaData(DispatchContext.DISPATCH_MESSAGE_MODE) == Service.Mode.MESSAGE) { sm = (SOAPMessage) messageInfo.getData()[0]; // Ensure supplied message is encoded according to conneg FastInfosetUtil.ensureCorrectEncoding(messageInfo, sm); } SOAPHandlerContext handlerContext = null; InternalMessage im = encoder.toInternalMessage(messageInfo); HandlerChainCaller caller = getHandlerChainCaller(messageInfo); if (caller.hasHandlers()) { im = preHandlerOutboundHook(sm, im); handlerContext = new SOAPHandlerContext(messageInfo, im, sm); updateMessageContext(messageInfo, handlerContext); try { JAXWSAttachmentMarshaller am = MessageInfoUtil.getAttachmentMarshaller(messageInfo); boolean isXopped = false; //there are handlers so disable Xop encoding if enabled, so that they dont // see xop:Include reference if((am != null) && am.isXopped()){ isXopped = am.isXopped(); am.setXopped(false); } handlerResult = callHandlersOnRequest(handlerContext); // now put back the old value if((am != null)){ am.setXopped(isXopped); } } catch (ProtocolException pe) { // message has already been replaced with fault handlerResult = false; } sm = handlerContext.getSOAPMessage(); postHandlerOutboundHook(messageInfo, handlerContext, sm); if (sm == null) { sm = encoder.toSOAPMessage(handlerContext.getInternalMessage(), messageInfo); } // the only case where no message is sent if (isRequestResponse && !handlerResult) { SOAPXMLDecoder decoder = (SOAPXMLDecoder) contactInfo.getDecoder(messageInfo); im = decoder.toInternalMessage(sm, messageInfo); decoder.toMessageInfo(im, messageInfo); return sm; } } // Setting encoder here is necessary for calls to getBindingId() messageInfo.setEncoder(encoder); SystemHandlerDelegate systemHandlerDelegate = ((com.sun.xml.ws.spi.runtime.Binding) getBinding(messageInfo)). getSystemHandlerDelegate(); if (systemHandlerDelegate != null) { if (handlerContext == null) { handlerContext = new SOAPHandlerContext(messageInfo, im, sm); updateMessageContext(messageInfo, handlerContext); } //already used im, we can set that to null if ((sm != null) && (im != null)) handlerContext.setInternalMessage(null); handlerContext.getMessageContext().put( MessageContext.MESSAGE_OUTBOUND_PROPERTY, Boolean.TRUE); handlerContext.getBindingId(); handlerResult = systemHandlerDelegate.processRequest( handlerContext.getSHDSOAPMessageContext()); sm = handlerContext.getSOAPMessage(); } if (sm == null) sm = encoder.toSOAPMessage(im, messageInfo); Map<String, Object> context = processMetadata(messageInfo, sm); // set the MIME headers on connection headers Map<String, List<String>> ch = new HashMap<String, List<String>>(); for (Iterator iter = sm.getMimeHeaders().getAllHeaders(); iter.hasNext();) { List<String> h = new ArrayList<String>(); MimeHeader mh = (MimeHeader) iter.next(); h.clear(); h.add(mh.getValue()); ch.put(mh.getName(), h); } setConnection(messageInfo, context); ((WSConnection) messageInfo.getConnection()).setHeaders(ch); if (!isAsync(messageInfo)) { WSConnection connection = (WSConnection) messageInfo.getConnection(); logRequestMessage(sm, messageInfo); SOAPConnectionUtil.sendResponse(connection, sm); } // if handlerResult is false, the receive has already happened if (isRequestResponse && handlerResult) { receive(messageInfo); } else if (isOneway(messageInfo) && handlerResult) { checkReturnStatus(messageInfo); } } catch (Throwable e) { setResponseType(e, messageInfo); messageInfo.setResponse(e); } return sm; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/57a98a4efcb923d67c63f4db577c68dd4b14234c/SOAPMessageDispatcher.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/protocol/soap/client/SOAPMessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16434,
1079,
741,
3826,
12,
1079,
966,
883,
966,
13,
288,
3639,
368,
3427,
628,
17085,
41,
1856,
1733,
358,
13329,
966,
2171,
300,
1410,
506,
3550,
1473,
1347,
732,
1240,
9198,
5960... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16434,
1079,
741,
3826,
12,
1079,
966,
883,
966,
13,
288,
3639,
368,
3427,
628,
17085,
41,
1856,
1733,
358,
13329,
966,
2171,
300,
1410,
506,
3550,
1473,
1347,
732,
1240,
9198,
5960... |
Logger.error(this, "Unable to set the revocation flag"); | public void onSuccess(FetchResult result, ClientGetter state) { // TODO ensure it works if(!state.getURI().equals(revocationURI)){ System.out.println("Found "+availableVersion); Logger.normal(this, "Found a new version! (" + availableVersion + ", setting up a new UpdatedVersionAviableUserAlert"); alert.set(availableVersion); alert.isValid(true); synchronized(this){ this.cg = state; this.result = result; if(this.isAutoUpdateAllowed) scheduleUpdate(); } }else{ // The key has been blown ! // FIXME: maybe we need a bigger warning message. try{ blow(result.asBucket().getOutputStream().toString()); Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); }catch(IOException e){ // We stop anyway. synchronized(this){ this.hasBeenBlown = true; } Logger.error(this, "Unable to set the revocation flag"); } } } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/cd7564dd94d86425478cc20b8abb29c357946324/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
759,
2660,
3387,
518,
6330,
202,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14963,
12,
9083,
4431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
759,
2660,
3387,
518,
6330,
202,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14963,
12,
9083,
4431,
... | |
473, 0, 0, 0, 472, 0, 0, 0, 0, 0, | 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 0, 0, 0, 472, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, | private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 240, 240, 189, 248, 240, 580, 514, 564, 561, 419, 190, 190, 235, 235, 591, 203, 235, 252, 239, 239, 249, 657, 239, 257, 259, 70, 552, 279, 234, 234, 297, 190, 601, 550, 273, 203, 237, 237, 296, 298, 237, 215, 218, 650, 467, 267, 300, 286, 492, 433, 221, 586, 272, 253, 360, 190, 732, 109, 109, 511, 487, 518, 522, 523, 342, 617, 604, 109, 230, 262, 673, 675, 387, 263, 494, 253, 353, 492, 369, 492, 782, 40, 248, 363, 492, 492, 468, 492, 551, 628, 387, 338, 487, 354, 561, 353, 402, 617, 562, 230, 783, 247, 786, 109, 511, 494, 518, 95, 445, 341, 221, 216, 40, 260, 387, 217, 645, 261, 87, 308, 69, 551, 290, 368, 62, 440, 492, 89, 431, 262, 440, 363, 363, 492, 492, 386, 492, 535, 492, 445, 69, 401, 445, 109, 60, 244, 492, 366, 473, 452, 551, 459, 344, 835, 278, 464, 492, 445, 373, 439, 217, 82, 247, 273, 442, 253, 87, 87, 308, 492, 85, 551, 334, 386, 814, 89, 89, 332, 330, 356, 331, 334, 333, 256, 338, 216, 332, 492, 440, 88, 441, 333, 52, 392, 451, 564, 286, 423, 834, 278, 472, 684, 492, 69, 190, 492, 476, 335, 273, 82, 82, 234, 234, 296, 492, 292, 782, 716, 85, 85, 345, 691, 445, 656, 234, 279, 234, 234, 393, 240, 394, 240, 240, 598, 217, 346, 856, 88, 88, 441, 441, 235, 423, 235, 417, 347, 437, 239, 337, 239, 421, 476, 348, 397, 398, 352, 334, 221, 533, 71, 376, 332, 330, 492, 331, 237, 333, 237, 237, 377, 279, 441, 81, 561, 273, 563, 61, 562, 358, 429, 379, 492, 359, 476, 262, 673, 675, 576, 263, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 560, 549, 525, 528, 273, 532, 234, 380, 453, 539, 524, 527, 536, 234, 651, 492, 492, 538, 472, 473, 474, 475, 388, 267, 61, 363, 337, 492, 436, 513, 438, 737, 738, 234, 531, 406, 531, 89, 340, 411, 307, 308, 234, 69, 802, 780, 40, 40, 454, 455, 267, 234, 367, 524, 589, 538, 513, 262, 492, 234, 87, 263, 721, 627, 385, 531, 234, 617, 267, 89, 400, 234, 234, 617, 513, 234, 561, 614, 741, 620, 562, 83, 594, 267, 624, 559, 560, 543, 109, 513, 471, 582, 634, 564, 217, 476, 363, 637, 492, 590, 632, 592, 430, 82, 234, 389, 841, 234, 307, 308, 234, 839, 85, 825, 190, 216, 234, 280, 203, 513, 622, 600, 600, 450, 492, 476, 343, 833, 278, 83, 83, 88, 372, 267, 653, 654, 635, 273, 309, 513, 761, 597, 79, 79, 110, 110, 767, 309, 79, 210, 210, 210, 459, 492, 225, 210, 210, 396, 492, 210, 492, 390, 280, 382, 217, 63, 210, 855, 71, 399, 792, 423, 492, 492, 74, 579, 423, 394, 664, 61, 476, 626, 629, 459, 859, 61, 79, 210, 210, 617, 277, 234, 89, 403, 64, 665, 406, 422, 210, 279, 640, 459, 671, 609, 423, 424, 674, 676, 696, 698, 453, 481, 407, 481, 64, 664, 410, 617, 492, 492, 492, 423, 309, 84, 555, 492, 86, 556, 557, 558, 277, 482, 426, 482, 356, 688, 428, 322, 323, 551, 309, 362, 362, 190, 210, 432, 79, 362, 273, 701, 454, 455, 456, 472, 82, 434, 473, 444, 234, 472, 683, 837, 473, 190, 559, 560, 682, 203, 294, 295, 435, 84, 84, 448, 86, 86, 234, 64, 307, 308, 234, 216, 356, 356, 234, 492, 462, 705, 709, 579, 692, 443, 334, 329, 446, 447, 234, 332, 330, 449, 331, 614, 333, 466, 472, 469, 744, 473, 470, 660, 661, 361, 362, 740, 537, 492, 687, 492, 492, 759, 752, 454, 540, 725, 764, 766, 229, 758, 760, 67, 217, 364, 763, 765, 492, 579, 472, 583, 83, 473, 288, 289, 555, 768, 234, 556, 557, 558, 394, 67, 596, 608, 454, 472, 234, 454, 746, 77, 618, 476, 630, 636, 210, 210, 492, 631, 755, 472, 756, 757, 454, 76, 381, 472, 638, 639, 662, 758, 663, 763, 765, 492, 559, 560, 210, 234, 210, 210, 80, 652, 279, 242, 234, 666, 243, 109, 79, 234, 234, 667, 668, 79, 811, 679, 476, 680, 280, 773, 685, 82, 686, 689, 67, 728, 793, 492, 693, 695, 472, 822, 810, 828, 830, 734, 831, 794, 160, 821, 697, 799, 800, 801, 64, 699, 234, 279, 476, 85, 809, 700, 109, 79, 210, 210, 210, 210, 79, 210, 210, 600, 472, 84, 81, 778, 160, 81, 160, 273, 160, 702, 706, 821, 418, 234, 492, 423, 717, 718, 88, 845, 712, 713, 81, 234, 714, 160, 715, 234, 720, 824, 84, 210, 724, 86, 771, 210, 210, 727, 210, 79, 277, 356, 210, 472, 872, 232, 473, 733, 65, 234, 836, 735, 273, 736, 813, 739, 481, 815, 210, 774, 79, 210, 234, 743, 234, 745, 267, 868, 65, 762, 775, 779, 513, 79, 795, 803, 210, 363, 805, 806, 796, 79, 234, 79, 234, 81, 797, 807, 816, 492, 818, 210, 234, 492, 492, 863, 234, 481, 472, 817, 827, 473, 864, 473, 210, 334, 329, 78, 819, 473, 332, 330, 820, 331, 829, 333, 832, 67, 79, 492, 94, 94, 842, 309, 492, 847, 94, 94, 94, 94, 843, 65, 849, 94, 94, 852, 853, 94, 322, 323, 854, 210, 85, 476, 94, 871, 873, 877, 453, 83, 83, 111, 111, 875, 473, 83, 84, 472, 493, 848, 850, 226, 328, 493, 94, 94, 94, 483, 481, 413, 492, 415, 418, 88, 483, 483, 94, 485, 254, 473, 485, 481, 487, 79, 492, 278, 473, 86, 454, 455, 458, 487, 327, 83, 865, 866, 494, 278, 476, 299, 870, 74, 453, 115, 74, 453, 423, 75, 391, 280, 472, 77, 472, 188, 77, 690, 476, 878, 492, 492, 826, 74, 94, 874, 94, 880, 754, 339, 882, 279, 278, 77, 884, 351, 210, 79, 381, 278, 862, 274, 81, 784, 454, 455, 460, 454, 455, 463, 391, 391, 391, 423, 785, 83, 280, 79, 91, 91, 112, 112, 112, 476, 91, 87, 747, 748, 301, 749, 230, 79, 160, 41, 42, 160, 160, 160, 381, 381, 381, 302, 303, 304, 305, 306, 74, 0, 65, 83, 453, 92, 92, 461, 0, 476, 77, 92, 273, 210, 0, 0, 91, 418, 0, 0, 280, 0, 0, 420, 0, 0, 160, 160, 0, 0, 0, 0, 0, 0, 481, 481, 481, 210, 0, 210, 481, 481, 0, 481, 454, 455, 0, 0, 0, 92, 0, 0, 0, 0, 79, 0, 94, 94, 86, 473, 280, 0, 0, 225, 79, 0, 79, 79, 210, 0, 0, 0, 0, 210, 210, 0, 91, 0, 94, 0, 94, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 473, 79, 0, 94, 79, 0, 278, 0, 0, 0, 309, 0, 0, 0, 0, 0, 788, 92, 0, 0, 79, 79, 473, 210, 0, 322, 323, 83, 0, 0, 0, 0, 83, 0, 0, 79, 79, 79, 0, 0, 0, 0, 87, 94, 94, 94, 94, 94, 94, 94, 94, 278, 0, 0, 0, 0, 482, 0, 0, 0, 0, 575, 581, 74, 0, 0, 83, 0, 0, 0, 0, 0, 83, 77, 476, 0, 210, 83, 0, 0, 0, 0, 0, 94, 79, 79, 79, 94, 94, 0, 94, 94, 0, 0, 94, 0, 0, 482, 278, 0, 208, 208, 208, 0, 0, 0, 79, 0, 0, 0, 94, 0, 94, 94, 0, 0, 6, 250, 0, 423, 83, 278, 280, 0, 0, 94, 6, 0, 94, 476, 0, 0, 0, 94, 91, 94, 0, 0, 265, 91, 79, 83, 0, 94, 0, 0, 0, 0, 210, 0, 0, 79, 0, 0, 83, 0, 94, 6, 79, 0, 0, 0, 83, 0, 83, 0, 0, 92, 0, 0, 94, 0, 92, 153, 0, 6, 84, 84, 0, 91, 80, 482, 84, 80, 91, 279, 0, 0, 228, 659, 659, 659, 0, 94, 0, 357, 0, 0, 0, 83, 80, 153, 672, 153, 0, 153, 672, 672, 0, 417, 0, 0, 92, 0, 0, 0, 0, 92, 0, 0, 84, 163, 153, 0, 0, 0, 0, 91, 280, 0, 279, 0, 0, 0, 0, 672, 0, 0, 0, 79, 0, 6, 0, 0, 0, 0, 472, 76, 91, 163, 76, 163, 472, 163, 0, 0, 0, 419, 0, 0, 92, 91, 704, 80, 708, 0, 581, 76, 0, 91, 163, 91, 75, 0, 581, 75, 0, 280, 0, 0, 84, 92, 0, 0, 0, 0, 94, 94, 0, 0, 0, 0, 75, 0, 92, 278, 0, 472, 0, 0, 0, 0, 92, 0, 92, 0, 91, 94, 0, 0, 0, 0, 148, 208, 208, 0, 83, 0, 482, 482, 482, 94, 280, 0, 482, 482, 0, 482, 0, 472, 76, 0, 0, 0, 0, 0, 83, 0, 0, 92, 148, 0, 148, 0, 148, 0, 0, 0, 420, 94, 83, 0, 0, 0, 0, 75, 473, 78, 0, 0, 78, 148, 473, 0, 0, 659, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 0, 78, 6, 6, 6, 0, 0, 0, 6, 6, 0, 6, 0, 0, 94, 0, 0, 208, 208, 208, 208, 0, 477, 478, 94, 0, 94, 94, 94, 0, 0, 473, 0, 94, 94, 0, 0, 0, 0, 404, 405, 0, 80, 83, 750, 672, 672, 91, 0, 0, 0, 0, 226, 83, 84, 83, 83, 0, 0, 84, 0, 0, 0, 473, 78, 0, 0, 91, 0, 0, 0, 0, 94, 0, 0, 94, 0, 0, 0, 0, 92, 91, 0, 0, 0, 0, 553, 94, 94, 94, 0, 153, 0, 0, 153, 153, 153, 789, 279, 84, 92, 83, 0, 0, 84, 0, 0, 581, 0, 76, 472, 0, 0, 0, 92, 0, 83, 83, 83, 0, 0, 0, 417, 0, 0, 0, 0, 0, 94, 265, 0, 153, 153, 0, 75, 34, 0, 94, 94, 163, 0, 0, 163, 163, 163, 34, 0, 84, 0, 0, 91, 0, 0, 0, 530, 0, 534, 0, 94, 230, 91, 0, 91, 91, 0, 472, 83, 83, 84, 0, 419, 581, 0, 0, 0, 0, 34, 0, 0, 163, 163, 84, 0, 92, 0, 577, 0, 83, 0, 84, 280, 84, 94, 92, 34, 92, 92, 0, 0, 0, 94, 0, 530, 94, 791, 0, 0, 0, 91, 0, 94, 0, 0, 0, 610, 613, 0, 0, 616, 78, 473, 83, 623, 91, 91, 91, 84, 0, 0, 0, 148, 0, 83, 148, 148, 148, 0, 0, 0, 83, 0, 92, 0, 0, 8, 0, 0, 642, 0, 0, 616, 0, 0, 642, 8, 0, 92, 92, 92, 208, 34, 420, 0, 0, 0, 0, 0, 0, 131, 0, 148, 148, 0, 91, 91, 473, 0, 0, 0, 0, 0, 0, 7, 0, 0, 8, 0, 0, 0, 0, 0, 0, 7, 0, 91, 0, 131, 0, 131, 0, 131, 0, 0, 8, 422, 0, 92, 92, 334, 329, 0, 0, 0, 332, 330, 0, 331, 131, 333, 0, 0, 0, 208, 7, 132, 0, 0, 92, 91, 0, 0, 326, 0, 325, 677, 0, 0, 0, 0, 91, 0, 7, 0, 84, 0, 0, 91, 0, 742, 0, 0, 0, 132, 95, 132, 0, 132, 0, 0, 0, 421, 92, 0, 84, 0, 328, 0, 0, 0, 8, 0, 0, 92, 132, 0, 0, 0, 84, 0, 92, 0, 95, 0, 95, 0, 95, 0, 0, 0, 412, 0, 0, 0, 0, 0, 327, 0, 34, 34, 34, 0, 719, 95, 34, 34, 0, 34, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 726, 0, 0, 0, 729, 208, 0, 0, 730, 34, 34, 34, 34, 34, 412, 0, 0, 0, 0, 0, 613, 0, 0, 0, 412, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 228, 84, 0, 84, 84, 0, 0, 0, 0, 0, 0, 469, 0, 0, 0, 412, 412, 0, 469, 412, 412, 412, 412, 412, 412, 412, 0, 0, 0, 0, 0, 0, 770, 0, 0, 0, 412, 412, 412, 412, 412, 412, 777, 0, 0, 790, 0, 0, 0, 84, 0, 8, 8, 8, 0, 0, 0, 8, 8, 0, 8, 0, 0, 0, 84, 84, 84, 0, 0, 412, 0, 412, 412, 642, 0, 0, 0, 0, 0, 0, 616, 0, 0, 415, 0, 0, 616, 0, 0, 7, 7, 7, 0, 415, 0, 7, 7, 0, 7, 0, 0, 469, 412, 412, 469, 0, 0, 131, 0, 0, 131, 131, 131, 0, 84, 84, 470, 0, 0, 0, 415, 415, 823, 470, 415, 415, 415, 415, 415, 415, 415, 0, 0, 0, 309, 84, 0, 0, 422, 314, 315, 415, 415, 415, 415, 415, 415, 131, 131, 322, 323, 838, 0, 0, 0, 0, 0, 0, 0, 0, 0, 846, 0, 132, 0, 851, 132, 132, 132, 84, 0, 0, 0, 0, 415, 0, 415, 415, 0, 0, 84, 0, 0, 0, 0, 0, 0, 84, 0, 96, 0, 0, 95, 0, 421, 95, 95, 95, 0, 0, 613, 0, 616, 132, 132, 0, 470, 415, 415, 470, 0, 0, 0, 0, 0, 0, 0, 96, 0, 96, 876, 96, 879, 412, 0, 415, 0, 0, 0, 0, 616, 0, 95, 95, 883, 469, 469, 469, 96, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 0, 0, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 0, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 412, 469, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 0, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 0, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 415, 470, 470, 470, 470, 470, 470, 470, 470, 476, 0, 0, 0, 470, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 476, 476, 0, 472, 476, 476, 476, 476, 476, 476, 476, 96, 0, 0, 96, 96, 96, 0, 0, 0, 0, 476, 476, 476, 85, 476, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 96, 96, 0, 476, 0, 476, 476, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 476, 476, 472, 0, 0, 472, 0, 0, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 84, 472, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 476, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 0, 0, 0, 472, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 86, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 473, 473, 0, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 471, 0, 0, 0, 274, 274, 0, 471, 274, 274, 274, 274, 274, 274, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 274, 274, 0, 274, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 0, 274, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 471, 274, 274, 471, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 471, 471, 471, 473, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 0, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 274, 471, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 471, 0, 0, 0, 0, 0, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 474, 0, 0, 0, 477, 477, 0, 474, 477, 477, 477, 477, 477, 477, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 477, 477, 0, 477, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 477, 477, 0, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 477, 477, 474, 0, 0, 475, 0, 0, 0, 478, 478, 0, 475, 478, 478, 478, 478, 478, 478, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 478, 478, 0, 478, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 478, 478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 478, 478, 478, 475, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 0, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 477, 474, 474, 474, 474, 474, 474, 474, 474, 0, 475, 475, 475, 474, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 0, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 478, 475, 475, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 475, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 0, 350, 350, 0, 0, 350, 350, 350, 350, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 350, 350, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 251, 0, 0, 251, 0, 0, 0, 492, 492, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 251, 251, 251, 350, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 251, 251, 251, 492, 251, 251, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 251, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 278, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 278, 278, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 251, 0, 0, 0, 286, 286, 0, 0, 286, 286, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 278, 473, 473, 473, 473, 473, 473, 473, 473, 0, 251, 251, 251, 473, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 251, 251, 251, 286, 251, 251, 251, 251, 251, 251, 251, 251, 476, 0, 0, 0, 251, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 476, 476, 0, 472, 476, 476, 476, 77, 476, 476, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 476, 85, 476, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 476, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 476, 476, 472, 0, 0, 472, 0, 0, 0, 472, 472, 0, 472, 472, 472, 472, 76, 472, 472, 472, 0, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 84, 472, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 472, 0, 0, 472, 0, 0, 0, 0, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, }; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/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,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... |
iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); | iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
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,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... |
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; // Attributes Composite- this holds all the combo fiels and text // fields Composite attributesComposite = new Composite(infoArea, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); attributesComposite.setBackground(background); // End Attributes Composite // Attributes Title Area Composite attributesTitleComposite = new Composite(attributesComposite, SWT.NONE); GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; attributesTitleComposite.setLayout(attributesTitleLayout); attributesTitleComposite.setBackground(background); GridData attributesTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title newAttributesLayout(attributesTitleComposite); titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; String ccValue = null; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("newcc")) { ccValue = value; if(value == null) ccValue = ""; } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setFont(TEXT_FONT); oSCombo.setLayoutData(data); oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } oSCombo.select(oSCombo.indexOf(value)); oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setFont(TEXT_FONT); versionCombo.setLayoutData(data); versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setFont(TEXT_FONT); priorityCombo.setLayoutData(data); priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setFont(TEXT_FONT); severityCombo.setLayoutData(data); severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) { newLayout(attributesComposite, 1, name, PROPERTY); milestoneCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); milestoneCombo.setFont(TEXT_FONT); milestoneCombo.setLayoutData(data); milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setFont(TEXT_FONT); platformCombo.setLayoutData(data); platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if(key.equals("assigned_to")){ newLayout(attributesComposite, 1, name, PROPERTY); assignedTo = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); assignedTo.setFont(TEXT_FONT); assignedTo.setText(value); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = 1; assignedTo.setLayoutData(data); assignedTo.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = assignedTo.getText(); Attribute a = getBug().getAttribute("Assign To"); if (!(a.getNewValue().equals(sel))) { a.setNewValue(sel); changeDirtyStatus(true); } } }); assignedTo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo( attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setFont(TEXT_FONT); componentCombo.setLayoutData(data); componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(keywords, attributesComposite); if(ccValue != null){ addCCList(ccValue, attributesComposite); } addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/5863a0e5bb8b4443a2fdcf6102d50aae66ef1287/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
752,
1499,
3744,
1435,
288,
9506,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
9506,
202,
759,
9055,
147... | ||
Terminal.blue(System.err); | Terminal.boldface(System.err); | private void printDescription(String cmdStr, Command c) { String desc = c.getLongDescription(cmdStr); if (desc == null) { if (c.getShortDescription() != null) { desc = "\t[short description]: " + c.getShortDescription(); } } String synopsis = c.getSynopsis(cmdStr); if (synopsis != null) { Terminal.blue(System.err); System.err.println("SYNOPSIS"); Terminal.reset(System.err); System.err.println("\t" + synopsis); System.err.println(); } if (desc != null) { Terminal.blue(System.err); System.err.println("DESCRIPTION"); Terminal.reset(System.err); System.err.println(desc); if (c.requiresValidSession(cmdStr)) { System.err.println("\tRequires valid session."); } } if (desc == null && synopsis == null) { System.err.println("no detailed help for '" + cmdStr + "'"); } } | 49725 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49725/2caff3b838fde3796eebe9590aa15c5e2e5c3e5c/HelpCommand.java/clean/src/henplus/commands/HelpCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
3291,
12,
780,
1797,
1585,
16,
3498,
276,
13,
288,
202,
780,
3044,
273,
276,
18,
588,
3708,
3291,
12,
4172,
1585,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
3291,
12,
780,
1797,
1585,
16,
3498,
276,
13,
288,
202,
780,
3044,
273,
276,
18,
588,
3708,
3291,
12,
4172,
1585,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
5... |
myWebServer.removeHandler(name); | if (myWebServer != null) { myWebServer.removeHandler(name); } | public void removeHandler(String name) { myWebServer.removeHandler(name); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a3295be803021b3c07b173a0b1b937a1f99d00f9/XmlRpcServerImpl.java/buggy/source/com/intellij/ide/XmlRpcServerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
1503,
12,
780,
508,
13,
288,
565,
309,
261,
4811,
4079,
2081,
480,
446,
13,
288,
3399,
4079,
2081,
18,
4479,
1503,
12,
529,
1769,
289,
225,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
1503,
12,
780,
508,
13,
288,
565,
309,
261,
4811,
4079,
2081,
480,
446,
13,
288,
3399,
4079,
2081,
18,
4479,
1503,
12,
529,
1769,
289,
225,
289,
2,
-100,
-100,
-100,
... |
System.out.println("checking file"); | private FileInputStream getInputStream() throws IOException { System.out.println("checking file"); // compression formats supported String[] str = {".gz",".zip",".Z"}; ArrayList compressions = new ArrayList( Arrays.asList( str ) ); FileInputStream inputStream =null; String pdbFile = null ; File f = null ; String fpath = path+"/"+pdb_code; for (int i=0 ; i<extensions.size();i++){ String ex = (String)extensions.get(i) ; System.out.println("testing: "+fpath+ex); f = new File(fpath+ex) ; if ( f.exists()) { System.out.println("found!"); pdbFile = fpath+ex ; inputStream = new FileInputStream(pdbFile); break; } /* for (int j =0; j< compressions.size();j++){ String compression = (String)compressions.get(j); System.out.println("testing: "+fpath+ex+compression); f = new File(fpath+ex+compression) ; if ( f.exists()) { System.out.println("found!"); pdbFile = fpath+ex+compression ; if (compression.equals(".gz")) { FileInputStream is = new FileInputStream(pdbFile); inputStream = (FileInputStream)new GZIPInputStream(is); } else if (compression.equals(".zip")){ // only stream to first entry is returned ... ZipEntry entry; Enumeration e = zipfile.entries(); if ( e.hasMoreElements()){ entry = (ZipEntry) e.nextElement(); ZipFile zipfile = new ZipFile(pdbFile); inputStream = zipfile.getInputStream(entry); } else { throw new IOErrorEception ("Zip file has no entries"); } } break; } } */ if ( pdbFile != null) break; } if ( pdbFile == null ) { String message = "no structure with PDB code " + pdb_code + " found!" ; throw new IOException (message); } return inputStream ; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/48b81fa6f6cf265c4791633b465fa65eb34fc9d3/PDBFileReader.java/clean/src/org/biojava/bio/structure/io/PDBFileReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11907,
14424,
1435,
225,
202,
15069,
1860,
565,
288,
202,
3163,
18,
659,
18,
8222,
2932,
24609,
585,
8863,
202,
759,
9154,
6449,
3260,
202,
780,
8526,
609,
273,
288,
9654,
9764,
311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11907,
14424,
1435,
225,
202,
15069,
1860,
565,
288,
202,
3163,
18,
659,
18,
8222,
2932,
24609,
585,
8863,
202,
759,
9154,
6449,
3260,
202,
780,
8526,
609,
273,
288,
9654,
9764,
311... | |
add(buildSliderPanel()); | private void buildGUI(int sizeX, int sizeY, int sizeZ) { //add(buildDimsPanel(sizeX, sizeY, sizeZ), BorderLayout.WEST); add(buildTable(sizeX, sizeY, sizeZ)); add(buildSliderPanel()); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
43,
5370,
12,
474,
963,
60,
16,
509,
963,
61,
16,
509,
963,
62,
13,
202,
95,
202,
202,
759,
1289,
12,
3510,
25006,
5537,
12,
1467,
60,
16,
963,
61,
16,
963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
43,
5370,
12,
474,
963,
60,
16,
509,
963,
61,
16,
509,
963,
62,
13,
202,
95,
202,
202,
759,
1289,
12,
3510,
25006,
5537,
12,
1467,
60,
16,
963,
61,
16,
963,
... | |
public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8")); load(reader); reader.close(); | public void load(Reader r) { Document document = null; try { DocumentBuilder parser = DocumentBuilderFactory.newInstance() .newDocumentBuilder(); document = parser.parse(new InputSource(r)); Node root = document.getFirstChild(); while (root.getNodeType() == Node.COMMENT_NODE) { document.removeChild(root); root = document.getFirstChild(); } load(document, (Element) root); } catch (ParserConfigurationException e) { } catch (IOException e) { } catch (SAXException e) { } | public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8"));//$NON-NLS-1$ load(reader); reader.close(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c5bcc72a0de85e2579caedebd0a234e852deb98/DialogSettings.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
11907,
1407,
273,
394,
11907,
12,
17812,
1769,
3639,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
7734,
1407,
16,
315,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
11907,
1407,
273,
394,
11907,
12,
17812,
1769,
3639,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
7734,
1407,
16,
315,
315... |
protected Control createDialogArea(Composite parent) { final Composite composite = (Composite) super.createDialogArea(parent); ((GridLayout) composite.getLayout()).numColumns = 3; final Control treeControl = createTreeAreaContents(composite); final Sash sash = new Sash(composite, SWT.VERTICAL); sash.setLayoutData(new GridData(GridData.FILL_VERTICAL)); // the following listener resizes the tree control based on sash deltas. // If necessary, it will also grow/shrink the dialog. sash.addListener(SWT.Selection, new Listener() { /* (non-Javadoc) * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ public void handleEvent(Event event) { if (event.detail == SWT.DRAG) return; int shift = event.x - sash.getBounds().x; GridData data = (GridData) treeControl.getLayoutData(); int newWidthHint = data.widthHint + shift; if (newWidthHint < 20) return; Point computedSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); Point currentSize = getShell().getSize(); // if the dialog wasn't of a custom size we know we can shrink // it if necessary based on sash movement. boolean customSize = !computedSize.equals(currentSize); data.widthHint = newWidthHint; setLastTreeWidth(newWidthHint); composite.layout(true); // recompute based on new widget size computedSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); // if the dialog was of a custom size then increase it only if // necessary. if (customSize) computedSize.x = Math.max(computedSize.x, currentSize.x); computedSize.y = Math.max(computedSize.y, currentSize.y); if (computedSize.equals(currentSize)) return; setShellSize(computedSize.x, computedSize.y); lastShellSize = getShell().getSize(); } }); Composite pageAreaComposite = new Composite(composite, SWT.NONE); pageAreaComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout layout = new GridLayout(1, true); layout.marginHeight = 0; layout.marginWidth = 10; pageAreaComposite.setLayout(layout); // Build the title area and separator line Composite titleComposite = new Composite(pageAreaComposite, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; titleComposite.setLayout(layout); titleComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); createTitleArea(titleComposite); // Build the Page container pageContainer = createPageContainer(pageAreaComposite); pageContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); // Build the separator line Label separator = new Label(pageAreaComposite, SWT.HORIZONTAL | SWT.SEPARATOR); GridData gd = new GridData(GridData.FILL_HORIZONTAL); separator.setLayoutData(gd); return composite; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/be95edd129a1deef61176d5d63fd605f9dfe18a5/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3367,
2640,
6353,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
6385,
799,
1724,
30433,
4974,
28657,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
12443,
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,
225,
202,
1117,
3367,
2640,
6353,
5484,
12,
799,
1724,
881,
817,
15329,
202,
202,
6385,
799,
1724,
30433,
4974,
28657,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
12443,
63... | ||
int arity = 0; StringBuffer buf = new StringBuffer(); buf.append(Modifier.toString(getModifiers())); buf.append(" "); Class current = getType(); while(current.isArray()) { current = current.getComponentType(); arity++; } buf.append(current.getName()); for(;arity > 0; arity--) buf.append("[]"); buf.append(" "); buf.append(getDeclaringClass().getName()); buf.append("."); buf.append(getName()); return buf.toString(); | StringBuilder sb = new StringBuilder(64); Modifier.toString(getModifiers(), sb).append(' '); sb.append(ClassHelper.getUserName(getType())).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()); return sb.toString(); | public String toString() { int arity = 0; StringBuffer buf = new StringBuffer(); buf.append(Modifier.toString(getModifiers())); buf.append(" "); Class current = getType(); while(current.isArray()) { current = current.getComponentType(); arity++; } buf.append(current.getName()); for(;arity > 0; arity--) buf.append("[]"); buf.append(" "); buf.append(getDeclaringClass().getName()); buf.append("."); buf.append(getName()); return buf.toString(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a2aa110a358dba6a188b1ff8ee9c042df26c1ffe/Field.java/buggy/rvm/src/vm/libSupport/java/lang/reflect/Field.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
509,
19353,
273,
374,
31,
565,
6674,
1681,
273,
394,
6674,
5621,
565,
1681,
18,
6923,
12,
9829,
18,
10492,
12,
588,
11948,
1435,
10019,
565,
1681,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
509,
19353,
273,
374,
31,
565,
6674,
1681,
273,
394,
6674,
5621,
565,
1681,
18,
6923,
12,
9829,
18,
10492,
12,
588,
11948,
1435,
10019,
565,
1681,
18,
6... |
public int size() { return elements.size(); } | public int size() { return elements.size(); } | public int size() { return elements.size(); } // size() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/DefaultListModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
963,
1435,
288,
202,
202,
2463,
2186,
18,
1467,
5621,
202,
97,
368,
963,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
225,
202,
482,
509,
963,
1435,
288,
202,
202,
2463,
2186,
18,
1467,
5621,
202,
97,
368,
963,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( previousItemID != itemID ) { previousItemID = itemID; addNPCStoreItem( itemName ); } | private void searchMall() { List itemNames = TradeableItemDatabase.getMatchingNames( searchString ); // Change all multi-line store names into single line store names so that the // parser doesn't get confused; remove all stores where limits have already // been reached (which have been greyed out), and then remove all non-anchor // tags to make everything easy to parse. int startIndex = responseText.indexOf( "Search Results:" ); String storeListResult = responseText.substring( startIndex == -1 ? 0 : startIndex ); String plainTextResult = storeListResult.replaceAll( "<br>", " " ).replaceAll( "</?b>", "\n" ).replaceAll( "</?p>", "" ).replaceAll( "</c.*?>", "" ).replaceAll( "<tr><td style", "\n...\n<tr><td style" ).replaceAll( "</?t.*?>", "\n" ).replaceAll( "</a>", "\n" ); StringTokenizer parsedResults = new StringTokenizer( plainTextResult, "\n" ); // Now, check to see if there was actually // no results in a limited search if ( startIndex == -1 || parsedResults.countTokens() < 9 ) { finalizeList( itemNames ); return; } // The first four tokens are just the table // headers, and so they can be discarded skipTokens( parsedResults, 4 ); String lastItemName = ""; while ( parsedResults.countTokens() > 1 ) { boolean canPurchase = true; // The first token contains the item name String itemName = parsedResults.nextToken().trim(); if ( itemName.equals( "..." ) ) { canPurchase = false; itemName = parsedResults.nextToken().trim(); } if ( !itemName.equals( lastItemName ) ) { // Theoretically, you could do a check to see if you // should add in the NPC store price; however, if // it wasn't in the top list, then don't bother. // Now, figure out if an NPC item exists for the // most recently encountered item type. lastItemName = itemName; itemNames.remove( itemName ); if ( NPCStoreDatabase.contains( itemName ) ) results.add( NPCStoreDatabase.getPurchaseRequest( itemName ) ); } // The next token contains the number of items being sold // in addition to any limits imposed on those items StringTokenizer buyDetails = new StringTokenizer( parsedResults.nextToken(), " ()/day" ); int quantity = intToken( buyDetails ); int limit = buyDetails.hasMoreTokens() ? intToken( buyDetails ) : quantity; // The next token contains data which identifies the shop // and the item (which will be used later), and the price! // which means you don't need to consult thenext token. String shopDetails = parsedResults.nextToken(); int shopID = StaticEntity.parseInt( shopDetails.substring( shopDetails.indexOf( "store=" ) + 6, shopDetails.indexOf( "&searchitem" ) ) ); int itemID = StaticEntity.parseInt( shopDetails.substring( shopDetails.indexOf( "item=" ) + 5, shopDetails.indexOf( "&searchprice" ) ) ); String shopName = shopDetails.substring( shopDetails.indexOf( "\">" ) + 2 ); int price = StaticEntity.parseInt( shopDetails.substring( shopDetails.indexOf( "price=" ) + 6, shopDetails.indexOf( "\">" ) ) ); // The last token contains the price of the item, but // you need to discard it. parsedResults.nextToken(); // Only add mall store results if the NPC store option // is not available. if ( !NPCStoreDatabase.contains( itemName ) ) results.add( new MallPurchaseRequest( client, itemName, itemID, quantity, shopID, shopName, price, limit, canPurchase ) ); } // Once the search is complete, add in any remaining NPC // store data and finalize the list. finalizeList( itemNames ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/736b454058bb0869b235ef7523fe4abfda1713ef/SearchMallRequest.java/clean/src/net/sourceforge/kolmafia/SearchMallRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
309,
261,
2416,
1180,
734,
480,
761,
734,
262,
288,
2416,
1180,
734,
273,
761,
734,
31,
527,
50,
3513,
2257,
1180,
12,
23488,
11272,
289,
225,
918,
309,
261,
2416,
1180,
734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
261,
2416,
1180,
734,
480,
761,
734,
262,
288,
2416,
1180,
734,
273,
761,
734,
31,
527,
50,
3513,
2257,
1180,
12,
23488,
11272,
289,
225,
918,
309,
261,
2416,
1180,
734,... | |
public void run() { if (!confirmDelete()) return; final IResource[] resourcesToDelete = getResourcesToDelete(); if (resourcesToDelete.length == 0) return; try { WorkspaceModifyOperation op = new WorkspaceModifyOperation() { protected void execute(IProgressMonitor monitor) throws CoreException { delete(resourcesToDelete, monitor); } }; new ProgressMonitorDialog(shell).run(true, true, op); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t instanceof CoreException) { ErrorDialog.openError(shell, WorkbenchMessages.getString("DeleteResourceAction.errorTitle"), null, // no special message //$NON-NLS-1$ ((CoreException) t).getStatus()); } else { // CoreExceptions are collected above, but unexpected runtime exceptions and errors may still occur. WorkbenchPlugin.log(MessageFormat.format("Exception in {0}.run: {1}", new Object[] {getClass().getName(), t}));//$NON-NLS-1$ MessageDialog.openError( shell, WorkbenchMessages.getString("DeleteResourceAction.messageTitle"), //$NON-NLS-1$ WorkbenchMessages.format("DeleteResourceAction.internalError", new Object[] {t.getMessage()})); //$NON-NLS-1$ } } catch (InterruptedException e) { // just return }} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9782eeba76dad1c6bb4f9d5c8e909c08c7a8093c/DeleteResourceAction.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/DeleteResourceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
202,
430,
12,
5,
10927,
2613,
10756,
202,
202,
2463,
31,
202,
6385,
45,
1420,
8526,
4683,
14976,
33,
588,
3805,
14976,
5621,
202,
202,
430,
12,
4683,
14976,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
202,
430,
12,
5,
10927,
2613,
10756,
202,
202,
2463,
31,
202,
6385,
45,
1420,
8526,
4683,
14976,
33,
588,
3805,
14976,
5621,
202,
202,
430,
12,
4683,
14976,
18,
2... | ||
pixelType = FormatReader.INT8; | pixelType[0] = FormatReader.INT8; | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); littleEndian = false; byte[] temp = new byte[4]; in.read(temp); // only support version 3 if(!isThisType(temp)) { throw new FormatException("invalid header"); } in.skipBytes(4); in.read(temp); if (DataTools.bytesToInt(temp, littleEndian) == 1) littleEndian = true; // TagGroup instance in.skipBytes(2); in.read(temp); parseTags(DataTools.bytesToInt(temp, !littleEndian), "initFile"); int datatype = ((Integer) metadata.get("DataType")).intValue(); pixelType = FormatReader.INT8; switch (datatype) { case 1: pixelType = FormatReader.INT16; break; case 2: pixelType = FormatReader.FLOAT; break; case 3: pixelType = FormatReader.FLOAT; break; // there is no case 4 case 5: pixelType = FormatReader.FLOAT; break; case 6: pixelType = FormatReader.UINT8; break; case 7: pixelType = FormatReader.INT32; break; case 8: pixelType = FormatReader.UINT32; break; case 9: pixelType = FormatReader.INT8; break; case 10: pixelType = FormatReader.UINT16; break; case 11: pixelType = FormatReader.UINT32; break; case 12: pixelType = FormatReader.FLOAT; break; case 13: pixelType = FormatReader.FLOAT; break; case 14: pixelType = FormatReader.UINT8; break; case 23: pixelType = FormatReader.INT32; break; } sizeX[0] = dims[0]; sizeY[0] = dims[1]; sizeZ[0] = 1; sizeC[0] = 1; sizeT[0] = 1; currentOrder[0] = "XYZTC"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels( new Integer(dims[0]), // SizeX new Integer(dims[1]), // SizeY new Integer(1), // SizeZ new Integer(1), // SizeC new Integer(1), // SizeT new Integer(pixelType), // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder null); // Use index 0 } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/152ea9f3f73a28d996513a7cb7b820a6ed4e6b22/GatanReader.java/buggy/loci/formats/in/GatanReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
328,
10609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
328,
10609,
... |
"(Lorg/mozilla/javascript/Scriptable;"+ "Ljava/lang/Class;" + "Lorg/mozilla/javascript/Context;Z)", "Lorg/mozilla/javascript/NativeFunction;"); | "(Lorg/mozilla/javascript/Scriptable;"+ "Ljava/lang/Class;" + "Lorg/mozilla/javascript/Context;Z)", "Lorg/mozilla/javascript/NativeFunction;"); | private void visitFunction(Node node) { aload(variableObjectLocal); FunctionNode fn = (FunctionNode) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); aload(funObjLocal); classFile.add(ByteCode.GETFIELD, "org/mozilla/javascript/NativeFunction", "nestedFunctions", "[Lorg/mozilla/javascript/NativeFunction;"); push(index.shortValue()); addByteCode(ByteCode.AALOAD); addVirtualInvoke("java/lang/Object", "getClass", "()", "Ljava/lang/Class;"); aload(contextLocal); byte z = fn.getFunctionType() == FunctionNode.FUNCTION_EXPRESSION_STATEMENT ? (byte)1 : (byte)0; addByteCode(ByteCode.BIPUSH, z); addScriptRuntimeInvoke("createFunctionObject", "(Lorg/mozilla/javascript/Scriptable;"+ "Ljava/lang/Class;" + "Lorg/mozilla/javascript/Context;Z)", "Lorg/mozilla/javascript/NativeFunction;"); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/994eb9e3286f1764b164be98d6d7f508ce53df14/Codegen.java/clean/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
2083,
12,
907,
756,
13,
288,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
4284,
907,
2295,
273,
261,
2083,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
2083,
12,
907,
756,
13,
288,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
4284,
907,
2295,
273,
261,
2083,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
158... |
if (oldUri == null) _prefixMap.remove( oldPrefix ); else _prefixMap.put( oldPrefix, oldUri ); | if (oldUri == null) _prefixMap.remove( oldPrefix ); else _prefixMap.put( oldPrefix, oldUri ); | private final void popMappings ( ) { for ( ; ; ) { int i = _namespaceStack.size(); if (i == 0) break; if (_namespaceStack.get( i - 1 ) == null) { _namespaceStack.remove( i - 1 ); break; } Object oldUri = _namespaceStack.get( i - 7 ); Object oldPrefix = _namespaceStack.get( i - 8 ); if (oldPrefix == null) _uriMap.remove( oldUri ); else _uriMap.put( oldUri, oldPrefix ); oldPrefix = _namespaceStack.get( i - 4 ); oldUri = _namespaceStack.get( i - 3 ); if (oldUri == null) _prefixMap.remove( oldPrefix ); else _prefixMap.put( oldPrefix, oldUri ); String uri = (String) _namespaceStack.get( i - 5 ); if (uri != null) _uriMap.put( uri, _namespaceStack.get( i - 6 ) ); // Hahahahahaha -- :-( _namespaceStack.remove( i - 1 ); _namespaceStack.remove( i - 2 ); _namespaceStack.remove( i - 3 ); _namespaceStack.remove( i - 4 ); _namespaceStack.remove( i - 5 ); _namespaceStack.remove( i - 6 ); _namespaceStack.remove( i - 7 ); _namespaceStack.remove( i - 8 ); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/c2050878358a3543cf38c8b9bf0a37703cce78e1/Saver.java/clean/src/store/org/apache/xmlbeans/impl/store/Saver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
1843,
7742,
261,
262,
565,
288,
3639,
364,
261,
274,
274,
262,
3639,
288,
5411,
509,
277,
273,
389,
4937,
2624,
18,
1467,
5621,
5411,
309,
261,
77,
422,
374,
13,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1843,
7742,
261,
262,
565,
288,
3639,
364,
261,
274,
274,
262,
3639,
288,
5411,
509,
277,
273,
389,
4937,
2624,
18,
1467,
5621,
5411,
309,
261,
77,
422,
374,
13,
7734,
... |
stream.print("pass"); else if (failure instanceof AssertionFailedError) stream.print("failed"); | result = "pass"; | public void endTest(Test test) { double time = (System.currentTimeMillis() - startTime) / 1000.0; stream.print(" time=\""); stream.print(time); stream.print("\" result=\""); boolean printerror = false; if (failure == null) stream.print("pass"); else if (failure instanceof AssertionFailedError) stream.print("failed"); else { stream.print("error"); printerror = true; } stream.print("\""); if (printerror) { stream.println(">"); failure.printStackTrace(stream); stream.println("\t\t\t</test>"); } else stream.println("/>"); failure = null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/828dff91943534a73a1e97b1d6ba9d5c5ae9f6d6/RunTests.java/clean/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/suite/RunTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
679,
4709,
12,
4709,
1842,
13,
288,
202,
202,
9056,
813,
273,
261,
3163,
18,
2972,
28512,
1435,
300,
8657,
13,
342,
4336,
18,
20,
31,
9506,
202,
3256,
18,
1188,
2932,
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,
225,
202,
482,
918,
679,
4709,
12,
4709,
1842,
13,
288,
202,
202,
9056,
813,
273,
261,
3163,
18,
2972,
28512,
1435,
300,
8657,
13,
342,
4336,
18,
20,
31,
9506,
202,
3256,
18,
1188,
2932,
8... |
AST tmp131_AST = null; tmp131_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp131_AST); | AST tmp180_AST = null; tmp180_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp180_AST); | public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); AST reservedKeywords_AST = null; name = null; switch ( LA(1)) { case LITERAL_div: { AST tmp126_AST = null; tmp126_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp126_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name = "div"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_mod: { AST tmp127_AST = null; tmp127_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp127_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name = "mod"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_text: { AST tmp128_AST = null; tmp128_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp128_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name = "text"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_node: { AST tmp129_AST = null; tmp129_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp129_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name = "node"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_or: { AST tmp130_AST = null; tmp130_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp130_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name = "or"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_and: { AST tmp131_AST = null; tmp131_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp131_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name = "and"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_child: { AST tmp132_AST = null; tmp132_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp132_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name = "child"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_parent: { AST tmp133_AST = null; tmp133_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp133_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name = "parent"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_self: { AST tmp134_AST = null; tmp134_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp134_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name = "self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_attribute: { AST tmp135_AST = null; tmp135_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp135_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name = "attribute"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_ancestor: { AST tmp136_AST = null; tmp136_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp136_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name = "ancestor"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_descendant: { AST tmp137_AST = null; tmp137_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp137_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name = "descendant"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 51: { AST tmp138_AST = null; tmp138_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp138_AST); match(51); if ( inputState.guessing==0 ) { name = "descendant-or-self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 55: { AST tmp139_AST = null; tmp139_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp139_AST); match(55); if ( inputState.guessing==0 ) { name = "ancestor-or-self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 56: { AST tmp140_AST = null; tmp140_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp140_AST); match(56); if ( inputState.guessing==0 ) { name = "preceding-sibling"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 52: { AST tmp141_AST = null; tmp141_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp141_AST); match(52); if ( inputState.guessing==0 ) { name = "following-sibling"; } reservedKeywords_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... |
case 20: | case 29: | public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 20: return s4; case EOL: return s2; case 29: return s3; default: NoViableAltException nvae = new NoViableAltException("", 37, 2, input); throw nvae; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
12899,
30,
10792,
327,
272,
24,
31,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
12899,
30,
10792,
327,
272,
24,
31,
7734,
... |
this.absoluteX = absoluteX; this.absoluteY = absoluteY; } | this.absoluteX = absoluteX; this.absoluteY = absoluteY; } | public void setAbsolutePosition(float absoluteX, float absoluteY) { this.absoluteX = absoluteX; this.absoluteY = absoluteY; } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/f23d985cc18441fe92dd7393cacbdfcfec75db94/Image.java/buggy/src/com/lowagie/text/Image.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
10368,
2555,
12,
5659,
4967,
60,
16,
1431,
4967,
61,
13,
288,
3639,
333,
18,
12547,
60,
273,
4967,
60,
31,
3639,
333,
18,
12547,
61,
273,
4967,
61,
31,
565,
289,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10368,
2555,
12,
5659,
4967,
60,
16,
1431,
4967,
61,
13,
288,
3639,
333,
18,
12547,
60,
273,
4967,
60,
31,
3639,
333,
18,
12547,
61,
273,
4967,
61,
31,
565,
289,
2,
... |
HighlightInfo liteOnTop = lineStack.peek(); _component.getHighlighter().removeHighlight( liteOnTop.getHighlightTag() ); | public HighlightInfo addHighlight(int startOffset, int endOffset, Highlighter.HighlightPainter p) { HighlightInfo newLite = new HighlightInfo(startOffset,endOffset,p);// Utilities.showDebug("Adding highlight from "+startOffset+" to "+endOffset); Stack<HighlightInfo> lineStack = _getStackAt(newLite); if (lineStack != null) { int searchResult = lineStack.search(newLite); if (searchResult == 1) return lineStack.peek(); if (searchResult > 1) { lineStack.remove(newLite); } HighlightInfo liteOnTop = lineStack.peek(); _component.getHighlighter().removeHighlight( liteOnTop.getHighlightTag() ); } else { //add a new Stack to the empty place in the hashtable lineStack = new Stack<HighlightInfo>(); _highlights.add(lineStack); } try { Object highlightTag = _component.getHighlighter().addHighlight(startOffset,endOffset,p); newLite.setHighlightTag(highlightTag); lineStack.push(newLite); return newLite; } catch (BadLocationException ble) { //if adding a highlight failed, remove any empty stack if (lineStack.isEmpty()) { _highlights.remove(lineStack); } throw new UnexpectedException(ble); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/efc072ede22ea55faaadbf97a73c4466d939ffd3/HighlightManager.java/clean/drjava/src/edu/rice/cs/util/swing/HighlightManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31386,
966,
527,
16205,
12,
474,
18245,
16,
509,
25507,
16,
15207,
23624,
18,
16205,
15775,
293,
13,
288,
1377,
31386,
966,
394,
20291,
273,
394,
31386,
966,
12,
1937,
2335,
16,
409... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31386,
966,
527,
16205,
12,
474,
18245,
16,
509,
25507,
16,
15207,
23624,
18,
16205,
15775,
293,
13,
288,
1377,
31386,
966,
394,
20291,
273,
394,
31386,
966,
12,
1937,
2335,
16,
409... | |
nanos = num; | result.nanos = num; | private static int loadCalendar(GregorianCalendar cal, String s, String type) throws SQLException { int slen = s.length(); // Zero out all the fields. cal.setTime(new java.util.Date(0)); int nanos = 0; try { int start = 0; int end = firstNonDigit(s, start); int num = number(s, start, end); char sep = charAt(s, end); // Read date if (sep == '-') { cal.set(Calendar.YEAR, num); start = end + 1; // read month end = firstNonDigit(s, start); num = number(s, start, end); cal.set(Calendar.MONTH, num-1); start = end + 1; // read date end = firstNonDigit(s, start); num = number(s, start, end); cal.set(Calendar.DAY_OF_MONTH, num); start = end + 1; while (charAt(s, start) == ' ') { start++; } end = firstNonDigit(s, start); try { num = number(s, start, end); } catch(NumberFormatException nfe) { // Ignore this, we don't know if a time, an // era, or nothing is coming next, but we // must be prepared for a time by parsing // this as a number. } sep = charAt(s, end); } // Read time if (sep == ':') { // we've already read in num. cal.set(Calendar.HOUR_OF_DAY, num); start = end + 1; // minutes end = firstNonDigit(s, start); num = number(s, start, end); cal.set(Calendar.MINUTE, num); start = end + 1; // seconds end = firstNonDigit(s, start); num = number(s, start, end); cal.set(Calendar.SECOND, num); start = end + 1; sep = charAt(s, end); // Fractional seconds. if (sep == '.') { end = firstNonDigit(s, start); num = number(s, start, end); int numlength = 9 - s.substring(start, end).length(); for (int i=0; i<numlength; i++) { num *= 10; } nanos = num; start = end + 1; sep = charAt(s, end); } } // Timezone if (sep == '-' || sep == '+') { int tzsign = (sep == '-') ? -1 : 1; end = firstNonDigit(s, start); int tzhr = number(s, start, end); start = end + 1; end = firstNonDigit(s, start); sep = charAt(s, end); int tzmin = 0; if (sep == ':') { tzmin = number(s, start, end); start = end + 1; } int tzoffset = tzsign * tzhr * 60 + tzmin; // offset is in milliseconds. tzoffset *= 60 * 1000; cal.set(Calendar.ZONE_OFFSET, tzoffset); cal.set(Calendar.DST_OFFSET, 0); while (charAt(s, start) == ' ') { start++; } } if (start < slen) { String era = s.substring(start); if (era.equals("AD")) { cal.set(Calendar.ERA, GregorianCalendar.AD); } else if (era.equals("BC")) { cal.set(Calendar.ERA, GregorianCalendar.BC); } } } catch (NumberFormatException nfe) { throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{type,s}), PSQLState.BAD_DATETIME_FORMAT, nfe); } return nanos; } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/5f914eecf19be3010f83754829f88173846f521a/TimestampUtils.java/clean/org/postgresql/jdbc2/TimestampUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
1262,
7335,
12,
31560,
7335,
1443,
16,
514,
272,
16,
514,
618,
13,
1216,
6483,
288,
3639,
509,
272,
1897,
273,
272,
18,
2469,
5621,
3639,
368,
12744,
596,
777,
326,
1466... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
7335,
12,
31560,
7335,
1443,
16,
514,
272,
16,
514,
618,
13,
1216,
6483,
288,
3639,
509,
272,
1897,
273,
272,
18,
2469,
5621,
3639,
368,
12744,
596,
777,
326,
1466... |
{ return 1; } | { return connection.this_driver.getMajorVersion(); } | public int getDriverMajorVersion() { return 1; } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/0c8299478c05542a0f240973829223c7dae7e4dd/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
15885,
17581,
1444,
1435,
202,
95,
202,
202,
2463,
404,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
15885,
17581,
1444,
1435,
202,
95,
202,
202,
2463,
404,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public void reconstruct(Tree tree, double[][] observedStates, boolean weighted, boolean rootedMode, CommandRecord commandRec){ | public void reconstruct(Tree tree, double[][] observedStates, boolean weighted, boolean rootedMode, boolean[] deletedTaxa, CommandRecord commandRec){ | public void reconstruct(Tree tree, double[][] observedStates, boolean weighted, boolean rootedMode, CommandRecord commandRec){ //NOTE: rootedMode == false not yet supported if (!rootedMode) MesquiteMessage.warnProgrammer("SquaredReconstructor error: rootedMode == false not yet supported"); if (observedStates!=null && tree!=null && !(tree.nodeIsPolytomous(tree.getRoot()) && !rootedMode)){ this.observedStates = observedStates; observedDistribution=null; useWeights = weighted; this.rootedMode = rootedMode; this.tree = tree; numChars = observedStates.length; numItems =1; doReconstruct(commandRec); } else reconstructed = false; } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/ac644248c5238a5035bef8db2b1667e34db27ff9/SquaredReconstructor.java/clean/trunk/Mesquite Project/Source/mesquite/cont/lib/SquaredReconstructor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23243,
12,
2471,
2151,
16,
1645,
63,
6362,
65,
12117,
7629,
16,
1250,
13747,
16,
1250,
1365,
329,
2309,
16,
3498,
2115,
1296,
5650,
15329,
202,
202,
759,
17857,
30,
1365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23243,
12,
2471,
2151,
16,
1645,
63,
6362,
65,
12117,
7629,
16,
1250,
13747,
16,
1250,
1365,
329,
2309,
16,
3498,
2115,
1296,
5650,
15329,
202,
202,
759,
17857,
30,
1365,
... |
c.getRepository().put(newKey, repository.get(key)); | c.getRepository().setProperty(newKey, (String)repository.get(key)); | public Configurations subset(String prefix) { Configurations c = new Configurations(new ExtendedProperties()); Enumeration keys = this.repository.keys(); boolean validSubset = false; while( keys.hasMoreElements() ) { Object key = keys.nextElement(); if( key instanceof String && ((String) key).startsWith(prefix) ) { if (!validSubset) { validSubset = true; } String newKey = ((String)key).substring(prefix.length() + 1); c.getRepository().put(newKey, repository.get(key)); } } if (validSubset) { return c; } else { return null; } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/019238dd56ef905056830414e6f037c562364c53/Configurations.java/buggy/src/java/org/apache/velocity/runtime/configuration/Configurations.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4659,
87,
7931,
12,
780,
1633,
13,
565,
288,
3639,
4659,
87,
276,
273,
394,
4659,
87,
12,
2704,
14094,
2297,
10663,
3639,
13864,
1311,
273,
333,
18,
9071,
18,
2452,
5621,
3639,
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,
4659,
87,
7931,
12,
780,
1633,
13,
565,
288,
3639,
4659,
87,
276,
273,
394,
4659,
87,
12,
2704,
14094,
2297,
10663,
3639,
13864,
1311,
273,
333,
18,
9071,
18,
2452,
5621,
3639,
12... |
getViewer().addDragSupport(operations, transferTypes, listener); | getViewer().addDragSupport(operations, transferTypes, listener); | protected void initDragAndDrop() { int operations = DND.DROP_COPY; Transfer[] transferTypes = new Transfer[] { MarkerTransfer.getInstance(), TextTransfer.getInstance()}; DragSourceListener listener = new DragSourceAdapter() { public void dragSetData(DragSourceEvent event) { performDragSetData(event); } public void dragFinished(DragSourceEvent event) { } }; getViewer().addDragSupport(operations, transferTypes, listener); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ea57ee1b804071939d5791d4c2986826074efe0c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
11728,
1876,
7544,
1435,
288,
202,
202,
474,
5295,
273,
463,
2908,
18,
18768,
67,
24875,
31,
202,
202,
5912,
8526,
7412,
2016,
273,
394,
12279,
8526,
288,
14742,
591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1208,
11728,
1876,
7544,
1435,
288,
202,
202,
474,
5295,
273,
463,
2908,
18,
18768,
67,
24875,
31,
202,
202,
5912,
8526,
7412,
2016,
273,
394,
12279,
8526,
288,
14742,
591... |
focusLost(FocusEvent event); | void focusLost(FocusEvent event); | focusLost(FocusEvent event); | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/e498e3a548f2670a351161d07f8c964f05a6a979/FocusListener.java/buggy/java/awt/event/FocusListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7155,
19024,
12,
9233,
1133,
871,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7155,
19024,
12,
9233,
1133,
871,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
SpeakerUtils.beep(); } | SpeakerUtils.beep(); } | public void beep() { SpeakerUtils.beep(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/clean/gui/src/awt/org/jnode/awt/JNodeToolkit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
506,
881,
1435,
288,
3639,
348,
347,
6388,
1989,
18,
2196,
881,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
377,
1071,
918,
506,
881,
1435,
288,
3639,
348,
347,
6388,
1989,
18,
2196,
881,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public boolean load(String mapFile) { | public boolean load() { | public boolean load(String mapFile) { MapLoader loader = new MapLoader(); if (!loader.load(mapFile)) { return false; } mapCells = loader.getCells(); size = loader.getSize(); reset(); resetPlayers(); recalculateScoreCount(); logger.info(mapFile + " loaded, world reset."); return true; } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/5ab782d8296c53334c2af0336705e6fb518bf378/World.java/clean/SoarSuite/Environments/Soar2D/src/soar2d/World.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1262,
12,
780,
852,
812,
13,
288,
9506,
202,
863,
2886,
4088,
273,
394,
1635,
2886,
5621,
202,
202,
430,
16051,
6714,
18,
945,
12,
1458,
812,
3719,
288,
1082,
202,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1262,
12,
780,
852,
812,
13,
288,
9506,
202,
863,
2886,
4088,
273,
394,
1635,
2886,
5621,
202,
202,
430,
16051,
6714,
18,
945,
12,
1458,
812,
3719,
288,
1082,
202,
2463,... |
public void execute( String destinationDirectory, Set mojoDescriptors, MavenProject project ) throws Exception | public void execute( String destinationDirectory, Set mojoDescriptors, MavenProject project, String goalPrefix ) throws IOException | public void execute( String destinationDirectory, Set mojoDescriptors, MavenProject project ) throws Exception { FileWriter writer = new FileWriter( new File( destinationDirectory, "plugin.jelly" ) ); PrettyPrintXMLWriter w = new PrettyPrintXMLWriter( writer ); String pluginId = PluginDescriptor.getPluginIdFromArtifactId( project.getArtifactId() ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "project" ); w.addAttribute( "xmlns:j", "jelly:core" ); w.addAttribute( "xmlns:d", "jelly:define" ); w.addAttribute( "xmlns:" + pluginId, pluginId ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "d:taglib" ); w.addAttribute( "uri", pluginId ); for ( Iterator it = mojoDescriptors.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); processPluginDescriptor( descriptor, w, project ); } w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- for ( Iterator it = mojoDescriptors.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); writeGoals( descriptor, w ); } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- writer.flush(); writer.close(); // ---------------------------------------------------------------------- // project.xml // ---------------------------------------------------------------------- writer = new FileWriter( new File( destinationDirectory, "project.xml" ) ); w = new PrettyPrintXMLWriter( writer ); w.startElement( "project" ); w.startElement( "dependencies" ); PluginUtils.writeDependencies( w, project ); w.endElement(); w.endElement(); writer.flush(); writer.close(); } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/24c6328ad361f8e709e2b3fddefd9cde220a0628/JellyHarnessGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/jelly/JellyHarnessGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
262,
3639,
1216,
1185,
565,
288,
3639,
24639,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
285... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
514,
2929,
2853,
16,
1000,
312,
10007,
12705,
16,
17176,
4109,
1984,
262,
3639,
1216,
1185,
565,
288,
3639,
24639,
2633,
273,
394,
24639,
12,
394,
1387,
12,
2929,
285... |
parseTreePanel.toggleGraph(); | ParserRule rule = (ParserRule)rulesCombo.getSelectedItem(); if(rule != null) startSymbol = rule.name; | public void actionPerformed(ActionEvent event) { parseTreePanel.toggleGraph(); } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/c579ef17d6406b0b7c99b33cef828aaf386dade5/Interpreter.java/buggy/src/org/antlr/works/interpreter/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
871,
13,
288,
7734,
6783,
2175,
1720,
273,
261,
2678,
2175,
13,
7482,
16156,
18,
588,
7416,
1180,
5621,
309,
12,
5345,
480,
446,
13,
787,
5335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
871,
13,
288,
7734,
6783,
2175,
1720,
273,
261,
2678,
2175,
13,
7482,
16156,
18,
588,
7416,
1180,
5621,
309,
12,
5345,
480,
446,
13,
787,
5335,
273,
1... |
protected CellHandle findCell( RowHandle row, int columnToInsert ) { SlotHandle cells = row.getCells( ); for ( int i = 0; i < cells.getCount( ); i++ ) { CellHandle cell = (CellHandle) cells.get( i ); int cellPos = getCellPosition( cell ); // found the cell if ( columnToInsert == cellPos ) return cell; // there was no corresponding cell on this row, should paste/insert // on this position. else if ( columnToInsert < cellPos + cell.getColumnSpan( ) ) return cell; } // not return yet, paste/insert to the end of this row. return null; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8df4e191178cef7c67e59bfee82e0f188412b61b/ColumnBandAdapter.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ColumnBandAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8614,
3259,
1104,
4020,
12,
6556,
3259,
1027,
16,
509,
1057,
774,
4600,
262,
202,
95,
202,
202,
8764,
3259,
5983,
273,
1027,
18,
588,
10505,
12,
11272,
202,
202,
1884,
261,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8614,
3259,
1104,
4020,
12,
6556,
3259,
1027,
16,
509,
1057,
774,
4600,
262,
202,
95,
202,
202,
8764,
3259,
5983,
273,
1027,
18,
588,
10505,
12,
11272,
202,
202,
1884,
261,
5... | ||
if (checkRange && !compareTextRange(reportedProblem, expectedProblem)) return false; | private static boolean compareProblemWithExpected(Element reportedProblem, Element expectedProblem) throws Exception { if (!compareFiles(reportedProblem, expectedProblem)) return false; if (!compareLines(reportedProblem, expectedProblem)) return false; if (!compareDescriptions(reportedProblem, expectedProblem)) return false; return true; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1a393e8028c214395785b899af210ff8f3d7df1f/InspectionTestCase.java/clean/ExtendedApi/src/com/intellij/testFramework/InspectionTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1893,
2655,
597,
401,
9877,
1528,
2655,
12,
266,
1798,
13719,
16,
2665,
13719,
3719,
327,
629,
31,
309,
261,
1893,
2655,
597,
401,
9877,
1528,
2655,
12,
266,
1798,
13719,
16,
2665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1893,
2655,
597,
401,
9877,
1528,
2655,
12,
266,
1798,
13719,
16,
2665,
13719,
3719,
327,
629,
31,
309,
261,
1893,
2655,
597,
401,
9877,
1528,
2655,
12,
266,
1798,
13719,
16,
2665,
... | |
params[2] = new ParamInfo(); params[2].isSet = true; params[2].jdbcType = Types.INTEGER; params[2].value = new Integer(scrollOpt); params[2].isOutput = true; | params[2] = pScrollOpt; | private void cursorCreate(String sql, String procName, ParamInfo[] parameters) throws SQLException { TdsCore tds = statement.getTds(); int prepareSql = statement.connection.getPrepareSql(); int scrollOpt; int ccOpt; switch (resultSetType) { case TYPE_SCROLL_INSENSITIVE: scrollOpt = CURSOR_TYPE_STATIC; break; case TYPE_SCROLL_SENSITIVE: scrollOpt = CURSOR_TYPE_KEYSET; break; case TYPE_FORWARD_ONLY: default: scrollOpt = CURSOR_TYPE_FORWARD; break; } switch (concurrency) { case CONCUR_READ_ONLY: default: ccOpt = CURSOR_CONCUR_READ_ONLY; break; case CONCUR_UPDATABLE: ccOpt = CURSOR_CONCUR_SCROLL_LOCKS; break; } if (tds.getTdsVersion() == Driver.TDS42 && parameters != null && parameters.length > 0) { // SQL 6.5 does not support stored procs (with params) in the sp_cursor call procName = null; } else if (TdsCore.isPreparedProcedureName(procName)) { procName = null; } if (procName != null || parameters == null || parameters.length == 0) { // Downgrade to TdsCore.UNPREPARED if there are no parameters. prepareSql = TdsCore.UNPREPARED; } if (prepareSql == TdsCore.PREPARE) { // FIXME - Added caching of PREPARED and PREPEXEC handles... procName = prepareCursor(sql, parameters); } if (TdsCore.isPreparedProcedureName(procName)) { ParamInfo[] params = new ParamInfo[5 + parameters.length]; // Parameter declarations for (int i = 0; i < parameters.length; i++) { TdsData.getNativeType(statement.connection, parameters[i]); } System.arraycopy(parameters, 0, params, 5, parameters.length); // Setup statement handle param params[0] = new ParamInfo(); params[0].isSet = true; params[0].jdbcType = Types.INTEGER; params[0].value = new Integer(procName); // Setup cursor handle param params[1] = new ParamInfo(); params[1].isSet = true; params[1].jdbcType = Types.INTEGER; params[1].isOutput = true; // Setup scroll options params[2] = new ParamInfo(); params[2].isSet = true; params[2].jdbcType = Types.INTEGER; params[2].value = new Integer(scrollOpt); params[2].isOutput = true; // Setup concurrency options params[3] = new ParamInfo(); params[3].isSet = true; params[3].jdbcType = Types.INTEGER; params[3].value = new Integer(ccOpt); params[3].isOutput = true; // Setup numRows parameter params[4] = new ParamInfo(); params[4].isSet = true; params[4].jdbcType = Types.INTEGER; params[4].isOutput = true; parameters = params; // Use sp_cursorexecute approach procName = "sp_cursorexecute"; } else if (prepareSql == TdsCore.PREPEXEC) { ParamInfo[] params = new ParamInfo[7 + parameters.length]; // Parameter declarations for (int i = 0; i < parameters.length; i++) { TdsData.getNativeType(statement.connection, parameters[i]); } System.arraycopy(parameters, 0, params, 7, parameters.length); // Setup statement handle param params[0] = new ParamInfo(); params[0].isSet = true; params[0].jdbcType = Types.INTEGER; params[0].isOutput = true; // Setup cursor handle param params[1] = new ParamInfo(); params[1].isSet = true; params[1].jdbcType = Types.INTEGER; params[1].isOutput = true; // Setup parameter definitions params[2] = new ParamInfo(); params[2].isSet = true; params[2].jdbcType = Types.LONGVARCHAR; params[2].value = Support.getParameterDefinitions(parameters); params[2].isUnicode = true; // Setup statement param params[3] = new ParamInfo(); params[3].isSet = true; params[3].jdbcType = Types.LONGVARCHAR; params[3].value = Support.substituteParamMarkers(sql, parameters); params[3].isUnicode = true; // Setup scroll options params[4] = new ParamInfo(); params[4].isSet = true; params[4].jdbcType = Types.INTEGER; params[4].value = new Integer(scrollOpt); params[4].isOutput = true; // Setup concurrency options params[5] = new ParamInfo(); params[5].isSet = true; params[5].jdbcType = Types.INTEGER; params[5].value = new Integer(ccOpt); params[5].isOutput = true; // Setup numRows parameter params[6] = new ParamInfo(); params[6].isSet = true; params[6].jdbcType = Types.INTEGER; params[6].isOutput = true; parameters = params; // Use sp_cursorprepexec approach procName = "sp_cursorprepexec"; } else { ParamInfo[] params; if (parameters == null || parameters.length == 0) { params = new ParamInfo[5]; } else { params = new ParamInfo[6 + parameters.length]; // Parameter declarations for (int i = 0; i < parameters.length; i++) { TdsData.getNativeType(statement.connection, parameters[i]); } System.arraycopy(parameters, 0, params, 6, parameters.length); if (procName == null) { // Need to substitute values for param markers sql = Support.substituteParameters(sql, parameters); parameters = null; } else { StringBuffer buf = new StringBuffer(64); buf.append("exec ").append(procName).append(' '); for (int i = 0; i < parameters.length; i++) { if (i != 0) { buf.append(','); } if (parameters[i].name != null) { buf.append(parameters[i].name); } else { buf.append("@P").append(i); } // SAfe Doesn't actually work, because if the stored procedure // does anything else than the SELECT (even a RETURN or // SET) the sp_cursoropen will fail. //if (procedureParams[i].isOutput) { // buf.append(" output"); //} // } sql = buf.toString(); // Per Mike's comment: // https://sourceforge.net/tracker/index.php?func=detail&aid=1013819&group_id=33291&atid=407762 // The 0x1000 tells the server that there is a parameter // definition and user parameters present. If this flag is // not set the driver will ignore the additional parameters. scrollOpt = scrollOpt | 0x1000; // Setup parameter definitions params[5] = new ParamInfo(); params[5].isSet = true; params[5].jdbcType = Types.LONGVARCHAR; params[5].value = Support.getParameterDefinitions(parameters); params[5].isUnicode = true; } } // Setup cursor handle param params[0] = new ParamInfo(); params[0].isSet = true; params[0].jdbcType = Types.INTEGER; params[0].isOutput = true; // Setup statement param params[1] = new ParamInfo(); params[1].isSet = true; params[1].jdbcType = Types.LONGVARCHAR; params[1].value = sql; params[1].isUnicode = true; // Setup scroll options params[2] = new ParamInfo(); params[2].isSet = true; params[2].jdbcType = Types.INTEGER; params[2].value = new Integer(scrollOpt); params[2].isOutput = true; // Setup concurrency options params[3] = new ParamInfo(); params[3].isSet = true; params[3].jdbcType = Types.INTEGER; params[3].value = new Integer(ccOpt); params[3].isOutput = true; // Setup numRows parameter params[4] = new ParamInfo(); params[4].isSet = true; params[4].jdbcType = Types.INTEGER; params[4].isOutput = true; parameters = params; // Use sp_cursoropen approach procName = "sp_cursoropen"; } retVal = null; tds.executeSQL(null, procName, parameters, false, statement.getQueryTimeout(), 0); while (!tds.getMoreResults() && !tds.isEndOfResponse()); if (tds.isResultSet()) { this.columns = copyInfo(tds.getColumns()); this.columnCount = getColumnCount(columns); } else { statement.getMessages().addException(new SQLException( Messages.get("error.statement.noresult"), "24000")); } tds.clearResponseQueue(); statement.messages.checkErrors(); retVal = tds.getReturnStatus(); int actualScroll; int actualCc; if (TdsCore.isPreparedProcedureName(procName)) { cursorHandle = (Integer) parameters[1].value; actualScroll = ((Number) parameters[2].value).intValue(); actualCc = ((Number) parameters[3].value).intValue(); } else if (prepareSql == TdsCore.PREPEXEC) { Integer statementHandle = (Integer) parameters[0].value; cursorHandle = (Integer) parameters[1].value; actualScroll = ((Number) parameters[4].value).intValue(); actualCc = ((Number) parameters[5].value).intValue(); rowsInResult = ((Number) parameters[6].value).intValue(); } else { cursorHandle = (Integer) parameters[0].value; actualScroll = ((Number) parameters[2].value).intValue(); actualCc = ((Number) parameters[3].value).intValue(); rowsInResult = ((Number) parameters[4].value).intValue(); } if ((actualScroll != (scrollOpt & 0xFFF)) || (actualCc != ccOpt)) { if (actualScroll != scrollOpt) { switch (actualScroll) { case CURSOR_TYPE_FORWARD: this.resultSetType = TYPE_FORWARD_ONLY; break; case CURSOR_TYPE_STATIC: this.resultSetType = TYPE_SCROLL_INSENSITIVE; break; case CURSOR_TYPE_DYNAMIC: case CURSOR_TYPE_KEYSET: this.resultSetType = TYPE_SCROLL_SENSITIVE; break; default: statement.getMessages().addWarning(new SQLWarning( Messages.get("warning.cursortye", Integer.toString(actualScroll)), "01000")); } } if (actualCc != ccOpt) { switch (actualCc) { case CURSOR_CONCUR_READ_ONLY: concurrency = CONCUR_READ_ONLY; break; case CURSOR_CONCUR_SCROLL_LOCKS: case CURSOR_CONCUR_OPTIMISTIC: concurrency = CONCUR_UPDATABLE; break; default: statement.getMessages().addWarning(new SQLWarning( Messages.get("warning.concurtype", Integer.toString(actualCc)), "01000")); } } // SAfe This warning goes to the Statement, not the ResultSet statement.addWarning(new SQLWarning( Messages.get("warning.cursordowngraded"), "01000")); } if ((retVal == null) || (retVal.intValue() != 0)) { throw new SQLException(Messages.get("error.resultset.openfail"), "24000"); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f18464865cbac496cd34ae72689b9db6c38ac640/MSCursorResultSet.java/buggy/src/main/net/sourceforge/jtds/jdbc/MSCursorResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3347,
1684,
12,
780,
1847,
16,
17311,
514,
5418,
461,
16,
17311,
3014,
966,
8526,
1472,
13,
565,
1216,
6483,
288,
3639,
399,
2377,
4670,
268,
2377,
273,
3021,
18,
588,
56,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3347,
1684,
12,
780,
1847,
16,
17311,
514,
5418,
461,
16,
17311,
3014,
966,
8526,
1472,
13,
565,
1216,
6483,
288,
3639,
399,
2377,
4670,
268,
2377,
273,
3021,
18,
588,
56,
23... |
MailboxIndex mbidx, int chunkSize) throws IOException, ServiceException { } | MailboxIndex mbidx, int chunkSize) throws IOException, ServiceException { } | protected void prepare(Mailbox mbx, ZimbraQueryResultsImpl res, MailboxIndex mbidx, int chunkSize) throws IOException, ServiceException { } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c2968386a64d285ddcd668a68b39b84d790490b4/RemoteQueryOperation.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/RemoteQueryOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
12,
30239,
4903,
92,
16,
2285,
381,
15397,
1138,
3447,
2828,
400,
16,
1082,
202,
30239,
1016,
4903,
3465,
16,
509,
17791,
13,
1216,
1860,
16,
16489,
288,
202,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
12,
30239,
4903,
92,
16,
2285,
381,
15397,
1138,
3447,
2828,
400,
16,
1082,
202,
30239,
1016,
4903,
3465,
16,
509,
17791,
13,
1216,
1860,
16,
16489,
288,
202,
97,
... |
public Long lookup(String name) { | public synchronized Long lookup(String name) { | public Long lookup(String name) { long oid = DataSpace.INVALID_ID; try { getNameStmnt.setString(1, name); ResultSet rs = getNameStmnt.executeQuery(); getNameStmnt.getConnection().commit(); if (rs.next()) { oid = rs.getLong("OBJID"); } rs.close(); } catch (SQLException e) { e.printStackTrace(); } return oid; } | 48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/89f1c75bb92c16a52f7ee7d86c9006bf25494bac/HadbDataSpace.java/buggy/src/com/sun/gi/objectstore/tso/dataspace/HadbDataSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3407,
3689,
12,
780,
508,
13,
288,
202,
5748,
7764,
273,
1910,
3819,
18,
9347,
67,
734,
31,
202,
698,
288,
202,
565,
1723,
510,
21818,
18,
542,
780,
12,
21,
16,
508,
1769,
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,
3407,
3689,
12,
780,
508,
13,
288,
202,
5748,
7764,
273,
1910,
3819,
18,
9347,
67,
734,
31,
202,
698,
288,
202,
565,
1723,
510,
21818,
18,
542,
780,
12,
21,
16,
508,
1769,
202,
... |
else throw new RuntimeException("Event notification set size exceeded"); | notificationSet[count++] = rec; | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { ListenerRecord rec = current.listeners[i]; if (rec.useCapture != capture) { continue; } if (!e.type.equals (rec.type)) { continue; } if (count < notificationSet.length) { notificationSet[count++] = rec; } else // XXX fire up some cheap growth algorithm throw new RuntimeException("Event notification set size exceeded"); } // Notify just those listeners e.currentNode = current; for (int i = 0; i < count; i++) { try { // Late in the DOM CR process (3rd or 4th CR?) the // removeEventListener spec became asymmetric with respect // to addEventListener ... effect is now immediate. for (int j = 0; j < current.nListeners; j++) { if (current.listeners[j].equals(notificationSet[i])) { notificationSet[i].listener.handleEvent(e); break; } } } catch (Exception x) { // ignore all exceptions } notificationSet[i] = null; // free for GC } } | 56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/DomNode.java/clean/libjava/gnu/xml/dom/DomNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
5066,
907,
12,
8832,
1133,
425,
16,
12900,
12965,
907,
783,
16,
12900,
1250,
7477,
16,
12900,
10652,
2115,
8526,
3851,
694,
13,
225,
288,
565,
509,
1056,
273,
374,
31,
565,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5066,
907,
12,
8832,
1133,
425,
16,
12900,
12965,
907,
783,
16,
12900,
1250,
7477,
16,
12900,
10652,
2115,
8526,
3851,
694,
13,
225,
288,
565,
509,
1056,
273,
374,
31,
565,
3... |
ruby.defineGlobalFunction("open", CallbackFactory.getSingletonMethod(RubyGlobal.class, "open", RubyString.class)); | ruby.defineGlobalFunction("open", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "open")); | public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter); ruby.defineHookedVariable("$\\", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$,", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$.", RubyFixnum.one(ruby), null, new LineNumberSetter()); ruby.defineVirtualVariable("$_", lastlineAccessor, lastlineAccessor); ruby.defineHookedVariable("$!", ruby.getNil(), null, new ErrorInfoSetter()); ruby.defineVirtualVariable("$SAFE", safeAccessor, safeAccessor); RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass()); ruby.defineHookedVariable("$stdin", stdin, null, new StdInSetter()); ruby.defineHookedVariable("$stdout", stdout, null, new StdOutSetter()); ruby.defineHookedVariable("$stderr", stderr, null, new StdErrSetter()); ruby.defineHookedVariable("$>", stdout, null, new DefSetter()); ruby.defineHookedVariable("$defout", stdout, null, new DefSetter()); ruby.defineGlobalConstant("STDIN", stdin); ruby.defineGlobalConstant("STDOUT", stdout); ruby.defineGlobalConstant("STDERR", stderr); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(ruby); argsFile.initArgsFile(); // Global functions // IO, $_ String ruby.defineGlobalFunction("open", CallbackFactory.getSingletonMethod(RubyGlobal.class, "open", RubyString.class)); ruby.defineGlobalFunction("format", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gets", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gets")); ruby.defineGlobalFunction("p", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "p")); ruby.defineGlobalFunction("print", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "print")); ruby.defineGlobalFunction("printf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "printf")); ruby.defineGlobalFunction("puts", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "puts")); ruby.defineGlobalFunction("readline", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readline")); ruby.defineGlobalFunction("readlines", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readlines")); ruby.defineGlobalFunction("sprintf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gsub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub_bang")); ruby.defineGlobalFunction("gsub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub")); ruby.defineGlobalFunction("sub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub_bang")); ruby.defineGlobalFunction("sub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub")); ruby.defineGlobalFunction("chop!", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop_bang")); ruby.defineGlobalFunction("chop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop")); ruby.defineGlobalFunction("chomp!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp_bang")); ruby.defineGlobalFunction("chomp", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp")); ruby.defineGlobalFunction("split", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "split")); ruby.defineGlobalFunction("scan", CallbackFactory.getSingletonMethod(RubyGlobal.class, "scan", RubyObject.class)); ruby.defineGlobalFunction("load", CallbackFactory.getSingletonMethod(RubyGlobal.class, "load", RubyString.class)); //FIXME autoload method needs to be implemented //ruby.defineGlobalFunction("autoload", CallbackFactory.getSingletonMethod(RubyGlobal.class, "autoload", RubyString.class)); ruby.defineGlobalFunction("raise", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "raise")); ruby.defineGlobalFunction("require", CallbackFactory.getSingletonMethod(RubyGlobal.class, "require", RubyString.class)); ruby.defineGlobalFunction("global_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "global_variables")); ruby.defineGlobalFunction("local_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "local_variables")); ruby.defineGlobalFunction("block_given?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("lambda", CallbackFactory.getSingletonMethod(RubyGlobal.class, "lambda")); ruby.defineGlobalFunction("proc", CallbackFactory.getSingletonMethod(RubyGlobal.class, "proc")); ruby.defineGlobalFunction("loop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "loop")); ruby.defineGlobalFunction("eval", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "eval", RubyString.class)); ruby.defineGlobalFunction("singleton_method_added", CallbackFactory.getNilMethod()); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/7f0711e7cbb2b441d095c8d8c0838be2b630638c/RubyGlobal.java/clean/org/jruby/RubyGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
752,
19834,
12,
54,
10340,
22155,
13,
288,
3639,
514,
8465,
533,
8465,
273,
394,
514,
8465,
5621,
3639,
6825,
1369,
8235,
1142,
1369,
8235,
273,
394,
6825,
1369,
8235,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
19834,
12,
54,
10340,
22155,
13,
288,
3639,
514,
8465,
533,
8465,
273,
394,
514,
8465,
5621,
3639,
6825,
1369,
8235,
1142,
1369,
8235,
273,
394,
6825,
1369,
8235,
562... |
public org.quickfix.field.MaxShow getMaxShow() throws FieldNotFound { org.quickfix.field.MaxShow value = new org.quickfix.field.MaxShow(); | public quickfix.field.MaxShow getMaxShow() throws FieldNotFound { quickfix.field.MaxShow value = new quickfix.field.MaxShow(); | public org.quickfix.field.MaxShow getMaxShow() throws FieldNotFound { org.quickfix.field.MaxShow value = new org.quickfix.field.MaxShow(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
7288,
5706,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
460,
273,
394,
2358,
18,
19525,
904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
7288,
5706,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
460,
273,
394,
2358,
18,
19525,
904,
... |
iterateStatesOID((Locked) db.load(Locked.class, oid.getId(), Database.ReadOnly), Database.ReadOnly); | iterateStatesOID((Locked) _db.load(Locked.class, oid.getId(), Database.ReadOnly), Database.ReadOnly); | public void testReadOnlyOidEmpty() throws Exception { long start = System.currentTimeMillis(); db = (DatabaseImpl) _jdo.getDatabase(); db.getCacheManager().expireCache(); db.begin(); long begin = System.currentTimeMillis(); OQLQuery query = db.getOQLQuery( "CALL SQL select PTF_LOCKED.ID as ID " + "from PTF_LOCKED order by PTF_LOCKED.ID " + "AS ptf.jdo.rel1toN.OID"); QueryResults results = query.execute(Database.ReadOnly); long result = System.currentTimeMillis(); initIterateQueriesOID(); int count = 0; while (results.hasMore()) { OID oid = (OID) results.next(); iterateStatesOID((Locked) db.load(Locked.class, oid.getId(), Database.ReadOnly), Database.ReadOnly); count++; } long iterate = System.currentTimeMillis(); db.commit(); long commit = System.currentTimeMillis(); db.close(); long close = System.currentTimeMillis(); LOG.info(format("ReadOnlyOidEmpty", df.format(begin - start), df.format(result- begin), df.format(iterate - result), df.format(commit - iterate), df.format(close - commit))); } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/dd1523da0d80afe68cbe531453f26c85802eb5e5/TestLoadUni1toN.java/buggy/trunk/castor/src/tests/ptf/jdo/rel1toN/TestLoadUni1toN.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12066,
19105,
1921,
1435,
1216,
1185,
288,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
7734,
1319,
273,
261,
4254,
2828,
13,
389,
78,
2896,
18,
588,
4254,
5621,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12066,
19105,
1921,
1435,
1216,
1185,
288,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
7734,
1319,
273,
261,
4254,
2828,
13,
389,
78,
2896,
18,
588,
4254,
5621,
36... |
if ( fields[i] == null ) stmt.setNull( count++, _fields[i].columns[0].sqlType ); else stmt.setObject( count++, toSQL( i, 0, fields[i]), _fields[i].columns[0].sqlType ); | SQLTypes.setObject( stmt, count++, toSQL( i, 0, fields[i]), _fields[i].columns[0].sqlType ); | public Object store( Object conn, Object[] fields, Object identity, Object[] original, Object stamp ) throws ObjectModifiedException, ObjectDeletedException, PersistenceException { PreparedStatement stmt = null; int count; try { // Must store record in parent table first. // All other dependents are stored independently. if ( _extends != null ) _extends.store( conn, fields, identity, original, stamp ); stmt = ( (Connection) conn ).prepareStatement( original == null ? _sqlStore : _sqlStoreDirty ); count = 1; // bind fields of the row to be stored into the preparedStatement for ( int i = 0 ; i < _fields.length ; ++i ) { if ( _fields[ i ].store ) { if ( fields[i] == null ) { for ( int j=0; j < _fields[i].columns.length; j++ ) stmt.setNull( count++, _fields[i].columns[j].sqlType ); } else if ( fields[i] instanceof Complex ) { Complex inner = (Complex)fields[i]; if ( inner.size() != _fields[i].columns.length ) throw new PersistenceException( "Size of complex field mismatch!" ); for ( int j=0; j<_fields[i].columns.length; j++ ) { if ( inner == null || inner.get(j) == null ) stmt.setNull( count++, _fields[i].columns[j].sqlType ); else stmt.setObject( count++, toSQL( i, j, inner.get(j)), _fields[i].columns[j].sqlType ); } } else { if ( _fields[i].columns.length != 1 ) throw new PersistenceException( "Complex field expected! "); if ( fields[i] == null ) stmt.setNull( count++, _fields[i].columns[0].sqlType ); else stmt.setObject( count++, toSQL( i, 0, fields[i]), _fields[i].columns[0].sqlType ); } } } // bind the identity of the row to be stored into the preparedStatement if ( identity instanceof Complex ) { Complex id = (Complex) identity; if ( id.size() != _ids.length || _ids.length <= 1 ) throw new PersistenceException( "Size of complex field mismatched!"); for ( int i=0; i<_ids.length; i++ ) stmt.setObject( count++, idToSQL( i, id.get(i) ) ); } else { if ( _ids.length != 1 ) throw new PersistenceException( "Complex field expected!" ); stmt.setObject( count++, idToSQL( 0, identity ) ); } // bind the old fields of the row to be stored into the preparedStatement if ( original != null ) { for ( int i = 0 ; i < _fields.length ; ++i ) { if ( _fields[ i ].store && _fields[i].dirtyCheck ) { if ( original[i] == null ) { for ( int j=0; j < _fields[i].columns.length; j++ ) stmt.setNull( count++, _fields[i].columns[j].sqlType ); } else if ( original[i] instanceof Complex ) { Complex inner = (Complex)original[i]; if ( inner.size() != _fields[i].columns.length ) throw new PersistenceException( "Size of complex field mismatch!" ); for ( int j=0; j<_fields[i].columns.length; j++ ) { if ( inner == null || inner.get(j) == null ) stmt.setNull( count++, _fields[i].columns[j].sqlType ); else stmt.setObject( count++, toSQL( i, j, inner.get(j)), _fields[i].columns[j].sqlType ); } } else { if ( _fields[i].columns.length != 1 ) throw new PersistenceException( "Complex field expected! "); if ( original[i] == null ) stmt.setNull( count++, _fields[i].columns[0].sqlType ); else stmt.setObject( count++, toSQL( i, 0, original[i]), _fields[i].columns[0].sqlType ); } } } } if ( stmt.executeUpdate() <= 0 ) { // SAP DB returns -1 here // If no update was performed, the object has been previously // removed from persistent storage or has been modified if // dirty checking. Determine which is which. stmt.close(); if ( original != null ) { stmt = ( (Connection) conn ).prepareStatement( /*_pkLookup*/_sqlLoad ); // bind the identity to the prepareStatement count = 1; if ( identity instanceof Complex ) { Complex id = (Complex) identity; for ( int i=0; i<_ids.length; i++ ) stmt.setObject( count++, idToSQL( i, id.get(i) ) ); } else { stmt.setObject( count++, idToSQL( 0, identity ) ); } ResultSet res = stmt.executeQuery(); int c = res.getMetaData().getColumnCount(); if ( res.next() ) { stmt.close(); throw new ObjectModifiedException( Messages.format("persist.objectModified", _clsDesc.getJavaClass().getName(), identity ) ); } stmt.close(); } throw new ObjectDeletedException( Messages.format("persist.objectDeleted", _clsDesc.getJavaClass().getName(), identity) ); } stmt.close(); return null; } catch ( SQLException except ) { except.printStackTrace(); try { // Close the insert/select statement if ( stmt != null ) stmt.close(); } catch ( SQLException except2 ) { } throw new PersistenceException( Messages.format("persist.nested", except) ); } } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/5b575b593103b1bf5287e3f8c280c637f3daebf0/SQLEngine.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/jdo/engine/SQLEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1707,
12,
1033,
1487,
16,
1033,
8526,
1466,
16,
1033,
4215,
16,
12900,
1033,
8526,
2282,
16,
1033,
14429,
262,
3639,
1216,
1033,
4575,
503,
16,
1033,
7977,
503,
16,
13381,
503... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
12,
1033,
1487,
16,
1033,
8526,
1466,
16,
1033,
4215,
16,
12900,
1033,
8526,
2282,
16,
1033,
14429,
262,
3639,
1216,
1033,
4575,
503,
16,
1033,
7977,
503,
16,
13381,
503... |
else if (i == RBRACKET || i == WHITE_SPACE || i == C_STYLE_COMMENT || i == DOC_COMMENT || i == END_OF_LINE_COMMENT) { | else if (i == RBRACKET || i == WHITE_SPACE || i == C_STYLE_COMMENT || i == JavaDocElementType.DOC_COMMENT || i == END_OF_LINE_COMMENT) { | public PsiType getReturnType() { if (myCachedIsConstructor == Boolean.TRUE) return null; if (getTreeElement() != null){ PsiTypeElement typeElement = getReturnTypeElement(); if (typeElement == null) return null; int arrayCount = 0; ASTNode parameterList = SourceTreeToPsiMap.psiElementToTree(getParameterList()); Loop: for(ASTNode child = parameterList.getTreeNext(); child != null; child = child.getTreeNext()){ IElementType i = child.getElementType(); if (i == LBRACKET) { arrayCount++; } else if (i == RBRACKET || i == WHITE_SPACE || i == C_STYLE_COMMENT || i == DOC_COMMENT || i == END_OF_LINE_COMMENT) { } else { break Loop; } } PsiType type; if (!(typeElement instanceof PsiTypeElementImpl)) { type = typeElement.getType(); } else { type = ((PsiTypeElementImpl)typeElement).getDetachedType(this); } for (int i = 0; i < arrayCount; i++) { type = type.createArrayType(); } return type; } else{ myCachedTypeText = getRepositoryManager().getMethodView().getReturnTypeText(getRepositoryId()); if (myCachedTypeText == null) return null; try{ return getManager().getElementFactory().createTypeFromText(myCachedTypeText, this); } catch(IncorrectOperationException e){ LOG.error(e); return null; } } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/PsiMethodImpl.java/clean/source/com/intellij/psi/impl/source/PsiMethodImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
453,
7722,
559,
18209,
1435,
288,
565,
309,
261,
4811,
9839,
2520,
6293,
422,
3411,
18,
18724,
13,
327,
446,
31,
565,
309,
261,
588,
2471,
1046,
1435,
480,
446,
15329,
1377,
453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
7722,
559,
18209,
1435,
288,
565,
309,
261,
4811,
9839,
2520,
6293,
422,
3411,
18,
18724,
13,
327,
446,
31,
565,
309,
261,
588,
2471,
1046,
1435,
480,
446,
15329,
1377,
453,
... |
public boolean supportsCustomEditor() { return false; } | public boolean supportsCustomEditor() { return false; } | public boolean supportsCustomEditor() { return false; } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/d1d54223348b2f353d3505c9de3cf685bdb5301f/PropertyEditorSupport.java/clean/libjava/java/beans/PropertyEditorSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
3802,
6946,
1435,
288,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
3802,
6946,
1435,
288,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
requestOf = newRequestOf; | requestOf = newRequestOf; | public void setRequestInterface(ServerRequestInterface newRequestOf) { requestOf = newRequestOf; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SIPServerTransaction.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPServerTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12475,
1358,
12,
2081,
13398,
7428,
951,
13,
288,
3639,
590,
951,
273,
7428,
951,
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... | [
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
12475,
1358,
12,
2081,
13398,
7428,
951,
13,
288,
3639,
590,
951,
273,
7428,
951,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
jj_la1[25] = jj_gen; | jj_la1[26] = jj_gen; | final public BracedBody ConcreteMethodBody() throws ParseException { BracedBody body; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: jj_consume_token(LBRACE); break; default: jj_la1[25] = jj_gen; _errorChar('{'); } body = BracedBody(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case RBRACE: jj_consume_token(RBRACE); break; default: jj_la1[26] = jj_gen; _errorChar('}'); } {if (true) return body;} throw new Error("Missing return statement in function"); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/8e9d6d4a3458f4fb8d197d118149328dfb2ae150/ACParser.java/clean/drjava/src/edu/rice/cs/drjava/model/autocomplete/parser/ACParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
605,
354,
3263,
2250,
735,
6883,
1305,
2250,
1435,
1216,
10616,
288,
225,
605,
354,
3263,
2250,
1417,
31,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
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,
282,
727,
1071,
605,
354,
3263,
2250,
735,
6883,
1305,
2250,
1435,
1216,
10616,
288,
225,
605,
354,
3263,
2250,
1417,
31,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
... |
txt.append(keys[i].toString()).append("=").append(get(keys[i])); | try { txt.append(keys[i].toString()).append(KEYVALSEPARATOR).append(URLEncoder.encode((String)get(keys[i]),"UTF-8")); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } | public String toString() { StringBuffer txt = new StringBuffer(); Object[] keys = keySet().toArray(); for (int i = 0; i < keys.length; i++) { txt.append(keys[i].toString()).append("=").append(get(keys[i])); if (i < keys.length - 1) txt.append(","); } return txt.toString(); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/1473065bd2ff79c77af7d6c44c38ab14435de4ac/Preferences.java/clean/contrib/web2/src/main/java/org/apache/nutch/webapp/common/Preferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
6463,
273,
394,
6674,
5621,
565,
1033,
8526,
1311,
273,
7685,
7675,
31447,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
6463,
273,
394,
6674,
5621,
565,
1033,
8526,
1311,
273,
7685,
7675,
31447,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
... |
return ((EObject)object).eClass().getEPackage() == modelPackage; | return ((EObject) object).eClass().getEPackage() == modelPackage; | public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ComponentAdapterFactory.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/util/ComponentAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
1733,
22405,
12,
921,
733,
13,
565,
288,
3639,
309,
261,
1612,
422,
938,
2261,
13,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
1612,
1276,
8091,
13,
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,
1250,
353,
1733,
22405,
12,
921,
733,
13,
565,
288,
3639,
309,
261,
1612,
422,
938,
2261,
13,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
1612,
1276,
8091,
13,
3639,... |
if (isDisposed()) return; | if (isDisposed()) { return; } | public void propertyChanged(Object source, int property) { if (isDisposed()) return; if (source instanceof IPresentablePart) { IPresentablePart part = (IPresentablePart) source; childPropertyChanged(part, property); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/NativeStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/NativeStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
5033,
12,
921,
1084,
16,
509,
1272,
13,
288,
5411,
309,
261,
291,
1669,
7423,
10756,
7734,
327,
31,
5411,
309,
261,
3168,
1276,
2971,
1581,
429,
1988,
13,
288,
7734,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1272,
5033,
12,
921,
1084,
16,
509,
1272,
13,
288,
5411,
309,
261,
291,
1669,
7423,
10756,
7734,
327,
31,
5411,
309,
261,
3168,
1276,
2971,
1581,
429,
1988,
13,
288,
7734,
29... |
public Node appendChild(Node newChild) throws DOMException | public Node appendChild(Node newChild) throws DOMException | public Node appendChild(Node newChild) throws DOMException { int type = ((ElemTemplateElement)newChild).getXSLToken(); switch(type) { // char-instructions case Constants.ELEMNAME_TEXTLITERALRESULT: case Constants.ELEMNAME_APPLY_TEMPLATES: case Constants.ELEMNAME_APPLY_IMPORTS: case Constants.ELEMNAME_CALLTEMPLATE: case Constants.ELEMNAME_FOREACH: case Constants.ELEMNAME_VALUEOF: case Constants.ELEMNAME_COPY_OF: case Constants.ELEMNAME_NUMBER: case Constants.ELEMNAME_CHOOSE: case Constants.ELEMNAME_IF: case Constants.ELEMNAME_TEXT: case Constants.ELEMNAME_COPY: case Constants.ELEMNAME_VARIABLE: case Constants.ELEMNAME_MESSAGE: // instructions // case Constants.ELEMNAME_PI: // case Constants.ELEMNAME_COMMENT: // case Constants.ELEMNAME_ELEMENT: // case Constants.ELEMNAME_ATTRIBUTE: break; default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()}); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemPI.java/clean/src/org/apache/xalan/templates/ElemPI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
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,
282,
1071,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
12,
... |
if ( oneVisibleSerie ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; } | dRealHeight = Math.max( dRealHeight, dHeight ); dColumnWidth = dMaxW + dHorizonalReservedSpace; if ( dExtraWidth + dColumnWidth > dAvailableWidth + dSafeSpacing ) { } else { legendItems.addAll( columnList ); if ( oneVisibleSerie ) { dExtraWidth += dMaxW + dHorizonalReservedSpace; if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dExtraWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth - dSeparatorThickness / 2, 0 ), 0, dRealHeight, null, 0, null ) ); } } } columnList.clear( ); | public final Size compute( IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc ) throws ChartException { // THREE CASES: // 1. ALL SERIES IN ONE ARRAYLIST // 2. ONE SERIES PER ARRAYLIST // 3. ALL OTHERS final Legend lg = cm.getLegend( ); if ( !lg.isSetOrientation( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.orientation.horzvert", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } if ( !lg.isSetDirection( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.direction.tblr", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation orientation = lg.getOrientation( ); final Direction direction = lg.getDirection( ); Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); ClientArea ca = lg.getClientArea( ); LineAttributes lia = ca.getOutline( ); double dSeparatorThickness = lia.getThickness( ); double dWidth = 0, dHeight = 0; la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double dItemHeight = itm.getFullHeight( ); Series se; List al; double dScale = xs.getDpiResolution( ) / 72d; Insets insCA = ca.getInsets( ).scaledInstance( dScale ); final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); final double maxWrappingSize = lg.getWrappingSize( ) * dScale; Series seBase; final List legendItems = new ArrayList( ); final double dHorizontalSpacing = 3 * dScale; final double dVerticalSpacing = 3 * dScale; // Get maximum block width/height available Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); double dAvailableWidth = boFull.getWidth( ) - ins.getLeft( ) - ins.getRight( ) - lgIns.getLeft( ) - lgIns.getRight( ); double dAvailableHeight = boFull.getHeight( ) - ins.getTop( ) - ins.getBottom( ) - lgIns.getTop( ) - lgIns.getBottom( ) - cm.getTitle( ) .getBounds( ) .scaledInstance( dScale ) .getHeight( ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; int[] filteredMinSliceEntry = null; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { Map renders = rtc.getSeriesRenderers( ); if ( renders != null && !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); EList sdA = sdBase.getSeriesDefinitions( ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdA.toArray( new SeriesDefinition[sdA.size( )] ); DataSetIterator dsiOrtho = null; BaseRenderer br; boolean started = false; ENTRANCE: for ( int i = 0; i < sdOrtho.length; i++ ) { List sdRuntimeSA = sdOrtho[i].getRunTimeSeries( ); Series[] alRuntimeSeries = (Series[]) sdRuntimeSA.toArray( new Series[sdRuntimeSA.size( )] ); for ( int j = 0; j < alRuntimeSeries.length; j++ ) { try { dsiOrtho = new DataSetIterator( alRuntimeSeries[j].getDataSet( ) ); LegendItemRenderingHints lirh = (LegendItemRenderingHints) renders.get( alRuntimeSeries[j] ); if ( lirh == null ) { filteredMinSliceEntry = null; break ENTRANCE; } br = lirh.getRenderer( ); // ask each render for filtered min slice info int[] fsa = br.getFilteredMinSliceEntry( dsiOrtho ); if ( fsa != null && fsa.length > 0 ) { bMinSliceApplied = true; } if ( !started ) { started = true; filteredMinSliceEntry = fsa; } else { // get duplicate indices for all renderers filteredMinSliceEntry = getDuplicateIndices( fsa, filteredMinSliceEntry ); if ( filteredMinSliceEntry == null || filteredMinSliceEntry.length == 0 ) { filteredMinSliceEntry = null; break ENTRANCE; } } } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } } } // assign a zero-length array for successive convenience if ( filteredMinSliceEntry == null ) { filteredMinSliceEntry = new int[0]; } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( orientation.getValue( ) == Orientation.VERTICAL ) { double dW, dMaxW = 0; double dRealHeight = 0, dExtraWidth = 0, dDeltaHeight; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dWidth += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (VERTICAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); boolean oneVisibleSerie = false; for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); if ( se.isVisible( ) ) { oneVisibleSerie = true; } else { continue; } Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( lgtext, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += dExtraHeight + 2 * dScale; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } // SETUP HORIZONTAL SEPARATOR SPACING if ( oneVisibleSerie && j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth, dHeight - dSeparatorThickness / 2 ), dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, 0, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + MAX // ITEM WIDTH + RIGHT INSETS dWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dMaxW + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (VERTICAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); boolean oneVisibleSerie = false; for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); if ( se.isVisible( ) ) { oneVisibleSerie = true; } else { continue; } Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( lgtext, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += itm.getFullHeight( ) + 2 * dScale; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } if ( oneVisibleSerie ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; } dMaxW = 0; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = 0; // SETUP VERTICAL SEPARATOR SPACING if ( oneVisibleSerie && j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dExtraWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth - dSeparatorThickness / 2, 0 ), 0, dRealHeight, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dWidth += dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction.getName( ) }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else if ( orientation.getValue( ) == Orientation.HORIZONTAL ) { double dH, dMaxH = 0; double dRealWidth = 0, dExtraHeight = 0, dDeltaWidth; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dHeight += dExtraHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dWidth = Math.max( dWidth, dRealWidth ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (HORIZONTAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dWidth = 0; al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); boolean oneVisibleSerie = false; for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); if ( se.isVisible( ) ) { oneVisibleSerie = true; } else { continue; } Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( lgtext, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2 * dScale; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } if ( oneVisibleSerie ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; } dMaxH = 0; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = 0; // SETUP HORIZONTAL SEPARATOR SPACING if ( oneVisibleSerie && j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( 0, dExtraHeight - dSeparatorThickness / 2 ), dRealWidth, 0, null, 0, null ) ); } } dHeight += dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (HORIZONTAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); boolean oneVisibleSerie = false; for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); if ( se.isVisible( ) ) { oneVisibleSerie = true; } else { continue; } Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( lgtext, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2 * dScale; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } // SETUP VERTICAL SEPARATOR SPACING if ( oneVisibleSerie && j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dWidth - dSeparatorThickness / 2, dExtraHeight ), 0, dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing, null, 0, null ) ); } } dHeight += insCA.getTop( ) + dVerticalSpacing + insCA.getBottom( ) + dMaxH + dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.orientation", //$NON-NLS-1$ new Object[]{ orientation }, Messages.getResourceBundle( xs.getULocale( ) ) ); } // consider legend title size. Label lgTitle = lg.getTitle( ); Size titleSize = null; if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } int iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( rtc.isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } double shadowness = 3 * dScale; switch ( iTitlePos ) { case Position.ABOVE : case Position.BELOW : dHeight += bb.getHeight( ) + 2 * shadowness; dWidth = Math.max( dWidth, bb.getWidth( ) + 2 * shadowness ); break; case Position.LEFT : case Position.RIGHT : dWidth += bb.getWidth( ) + 2 * shadowness; dHeight = Math.max( dHeight, bb.getHeight( ) + 2 * shadowness ); break; } titleSize = SizeImpl.create( bb.getWidth( ) + 2 * shadowness, bb.getHeight( ) + 2 * shadowness ); } itm.dispose( ); // DISPOSE RESOURCE AFTER USE if ( rtc != null ) { LegendItemHints[] liha = (LegendItemHints[]) legendItems.toArray( new LegendItemHints[legendItems.size( )] ); // update context hints here. LegendLayoutHints lilh = new LegendLayoutHints( SizeImpl.create( dWidth, dHeight ), titleSize, bMinSliceApplied, sMinSliceLabel, liha ); rtc.setLegendLayoutHints( lilh ); } sz = SizeImpl.create( dWidth, dHeight ); return sz; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/bdbe857d641e2e27600409e7bb20f1950ed1536b/LegendBuilder.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
... |
StringWriter sw= new StringWriter(500); | StringWriter sw= new StringWriter(); | public static String filterStack(String stack) { if (!getPreference("stackfilter").equals("true")) return stack; StringWriter sw= new StringWriter(500); PrintWriter pw= new PrintWriter(sw); StringReader sr= new StringReader(stack); BufferedReader br= new BufferedReader(sr); String line; try { while ((line= br.readLine()) != null) { if (!filterLine(line)) pw.println(line); } } catch (Exception IOException) { return stack; // return the stack unfiltered } return sw.toString(); } | 45631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45631/a8ec4efa178afdbc7844e94d08ab38b811c7409a/BaseTestRunner.java/buggy/junit/runner/BaseTestRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
1034,
2624,
12,
780,
2110,
13,
288,
202,
202,
430,
16051,
588,
9624,
2932,
3772,
2188,
20387,
14963,
2932,
3767,
6,
3719,
1082,
202,
2463,
2110,
31,
6862,
202,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
1034,
2624,
12,
780,
2110,
13,
288,
202,
202,
430,
16051,
588,
9624,
2932,
3772,
2188,
20387,
14963,
2932,
3767,
6,
3719,
1082,
202,
2463,
2110,
31,
6862,
202,
780,
... |
if ((checkRule.action & ParserRule.IS_ESCAPE) == ParserRule.IS_ESCAPE) | if((checkRule.action & ParserRule.IS_ESCAPE) == ParserRule.IS_ESCAPE) | private boolean handleRule(ParserRule checkRule, boolean end) { pattern.array = (end ? checkRule.end : checkRule.start); pattern.offset = 0; pattern.count = pattern.array.length; if(!TextUtilities.regionMatches(context.rules.getIgnoreCase(), line,pos,pattern.array)) { return false; } //{{{ Check for an escape sequence if ((checkRule.action & ParserRule.IS_ESCAPE) == ParserRule.IS_ESCAPE) { escaped = !escaped; pos += pattern.count - 1; } else if (escaped) { escaped = false; pos += pattern.count - 1; } //}}} //{{{ Not inside a rule else if (context.inRule == null) { if((checkRule.action & ParserRule.AT_LINE_START) == ParserRule.AT_LINE_START) { if((((checkRule.action & ParserRule.MARK_PREVIOUS) != 0) ? lastOffset : pos) != line.offset) { return false; } } markKeyword((checkRule.action & ParserRule.MARK_PREVIOUS) != ParserRule.MARK_PREVIOUS); switch(checkRule.action & ParserRule.MAJOR_ACTIONS) { //{{{ SEQ case ParserRule.SEQ: tokenHandler.handleToken(checkRule.token, pos - line.offset,pattern.count,context); // a DELEGATE attribute on a SEQ changes the // ruleset from the end of the SEQ onwards ParserRuleSet delegateSet = checkRule.getDelegateRuleSet(this); if(delegateSet != null) { context = new LineContext(delegateSet, context.parent); keywords = context.rules.getKeywords(); } break; //}}} //{{{ SPAN, EOL_SPAN, MARK_FOLLOWING case ParserRule.SPAN: case ParserRule.EOL_SPAN: case ParserRule.MARK_FOLLOWING: context.inRule = checkRule; delegateSet = checkRule.getDelegateRuleSet(this); tokenHandler.handleToken( ((checkRule.action & ParserRule.EXCLUDE_MATCH) == ParserRule.EXCLUDE_MATCH ? context.rules.getDefault() : checkRule.token), pos - line.offset,pattern.count,context); context = new LineContext(delegateSet, context); keywords = context.rules.getKeywords(); break; //}}} //{{{ MARK_PREVIOUS case ParserRule.MARK_PREVIOUS: if ((checkRule.action & ParserRule.EXCLUDE_MATCH) == ParserRule.EXCLUDE_MATCH) { if(pos != lastOffset) { tokenHandler.handleToken( checkRule.token, lastOffset - line.offset, pos - lastOffset, context); } tokenHandler.handleToken( context.rules.getDefault(), pos - line.offset,pattern.count, context); } else { tokenHandler.handleToken(checkRule.token, lastOffset - line.offset, pos - lastOffset + pattern.count, context); } break; //}}} default: throw new InternalError("Unhandled major action"); } // move pos to last character of match sequence pos += (pattern.count - 1); lastOffset = pos + 1; // break out of inner for loop to check next char } //}}} return true; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/21e2cb67a4cc5f32345f0bd415fbf02b7a2b3ac2/TokenMarker.java/buggy/org/gjt/sp/jedit/syntax/TokenMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1640,
2175,
12,
2678,
2175,
866,
2175,
16,
1250,
679,
13,
202,
95,
202,
202,
4951,
18,
1126,
273,
261,
409,
692,
866,
2175,
18,
409,
294,
866,
2175,
18,
1937,
1769,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1640,
2175,
12,
2678,
2175,
866,
2175,
16,
1250,
679,
13,
202,
95,
202,
202,
4951,
18,
1126,
273,
261,
409,
692,
866,
2175,
18,
409,
294,
866,
2175,
18,
1937,
1769,
2... |
public boolean onBroughtToTop( IReportEditorPage prePage ) { if ( this.isMissingParameter( ) ) { if ( this.parameterDialog != null ) { this.parameterDialog.open( ); | public boolean onBroughtToTop(IReportEditorPage prePage) { if (this.isMissingParameter()) { if (this.parameterDialog != null) { this.parameterDialog.open(); | public boolean onBroughtToTop( IReportEditorPage prePage ) { if ( this.isMissingParameter( ) ) { if ( this.parameterDialog != null ) { this.parameterDialog.open( ); } return true; } if ( getEditorInput( ) != prePage.getEditorInput( ) ) { setInput( prePage.getEditorInput( ) ); } if ( prePage.isDirty( ) ) { prePage.doSave( null ); } if ( getBrowser( ) != null ) { display( ); } return true; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/464f907d246180ca04c84336398722e6d5245566/ReportPreviewFormPage.java/clean/UI/org.eclipse.birt.report.designer.ui.preview/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
603,
38,
303,
9540,
774,
3401,
12,
467,
4820,
6946,
1964,
675,
1964,
262,
202,
95,
202,
202,
430,
261,
333,
18,
291,
4841,
1662,
12,
262,
262,
202,
202,
95,
1082,
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,
225,
202,
482,
1250,
603,
38,
303,
9540,
774,
3401,
12,
467,
4820,
6946,
1964,
675,
1964,
262,
202,
95,
202,
202,
430,
261,
333,
18,
291,
4841,
1662,
12,
262,
262,
202,
202,
95,
1082,
202,... |
status.updateBuffers(); | status.updateBufferList(); | private void handleBufferUpdate(BufferUpdate msg) { Buffer _buffer = msg.getBuffer(); if(msg.getWhat() == BufferUpdate.CREATED) { status.updateBuffers(); /* When closing the last buffer, the BufferUpdate.CLOSED * handler doesn't call setBuffer(), because null buffers * are not supported. Instead, it waits for the subsequent * 'Untitled' file creation. */ if(buffer.isClosed()) setBuffer(jEdit.getFirstBuffer()); } else if(msg.getWhat() == BufferUpdate.CLOSED) { status.updateBuffers(); if(_buffer == buffer) { Buffer newBuffer = (recentBuffer != null ? recentBuffer : _buffer.getPrev()); if(newBuffer != null && !newBuffer.isClosed()) setBuffer(newBuffer); else if(jEdit.getBufferCount() != 0) setBuffer(jEdit.getFirstBuffer()); recentBuffer = null; } else if(_buffer == recentBuffer) recentBuffer = null; } else if(msg.getWhat() == BufferUpdate.LOAD_STARTED) { if(_buffer == buffer) { status.updateCaretStatus(); textArea.getPainter().repaint(); } } else if(msg.getWhat() == BufferUpdate.DIRTY_CHANGED) { if(_buffer == buffer) { status.updateCaretStatus(); if(buffer.isDirty()) status.updateBufferStatus(); else status.updateBuffers(); } } else if(msg.getWhat() == BufferUpdate.LOADED) { if(_buffer == buffer) { status.updateCaretStatus(); textArea.setCaretPosition(0); textArea.repaint(); status.updateBuffers(); } } else if(msg.getWhat() == BufferUpdate.MARKERS_CHANGED) { if(_buffer == buffer) textArea.getGutter().repaint(); } else if(msg.getWhat() == BufferUpdate.MODE_CHANGED) { if(_buffer == buffer) textArea.getPainter().repaint(); } } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/0ccaec2dceb7e61687dc6094fa6761613f0560ad/EditPane.java/clean/org/gjt/sp/jedit/EditPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
1892,
1891,
12,
1892,
1891,
1234,
13,
202,
95,
202,
202,
1892,
389,
4106,
273,
1234,
18,
588,
1892,
5621,
202,
202,
430,
12,
3576,
18,
588,
23801,
1435,
422,
3525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1892,
1891,
12,
1892,
1891,
1234,
13,
202,
95,
202,
202,
1892,
389,
4106,
273,
1234,
18,
588,
1892,
5621,
202,
202,
430,
12,
3576,
18,
588,
23801,
1435,
422,
3525,... |
m_pollerConfig.setNodeOutageProcessingEnabled(false); | m_pollerConfig.setNodeOutageProcessingEnabled(false); | public void testPolling() throws Exception { m_pollerConfig.setNodeOutageProcessingEnabled(false); // create a poll anticipator PollAnticipator anticipator = new PollAnticipator(); // register it with the interfaces services MockInterface iface = m_network.getInterface(1, "192.168.1.2"); iface.addAnticipator(anticipator); // // first ensure that polls are working while it is up // // anticipate three polls on all the interfaces services anticipator.anticipateAllServices(iface); anticipator.anticipateAllServices(iface); anticipator.anticipateAllServices(iface); // start the poller startDaemons(); // wait for the polls to occur while its up... 1 poll per second plus // overhead assertEquals(0, anticipator.waitForAnticipated(4000L).size()); // ensure that the 192.168.1.3/HTTP service is only polled by TestPkg2 MockService svc = m_network.getService(2, "192.168.1.3", "HTTP"); assertEquals(1, svc.getPollingPackages().size()); assertEquals("TestPkg2", svc.getPollingPackages().iterator().next()); // ensure that another service has the TestPackage package MockService svc2 = m_network.getService(1, "192.168.1.2", "SMTP"); assertEquals(1, svc2.getPollingPackages().size()); assertEquals("TestPackage", svc2.getPollingPackages().iterator().next()); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b4e7756e33fc2d9129c42f673171d390be34705f/PollerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
24767,
1435,
1216,
1185,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
5743,
1769,
3639,
368,
752,
279,
7672,
17841,
24629,
639,
3639,
1916... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24767,
1435,
1216,
1185,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
5743,
1769,
3639,
368,
752,
279,
7672,
17841,
24629,
639,
3639,
1916... |
Debug.message("link", "LinkGraphicList: received bytes in " + (float)(endTime - startTime)/1000.0f + | Debug.message("link", "LinkGraphicList: received " + graphics.size() + " graphics in " + (float)(endTime - startTime)/1000.0f + | protected String readGraphics(LinkOMGraphicList graphics, Projection proj, OMGridGenerator generator) throws IOException, EOFException { OMGraphic graphic; long startTime = System.currentTimeMillis(); String header = null; int graphicType; boolean moreData = true; // This is important, it's checked by the LinkLayer to see if // it needs to generate the LinkOMGraphicList to see if the // contents need to be generated. graphics.setNeedToRegenerate(proj == null); // doing nothing with the version number. float ver = link.dis.readFloat(); if (ver != version) { if (ver == .1) {// Big difference.... throw new IOException("LinkGraphicList: Versions do not match! DANGER!"); } else { Debug.message("link", "LinkGraphicList: Versions do not match."); } } properties = new LinkProperties(link); Debug.message("link", "LinkGraphicList: reading graphics:"); while (true) { graphic = null; // Just consume the header, don't create a useless // string object. header = link.readDelimiter(false); if (header == Link.END_TOTAL || header == Link.END_SECTION) { long endTime = System.currentTimeMillis(); Debug.message("link", "LinkGraphicList: received bytes in " + (float)(endTime - startTime)/1000.0f + " seconds"); return header; } graphicType = link.dis.readInt(); switch (graphicType) { case GRAPHICTYPE_LINE: graphic = LinkLine.read(link.dis); break; case GRAPHICTYPE_POLY: graphic = LinkPoly.read(link.dis); break; case GRAPHICTYPE_RECTANGLE: graphic = LinkRectangle.read(link.dis); break; case GRAPHICTYPE_POINT: graphic = LinkPoint.read(link.dis); break; case GRAPHICTYPE_CIRCLE: graphic = LinkCircle.read(link.dis); break; case GRAPHICTYPE_RASTER: graphic = LinkRaster.read(link.dis); break; case GRAPHICTYPE_BITMAP: graphic = LinkBitmap.read(link.dis); break; case GRAPHICTYPE_TEXT: graphic = LinkText.read(link.dis); break; case GRAPHICTYPE_GRID: graphic = LinkGrid.read(link.dis); break; default: throw new IOException("LinkGraphicList: received unknown graphic type."); } if (graphic != null) { if (graphic instanceof OMGrid) { ((OMGrid)graphic).setGenerator(generator); } if (proj != null) { graphic.generate(proj); } graphics.add(graphic); } } } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/57ad2e7d0d0ba3c41dbfa95607fb64430823e340/LinkGraphicList.java/buggy/src/openmap/com/bbn/openmap/layer/link/LinkGraphicList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
855,
17558,
12,
2098,
1872,
29459,
682,
17313,
16,
21288,
10296,
16,
6862,
225,
28839,
6313,
3908,
4456,
13,
202,
15069,
1860,
16,
30051,
288,
202,
1872,
29459,
19548,
31,
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,
4750,
514,
855,
17558,
12,
2098,
1872,
29459,
682,
17313,
16,
21288,
10296,
16,
6862,
225,
28839,
6313,
3908,
4456,
13,
202,
15069,
1860,
16,
30051,
288,
202,
1872,
29459,
19548,
31,
202,
... |
if (msns[msns.length-1].intValue()!=highestMsn) { throw new AssertionError("highestMsn "+highestMsn+" msns[msns.length-1] "+msns[msns.length-1]); | if (msns.length > 0) { if (msns[msns.length - 1].intValue() != highestMsn) { throw new AssertionError("highestMsn " + highestMsn + " msns[msns.length-1] " + msns[msns.length - 1]); } } else { if (highestMsn != 0) { throw new AssertionError( "highestMsn in empty map has to be 0 but is" + highestMsn); } | synchronized void assertValidity() { Integer[] msns=(Integer[])msnToUid.keySet().toArray(new Integer[0]); for (int i = 0; i < msns.length; i++) { if (msns[i].intValue()!=(i+1)) { throw new AssertionError("Msn at position "+(i+1)+" was "+msns[i].intValue()); } } if (msns[msns.length-1].intValue()!=highestMsn) { throw new AssertionError("highestMsn "+highestMsn+" msns[msns.length-1] "+msns[msns.length-1]); } if (!msnToUid.keySet().equals(new TreeSet(uidToMsn.values()))) { System.out.println(msnToUid.keySet()); System.out.println(uidToMsn.values()); throw new AssertionError("msnToUid.keySet() does not equal uidToMsn.values()"); } if (!uidToMsn.keySet().equals(new TreeSet(msnToUid.values()))) { System.out.println(uidToMsn.keySet()); System.out.println(msnToUid.values()); throw new AssertionError("uidToMsn.keySet() does not equal msnToUid.values()"); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6900fae221fa30e8424cf0a22210d82dbe42d877/UidToMsnBidiMap.java/clean/src/java/org/apache/james/mailboxmanager/wrapper/UidToMsnBidiMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
1815,
19678,
1435,
288,
3639,
2144,
8526,
4086,
2387,
28657,
4522,
63,
5717,
959,
82,
774,
11994,
18,
856,
694,
7675,
31447,
12,
2704,
2144,
63,
20,
19226,
3639,
364,
261,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1815,
19678,
1435,
288,
3639,
2144,
8526,
4086,
2387,
28657,
4522,
63,
5717,
959,
82,
774,
11994,
18,
856,
694,
7675,
31447,
12,
2704,
2144,
63,
20,
19226,
3639,
364,
261,
474,... |
newVGuide = guide; newVAlignment = alignment; | vGuideChange.newGuide = guide; vGuideChange.newAlign = alignment; vGuideChange.changeGuide = true; | public void setVerticalGuide(LogicGuide guide, int alignment) { newVGuide = guide; newVAlignment = alignment;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/6c1ab0c16e0b20ba6e1ecd524248052ed89752ba/SetConstraintCommand.java/buggy/org.eclipse.gef.examples.logic/src/org/eclipse/gef/examples/logicdesigner/model/commands/SetConstraintCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
444,
15704,
17424,
12,
20556,
17424,
7343,
16,
509,
8710,
13,
288,
202,
2704,
58,
17424,
273,
7343,
31,
202,
2704,
58,
11535,
273,
8710,
31,
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,
1071,
918,
444,
15704,
17424,
12,
20556,
17424,
7343,
16,
509,
8710,
13,
288,
202,
2704,
58,
17424,
273,
7343,
31,
202,
2704,
58,
11535,
273,
8710,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-... |
root = getLocalApiDocRoot(className); | root = apiDocRoot; | private String mapApiDocRoot(String className) { String root = null; if (specifiedPackages.isEmpty() || isSpecifiedPackage(className)) root = getLocalApiDocRoot(className); else root = getExternalApiDocRoot(className); if (root == null) root = ""; return root; } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/79a8c001740f08d96264606e9d548d69f12a9fbf/StringUtil.java/clean/src/org/umlgraph/doclet/StringUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
852,
3064,
1759,
2375,
12,
780,
2658,
13,
288,
202,
202,
780,
1365,
273,
446,
31,
202,
202,
430,
261,
13827,
11425,
18,
291,
1921,
1435,
747,
353,
17068,
2261,
12,
12434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
852,
3064,
1759,
2375,
12,
780,
2658,
13,
288,
202,
202,
780,
1365,
273,
446,
31,
202,
202,
430,
261,
13827,
11425,
18,
291,
1921,
1435,
747,
353,
17068,
2261,
12,
12434... |
public SelfModifier(Method method) throws IOException | private SelfModifier() throws IOException | public SelfModifier(Method method) throws IOException { phase = 1; initJavaExec(); initMethod(method); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/SelfModifier.java/buggy/src/lib/com/izforge/izpack/uninstaller/SelfModifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
18954,
9829,
1435,
1216,
1860,
225,
288,
565,
6855,
273,
404,
31,
565,
1208,
5852,
1905,
5621,
565,
1208,
1305,
12,
2039,
1769,
225,
289,
2,
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,
282,
3238,
18954,
9829,
1435,
1216,
1860,
225,
288,
565,
6855,
273,
404,
31,
565,
1208,
5852,
1905,
5621,
565,
1208,
1305,
12,
2039,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
long begin = toSliceIndex(ScriptRuntime.toInteger(args[0]), length); | long begin = toSliceIndex(ScriptRuntime.toInteger(args[0]), length); | private static Object js_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; long length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ long begin = toSliceIndex(ScriptRuntime.toInteger(args[0]), length); argc--; /* Convert the second argument into count */ long count; if (args.length == 1) { count = length - begin; } else { double dcount = ScriptRuntime.toInteger(args[1]); if (dcount < 0) { count = 0; } else if (dcount > (length - begin)) { count = length - begin; } else { count = (long)dcount; } argc--; } long end = begin + count; /* If there are elements to remove, put them into the return value. */ if (count != 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, begin); } else { for (long last = begin; last != end; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - begin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ long delta = argc - count; if (delta > 0) { for (long last = length - 1; last >= end; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + delta, temp); } } else if (delta < 0) { for (long last = end; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, begin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/88bc61b4a7654f86eb92a33cee4bb0c4be326609/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
3828,
67,
19535,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1748,
752,
392,
1008,
1510,
358,
327,
18,
1195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3828,
67,
19535,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1748,
752,
392,
1008,
1510,
358,
327,
18,
1195,
... |
private void _writeSubject(Subject subj, String padding) | private void _writeSubject(Subject subj) | private void _writeSubject(Subject subj, String padding) throws IOException { this._writeSubject(subj, "", padding); } // private void _writeSubject(subj, padding) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/8ecf60cad0e72d2183ff0185a8b3e6484b3c60c5/XmlExporter.java/clean/grouper/src/grouper/edu/internet2/middleware/grouper/XmlExporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
2626,
6638,
12,
6638,
15333,
13,
377,
1216,
225,
1860,
282,
288,
565,
333,
6315,
2626,
6638,
12,
1717,
78,
16,
23453,
4992,
1769,
225,
289,
368,
3238,
918,
389,
2626,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
2626,
6638,
12,
6638,
15333,
13,
377,
1216,
225,
1860,
282,
288,
565,
333,
6315,
2626,
6638,
12,
1717,
78,
16,
23453,
4992,
1769,
225,
289,
368,
3238,
918,
389,
2626,
66... |
public void initializeFrom(ILaunchConfiguration configuration) { String debuggerCommand = "gdb"; | public void initializeFrom( ILaunchConfiguration configuration ) { super.initializeFrom( configuration ); | public void initializeFrom(ILaunchConfiguration configuration) { String debuggerCommand = "gdb"; boolean isTcp = false; String hostText = ""; String hostPort = ""; String asyncDev = "/dev/ttyS0"; String asyncDevSpeed = "115200"; boolean autosolib = false; try { debuggerCommand = configuration.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUG_NAME, "gdb"); autosolib = configuration.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_AUTO_SOLIB, false); } catch (CoreException e) { } try { isTcp = configuration.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_REMOTE_TCP, false); hostText = configuration.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_HOST, ""); hostPort = configuration.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_PORT, ""); asyncDev = configuration.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV, ""); asyncDevSpeed = configuration.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV_SPEED, ""); } catch (CoreException e) { } fDebuggerCommandText.setText(debuggerCommand); fTCPButton.setSelection(isTcp); fAsyncButton.setSelection(!isTcp); fHostText.setText(hostText); fHostPort.setText(hostPort); fAsyncDev.setText(asyncDev); fAsyncDevSpeedCombo.select(fAsyncDevSpeedCombo.indexOf(asyncDevSpeed)); fHostText.setEnabled(isTcp); fHostPort.setEnabled(isTcp); fAsyncDev.setEnabled(!isTcp); fAsyncDevSpeedCombo.setEnabled(!isTcp); fAutoSoLibButton.setSelection(autosolib); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8a0a4cb7100a63323faab9f3204cd0747864dfa6/GDBServerDebuggerPage.java/buggy/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
1265,
12,
2627,
4760,
1750,
1664,
13,
288,
202,
202,
780,
19977,
2189,
273,
315,
75,
1966,
14432,
202,
202,
6494,
353,
27591,
273,
629,
31,
202,
202,
780,
1479,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
1265,
12,
2627,
4760,
1750,
1664,
13,
288,
202,
202,
780,
19977,
2189,
273,
315,
75,
1966,
14432,
202,
202,
6494,
353,
27591,
273,
629,
31,
202,
202,
780,
1479,
152... |
, new Object[]{name, viewClassName, e.getMessage()})); | , new Object[]{name, viewClassName, e.getMessage()})); | public void registerExportView(String name, String viewClassName) { Class exportClass; try { exportClass = ReflectHelper.classForName(viewClassName); } catch (ClassNotFoundException e) { log.error(Messages.getString("ExportViewFactory.classnotfound", //$NON-NLS-1$ new Object[]{name, viewClassName})); return; } catch (NoClassDefFoundError e) { log.warn(Messages.getString("ExportViewFactory.noclassdef" //$NON-NLS-1$ , new Object[]{name, viewClassName, e.getMessage()})); return; } try { exportClass.newInstance(); } catch (InstantiationException e) { log.error(Messages.getString("ExportViewFactory.instantiationexception", //$NON-NLS-1$ new Object[]{name, viewClassName, e.getMessage()})); return; } catch (IllegalAccessException e) { log.error(Messages.getString("ExportViewFactory.illegalaccess", //$NON-NLS-1$ new Object[]{name, viewClassName, e.getMessage()})); return; } catch (NoClassDefFoundError e) { log.warn(Messages.getString("ExportViewFactory.noclassdef" //$NON-NLS-1$ , new Object[]{name, viewClassName, e.getMessage()})); return; } MediaTypeEnum media = MediaTypeEnum.registerMediaType(name); viewClasses.put(media, exportClass); if (log.isDebugEnabled()) { log.debug(Messages.getString("ExportViewFactory.added", //$NON-NLS-1$ new Object[]{media, viewClassName})); } } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ea5857c4cef1cb29975e7fa24489265ce454d3f3/ExportViewFactory.java/clean/displaytag/src/main/java/org/displaytag/export/ExportViewFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
6144,
1767,
12,
780,
508,
16,
514,
1476,
3834,
13,
565,
288,
3639,
1659,
3359,
797,
31,
3639,
775,
3639,
288,
5411,
3359,
797,
273,
17906,
2276,
18,
1106,
1290,
461,
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,
1744,
6144,
1767,
12,
780,
508,
16,
514,
1476,
3834,
13,
565,
288,
3639,
1659,
3359,
797,
31,
3639,
775,
3639,
288,
5411,
3359,
797,
273,
17906,
2276,
18,
1106,
1290,
461,
12... |
throw new MojoExecutionException( "Cannot write development version of pom to: " + project.getFile(), e ); | throw new MojoExecutionException( "Cannot write development version of pom to: " + file, e ); | private void transformPomToSnapshotVersionPom( MavenProject project ) throws MojoExecutionException { if ( isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "This project is a snapshot (" + project.getVersion() + "). It appears that the release version has not been committed." ); } Model model = project.getOriginalModel(); ProjectVersionResolver versionResolver = getVersionResolver(); Parent parent = model.getParent(); //Rewrite parent version if ( parent != null ) { String incrementedVersion = versionResolver.getResolvedVersion( parent.getGroupId(), parent .getArtifactId() ); if ( incrementedVersion != null ) { parent.setVersion( incrementedVersion ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String version = versionResolver.getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( version != null ) { dep.setVersion( version ); } } } //Rewrite plugins section Build build = model.getBuild(); if ( build != null ) { List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String version = versionResolver.getResolvedVersion( plugin.getGroupId(), plugin .getArtifactId() ); if ( version != null ) { plugin.setVersion( version ); } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String version = versionResolver.getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( version != null ) { ext.setVersion( version ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); if ( reports != null ) { for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String version = versionResolver.getResolvedVersion( plugin.getGroupId(), plugin .getArtifactId() ); if ( version != null ) { plugin.setVersion( version ); } } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write development version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/7b6f292c73db67e179033e6a051871754cb4a725/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
4568,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
353,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
3639,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
4568,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
353,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
3639,
28... |
asm.emitMOV_Reg_RegDisp (T0, SP, 4); | asm.emitMOV_Reg_RegDisp (T0, SP, ONE_SLOT); | protected final void emit_dup2() { asm.emitMOV_Reg_RegDisp (T0, SP, 4); asm.emitMOV_Reg_RegInd (S0, SP); asm.emitPUSH_Reg(T0); asm.emitPUSH_Reg(S0); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
26427,
22,
1435,
288,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
1669,
84,
261,
56,
20,
16,
11405,
16,
15623,
67,
55,
1502,
56,
1769,
565,
20415,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
3626,
67,
26427,
22,
1435,
288,
565,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
1669,
84,
261,
56,
20,
16,
11405,
16,
15623,
67,
55,
1502,
56,
1769,
565,
20415,
1... |
IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); | IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); | public void testVirtualParentLookup() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class D { public: int x; }; \n"); //$NON-NLS-1$ buffer.append("class C : public virtual D {}; \n"); //$NON-NLS-1$ buffer.append("class B : public virtual D {}; \n"); //$NON-NLS-1$ buffer.append("class A : public B, public C {}; \n"); //$NON-NLS-1$ buffer.append("void main() { \n"); //$NON-NLS-1$ buffer.append(" A * a = new A(); \n"); //$NON-NLS-1$ buffer.append(" a->x; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); assertEquals(collector.size(), 15); ICPPClassType D = (ICPPClassType) collector.getName(0).resolveBinding(); ICPPField x = (ICPPField) collector.getName(1).resolveBinding(); ICPPClassType C = (ICPPClassType) collector.getName(2).resolveBinding(); ICPPClassType B = (ICPPClassType) collector.getName(4).resolveBinding(); ICPPClassType A = (ICPPClassType) collector.getName(6).resolveBinding(); ICPPConstructor ctor = A.getConstructors()[0]; assertInstances(collector, D, 3); assertInstances(collector, C, 2); assertInstances(collector, B, 2); assertInstances(collector, A, 2); assertInstances(collector, ctor, 1); assertInstances(collector, x, 2); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6466,
3054,
6609,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1106,
463,
288,
1071,
30,
509,
619,
31,
289,
31,
4202,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6466,
3054,
6609,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1106,
463,
288,
1071,
30,
509,
619,
31,
289,
31,
4202,
521,
... |
SIPClientTransaction clientTransaction = (SIPClientTransaction) this .getFirstTransaction(); | public void sendRequest(ClientTransaction clientTransactionId) throws TransactionDoesNotExistException, SipException { SIPRequest dialogRequest = ((SIPClientTransaction) clientTransactionId) .getOriginalRequest(); if (clientTransactionId == null) throw new NullPointerException("null parameter"); if (dialogRequest.getMethod().equals(Request.ACK) || dialogRequest.getMethod().equals(Request.CANCEL)) throw new SipException("Bad Request Method. " + dialogRequest.getMethod()); // Cannot send bye until the dialog has been established. if (this.getState() == null) { throw new SipException("Bad dialog state " + this.getState()); } /** * if (this.isServer() && * dialogRequest.getMethod().equalsIgnoreCase(Request.BYE) && * this.getState().getValue() == EARLY_STATE) { throw new * SipException("Bad dialog state " + this.getState()); } */ if (LogWriter.needsLogging) sipStack.logWriter.logMessage("dialog.sendRequest " + " dialog = " + this + "\ndialogRequest = \n" + dialogRequest); if (dialogRequest.getTopmostVia() == null) { Via via = ((SIPClientTransaction) clientTransactionId) .getOutgoingViaHeader(); dialogRequest.addHeader(via); } if (!this.getCallId().getCallId().equals( dialogRequest.getCallId().getCallId())) { throw new SipException("Bad call ID in request"); } // Set the dialog back pointer. ((SIPClientTransaction) clientTransactionId).dialog = this; this.addTransaction((SIPTransaction) clientTransactionId); // Enable the retransmission filter for the transaction ((SIPClientTransaction) clientTransactionId).isMapped = true; From from = (From) dialogRequest.getFrom(); To to = (To) dialogRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { System.out.println("Huh??"); ex.printStackTrace(); } // Caller has not assigned the route header - set the route header // and the request URI for the outgoing request. // Bugs reported by Brad Templeton. if (dialogRequest.getHeader(RouteHeader.NAME) == null) { // get the route list from the dialog. RouteList rl = this.getRouteList(); // Add it to the header. if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { dialogRequest .setRequestURI(this.getRemoteTarget().getURI()); dialogRequest.addHeader(rl); } else { // First route is not a lr // Add the contact route to the end. rl.removeFirst(); dialogRequest.setRequestURI(sipUri); // Check for 0 size - Bug report from Andreas Bystrom. if (rl.size() > 0) dialogRequest.addHeader(rl); if (contactRoute != null) dialogRequest.addHeader(contactRoute); } } else { // Bug report from Antonis Karydas if (this.getRemoteTarget() != null) dialogRequest .setRequestURI(this.getRemoteTarget().getURI()); } } // 2543 Backward compatibility hack contributed by // Steve Crossley (Nortel Networks). HopImpl hop; try { hop = this.getNextHop(); } catch (SipException se) { // If no route set is defined in the dialog, consult the stack's // router object to determine the route as if the request were // being sent outside of a dialog. This is for backward // compatibility with old clients that may not put contact // headers in final responses. Iterator iter = sipStack.getNextHop(dialogRequest); if (iter.hasNext()) { Hop h = (Hop) iter.next(); hop = new HopImpl(h.getHost(), h.getPort(), h.getTransport()); } else { throw se; } } try { TCPMessageChannel oldChannel = null; TLSMessageChannel oldTLSChannel = null; MessageChannel messageChannel = sipStack .createRawMessageChannel(hop); if (((SIPClientTransaction) clientTransactionId).encapsulatedChannel instanceof TCPMessageChannel) { // Remove this from the connection cache if it is in the // connection // cache and is not yet active. oldChannel = (TCPMessageChannel) ((SIPClientTransaction)clientTransactionId).encapsulatedChannel; if (oldChannel.isCached && ! oldChannel.isRunning) { oldChannel.uncache(); } // Not configured to cache client connections. if ( !sipStack.cacheClientConnections ) { oldChannel.useCount --; if (LogWriter.needsLogging) sipStack.logWriter.logMessage("oldChannel: useCount " + oldChannel.useCount); } } // This section is copied & pasted from the previous one, // and then modified for TLS management (Daniel Martinez) else if ( ((SIPClientTransaction) clientTransactionId).encapsulatedChannel instanceof TLSMessageChannel ) { // Remove this from the connection cache if it is in the connection // cache and is not yet active. oldTLSChannel = (TLSMessageChannel) ((SIPClientTransaction)clientTransactionId).encapsulatedChannel; if (oldTLSChannel.isCached && ! oldTLSChannel.isRunning) { oldTLSChannel.uncache(); } // Not configured to cache client connections. if ( !sipStack.cacheClientConnections ) { oldTLSChannel.useCount --; if (LogWriter.needsLogging) sipStack.logWriter.logMessage("oldChannel: useCount " + oldTLSChannel.useCount); } } ((SIPClientTransaction) clientTransactionId).encapsulatedChannel = messageChannel; if (messageChannel == null) { // Bug fix from Antonis Karydas // At this point the procedures of 8.1.2 // and 12.2.1.1 of RFC3261 have been tried // but the resulting next hop cannot be resolved // (recall that the exception thrown // is caught and ignored in SIPStack.createMessageChannel() // so we end up here with a null messageChannel // instead of the exception handler below). // All else failing, try the outbound proxy in accordance // with 8.1.2, in particular: // This ensures that outbound proxies that do not add // Record-Route header field values will drop out of // the path of subsequent requests. It allows endpoints // that cannot resolve the first Route // URI to delegate that task to an outbound proxy. // // if one considers the 'first Route URI' of a // request constructed according to 12.2.1.1 // to be the request URI when the route set is empty. Hop outboundProxy = sipStack.getRouter().getOutboundProxy(); if (outboundProxy == null) throw new SipException("No route found!"); messageChannel = sipStack .createRawMessageChannel(outboundProxy); } ((SIPClientTransaction) clientTransactionId).encapsulatedChannel = messageChannel; if (messageChannel != null && messageChannel instanceof TCPMessageChannel ) ((TCPMessageChannel) messageChannel).useCount ++; if (messageChannel != null && messageChannel instanceof TLSMessageChannel ) ((TLSMessageChannel) messageChannel).useCount ++; // See if we need to release the previously mapped channel. if ( ( ! sipStack.cacheClientConnections ) && oldChannel != null && oldChannel.useCount == 0 ) oldChannel.close(); if ( ( ! sipStack.cacheClientConnections ) && oldTLSChannel != null && oldTLSChannel.useCount == 0 ) oldTLSChannel.close(); } catch (Exception ex) { if (LogWriter.needsLogging) sipStack.logWriter.logException(ex); throw new SipException("Cold not create message channel"); } try { // Increment before setting!! localSequenceNumber++; dialogRequest.getCSeq().setSequenceNumber(getLocalSequenceNumber()); } catch (InvalidArgumentException ex) { ex.printStackTrace(); } if (this.isServer()) { SIPServerTransaction serverTransaction = (SIPServerTransaction) this .getFirstTransaction(); try { if (this.myTag != null) from.setTag(this.myTag); if (this.hisTag != null) to.setTag(this.hisTag); } catch (ParseException ex) { throw new SipException(ex.getMessage()); } try { ((SIPClientTransaction) clientTransactionId) .sendMessage(dialogRequest); // If the method is BYE then mark the dialog completed. if (dialogRequest.getMethod().equals(Request.BYE)) this.setState(COMPLETED_STATE); } catch (IOException ex) { throw new SipException("error sending message"); } } else { // I am the client so I do not swap headers. SIPClientTransaction clientTransaction = (SIPClientTransaction) this .getFirstTransaction(); try { if (LogWriter.needsLogging) { sipStack.logWriter.logMessage("setting tags from " + this.getDialogId()); sipStack.logWriter.logMessage("fromTag " + this.myTag); sipStack.logWriter.logMessage("toTag " + this.hisTag); } if (this.myTag != null) from.setTag(this.myTag); if (this.hisTag != null) to.setTag(this.hisTag); } catch (ParseException ex) { throw new SipException(ex.getMessage()); } try { ((SIPClientTransaction) clientTransactionId) .sendMessage(dialogRequest); // go directly to terminated state. if (dialogRequest.getMethod().equalsIgnoreCase(Request.BYE)) this.setState(COMPLETED_STATE); } catch (IOException ex) { if (LogWriter.needsLogging) sipStack.logWriter.logException(ex); throw new SipException("error sending message"); } } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/398527a97f1fbaf88a6919c5981ad3e4a9dbcd36/SIPDialog.java/clean/src/gov/nist/javax/sip/stack/SIPDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12413,
12,
1227,
3342,
1004,
27387,
13,
5411,
1216,
5947,
26621,
16,
13475,
503,
288,
3639,
348,
2579,
691,
6176,
691,
273,
14015,
17739,
1227,
3342,
13,
1004,
27387,
13,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12413,
12,
1227,
3342,
1004,
27387,
13,
5411,
1216,
5947,
26621,
16,
13475,
503,
288,
3639,
348,
2579,
691,
6176,
691,
273,
14015,
17739,
1227,
3342,
13,
1004,
27387,
13,
7734,
... | |
public String getDefaultView(); | public View getDefaultView(); | public String getDefaultView(); | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/73c855ea0bf07338901172eda084470dae3433e3/ZFolder.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/ZFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4829,
1767,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4829,
1767,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Wizard wizard = getWizardManager().getWizard(id); Id siteId = getIdManager().getId(wizard.getSiteId()); | String siteStr = getWizardManager().getWizardIdSiteId(id); Id siteId = getIdManager().getId(siteStr); | public Boolean isAuthorized(AuthorizationFacade facade, Agent agent, String function, Id id) { // return null if we don't know what is up... if (function.equals(WizardFunctionConstants.VIEW_WIZARD)) { return isWizardViewAuth(facade, agent, id, true); } else if (function.equals(WizardFunctionConstants.CREATE_WIZARD)) { return new Boolean(facade.isAuthorized(agent,function,id)); } else if (function.equals(WizardFunctionConstants.EDIT_WIZARD)) { return isWizardAuth(facade, id, agent, WizardFunctionConstants.EDIT_WIZARD); } else if (function.equals(WizardFunctionConstants.PUBLISH_WIZARD)) { Wizard wizard = getWizardManager().getWizard(id); Id siteId = getIdManager().getId(wizard.getSiteId()); return new Boolean(facade.isAuthorized(agent,function,siteId)); } else if (function.equals(WizardFunctionConstants.DELETE_WIZARD)) { return isWizardAuth(facade, id, agent, WizardFunctionConstants.DELETE_WIZARD); } else if (function.equals(WizardFunctionConstants.COPY_WIZARD)) { return isWizardAuth(facade, id, agent, WizardFunctionConstants.COPY_WIZARD); } else if (function.equals(WizardFunctionConstants.EXPORT_WIZARD)) { return isWizardAuth(facade, id, agent, WizardFunctionConstants.EXPORT_WIZARD); } else if (WizardFunctionConstants.REVIEW_WIZARD.equals(function)) { return isWizardAuthForReview(facade, agent, id); } else if (WizardFunctionConstants.EVALUATE_WIZARD.equals(function)) { return isWizardAuthForEval(facade, agent, id); } else if (function.equals(WizardFunctionConstants.EDIT_WIZARDPAGE_GUIDANCE)) { //ScaffoldingCell sCell = getMatrixManager().getScaffoldingCellByWizardPageDef(id); WizardPageSequence wps = wizardManager.getWizardPageSeqByDef(id); Agent owner = wps.getCategory().getWizard().getOwner(); return new Boolean(agent.equals(owner)); } else if (function.equals(WizardFunctionConstants.VIEW_WIZARDPAGE_GUIDANCE)) { //If I can eval, review, or own it List pages = wizardManager.getCompletedWizardPagesByPageDef(id); Boolean returned = null; for (Iterator iter=pages.iterator(); iter.hasNext();) { CompletedWizardPage cwp = (CompletedWizardPage)iter.next(); returned = Boolean.valueOf(facade.isAuthorized(agent, WizardFunctionConstants.EVALUATE_WIZARD, cwp.getId())); if (returned == null || !returned.booleanValue()) { returned = Boolean.valueOf(facade.isAuthorized(agent, WizardFunctionConstants.REVIEW_WIZARD, cwp.getId())); } if (returned == null || !returned.booleanValue()) { returned = Boolean.valueOf(cwp.getCategory().getWizard().getOwner().equals(agent)); } if (returned == null || !returned.booleanValue()) { returned = Boolean.valueOf(facade.isAuthorized(agent, WizardFunctionConstants.VIEW_WIZARD,id)); } if (returned == null || !returned.booleanValue()) { returned = Boolean.valueOf(cwp.getCategory().getWizard().getWizard().getOwner().equals(agent)); } if (returned.booleanValue()) return returned; } WizardPageSequence wps = getWizardManager().getWizardPageSeqByDef(id); returned = Boolean.valueOf(wps.getCategory().getWizard().getOwner().equals(agent)); if (returned.booleanValue()) return returned; return null; } else { return null; } } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/f43db8d60f0f9713119d0a9acce83fd1f9aba61e/WizardAuthorizerImpl.java/buggy/wizard/api-impl/src/java/org/theospi/portfolio/wizard/WizardAuthorizerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3411,
353,
15341,
12,
6063,
12467,
11270,
16,
8669,
4040,
16,
1171,
9079,
514,
445,
16,
3124,
612,
13,
288,
1377,
368,
327,
446,
309,
732,
2727,
1404,
5055,
4121,
353,
731,
2777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3411,
353,
15341,
12,
6063,
12467,
11270,
16,
8669,
4040,
16,
1171,
9079,
514,
445,
16,
3124,
612,
13,
288,
1377,
368,
327,
446,
309,
732,
2727,
1404,
5055,
4121,
353,
731,
2777,
... |
private static final boolean traceDetails = true; | private static final boolean traceDetails = false; | static void processorExit(int rc) { // trace("VM_Scheduler", ("Exiting with " + numProcessors + " pthreads.")); // set flag to get all idle threads to exit to VM_Thread.terminate() terminated = true; // TODO: // Get the collector to free system memory: no more allocation beyond this point // Terminate the pthread: each processor waits for the next one // find the pthread to wait for VM_Processor myVP = VM_Processor.getCurrentProcessor(); VM_Processor VPtoWaitFor = null; for (int i=1; i<numProcessors; i++) { if (processors[i] == myVP) { VPtoWaitFor = processors[i+1]; break; } } // each join with the expected pthread if (VPtoWaitFor!=null) { VM.sysCall1(VM_BootRecord.the_boot_record.sysPthreadJoinIP, VPtoWaitFor.pthread_id); } // then exit myself with pthread_exit VM.sysCall0(VM_BootRecord.the_boot_record.sysPthreadExitIP); // does not return if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } private static final boolean traceDetails = true; // Print out message in format "p[j] (cez#td) who: what", where: // p = processor id // j = java thread id // c* = ava thread id of the owner of threadCreationMutex (if any) // e* = java thread id of the owner of threadExecutionMutex (if any) // z* = VM_Processor.getCurrentProcessor().threadSwitchingEnabledCount // (0 means thread switching is enabled outside of the call to debug) // t* = numActiveThreads // d* = numDaemons // // * parenthetical values, printed only if traceDetails = true) // // We serialize against a mutex to avoid intermingling debug output from multiple threads. // public static void trace(String who, String what) { lockOutput(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); writeDecimal(VM_Processor.getCurrentProcessorId()); writeString("["); writeDecimal(VM_Thread.getCurrentThread().getIndex()); writeString("] "); if (traceDetails) { writeString("("); // writeDecimal(threadCreationMutex.owner); // writeString("-"); // writeDecimal(-VM_Processor.getCurrentProcessor().threadSwitchingEnabledCount); // writeString("#"); writeDecimal(numDaemons); writeString("/"); writeDecimal(numActiveThreads); writeString(") "); } writeString(who); writeString(": "); writeString(what); writeString("\n"); VM_Processor.getCurrentProcessor().enableThreadSwitching(); unlockOutput(); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b636840796d86d400a7f80ae18aa939fc2b89a95/VM_Scheduler.java/clean/rvm/src/vm/scheduler/VM_Scheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
6659,
6767,
12,
474,
4519,
13,
288,
565,
368,
2606,
2932,
7397,
67,
11870,
3113,
7566,
6767,
310,
598,
315,
397,
818,
18155,
397,
315,
293,
12495,
1199,
10019,
565,
368,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
6659,
6767,
12,
474,
4519,
13,
288,
565,
368,
2606,
2932,
7397,
67,
11870,
3113,
7566,
6767,
310,
598,
315,
397,
818,
18155,
397,
315,
293,
12495,
1199,
10019,
565,
368,
444,
... |
return Util.getProperty(IMarker.MESSAGE, ((IMarker) element)); | return getDescription((IMarker) element); | public String getText(Object element) { return Util.getProperty(IMarker.MESSAGE, ((IMarker) element)); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e4643d8f4837cdc69f042da60e081eaff8d60a30/MarkerResolutionDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
9506,
202,
2463,
3564,
18,
588,
1396,
12,
3445,
1313,
264,
18,
8723,
16,
14015,
3445,
1313,
264,
13,
930,
10019,
1082,
202,
97,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
9506,
202,
2463,
3564,
18,
588,
1396,
12,
3445,
1313,
264,
18,
8723,
16,
14015,
3445,
1313,
264,
13,
930,
10019,
1082,
202,
97,
2,
-100,
-... |
public Feature revertFeature(Feature feat) { return ((Projection) feat).getViewedFeature(); } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/6af69e6d2e15b3553ee1bc70f261ad615ee61682/ReparentContext.java/clean/src/org/biojava/bio/seq/projection/ReparentContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
11667,
295,
822,
1097,
4595,
12,
4595,
29735,
15329,
2463,
12443,
14789,
13,
29735,
2934,
588,
1767,
329,
4595,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
11667,
295,
822,
1097,
4595,
12,
4595,
29735,
15329,
2463,
12443,
14789,
13,
29735,
2934,
588,
1767,
329,
4595,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | ||
host + port; | host + port; | protected PasswordAuthentication getPasswordAuthentication() { // given a prompt? String prompt = getRequestingPrompt(); if (prompt == null) { prompt = "Enter Username and Password..."; } // protocol String protocol = getRequestingProtocol(); if (protocol == null) protocol = "Unknown protocol"; // get the host String host = null; InetAddress inet = getRequestingSite(); if (inet != null) host = inet.getHostName(); if (host == null) host = "Unknown host"; // port String port = ""; int portnum = getRequestingPort(); if (portnum != -1) port = ", port " + portnum + " "; // Build the info string String info = "Connecting to " + protocol + " resource on host " + host + port; //JPanel d = new JPanel(); // XXX - for some reason using a JPanel here causes JOptionPane // to display incorrectly, so we workaround the problem using // an anonymous JComponent. JComponent d = new JComponent() { }; GridBagLayout gb = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); d.setLayout(gb); c.insets = new Insets(2, 2, 2, 2); c.anchor = GridBagConstraints.WEST; c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 0.0; d.add(constrain(new JLabel(info), gb, c)); d.add(constrain(new JLabel(prompt), gb, c)); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.NONE; c.weightx = 0.0; d.add(constrain(new JLabel("Username:"), gb, c)); c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; String user = ""; JTextField username = new JTextField(user, 20); d.add(constrain(username, gb, c)); c.gridwidth = 1; c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; c.weightx = 0.0; d.add(constrain(new JLabel("Password:"), gb, c)); c.anchor = GridBagConstraints.EAST; c.fill = GridBagConstraints.HORIZONTAL; c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; JPasswordField password = new JPasswordField("", 20); d.add(constrain(password, gb, c)); // XXX - following doesn't work if (user != null && user.length() > 0) password.requestFocusInWindow(); else username.requestFocusInWindow(); int result = JOptionPane.showConfirmDialog(frame, d, "Login", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE); if (result == JOptionPane.OK_OPTION) return new PasswordAuthentication(username.getText(), password.getPassword()); else return null; } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/LoadHttpConfigPooka.java/clean/src/net/suberic/pooka/gui/LoadHttpConfigPooka.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9234,
6492,
17397,
6492,
1435,
288,
5411,
368,
864,
279,
6866,
35,
1377,
514,
6866,
273,
4328,
310,
15967,
5621,
1377,
309,
261,
13325,
422,
446,
13,
288,
202,
13325,
273,
315,
1023... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9234,
6492,
17397,
6492,
1435,
288,
5411,
368,
864,
279,
6866,
35,
1377,
514,
6866,
273,
4328,
310,
15967,
5621,
1377,
309,
261,
13325,
422,
446,
13,
288,
202,
13325,
273,
315,
1023... |
public void fill(Menu parent, int index) { if (menuItem == null || menuItem.isDisposed()) { if (index >= 0) menuItem = new MenuItem(parent, SWT.CASCADE, index); else menuItem = new MenuItem(parent, SWT.CASCADE); menuItem.setText(menuText); if (!menuExist()) menu = new Menu(parent); menuItem.setMenu(menu); initializeMenu(); update(true); } } | public void fill(Composite parent) {} | public void fill(Menu parent, int index) { if (menuItem == null || menuItem.isDisposed()) { if (index >= 0) menuItem = new MenuItem(parent, SWT.CASCADE, index); else menuItem = new MenuItem(parent, SWT.CASCADE); menuItem.setText(menuText); if (!menuExist()) menu = new Menu(parent); menuItem.setMenu(menu); initializeMenu(); // populate the submenu, in order to enable accelerators // and to set enabled state on the menuItem properly update(true); }} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0cbd7a5d86db9d2dc0d7a24e2e2ac0942d0a2b81/MenuManager.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
430,
261,
5414,
1180,
422,
446,
747,
19711,
18,
291,
1669,
7423,
10756,
288,
202,
202,
430,
261,
1615,
1545,
374,
13,
1082,
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,
1071,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
430,
261,
5414,
1180,
422,
446,
747,
19711,
18,
291,
1669,
7423,
10756,
288,
202,
202,
430,
261,
1615,
1545,
374,
13,
1082,
202,
... |
LoggerContext h = (LoggerContext) server.hierarchyMap.get(inetAddress); if (h == null) { h = server.configureHierarchy(inetAddress); } | LoggerContext h = (LoggerContext) server.hierarchyMap.get(inetAddress); if (h == null) { h = server.configureHierarchy(inetAddress); } | public static void main(String argv[]) { if (argv.length == 3) { init(argv[0], argv[1], argv[2]); } else { usage("Wrong number of arguments."); } try { logger.info("Listening on port " + port); ServerSocket serverSocket = new ServerSocket(port); while (true) { logger.info("Waiting to accept a new client."); Socket socket = serverSocket.accept(); InetAddress inetAddress = socket.getInetAddress(); logger.info("Connected to client at " + inetAddress); LoggerContext h = (LoggerContext) server.hierarchyMap.get(inetAddress); if (h == null) { h = server.configureHierarchy(inetAddress); } logger.info("Starting new socket node."); new Thread(new SocketNode(socket, h)).start(); } } catch (Exception e) { e.printStackTrace(); } } | 49426 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49426/7177ff8f31734f293185997e0a81156f64bc26a6/SocketServer.java/buggy/logback-classic/src/main/java/ch/qos/logback/classic/net/SocketServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
202,
202,
430,
261,
19485,
18,
2469,
422,
890,
13,
288,
1082,
202,
2738,
12,
19485,
63,
20,
6487,
5261,
63,
21,
6487,
5261,
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,
225,
202,
482,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
202,
202,
430,
261,
19485,
18,
2469,
422,
890,
13,
288,
1082,
202,
2738,
12,
19485,
63,
20,
6487,
5261,
63,
21,
6487,
5261,
63,... |
private void releaseWordpairLocal(short local) { | private void releaseWordpairLocal(short local) { | private void releaseWordpairLocal(short local) { if (local < firstFreeLocal) firstFreeLocal = local; locals[local] = false; locals[local + 1] = false; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/9d6bb8957ead2c95a3562b84a47b63afc8cfc761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3992,
3944,
6017,
2042,
12,
6620,
1191,
13,
288,
3639,
309,
261,
3729,
411,
1122,
9194,
2042,
13,
5411,
1122,
9194,
2042,
273,
1191,
31,
3639,
8985,
63,
3729,
65,
273,
629,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3992,
3944,
6017,
2042,
12,
6620,
1191,
13,
288,
3639,
309,
261,
3729,
411,
1122,
9194,
2042,
13,
5411,
1122,
9194,
2042,
273,
1191,
31,
3639,
8985,
63,
3729,
65,
273,
629,
3... |
public abstract boolean isActiveByDefault(); | boolean isActiveByDefault(); | public abstract boolean isActiveByDefault(); | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/377029d74a7de25fc7c2c47d145c9fad2b1088ee/INavigatorContentDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/INavigatorContentDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
1250,
15083,
858,
1868,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
1250,
15083,
858,
1868,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
backupRenderStates(); | public void doRender(Renderer renderer) { // if there's nothing to do if (spatials.size() == 0) return; // normal render super.doRender(renderer); // set up the render states backupRenderStates(); CullState.setFlippedCulling(true); context.enforceState(wireframeState); context.enforceState(noLights); context.enforceState(noTexture); context.enforceState(alphaState); // this will draw the wireframe for (int i = 0; i < spatials.size(); ++i) { Spatial spatial = spatials.get(i); spatial.onDraw(renderer); } renderer.renderQueue(); // restore the render states restoreRenderStates(); CullState.setFlippedCulling(false); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/f6e1fc28ae3580dba710a491a036ce39cafa5b99/OutlinePass.java/buggy/src/com/jme/renderer/pass/OutlinePass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3420,
12,
6747,
5690,
13,
288,
202,
202,
759,
309,
1915,
1807,
5083,
358,
741,
202,
202,
430,
261,
1752,
9240,
87,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2463,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3420,
12,
6747,
5690,
13,
288,
202,
202,
759,
309,
1915,
1807,
5083,
358,
741,
202,
202,
430,
261,
1752,
9240,
87,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2463,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.