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(log.isDebugEnabled()) {
if(log.isInfoEnabled()) {
public void processResults() { boolean modified = false; int n = ULThreads.length; for (int i = 0; i < n; i++) { JCheckBox cb = (JCheckBox)ULThreadCheckBoxes.get(i); Boolean b = (Boolean)originalThreadSelected.get(i); if (b.booleanValue() == cb.isSelected()) continue; if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setULThreadSelected(trialId, ULDBThreads[i], cb.isSelected()); } n = groupCheckBoxes.size(); for (int i = 0; i < n; i++) { String groupName = groupNames[i]; JCheckBox cb = (JCheckBox)groupCheckBoxes.get(i); Boolean b = (Boolean)originalGroupSelected.get(i); if (b.booleanValue() != cb.isSelected()) { if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setGroupSelected(trialId, groupName, cb.isSelected()); } JTextField multiplierField = (JTextField)multiplierFields.get(i); int multiplier = ((Integer)originalGroupMultiplier.get(i)).intValue(); try { int newMultiplier = Integer.parseInt(multiplierField.getText()); if (multiplier == newMultiplier) continue; if (!modified) { if (!cloneExperiment()) return; // user cancelled modifications modified = true; } ExperimentDB.setMultiplier(trialId, groupName, newMultiplier); } catch (NumberFormatException e) { } } if(forceRecomputeBox.isSelected()) { if(log.isDebugEnabled()) { log.info("Force Recompute Checked"); } ExperimentDB.deleteCMTAssembly(experimentId); modified = true; } if (modified) { String newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); if (forceRecomputeBox.isSelected()) { if(log.isDebugEnabled()) { log.info("new CMTasb is: "+newCMTasb); } ExperimentDB.deleteCMTAssembly(experimentId); newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); if(log.isDebugEnabled()) { log.info("new CMTasb is: "+newCMTasb); } } trialId = ExperimentDB.getTrialId(experimentId); } }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/b834738cf32732ed97f2111671ffca9d14e901da/CMTDialog.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/CMTDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 3447, 1435, 288, 565, 1250, 4358, 273, 629, 31, 565, 509, 290, 273, 587, 48, 13233, 18, 2469, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 3447, 1435, 288, 565, 1250, 4358, 273, 629, 31, 565, 509, 290, 273, 587, 48, 13233, 18, 2469, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245...
following.push(FOLLOW_salience_in_rule_attribute753);
following.push(FOLLOW_salience_in_rule_attribute799);
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d; AttributeDescr a = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus ) int alt29=6; switch ( input.LA(1) ) { case 33: alt29=1; break; case 34: alt29=2; break; case 37: alt29=3; break; case 38: alt29=4; break; case 36: alt29=5; break; case 35: alt29=6; break; default: NoViableAltException nvae = new NoViableAltException("265:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus );", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:270:25: a= salience { following.push(FOLLOW_salience_in_rule_attribute753); a=salience(); following.pop(); d = a; } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:271:25: a= no_loop { following.push(FOLLOW_no_loop_in_rule_attribute763); a=no_loop(); following.pop(); d = a; } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:272:25: a= agenda_group { following.push(FOLLOW_agenda_group_in_rule_attribute774); a=agenda_group(); following.pop(); d = a; } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:273:25: a= duration { following.push(FOLLOW_duration_in_rule_attribute787); a=duration(); following.pop(); d = a; } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:274:25: a= xor_group { following.push(FOLLOW_xor_group_in_rule_attribute801); a=xor_group(); following.pop(); d = a; } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:275:25: a= auto_focus { following.push(FOLLOW_auto_focus_in_rule_attribute812); a=auto_focus(); following.pop(); d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 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, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 5...
stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291);
stringBuffer.append(TEXT_292); stringBuffer.append(TEXT_293);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final GenEditorGenerator editorGen = genDiagram.getEditorGen();final GenModel genModel = editorGen.getDomainGenModel();final String pluginActivatorClass = importManager.getImportedName(editorGen.getPlugin().getActivatorQualifiedClassName());final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer);importManager.registerInnerClass("RootElementSelectorPage");if (isRichClientPlatform) { importManager.registerInnerClass("URISelectorPage"); importManager.registerInnerClass("SourceURISelectorPage"); importManager.registerInnerClass("DiagramURISelectorPage");} stringBuffer.append(TEXT_4); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_5); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_6); } if (needsCastToEObject) { stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_8); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_9); } stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_11); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_12); if (needsCastToResultType) { stringBuffer.append(TEXT_13); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_15); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_16); } stringBuffer.append(TEXT_17); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_18); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.Wizard")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_22); if (isRichClientPlatform) { stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_24); } else { stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_29); } stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_31); if (isRichClientPlatform) { stringBuffer.append(TEXT_32); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_43); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_44); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_45); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_46); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_47); } stringBuffer.append(TEXT_48); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_49); if (isRichClientPlatform) { stringBuffer.append(TEXT_50); } else { stringBuffer.append(TEXT_51); } stringBuffer.append(TEXT_52); if (isRichClientPlatform) { stringBuffer.append(TEXT_53); } else { stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_55); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IContainer")); stringBuffer.append(TEXT_58); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_61); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_62); } stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_64); if (isRichClientPlatform) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_67); } else { stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_71); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_82); if (editorGen.isSameFileForDiagramAndModel()) { stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_86); if (isRichClientPlatform) { stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_89); } else { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.ide.IDE")); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_103); if (isRichClientPlatform) { stringBuffer.append(TEXT_104); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_105); } else { stringBuffer.append(TEXT_106); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_108); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_109); } stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_113); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_114); if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.NaiveViewService")); stringBuffer.append(TEXT_116); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); final Comparator<GenContainerBase> comparator = new Comparator<GenContainerBase>() { public int compare(GenContainerBase o1, GenContainerBase o2) { return o1.getVisualID() - o2.getVisualID(); }};TreeSet<GenContainerBase> containers2Generate = new TreeSet<GenContainerBase>(comparator);for (Iterator containers = genDiagram.getAllContainers().iterator(); containers.hasNext();) { GenContainerBase nextContainer = (GenContainerBase) containers.next(); if (!nextContainer.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenDiagram) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenNode) { //May need to generate if contains compartments with children for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); break; } } }}for (Iterator<GenContainerBase> containers = containers2Generate.iterator(); containers.hasNext();) { GenContainerBase nextContainer = containers.next(); stringBuffer.append(TEXT_119); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_121); if (nextContainer instanceof GenNode) { boolean shouldIterateOverCompartments = false; for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { shouldIterateOverCompartments = true; break; } } if (shouldIterateOverCompartments) { stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_126); for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (nextCompartment.getContainedNodes().isEmpty()) { continue; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(nextCompartment.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_128); stringBuffer.append(nextCompartment.getUniqueIdentifier()); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); } } stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_132); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_138); boolean shouldIterateToGenerate = false; for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_140); for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_142); stringBuffer.append(nextNode.getUniqueIdentifier()); stringBuffer.append(TEXT_143); } } stringBuffer.append(TEXT_144); } stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_146); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_148); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); stringBuffer.append(TEXT_149); if (childNodes.size() == 0) { stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_151); } else { stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_154); Map genFeature2genNodeMap = new LinkedHashMap(); for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { GenNode nextNode = (GenNode) childNodes.get(nodeIndex); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } GenFeature childMetaFeature = typeModelFacet.getChildMetaFeature(); if (!genFeature2genNodeMap.containsKey(childMetaFeature)) { genFeature2genNodeMap.put(childMetaFeature, new ArrayList()); } ((Collection) genFeature2genNodeMap.get(childMetaFeature)).add(nextNode); } Set entrySet = genFeature2genNodeMap.entrySet(); if (entrySet.size() > 0) { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_156); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_159); } for (Iterator entries = entrySet.iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature childMetaFeature = (GenFeature) nextEntry.getKey(); Collection genNodesCollection = (Collection) nextEntry.getValue(); if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_161); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_163); } else { stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_165); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); stringBuffer.append(TEXT_166); } stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_168); boolean generateSwitch = genNodesCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_169); } for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { GenNode nextNode = (GenNode) genNodesIterator.next(); if (generateSwitch) { stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_171); } else { stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_173); } stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_175); if (generateSwitch) { stringBuffer.append(TEXT_176); } else { stringBuffer.append(TEXT_177); } } if (generateSwitch) { stringBuffer.append(TEXT_178); } if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_179); }} stringBuffer.append(TEXT_180); } } stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_182); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_185); { String _parentNode = "parentView"; List childNodes = nextContainer.getContainedNodes(); boolean isListLayout; if (nextContainer instanceof GenNode) { isListLayout = !org.eclipse.gmf.codegen.gmfgen.util.ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions((GenNode) nextContainer); } else if (nextContainer instanceof GenCompartment) { isListLayout = ((GenCompartment) nextContainer).isListLayout(); } else if (nextContainer instanceof GenDiagram) { isListLayout = false; } else { throw new RuntimeException("Unexpected container"); } stringBuffer.append(TEXT_186); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_188); for (Iterator it = childNodes.iterator(); it.hasNext(); ) { GenNode nextNode = (GenNode) it.next(); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(childNodeInterfaceName); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); stringBuffer.append(TEXT_192); stringBuffer.append(_parentNode); stringBuffer.append(TEXT_193); if (!isListLayout) { int defaultWidth = 40; int defaultHeight = 40; DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) nextNode.getViewmap().find(DefaultSizeAttributes.class); if (defSizeAttrs != null) { defaultWidth = defSizeAttrs.getWidth(); defaultHeight = defSizeAttrs.getHeight(); } stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_195); stringBuffer.append(defaultWidth); stringBuffer.append(TEXT_196); stringBuffer.append(defaultHeight); stringBuffer.append(TEXT_197); } else { stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_200); } stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); }class LinksCollection { private Collection<GenLink> myTypeModelFacetLinks = new LinkedList<GenLink>(); private Collection<GenLink> myFeatureModelFacetLinks = new LinkedList<GenLink>(); public void add(GenLink link) { if (link.getModelFacet() instanceof TypeLinkModelFacet) { myTypeModelFacetLinks.add(link); } else if (link.getModelFacet() instanceof FeatureLinkModelFacet) { myFeatureModelFacetLinks.add(link); } } public Iterator<GenLink> getContainedTypeModelFacetLinks() { return myTypeModelFacetLinks.iterator(); } public Iterator<GenLink> getContainedFeatureModelFacetLinks() { return myFeatureModelFacetLinks.iterator(); }}class CreateChildLinkElements { private TreeMap<GenContainerBase, LinksCollection> myElements; public CreateChildLinkElements() { myElements = new TreeMap<GenContainerBase, LinksCollection>(comparator); } public void add(GenContainerBase o, GenLink link) { buildAncestors(o); myElements.get(o).add(link); } private void buildAncestors(GenContainerBase o) { if (!myElements.containsKey(o)) { LinksCollection elements = new LinksCollection(); myElements.put(o, elements); addAncestors(o); } } private void addAncestors(GenContainerBase o) { if (o instanceof GenCompartment) { GenCompartment compartment = (GenCompartment) o; buildAncestors(compartment.getNode()); } else if (o instanceof GenTopLevelNode) { GenTopLevelNode node = (GenTopLevelNode) o; buildAncestors(node.getDiagram()); } else if (o instanceof GenChildNode) { GenChildNode node = (GenChildNode) o; for(Iterator it = node.getContainers().iterator(); it.hasNext(); ) { GenContainerBase next = (GenContainerBase) it.next(); buildAncestors(next); } } } public boolean contains(GenContainerBase o) { return myElements.containsKey(o); } public Iterator<Map.Entry<GenContainerBase, LinksCollection>> iterator() { return myElements.entrySet().iterator(); }}if (!genDiagram.getLinks().isEmpty()) { CreateChildLinkElements linkContainers2Generate = new CreateChildLinkElements(); //No need to explicitly add diagram, since we build the whole hierarchy up. for(Iterator links = genDiagram.getLinks().iterator(); links.hasNext(); ) { GenLink next = (GenLink) links.next(); GenClass containerClass; LinkModelFacet nextModelFacet = next.getModelFacet(); if (nextModelFacet instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) next.getModelFacet(); if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { //if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. containerClass = null; } else { containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); } } else if (nextModelFacet instanceof FeatureLinkModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) next.getModelFacet()).getMetaFeature(); containerClass = metaFeature.getGenClass(); } else { continue; } for (Iterator nodes = genDiagram.getAllNodes().iterator(); nodes.hasNext(); ) { GenNode nextNode = (GenNode) nodes.next(); if (containerClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) { linkContainers2Generate.add(nextNode, next); } } } for(Iterator<Map.Entry<GenContainerBase, LinksCollection>> entryIt = linkContainers2Generate.iterator(); entryIt.hasNext(); ) { Map.Entry<GenContainerBase, LinksCollection> next = entryIt.next(); GenContainerBase nextContainer = next.getKey(); LinksCollection linksCollection = next.getValue(); Iterator<GenLink> typeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks(); Iterator<GenLink> featureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks(); stringBuffer.append(TEXT_203); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_207); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_212); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_213); } boolean shouldIterateToGenerate = false; Collection childElements = new ArrayList(nextContainer.getContainedNodes()); if (nextContainer instanceof GenNode) { childElements.addAll(((GenNode) nextContainer).getCompartments()); } for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (linkContainers2Generate.contains(nextChild)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_218); for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (!linkContainers2Generate.contains(nextChild)) { continue; } stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName(nextChild.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_220); stringBuffer.append(nextChild.getUniqueIdentifier()); stringBuffer.append(TEXT_221); } stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_225); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_227); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_228); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_231); Map genFeature2genLinkMap = new LinkedHashMap();for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature metaFeature = modelFacet.getChildMetaFeature(); if (!genFeature2genLinkMap.containsKey(metaFeature)) { genFeature2genLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink);}Map genFeature2featureGenLinkMap = new LinkedHashMap();for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink);}if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_233); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_235); }if (!genFeature2genLinkMap.isEmpty()) { stringBuffer.append(TEXT_236); }for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_238); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_240); } else { stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_242); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_243); } stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_245); boolean generateSwitch = genLinksCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_246); } for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (generateSwitch) { stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_248); } else { stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_250); } if (modelFacet.getSourceMetaFeature() != null) { stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_253); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); stringBuffer.append(TEXT_254); } else { stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_256); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_257); } if (modelFacet.getTargetMetaFeature() != null) { stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_260); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); stringBuffer.append(TEXT_261); } else { stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_263); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_264); } stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_266); if (generateSwitch) { stringBuffer.append(TEXT_267); } else { stringBuffer.append(TEXT_268); } } //iterate over genLinksCollection if (generateSwitch) { stringBuffer.append(TEXT_269); } if (metaFeature.isListType()) { stringBuffer.append(TEXT_270); }}for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_272); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_274); } else { stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_276); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_277); } stringBuffer.append(TEXT_278); for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); stringBuffer.append(TEXT_279); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_280); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); if (metaFeature.isListType()) { stringBuffer.append(TEXT_283); }} stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_286); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_287); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_289); { String _diagramCode = "parentView.getDiagram()"; Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); stringBuffer.append(TEXT_294); for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (modelFacet == null) { continue; } stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_298); } for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_301); } stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); stringBuffer.append(TEXT_303); stringBuffer.append(_diagramCode); stringBuffer.append(TEXT_304); } stringBuffer.append(TEXT_305); } }}if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_308); } stringBuffer.append(TEXT_309); if (isRichClientPlatform) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_312); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_319); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_321); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_324); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_325); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_328); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_334); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_338); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_341); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionAdapter")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent")); stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyEvent")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_352); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_358); stringBuffer.append(editorGen.getDomainFileExtension()); stringBuffer.append(TEXT_359); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_361); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_362); stringBuffer.append(editorGen.getDomainGenModel().getModelName()); stringBuffer.append(TEXT_363); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_366); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_370); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_372); } stringBuffer.append(TEXT_373); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener")); stringBuffer.append(TEXT_375); if (isRichClientPlatform) { stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_377); } stringBuffer.append(TEXT_378); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_381); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_383); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_384); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_385); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_392); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_395); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_396); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_397); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_399); final String treeViewer = isRichClientPlatform ? "myTreeViewer" : "treeViewer"; stringBuffer.append(TEXT_400); if (!isRichClientPlatform){ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_401); } stringBuffer.append(treeViewer); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_404); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_405); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_406); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_410); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_411); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider")); stringBuffer.append(TEXT_413); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_414); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider")); stringBuffer.append(TEXT_416); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_417); if (!isRichClientPlatform) { stringBuffer.append(TEXT_418); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_419); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_421); } stringBuffer.append(TEXT_422); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_423); if (isRichClientPlatform) { stringBuffer.append(TEXT_424); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_426); } stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent")); stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_432); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_435); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_438); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_439); importManager.emitSortedImports(); stringBuffer.append(TEXT_440); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/88670058e3792eb12387f6a2bac58d878ca8f3f6/NewDiagramFileWizardGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/NewDiagramFileWizardGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
else childItems[0].dispose();
childItems[0].dispose();
private void createChildren(Widget widget) { // get the current child items TableTreeItem[] childItems; if (widget == tableTree) childItems = tableTree.getItems(); else { childItems = ((TableTreeItem) widget).getItems(); } if (childItems.length > 0) { Object data = childItems[0].getData(); if (data != null) // children already there! return; else // remove the dummy childItems[0].dispose(); } // get the children and create their table tree items Object node = widget.getData(); List children = getChildren(node); if (children.isEmpty()) // this item does't actually have any children return; for (int i = 0; i < children.size(); i++) { // create a new table tree item createItem(children.get(i), widget, i); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3fe46568fedba60643e0be03da922f6da9a1bdb3/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4212, 12, 4609, 3604, 13, 288, 202, 202, 759, 336, 326, 783, 1151, 1516, 202, 202, 1388, 2471, 1180, 8526, 1151, 3126, 31, 202, 202, 430, 261, 6587, 422, 1014, 2471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4212, 12, 4609, 3604, 13, 288, 202, 202, 759, 336, 326, 783, 1151, 1516, 202, 202, 1388, 2471, 1180, 8526, 1151, 3126, 31, 202, 202, 430, 261, 6587, 422, 1014, 2471...
return quotient (x, y, TRUNCATE);
IntNum quotient = new IntNum (); divide (x, y, quotient, null, rounding_mode); return quotient.canonicalize ();
public static IntNum quotient (IntNum x, IntNum y) { return quotient (x, y, TRUNCATE); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/2f567fadceb74b9bb8c9ee224a088b49518f716b/IntNum.java/buggy/gnu/math/IntNum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3094, 2578, 26708, 261, 1702, 2578, 619, 16, 3094, 2578, 677, 13, 225, 288, 565, 3094, 2578, 26708, 273, 394, 3094, 2578, 261, 1769, 12326, 261, 92, 16, 677, 16, 26708, 16, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3094, 2578, 26708, 261, 1702, 2578, 619, 16, 3094, 2578, 677, 13, 225, 288, 565, 3094, 2578, 26708, 273, 394, 3094, 2578, 261, 1769, 12326, 261, 92, 16, 677, 16, 26708, 16, 4...
return (double) event.minSuccessfulBlocks;
return event.minSuccessfulBlocks;
public double getMinBlocks() { return (double) event.minSuccessfulBlocks; }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleProgressMessage.java/buggy/src/freenet/node/fcp/SimpleProgressMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1645, 9555, 6450, 1435, 288, 202, 202, 2463, 261, 9056, 13, 871, 18, 1154, 14277, 6450, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1645, 9555, 6450, 1435, 288, 202, 202, 2463, 261, 9056, 13, 871, 18, 1154, 14277, 6450, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
alive_flag = true;
init ();
public NativeThread (ThreadGroup g, String name) { super (g, null, name); alive_flag = true; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/d11e7ddccca863b840db0bb43795c647f6f0dc8f/NativeThread.java/clean/libjava/gnu/gcj/jni/NativeThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16717, 3830, 261, 3830, 1114, 314, 16, 514, 508, 13, 225, 288, 565, 2240, 261, 75, 16, 446, 16, 508, 1769, 565, 1208, 261, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16717, 3830, 261, 3830, 1114, 314, 16, 514, 508, 13, 225, 288, 565, 2240, 261, 75, 16, 446, 16, 508, 1769, 565, 1208, 261, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, ...
if (foundItem instanceof ToolBarContributionItem) {
if ((foundItem instanceof ToolBarContributionItem)) {
public IToolBarManager getToolBarManager() { // by pass the sub coolBar and use the real cool bar. ICoolBarManager coolBarManager = getCastedParent().getCoolBarManager(); if (coolBarManager == null) { return null; } if (toolBarContributionItem == null) { IContributionItem foundItem = coolBarManager.find(type); if (foundItem instanceof ToolBarContributionItem) { toolBarContributionItem = (ToolBarContributionItem) foundItem; coolItemToolBarMgr = toolBarContributionItem.getToolBarManager(); } else { coolItemToolBarMgr = new ToolBarManager(coolBarManager.getStyle()); toolBarContributionItem = new ToolBarContributionItem(coolItemToolBarMgr, type); // Add editor item to group coolBarManager.prependToGroup(IWorkbenchActionConstants.GROUP_EDITOR, toolBarContributionItem); } ((ToolBarManager) coolItemToolBarMgr).setOverrides(new Overrides()); toolBarContributionItem.setVisible(getActive()); coolItemToolBarMgr.markDirty(); } return coolItemToolBarMgr; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/60f093c30a903b0477168ff34eb420af6c20a4fc/EditorActionBars.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 6364, 5190, 1318, 336, 6364, 5190, 1318, 1435, 288, 3639, 368, 635, 1342, 326, 720, 27367, 5190, 471, 999, 326, 2863, 27367, 4653, 18, 3639, 26899, 1371, 5190, 1318, 27367, 5190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6364, 5190, 1318, 336, 6364, 5190, 1318, 1435, 288, 3639, 368, 635, 1342, 326, 720, 27367, 5190, 471, 999, 326, 2863, 27367, 4653, 18, 3639, 26899, 1371, 5190, 1318, 27367, 5190,...
m_destinationFilename = ((CSVResultListener)exp.getResultListener()).getOutputFile().toString();
m_destinationFilename = ((CSVResultListener)exp.getResultListener()).outputFileName();
public boolean setExperiment(Experiment exp) { m_userHasBeenAskedAboutConversion = false; m_Exp = null; // hold off until we are sure we want conversion m_SaveBut.setEnabled(true); if (exp.getResultListener() instanceof DatabaseResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_DATABASE_TEXT); m_ResultsDestinationPathLabel.setText("URL:"); m_destinationDatabaseURL = ((DatabaseResultListener)exp.getResultListener()).getDatabaseURL(); m_ResultsDestinationPathTField.setText(m_destinationDatabaseURL); m_BrowseDestinationButton.setEnabled(true); } else if (exp.getResultListener() instanceof InstancesResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_ARFF_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = ((InstancesResultListener)exp.getResultListener()).getOutputFile().toString(); m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else if (exp.getResultListener() instanceof CSVResultListener) { m_ResultsDestinationCBox.setSelectedItem(DEST_CSV_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = ((CSVResultListener)exp.getResultListener()).getOutputFile().toString(); m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else { // unrecognised result listener System.out.println("SimpleSetup incompatibility: unrecognised result destination"); if (userWantsToConvert()) { m_ResultsDestinationCBox.setSelectedItem(DEST_ARFF_TEXT); m_ResultsDestinationPathLabel.setText("Filename:"); m_destinationFilename = "-"; m_ResultsDestinationPathTField.setText(m_destinationFilename); m_BrowseDestinationButton.setEnabled(true); } else { return false; } } m_ResultsDestinationCBox.setEnabled(true); m_ResultsDestinationPathLabel.setEnabled(true); m_ResultsDestinationPathTField.setEnabled(true); if (exp.getResultProducer() instanceof CrossValidationResultProducer) { CrossValidationResultProducer cvrp = (CrossValidationResultProducer) exp.getResultProducer(); m_numFolds = cvrp.getNumFolds(); m_ExperimentParameterTField.setText("" + m_numFolds); if (cvrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else if (cvrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) { m_ExpClassificationRBut.setSelected(false); m_ExpRegressionRBut.setSelected(true); } else { // unknown split evaluator System.out.println("SimpleSetup incompatibility: unrecognised split evaluator"); if (userWantsToConvert()) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT); } else if (exp.getResultProducer() instanceof RandomSplitResultProducer) { RandomSplitResultProducer rsrp = (RandomSplitResultProducer) exp.getResultProducer(); if (rsrp.getRandomizeData()) { m_ExperimentTypeCBox.setSelectedItem(TYPE_RANDOMSPLIT_TEXT); } else { m_ExperimentTypeCBox.setSelectedItem(TYPE_FIXEDSPLIT_TEXT); } if (rsrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else if (rsrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) { m_ExpClassificationRBut.setSelected(false); m_ExpRegressionRBut.setSelected(true); } else { // unknown split evaluator System.out.println("SimpleSetup incompatibility: unrecognised split evaluator"); if (userWantsToConvert()) { m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_trainPercent = rsrp.getTrainPercent(); m_ExperimentParameterTField.setText("" + m_trainPercent); } else { // unknown experiment type System.out.println("SimpleSetup incompatibility: unrecognised resultProducer"); if (userWantsToConvert()) { m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT); m_ExpClassificationRBut.setSelected(true); m_ExpRegressionRBut.setSelected(false); } else { return false; } } m_ExperimentTypeCBox.setEnabled(true); m_ExperimentParameterLabel.setEnabled(true); m_ExperimentParameterTField.setEnabled(true); m_ExpClassificationRBut.setEnabled(true); m_ExpRegressionRBut.setEnabled(true); if (exp.getRunLower() == 1) { m_numRepetitions = exp.getRunUpper(); m_NumberOfRepetitionsTField.setText("" + m_numRepetitions); } else { // unsupported iterations System.out.println("SimpleSetup incompatibility: runLower is not 1"); if (userWantsToConvert()) { exp.setRunLower(1); if (m_ExperimentTypeCBox.getSelectedItem() == TYPE_FIXEDSPLIT_TEXT) { exp.setRunUpper(1); m_NumberOfRepetitionsTField.setEnabled(false); m_NumberOfRepetitionsTField.setText("1"); } else { exp.setRunUpper(10); m_numRepetitions = 10; m_NumberOfRepetitionsTField.setText("" + m_numRepetitions); } } else { return false; } } m_NumberOfRepetitionsTField.setEnabled(true); m_OrderDatasetsFirstRBut.setSelected(exp.getAdvanceDataSetFirst()); m_OrderAlgorithmsFirstRBut.setSelected(!exp.getAdvanceDataSetFirst()); m_OrderDatasetsFirstRBut.setEnabled(true); m_OrderAlgorithmsFirstRBut.setEnabled(true); m_NotesText.setText(exp.getNotes()); m_NotesText.setEnabled(true); if (!exp.getUsePropertyIterator() || !(exp.getPropertyArray() instanceof Classifier[])) { // unknown property iteration System.out.println("SimpleSetup incompatibility: unrecognised property iteration"); if (userWantsToConvert()) { exp.setPropertyArray(new Classifier[0]); exp.setUsePropertyIterator(true); } else { return false; } } m_DatasetListPanel.setExperiment(exp); m_AlgorithmListPanel.setExperiment(exp); m_Exp = exp; expTypeChanged(); // recreate experiment m_Support.firePropertyChange("", null, null); return true; }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/9e9be5a3bb81a0b1c1c70f48f224f1da177da9c9/SimpleSetupPanel.java/buggy/gui/experiment/SimpleSetupPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 444, 22338, 12, 22338, 1329, 13, 288, 3639, 312, 67, 1355, 5582, 25931, 23663, 329, 24813, 6814, 273, 629, 31, 565, 312, 67, 2966, 273, 446, 31, 368, 6887, 3397, 3180, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 444, 22338, 12, 22338, 1329, 13, 288, 3639, 312, 67, 1355, 5582, 25931, 23663, 329, 24813, 6814, 273, 629, 31, 565, 312, 67, 2966, 273, 446, 31, 368, 6887, 3397, 3180, 732, ...
System.out.println(
System.out.println(System.currentTimeMillis() + ": " +
public static int staticGetStopBits( String port ) throws UnsupportedCommOperationException { if ( debug ) System.out.println( "RXTXPort:staticGetStopBits( " + port + " )"); return(nativeStaticGetStopBits( port ) ); }
5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/b0fcbe4f1133e8969e69a9ffc3d9994bcd41ed58/RXTXPort.java/clean/src/gnu/io/RXTXPort.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 760, 967, 4947, 6495, 12, 514, 1756, 262, 202, 202, 15069, 7221, 12136, 10602, 202, 95, 202, 202, 430, 261, 1198, 262, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 760, 967, 4947, 6495, 12, 514, 1756, 262, 202, 202, 15069, 7221, 12136, 10602, 202, 95, 202, 202, 430, 261, 1198, 262, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, ...
List<String> testClasses = (List<String>) cmdLineArgs .get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT);
List<String> testClasses = (List<String>) cmdLineArgs.get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT);
public static TestNG privateMain(String[] argv, ITestListener listener) { Map cmdLineArgs = TestNGCommandLineArgs.parseCommandLine(argv); setTestNGVersion(); TestNG result = new TestNG(); if (null != listener) { result.addListener(listener); } try { checkConditions(cmdLineArgs); { Integer verbose = (Integer) cmdLineArgs.get(TestNGCommandLineArgs.LOG); if (null != verbose) { result.setVerbose(verbose.intValue()); } } result.setOutputDirectory((String) cmdLineArgs.get(TestNGCommandLineArgs.OUTDIR_COMMAND_OPT)); result.setSourcePath((String) cmdLineArgs.get(TestNGCommandLineArgs.SRC_COMMAND_OPT)); List<String> testClasses = (List<String>) cmdLineArgs .get(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT); if (null != testClasses) { Class[] classes = (Class[]) testClasses.toArray(new Class[testClasses.size()]); result.setTestClasses(classes); } List<String> testNgXml = (List<String>) cmdLineArgs.get(TestNGCommandLineArgs.SUITE_DEF_OPT); if (null != testNgXml) { result.setTestSuites(testNgXml); } result.setGroups((String) cmdLineArgs.get(TestNGCommandLineArgs.GROUPS_COMMAND_OPT)); result.setExcludedGroups((String) cmdLineArgs.get(TestNGCommandLineArgs.EXCLUDED_GROUPS_COMMAND_OPT)); result.setTarget((String) cmdLineArgs.get(TestNGCommandLineArgs.TARGET_COMMAND_OPT)); result.setTestJar((String) cmdLineArgs.get(TestNGCommandLineArgs.TESTJAR_COMMAND_OPT)); result.setJUnit((Boolean) cmdLineArgs.get(TestNGCommandLineArgs.JUNIT_DEF_OPT)); result.setHostFile((String) cmdLineArgs.get(TestNGCommandLineArgs.HOSTFILE_OPT)); String threadCount = (String) cmdLineArgs.get(TestNGCommandLineArgs.THREAD_COUNT); if (threadCount != null) { result.setThreadCount(Integer.parseInt(threadCount)); } String client = (String) cmdLineArgs.get(TestNGCommandLineArgs.SLAVE_OPT); if (client != null) { result.setClientPort(Integer.parseInt(client)); } List<Class> listenerClasses = (List<Class>) cmdLineArgs.get(TestNGCommandLineArgs.LISTENER_COMMAND_OPT); if (null != listenerClasses) { result.setListenerClasses(listenerClasses); } result.run(); } catch(TestNGException ex) { if (TestRunner.getVerbose() > 1) { ex.printStackTrace(System.out); } else { System.err.println("[ERROR]: " + ex.getMessage()); } System.exit(1); } return result; }
50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/b75a6679665013f047f910c141d44ac8212eb311/TestNG.java/buggy/src/main/org/testng/TestNG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 7766, 4960, 3238, 6376, 12, 780, 8526, 5261, 16, 467, 4709, 2223, 2991, 13, 288, 565, 1635, 1797, 1670, 2615, 273, 7766, 4960, 21391, 2615, 18, 2670, 21391, 12, 19485, 1769, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 7766, 4960, 3238, 6376, 12, 780, 8526, 5261, 16, 467, 4709, 2223, 2991, 13, 288, 565, 1635, 1797, 1670, 2615, 273, 7766, 4960, 21391, 2615, 18, 2670, 21391, 12, 19485, 1769, 56...
private SVNExternalInfo addExternal(SVNDirectory dir, String path, String url, long revision) { if (myExternals == null) { myExternals = new TreeMap(); } SVNExternalInfo info = (SVNExternalInfo) myExternals.get(path); if (info == null) { // this means adding new external, either during report or during update, info = new SVNExternalInfo(dir.getPath(), new File(getAnchor().getRoot(), path), path, null, -1); myExternals.put(path, info); } // set it as new, report will also set old values, update will left it as is. info.setNewExternal(url, revision); return info; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/92aa3d5dc26311ee30e919b7aac6099a6a05695c/SVNWCAccess.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNWCAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 29537, 50, 6841, 966, 527, 6841, 12, 23927, 50, 2853, 1577, 16, 514, 589, 16, 514, 880, 16, 1525, 6350, 13, 288, 3639, 309, 261, 4811, 29764, 1031, 422, 446, 13, 288, 5411, 3399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29537, 50, 6841, 966, 527, 6841, 12, 23927, 50, 2853, 1577, 16, 514, 589, 16, 514, 880, 16, 1525, 6350, 13, 288, 3639, 309, 261, 4811, 29764, 1031, 422, 446, 13, 288, 5411, 3399, ...
{
public synchronized void commit() throws SQLException { if (isClosed()) { throw new SQLException("You cannot commit a closed connection."); } if (getAutoCommit()) { throw new SQLException("commit called with AutoCommit true!"); } // end of if () try { if (inTransaction()) { getLocalTransaction().internalCommit(); } // end of if () // getLocalTransaction().begin(); } catch(GDSException ge) { throw new FBSQLException(ge); } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/8c02e4f62c8aa4f6e43ae6314a75f51e848d74de/FBConnection.java/buggy/src/main/org/firebirdsql/jdbc/FBConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 3294, 1435, 1216, 6483, 3639, 309, 261, 291, 7395, 10756, 10402, 604, 394, 6483, 2932, 6225, 2780, 3294, 279, 4375, 1459, 1199, 1769, 3639, 289, 3639, 309, 261, 588, 4965, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 3294, 1435, 1216, 6483, 3639, 309, 261, 291, 7395, 10756, 10402, 604, 394, 6483, 2932, 6225, 2780, 3294, 279, 4375, 1459, 1199, 1769, 3639, 289, 3639, 309, 261, 588, 4965, ...
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side();
public quickfix.field.Side getSide() throws FieldNotFound { quickfix.field.Side value = new quickfix.field.Side();
public org.quickfix.field.Side getSide() throws FieldNotFound { org.quickfix.field.Side value = new org.quickfix.field.Side(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/clean/src/java/src/quickfix/fix42/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 1322, 831, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 1322, 831, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8895, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18,...
XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("type", type) .addAttribute("priority", String.valueOf(priority)); BugPattern pattern = getBugPattern(); if (pattern != null) { attributeList.addAttribute("abbrev", pattern.getAbbrev()); attributeList.addAttribute("category", pattern.getCategory()); } if (getUniqueId() != null) { attributeList.addAttribute("uid", getUniqueId()); } if (activeIntervalCollection != null) { attributeList.addAttribute("active", activeIntervalCollection); } xmlOutput.openTag(ELEMENT_NAME, attributeList); if (!annotationText.equals("")) { xmlOutput.openTag("UserAnnotation"); xmlOutput.writeCDATA(annotationText); xmlOutput.closeTag("UserAnnotation"); } XMLOutputUtil.writeCollection(xmlOutput, annotationList); if (propertyListHead != null) { BugProperty prop = propertyListHead; while (prop != null) { prop.writeXML(xmlOutput); prop = prop.getNext(); } } xmlOutput.closeTag(ELEMENT_NAME);
writeXML(xmlOutput, false);
public void writeXML(XMLOutput xmlOutput) throws IOException { XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("type", type) .addAttribute("priority", String.valueOf(priority)); BugPattern pattern = getBugPattern(); if (pattern != null) { // The bug abbreviation and pattern category are // emitted into the XML for informational purposes only. // (The information is redundant, but might be useful // for processing tools that want to make sense of // bug instances without looking at the plugin descriptor.) attributeList.addAttribute("abbrev", pattern.getAbbrev()); attributeList.addAttribute("category", pattern.getCategory()); } // Add a uid attribute, if we have a unique id. if (getUniqueId() != null) { attributeList.addAttribute("uid", getUniqueId()); } // Add active interval collection. if (activeIntervalCollection != null) { attributeList.addAttribute("active", activeIntervalCollection); } xmlOutput.openTag(ELEMENT_NAME, attributeList); if (!annotationText.equals("")) { xmlOutput.openTag("UserAnnotation"); xmlOutput.writeCDATA(annotationText); xmlOutput.closeTag("UserAnnotation"); } XMLOutputUtil.writeCollection(xmlOutput, annotationList); if (propertyListHead != null) { BugProperty prop = propertyListHead; while (prop != null) { prop.writeXML(xmlOutput); prop = prop.getNext(); } } xmlOutput.closeTag(ELEMENT_NAME); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/cd37a4572ffcb9dac0e9fdb8767645d60f262bf8/BugInstance.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 4201, 12, 4201, 1447, 2025, 1447, 13, 1216, 1860, 288, 202, 202, 4201, 1499, 682, 1566, 682, 273, 394, 3167, 1499, 682, 1435, 1082, 202, 18, 1289, 1499, 2932, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 4201, 12, 4201, 1447, 2025, 1447, 13, 1216, 1860, 288, 202, 202, 4201, 1499, 682, 1566, 682, 273, 394, 3167, 1499, 682, 1435, 1082, 202, 18, 1289, 1499, 2932, 723, ...
public DialPattern() { this("", 0);
public DialPattern(String prefix, int digits) { setPrefix(prefix); m_digits = digits;
public DialPattern() { this("", 0); }
12962 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12962/28002f68e380e1b29cc92405df7ff1ff0307134a/DialPattern.java/buggy/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/dialplan/DialPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9402, 3234, 1435, 288, 3639, 333, 2932, 3113, 374, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9402, 3234, 1435, 288, 3639, 333, 2932, 3113, 374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
boolean isTheme = false; if ( preHandle instanceof LibraryElementsToolHandleExtends && template instanceof Object[] )
boolean isTheme = checkTheme( preHandle, (DesignElementHandle) getSingleTransferData( template ) ); if ( isTheme )
protected void handleDrop( ) { final Object template = TemplateTransfer.getInstance( ).getTemplate( ); Assert.isNotNull( template ); Assert.isTrue( handleValidateDrag( template ) ); updateTargetRequest( ); updateTargetEditPart( ); AbstractToolHandleExtends preHandle = null; String transName = null; if ( template instanceof String ) { transName = TRANS_LABEL_CREATE_ELEMENT; preHandle = BasePaletteFactory.getAbstractToolHandleExtendsFromPaletteName( template ); } else if ( handleValidateInsert( template ) ) { transName = InsertInLayoutAction.DISPLAY_TEXT; Object objectType = getFactory( template ).getObjectType( ); if ( objectType instanceof DataSetHandle ) { preHandle = new DataSetToolExtends( ); } else if ( objectType instanceof DataSetItemModel || objectType instanceof ResultSetColumnHandle ) { preHandle = new DataSetColumnToolExtends( ); } else if ( objectType instanceof ScalarParameterHandle ) { preHandle = new ParameterToolExtends( ); } } else if ( handleValidateLibrary( template ) ) { preHandle = new LibraryElementsToolHandleExtends( (DesignElementHandle) getSingleTransferData( template ) ); } if ( preHandle != null ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .startTrans( transName ); preHandle.setRequest( this.getCreateRequest( ) ); preHandle.setTargetEditPart( getTargetEditPart( ) ); Command command = this.getCommand( ); if ( command != null && command.canExecute( ) ) { if ( !( preHandle.preHandleMouseUp( ) ) ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .rollback( ); return; } } boolean isTheme = false; if ( preHandle instanceof LibraryElementsToolHandleExtends && template instanceof Object[] ) { Object[] objs = (Object[]) template; if ( objs.length == 1 && objs[0] instanceof ThemeHandle ) { isTheme = true; } } if ( isTheme == false ) { super.handleDrop( ); // fix bugzilla#145284 if ( !preHandle.postHandleCreation( ) ) { SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .rollback( ); return; } } SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getCommandStack( ) .commit( ); if ( isTheme == false ) { selectAddedObject( ); } } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/54eda6c3b6f77d919dc1a641b2a8139491aeb6f5/ReportTemplateTransferDropTargetListener.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/ReportTemplateTransferDropTargetListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 7544, 12, 262, 202, 95, 202, 202, 6385, 1033, 1542, 273, 5035, 5912, 18, 588, 1442, 12, 262, 18, 588, 2283, 12, 11272, 202, 202, 8213, 18, 291, 5962, 12, 1542, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 7544, 12, 262, 202, 95, 202, 202, 6385, 1033, 1542, 273, 5035, 5912, 18, 588, 1442, 12, 262, 18, 588, 2283, 12, 11272, 202, 202, 8213, 18, 291, 5962, 12, 1542, 1...
return (X509Certificate) cert;
return cert;
public Certificate generateCertificate(UserDataVO subject, PublicKey publicKey, int keyusage, long validity, CertificateProfile certProfile) throws Exception{ final String sigAlg = getCAToken().getCATokenInfo().getSignatureAlgorithm(); Date firstDate = new Date(); // Set back startdate ten minutes to avoid some problems with wrongly set clocks. firstDate.setTime(firstDate.getTime() - 10 * 60 * 1000); Date lastDate = new Date(); // validity in days = validity*24*60*60*1000 milliseconds long val = validity; if(val == -1) val = certProfile.getValidity(); lastDate.setTime(lastDate.getTime() + ( val * 24 * 60 * 60 * 1000)); X509V3CertificateGenerator certgen = new X509V3CertificateGenerator(); // Serialnumber is random bits, where random generator is initialized by the // serno generator. BigInteger serno = SernoGenerator.instance().getSerno(); certgen.setSerialNumber(serno); certgen.setNotBefore(firstDate); certgen.setNotAfter(lastDate); certgen.setSignatureAlgorithm(sigAlg); // Make DNs String dn = subject.getDN(); String altName = subject.getSubjectAltName(); certgen.setSubjectDN(CertTools.stringToBcX509Name(dn)); X509Name caname = getSubjectDNAsX509Name(); certgen.setIssuerDN(caname); certgen.setPublicKey(publicKey); // Basic constranits, all subcerts are NOT CAs if (certProfile.getUseBasicConstraints() == true) { boolean isCA = false; if ((certProfile.getType() == CertificateProfile.TYPE_SUBCA) || (certProfile.getType() == CertificateProfile.TYPE_ROOTCA)) isCA = true; BasicConstraints bc = new BasicConstraints(isCA); certgen.addExtension( X509Extensions.BasicConstraints.getId(), certProfile.getBasicConstraintsCritical(), bc); } // Key usage int newKeyUsage = -1; if (certProfile.getAllowKeyUsageOverride() && (keyusage >= 0)) { newKeyUsage = keyusage; } else { newKeyUsage = CertTools.sunKeyUsageToBC(certProfile.getKeyUsage()); } if ( (certProfile.getUseKeyUsage() == true) && (newKeyUsage >=0) ){ X509KeyUsage ku = new X509KeyUsage(newKeyUsage); certgen.addExtension( X509Extensions.KeyUsage.getId(), certProfile.getKeyUsageCritical(), ku); } // Extended Key usage if (certProfile.getUseExtendedKeyUsage() == true) { // Get extended key usage from certificate profile Collection c = certProfile.getExtendedKeyUsageAsOIDStrings(); Vector usage = new Vector(); Iterator iter = c.iterator(); while (iter.hasNext()) { usage.add(new DERObjectIdentifier((String)iter.next())); } ExtendedKeyUsage eku = new ExtendedKeyUsage(usage); // Extended Key Usage may be either critical or non-critical certgen.addExtension( X509Extensions.ExtendedKeyUsage.getId(), certProfile.getExtendedKeyUsageCritical(), eku); } // Subject key identifier if (certProfile.getUseSubjectKeyIdentifier() == true) { SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( (ASN1Sequence) new ASN1InputStream(new ByteArrayInputStream(publicKey.getEncoded())).readObject()); SubjectKeyIdentifier ski = new SubjectKeyIdentifier(spki); certgen.addExtension( X509Extensions.SubjectKeyIdentifier.getId(), certProfile.getSubjectKeyIdentifierCritical(), ski); } // Authority key identifier if (certProfile.getUseAuthorityKeyIdentifier() == true) { SubjectPublicKeyInfo apki = null; try{ apki = new SubjectPublicKeyInfo( (ASN1Sequence) new ASN1InputStream(new ByteArrayInputStream(getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN).getEncoded())).readObject()); }catch(CATokenOfflineException e){ log.debug("X509CA : Setting STATUS OFFLINE " + this.getName()); this.setStatus(SecConst.CA_OFFLINE); log.debug("X509CA : New STATUS " + this.getStatus()); throw new CATokenOfflineException(e.getMessage()); } AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki); certgen.addExtension( X509Extensions.AuthorityKeyIdentifier.getId(), certProfile.getAuthorityKeyIdentifierCritical(), aki); } // Subject Alternative name if ( (certProfile.getUseSubjectAlternativeName() == true) && (altName != null) && (altName.length() > 0) ) { String email = CertTools.getEmailFromDN(altName); DEREncodableVector vec = new DEREncodableVector(); if (email != null) { GeneralName gn = new GeneralName(1, new DERIA5String(email)); vec.add(gn); } String dns = CertTools.getPartFromDN(altName, CertTools.DNS); if (dns != null) { GeneralName gn = new GeneralName(2, new DERIA5String(dns)); vec.add(gn); } String uri = CertTools.getPartFromDN(altName, CertTools.URI); if (uri == null){ uri = CertTools.getPartFromDN(altName, CertTools.URI1); } if (uri != null) { GeneralName gn = new GeneralName(6, new DERIA5String(uri)); vec.add(gn); } String ipstr = CertTools.getPartFromDN(altName, CertTools.IPADDR); if (ipstr != null) { byte[] ipoctets = StringTools.ipStringToOctets(ipstr); GeneralName gn = new GeneralName(7, new DEROctetString(ipoctets)); vec.add(gn); } String upn = CertTools.getPartFromDN(altName, CertTools.UPN); if (upn != null) { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new DERObjectIdentifier(CertTools.UPN_OBJECTID)); v.add(new DERTaggedObject(true, 0, new DERUTF8String(upn))); //GeneralName gn = new GeneralName(new DERSequence(v), 0); DERObject gn = new DERTaggedObject(false, 0, new DERSequence(v)); vec.add(gn); } String guid = CertTools.getPartFromDN(altName, CertTools.GUID); if (guid != null) { ASN1EncodableVector v = new ASN1EncodableVector(); byte[] guidbytes = Hex.decode(guid); if (guidbytes != null) { v.add(new DERObjectIdentifier(CertTools.GUID_OBJECTID)); v.add(new DERTaggedObject(true, 0, new DEROctetString(guidbytes))); DERObject gn = new DERTaggedObject(false, 0, new DERSequence(v)); vec.add(gn); } else { log.error("Cannot decode hexadecimal guid: "+guid); } } if (vec.size() > 0) { GeneralNames san = new GeneralNames(new DERSequence(vec)); certgen.addExtension(X509Extensions.SubjectAlternativeName.getId(), certProfile.getSubjectAlternativeNameCritical(), san); } } // Certificate Policies if (certProfile.getUseCertificatePolicies() == true) { PolicyInformation pi = new PolicyInformation(new DERObjectIdentifier(certProfile.getCertificatePolicyId())); DERSequence seq = new DERSequence(pi); certgen.addExtension(X509Extensions.CertificatePolicies.getId(), certProfile.getCertificatePoliciesCritical(), seq); } // CRL Distribution point URI if (certProfile.getUseCRLDistributionPoint() == true) { // Multiple CDPs are spearated with the ';' sign StringTokenizer tokenizer = new StringTokenizer(certProfile.getCRLDistributionPointURI(), ";", false); ArrayList distpoints = new ArrayList(); while (tokenizer.hasMoreTokens()) { // 6 is URI String uri = tokenizer.nextToken(); GeneralName gn = new GeneralName(6, new DERIA5String(uri)); log.debug("Added CRL distpoint: "+uri); ASN1EncodableVector vec = new ASN1EncodableVector(); vec.add(gn); GeneralNames gns = new GeneralNames(new DERSequence(vec)); DistributionPointName dpn = new DistributionPointName(0, gns); distpoints.add(new DistributionPoint(dpn, null, null)); } if (distpoints.size() > 0) { CRLDistPoint ext = new CRLDistPoint((DistributionPoint[])distpoints.toArray(new DistributionPoint[0])); certgen.addExtension(X509Extensions.CRLDistributionPoints.getId(), certProfile.getCRLDistributionPointCritical(), ext); } } // Authority Information Access (OCSP url) if (certProfile.getUseOCSPServiceLocator() == true) { String ocspUrl = certProfile.getOCSPServiceLocatorURI(); // OCSP access location is a URL (GeneralName no 6) GeneralName ocspLocation = new GeneralName(6, new DERIA5String(ocspUrl)); certgen.addExtension(X509Extensions.AuthorityInfoAccess.getId(), false, new AuthorityInformationAccess(X509ObjectIdentifiers.ocspAccessMethod, ocspLocation)); } // Microsoft Template if (certProfile.getUseMicrosoftTemplate() == true) { String mstemplate = certProfile.getMicrosoftTemplate(); DERObjectIdentifier oid = new DERObjectIdentifier(OID_MSTEMPLATE); certgen.addExtension(oid, false, new DERIA5String(mstemplate)); } X509Certificate cert; try{ cert = certgen.generateX509Certificate(getCAToken().getPrivateKey(SecConst.CAKEYPURPOSE_CERTSIGN), getCAToken().getProvider()); }catch(CATokenOfflineException e){ log.debug("X509CA : Setting STATUS OFFLINE"); this.setStatus(SecConst.CA_OFFLINE); throw e; } // Verify before returning cert.verify(getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN)); log.debug(">X509CA: generate certificate, CA "+ this.getCAId() + " for DN=" + subject.getDN()); return (X509Certificate) cert; }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/b1998ab23fc30f8dbd82bbca26f9201c35e2fbef/X509CA.java/clean/src/java/se/anatom/ejbca/ca/caadmin/X509CA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6660, 2103, 4719, 12, 19265, 16169, 3221, 16, 4766, 5411, 11951, 12085, 16, 4766, 5411, 509, 498, 9167, 16, 4766, 5411, 1525, 13800, 16, 4766, 6647, 6660, 4029, 3320, 4029, 13, 1216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6660, 2103, 4719, 12, 19265, 16169, 3221, 16, 4766, 5411, 11951, 12085, 16, 4766, 5411, 509, 498, 9167, 16, 4766, 5411, 1525, 13800, 16, 4766, 6647, 6660, 4029, 3320, 4029, 13, 1216, ...
private IPersistentMap createListMap(Object key, Object val){
IPersistentMap createListMap(Object key, Object val){
private IPersistentMap createListMap(Object key, Object val){ return PersistentListMap.create(key,val);}
49600 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49600/1b7ed50694b64f33303145d1c78d8f07481a9560/PersistentHashtableMap.java/buggy/src/org/clojure/runtime/PersistentHashtableMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 2971, 6572, 863, 752, 682, 863, 12, 921, 498, 16, 1033, 1244, 15329, 202, 2463, 11049, 682, 863, 18, 2640, 12, 856, 16, 1125, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 2971, 6572, 863, 752, 682, 863, 12, 921, 498, 16, 1033, 1244, 15329, 202, 2463, 11049, 682, 863, 18, 2640, 12, 856, 16, 1125, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -10...
externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword });
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.getPageMaker().getContentNode(infobox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.getPageMaker().getContentNode(warnbox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = infoboxContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", '/' + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx.getPageMaker(), MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); if(NodeStarter.extBuildNumber < NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER) { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + '(' + NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER + ") r" + NodeStarter.extRevisionNumber); } else { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); } versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
cx.interpreterSecurityDomain = fnOrScript.securityDomain;
cx.interpreterSecurityDomain = ifun.securityDomain;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript) { if (cx.interpreterSecurityDomain != fnOrScript.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = fnOrScript.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = fnOrScript.securityDomain; try { return fnOrScript.securityController.callWithDomain( fnOrScript.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } InterpreterData idata = fnOrScript.idata; final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int LOCAL_SHFT = idata.itsMaxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[0 <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for local temporaries// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[i] = arg; if (arg == DBL_MRK) { sDbl[i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != idata.itsMaxVars; ++i) { stack[i] = undefined; } DebugFrame debuggerFrame = null; boolean useActivationVars = false; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); useActivationVars = (debuggerFrame != null); } if (idata.itsNeedsActivation || useActivationVars) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } } if (idata.itsFunctionType != 0) { if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation || useActivationVars) { scope = ScriptRuntime.enterActivationFunction(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(fnOrScript, thisObj, cx, scope, fnOrScript.evalScriptFlag); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { initFunction(cx, scope, fnOrScript, i); } } } Scriptable[] scriptRegExps = null; if (idata.itsRegExpLiterals != null) { // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution if (idata.itsFunctionType != 0) { scriptRegExps = fnOrScript.functionRegExps; } else { scriptRegExps = fnOrScript.createRegExpWraps(cx, scope); } } if (debuggerFrame != null) { debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; int savedLineIndex = cx.interpreterLineIndex; cx.interpreterData = idata; cx.interpreterLineIndex = idata.firstLinePC; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final boolean instructionCounting = (cx.instructionThreshold != 0); // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { try { int op = iCode[pc++]; jumplessRun: { // Back indent to ease imlementation readingswitch (op) { case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pc = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pc >= 0) { // Has catch block doCatch = true; } } if (pc < 0) { pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pc < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; if (instructionCounting) { // 500: catch cost cx.addInstructionCount(500); pcPrevBranch = pc; } continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : case Token.LE : case Token.GT : case Token.LT : stackTop = do_cmp(stack, sDbl, stackTop, op); continue Loop; case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : case Token.NE : stackTop = do_eq(stack, sDbl, stackTop, op); continue Loop; case Token.SHEQ : case Token.SHNE : stackTop = do_sheq(stack, sDbl, stackTop, op); continue Loop; case Token.IFNE : if (stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Token.IFEQ : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Icode_IFEQ_POP : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } stack[stackTop--] = null; break jumplessRun; case Token.GOTO : break jumplessRun; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; break jumplessRun; case Icode_RETSUB : { // indexReg: local to store return address if (instructionCounting) { cx.addInstructionCount(pc - pcPrevBranch); } Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pc = (int)sDbl[LOCAL_SHFT + indexReg]; pcPrevBranch = pc; } continue Loop; } case Icode_POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_POP_RESULT : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUP2 : stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stack[stackTop + 2] = stack[stackTop]; sDbl[stackTop + 2] = sDbl[stackTop]; stackTop += 2; continue Loop; case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_RESULT : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.ADD : stackTop = do_add(stack, sDbl, stackTop, cx); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(cx, scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, cx, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getObjectProp(lhs, stringReg, cx, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setObjectProp(lhs, stringReg, rhs, cx, scope); continue Loop; } case Icode_PROP_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.propIncrDecr(lhs, stringReg, scope, iCode[pc]); ++pc; continue Loop; } case Token.GETELEM : stackTop = do_getElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Token.SETELEM : stackTop = do_setElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Icode_ELEM_INC_DEC: { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.elemIncrDecr(lhs, rhs, cx, scope, iCode[pc]); ++pc; continue Loop; } case Token.GET_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getReference(lhs); continue Loop; } case Token.SET_REF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setReference(lhs, rhs); continue Loop; } case Token.DEL_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.deleteReference(lhs); continue Loop; } case Icode_REF_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.referenceIncrDecr(lhs, iCode[pc]); ++pc; continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_NAME_AND_THIS : // stringReg: name ++stackTop; stack[stackTop] = ScriptRuntime.getNameFunctionAndThis(stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; case Icode_PROP_AND_THIS: { Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop]); // stringReg: property stack[stackTop] = ScriptRuntime.getPropFunctionAndThis(obj, stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_ELEM_AND_THIS: { Object obj = stack[stackTop - 1]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop - 1]); Object id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); stack[stackTop - 1] = ScriptRuntime.getElemFunctionAndThis(obj, id, cx, scope); stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_VALUE_AND_THIS : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getValueFunctionAndThis(value, cx); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_CALLSPECIAL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); if (isNew) { Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.newSpecial( cx, function, outArgs, scope, callType); } else { // Call code generation ensure that stack here // is ... Function Scriptable Scriptable functionThis = (Scriptable)stack[stackTop]; --stackTop; Function function = (Function)stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, function, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); } pc += 4; continue Loop; } case Token.CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } if (fun instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction ifun = (InterpretedFunction)fun; stack[stackTop] = interpret(cx, funScope, funThisObj, stack, sDbl, calleeArgShft, indexReg, ifun); } else { Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = fun.call(cx, funScope, funThisObj, outArgs); } continue Loop; } case Token.REF_CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // REF_CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = ScriptRuntime.referenceCall(fun, funThisObj, outArgs, cx, funScope); continue Loop; } case Token.NEW : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); throw notAFunction(lhs, idata, pc); } pc += 2; // skip debug name index continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(cx, scope, stringReg); continue Loop; case Icode_NAME_INC_DEC : stack[++stackTop] = ScriptRuntime.nameIncrDecr(scope, stringReg, iCode[pc]); ++pc; continue Loop; case Icode_SETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.SETVAR : if (!useActivationVars) { stack[indexReg] = stack[stackTop]; sDbl[indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Icode_GETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.GETVAR : ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[indexReg]; sDbl[stackTop] = sDbl[indexReg]; } else { stack[stackTop] = activationGet(fnOrScript, scope, indexReg); } continue Loop; case Icode_VAR_INC_DEC : { // indexReg : varindex ++stackTop; int incrDecrMask = iCode[pc]; if (!useActivationVars) { stack[stackTop] = DBL_MRK; Object varValue = stack[indexReg]; double d; if (varValue == DBL_MRK) { d = sDbl[indexReg]; } else { d = ScriptRuntime.toNumber(varValue); stack[indexReg] = DBL_MRK; } double d2 = ((incrDecrMask & Node.DECR_FLAG) == 0) ? d + 1.0 : d - 1.0; sDbl[indexReg] = d2; sDbl[stackTop] = ((incrDecrMask & Node.POST_FLAG) == 0) ? d2 : d; } else { String varName = fnOrScript.argNames[indexReg]; stack[stackTop] = ScriptRuntime.nameIncrDecr(scope, varName, incrDecrMask); } ++pc; continue Loop; } case Icode_ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Icode_ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Icode_UNDEF : stack[++stackTop] = undefined; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT_KEYS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_INIT_VALUES : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumValuesInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val, cx); continue Loop; } case Token.SPECIAL_REF : { //stringReg: name of special property Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.specialReference(lhs, stringReg, cx, scope); continue Loop; } case Token.XML_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.xmlReference(lhs, cx, scope); continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE_EXPR : stack[++stackTop] = InterpretedFunction.createFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Icode_CLOSURE_STMT : initFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Token.REGEXP : stack[++stackTop] = scriptRegExps[indexReg]; continue Loop; case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_ENTERDQ : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterDotQuery(lhs, scope); ++withDepth; continue Loop; } case Icode_LEAVEDQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); Object x = ScriptRuntime.updateDotQuery(valBln, scope); if (x != null) { stack[stackTop] = x; scope = ScriptRuntime.leaveDotQuery(scope); --withDepth; pc += 2; continue Loop; } // reset stack and PC to code after ENTERDQ --stackTop; break jumplessRun; } case Token.DEFAULTNAMESPACE : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setDefaultNamespace(value, cx); continue Loop; } case Token.ESCXMLATTR : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeAttributeValue(value, cx); } continue Loop; } case Token.ESCXMLTEXT : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeTextValue(value, cx); } continue Loop; } case Token.TOATTRNAME : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toAttributeName(value, cx); continue Loop; } case Token.DESCENDANTS : { Object value = stack[stackTop]; if(value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toDescendantsName(value, cx); continue Loop; } case Token.COLONCOLON : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); // stringReg contains namespace stack[stackTop] = ScriptRuntime.toQualifiedName(stringReg, value, cx, scope); continue Loop; } case Icode_LINE : cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND_C4: indexReg = 4; continue Loop; case Icode_REG_IND_C5: indexReg = 5; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Icode_REG_STR_C0: stringReg = strings[0]; continue Loop; case Icode_REG_STR_C1: stringReg = strings[1]; continue Loop; case Icode_REG_STR_C2: stringReg = strings[2]; continue Loop; case Icode_REG_STR_C3: stringReg = strings[3]; continue Loop; case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; default : dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1));} // end of interpreter switch } // end of jumplessRun label block // This should be reachable only for jump implementation // when pc points to encoded target offset if (instructionCounting) { cx.addInstructionCount(pc + 2 - pcPrevBranch); } int offset = getShort(iCode, pc); if (offset != 0) { // -1 accounts for pc pointing to jump opcode + 1 pc += offset - 1; } else { pc = idata.longJumps.getExistingInt(pc); } pcPrevBranch = pc; continue Loop; } // end of interpreter try catch (Throwable ex) { if (instructionCounting) { // Can not call addInstructionCount as it may trigger // exception cx.instructionCount += pc - pcPrevBranch; } javaException = ex; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; cx.interpreterLineIndex = savedLineIndex; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsFunctionType != 0) { if (idata.itsNeedsActivation || useActivationVars) { ScriptRuntime.exitActivationFunction(cx); } } if (javaException != null) { if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/0103da48e6e58ebf7674bbea96418aac1f2b34e0/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
return RubyFixnum.newFixnum(getRuntime(), 0);
return getRuntime().newFixnum(0);
public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClass otherClass = (JavaClass) other; if (this.javaClass == otherClass.javaClass) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (otherClass.javaClass.isAssignableFrom(this.javaClass)) { return RubyFixnum.newFixnum(getRuntime(), -1); } return RubyFixnum.newFixnum(getRuntime(), 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 16051, 261, 3011, 1276, 29491, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 3532, 9207, 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, 377, 1071, 19817, 8585, 2107, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 16051, 261, 3011, 1276, 29491, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 3532, 9207, 4...
public String getDisplayName() {
public String getDisplayName(){
public String getDisplayName() { return "Utility class without private constructor"; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bd57f07c33c419f20715b114b71a7e93425b34c9/UtilityClassWithoutPrivateConstructorInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/UtilityClassWithoutPrivateConstructorInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22055, 1435, 95, 3639, 327, 315, 6497, 667, 2887, 3238, 3885, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 377, 1071, 514, 22055, 1435, 95, 3639, 327, 315, 6497, 667, 2887, 3238, 3885, 14432, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (eastBorder &&
if (eastBorder &&
private void paintDottedBorders(Graphics g, int x, int y, int width, int height) { if (northBorder && northBorderType == HSSFCellStyle.BORDER_DOTTED) { int thickness = getThickness(northBorderType); g.setColor(northColor); for (int k=0; k < thickness; k++) { for (int xc = x; xc < width; xc=xc+2) { g.drawLine(xc,y+k,xc,y+k); } } } if (eastBorder && eastBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(eastBorderType); thickness++; //need for dotted borders to show up east g.setColor(eastColor); for (int k=0; k < thickness; k++) { for (int yc=y;yc < height; yc=yc+2) { g.drawLine(width-k,yc,width-k,yc); } } } if (southBorder && southBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(southBorderType); thickness++; g.setColor(southColor); for (int k=0; k < thickness; k++) { for (int xc = x; xc < width; xc=xc+2) { g.drawLine(xc,height-k,xc,height-k); } } } if (westBorder && westBorderType == HSSFCellStyle.BORDER_DOTTED ) { int thickness = getThickness(westBorderType);// thickness++; g.setColor(westColor); for (int k=0; k < thickness; k++) { for (int yc=y;yc < height; yc=yc+2) { g.drawLine(x+k,yc,x+k,yc); } } } }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/f17a8bdf43e9f96005f3e20ce5c31c89a36575ea/SVBorder.java/buggy/src/contrib/src/org/apache/poi/hssf/contrib/view/SVBorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 12574, 10412, 2344, 21621, 12, 17558, 314, 16, 509, 619, 16, 509, 677, 16, 509, 1835, 16, 4766, 282, 509, 2072, 13, 288, 1377, 309, 261, 82, 7825, 8107, 597, 2868, 21435, 810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 12574, 10412, 2344, 21621, 12, 17558, 314, 16, 509, 619, 16, 509, 677, 16, 509, 1835, 16, 4766, 282, 509, 2072, 13, 288, 1377, 309, 261, 82, 7825, 8107, 597, 2868, 21435, 810...
configParam = context.getRealPath("/WEB-INF/application.conf");
configParaInitiam = context.getRealPath("/WEB-INF/application.conf");
public void init(ServletConfig servletConfig) throws ServletException { ServletContext context = servletConfig.getServletContext(); // check servlet context and then local servlet parameter or assume WEB-INF String configParam = (String) context.getAttribute(ServerConfiguration.INIT_PARAM); if (null == configParam) { BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream("/defaults/copyright.txt"))); try { String line; while (null != (line = br.readLine())) { System.out.println(line); } } catch (IOException e) { // create copyright output if the copyrights file was not found System.out.println("SnipSnap (unknown version)"); System.out.println("Copyright (c) 2003 Fraunhofer Gesellschaft"); System.out.println("Fraunhofer Institute for Computer Architecture and Software Technology"); System.out.println("All Rights Reserved. See License Agreement for terms and conditions of use."); } configParam = context.getRealPath(context.getInitParameter(ServerConfiguration.INIT_PARAM)); } if (null == configParam) { configParam = context.getRealPath("/WEB-INF/application.conf"); } // create new configuration instance try { Configuration config = ConfigurationProxy.newInstance(); config.setWebInfDir(new File(context.getRealPath("/WEB-INF"))); File configFile = new File(configParam); if (configFile.exists()) { // load initial config (containing the jdbc url/user/pass) config.load(new FileInputStream(configFile)); } if (!config.isInstalled()) { System.out.println("Unconfigured SnipSnap. Please visit the following web site"); System.out.println("and finish the installation procedure."); System.out.println(">> " + config.getUrl()); } else { SnipSpace space = (SnipSpace) Components.getComponent(SnipSpace.class); if (space.exists(Configuration.SNIPSNAP_CONFIG)) { Snip configSnip = space.load(Configuration.SNIPSNAP_CONFIG); String configContent = configSnip.getContent(); config.load(new ByteArrayInputStream(configContent.getBytes())); } } try { Logger.setHandler((LogHandler) Class.forName(config.getLogger()).newInstance()); } catch (Exception e) { System.err.println("InitServlet: LogHandler not found: " + config.getLogger()); } if (config.allow(Configuration.APP_PERM_WEBLOGSPING)) { System.out.println("WARNING: " + config.getName() + ": Weblogs ping is enabled.\n" + "This means that SnipSnap sends notifications to hosts on the internet\n" + "when your weblog changes. To turn this off take a look at the FAQ at\n" + ">> http://snipsnap.org/space/faq <<\n"); } } catch (IOException e) { e.printStackTrace(); System.err.println("InitServlet: Unable to load configuration for this application: " + e); } }
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/dfe80e4ed3627b1f639b5f83fac918c5da2ebbb1/InitServlet.java/clean/src/org/snipsnap/net/InitServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 12, 4745, 809, 8100, 809, 13, 1216, 16517, 288, 565, 22717, 819, 273, 8100, 809, 18, 588, 4745, 1042, 5621, 565, 368, 866, 8100, 819, 471, 1508, 1191, 8100, 1569, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 12, 4745, 809, 8100, 809, 13, 1216, 16517, 288, 565, 22717, 819, 273, 8100, 809, 18, 588, 4745, 1042, 5621, 565, 368, 866, 8100, 819, 471, 1508, 1191, 8100, 1569, 578, ...
throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported");
throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported");
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/76d37f709db398798e5b6a889937559a9e75e062/KernelModule.java/clean/org/jruby/KernelModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 9902, 5605, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 1645, 563, 273, 10665, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 9902, 5605, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 1645, 563, 273, 10665, 18, ...
deselectAllButton.setFont(font);
public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.WORKING_SET_RESOURCE_PAGE); Label label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); text = new Text(composite, SWT.SINGLE | SWT.BORDER); text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); text.setFont(font); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validateInput(); } }); text.setFocus(); text.setBackground(FieldAssistColors.getRequiredFieldBackgroundColor(text)); label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_label_tree); data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); tree = new CheckboxTreeViewer(composite); tree.setUseHashlookup(true); final ITreeContentProvider treeContentProvider = new WorkbenchContentProvider(); tree.setContentProvider(treeContentProvider); tree.setLabelProvider(new DecoratingLabelProvider( new WorkbenchLabelProvider(), IDEWorkbenchPlugin.getDefault() .getWorkbench().getDecoratorManager() .getLabelDecorator())); tree.setInput(IDEWorkbenchPlugin.getPluginWorkspace().getRoot()); tree.setSorter(new ResourceSorter(ResourceSorter.NAME)); data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; tree.getControl().setLayoutData(data); tree.getControl().setFont(font); tree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); } }); tree.addTreeListener(new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { final Object element = event.getElement(); if (tree.getGrayed(element) == false) { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setSubtreeChecked((IContainer) element, tree.getChecked(element), false); } }); } } }); // Add select / deselect all buttons for bug 46669 Composite buttonComposite = new Composite(composite, SWT.NONE); buttonComposite.setLayout(new GridLayout(2, false)); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); selectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); validateInput(); } }); selectAllButton.setFont(font); setButtonLayoutData(selectAllButton); Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); deselectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_label); deselectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_toolTip); deselectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(new Object[0]); validateInput(); } }); deselectAllButton.setFont(font); setButtonLayoutData(deselectAllButton); initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a0d24374fa989b241b43a0fdb846df0624ab7054/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3367, 12, 9400, 982, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, ...
public void visitVarInit(VarInit x) {
public void visitVarInit(/*@ non_null */ VarInit x) {
public void visitVarInit(VarInit x) { visitASTNode(x); }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/95ace042c64a5f2e296b44bf47b1d9b53b361217/RShiftVisitor.java/clean/src/escjava/trunk/ESCTools/Javafe/java/javafe/ast/RShiftVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 1537, 2570, 12, 20308, 36, 1661, 67, 2011, 1195, 4562, 2570, 619, 13, 288, 565, 3757, 9053, 907, 12, 92, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 3757, 1537, 2570, 12, 20308, 36, 1661, 67, 2011, 1195, 4562, 2570, 619, 13, 288, 565, 3757, 9053, 907, 12, 92, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -1...
try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
public void testFailOnVerify() { ExpectationMap map = new ExpectationMap("map"); map.setExpectNothing(); map.setFailOnVerify(); map.get("key"); try { map.verify(); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationMapTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationMapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3754, 1398, 8097, 1435, 288, 202, 202, 11988, 367, 863, 852, 273, 394, 15510, 367, 863, 2932, 1458, 8863, 202, 202, 1458, 18, 542, 11988, 23814, 5621, 202, 202, 1458,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3754, 1398, 8097, 1435, 288, 202, 202, 11988, 367, 863, 852, 273, 394, 15510, 367, 863, 2932, 1458, 8863, 202, 202, 1458, 18, 542, 11988, 23814, 5621, 202, 202, 1458,...
return URIUtil.getRelativePath( new File( basePath ).getParent( ), path );
File baseFile = new File( basePath ); if ( baseFile.isFile( ) ) { baseFile = baseFile.getParentFile( ); } return URIUtil.getRelativePath( baseFile.getAbsolutePath( ), path );
public static String getRelativedPath( String basePath, String path ) { return URIUtil.getRelativePath( new File( basePath ).getParent( ), path ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/815327d3747087adab8005cae4639729811649b0/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 336, 1971, 270, 2950, 743, 12, 514, 9104, 16, 514, 589, 262, 202, 95, 202, 202, 2463, 3699, 1304, 18, 588, 16519, 12, 394, 1387, 12, 9104, 262, 18, 588, 3054, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 336, 1971, 270, 2950, 743, 12, 514, 9104, 16, 514, 589, 262, 202, 95, 202, 202, 2463, 3699, 1304, 18, 588, 16519, 12, 394, 1387, 12, 9104, 262, 18, 588, 3054, 12, ...
125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1,
-1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, 316, 317, 318, -1, -1, -1, -1, -1, -1, 10, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, 351, -1, -1, -1, -1, 41, -1, -1, 359, -1, -1, 93, 363, 364, 365, 366, 367, 368, -1, -1, 0, -1, 58, 59, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 125, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, 318, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 338, -1, -1, 341, -1, 343, 344, 345, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1,
private static final short[] yyCheck4() { return new short[] { 125, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, 93, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 41, 311, 312, 313, 314, 0, -1, 317, 318, 319, -1, -1, -1, -1, -1, 10, -1, 58, 59, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, 41, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 125, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, 350, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, 343, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, 352, -1, -1, -1, -1, -1, -1, -1, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 359, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, 348, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, -1, -1, 319, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 339, -1, -1, 342, -1, 344, 345, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, 363, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, }; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 30616, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 30616, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, 225, 576, 7140, 16, 225, 576, 5292, 16, ...
log.error("Thread #" + rank + ": queue was closed");
System.err.println("Thread #" + rank + ": queue was closed");
public void run() { boolean finished = false; while (!finished) { try { retval = (Long) queue.remove(timeout); // System.out.println("Thread #" + rank + " removed element (" + retval + ")"); finished = true; } catch (QueueClosedException closed) { log.error("Thread #" + rank + ": queue was closed"); finished = true; } catch (TimeoutException e) { } } }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/5ad015d9a78e1da3350d9b398b46b2f5d4508564/QueueTest.java/clean/tests/junit/org/jgroups/tests/QueueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 202, 202, 95, 1082, 202, 6494, 6708, 273, 629, 31, 1082, 202, 17523, 16051, 13527, 13, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 18341, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 202, 202, 95, 1082, 202, 6494, 6708, 273, 629, 31, 1082, 202, 17523, 16051, 13527, 13, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 18341, 273, 2...
public static StringBuffer formatLocationBlock(Location loc, int strand, String leader, int wrapWidth) { // Indicates how many characters have been added to the // current line int position = leader.length(); boolean join = false; boolean complement = false; List locs = new ArrayList(); for (Iterator li = loc.blockIterator(); li.hasNext();) { locs.add(li.next()); } Location [] la = (Location[]) locs.toArray(new Location [0]); // Arrays.sort(la, Location.naturalOrder); StringBuffer sb = new StringBuffer(leader); // There are issues here about choosing various forms: // join(complement(...),complement(...)) // join(complement(...,...)) // complement(join(...,...)) if (loc instanceof CompoundLocation) { join = true; sb.append("join("); position += 5; } if (strand == -1) { complement = true; sb.append("complement("); position += 11; } int pre, post; int diff = 0; for (int i = 0; i < la.length; i++) { pre = sb.length(); boolean point = (PointLocation.class.isInstance(la[i])) ? true : false; boolean fuzzy = (FuzzyLocation.class.isInstance(la[i])) ? true : false; boolean fuzzyPoint = (FuzzyPointLocation.class.isInstance(la[i])) ? true : false; if (point) { sb.append(la[i].getMin()); } else if (fuzzy) { FuzzyLocation fl = (FuzzyLocation) la[i]; if (! fl.hasBoundedMin()) { // <123 sb.append("<"); sb.append(fl.getMin()); } else if (fl.getOuterMin() != fl.getInnerMin()) { // (123.567) sb.append("(" + fl.getOuterMin()); sb.append("."); sb.append(fl.getInnerMin() + ")"); } else // 123 sb.append(fl.getMin()); sb.append(".."); if (! fl.hasBoundedMax()) { // >567 sb.append(">"); sb.append(la[i].getMax()); } else if (fl.getInnerMax() != fl.getOuterMax()) { // (567.789) sb.append("(" + fl.getInnerMax()); sb.append("."); sb.append(fl.getOuterMax() + ")"); } else // 567 sb.append(fl.getMax()); } else if (fuzzyPoint) { FuzzyPointLocation fpl = (FuzzyPointLocation) la[i]; if (! fpl.hasBoundedMin()) { // <123 sb.append("<"); sb.append(fpl.getMax()); } else if (! fpl.hasBoundedMax()) { // >567 sb.append(">"); sb.append(fpl.getMin()); } else { // (567.789) sb.append("(" + fpl.getMin()); sb.append("."); sb.append(fpl.getMax() + ")"); } } else { // 123..567 sb.append(la[i].getMin()); sb.append(".."); sb.append(la[i].getMax()); } // If there is another location after this if (i + 1 < la.length) sb.append(","); post = sb.length(); // The number of characters just added diff = post - pre; // If we have exceeded the line length if ((position + diff) > wrapWidth) { // Insert a newline just prior to the this loaction // string sb.insert((sb.length() - diff), "\n" + leader); position = leader.length() + diff; } else { position += diff; } } if (join) { sb.append(")"); // If adding the ")" has made the line too long, move the // last range to the next line if ((position + 1) > wrapWidth) { sb.insert((sb.length() - diff), "\n" + leader); position++; diff++; } } if (complement) { sb.append(")"); // If adding the ")" has made the line too long, move the // last range to the next line if ((position + 1) > wrapWidth) { sb.insert((sb.length() - diff), "\n" + leader); } } return sb; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/73e6b2241c67db5615541c709f8d8c0c7536323a/SeqFormatTools.java/buggy/src/org/biojava/bio/seq/io/SeqFormatTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 6674, 740, 2735, 1768, 12, 2735, 1515, 16, 6862, 1082, 282, 509, 225, 16706, 16, 6862, 1082, 282, 514, 282, 10302, 16, 6862, 1082, 282, 509, 225, 2193, 2384, 15329, 202, 759, 18336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 6674, 740, 2735, 1768, 12, 2735, 1515, 16, 6862, 1082, 282, 509, 225, 16706, 16, 6862, 1082, 282, 514, 282, 10302, 16, 6862, 1082, 282, 509, 225, 2193, 2384, 15329, 202, 759, 18336,...
case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop);
} case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 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, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
try { model.doSave(new SubProgressMonitor(monitorWrap, 1)); } catch (CoreException e) { ErrorDialog.openError(shellProvider.getShell(), WorkbenchMessages.Error, e.getMessage(), e.getStatus()); }
SaveableHelper.doSaveModel(model, new SubProgressMonitor(monitorWrap, 1), shellProvider, closing);
public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor( monitor); monitorWrap.beginTask("", finalModels.size()); //$NON-NLS-1$ for (Iterator i = finalModels.iterator(); i.hasNext();) { Saveable model = (Saveable) i.next(); // handle case where this model got saved as a result of saving another if (!model.isDirty()) { monitor.worked(1); continue; } try { model.doSave(new SubProgressMonitor(monitorWrap, 1)); } catch (CoreException e) { ErrorDialog.openError(shellProvider.getShell(), WorkbenchMessages.Error, e.getMessage(), e.getStatus()); } if (monitorWrap.isCanceled()) { break; } } monitorWrap.done(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/03ddc73a6a262d8b170a7adfad6ccb1a3f6b8fc0/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 45, 5491, 7187, 6438, 2964, 273, 394, 2587, 6452, 5491, 7187, 12, 25083, 202, 10259, 1769, 9506, 202, 10259, 2964, 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, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 45, 5491, 7187, 6438, 2964, 273, 394, 2587, 6452, 5491, 7187, 12, 25083, 202, 10259, 1769, 9506, 202, 10259, 2964, 18, ...
fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe());
fixnumClass.defineMethod("==", getMethod("op_equal", RubyNumeric.class)); fixnumClass.defineMethod("<=>", getMethod("op_cmp", RubyNumeric.class)); fixnumClass.defineMethod(">", getMethod("op_gt", RubyNumeric.class)); fixnumClass.defineMethod(">=", getMethod("op_ge", RubyNumeric.class)); fixnumClass.defineMethod("<", getMethod("op_lt", RubyNumeric.class)); fixnumClass.defineMethod("<=", getMethod("op_le", RubyNumeric.class));
public static RubyClass createFixnum(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getIntegerClass()); fixnumClass.defineMethod("to_i", getMethodToI()); fixnumClass.defineMethod("to_s", getMethodToS()); fixnumClass.defineMethod("+", getMethodPlus()); fixnumClass.defineMethod("-", getMethodMinus()); fixnumClass.defineMethod("*", getMethodMul()); fixnumClass.defineMethod("/", getMethodDiv()); fixnumClass.defineMethod("%", getMethodMod()); fixnumClass.defineMethod("**", getMethodPow()); fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe()); return fixnumClass; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a9420f23379e292698ea011ab08fb480b4decbcc/RbFixnum.java/buggy/org/jruby/core/RbFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 8585, 2107, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2917, 2107, 797, 273, 22155, 18, 11255, 797, 2932, 8585, 2107, 3113, 22155, 18, 588, 4522, 797, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 797, 752, 8585, 2107, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2917, 2107, 797, 273, 22155, 18, 11255, 797, 2932, 8585, 2107, 3113, 22155, 18, 588, 4522, 797, 10...
new NoViableAltException("", 48, 0, input);
new NoViableAltException("", 49, 0, input);
public DFA.State transition(IntStream input) throws RecognitionException { int LA48_0 = input.LA(1); if ( LA48_0==ID ) {return s1;} NoViableAltException nvae = new NoViableAltException("", 48, 0, input); throw nvae; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/clean/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, 509, 2928, 8875, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 8875, 67, 20, 631, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 8875, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 8875, 67, 20, 631, 7...
if (gain>1.0f) { gain=1.0f;
if (gain > 1.0f) { gain = 1.0f;
public void comb_filter(final float[] exc, final int esi, final float[] new_exc, final int nsi, final int nsf, final int pitch, final float[] pitch_gain, float comb_gain) { int i, j; float exc_energy=0.0f, new_exc_energy=0.0f; float gain, step, fact, g=0.0f; /*Compute excitation energy prior to enhancement*/ for (i=esi; i<esi+nsf; i++) { exc_energy+=exc[i]*exc[i]; } /* Some gain adjustment if pitch is too high or if unvoiced */ g = .5f*Math.abs(pitch_gain[0] + pitch_gain[1] + pitch_gain[2] + last_pitch_gain[0] + last_pitch_gain[1] + last_pitch_gain[2]); if (g>1.3f) comb_gain*=1.3f/g; if (g<.5f) comb_gain*=2.0f*g; step = 1.0f/nsf; fact=0; /* Apply pitch comb-filter (filter out noise between pitch harmonics)*/ for (i=0, j=esi; i<nsf; i++, j++) { fact += step; new_exc[nsi+i] = exc[j] + comb_gain * fact * (pitch_gain[0]*exc[j-pitch+1] + pitch_gain[1]*exc[j-pitch] + pitch_gain[2]*exc[j-pitch-1]) + comb_gain * (1.0f-fact) * (last_pitch_gain[0]*exc[j-last_pitch+1] + last_pitch_gain[1]*exc[j-last_pitch] + last_pitch_gain[2]*exc[j-last_pitch-1]); } last_pitch_gain[0] = pitch_gain[0]; last_pitch_gain[1] = pitch_gain[1]; last_pitch_gain[2] = pitch_gain[2]; last_pitch = pitch; /* Gain after enhancement*/ for (i=nsi;i<nsi+nsf;i++) new_exc_energy+=new_exc[i]*new_exc[i]; /* Compute scaling factor and normalize energy*/ gain = (float) (Math.sqrt(exc_energy/(.1f+new_exc_energy))); if (gain < .5f) { gain=.5f; } if (gain>1.0f) { gain=1.0f; } for (i=nsi;i<nsi+nsf;i++) { smooth_gain = .96f*smooth_gain + .04f*gain; new_exc[i] *= smooth_gain; } }
6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/Filters.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/Filters.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3894, 67, 2188, 12, 6385, 1431, 8526, 3533, 16, 12900, 727, 509, 27453, 16, 12900, 727, 1431, 8526, 394, 67, 10075, 16, 12900, 727, 509, 3153, 77, 16, 12900, 727, 509, 3153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3894, 67, 2188, 12, 6385, 1431, 8526, 3533, 16, 12900, 727, 509, 27453, 16, 12900, 727, 1431, 8526, 394, 67, 10075, 16, 12900, 727, 509, 3153, 77, 16, 12900, 727, 509, 3153, ...
return null;
return context.getCurrentDataFlavors ();
public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DropTargetDropEvent.java/buggy/core/src/classpath/java/java/awt/dnd/DropTargetDropEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 2340, 9444, 8526, 5175, 751, 2340, 842, 1383, 1832, 225, 288, 565, 368, 9852, 30, 2348, 333, 282, 327, 819, 18, 588, 3935, 751, 2340, 842, 1383, 261, 1769, 225, 289, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1910, 2340, 9444, 8526, 5175, 751, 2340, 842, 1383, 1832, 225, 288, 565, 368, 9852, 30, 2348, 333, 282, 327, 819, 18, 588, 3935, 751, 2340, 842, 1383, 261, 1769, 225, 289, 2, -100...
((!Base.isMacOS()) ? "tools/avr/bin/avr-objcopy" : userdir + "tools/avr/bin/avr-objcopy"),
avrBasePath + "avr-objcopy",
public boolean compile(Sketch sketch, String buildPath, Target target) throws RunnerException { this.sketch = sketch; this.buildPath = buildPath; // the pms object isn't used for anything but storage MessageStream pms = new MessageStream(this); String userdir = System.getProperty("user.dir") + File.separator; // LibraryManager libraryManager;//// try {// libraryManager = new LibraryManager();// } catch (IOException e) {// throw new RunnerException(e.getMessage());// } String preCommandCompiler[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-gcc" : userdir + "tools/avr/bin/avr-gcc"), "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size "-I" + target.getPath(), "-w", // surpress all warnings "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), }; // use lib directories as include paths //String[] libDirs = libraryManager.getFolderPaths(); String[] libDirs = new String[sketch.importedLibraries.size()]; for (int i = 0; i < sketch.importedLibraries.size(); i++) libDirs[i] = ((Library) sketch.importedLibraries.get(i)).getFolder().getPath(); // Last two arguments will specify the file being compiled and the output file. String[] baseCommandCompiler = new String[preCommandCompiler.length + libDirs.length + 2]; System.arraycopy(preCommandCompiler, 0, baseCommandCompiler, 0, preCommandCompiler.length); for (int i = 0; i < libDirs.length; ++i) { baseCommandCompiler[preCommandCompiler.length + i] = "-I" + libDirs[i]; } String preCommandCompilerCPP[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-g++" : userdir + "tools/avr/bin/avr-g++"), "-c", // compile, don't link "-g", // include debugging info (so errors include line numbers) "-Os", // optimize for size "-I" + target.getPath(), "-w", // surpress all warnings "-fno-exceptions", "-mmcu=" + Preferences.get("build.mcu"), "-DF_CPU=" + Preferences.get("build.f_cpu"), }; // use lib directories as include paths // Last two arguments will specify the file being compiled and the output file. String[] baseCommandCompilerCPP = new String[preCommandCompilerCPP.length + libDirs.length + 2]; System.arraycopy(preCommandCompilerCPP, 0, baseCommandCompilerCPP, 0, preCommandCompilerCPP.length); for (int i = 0; i < libDirs.length; ++i) { baseCommandCompilerCPP[preCommandCompilerCPP.length + i] = "-I" + libDirs[i]; } String preCommandLinker[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-gcc" : userdir + "tools/avr/bin/avr-gcc"), " ", "-mmcu=" + Preferences.get("build.mcu"), "-o", " ", }; // use lib object files during include //String[] libObjectFiles = libraryManager.getObjectFiles(); Vector libObjectFilesVec = new Vector(); for (Iterator i = sketch.importedLibraries.iterator(); i.hasNext(); ) { Library library = (Library) i.next(); File[] objectFiles = library.getObjectFiles(); for (int j = 0; j < objectFiles.length; j++) libObjectFilesVec.add(objectFiles[j].getPath()); } String[] libObjectFiles = new String[libObjectFilesVec.size()]; libObjectFiles = (String[]) libObjectFilesVec.toArray(libObjectFiles); String[] baseCommandLinker = new String[preCommandLinker.length + libObjectFiles.length]; System.arraycopy(preCommandLinker, 0, baseCommandLinker, 0, preCommandLinker.length); for (int i = 0; i < libObjectFiles.length; ++i) { baseCommandLinker[preCommandLinker.length + i] = libObjectFiles[i]; } String baseCommandObjcopy[] = new String[] { ((!Base.isMacOS()) ? "tools/avr/bin/avr-objcopy" : userdir + "tools/avr/bin/avr-objcopy"), "-O", " ", "-R", " ", " ", " " }; /*String baseCommand[] = new String[] { // user.dir is folder containing P5 (and therefore jikes) // macosx needs the extra path info. linux doesn't like it, though // windows doesn't seem to care. write once, headache anywhere. ((!Base.isMacOS()) ? "jikes" : System.getProperty("user.dir") + File.separator + "jikes"), // this doesn't help much.. also java 1.4 seems to not support // -source 1.1 for javac, and jikes seems to also have dropped it. // for versions of jikes that don't complain, "final int" inside // a function doesn't throw an error, so it could just be a // ms jvm error that this sort of thing doesn't work. blech. //"-source", //"1.1", // necessary to make output classes compatible with 1.1 // i.e. so that exported applets can work with ms jvm on the web "-target", Preferences.get("preproc.jdk_version"), //"1.1", // let the incompatability headache begin // used when run without a vm ("expert" mode) "-bootclasspath", calcBootClassPath(), // needed for macosx so that the classpath is set properly // also for windows because qtjava will most likely be here // and for linux, it just doesn't hurt "-classpath", sketch.classPath, //calcClassPath(includeFolder), "-nowarn", // we're not currently interested in warnings "+E", // output errors in machine-parsable format "-d", buildPath // output the classes in the buildPath //buildPath + File.separator + className + ".java" // file to compile };*/ // make list of code files that need to be compiled and the object files // that they will be compiled to (includes code from the sketch and the // library for the target platform) String sourceNames[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String sourceNamesCPP[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String objectNames[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; String objectNamesCPP[] = new String[sketch.codeCount + target.getSourceFilenames().size()]; int fileCount = 0; int fileCountCPP = 0; for (int i = 0; i < sketch.codeCount; i++) { if (sketch.code[i].preprocName != null) { if (sketch.code[i].preprocName.endsWith(".c")) { sourceNames[fileCount] = buildPath + File.separator + sketch.code[i].preprocName; objectNames[fileCount++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } else if (sketch.code[i].preprocName.endsWith(".cpp")) { sourceNamesCPP[fileCountCPP] = buildPath + File.separator + sketch.code[i].preprocName; objectNamesCPP[fileCountCPP++] = buildPath + File.separator + sketch.code[i].preprocName + ".o"; } } } for (Iterator iter = target.getSourceFilenames().iterator(); iter.hasNext(); ) { String filename = (String) iter.next(); if (filename != null) { if (filename.endsWith(".c")) { sourceNames[fileCount] = target.getPath() + File.separator + filename; objectNames[fileCount++] = buildPath + File.separator + filename + ".o"; } else if (filename.endsWith(".cpp")) { sourceNamesCPP[fileCountCPP] = target.getPath() + File.separator + filename; objectNamesCPP[fileCountCPP++] = buildPath + File.separator + filename + ".o"; } } } /* String commandCompiler[] = new String[baseCommandCompiler.length + preprocCount]; System.arraycopy(baseCommandCompiler, 0, commandCompiler, 0, baseCommandCompiler.length); // append each of the files to the command string for (int i = 0; i < preprocCount; i++) { commandCompiler[baseCommandCompiler.length + i] = buildPath + File.separator + preprocNames[i]; } String commandCompilerCPP[] = new String[baseCommandCompilerCPP.length + preprocCountCPP]; System.arraycopy(baseCommandCompilerCPP, 0, commandCompilerCPP, 0, baseCommandCompilerCPP.length); for (int i = 0; i < preprocCountCPP; i++) { commandCompilerCPP[baseCommandCompilerCPP.length + i] = buildPath + File.separator + preprocNamesCPP[i]; } */ //PApplet.printarr(command); baseCommandLinker[1] = "-Os -Wl,-u,vfprintf -lprintf_flt -lm,-Map=" + ((!Base.isMacOS()) ? buildPath : userdir + buildPath) + File.separator + sketch.name + ".map,--cref"; baseCommandLinker[4] = ((!Base.isMacOS()) ? buildPath : buildPath) + File.separator + sketch.name + ".elf"; String commandLinker[] = new String[baseCommandLinker.length + fileCount + fileCountCPP + target.getObjectFilenames().size()]; System.arraycopy(baseCommandLinker, 0, commandLinker, 0, baseCommandLinker.length); int idx = 0; for(int i = 0; i < fileCount; i++, idx++) { commandLinker[baseCommandLinker.length + idx] = objectNames[i]; } for(int i = 0; i < fileCountCPP; i++, idx++) { commandLinker[baseCommandLinker.length + idx] = objectNamesCPP[i]; } for(Iterator iter = target.getObjectFilenames().iterator(); iter.hasNext(); idx++) { commandLinker[baseCommandLinker.length + idx] = target.getPath() + File.separator + iter.next(); //already ends in ".o" } /*String command[] = new String[baseCommand.length + preprocCount]; System.arraycopy(baseCommand, 0, command, 0, baseCommand.length); // append each of the files to the command string for (int i = 0; i < preprocCount; i++) { command[baseCommand.length + i] = buildPath + File.separator + preprocNames[i]; } //PApplet.printarr(command); */ /* String command[] = new String[baseCommand.length + sketch.codeCount]; System.arraycopy(baseCommand, 0, command, 0, baseCommand.length); // append each of the files to the command string for (int i = 0; i < sketch.codeCount; i++) { command[baseCommand.length + i] = buildPath + File.separator + sketch.code[i].preprocName; } */ //for (int i = 0; i < command.length; i++) { //System.out.println("cmd " + i + " " + command[i]); //} firstErrorFound = false; // haven't found any errors yet secondErrorFound = false; int result = 0; // pre-initialized to quiet a bogus warning from jikes try { // execute the compiler, and create threads to deal // with the input and error streams // Process process; boolean compiling = true; for(int i = 0; i < fileCount; i++) { baseCommandCompiler[baseCommandCompiler.length - 2] = sourceNames[i]; baseCommandCompiler[baseCommandCompiler.length - 1] = "-o"+ objectNames[i]; //System.arraycopy(baseCommandCompiler.length //for(int j = 0; j < baseCommandCompiler.length; j++) { // System.out.println(baseCommandCompiler[j]); //} process = Runtime.getRuntime().exec(baseCommandCompiler); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; } for(int i = 0; i < fileCountCPP; i++) { baseCommandCompilerCPP[baseCommandCompilerCPP.length - 2] = sourceNamesCPP[i]; baseCommandCompilerCPP[baseCommandCompilerCPP.length - 1] = "-o"+ objectNamesCPP[i]; //for(int j = 0; j < baseCommandCompilerCPP.length; j++) { // System.out.println(baseCommandCompilerCPP[j]); //} process = Runtime.getRuntime().exec(baseCommandCompilerCPP); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; } //for(int j = 0; j < commandLinker.length; j++) { // System.out.println(commandLinker[j]); //} process = Runtime.getRuntime().exec(commandLinker); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; /*for(int j = 0; j < baseCommandObjcopy.length; j++) { System.out.println(baseCommandObjcopy[j]); }*/ baseCommandObjcopy[2] = "srec"; baseCommandObjcopy[4] = ".eeprom"; baseCommandObjcopy[5] = buildPath + File.separator + sketch.name + ".elf"; baseCommandObjcopy[6] = buildPath + File.separator + sketch.name + ".rom"; process = Runtime.getRuntime().exec(baseCommandObjcopy); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; baseCommandObjcopy[2] = "ihex"; baseCommandObjcopy[4] = ".flash"; baseCommandObjcopy[5] = buildPath + File.separator + sketch.name + ".elf"; baseCommandObjcopy[6] = buildPath + File.separator + sketch.name + ".hex"; process = Runtime.getRuntime().exec(baseCommandObjcopy); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); compiling = true; while(compiling) { try { result = process.waitFor(); compiling = false; } catch (InterruptedException intExc) { } } if (exception != null) { exception.hideStackTrace = true; throw exception; } if(result!=0) return false; /*Process process = Runtime.getRuntime().exec(command); new MessageSiphon(process.getInputStream(), this); new MessageSiphon(process.getErrorStream(), this); // wait for the process to finish. if interrupted // before waitFor returns, continue waiting // boolean compiling = true; while (compiling) { try { result = process.waitFor(); //System.out.println("result is " + result); compiling = false; } catch (InterruptedException ignored) { } }*/ } catch (Exception e) { String msg = e.getMessage(); if ((msg != null) && (msg.indexOf("avr-gcc: not found") != -1)) { //System.err.println("jikes is missing"); Base.showWarning("Compiler error", "Could not find the compiler.\n" + "avr-gcc is missing from your PATH,\n" + "see readme.txt for help.", null); return false; } else { e.printStackTrace(); result = -1; } } // an error was queued up by message(), barf this back to build() // which will barf it back to Editor. if you're having trouble // discerning the imagery, consider how cows regurgitate their food // to digest it, and the fact that they have five stomaches. // //System.out.println("throwing up " + exception); if (exception != null) throw exception; // if the result isn't a known, expected value it means that something // is fairly wrong, one possibility is that jikes has crashed. // if (result != 0 && result != 1 ) { //exception = new RunnerException(SUPER_BADNESS); //editor.error(exception); // this will instead be thrown Base.openURL(BUGS_URL); throw new RunnerException(SUPER_BADNESS); } // success would mean that 'result' is set to zero return (result == 0); // ? true : false; }
48215 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48215/fc1ca8a0661ef52aa16fb05258e17c074e4d780d/Compiler.java/buggy/app/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 4074, 12, 22900, 18534, 16, 514, 1361, 743, 16, 5916, 1018, 13, 565, 1216, 22712, 503, 288, 565, 333, 18, 7771, 1593, 273, 18534, 31, 565, 333, 18, 3510, 743, 273, 1361, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 4074, 12, 22900, 18534, 16, 514, 1361, 743, 16, 5916, 1018, 13, 565, 1216, 22712, 503, 288, 565, 333, 18, 7771, 1593, 273, 18534, 31, 565, 333, 18, 3510, 743, 273, 1361, 743...
Compilation comp = compilefunc.compile (this, "lambda0", true);
Compilation comp = new Compilation (this, "lambda0", true); compile_setLiterals (comp, env.values);
public Object eval (Environment env) throws UnboundSymbol, WrongArguments, WrongType, GenericError { if (!doCompile) return new LambdaProcedure (this, env); try { Compilation comp = compilefunc.compile (this, "lambda0", true); byte[][] classes = new byte[comp.numClasses][]; for (int iClass = 0; iClass < comp.numClasses; iClass++) { classes[iClass] = comp.classes[iClass].emit_to_array (); // DEBUGGING - FIXME try {comp.classes[iClass].emit_to_file ("lambda" + iClass + ".class");} catch (java.io.IOException ex) { System.err.print("Caught I/O exception: "); } } SchemeLoader loader = new SchemeLoader (classes); Class clas = loader.loadClass ("lambda0", true); //Class clas = Class.forName ("lambda0"); Object inst = clas.newInstance (); /* Pass literal values to the compiled code. */ CompiledProc cproc = (CompiledProc) inst; Object[] literals = new Object[comp.literalsCount]; for (Literal literal = comp.literalsChain; literal != null; literal = literal.next) { literals[literal.index] = literal.value; } cproc.setLiterals (literals); return inst; } catch (java.io.IOException ex) { throw new GenericError ("class I/O error in lambda eval"); } catch (ClassNotFoundException ex) { throw new GenericError ("class not found in lambda eval"); } catch (InstantiationException ex) { throw new GenericError ("class not instantiable: in lambda eval"); } catch (IllegalAccessException ex) { throw new GenericError ("class illegal access: in lambda eval"); } }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/7c191f321e6419d724006a46486f427814f6e569/LambdaExp.java/buggy/kawa/lang/LambdaExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 5302, 261, 5494, 1550, 13, 4202, 1216, 1351, 3653, 5335, 16, 24668, 4628, 16, 24668, 559, 16, 7928, 668, 225, 288, 565, 309, 16051, 2896, 9937, 13, 1377, 327, 394, 12801, 1721...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 5302, 261, 5494, 1550, 13, 4202, 1216, 1351, 3653, 5335, 16, 24668, 4628, 16, 24668, 559, 16, 7928, 668, 225, 288, 565, 309, 16051, 2896, 9937, 13, 1377, 327, 394, 12801, 1721...
processProperty(ontModel, (OntProperty) prop.listInverse().next(), true);
processProperty(ontModel, (OntProperty) prop.listInverse().next(), tgtNamespace, true);
public Model process(OntModel ontModel, String tgtNamespace) throws Exception { tgtNamespace = OntologyUtil.correctNamespace(tgtNamespace); attributes = new HashMap(); references = new HashMap(); collections = new HashMap(); // TODO if we want primary keys examine inverseFunctionalProperties // Deal with properties, place in maps of class_name:set_of fields for (Iterator i = ontModel.listOntProperties(); i.hasNext(); ) { OntProperty prop = (OntProperty) i.next(); if (!prop.getNameSpace().equals(tgtNamespace)) { continue; } processProperty(ontModel, prop, false); if (prop.hasInverse()) { processProperty(ontModel, (OntProperty) prop.listInverse().next(), true); } } // Deal with classes Set classes = new HashSet(); Iterator i = ontModel.listClasses(); while (i.hasNext()) { OntClass cls = (OntClass) i.next(); if (cls.getNameSpace() != null && cls.getNameSpace().equals(tgtNamespace)) { String clsName = pkg + "." + cls.getLocalName(); StringBuffer superClasses = new StringBuffer(); for (Iterator j = cls.listSuperClasses(true); j.hasNext(); ) { OntClass superCls = (OntClass) j.next(); if (superCls.getNameSpace() != null && superCls.getNameSpace().equals(tgtNamespace)) { superClasses.append(pkg + "." + superCls.getLocalName()); if (j.hasNext()) { superClasses.append(" "); } } } String superClassList = null; if (superClasses.length() != 0) { superClassList = superClasses.toString(); } classes.add(new ClassDescriptor(clsName, superClassList, true, getFieldSetForClass(attributes, cls.getLocalName()), getFieldSetForClass(references, cls.getLocalName()), getFieldSetForClass(collections, cls.getLocalName()))); } } return new Model(modelName, tgtNamespace, classes); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/457e472c4d85a3e17847c1d637a736cc24690e2f/Owl2FlyMine.java/clean/intermine/src/java/org/intermine/ontology/Owl2FlyMine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1207, 12, 51, 496, 1488, 603, 88, 1488, 16, 514, 11680, 3402, 13, 1216, 1185, 288, 3639, 11680, 3402, 273, 29683, 1304, 18, 6746, 3402, 12, 29672, 3402, 1769, 3639, 1677, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1207, 12, 51, 496, 1488, 603, 88, 1488, 16, 514, 11680, 3402, 13, 1216, 1185, 288, 3639, 11680, 3402, 273, 29683, 1304, 18, 6746, 3402, 12, 29672, 3402, 1769, 3639, 1677, 273,...
definePrivateMethod(name, method); defineSingletonMethod(name, method); }
definePrivateMethod(name, method); defineSingletonMethod(name, method); }
public void defineModuleFunction(String name, RubyCallbackMethod method) { definePrivateMethod(name, method); defineSingletonMethod(name, method); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 3120, 2083, 12, 780, 508, 16, 19817, 2428, 1305, 707, 13, 288, 202, 202, 11255, 6014, 1305, 12, 529, 16, 707, 1769, 202, 202, 11255, 19571, 1305, 12, 529, 16, 707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 3120, 2083, 12, 780, 508, 16, 19817, 2428, 1305, 707, 13, 288, 202, 202, 11255, 6014, 1305, 12, 529, 16, 707, 1769, 202, 202, 11255, 19571, 1305, 12, 529, 16, 707, ...
startOffset = consume(IToken.t_switch).getOffset();
startOffset = consume().getOffset();
protected IASTStatement parseSwitchStatement() throws EndOfFileException, BacktrackException { int startOffset; startOffset = consume(IToken.t_switch).getOffset(); consume(IToken.tLPAREN); IASTExpression switch_condition = condition(); consume(IToken.tRPAREN); IASTStatement switch_body = statement(); IASTSwitchStatement switch_statement = createSwitchStatement(); ((ASTNode) switch_statement).setOffsetAndLength(startOffset, calculateEndOffset(switch_body) - startOffset); switch_statement.setControllerExpression(switch_condition); switch_condition.setParent(switch_statement); switch_condition.setPropertyInParent(IASTSwitchStatement.CONTROLLER_EXP); switch_statement.setBody(switch_body); switch_body.setParent(switch_statement); switch_body.setPropertyInParent(IASTSwitchStatement.BODY); return switch_statement; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c69e46df852e8daf1a898f5f2d8f0b9d9f957df1/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 3406, 1109, 10200, 3406, 1435, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 3639, 509, 18245, 31, 3639, 18245, 273, 7865, 7675, 588, 2335, 5621, 3639, 7865, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 3406, 1109, 10200, 3406, 1435, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 3639, 509, 18245, 31, 3639, 18245, 273, 7865, 7675, 588, 2335, 5621, 3639, 7865, 12, 1...
} if (isInvalid(value)) {
StringBuffer errorBuf = new StringBuffer(fStringBuffer3.length + 1); if (hex) errorBuf.append('x'); errorBuf.append(fStringBuffer3.ch, fStringBuffer3.offset, fStringBuffer3.length);
protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException { // scan hexadecimal value boolean hex = false; if (fEntityScanner.skipChar('x')) { if (buf2 != null) { buf2.append('x'); } hex = true; fStringBuffer3.clear(); boolean digit = true; do { int c = fEntityScanner.peekChar(); digit = (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'); if (digit) { if (buf2 != null) { buf2.append((char)c); } fEntityScanner.scanChar(); fStringBuffer3.append((char)c); } } while (digit); } // scan decimal value else { fStringBuffer3.clear(); boolean digit = true; do { int c = fEntityScanner.peekChar(); digit = c >= '0' && c <= '9'; if (digit) { if (buf2 != null) { buf2.append((char)c); } fEntityScanner.scanChar(); fStringBuffer3.append((char)c); } } while (digit); } // end if (!fEntityScanner.skipChar(';')) { reportFatalError("SemicolonRequiredInCharRef", null); } if (buf2 != null) { buf2.append(';'); } // convert string to number int value = -1; try { value = Integer.parseInt(fStringBuffer3.toString(), hex ? 16 : 10); } catch (NumberFormatException e) { // let -1 value drop through } // character reference must be a valid XML character if (isInvalid(value)) { reportFatalError("InvalidCharRef", new Object[]{Integer.toString(value, 16)}); } // append corresponding chars to the given buffer if (!XMLChar.isSupplemental(value)) { buf.append((char) value); } else { // character is supplemental, split it into surrogate chars buf.append(XMLChar.highSurrogate(value)); buf.append(XMLChar.lowSurrogate(value)); } // char refs notification code if (fNotifyCharRefs && value != -1) { String literal = "#" + (hex ? "x" : "") + fStringBuffer3.toString(); if (!fScanningAttribute) { fCharRefLiteral = literal; } } return value; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5248bb8cd5969455739dc16c499012fd2ec75808/XMLScanner.java/buggy/src/org/apache/xerces/impl/XMLScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 4135, 2156, 2404, 620, 12, 4201, 780, 1892, 1681, 16, 3167, 780, 1892, 1681, 22, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368, 4135, 20070, 460, 3639, 1250, 382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 4135, 2156, 2404, 620, 12, 4201, 780, 1892, 1681, 16, 3167, 780, 1892, 1681, 22, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368, 4135, 20070, 460, 3639, 1250, 382...
m_ResultProducer.setResultListener(this);
public void doRun(int run) throws Exception { if (m_Instances == null) { throw new Exception("No Instances set"); } // Tell the resultproducer to send results to us m_ResultProducer.setResultListener(this); m_ResultProducer.setInstances(m_Instances); // Clear the collected results m_Keys.removeAllElements(); m_Results.removeAllElements(); // System.err.println("Starting run " + run); // Collect all the results // Should be smarter -- first doing a run collecting only the keys // from isResultRequired(), then determining if the average is required, // then getting the actual results. m_ResultProducer.doRun(run); // Average the results collected //System.err.println("Number of results collected: " + m_Keys.size()); // Check that the keys only differ on the selected key field checkForMultipleDifferences(); Object [] template = (Object [])((Object [])m_Keys.elementAt(0)).clone(); template[m_KeyIndex] = null; // Check for duplicate keys checkForDuplicateKeys(template); // Calculate the average and submit it if necessary doAverageResult(template); }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/b0ab7eea4639b317cd8fe3688ee31a01f65148a3/AveragingResultProducer.java/buggy/weka/experiment/AveragingResultProducer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 741, 1997, 12, 474, 1086, 13, 1216, 1185, 288, 565, 309, 261, 81, 67, 5361, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 18357, 444, 8863, 565, 289, 565, 368, 29860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 741, 1997, 12, 474, 1086, 13, 1216, 1185, 288, 565, 309, 261, 81, 67, 5361, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 18357, 444, 8863, 565, 289, 565, 368, 29860, ...
return s2;
case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20:
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 30: return s3; case EOL: return s2; case 21: return s4; default: NoViableAltException nvae = new NoViableAltException("", 42, 2, input); throw nvae; } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/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, 5196, 30, 10792, 327, 272, 23, 31, 7734, 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, 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, 5196, 30, 10792, 327, 272, 23, 31, 7734, 6...
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile,
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile, File sourceRepositoriesFile,
public FileCopyJob(File sourceFolder, File sourceZipFile, File sourceTaskListFile, File sourceActivationHistoryFile, List<File> contextFiles, List<String> zipFiles) { this.sourceZipFile = sourceZipFile; this.sourceTaskListFile = sourceTaskListFile; this.sourceActivationHistoryFile = sourceActivationHistoryFile; this.sourceContextFiles = contextFiles; this.zipFilesToExtract = zipFiles; // Get parameters here to avoid accessing the UI thread this.zip = importPage.zip(); this.importTaskList = importPage.importTaskList(); this.importActivationHistory = importPage.importActivationHistory(); this.importTaskContexts = importPage.importTaskContexts(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/9533e41d1db43d087cceb4197f763d7895a1793f/TaskDataImportWizard.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/TaskDataImportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1387, 2951, 2278, 12, 812, 1084, 3899, 16, 1387, 1084, 29394, 16, 1387, 1084, 2174, 682, 812, 16, 9506, 202, 812, 1084, 14857, 5623, 812, 16, 987, 32, 812, 34, 819, 2697, 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, 3196, 202, 482, 1387, 2951, 2278, 12, 812, 1084, 3899, 16, 1387, 1084, 29394, 16, 1387, 1084, 2174, 682, 812, 16, 9506, 202, 812, 1084, 14857, 5623, 812, 16, 987, 32, 812, 34, 819, 2697, 16,...
asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffsetAsInt());
asm.emitLVALAddr (S1, VM_Entrypoints.vpStatusField.getOffset());
public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; boolean usesVarargs; int varargAmount = 0; String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) usesVarargs = true; else usesVarargs = false; //-#if RVM_WITH_MACH_O_ABI // Find extra amount of space that needs to be added to the frame //to hold copies of the vararg values. This calculation is //overkill since some of these values will be in registers and //already stored. But then either 3 or 4 of the parameters don't //show up in the signature anyway (JNIEnvironment, class, method //id, instance object). if (usesVarargs) { VM_TypeReference[] argTypes = mth.getParameterTypes(); int argCount = argTypes.length; for (int i=0; i<argCount; i++) { if (argTypes[i].isLongType() || argTypes[i].isDoubleType()) varargAmount += 2 * BYTES_IN_ADDRESS; else varargAmount += BYTES_IN_ADDRESS; } } //-#endif int glueFrameSize = JNI_GLUE_FRAME_SIZE + varargAmount; asm.emitSTAddrU(FP,-glueFrameSize,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the OS caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. if (usesVarargs) { //-#if RVM_WITH_POWEROPEN_ABI offset = STACKFRAME_HEADER_SIZE + 3*BYTES_IN_STACKSLOT; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } //-#elif RVM_WITH_SVR4_ABI // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += BYTES_IN_DOUBLE; } //-#elif RVM_WITH_MACH_O_ABI // save all gpr parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } //-#endif } else { //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParametersFromSVR4ToJava(asm, mth); //-#endif } // Save AIX non-volatile GPRs that will not be saved and restored by RVM. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(REGISTER_ZERO); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTAddr(REGISTER_ZERO, glueFrameSize + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // Attempt to change the vpStatus of the current Processor to IN_JAVA // // on entry T0 = JNIEnv* which is an interior pointer to this thread's VM_JNIEnvironment. // We first adjust this in place to be a pointer to a VM_JNIEnvironment and then use // it to acquire PROCESSOR_REGISTER (and JTOC on OSX/Linux). // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, S1=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // we leave the passed arguments untouched, unless we are blocked and have to call sysVirtualProcessorYield // Map from JNIEnv* to VM_JNIEnvironment. // Must do this outside the loop as we need to do it exactly once. asm.emitADDI (T0, -VM_Entrypoints.JNIExternalFunctionsField.getOffsetAsInt(), T0); int retryLoop = asm.getMachineCodeIndex(); // acquire Jikes RVM PROCESSOR_REGISTER (and JTOC OSX/Linux only). asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffsetAsInt(), T0); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // on AIX JTOC is part of AIX Linkage triplet and this already set by our caller. // Thus, we only need this load on non-AIX platforms asm.emitLAddr(JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffsetAsInt(), T0); //-#endif asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffsetAsInt()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to IN_JAVA asm.emitBC (NE, retryLoop); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtualProcessorYield (pthread yield) // must save volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitLAddr(S1, VM_Entrypoints.the_boot_recordField.getOffsetAsInt(), JTOC); // get boot record address asm.emitMR (PROCESSOR_REGISTER, JTOC); // save JTOC so we can restore below asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffsetAsInt(), S1); // load TOC for syscalls from bootrecord asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffsetAsInt(), S1); // load addr of function asm.emitMTLR (KLUDGE_TI_REG); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitMR (JTOC, PROCESSOR_REGISTER); // restore JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLAddr (i, offset, FP); offset+=BYTES_IN_ADDRESS; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitB (retryLoop); // br back to label0 to try lwarx again // NOW_IN_JAVA: // JTOC, and PR are all as Jikes RVM expects them; // params are where the Jikes RVM calling conventions expects them. // frInJava.resolve(asm); // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLAddr (S0, VM_Entrypoints.JNITopJavaFPField.getOffsetAsInt(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (S0, FP, S0); // S0 <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(S0, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real body of the JNI method. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state will be IN_JAVA. // establish T2 -> current thread's VM_JNIEnvironment, from activeThread field // of current processor asm.emitLAddr(T2, VM_Entrypoints.activeThreadField.getOffsetAsInt(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLAddr(T2, VM_Entrypoints.jniEnvField.getOffsetAsInt(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLInt (T3, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTAddr(T3, VM_Entrypoints.JNITopJavaFPField.getOffsetAsInt(), T2); // store TopJavaFP back into JNIEnv // check to see if this frame address is the sentinel since there // may be no further Java frame below asm.emitCMPAddrI(T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLAddr(S0, 0, T3); // get fp for caller of prev J to C transition frame fr4.resolve(asm); // store current PR into VM_JNIEnvironment; we may have switched PRs while in Java mode. asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffsetAsInt(), T2); // change the state of the VP to IN_NATIVE. // asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffsetAsInt(), PROCESSOR_REGISTER); // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitLAddr (i, offset, FP); // 4 instructions offset += BYTES_IN_ADDRESS; } // pop frame asm.emitADDI(FP, glueFrameSize, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLAddr(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register // END OF EPILOG OF GLUE CODE; rest of method generated by VM_Compiler from bytecodes of method in VM_JNIFunctions frNormalPrologue.resolve(asm); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2103, 21308, 344, 1085, 1290, 46, 50, 45, 1305, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 8251, 67, 1305, 312, 451, 13, 288, 565, 509, 1384, 31, 565, 1250, 4692, 27232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2103, 21308, 344, 1085, 1290, 46, 50, 45, 1305, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 8251, 67, 1305, 312, 451, 13, 288, 565, 509, 1384, 31, 565, 1250, 4692, 27232, ...
int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID;
if (_solutionChooserFrame == null) { int result = JOptionPane.showConfirmDialog(_parent, getSolutionsPanel(), "Choose solution", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); approved = (result == JOptionPane.OK_OPTION); } else { approved = true; } if (approved) { int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID; } }); try { solution.getDataEngine(); } catch (Exception e) { LOGGER.fatal("", e); Utils.showErrorMessage(Messages.getString("ERR_CANNOT_OPEN_SOLUTION")); return;
public void openSolution() { int selectedRow = _comboSolutionList.getSelectedIndex(); final int solutionID = _solutions[selectedRow].getInfo().getId(); LOGGER.info("chosen solution: " + solutionID); //FIXME - do it in better way Solution solution; try { solution = (Solution) _solutionManager.getSolution(new IUniqueId() { public int getId() { return solutionID; } }); // forcing connecting to external database try { solution.getDataEngine(); } catch (Exception e) { LOGGER.fatal("", e); Utils.showErrorMessage("ERR_CANNOT_OPEN_SOLUTION"); return; } LOGGER.info("Connected to external data base"); IProject project = solution.getProjectManager().createProject(); solution.getProjectManager().addProject(project); } catch (PlatformException e) { LOGGER.fatal("", e); Utils.showErrorMessage("ERR_CANNOT_CREATE_PROJECT"); return; } _statusBar.setItem(SB_CUR_SOLUTION, solution.getInfo().getName()); _solutionChooserFrame.setVisible(false); _parent.setVisible(true); }
12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/7f57a108614c12ba183fc4f0c136eb5382b6ee2e/SolutionManagerGUI.java/clean/salomon/platform/trunk/src/salomon/engine/controller/gui/SolutionManagerGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1696, 16135, 1435, 202, 95, 202, 202, 474, 3170, 1999, 273, 389, 25053, 16135, 682, 18, 588, 7416, 1016, 5621, 202, 202, 6385, 509, 6959, 734, 273, 389, 18281, 6170, 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, 918, 1696, 16135, 1435, 202, 95, 202, 202, 474, 3170, 1999, 273, 389, 25053, 16135, 682, 18, 588, 7416, 1016, 5621, 202, 202, 6385, 509, 6959, 734, 273, 389, 18281, 6170, 63, ...
public PatternDescr lhs_or() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:17: (left= lhs_and ( ('or'|'||')right= lhs_and )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:643:17: left= lhs_and ( ('or'|'||')right= lhs_and )* { OrDescr or = null; following.push(FOLLOW_lhs_and_in_lhs_or2153); left=lhs_and(); following.pop(); d = left; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:645:17: ( ('or'|'||')right= lhs_and )* loop54: do { int alt54=2; int LA54_0 = input.LA(1); if ( LA54_0==39||LA54_0==50 ) { alt54=1; } switch (alt54) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:645:25: ('or'|'||')right= lhs_and { if ( input.LA(1)==39||input.LA(1)==50 ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2163); throw mse; } following.push(FOLLOW_lhs_and_in_lhs_or2174); right=lhs_and(); following.pop(); if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } break; default : break loop54; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 2002, 273, 446, 31, 3639, 6830, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 2002, 273, 446, 31, 3639, 6830, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273,...
deleteSchemeButton.setText(Util.translateString(RESOURCE_BUNDLE, "deleteSchemeButton.Text"));
deleteSchemeButton.setText(NewKeysPreferenceMessages.DeleteSchemeButton_Text);
private final Control createSchemeControls(final Composite parent) { GridLayout layout; GridData gridData; int widthHint; // Create a composite to hold the controls. final Composite schemeControls = new Composite(parent, SWT.NONE); layout = new GridLayout(3, false); layout.marginWidth = 0; schemeControls.setLayout(layout); gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = SWT.FILL; schemeControls.setLayoutData(gridData); // Create the label. final Label schemeLabel = new Label(schemeControls, SWT.NONE); schemeLabel.setText(Util.translateString(RESOURCE_BUNDLE, "schemeLabel.Text")); //$NON-NLS-1$ // Create the combo. schemeCombo = new ComboViewer(schemeControls); schemeCombo.setLabelProvider(new NamedHandleObjectLabelProvider()); schemeCombo.setContentProvider(new ArrayContentProvider()); gridData = new GridData(); gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = SWT.FILL; schemeCombo.getCombo().setLayoutData(gridData); schemeCombo .addSelectionChangedListener(new ISelectionChangedListener() { public final void selectionChanged( final SelectionChangedEvent event) { selectSchemeCombo(event); } }); // Create the delete button. final Button deleteSchemeButton = new Button(schemeControls, SWT.PUSH); gridData = new GridData(); widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); deleteSchemeButton.setText(Util.translateString(RESOURCE_BUNDLE, "deleteSchemeButton.Text")); //$NON-NLS-1$ gridData.widthHint = Math.max(widthHint, deleteSchemeButton .computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x) + 5; deleteSchemeButton.setLayoutData(gridData); return schemeControls; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/513fdd2ff09faa46895497ae1bc94b7630736b66/NewKeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/NewKeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 8888, 752, 9321, 16795, 12, 6385, 14728, 982, 13, 288, 202, 202, 6313, 3744, 3511, 31, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 474, 1835, 7002, 31, 202, 202, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 8888, 752, 9321, 16795, 12, 6385, 14728, 982, 13, 288, 202, 202, 6313, 3744, 3511, 31, 202, 202, 6313, 751, 3068, 751, 31, 202, 202, 474, 1835, 7002, 31, 202, 202, 759, ...
public void write (byte[] buf, int off, int len) throws IOException
public void write (int bval) throws IOException
public void write (byte[] buf, int off, int len) throws IOException { out.write(buf, off, len); sum.update(buf, off, len); }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/042d4db7ad312de1d64b02b958de0d692ee82bfd/CheckedOutputStream.java/buggy/libjava/java/util/zip/CheckedOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 474, 324, 1125, 13, 1216, 1860, 225, 288, 565, 596, 18, 2626, 12, 4385, 16, 3397, 16, 562, 1769, 565, 2142, 18, 2725, 12, 4385, 16, 3397, 16, 562, 1769, 225, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 474, 324, 1125, 13, 1216, 1860, 225, 288, 565, 596, 18, 2626, 12, 4385, 16, 3397, 16, 562, 1769, 565, 2142, 18, 2725, 12, 4385, 16, 3397, 16, 562, 1769, 225, 289...
if(lastComment != null) {
if (lastComment != null) {
public Set<ITaskListNotification> getNotifications() { Set<ITaskListNotification> notifications = new HashSet<ITaskListNotification>(); // Incoming Changes for (TaskRepository repository : getRepositoryManager().getAllRepositories()) { for (AbstractRepositoryTask repositoryTask : TasksUiPlugin.getTaskListManager().getTaskList().getRepositoryTasks(repository.getUrl())) { if(repositoryTask.getSyncState() == RepositoryTaskSyncState.INCOMING && repositoryTask.isNotified() == false) { TaskListNotificationIncoming notification = new TaskListNotificationIncoming(repositoryTask); if(repositoryTask.getTaskData() != null && repositoryTask.getTaskData().getComments() != null) { List<TaskComment> taskComments = repositoryTask.getTaskData().getComments(); TaskComment lastComment = taskComments.get(taskComments.size() - 1); if(lastComment != null) { notification.setDescription(lastComment.getText()); } } notifications.add(notification); repositoryTask.setNotified(true); } } } // New query hits for (AbstractRepositoryQuery query : TasksUiPlugin.getTaskListManager().getTaskList().getQueries()) { for (AbstractQueryHit hit : query.getHits()) { if(hit.getCorrespondingTask() == null && hit.isNotified() == false) { notifications.add(new TaskListNotificationQueryIncoming(hit)); hit.setNotified(true); } } } return notifications; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c54f9036f0b1dcacc991130a35cae02940aa7855/TasksUiPlugin.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1000, 32, 1285, 835, 682, 4386, 34, 336, 14111, 1435, 288, 1082, 202, 694, 32, 1285, 835, 682, 4386, 34, 9208, 273, 394, 6847, 32, 1285, 835, 682, 4386, 34, 5621, 9506, 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, 3196, 202, 482, 1000, 32, 1285, 835, 682, 4386, 34, 336, 14111, 1435, 288, 1082, 202, 694, 32, 1285, 835, 682, 4386, 34, 9208, 273, 394, 6847, 32, 1285, 835, 682, 4386, 34, 5621, 9506, 202, ...
RubyIO.print(defout.toRubyObject(), args);
RubyIO.print(defout, args);
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.print(defout.toRubyObject(), args); return recv.getRuntime().getNil(); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyKernel.java/buggy/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1172, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 15908, 10340, 921, 443, 617, 322, 273, 10665, 18, 588, 5576, 7675, 588, 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, 1071, 760, 15908, 10340, 921, 1172, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 15908, 10340, 921, 443, 617, 322, 273, 10665, 18, 588, 5576, 7675, 588, 5...
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
public void visitDAsgnCurrNode(Node iVisited) { visit(iVisited); iVisited.getValueNode().accept(this); leave(iVisited); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 9793, 1055, 82, 20143, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 77, 30019, 18, 24805, 907, 7675, 9436, 12, 2211, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 9793, 1055, 82, 20143, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 77, 30019, 18, 24805, 907, 7675, 9436, 12, 2211, 1769,...
System.out.println( "nope" );
try { displayer.displayNDX( ndx ); } catch ( ServiceException e ) {
public void actionPerformed( ActionEvent evt ) { // try { // displayer.displayNDX( ndx ); System.out.println( "nope" ); // } // catch ( ServiceException e ) { beep(); // e.printStackTrace(); // } }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/bf39145ae80b27554ec1f4f754c0aa12b8727d86/NdxDataNode.java/clean/treeview/src/main/uk/ac/starlink/treeview/NdxDataNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 26100, 12, 19641, 6324, 262, 288, 10792, 368, 225, 775, 288, 10792, 368, 1377, 2562, 264, 18, 5417, 2908, 60, 12, 5346, 92, 11272, 12900, 775, 288, 2562, 264, 18, 5417, 2908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 26100, 12, 19641, 6324, 262, 288, 10792, 368, 225, 775, 288, 10792, 368, 1377, 2562, 264, 18, 5417, 2908, 60, 12, 5346, 92, 11272, 12900, 775, 288, 2562, 264, 18, 5417, 2908, ...
if (lineStart >= offset)
if (lineStart < 0)
int getOffset() { if (lineStart >= offset) // The line begins somewhere in the other buffer. return offset + (otherEnd - otherStart); else return offset - lineStart; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/091a93a0a477a3678d94e8451637147067cc12da/LineBuffer.java/buggy/js/rhino/src/org/mozilla/javascript/LineBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 13386, 1435, 288, 3639, 309, 261, 1369, 1685, 411, 374, 13, 5411, 368, 1021, 980, 17874, 22234, 316, 326, 1308, 1613, 18, 5411, 327, 1384, 397, 261, 3011, 1638, 300, 1308, 1685, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 13386, 1435, 288, 3639, 309, 261, 1369, 1685, 411, 374, 13, 5411, 368, 1021, 980, 17874, 22234, 316, 326, 1308, 1613, 18, 5411, 327, 1384, 397, 261, 3011, 1638, 300, 1308, 1685, 1769...
asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffset());
asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffsetAsInt());
protected final void emit_f2i() { // (1) save RVM nonvolatiles int numNonVols = NONVOLATILE_GPRS.length; for (int i = 0; i<numNonVols; i++) { asm.emitPUSH_Reg(NONVOLATILE_GPRS[i]); } // (2) Push arg to C function asm.emitPUSH_RegDisp(SP, numNonVols*WORDSIZE); // (3) invoke C function through bootrecord asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitCALL_RegDisp(S0, VM_Entrypoints.sysFloatToIntIPField.getOffset()); // (4) pop argument; asm.emitPOP_Reg(S0); // (5) restore RVM nonvolatiles for (int i = numNonVols-1; i >=0; i--) { asm.emitPOP_Reg(NONVOLATILE_GPRS[i]); } // (6) put result on expression stack asm.emitMOV_RegDisp_Reg(SP, 0, T0); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_Compiler.java/buggy/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 74, 22, 77, 1435, 288, 565, 368, 261, 21, 13, 1923, 534, 7397, 1661, 15416, 270, 1449, 565, 509, 818, 3989, 58, 3528, 273, 18708, 29439, 67, 43, 8025, 55, 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, 282, 4750, 727, 918, 3626, 67, 74, 22, 77, 1435, 288, 565, 368, 261, 21, 13, 1923, 534, 7397, 1661, 15416, 270, 1449, 565, 509, 818, 3989, 58, 3528, 273, 18708, 29439, 67, 43, 8025, 55, 18...
inStream.close ();
inStream.close();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull variables int i; String str; Iterator iter; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(getVariables(data)); // We add the info packager.setInfo(getInfo(data)); // We add the GUIPrefs packager.setGUIPrefs(getGUIPrefs(data)); // We add the language packs iter = getLangpacksCodes(data).iterator(); while (iter.hasNext()) { str = (String) iter.next(); // The language pack - first try to get stream directly (for standalone compiler) inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml"); } packager.addLangPack(str, inStream); // The flag - try to get stream for standalone compiler inStream = getClass ().getResourceAsStream("/bin/langpacks/flags/"+str+".gif"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif"); } packager.addResource("flag." + str, inStream); inStream.close (); } // We add the resources iter = getResources(data).iterator(); while (iter.hasNext()) { Resource res = (Resource) iter.next(); if (res.parse) { if ((res.src == null) || (res.src_is != null)) { System.err.println("ERROR: cannot parse resource from stream. (Internal error.)"); packager.addResource(res.id, res.src_is); } if (null != varMap) { File resFile = new File(res.src); FileInputStream inFile = new FileInputStream(resFile); BufferedInputStream bin = new BufferedInputStream(inFile, 5120); File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile()); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream bout = new BufferedOutputStream(outFile, 5120); VariableSubstitutor vs = new VariableSubstitutor(varMap); vs.substitute(bin, bout, res.type, res.encoding); bin.close(); bout.close(); inFile = new FileInputStream(parsedFile); packager.addResource(res.id, inFile); inFile.close(); parsedFile.delete(); } else { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed."); inStream = new FileInputStream(res.src); packager.addResource(res.id, inStream); inStream.close (); } } else { if (res.src != null) { inStream = new FileInputStream(res.src); } else { inStream = res.src_is; } packager.addResource(res.id, inStream); if (res.src != null) inStream.close (); } } // We add the native libraries iter = getNativeLibraries(data).iterator(); while (iter.hasNext()) { NativeLibrary nat = (NativeLibrary) iter.next(); inStream = new FileInputStream(nat.path); packager.addNativeLibrary(nat.name, inStream); } // We add the additionnal jar files content iter = getJars(data).iterator(); while (iter.hasNext()) packager.addJarContent((String) iter.next()); // We add the panels ArrayList panels = getPanels(data); TreeSet panelsCache = new TreeSet(); iter = getPanels(data).iterator(); while (iter.hasNext()) { Panel p = (Panel)iter.next(); // We locate the panel classes directory str = p.className; // first try to get a Jar file for standalone compiler JarInputStream panel_is = null; try { InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/"+str+".jar"); if (jarInStream != null) panel_is = new JarInputStream (jarInStream); } catch (IOException e) { // for now, ignore this - try to read panel classes from filesystem panel_is = null; } if (panel_is != null) { if (panelsCache.contains(str)) continue; panelsCache.add(str); // now add files ZipEntry entry = null; while ((entry = panel_is.getNextEntry()) != null) packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File(Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str); if (!dir.exists()) throw new Exception(str + " panel does not exist"); // We add each file in the panel folder if (panelsCache.contains(str)) continue; panelsCache.add(str); File[] files = dir.listFiles(); int nf = files.length; for (int j = 0; j < nf; j++) { if (files[j].isDirectory()) continue; FileInputStream inClass = new FileInputStream(files[j]); packager.addPanelClass(files[j].getName(), inClass); } } } // We set the panels order packager.setPanelsOrder(panels); Map storedFiles = new HashMap(); // We add the packs i = 0; //pack counter iter = getPacks(data).iterator(); while (iter.hasNext()) { Pack pack = (Pack) iter.next(); ZipOutputStream zipOut = packager.addPack(i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush();//make sure buffers are flushed before we start counting ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);//stream with byte counter ObjectOutputStream objOut = new ObjectOutputStream(dos); // We write the pack data objOut.writeInt(pack.packFiles.size()); Iterator iter2 = pack.packFiles.iterator(); long packageBytes = 0; while (iter2.hasNext()) { // Initialisations PackSource p = (PackSource) iter2.next(); File f = new File(p.src); FileInputStream in = new FileInputStream(f); long nbytes = f.length(); long mtime = f.lastModified(); String targetFilename = p.getTargetFilename (); // pack paths in canonical (unix) form regardless of current host o/s: if('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/'); } // Writing PackFile pf = new PackFile(targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[])storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int)info[0],info[1]); addFile = false; } objOut.writeObject(pf); objOut.flush();//make sure it is written long pos = dos.getByteCount();//get the position if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException ("File size mismatch when reading " + f); storedFiles.put(p.src,new long[]{i,pos}); } packageBytes += nbytes;//aldo could be not really written we still want to know size. in.close(); } packager.packAdded(i, packageBytes); // Write out information about parsable files objOut.writeInt(pack.parsables.size()); iter2 = pack.parsables.iterator(); while (iter2.hasNext()) objOut.writeObject(iter2.next()); // Write out information about executable files objOut.writeInt(pack.executables.size()); iter2 = pack.executables.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Write out information about executable files objOut.writeInt(pack.updatechecks.size()); iter2 = pack.updatechecks.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Cleanup objOut.flush(); zipOut.closeEntry(); i++; } // We ask the packager to finish packager.finish(); this.compileFailed = false; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 9213, 1435, 1216, 1185, 225, 288, 565, 368, 3883, 471, 1842, 30, 2660, 30, 2026, 1699, 5166, 309, 732, 2583, 1045, 2006, 565, 1387, 1026, 273, 394, 1387, 12, 31722, 2934,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 9213, 1435, 1216, 1185, 225, 288, 565, 368, 3883, 471, 1842, 30, 2660, 30, 2026, 1699, 5166, 309, 732, 2583, 1045, 2006, 565, 1387, 1026, 273, 394, 1387, 12, 31722, 2934,...
return pos == POS_BEFORE_FIRST;
return (pos == POS_BEFORE_FIRST) && (rowsInResult != 0);
public boolean isBeforeFirst() throws SQLException { return pos == POS_BEFORE_FIRST; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/fb8d83e970f8d6bd9cc0f859d3736d3613730e2b/CursorResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/CursorResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 4649, 3759, 1435, 1216, 6483, 288, 3639, 327, 261, 917, 422, 12511, 67, 19152, 67, 15354, 13, 597, 261, 3870, 382, 1253, 480, 374, 1769, 565, 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, 0, 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, 4649, 3759, 1435, 1216, 6483, 288, 3639, 327, 261, 917, 422, 12511, 67, 19152, 67, 15354, 13, 597, 261, 3870, 382, 1253, 480, 374, 1769, 565, 289, 2, -100, -100, -100, ...
((IOffsettable)decl).setStartingOffset( firstToken.getOffset() );
((IOffsetable)decl).setStartingOffset( firstToken.getOffset() );
public Object simpleDeclarationBegin(Object container, Token firstToken) { SimpleDeclaration decl = new SimpleDeclaration(); ((IScope)container).addDeclaration(decl); if( container instanceof ClassSpecifier ) decl.setAccessSpecifier(new AccessSpecifier( ((ClassSpecifier)container).getCurrentVisibility() )); ((IOffsettable)decl).setStartingOffset( firstToken.getOffset() ); return decl; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5b29e684d80c5641fa18714c94bcf608926b8162/DOMBuilder.java/buggy/core/org.eclipse.cdt.core/dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 4143, 6094, 8149, 12, 921, 1478, 16, 3155, 1122, 1345, 13, 288, 202, 202, 5784, 6094, 3496, 273, 394, 4477, 6094, 5621, 202, 202, 12443, 45, 3876, 13, 3782, 2934, 1289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 4143, 6094, 8149, 12, 921, 1478, 16, 3155, 1122, 1345, 13, 288, 202, 202, 5784, 6094, 3496, 273, 394, 4477, 6094, 5621, 202, 202, 12443, 45, 3876, 13, 3782, 2934, 1289, ...
} catch( AssertionFailedError e ) { if( "Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage()) ) {
runCursorScroll("ODBC", con); } catch (AssertionFailedError e) { if ("Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage())) {
public void testCursorScrollODBC() throws Exception { try { connectODBC(); } catch( AssertionFailedError e ) { if( "Connection properties not found (conf/odbc-connection.properties).".equals(e.getMessage()) ) { System.err.println("Skipping ODBC tests."); return; } else throw e; } runCursorScroll( "ODBC", con ); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9db5c1e6691a6fe3d8b463f25975f411ab0e317c/PerformanceTest.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/PerformanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6688, 6806, 1212, 16283, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3077, 1212, 16283, 5621, 3639, 289, 3639, 1044, 12, 9067, 2925, 668, 425, 262, 3639, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6688, 6806, 1212, 16283, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3077, 1212, 16283, 5621, 3639, 289, 3639, 1044, 12, 9067, 2925, 668, 425, 262, 3639, 288, ...
int senderSize=bouquet.getSender().size(); for (int i2=0; i2<senderSize; i2++) { BOSender sender = (BOSender)bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) {
int senderSize = bouquet.getSender().size(); for (int i2 = 0; i2 < senderSize; i2++) { BOSender sender = (BOSender) bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) {
public void selectRunningSender() { try { int listSize=getBouquetList().size(); String runningChanId = ControlMain.getBoxAccess().getChanIdOfRunningSender(); for (int i=0; i<listSize; i++) { //Schleife ueber die Bouquets BOBouquet bouquet = (BOBouquet)this.getBouquetList().get(i); bouquet.readSender(); int senderSize=bouquet.getSender().size(); for (int i2=0; i2<senderSize; i2++) { //Schleife ueber die Sender im Bouquet BOSender sender = (BOSender)bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId) && this.getSelectedSender() == null) { this.setSelectedBouquet(bouquet); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(i); this.getMainView().getTabProgramm().getJTableChannels().setRowSelectionInterval(i2, i2); this.setSelectedSender(sender); break; } } } } catch (IOException e) { this.setSelectedBouquet((BOBouquet)this.getBouquetList().get(0)); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(0); } }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/42fadab72d415385672b25bd759344caab6749a0/ControlProgramTab.java/clean/jtg/control/ControlProgramTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 7051, 12021, 1435, 288, 202, 202, 698, 288, 1082, 565, 509, 666, 1225, 33, 588, 38, 1395, 28357, 682, 7675, 1467, 5621, 1082, 202, 780, 3549, 6255, 548, 273, 8888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 7051, 12021, 1435, 288, 202, 202, 698, 288, 1082, 565, 509, 666, 1225, 33, 588, 38, 1395, 28357, 682, 7675, 1467, 5621, 1082, 202, 780, 3549, 6255, 548, 273, 8888, ...
properties,
protected ResourceSet doQuery(String query, DocumentSet docs, NodeSet contextSet, String sortExpr) throws XMLDBException { LOG.debug("query: " + query); DBBroker broker = null; try { broker = brokerPool.get(user); StaticContext context = new StaticContext(broker); context.setBaseURI(collection.getPath()); Map.Entry entry; // declare namespace/prefix mappings for(Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); LOG.debug("prefix " + entry.getKey() + " = " + entry.getValue()); context.declareNamespace((String)entry.getKey(), (String)entry.getValue()); } // declare static variables for(Iterator i = variableDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); context.declareVariable((String)entry.getKey(), (String)entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(query)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if(parser.foundErrors()) { LOG.debug(parser.getErrorMessage()); throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringList()); PathExpr expr = new PathExpr(context); treeParser.xpath(ast, expr); if(treeParser.foundErrors()) { throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, treeParser.getErrorMessage(), treeParser.getLastException()); } LOG.info("query: " + expr.pprint()); long start = System.currentTimeMillis(); //if (parser.foundErrors()) // throw new XMLDBException(ErrorCodes.VENDOR_ERROR, parser.getErrorMsg()); Sequence result = null;// docs = (docs == null ? expr.preselect() : expr.preselect(docs));// if (docs.getLength() == 0) {// result = Sequence.EMPTY_SEQUENCE;// LOG.info("no documents!");// } else result = expr.eval(docs, contextSet, null); LOG.info( expr.pprint() + " found: " + result.getLength() + " in " + (System.currentTimeMillis() - start) + "ms."); LocalResourceSet resultSet = new LocalResourceSet( user, brokerPool, collection, result, properties, sortExpr); return resultSet; } catch (antlr.RecognitionException re) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, re.getMessage(), re); } catch (antlr.TokenStreamException te) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, te.getMessage(), te); } catch (IllegalArgumentException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } finally { brokerPool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/c8334cc07663e3020616f9674c3107e45efa956d/LocalXPathQueryService.java/buggy/src/org/exist/xmldb/LocalXPathQueryService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2591, 694, 741, 1138, 12, 780, 843, 16, 4319, 694, 3270, 16, 3196, 202, 907, 694, 819, 694, 16, 514, 1524, 4742, 13, 202, 202, 15069, 26014, 503, 288, 3639, 2018, 18, 4148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2591, 694, 741, 1138, 12, 780, 843, 16, 4319, 694, 3270, 16, 3196, 202, 907, 694, 819, 694, 16, 514, 1524, 4742, 13, 202, 202, 15069, 26014, 503, 288, 3639, 2018, 18, 4148, ...
if (val == null) return;
if (val == null) return;
public void setSubject (ESValue val) throws Exception { if (val == null) return; message.setSubject (MimeUtility.encodeWord (val.toString (), "iso-8859-1", null)); }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/6c452b18936d38609051f30ddad8111dcfb11ff7/ESMail.java/buggy/src/helma/scripting/fesi/extensions/ESMail.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27311, 261, 3991, 620, 1244, 13, 1216, 1185, 288, 377, 202, 430, 261, 1125, 422, 446, 13, 377, 202, 565, 327, 31, 202, 2150, 18, 542, 6638, 261, 13320, 6497, 18, 3015, 3944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27311, 261, 3991, 620, 1244, 13, 1216, 1185, 288, 377, 202, 430, 261, 1125, 422, 446, 13, 377, 202, 565, 327, 31, 202, 2150, 18, 542, 6638, 261, 13320, 6497, 18, 3015, 3944, ...
public FSDataInputStream open(File f, int bufferSize) throws IOException { return new FSDataInputStream(this, f, bufferSize, getConf());
public FSDataInputStream open(File f) throws IOException { return open(new Path(f.toString()));
public FSDataInputStream open(File f, int bufferSize) throws IOException { return new FSDataInputStream(this, f, bufferSize, getConf()); }
53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ee01fef4b4fb82c7492a4a747793839a4d14cd39/FileSystem.java/buggy/src/java/org/apache/hadoop/fs/FileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9247, 751, 4348, 1696, 12, 812, 284, 16, 509, 16939, 13, 1216, 1860, 288, 1377, 327, 394, 9247, 751, 4348, 12, 2211, 16, 284, 16, 16939, 16, 28836, 10663, 565, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9247, 751, 4348, 1696, 12, 812, 284, 16, 509, 16939, 13, 1216, 1860, 288, 1377, 327, 394, 9247, 751, 4348, 12, 2211, 16, 284, 16, 16939, 16, 28836, 10663, 565, 289, 2, -100, -100,...
super(); }
super(); }
public TableDecorator() { super(); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/a71dc315013464c01719d449044bb7645788f6e6/TableDecorator.java/buggy/_OLD/displaytag08/src/org/apache/taglibs/display/TableDecorator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 3555, 10361, 1435, 288, 1377, 2240, 5621, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 3555, 10361, 1435, 288, 1377, 2240, 5621, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (justbody && toplevel && i + 1 == length)
if (justbody && type != NESTED_FUNCTION && i + 1 == length)
private static void decompile_r(NativeFunction f, int version, int indent, boolean toplevel, boolean justbody, Object[] srcData, StringBuffer result) { String source = f.source; int length = source.length(); NativeFunction[] nestedFunctions = f.nestedFunctions; boolean fromFunctionConstructor = f.fromFunctionConstructor; // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int i = 0; if (length != 0) { // If the first token is TokenStream.SCRIPT, then we're // decompiling the toplevel script, otherwise it a function // and should start with TokenStream.FUNCTION if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } int token = source.charAt(i); ++i; if (token == TokenStream.FUNCTION) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (source.charAt(i) == TokenStream.LP && version != Context.VERSION_1_2 && fromFunctionConstructor) { result.append("anonymous"); } } else { // Skip past the entire function header pass the next EOL. skipLoop: for (;;) { token = source.charAt(i); ++i; switch (token) { case TokenStream.EOL: break skipLoop; case TokenStream.NAME: // Skip function or argument name i = Parser.getSourceString(source, i, null); break; case TokenStream.LP: case TokenStream.COMMA: case TokenStream.RP: break; default: // Bad function header throw new RuntimeException(); } } } } else if (token != TokenStream.SCRIPT) { // Bad source header throw new RuntimeException(); } } while (i < length) { switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ i = Parser.getSourceString(source, i + 1, srcData); result.append((String)srcData[0]); continue; case TokenStream.NUMBER: { i = Parser.getSourceNumber(source, i + 1, srcData); double number = ((Number)srcData[0]).doubleValue(); result.append(ScriptRuntime.numberToString(number, 10)); continue; } case TokenStream.STRING: i = Parser.getSourceString(source, i + 1, srcData); result.append('"'); result.append(ScriptRuntime.escapeString((String)srcData[0])); result.append('"'); continue; case TokenStream.PRIMARY: ++i; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionNumber = source.charAt(i); if (nestedFunctions == null || functionNumber > nestedFunctions.length) { throw Context.reportRuntimeError(Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber))); } decompile_r(nestedFunctions[functionNumber], version, indent, false, false, srcData, result); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(source, length, i, TokenStream.EOL)) indent += OFFSET; result.append('{'); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == length) break; if (nextIs(source, length, i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(source, length, i, TokenStream.WHILE) || nextIs(source, length, i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(source, length, i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; int nextToken = source.charAt(i + 1); if (nextToken == TokenStream.CASE || nextToken == TokenStream.DEFAULT) less = SETBACK; else if (nextToken == TokenStream.RC) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextToken == TokenStream.NAME) { int afterName = Parser.getSourceString(source, i + 2, null); if (source.charAt(afterName) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(source, length, i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(source, length, i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(source, length, i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(source, length, i, TokenStream.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: ++i; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(source, length, i, TokenStream.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: ++i; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: ++i; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: ++i; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: ++i; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/784105585e3419e7ef2146454d92ee945f966e99/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 443, 11100, 67, 86, 12, 9220, 2083, 284, 16, 509, 1177, 16, 509, 3504, 16, 4766, 565, 1250, 28999, 16, 1250, 2537, 3432, 16, 4766, 565, 1033, 8526, 1705, 751, 16, 6674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 443, 11100, 67, 86, 12, 9220, 2083, 284, 16, 509, 1177, 16, 509, 3504, 16, 4766, 565, 1250, 28999, 16, 1250, 2537, 3432, 16, 4766, 565, 1033, 8526, 1705, 751, 16, 6674, ...
public void attach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model attached"); text = "insertLabel"; }
public void detach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model detached"); text = null; }
public AttributeModifierComponentPage(final PageParameters parameters) { // Label with attribute modifier Label label1 = new Label("label1", new Model("Label 1")); add(label1); // Lavel with override attribute modifier Label label2 = new Label("label2", new Model("Label 2")); label2.add( new ComponentTagAttributeModifier("class", new Model("overrideLabel"))); label2.add( new ComponentTagAttributeModifier("unknown", new Model("invalid"))); add(label2); // Lavel with attribute inserter Label label3 = new Label("label3", new Model("Label 3")); label3.add( new ComponentTagAttributeModifier("class", true, new IDetachableModel() { private String text = null; public void detach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model detached"); text = null; } public void attach(RequestCycle cycle) { System.out.println("ComponentTagAttributeModifier model attached"); text = "insertLabel"; } public Object getObject() { return text; } public void setObject(Object object) { text = object.toString(); } })); add(label3); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/AttributeModifierComponentPage.java/clean/wicket/src/test/wicket/AttributeModifierComponentPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3601, 9829, 1841, 1964, 12, 6385, 3460, 2402, 1472, 13, 288, 3639, 368, 5287, 598, 1566, 9606, 3639, 5287, 1433, 21, 273, 394, 5287, 2932, 1925, 21, 3113, 394, 3164, 2932, 2224,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3601, 9829, 1841, 1964, 12, 6385, 3460, 2402, 1472, 13, 288, 3639, 368, 5287, 598, 1566, 9606, 3639, 5287, 1433, 21, 273, 394, 5287, 2932, 1925, 21, 3113, 394, 3164, 2932, 2224,...
public String getName() { return _name; }
final public String getName() { return _name; }
public String getName() { return _name; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/af8b9e04f0dcb3a0994b2882f87f1d6c81e86fc1/Argument.java/buggy/webmacro/src/org/webmacro/engine/Argument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 1723, 1435, 288, 327, 389, 529, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 1723, 1435, 288, 327, 389, 529, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
new ImageIcon(getClass().getResource("images/biffNew.gif"));
new ImageIcon("ui/images/biffNew.gif");
public BiffIcon() { if (fIconUnknown == null) { fIconUnknown = new ImageIcon(getClass().getResource("images/biffUnknown.gif")); fIconNew = new ImageIcon(getClass().getResource("images/biffNew.gif")); fIconNone = new ImageIcon(getClass().getResource("images/biffNone.gif")); } setText(null); // Necessary for icon size to be used for preferred size setBiffState(MailDrop.UNKNOWN); fThread = BiffThread.Get(); fThread.addChangeListener(this); setBiffState(fThread.getBiffState()); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/BiffIcon.java/buggy/grendel/sources/grendel/ui/BiffIcon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 605, 3048, 5554, 1435, 288, 565, 309, 261, 74, 5554, 4874, 422, 446, 13, 288, 1377, 284, 5554, 4874, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 3048, 5554, 1435, 288, 565, 309, 261, 74, 5554, 4874, 422, 446, 13, 288, 1377, 284, 5554, 4874, 273, 3639, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 70,...
private static synchronized long getUniqueLong ()
private static synchronized long getUniqueLong()
private static synchronized long getUniqueLong () { return next_scrollbar_number++; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 3852, 1525, 16076, 3708, 1435, 225, 288, 565, 327, 1024, 67, 12033, 3215, 67, 2696, 9904, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 3852, 1525, 16076, 3708, 1435, 225, 288, 565, 327, 1024, 67, 12033, 3215, 67, 2696, 9904, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return new Status(IStatus.ERROR, XMLEditorPlugin.ID, IStatus.INFO, "", null);
return new Status(IStatus.ERROR, XMLUIPlugin.ID, IStatus.INFO, "", null);
public IStatus validateEdit(Shell context) { if (getTextEditor() == null) return new Status(IStatus.ERROR, XMLEditorPlugin.ID, IStatus.INFO, "", null); //$NON-NLS-1$ return getTextEditor().validateEdit(context); }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/XMLMultiPageEditorPart.java/clean/bundles/org.eclipse.wst.xml.ui/src-multipage/org/eclipse/wst/xml/internal/ui/XMLMultiPageEditorPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1954, 4666, 12, 13220, 819, 13, 288, 202, 202, 430, 261, 588, 1528, 6946, 1435, 422, 446, 13, 1082, 202, 2463, 394, 2685, 12, 45, 1482, 18, 3589, 16, 3167, 5370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1954, 4666, 12, 13220, 819, 13, 288, 202, 202, 430, 261, 588, 1528, 6946, 1435, 422, 446, 13, 1082, 202, 2463, 394, 2685, 12, 45, 1482, 18, 3589, 16, 3167, 5370, ...
int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset());
int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset());
protected IASTName consumeTemplatedOperatorName() throws EndOfFileException, BacktrackException { TemplateParameterManager argumentList = TemplateParameterManager .getInstance(); try { if (LT(1) == IToken.t_operator) return operatorId(null, null); try { return createName(name()); } catch (BacktrackException bt) { } IToken start = null; IToken mark = mark(); if (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { start = consume(); IToken end = null; if (start.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); } while (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { end = consume(); if (end.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); } } if (LT(1) == IToken.t_operator) { return operatorId(start, argumentList); } int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); return null; } finally { TemplateParameterManager.returnInstance(argumentList); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 461, 7865, 26033, 690, 5592, 461, 1435, 1082, 202, 15069, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 202, 202, 2283, 1662, 1318, 1237, 682, 273, 5035, 1662, 1318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 9053, 461, 7865, 26033, 690, 5592, 461, 1435, 1082, 202, 15069, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 202, 202, 2283, 1662, 1318, 1237, 682, 273, 5035, 1662, 1318...
if (!XSConstraints.checkSimpleDerivationOk(dv, baseValidator, baseValidator.getFinalSet()) ) { reportGenericSchemaError("ComplexType " + typeName + ": " + "derivation-ok-restriction.5.1.1: The content type is not a valid restriction of the content type of the base"); }
private void traverseSimpleContent(Element simpleContentElement, XSComplexTypeDecl typeInfo, XSDocumentInfo schemaDoc, SchemaGrammar grammar) throws ComplexTypeRecoverableError { String typeName = typeInfo.fName; Object[] attrValues = fAttrChecker.checkAttributes(simpleContentElement, false, schemaDoc); // ----------------------------------------------------------------------- // Set content type // ----------------------------------------------------------------------- typeInfo.fContentType = XSComplexTypeDecl.CONTENTTYPE_SIMPLE; typeInfo.fParticle = null; Element simpleContent = checkContent(DOMUtil.getFirstChildElement(simpleContentElement), attrValues, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); // If there are no children, return if (simpleContent==null) { throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // The content should be either "restriction" or "extension" // ----------------------------------------------------------------------- String simpleContentName = simpleContent.getLocalName(); if (simpleContentName.equals(SchemaSymbols.ELT_RESTRICTION)) typeInfo.fDerivedBy = SchemaSymbols.RESTRICTION; else if (simpleContentName.equals(SchemaSymbols.ELT_EXTENSION)) typeInfo.fDerivedBy = SchemaSymbols.EXTENSION; else { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Child of simpleContent must be restriction or extension"); throw new ComplexTypeRecoverableError(); } if (DOMUtil.getNextSiblingElement(simpleContent) != null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Invalid child of simpleContent"); throw new ComplexTypeRecoverableError(); } attrValues = fAttrChecker.checkAttributes(simpleContent, false, schemaDoc); QName baseTypeName = (QName) attrValues[XSAttributeChecker.ATTIDX_BASE]; fAttrChecker.returnAttrArray(attrValues, schemaDoc); // ----------------------------------------------------------------------- // Need a base type. // ----------------------------------------------------------------------- if (baseTypeName==null) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base attribute must be specified for the restriction or extension"); throw new ComplexTypeRecoverableError(); } XSTypeDecl type = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, baseTypeName); typeInfo.fBaseType = type; DatatypeValidator baseValidator = null; XSComplexTypeDecl baseComplexType = null; // If the base type is complex, it must have simpleContent if ((type instanceof XSComplexTypeDecl)) { baseComplexType = (XSComplexTypeDecl)type; if (baseComplexType.fContentType != XSComplexTypeDecl.CONTENTTYPE_SIMPLE) { // REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type must be complex"); throw new ComplexTypeRecoverableError(); } baseValidator = baseComplexType.fDatatypeValidator; } else { baseValidator = (DatatypeValidator)type; if (typeInfo.fDerivedBy == SchemaSymbols.RESTRICTION) { reportGenericSchemaError("ComplexTYpe " + typeName + ": " + "ct-props-correct.2: The base is a simple type. It cannot be used in a derivation by restriction"); throw new ComplexTypeRecoverableError(); } } // ----------------------------------------------------------------------- // Check that the base permits the derivation // ----------------------------------------------------------------------- if ((baseValidator.getFinalSet() & typeInfo.fDerivedBy)!=0) { //REVISIT - generate error reportGenericSchemaError("ComplexType " + typeName + ": " + "The base type has a final value that prohibits this derivation"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Skip over any potential annotations // ----------------------------------------------------------------------- simpleContent = checkContent(DOMUtil.getFirstChildElement(simpleContent), null, schemaDoc); // ----------------------------------------------------------------------- // Process a RESTRICTION // ----------------------------------------------------------------------- if (typeInfo.fDerivedBy == SchemaSymbols.RESTRICTION) { // ----------------------------------------------------------------------- // There may be a simple type definition in the restriction element // The data type validator will be based on it, if specified // ----------------------------------------------------------------------- if (simpleContent.getLocalName().equals(SchemaSymbols.ELT_SIMPLETYPE )) { DatatypeValidator dv =fSchemaHandler.fSimpleTypeTraverser.traverseLocal(simpleContent, schemaDoc, grammar); //check that this datatype validator is validly derived from the base //according to derivation-ok-restriction 5.1.1 // Need to check with Elena/Sandy if there's a new method for this - REVISIT //if (!checkSimpleTypeDerivationOK(dv,baseValidator)) { // reportGenericSchemaError("ComplexType " + typeName + ": " + // "derivation-ok-restriction.5.1.1: The content type is not a valid restriction of the content type of the base"); // } baseValidator = dv; simpleContent = DOMUtil.getNextSiblingElement(simpleContent); } // ----------------------------------------------------------------------- // Traverse any facets // ----------------------------------------------------------------------- Hashtable fFacetData = null; Element attrNode = null; if (simpleContent!=null) { fFacetInfo fi = traverseFacets(simpleContent, null, typeName, baseValidator, schemaDoc, grammar); fFacetData = fi.facetdata; attrNode = fi.nodeAfterFacets; } typeInfo.fDatatypeValidator = createRestrictedValidator(baseValidator, fFacetData, fErrorReporter); if (typeInfo.fDatatypeValidator == null) { // REVISIT error msg reportGenericSchemaError("Internal error - could not create a new validator"); throw new ComplexTypeRecoverableError(); } // ----------------------------------------------------------------------- // Traverse any attributes // ----------------------------------------------------------------------- if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError("src-ct", new Object[]{typeInfo.fName}); } traverseAttrsAndAttrGrps(attrNode,typeInfo.fAttrGrp, schemaDoc,grammar); mergeAttributes(baseComplexType.fAttrGrp, typeInfo.fAttrGrp, typeName, false); String error = typeInfo.fAttrGrp.validRestrictionOf(baseComplexType.fAttrGrp); if (error != null) { reportGenericSchemaError("ComplexType " + typeName + ": " + error); throw new ComplexTypeRecoverableError(); } } // ----------------------------------------------------------------------- // Process a EXTENSION // ----------------------------------------------------------------------- else { typeInfo.fDatatypeValidator = baseValidator; if (simpleContent != null) { // ----------------------------------------------------------------------- // Traverse any attributes // ----------------------------------------------------------------------- Element attrNode = simpleContent; if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError("src-ct", new Object[]{typeInfo.fName}); } traverseAttrsAndAttrGrps(attrNode,typeInfo.fAttrGrp, schemaDoc,grammar); if (baseComplexType != null) { mergeAttributes(baseComplexType.fAttrGrp, typeInfo.fAttrGrp, typeName, true); } } } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7fc1339204fd07211cd4d8e92ef39bfc596812a4/XSDComplexTypeTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 5784, 1350, 12, 1046, 4143, 1350, 1046, 16, 309, 16051, 60, 55, 4878, 18, 1893, 5784, 12041, 8482, 8809, 12, 15679, 16, 1026, 5126, 16, 1026, 5126, 18, 588, 7951, 694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10080, 5784, 1350, 12, 1046, 4143, 1350, 1046, 16, 309, 16051, 60, 55, 4878, 18, 1893, 5784, 12041, 8482, 8809, 12, 15679, 16, 1026, 5126, 16, 1026, 5126, 18, 588, 7951, 694, ...
for ( Iterator j = plugin.getGoals().iterator(); j.hasNext() && dom == null; )
for ( Iterator j = plugin.getGoals().iterator(); j.hasNext(); )
private static PlexusConfiguration getProjectDefinedPluginConfiguration( MavenProject project, String goalId ) { Xpp3Dom dom = null; // ---------------------------------------------------------------------- // I would like to be able to lookup the Plugin object using a key but // we have a limitation in modello that will be remedied shortly. So // for now I have to iterate through and see what we have. // ---------------------------------------------------------------------- if ( project.getPlugins() != null ) { String pluginId = getPluginId( goalId ); for ( Iterator iterator = project.getPlugins().iterator(); iterator.hasNext() && dom == null; ) { org.apache.maven.model.Plugin plugin = (org.apache.maven.model.Plugin) iterator.next(); // TODO: groupID not handled if ( pluginId.equals( plugin.getArtifactId() ) ) { dom = (Xpp3Dom) plugin.getConfiguration(); // TODO: much less of this magic is needed - make the mojoDescriptor just store the first and second part int index = goalId.indexOf( ':' ); if ( index >= 0 ) { String goalName = goalId.substring( index + 1 ); for ( Iterator j = plugin.getGoals().iterator(); j.hasNext() && dom == null; ) { Goal goal = (Goal) j.next(); if ( goal.getId().equals( goalName ) ) { Xpp3Dom goalConfiguration = (Xpp3Dom) goal.getConfiguration(); if ( goalConfiguration != null ) { dom = Xpp3DomUtils.mergeXpp3Dom( Xpp3DomUtils.copyXpp3Dom( goalConfiguration ), dom ); } else { dom = new Xpp3Dom( "configuration" ); } } } } } } } PlexusConfiguration configuration; if ( dom == null ) { configuration = new XmlPlexusConfiguration( "configuration" ); } else { configuration = new XmlPlexusConfiguration( dom ); } return configuration; }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/7573893dac30b278dd642520da216ca3d400f278/DefaultPluginManager.java/clean/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 453, 4149, 407, 1750, 11080, 8116, 3773, 1750, 12, 17176, 4109, 1984, 16, 514, 17683, 548, 262, 565, 288, 3639, 1139, 11858, 23, 8832, 4092, 273, 446, 31, 3639, 368, 8879, 1346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 4149, 407, 1750, 11080, 8116, 3773, 1750, 12, 17176, 4109, 1984, 16, 514, 17683, 548, 262, 565, 288, 3639, 1139, 11858, 23, 8832, 4092, 273, 446, 31, 3639, 368, 8879, 1346...
consume();
try{ callback.classSpecifierEnd(classSpec, consume( Token.tRBRACE )); } catch( Exception e ) {}
protected void classSpecifier( Object owner ) throws Backtrack { Token classKey = null; Token mark = mark(); // class key switch (LT(1)) { case Token.t_class: case Token.t_struct: case Token.t_union: classKey = consume(); break; default: throw backtrack; } Object classSpec = null; try{ classSpec = callback.classSpecifierBegin( owner, classKey);} catch( Exception e ){} // class name if (LT(1) == Token.tIDENTIFIER) { className(); try{ callback.classSpecifierName(classSpec);} catch( Exception e ){} } if( LT(1) != Token.tCOLON && LT(1) != Token.tLBRACE ) { // this is not a classSpecification try{ callback.classSpecifierAbort( classSpec );} catch( Exception e ){} classSpec = null; backup( mark ); throw backtrack; } else try{ callback.classSpecifierSafe( classSpec ); } catch( Exception e ){} // base clause if (LT(1) == Token.tCOLON) { consume(); baseSpecifier( classSpec ); } // If we don't get a "{", assume elaborated type if (LT(1) == Token.tLBRACE) { consume(); memberDeclarationLoop: while (LT(1) != Token.tRBRACE) { Token lastToken = LA(1); switch (LT(1)) { case Token.t_public: case Token.t_protected: case Token.t_private: try{ callback.classMemberVisibility( classSpec, consume() );} catch( Exception e ){} consume(Token.tCOLON); break; case Token.tRBRACE: consume(Token.tRBRACE); break memberDeclarationLoop; default: declaration(classSpec); } if (lastToken == LA(1)) consumeToNextSemicolon(); } // consume the } consume(); } try{ callback.classSpecifierEnd(classSpec); } catch( Exception e ) {} }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0ff98a152ca4ebe0c2b3707e158d5194dc4acfeb/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 667, 21416, 12, 1033, 3410, 262, 1216, 4297, 4101, 288, 202, 202, 1345, 667, 653, 273, 446, 31, 9506, 202, 1345, 2267, 273, 2267, 5621, 202, 202, 759, 667, 498, 202, 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, 1117, 918, 667, 21416, 12, 1033, 3410, 262, 1216, 4297, 4101, 288, 202, 202, 1345, 667, 653, 273, 446, 31, 9506, 202, 1345, 2267, 273, 2267, 5621, 202, 202, 759, 667, 498, 202, 202...
public static Test suite() { TestSuite suite= new TestSuite( IMacroTests.class.getName() ); suite.addTest( new IMacroTests("testGetElementName")); // TODO: suite.addTest( new IMacroTest("testGetIdentifierList")); // TODO: suite.addTest( new IMacroTest("testGetTokenSequence")); return suite; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b1c1e00a78347dcc957216c5590b0cfa10b1c14b/IMacroTests.java/clean/core/org.eclipse.cdt.ui.tests/model/org/eclipse/cdt/core/model/tests/IMacroTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 33, 394, 7766, 13587, 12, 6246, 1077, 303, 14650, 18, 1106, 18, 17994, 1435, 11272, 202, 202, 30676, 18, 1289, 4709, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 33, 394, 7766, 13587, 12, 6246, 1077, 303, 14650, 18, 1106, 18, 17994, 1435, 11272, 202, 202, 30676, 18, 1289, 4709, 1...
throw new PSQLException("postgresql.con.kerb5");
throw new PSQLException("postgresql.con.kerb5", PSQLState.CONNECTION_REJECTED);
private void openConnectionV2(String host, int port, Properties info, String database, String url, Driver d, String password) throws SQLException { PGProtocolVersionMajor = 2; if (Driver.logDebug) Driver.debug("Using Protocol Version2"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported"); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail"); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); salt = new String(md5Salt, 0, 4); if (Driver.logDebug) Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendInteger(5 + password.length(), 4); pgStream.Send(password.getBytes()); pgStream.SendInteger(0, 1); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, password); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendInteger(0, 1); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, password, md5Salt); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendInteger(0, 1); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'K': pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': throw new PSQLException("postgresql.con.backend", pgStream.ReceiveString(encoding)); case 'N': addWarning(pgStream.ReceiveString(encoding)); break; default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // Expect ReadyForQuery packet do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': break; case 'N': addWarning(pgStream.ReceiveString(encoding)); break; case 'E': throw new PSQLException("postgresql.con.backend", pgStream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } } while (beresp == 'N'); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); //TODO: remove this once the set is done as part of V3protocol connection initiation if (haveMinimumServerVersion("7.4")) { BaseResultSet acRset = execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3+ because multibyte //support is now always included if (haveMinimumServerVersion("7.3") && !haveMinimumServerVersion("7.4")) { BaseResultSet acRset = execSQL("set client_encoding = 'UNICODE'; show autocommit"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); if (!acRset.next()) { throw new PSQLException("postgresql.con.failed", "failed getting autocommit status"); } //if autocommit is currently off we need to turn it on //note that we will be in a transaction because the select above //will have initiated the transaction so we need a commit //to make the setting permanent if (acRset.getString(1).equals("off")) { execSQL("set autocommit = on; commit;"); } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 24982, 58, 22, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 16, 514, 2201, 13, 1216, 6483, 202, 225, 288, 202, 202, 18679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24982, 58, 22, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 16, 514, 2201, 13, 1216, 6483, 202, 225, 288, 202, 202, 18679,...
link = "category.jsp?category=" + Util.encode(reportCategory);
link = "rtc/category.jsp?category=" + Util.encode(reportCategory);
private String computeReportCategoryLink(String reportCategory) { String link = null; if (reportCategory != null) { link = "category.jsp?category=" + Util.encode(reportCategory); } return link; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/fe4513b89fe10fceb4223a66b5d81fa8fa6faa06/DefaultSurveillanceService.java/clean/opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultSurveillanceService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3671, 4820, 4457, 2098, 12, 780, 2605, 4457, 13, 288, 3639, 514, 1692, 273, 446, 31, 7734, 309, 261, 6006, 4457, 480, 446, 13, 288, 5411, 1692, 273, 315, 3797, 71, 19, 4743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3671, 4820, 4457, 2098, 12, 780, 2605, 4457, 13, 288, 3639, 514, 1692, 273, 446, 31, 7734, 309, 261, 6006, 4457, 480, 446, 13, 288, 5411, 1692, 273, 315, 3797, 71, 19, 4743, ...
update("insert into service (serviceID, serviceName) values (?, ?)", svcValues);
update("insert into service (serviceID, serviceName) values (?, ?);", svcValues);
public void writeService(MockService svc) { String svcName = svc.getName(); if (!serviceDefined(svcName)) { Object[] svcValues = { new Integer(svc.getId()), svcName }; //Object[] svcValues = { getNextServiceId(), svcName }; getNextServiceId(); update("insert into service (serviceID, serviceName) values (?, ?)", svcValues); } Object[] values = { new Integer(svc.getNodeId()), svc.getIpAddr(), new Integer(svc.getId()), "A" }; update("insert into ifServices (nodeID, ipAddr, serviceID, status) values (?, ?, ?, ?)", values); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1179, 12, 9865, 1179, 7538, 13, 288, 3639, 514, 7538, 461, 273, 7538, 18, 17994, 5621, 3639, 309, 16051, 3278, 8116, 12, 30992, 461, 3719, 288, 5411, 1033, 8526, 7538, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1179, 12, 9865, 1179, 7538, 13, 288, 3639, 514, 7538, 461, 273, 7538, 18, 17994, 5621, 3639, 309, 16051, 3278, 8116, 12, 30992, 461, 3719, 288, 5411, 1033, 8526, 7538, 19...
public void sawField() {}
public void sawField() { }
public void sawField() {}
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/DismantleBytecode.java/clean/findbugs/src/java/edu/umd/cs/findbugs/visitclass/DismantleBytecode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 974, 1435, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 377, 1071, 918, 19821, 974, 1435, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
format = store.getString(ISVNUIConstants.PREF_FOLDERTEXT_DECORATION);
format = folderDecoratorFormat;
public static void decorateTextLabel(IResource resource, IDecoration decoration, boolean isDirty) { try { IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore(); // if the resource does not have a location then return. This can happen if the resource // has been deleted after we where asked to decorate it. if (resource.getLocation() == null) { return; } // get the format String format = ""; //$NON-NLS-1$ int type = resource.getType(); if (type == IResource.FOLDER) { format = store.getString(ISVNUIConstants.PREF_FOLDERTEXT_DECORATION); } else if (type == IResource.PROJECT) { format = store.getString( ISVNUIConstants.PREF_PROJECTTEXT_DECORATION); } else { format = store.getString(ISVNUIConstants.PREF_FILETEXT_DECORATION); } // fill the bindings Map bindings = new HashMap(3); if (isDirty) { bindings.put( SVNDecoratorConfiguration.DIRTY_FLAG, store.getString(ISVNUIConstants.PREF_DIRTY_FLAG)); } ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource); ISVNStatus status = svnResource.getStatus(); if (status.getUrl() != null) bindings.put( SVNDecoratorConfiguration.RESOURCE_URL, status.getUrl().toString()); if (status.isAdded()) { bindings.put( SVNDecoratorConfiguration.ADDED_FLAG, store.getString(ISVNUIConstants.PREF_ADDED_FLAG)); } else { if ((status.getRevision().getNumber() != SVNRevision.SVN_INVALID_REVNUM) && (status.getRevision().getNumber() != 0)) { bindings.put( SVNDecoratorConfiguration.RESOURCE_REVISION, status.getLastChangedRevision().toString()); bindings.put( SVNDecoratorConfiguration.RESOURCE_AUTHOR, status.getLastCommitAuthor()); } if (status.getLastChangedDate() != null) bindings.put( SVNDecoratorConfiguration.RESOURCE_DATE, DateFormat.getInstance().format(status.getLastChangedDate())); } SVNDecoratorConfiguration.decorate(decoration, format, bindings); } catch (SVNException e) { SVNUIPlugin.log(e.getStatus()); return; } }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/13d3cbede2a732910d1e9f386b9a53d47d9b6db3/SVNLightweightDecorator.java/clean/ui/src/org/tigris/subversion/subclipse/ui/decorator/SVNLightweightDecorator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 15752, 1528, 2224, 12, 45, 1420, 1058, 16, 1599, 557, 22226, 29217, 16, 1250, 25206, 13, 288, 202, 202, 698, 288, 1082, 202, 45, 9624, 2257, 1707, 273, 9506, 202, 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, 225, 202, 482, 760, 918, 15752, 1528, 2224, 12, 45, 1420, 1058, 16, 1599, 557, 22226, 29217, 16, 1250, 25206, 13, 288, 202, 202, 698, 288, 1082, 202, 45, 9624, 2257, 1707, 273, 9506, 202, 23...
connector.expectAndReturn("getDispatcher", "dummy", (UMOMessageDispatcher) dispatcher.proxy());
connector.expectAndReturn("getDispatcher", "dummy", dispatcher.proxy());
public void testForwardingStrategy() throws Exception { ForwardingCatchAllStrategy strategy = new ForwardingCatchAllStrategy(); Mock endpoint = getMockEndpoint(); Mock dispatcher = new Mock(UMOMessageDispatcher.class); Mock connector = getMockConnector(); UMOEvent event = getTestEvent("UncaughtEvent"); strategy.setEndpoint((UMOEndpoint) endpoint.proxy()); endpoint.expectAndReturn("getProperties", new HashMap()); endpoint.expectAndReturn("getProperties", new HashMap()); endpoint.expectAndReturn("getConnector", (UMOConnector) connector.proxy()); endpoint.expectAndReturn("getEndpointURI", new MuleEndpointURI("test://dummy")); connector.expectAndReturn("getDispatcher", "dummy", (UMOMessageDispatcher) dispatcher.proxy()); dispatcher.expect("dispatch", C.isA(UMOEvent.class)); strategy.catchMessage(event.getMessage(), null, false); endpoint.verify(); dispatcher.verify(); connector.verify(); assertNotNull(strategy.getEndpoint()); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/3ada23197c9cc39df49f26297238cc1a0f794d24/CatchAllStrategiesTestCase.java/buggy/src/test/java/org/mule/test/routing/CatchAllStrategiesTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21487, 4525, 1435, 1216, 1185, 565, 288, 3639, 17206, 310, 14842, 1595, 4525, 6252, 273, 394, 17206, 310, 14842, 1595, 4525, 5621, 3639, 7867, 2494, 273, 2108, 975, 3293, 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, 1071, 918, 1842, 21487, 4525, 1435, 1216, 1185, 565, 288, 3639, 17206, 310, 14842, 1595, 4525, 6252, 273, 394, 17206, 310, 14842, 1595, 4525, 5621, 3639, 7867, 2494, 273, 2108, 975, 3293, 5...
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("calc'd = " + ib); if (prev == ib) { return; } if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.element; // if moved out of the old block then unstyle it if (prev != null) { boolean restyled = panel.getContext().getCss().isHoverStyled(prev.element); if (restyled) { prev.restyle = true;//notify rendering to restyle the box //prev.hover = false; needRepaint = true; } } // return if no new hovered block; if (ib != null) { //System.out.println("Using: " + ib); /* if the box is an inline box and if it is a text only box, meaning it does not have it's own element but is merely a child of an enclosing box. is inline element */ // Uu.p("real element = " + ib.getRealElement()); // skip it if it's just a text child of a block. we should // do the block instead //if (ib.isInlineElement() || !(ib instanceof InlineBox)) { boolean restyled = panel.getContext().getCss().isHoverStyled(ib.element); //Uu.p("was styled = " + ib); // if the block isn't a hover then go up to the parent. // if the block has a hover style then restyle it if (restyled) { ib.restyle = true; //ib.hover = true; needRepaint = true; } //} } prev = ib; if (needRepaint) panel.repaint(); }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/a903300c6e179a9fd8d09e8201cd032c88004a9e/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3127, 1362, 12, 3514, 9834, 13, 288, 3639, 368, 57, 89, 18, 84, 2932, 9341, 3347, 273, 315, 397, 9834, 1769, 3639, 1250, 1608, 18933, 1598, 273, 629, 31, 202, 202, 759, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3127, 1362, 12, 3514, 9834, 13, 288, 3639, 368, 57, 89, 18, 84, 2932, 9341, 3347, 273, 315, 397, 9834, 1769, 3639, 1250, 1608, 18933, 1598, 273, 629, 31, 202, 202, 759, 327, ...
return markers; }
return markers; }
public ConcreteMarker[] toArray() { return markers; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerList.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 735, 6883, 7078, 8526, 4434, 1435, 288, 202, 202, 2463, 11754, 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, ...
[ 1, 1, 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, 735, 6883, 7078, 8526, 4434, 1435, 288, 202, 202, 2463, 11754, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME:"+"com.idega.user.data.User.LAST_NAME";
String nameKey = User.class.toString()+".FIRST_NAME:" + User.class.toString()+".MIDDLE_NAME:"+User.class.toString()+".LAST_NAME";
private EntityBrowser getEntityBrowserForResult(Collection users, Map messageMap, BasicUserOverviewPS state, IWContext iwc) { // define entity browser EntityBrowser entityBrowser = new EntityBrowser(); PresentationObject parentObject = this.getParentObject(); entityBrowser.setArtificialCompoundId(parentObject.getCompoundId(), iwc); IWPresentationState presentationStateParent = ((StatefullPresentation) parentObject).getPresentationState(iwc); IWPresentationState presentationStateChild = entityBrowser.getPresentationState(iwc); ChangeListener[] chListeners = presentationStateParent.getChangeListener(); if (chListeners != null) { for (int i = 0; i < chListeners.length; i++) { presentationStateChild.addChangeListener(chListeners[i]); } } // add BasisUserOverviewPs as ActionListener to the entityBrowser entityBrowser.addActionListener((IWActionListener) presentationStateParent); // define error message converter class MessageConverter converterErrorMessage = new MessageConverter(); // set error message map converterErrorMessage.setEntityMessageMap(messageMap); // define address converter class EntityToPresentationObjectConverter converterAddress = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Address address = null; try { address = BasicUserOverview.getUserBusiness(iwc).getUsersCoAddress(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Address could not be retrieved.Message was : " + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding address was found, now just use the default converter return (browser.getDefaultConverter().getPresentationObject((GenericEntity) address, path, browser, iwc)); } }; // define email converter class EntityToPresentationObjectConverter converterEmail = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Email email = null; try { email = BasicUserOverview.getUserBusiness(iwc).getUserMail(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Email could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding email was found, now just use the default converter return browser.getDefaultConverter().getPresentationObject((GenericEntity) email, path, browser, iwc); } }; // define phone converter class EntityToPresentationObjectConverter converterPhone = new EntityToPresentationObjectConverter() { public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) entity; Phone[] phone = null; try { phone = BasicUserOverview.getUserBusiness(iwc).getUserPhones(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Phone could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } // now the corresponding address was found, now just use the default converter int i; Table table = new Table(); for (i = 0; i < phone.length; i++) { table.add(browser.getDefaultConverter().getPresentationObject((GenericEntity) phone[i], path, browser, iwc)); } return table; } }; // define special converter class for complete address EntityToPresentationObjectConverter converterCompleteAddress = new EntityToPresentationObjectConverter() { private List values; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object genericEntity, EntityPath path, EntityBrowser browser, IWContext iwc) { // entity is a user, try to get the corresponding address User user = (User) genericEntity; Address address = null; try { address = BasicUserOverview.getUserBusiness(iwc).getUsersMainAddress(user); } catch (RemoteException ex) { System.err.println("[BasicUserOverview]: Address could not be retrieved.Message was :" + ex.getMessage()); ex.printStackTrace(System.err); } StringBuffer displayValues = new StringBuffer(); values = path.getValues((EntityRepresentation) address); // com.idega.core.data.Address.STREET_NUMBER plus com.idega.core.data.Address.STREET_NUMBER displayValues.append(getValue(0)).append(' ').append(getValue(1)); // com.idega.core.data.Address.P_O_BOX String displayValue = getValue(2); if (displayValue.length() != 0) displayValues.append(", P.O. Box ").append(displayValue).append(", "); // com.idega.core.data.PostalCode.POSTAL_CODE_ID|POSTAL_CODE plus com.idega.core.data.Address.CITY displayValue = getValue(3); if (displayValue.length() != 0) displayValues.append(", ").append(getValue(3)).append(' ').append(getValue(4)); // com.idega.core.data.Country.IC_COUNTRY_ID|COUNTRY_NAME displayValue = getValue(5); if (displayValue.length() != 0) displayValues.append(", ").append(displayValue); return new Text(displayValues.toString()); } private String getValue(int i) { Object object = values.get(i); return ((object == null) ? "" : object.toString()); } }; // set default columns String errorMessageKey = "errorMessageKey"; String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME:"+"com.idega.user.data.User.LAST_NAME"; String completeAddressKey = "com.idega.core.data.Address.STREET_NAME:" + "com.idega.core.data.Address.STREET_NUMBER:" + "com.idega.core.data.Address.P_O_BOX:" + "com.idega.core.data.PostalCode.POSTAL_CODE_ID|POSTAL_CODE:" + "com.idega.core.data.Address.CITY:" + "com.idega.core.data.Country.IC_COUNTRY_ID|COUNTRY_NAME"; String emailKey = "com.idega.core.data.Email.ADDRESS"; String phoneKey = "com.idega.core.data.PhoneType.IC_PHONE_TYPE_ID|TYPE_DISPLAY_NAME:" + "com.idega.core.data.Phone.PHONE_NUMBER"; String pinKey = "com.idega.user.data.User.PERSONAL_ID"; Iterator iterator = messageMap.keySet().iterator(); String identifier = (iterator.hasNext()) ? iterator.next().toString() : "move"; entityBrowser.setEntities(identifier, users); entityBrowser.setDefaultNumberOfRows(Math.min(users.size(), 30)); //entityBrowser.setLineColor("#DBDCDF"); entityBrowser.setWidth(Table.HUNDRED_PERCENT); //entityBrowser.setLinesBetween(true); //fonts Text column = new Text(); column.setBold(); entityBrowser.setColumnTextProxy(column); // set color of rows entityBrowser.setColorForEvenRows(IWColor.getHexColorString(246, 246, 247)); entityBrowser.setColorForOddRows("#FFFFFF"); //entityBrowser.setVerticalZebraColored("#FFFFFF",IWColor.getHexColorString(246, 246, 247)); why does this not work!?? entityBrowser.setDefaultColumn(1, errorMessageKey); entityBrowser.setDefaultColumn(2, nameKey); entityBrowser.setDefaultColumn(3, pinKey); entityBrowser.setDefaultColumn(4, emailKey); entityBrowser.setDefaultColumn(5, completeAddressKey); entityBrowser.setDefaultColumn(6, phoneKey); // set special converters entityBrowser.setEntityToPresentationConverter(errorMessageKey, converterErrorMessage); entityBrowser.setEntityToPresentationConverter(completeAddressKey, converterCompleteAddress); // set converter for all columns of this class entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Address", converterAddress); entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Email", converterEmail); entityBrowser.setEntityToPresentationConverter("com.idega.core.data.Phone", converterPhone); // set foreign entities entityBrowser.addEntity("com.idega.core.data.Address"); entityBrowser.addEntity("com.idega.core.data.Email"); entityBrowser.addEntity("com.idega.core.data.Phone"); // change display entityBrowser.setCellspacing(2); entityBrowser.setAcceptUserSettingsShowUserSettingsButton(false,false); return entityBrowser; }
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/83c61be395a4bbf9204543a8ee09749133666912/BasicUserOverview.java/clean/src/java/com/idega/user/presentation/BasicUserOverview.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3887, 9132, 6352, 9132, 1290, 1253, 12, 2532, 3677, 16, 1635, 883, 863, 16, 7651, 1299, 26648, 5857, 919, 16, 467, 59, 1042, 25522, 71, 13, 288, 565, 368, 4426, 1522, 4748, 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, 3887, 9132, 6352, 9132, 1290, 1253, 12, 2532, 3677, 16, 1635, 883, 863, 16, 7651, 1299, 26648, 5857, 919, 16, 467, 59, 1042, 25522, 71, 13, 288, 565, 368, 4426, 1522, 4748, 565, 3...
final int node = _currentChild;
int node = _currentChild; if (_includeSelf) { if (node == -1) { node = _startNode; if (hasChildren(node)) _currentChild = _offsetOrChild[node]; else _currentChild = END; return node; } }
public int next() { final int node = _currentChild; _currentChild = _nextSibling[node]; return returnNode(node); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/706695bb745afd0f8ce5340c5e9a23c2e11db914/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1024, 1435, 288, 202, 565, 727, 509, 756, 273, 389, 2972, 1763, 31, 202, 565, 389, 2972, 1763, 273, 389, 4285, 10291, 63, 2159, 15533, 202, 565, 327, 327, 907, 12, 2159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1024, 1435, 288, 202, 565, 727, 509, 756, 273, 389, 2972, 1763, 31, 202, 565, 389, 2972, 1763, 273, 389, 4285, 10291, 63, 2159, 15533, 202, 565, 327, 327, 907, 12, 2159, ...
public int getTransactionIsolation() throws SQLException {
public int getTransactionIsolation() throws SQLException {
public int getTransactionIsolation() throws SQLException { checkClosed(); return transactionIsolationLevel; }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/fbc92b9b9d3be5beafda76e8c5bfe04325cca422/TdsConnection.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 15674, 22982, 1435, 1216, 6483, 565, 288, 3639, 866, 7395, 5621, 3639, 327, 2492, 22982, 2355, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 15674, 22982, 1435, 1216, 6483, 565, 288, 3639, 866, 7395, 5621, 3639, 327, 2492, 22982, 2355, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
declareClassVar(id, value); }
declareClassVar(id, value); }
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 797, 3092, 12, 780, 508, 16, 19817, 921, 460, 13, 288, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 267, 798, 12, 529, 1769, 202, 202, 430, 16051, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4426, 797, 3092, 12, 780, 508, 16, 19817, 921, 460, 13, 288, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 267, 798, 12, 529, 1769, 202, 202, 430, 16051, 350, ...
if (jj_scan_token(CONTINUE)) return true;
final private boolean jj_3R_324() { if (jj_scan_token(CONTINUE)) return true; Token xsp; xsp = jj_scanpos; if (jj_scan_token(74)) jj_scanpos = xsp; if (jj_scan_token(SEMICOLON)) return true; return false; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 1578, 24, 1435, 288, 4202, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 1578, 24, 1435, 288, 4202, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, ...
source.addCurrentLine();
private int parseHereDocument(int term, boolean indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!isIdentifierChar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } markFilterSource.mark(); support.readLine(); String eos = tok(); StringBuffer sb = new StringBuffer(); while (true) { // test if the end of file or end of string is reached. String line = support.readLine(); if (line == null) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } else if ((indent && line.trim().startsWith(eos)) || line.startsWith(eos)) { if (line.trim().length() == eos.length()) { source.addCurrentLine(); break; } } source.unread(line.length() + 1); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { sb.append(yyVal.toString()); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(RubyString.newString(ruby, sb.toString())); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(RubyString.newString(ruby, sb.toString())); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable) yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (source.isEOL()) { source.addCurrentLine(); break; } } } ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); markFilterSource.reset(); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tXSTRING; } return 0; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 26715, 2519, 12, 474, 2481, 16, 1250, 3504, 13, 288, 3639, 509, 276, 31, 3639, 2029, 666, 273, 446, 31, 3639, 509, 2362, 836, 273, 22155, 18, 588, 1830, 1670, 5621, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 26715, 2519, 12, 474, 2481, 16, 1250, 3504, 13, 288, 3639, 509, 276, 31, 3639, 2029, 666, 273, 446, 31, 3639, 509, 2362, 836, 273, 22155, 18, 588, 1830, 1670, 5621, 363...
new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET),
new OPT_AddressConstantOperand(Offset.fromIntSignExtend(STACKFRAME_FRAME_POINTER_OFFSET)),
static boolean generateMagic (OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { VM_Atom methodName = meth.getName(); if (methodName == VM_MagicNames.getFramePointer) { bc2ir.push(gc.temps.makeFPOp()); gc.allocFrame = true; } else if (methodName == VM_MagicNames.getTocPointer) { bc2ir.push(gc.temps.makeJTOCOp(null,null)); } else if (methodName == VM_MagicNames.getJTOC) { bc2ir.push(gc.temps.makeTocOp()); } else if (methodName == VM_MagicNames.getCallerFramePointer) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCallerFramePointer) { OPT_Operand val = bc2ir.popAddress(); OPT_Operand fp = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); } else if (methodName == VM_MagicNames.getCompiledMethodID) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCompiledMethodID) { OPT_Operand val = bc2ir.popInt(); OPT_Operand fp = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); } else if (methodName == VM_MagicNames.getNextInstructionAddress) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_NEXT_INSTRUCTION_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setNextInstructionAddress) { OPT_Operand val = bc2ir.popAddress(); OPT_Operand fp = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_NEXT_INSTRUCTION_OFFSET), null)); } else if (methodName == VM_MagicNames.getReturnAddressLocation) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand callerFP = gc.temps.makeTemp(VM_TypeReference.Address); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, callerFP, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); bc2ir.appendInstruction(Binary.create(REF_ADD, val, callerFP, new OPT_IntConstantOperand(STACKFRAME_NEXT_INSTRUCTION_OFFSET))); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.isync) { if (!gc.options.NO_CACHE_FLUSH) bc2ir.appendInstruction(Empty.create(READ_CEILING)); } else if (methodName == VM_MagicNames.sync) { if (!gc.options.NO_CACHE_FLUSH) bc2ir.appendInstruction(Empty.create(WRITE_FLOOR)); } else if (methodName == VM_MagicNames.dcbst) { bc2ir.appendInstruction(CacheOp.create(DCBST, bc2ir.popInt())); } else if (methodName == VM_MagicNames.icbi) { bc2ir.appendInstruction(CacheOp.create(ICBI, bc2ir.popInt())); } else { // Distinguish between magics that we know we don't implement // (and never plan to implement) and those (usually new ones) // that we want to be warned that we don't implement. String msg = "Magic method not implemented: " + meth; if (methodName == VM_MagicNames.returnToNewStack) { throw OPT_MagicNotImplementedException.EXPECTED(msg); } else { return false; // throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } return true; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/OPT_GenerateMachineSpecificMagic.java/buggy/rvm/src/vm/arch/powerPC/compilers/optimizing/OPT_GenerateMachineSpecificMagic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1250, 2103, 19289, 261, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 4766, 16456, 67, 13842, 1042, 8859, 16, 4766, 8251, 67, 1305, 2404, 7917, 13, 377, 1216, 16456, 67, 19289, 1248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 2103, 19289, 261, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 4766, 16456, 67, 13842, 1042, 8859, 16, 4766, 8251, 67, 1305, 2404, 7917, 13, 377, 1216, 16456, 67, 19289, 1248...
Chat chat1 = new Chat(getConnection(1), getBareJID(0)); Chat chat2 = new Chat(conn, getBareJID(0));
Chat chat1 = new Chat(getConnection(1), getBareJID(0), chat0.getThreadID()); Chat chat2 = new Chat(conn, getBareJID(0), chat0.getThreadID());
public void testMessageToHighestPriority() { XMPPConnection conn = null; try { // User_1 will log in again using another resource conn = new XMPPConnection(getHost(), getPort()); conn.login(getUsername(1), getUsername(1), "OtherPlace"); // Change the presence priorities of User_1 getConnection(1).sendPacket(new Presence(Presence.Type.AVAILABLE, null, 1, Presence.Mode.AVAILABLE)); conn.sendPacket(new Presence(Presence.Type.AVAILABLE, null, 2, Presence.Mode.AVAILABLE)); Thread.sleep(150); // Create the chats between the participants Chat chat0 = new Chat(getConnection(0), getBareJID(1)); Chat chat1 = new Chat(getConnection(1), getBareJID(0)); Chat chat2 = new Chat(conn, getBareJID(0)); // Test delivery of message to the presence with highest priority chat0.sendMessage("Hello"); assertNotNull("Resource with highest priority didn't receive the message", chat2.nextMessage(2000)); assertNull("Resource with lowest priority received the message", chat1.nextMessage(1000)); // Invert the presence priorities of User_1 getConnection(1).sendPacket(new Presence(Presence.Type.AVAILABLE, null, 2, Presence.Mode.AVAILABLE)); conn.sendPacket(new Presence(Presence.Type.AVAILABLE, null, 1, Presence.Mode.AVAILABLE)); Thread.sleep(150); // Test delivery of message to the presence with highest priority chat0.sendMessage("Hello"); assertNotNull("Resource with highest priority didn't receive the message", chat1.nextMessage(2000)); assertNull("Resource with lowest priority received the message", chat2.nextMessage(1000)); // User_1 closes his connection chat2 = null; conn.close(); Thread.sleep(150); // Test delivery of message to the unique presence of the user_1 chat0.sendMessage("Hello"); assertNotNull("Resource with highest priority didn't receive the message", chat1.nextMessage(2000)); getConnection(1).sendPacket(new Presence(Presence.Type.AVAILABLE, null, 2, Presence.Mode.AVAILABLE)); // User_1 will log in again using another resource conn = new XMPPConnection(getHost(), getPort()); conn.login(getUsername(1), getUsername(1), "OtherPlace"); conn.sendPacket(new Presence(Presence.Type.AVAILABLE, null, 1, Presence.Mode.AVAILABLE)); chat2 = new Chat(conn, getBareJID(0)); Thread.sleep(150); // Test delivery of message to the presence with highest priority chat0.sendMessage("Hello"); assertNotNull("Resource with highest priority didn't receive the message", chat1.nextMessage(2000)); assertNull("Resource with lowest priority received the message", chat2.nextMessage(1000)); // Invert the presence priorities of User_1 getConnection(1).sendPacket(new Presence(Presence.Type.AVAILABLE, null, 1, Presence.Mode.AVAILABLE)); conn.sendPacket(new Presence(Presence.Type.AVAILABLE, null, 2, Presence.Mode.AVAILABLE)); Thread.sleep(150); // Test delivery of message to the presence with highest priority chat0.sendMessage("Hello"); assertNotNull("Resource with highest priority didn't receive the message", chat2.nextMessage(2000)); assertNull("Resource with lowest priority received the message", chat1.nextMessage(1000)); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } finally { if (conn != null) { conn.close(); } } }
47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/3db31f9169aa9f0526688f32bcb1c1f60e50f9cb/PresencePriorityTest.java/clean/test/org/jivesoftware/smack/PresencePriorityTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1079, 774, 8573, 395, 8183, 1435, 288, 3639, 23216, 1952, 1487, 273, 446, 31, 3639, 775, 288, 5411, 368, 2177, 67, 21, 903, 613, 316, 3382, 1450, 4042, 1058, 5411, 1487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1079, 774, 8573, 395, 8183, 1435, 288, 3639, 23216, 1952, 1487, 273, 446, 31, 3639, 775, 288, 5411, 368, 2177, 67, 21, 903, 613, 316, 3382, 1450, 4042, 1058, 5411, 1487, ...
df.format(begin - start), df.format(result- begin), df.format(iterate - result), df.format(commit - iterate), df.format(close - commit)));
DF.format(begin - start), DF.format(result - begin), DF.format(iterate - result), DF.format(commit - iterate), DF.format(close - commit)));
public void testReadWriteEmpty() throws Exception { long start = System.currentTimeMillis(); db = (DatabaseImpl) _jdo.getDatabase(); db.getCacheManager().expireCache(); db.begin(); long begin = System.currentTimeMillis(); OQLQuery query = db.getOQLQuery( "SELECT o FROM " + Locked.class.getName() + " o order by o.id"); QueryResults results = query.execute(); long result = System.currentTimeMillis(); initIterateQueries(); int count = 0; while (results.hasMore()) { iterateStates((Locked) results.next(), Database.Shared); count++; } long iterate = System.currentTimeMillis(); db.commit(); long commit = System.currentTimeMillis(); db.close(); long close = System.currentTimeMillis(); LOG.info(format("ReadWriteEmpty", 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, 1994, 3067, 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, 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, 918, 1842, 1994, 3067, 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, 3639...
Set<TaskCategory> readCats = manager.getTaskList().getTaskCategories();
Set<AbstractTaskContainer> readCats = manager.getTaskList().getTaskContainers();
public void testRepositoryTasksAndCategoriesMultiRead() { TaskCategory cat1 = new TaskCategory("Category 1", manager.getTaskList()); manager.getTaskList().addCategory(cat1); BugzillaTask reportInCat1 = new BugzillaTask("123", "label 123", true); manager.getTaskList().moveToCategory(cat1, reportInCat1); assertEquals(cat1, reportInCat1.getCategory()); manager.saveTaskList(); assertNotNull(manager.getTaskList()); manager.resetTaskList();// manager.getTaskList().clear();// manager.setTaskList(new TaskList()); manager.readExistingOrCreateNewList(); // read once Set<TaskCategory> readCats = manager.getTaskList().getTaskCategories(); assertTrue(manager.getTaskList().getCategories().contains(cat1)); Iterator<TaskCategory> iterator = readCats.iterator(); TaskCategory readCat1 = iterator.next(); assertEquals(cat1, readCat1); assertEquals(1, readCat1.getChildren().size()); manager.saveTaskList(); assertNotNull(manager.getTaskList()); manager.resetTaskList();// manager.getTaskList().clear();// manager.setTaskList(new TaskList()); manager.readExistingOrCreateNewList(); // read again readCats = manager.getTaskList().getTaskCategories(); assertTrue(manager.getTaskList().getCategories().contains(cat1)); iterator = readCats.iterator(); readCat1 = iterator.next(); assertEquals(cat1, readCat1); assertEquals(1, readCat1.getChildren().size()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d14e3655b3944fa732da6ec83d603c802b608f3d/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3305, 6685, 1876, 10487, 5002, 1994, 1435, 288, 202, 202, 2174, 4457, 6573, 21, 273, 394, 3837, 4457, 2932, 4457, 404, 3113, 3301, 18, 588, 2174, 682, 10663, 202, 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, 1842, 3305, 6685, 1876, 10487, 5002, 1994, 1435, 288, 202, 202, 2174, 4457, 6573, 21, 273, 394, 3837, 4457, 2932, 4457, 404, 3113, 3301, 18, 588, 2174, 682, 10663, 202, 202...
containerVersionId, publishedBy, publishedOn);
versionId, publishedBy, publishedOn);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes) { logApiId(); logVariable("publishedBy", publishedBy); logVariable("publishedOn", publishedOn); logVariable("containerUniqueId", containerUniqueId); logVariable("containerVersionId", containerVersionId); logVariable("containerName", containerName); logVariable("artifactUniqueId", artifactUniqueId); logVariable("artifactVersionId", artifactVersionId); logVariable("artifactName", artifactName); logVariable("artifactType", artifactType); logVariable("artifactChecksum", artifactChecksum); logVariable("artifactBytes", artifactBytes); try { // determine the existance of the container and the version. final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Boolean doesExist = artifactModel.doesExist(containerUniqueId); final Boolean doesVersionExist; final Long containerId; final Container container; final ContainerVersion version; if (doesExist) { containerId = artifactModel.readId(containerUniqueId); container = read(containerId); doesVersionExist = artifactModel.doesVersionExist(containerId, containerVersionId); if (doesVersionExist) { version = readVersion(container.getId(), containerVersionId); } else { version = createVersion(container.getId(), containerVersionId, publishedBy, publishedOn); } } else { doesVersionExist = Boolean.FALSE; container = new Container(); container.setCreatedBy(publishedBy.getUsername()); container.setCreatedOn(publishedOn); container.setName(containerName); container.setState(ArtifactState.ACTIVE); container.setType(ArtifactType.CONTAINER); container.setUniqueId(containerUniqueId); container.setUpdatedBy(container.getCreatedBy()); container.setUpdatedOn(container.getCreatedOn()); // create containerIO.create(container); // create version version = createVersion(container.getId(), containerVersionId, publishedBy, publishedOn); // create remote info artifactModel.createRemoteInfo(container.getId(), publishedBy, container.getCreatedOn()); // index indexor.create(container.getId(), container.getName()); } // handle the artifact by specific type final ArtifactVersion artifactVersion; switch(artifactType) { case DOCUMENT: artifactVersion = handleDocumentPublished(publishedBy, publishedOn, artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactBytes); break; case CONTAINER: default: throw Assert.createUnreachable("UNKNOWN ARTIFACT TYPE"); } containerIO.addVersion(version.getArtifactId(), version.getVersionId(), artifactVersion.getArtifactId(), artifactVersion.getVersionId(), artifactVersion.getArtifactType()); final Container postPublish = read(container.getId()); final ContainerVersion postPublishVersion = readVersion(version.getArtifactId(), version.getVersionId()); notifyContainerPublished(postPublish, null, postPublishVersion, remoteEventGenerator); } catch(final Throwable t) { throw translateError(getApiId("[HANDLE ARTIFACT SENT]"), t); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/41eddff52230d01def2ddcb3326068e890b6efd6/ContainerModelImpl.java/clean/client-model/src/main/java/com/thinkparity/model/parity/model/container/ContainerModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 7581, 16451, 12, 6385, 804, 378, 744, 548, 9487, 858, 16, 5411, 727, 5542, 9487, 1398, 16, 727, 5866, 1478, 24174, 16, 5411, 727, 3407, 1478, 28039, 16, 727, 514, 20408, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 7581, 16451, 12, 6385, 804, 378, 744, 548, 9487, 858, 16, 5411, 727, 5542, 9487, 1398, 16, 727, 5866, 1478, 24174, 16, 5411, 727, 3407, 1478, 28039, 16, 727, 514, 20408, 16, ...
if (number.matches(numberMatcher)) this.number = number;
if (number.matches(numberMatcher)) this.number = number;
public void setNumber(String number) { if (number.matches(numberMatcher)) this.number = number; refactorNumber(); }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/556f1ed7b11cc33c0b37b61e451d60131907759d/PhoneNumber.java/clean/jfritz/src/de/moonflower/jfritz/struct/PhoneNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1854, 12, 780, 1300, 13, 288, 202, 202, 430, 261, 2696, 18, 8436, 12, 2696, 6286, 3719, 333, 18, 2696, 273, 1300, 31, 202, 202, 266, 6812, 1854, 5621, 202, 97, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1854, 12, 780, 1300, 13, 288, 202, 202, 430, 261, 2696, 18, 8436, 12, 2696, 6286, 3719, 333, 18, 2696, 273, 1300, 31, 202, 202, 266, 6812, 1854, 5621, 202, 97, 2, ...
if (this.serviceInfo.getFreeLoad() > 0) { this.setLoad(this.serviceInfo.getFreeLoad() - 1); if (logger.isInfoEnabled()) logger.info(this.completeUrl + " give is ProActiveRuntime");
if (logger.isInfoEnabled()) { logger.info(this.getServiceName() + " give is ProActiveRuntime"); }
public Object getProActiveRuntime() { if (this.serviceInfo.getFreeLoad() > 0) { this.setLoad(this.serviceInfo.getFreeLoad() - 1); if (logger.isInfoEnabled()) logger.info(this.completeUrl + " give is ProActiveRuntime"); return this.runtime; } else { // As it's not possible to return null when using Future we return a NullProActiveRuntime object if (logger.isInfoEnabled()) logger.info(this.completeUrl + " doesn't give is ProActiveRuntime because load is full"); return this.fakeProActiveRuntime; } }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/42ae6f8342b0a127515dc21e23375b932806a4a2/P2PServiceImpl.java/buggy/src/org/objectweb/proactive/p2p/core/service/P2PServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3570, 3896, 5576, 1435, 288, 3639, 309, 261, 2211, 18, 3278, 966, 18, 588, 9194, 2563, 1435, 405, 374, 13, 3639, 288, 5411, 333, 18, 542, 2563, 12, 2211, 18, 3278, 966, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3570, 3896, 5576, 1435, 288, 3639, 309, 261, 2211, 18, 3278, 966, 18, 588, 9194, 2563, 1435, 405, 374, 13, 3639, 288, 5411, 333, 18, 542, 2563, 12, 2211, 18, 3278, 966, 18, ...