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
int height = fontData.getHeight(); fontData.setHeight(height + 2); fontData.setStyle(SWT.BOLD); titleFont = new Font(null, fontData); title.setFont(titleFont);
title.setFont(JFaceResources.getFontRegistry().getBold(fontData.getName()));
protected void createContents(Composite parent) { TabbedPropertySheetWidgetFactory factory = getWidgetFactory(); composite = factory.createFlatFormComposite(parent); GridLayout gridLayout = new GridLayout(); gridLayout.marginTop = 0; gridLayout.marginBottom = 0; gridLayout.numColumns = 1; composite.setLayout(gridLayout); title = factory.createCLabel(composite, ""); //$NON-NLS-1$ FontData fontData = composite.getFont().getFontData()[0]; int height = fontData.getHeight(); fontData.setHeight(height + 2); fontData.setStyle(SWT.BOLD); titleFont = new Font(null, fontData); title.setFont(titleFont); title.setText(titleString + (isReadOnly ? " - " + Messages._UI_LABEL_READONLY : "")); //$NON-NLS-1$ //$NON-NLS-2$ Composite facetComposite = factory.createComposite(composite, SWT.FLAT); GridData data = new GridData(); gridLayout = new GridLayout(); gridLayout.marginTop = 0; gridLayout.marginBottom = 0; gridLayout.numColumns = 2; facetComposite.setLayout(gridLayout); data.grabExcessVerticalSpace = true; data.grabExcessHorizontalSpace = true; data.verticalAlignment = GridData.FILL; data.horizontalAlignment = GridData.FILL; facetComposite.setLayoutData(data); data = new GridData(); data.grabExcessVerticalSpace = true; data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.FILL; simpleTypeModifierGroup = getWidgetFactory().createGroup(facetComposite, simpleTypeModifierGroupTitle); GridLayout groupGrid = new GridLayout(); groupGrid.marginTop = 0; groupGrid.marginBottom = 0; groupGrid.numColumns = 1; simpleTypeModifierGroup.setLayoutData(data); simpleTypeModifierGroup.setLayout(groupGrid); Composite simpleTypeModifierComposite = getWidgetFactory().createFlatFormComposite(simpleTypeModifierGroup); data = new GridData(); data.grabExcessVerticalSpace = true; data.verticalAlignment = GridData.FILL; data.horizontalAlignment = GridData.FILL; GridLayout grid = new GridLayout(); grid.marginTop = 0; grid.marginBottom = 0; grid.numColumns = 3; simpleTypeModifierComposite.setLayout(grid); simpleTypeModifierComposite.setLayoutData(data); if (hasMaxMinFacets) { minLengthLabel = factory.createLabel(simpleTypeModifierComposite, minLengthString); minLengthText = factory.createText(simpleTypeModifierComposite, ""); //$NON-NLS-1$ applyAllListeners(minLengthText); GridData minGridData = new GridData(); minGridData.widthHint = 100; minLengthText.setLayoutData(minGridData); minimumInclusiveCheckbox = factory.createButton(simpleTypeModifierComposite, Messages._UI_LABEL_INCLUSIVE, SWT.CHECK); minimumInclusiveCheckbox.addSelectionListener(this); maxLengthLabel = factory.createLabel(simpleTypeModifierComposite, maxLengthString); maxLengthText = factory.createText(simpleTypeModifierComposite, ""); //$NON-NLS-1$ applyAllListeners(maxLengthText); GridData maxGridData = new GridData(); maxGridData.widthHint = 100; maxLengthText.setLayoutData(maxGridData); maximumInclusiveCheckbox = factory.createButton(simpleTypeModifierComposite, Messages._UI_LABEL_INCLUSIVE, SWT.CHECK); maximumInclusiveCheckbox.addSelectionListener(this); minimumInclusiveCheckbox.setVisible(isNumericBaseType); maximumInclusiveCheckbox.setVisible(isNumericBaseType); } collapseWhitespaceButton = factory.createButton(simpleTypeModifierComposite, Messages._UI_LABEL_COLLAPSE_WHITESPACE, SWT.CHECK); collapseWhitespaceButton.addSelectionListener(this); Group specificValueConstraintsGroup = factory.createGroup(facetComposite, Messages._UI_LABEL_SPECIFIC_CONSTRAINT_VALUES); gridLayout = new GridLayout(); gridLayout.marginTop = 0; gridLayout.marginBottom = 0; gridLayout.numColumns = 2; specificValueConstraintsGroup.setLayout(gridLayout); data = new GridData(); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.FILL; specificValueConstraintsGroup.setLayoutData(data); Composite compositeForButtons = factory.createFlatFormComposite(specificValueConstraintsGroup); gridLayout = new GridLayout(); gridLayout.marginTop = 0; gridLayout.verticalSpacing = 1; gridLayout.marginBottom = 0; gridLayout.numColumns = 1; compositeForButtons.setLayout(gridLayout); data = new GridData(); data.verticalAlignment = GridData.BEGINNING; compositeForButtons.setLayoutData(data); factory.createCLabel(compositeForButtons, Messages._UI_LABEL_RESTRICT_VALUES_BY);// useDefinedValuesButton = factory.createButton(compositeForButtons, "Only permit certain values", SWT.CHECK);// useDefinedValuesButton.addSelectionListener(this); Composite compositeForRadioButtons = factory.createFlatFormComposite(compositeForButtons); gridLayout = new GridLayout(); gridLayout.marginTop = 0; gridLayout.marginLeft = 0; gridLayout.marginBottom = 0; gridLayout.numColumns = 1; compositeForRadioButtons.setLayout(gridLayout); useEnumerationsButton = factory.createButton(compositeForRadioButtons, Messages._UI_LABEL_ENUMERATIONS, SWT.RADIO); useEnumerationsButton.addSelectionListener(this); usePatternsButton = factory.createButton(compositeForRadioButtons, Messages._UI_LABEL_PATTERNS, SWT.RADIO); usePatternsButton.addSelectionListener(this); constraintsWidget = new SpecificConstraintsWidget(specificValueConstraintsGroup, factory, (input instanceof XSDFeature) ? (XSDFeature)input : null, xsdSimpleTypeDefinition, this); data = new GridData(); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.FILL; constraintsWidget.getControl().setLayoutData(data); }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/7a5cda39be814de8248b5ec2c43ddbc10b5e75bc/XSDFacetSection.java/clean/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDFacetSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 752, 6323, 12, 9400, 982, 13, 225, 288, 565, 9483, 2992, 1396, 8229, 4609, 1733, 3272, 273, 23434, 1733, 5621, 565, 9635, 273, 3272, 18, 2640, 16384, 1204, 9400, 12, 2938, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 752, 6323, 12, 9400, 982, 13, 225, 288, 565, 9483, 2992, 1396, 8229, 4609, 1733, 3272, 273, 23434, 1733, 5621, 565, 9635, 273, 3272, 18, 2640, 16384, 1204, 9400, 12, 2938, 1769...
private Archiver createArchiver( String format ) throws ArchiverException { Archiver archiver; if ( format.startsWith( "tar" ) ) { TarArchiver tarArchiver = new TarArchiver(); archiver = tarArchiver; int index = format.indexOf( '.' ); if ( index >= 0 ) { TarArchiver.TarCompressionMethod tarCompressionMethod = new TarArchiver.TarCompressionMethod(); String compression = format.substring( index + 1 ); if ( compression.equals( "gz" ) ) { tarCompressionMethod.setValue( "gzip" ); } else if ( compression.equals( "bz2" ) ) { tarCompressionMethod.setValue( "bzip2" ); } else { throw new IllegalArgumentException( "Unknown compression format: " + compression ); } tarArchiver.setCompression( tarCompressionMethod ); } tarArchiver.getOptions().setDirMode( "0700" ); tarArchiver.getOptions().setMode( "0700" ); } else if ( format.startsWith( "zip" ) ) { archiver = new ZipArchiver(); } else if ( format.startsWith( "jar" ) ) { JarArchiver jarArchiver = new JarArchiver(); jarArchiver.setCompress( true ); archiver = jarArchiver; } else { throw new IllegalArgumentException( "Unknown format: " + format ); } return archiver; }
private static Archiver createArchiver( String format ) throws ArchiverException { Archiver archiver; if ( format.startsWith( "tar" ) ) { TarArchiver tarArchiver = new TarArchiver(); archiver = tarArchiver; int index = format.indexOf( '.' ); if ( index >= 0 ) { TarArchiver.TarCompressionMethod tarCompressionMethod = new TarArchiver.TarCompressionMethod(); String compression = format.substring( index + 1 ); if ( compression.equals( "gz" ) ) { tarCompressionMethod.setValue( "gzip" ); } else if ( compression.equals( "bz2" ) ) { tarCompressionMethod.setValue( "bzip2" ); } else { throw new IllegalArgumentException( "Unknown compression format: " + compression ); } tarArchiver.setCompression( tarCompressionMethod ); } } else if ( format.startsWith( "zip" ) ) { archiver = new ZipArchiver(); } else if ( format.startsWith( "jar" ) ) { JarArchiver jarArchiver = new JarArchiver(); jarArchiver.setCompress( true ); archiver = jarArchiver; } else { throw new IllegalArgumentException( "Unknown format: " + format ); } return archiver; }
private Archiver createArchiver( String format ) throws ArchiverException { Archiver archiver; if ( format.startsWith( "tar" ) ) { TarArchiver tarArchiver = new TarArchiver(); archiver = tarArchiver; int index = format.indexOf( '.' ); if ( index >= 0 ) { // TODO: this needs a cleanup in plexus archiver - use a real typesafe enum TarArchiver.TarCompressionMethod tarCompressionMethod = new TarArchiver.TarCompressionMethod(); // TODO: this should accept gz and bz2 as well so we can skip over the switch String compression = format.substring( index + 1 ); if ( compression.equals( "gz" ) ) { tarCompressionMethod.setValue( "gzip" ); } else if ( compression.equals( "bz2" ) ) { tarCompressionMethod.setValue( "bzip2" ); } else { // TODO: better handling throw new IllegalArgumentException( "Unknown compression format: " + compression ); } tarArchiver.setCompression( tarCompressionMethod ); } // TODO: should be able to do this on a file/dir basis tarArchiver.getOptions().setDirMode( "0700" ); tarArchiver.getOptions().setMode( "0700" ); } else if ( format.startsWith( "zip" ) ) { archiver = new ZipArchiver(); } else if ( format.startsWith( "jar" ) ) { // TODO: use MavenArchiver for manifest? JarArchiver jarArchiver = new JarArchiver(); jarArchiver.setCompress( true ); archiver = jarArchiver; } else { // TODO: better handling throw new IllegalArgumentException( "Unknown format: " + format ); } return archiver; }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/3798417daac46fb9b9d8c1ba9514536f8ce9ea42/AssemblyMojo.java/buggy/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/AssemblyMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 16959, 1667, 752, 12269, 1667, 12, 514, 740, 262, 202, 565, 1216, 16959, 1667, 503, 202, 95, 202, 565, 16959, 1667, 6637, 1667, 31, 202, 565, 309, 261, 740, 18, 17514, 1190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16959, 1667, 752, 12269, 1667, 12, 514, 740, 262, 202, 565, 1216, 16959, 1667, 503, 202, 95, 202, 565, 16959, 1667, 6637, 1667, 31, 202, 565, 309, 261, 740, 18, 17514, 1190, ...
if (cueditor != null) { cueditor.fStandardActionGroups.fillActionBars(bars); }
if (part instanceof CompilationUnitEditor) { CompilationUnitEditor cuEditor= (CompilationUnitEditor)part; cuEditor.getStandardActionGroup().fillActionBars(bars); }
public void setActiveEditor(IEditorPart part) { super.setActiveEditor(part); registerListeners(part); ITextEditor textEditor= null; if (part instanceof ITextEditor) textEditor= (ITextEditor) part; CompilationUnitEditor cueditor= null; if (part instanceof CompilationUnitEditor) cueditor= (CompilationUnitEditor)part; fTogglePresentation.setEditor(textEditor); fToggleTextHover.setEditor(textEditor); fPreviousError.setEditor(textEditor); fNextError.setEditor(textEditor); fStructureSelectEnclosingAction.setAction(getAction(textEditor, StructureSelectionAction.ENCLOSING)); fStructureSelectNextAction.setAction(getAction(textEditor, StructureSelectionAction.NEXT)); fStructureSelectPreviousAction.setAction(getAction(textEditor, StructureSelectionAction.PREVIOUS)); fStructureSelectHistoryAction.setAction(getAction(textEditor, StructureSelectionAction.HISTORY)); IActionBars bars= getActionBars(); // Source menu. bars.setGlobalActionHandler(JdtActionConstants.COMMENT, getAction(textEditor, "Comment")); //$NON-NLS-1$ bars.setGlobalActionHandler(JdtActionConstants.UNCOMMENT, getAction(textEditor, "Uncomment")); //$NON-NLS-1$ bars.setGlobalActionHandler(JdtActionConstants.FORMAT, getAction(textEditor, "Format")); //$NON-NLS-1$ bars.setGlobalActionHandler(JdtActionConstants.ADD_IMPORT, getAction(textEditor, "AddImportOnSelection")); //$NON-NLS-1$ bars.setGlobalActionHandler(JdtActionConstants.ORGANIZE_IMPORTS, getAction(textEditor, "OrganizeImports")); //$NON-NLS-1$ bars.setGlobalActionHandler(JdtActionConstants.SURROUND_WITH_TRY_CATCH, getAction(textEditor, "SurroundWithTryCatch")); //$NON-NLS-1$ // Navigate menu if (cueditor != null) { cueditor.fStandardActionGroups.fillActionBars(bars); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/85b710b7231ccbb3c8b9375dab59aff746fec449/CompilationUnitEditorActionContributor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditorActionContributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20669, 6946, 12, 45, 6946, 1988, 1087, 13, 288, 9506, 202, 9565, 18, 542, 3896, 6946, 12, 2680, 1769, 9506, 202, 4861, 5583, 12, 2680, 1769, 9506, 202, 1285, 408, 6946, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20669, 6946, 12, 45, 6946, 1988, 1087, 13, 288, 9506, 202, 9565, 18, 542, 3896, 6946, 12, 2680, 1769, 9506, 202, 4861, 5583, 12, 2680, 1769, 9506, 202, 1285, 408, 6946, 9...
if (!item.isShowing() && tabFolder.getItemCount() > 1) { try {
if (isVisibleTabs()) { if (!item.isShowing() && tabFolder.getItemCount() > 1) { try {
public void selectPart(IPresentablePart toSelect) { if (toSelect == current) { return; } IPresentablePart oldPart = current; current = toSelect; if (current != null) { CTabItem item = getTab(toSelect); if (item != null) // If the item is not currently visible, move it // to the last visible position on the right if (!item.isShowing() && tabFolder.getItemCount() > 1) { try { activationListChange = false; // Save a list of the visible items in LRU order List lruList = getVisibleItemsLRUList(); int idx = getItemInsertionIndex(); // If we remove an item from the left // decrement the index by 1 if (item.getBounds().x < 0) idx--; removePart(toSelect); // pass the LRU list and insertion index // to addPart, as it was before the remove happened List cookie = new ArrayList(2); cookie.add(lruList); cookie.add(new Integer(idx)); addPart(toSelect, cookie); } finally { activationListChange = true; } } current = toSelect; tabFolder.setSelection(indexOf(current)); current.setVisible(true); setControlSize(); // update the newly selected item in the activation order if (activationListChange) { activationList.remove(toSelect); activationList.add(toSelect); } } if (oldPart != null) { oldPart.setVisible(false); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d8137b8380dc7968cdbdfecb8f238a7620d120a6/DefaultPartPresentation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/DefaultPartPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2579, 1581, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2579, 1581, 4...
private void generateMessages(OMFactory fac, OMElement definitions) { Hashtable namespaceMap = new Hashtable(); String namespacePrefix = null; String namespaceURI = null; QName messagePartType = null; for (int i = 0; i < method.length; i++) { JMethod jmethod = method[i]; // only if a type for the message part has already been defined if ((messagePartType = typeTable.getComplexSchemaType(jmethod .getSimpleName())) != null) { namespaceURI = messagePartType.getNamespaceURI(); // avoid duplicate namespaces if ((namespacePrefix = (String) namespaceMap.get(namespaceURI)) == null) { namespacePrefix = generatePrefix(); namespaceMap.put(namespaceURI, namespacePrefix); } //Request Message OMElement requestMessge = fac.createOMElement( MESSAGE_LOCAL_NAME, wsdl); requestMessge.addAttribute(ATTRIBUTE_NAME, jmethod .getSimpleName() + MESSAGE_SUFFIX, null); definitions.addChild(requestMessge); OMElement requestPart = fac.createOMElement( PART_ATTRIBUTE_NAME, wsdl); requestMessge.addChild(requestPart); requestPart.addAttribute(ATTRIBUTE_NAME, "part1", null); requestPart.addAttribute(ELEMENT_ATTRIBUTE_NAME, namespacePrefix + COLON_SEPARATOR + jmethod.getSimpleName(), null); } // only if a type for the message part has already been defined if ((messagePartType = typeTable.getComplexSchemaType(jmethod .getSimpleName() + RESPONSE)) != null) { namespaceURI = messagePartType.getNamespaceURI(); if ((namespacePrefix = (String) namespaceMap.get(namespaceURI)) == null) { namespacePrefix = generatePrefix(); namespaceMap.put(namespaceURI, namespacePrefix); } //Response Message OMElement responseMessge = fac.createOMElement( MESSAGE_LOCAL_NAME, wsdl); responseMessge.addAttribute(ATTRIBUTE_NAME, jmethod .getSimpleName() + RESPONSE_MESSAGE, null); definitions.addChild(responseMessge); OMElement responsePart = fac.createOMElement( PART_ATTRIBUTE_NAME, wsdl); responseMessge.addChild(responsePart); responsePart.addAttribute(ATTRIBUTE_NAME, "part1", null); responsePart.addAttribute(ELEMENT_ATTRIBUTE_NAME, namespacePrefix + COLON_SEPARATOR + jmethod.getSimpleName() + RESPONSE, null); } } // now add these unique namespaces to the the definitions element Enumeration enumeration = namespaceMap.keys(); while (enumeration.hasMoreElements()) { namespaceURI = (String) enumeration.nextElement(); definitions.declareNamespace(namespaceURI, (String) namespaceMap .get(namespaceURI)); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/d2c5bfbbb921fb57eb8abe841587f2609e334256/Java2OMBuilder.java/clean/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2OMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5058, 12, 1872, 1733, 5853, 16, 531, 12310, 6377, 13, 288, 3639, 18559, 1981, 863, 273, 394, 18559, 5621, 3639, 514, 1981, 2244, 273, 446, 31, 3639, 514, 19421, 273, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 5058, 12, 1872, 1733, 5853, 16, 531, 12310, 6377, 13, 288, 3639, 18559, 1981, 863, 273, 394, 18559, 5621, 3639, 514, 1981, 2244, 273, 446, 31, 3639, 514, 19421, 273, 446,...
} infos.add(info);
} else infos.add(info);
private List getStylesheets() { List infos = new LinkedList(); long st = System.currentTimeMillis(); String uri = _nsh.getNamespace(); StylesheetInfo info = new StylesheetInfo(); info.setUri(_nsh.getNamespace()); info.setOrigin(StylesheetInfo.USER_AGENT); info.setMedia("all"); info.setType("text/css"); if (!_stylesheetFactory.containsStylesheet(uri)) { java.io.InputStream stream = _nsh.getDefaultStylesheet(); if (stream != null) { Stylesheet sheet = _stylesheetFactory.parse(stream, info); _stylesheetFactory.putStylesheet(uri, sheet); } } infos.add(info); StylesheetInfo[] refs = _nsh.getStylesheetLinks(_doc); if (refs != null) { for (int i = 0; i < refs.length; i++) { uri = _uac.resolveURI(refs[i].getUri()); refs[i].setUri(uri); } } infos.addAll(Arrays.asList(refs)); uri = _uac.getBaseURL(); info = new StylesheetInfo(); info.setUri(uri); info.setOrigin(StylesheetInfo.AUTHOR); Stylesheet sheet = null; if (_stylesheetFactory.containsStylesheet(uri)) { sheet = _stylesheetFactory.getCachedStylesheet(uri); } else { InlineStyleInfo[] inlineStyle = _nsh.getInlineStyle(_doc); sheet = _stylesheetFactory.parseInlines(inlineStyle, info); _stylesheetFactory.putStylesheet(uri, sheet); } info.setStylesheet(sheet);//add it here because matcher cannot look it up, uri:s are in a twist infos.add(info); // TODO: here we should also get user stylesheet from userAgent long el = System.currentTimeMillis() - st; XRLog.load("TIME: parse stylesheets " + el + "ms"); return infos; }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/7f7005e11a31afbcc86d2565f1b178ee8a5fe6fa/StyleReference.java/buggy/src/java/org/xhtmlrenderer/context/StyleReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 336, 9725, 10245, 1435, 288, 3639, 987, 10626, 273, 394, 10688, 5621, 3639, 1525, 384, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 2003, 273, 389, 82, 674, 18, 588, 3402, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 336, 9725, 10245, 1435, 288, 3639, 987, 10626, 273, 394, 10688, 5621, 3639, 1525, 384, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 2003, 273, 389, 82, 674, 18, 588, 3402, 5621...
public abstract Dimension preferredSize(int len);
Dimension preferredSize(int len);
public abstract Dimension preferredSize(int len);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TextFieldPeer.java/clean/core/src/classpath/java/java/awt/peer/TextFieldPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8770, 13037, 9119, 1225, 12, 474, 562, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8770, 13037, 9119, 1225, 12, 474, 562, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
m_displayRules = true;
m_displayRules = false;
protected void resetOptions() { m_entries = null; m_decisionFeatures = null; m_debug = false; m_useIBk = false; m_CVFolds = 1; m_maxStale = 5; m_displayRules = true; }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/9e72041e2204a61830b9cccfa8173a6ed2c39eb5/DecisionTable.java/buggy/weka/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2715, 1320, 1435, 282, 288, 565, 312, 67, 8219, 273, 446, 31, 565, 312, 67, 4924, 1951, 8696, 273, 446, 31, 3639, 312, 67, 4148, 273, 629, 31, 3639, 312, 67, 1202, 13450, 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, 282, 4750, 918, 2715, 1320, 1435, 282, 288, 565, 312, 67, 8219, 273, 446, 31, 565, 312, 67, 4924, 1951, 8696, 273, 446, 31, 3639, 312, 67, 4148, 273, 629, 31, 3639, 312, 67, 1202, 13450, 7...
"Exception thrown by '" + e.getReferenceName() + "." +
"Exception thrown by '" + e.getReferenceName() + "." +
public void execute () throws BuildException { // Make sure the template path is set. if (templatePath == null && useClasspath == false) { throw new BuildException( "The template path needs to be defined if you are not using " + "the classpath for locating templates!"); } // Make sure the control template is set. if (controlTemplate == null) { throw new BuildException("The control template needs to be defined!"); } // Make sure the output directory is set. if (outputDirectory == null) { throw new BuildException("The output directory needs to be defined!"); } // Make sure there is an output file. if (outputFile == null) { throw new BuildException("The output file needs to be defined!"); } VelocityEngine ve = new VelocityEngine(); try { // Setup the Velocity Runtime. if (templatePath != null) { log("Using templatePath: " + templatePath, project.MSG_VERBOSE); ve.setProperty( ve.FILE_RESOURCE_LOADER_PATH, templatePath); } if (useClasspath) { log("Using classpath"); ve.addProperty( VelocityEngine.RESOURCE_LOADER, "classpath"); ve.setProperty( "classpath." + VelocityEngine.RESOURCE_LOADER + ".class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); ve.setProperty( "classpath." + VelocityEngine.RESOURCE_LOADER + ".cache", useResourceLoaderCache); ve.setProperty( "classpath." + VelocityEngine.RESOURCE_LOADER + ".modificationCheckInterval", resourceLoaderModificationCheckInterval); } ve.init(); // Create the text generator. Generator generator = Generator.getInstance(); generator.setVelocityEngine(ve); generator.setOutputPath(outputDirectory); generator.setInputEncoding(inputEncoding); generator.setOutputEncoding(outputEncoding); if (templatePath != null) { generator.setTemplatePath(templatePath); } // Make sure the output directory exists, if it doesn't // then create it. File file = new File(outputDirectory); if (! file.exists()) { file.mkdirs(); } String path = outputDirectory + File.separator + outputFile; log("Generating to file " + path, project.MSG_INFO); Writer writer = generator.getWriter(path, outputEncoding); // The generator and the output path should // be placed in the init context here and // not in the generator class itself. Context c = initControlContext(); // Everything in the generator class should be // pulled out and placed in here. What the generator // class does can probably be added to the Velocity // class and the generator class can probably // be removed all together. populateInitialContext(c); // Feed all the options into the initial // control context so they are available // in the control/worker templates. if (contextProperties != null) { Iterator i = contextProperties.getKeys(); while (i.hasNext()) { String property = (String) i.next(); String value = contextProperties.getString(property); // Now lets quickly check to see if what // we have is numeric and try to put it // into the context as an Integer. try { c.put(property, new Integer(value)); } catch (NumberFormatException nfe) { // Now we will try to place the value into // the context as a boolean value if it // maps to a valid boolean value. String booleanString = contextProperties.testBoolean(value); if (booleanString != null) { c.put(property, new Boolean(booleanString)); } else { // We are going to do something special // for properties that have a "file.contents" // suffix: for these properties will pull // in the contents of the file and make // them available in the context. So for // a line like the following in a properties file: // // license.file.contents = license.txt // // We will pull in the contents of license.txt // and make it available in the context as // $license. This should make texen a little // more flexible. if (property.endsWith("file.contents")) { // We need to turn the license file from relative to // absolute, and let Ant help :) value = StringUtils.fileContentsToString( project.resolveFile(value).getCanonicalPath()); property = property.substring( 0, property.indexOf("file.contents") - 1); } c.put(property, value); } } } } writer.write(generator.parse(controlTemplate, c)); writer.flush(); writer.close(); generator.shutdown(); cleanup(); } catch( BuildException e) { throw e; } catch( MethodInvocationException e ) { throw new BuildException( "Exception thrown by '" + e.getReferenceName() + "." + e.getMethodName() +"'" + ERR_MSG_FRAGMENT, e.getWrappedThrowable()); } catch( ParseErrorException e ) { throw new BuildException("Velocity syntax error" + ERR_MSG_FRAGMENT ,e); } catch( ResourceNotFoundException e ) { throw new BuildException("Resource not found" + ERR_MSG_FRAGMENT,e); } catch( Exception e ) { throw new BuildException("Generation failed" + ERR_MSG_FRAGMENT ,e); } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/TexenTask.java/clean/src/java/org/apache/velocity/texen/ant/TexenTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1832, 3639, 1216, 18463, 565, 288, 3639, 368, 4344, 3071, 326, 1542, 589, 353, 444, 18, 3639, 309, 261, 3202, 743, 422, 446, 597, 999, 17461, 422, 629, 13, 3639, 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, 918, 1836, 1832, 3639, 1216, 18463, 565, 288, 3639, 368, 4344, 3071, 326, 1542, 589, 353, 444, 18, 3639, 309, 261, 3202, 743, 422, 446, 597, 999, 17461, 422, 629, 13, 3639, 288, 5...
this.e = e; }
this.e = e; }
public ChannelLoader(ListSelectionEvent e) { this.e = e; }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/6f6ff640e68e51000e8536aaabf379b661b82471/ChannelChooser.java/buggy/src/edu/sc/seis/fissuresUtil/chooser/ChannelChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5307, 2886, 12, 682, 6233, 1133, 425, 13, 288, 202, 565, 333, 18, 73, 273, 425, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 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, 5307, 2886, 12, 682, 6233, 1133, 425, 13, 288, 202, 565, 333, 18, 73, 273, 425, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
throw getRuntime().newErrnoENOENTError(" No such file or directory - \"" + filename.getValue() + "\"");
throw getRuntime().newErrnoENOENTError(" No such file or directory - \"" + filename + "\"");
public IRubyObject unlink(IRubyObject[] args) { for (int i = 0; i < args.length; i++) { RubyString filename = RubyString.stringValue(args[i]); filename.checkSafeString(); NormalizedFile lToDelete = new NormalizedFile(filename.getValue()); if (!lToDelete.exists()) { throw getRuntime().newErrnoENOENTError(" No such file or directory - \"" + filename.getValue() + "\""); } if (!lToDelete.delete()) { return getRuntime().getFalse(); } } return getRuntime().newFixnum(args.length); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 8255, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 540, 202, 54, 10340, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 8255, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 540, 202, 54, 10340, 780, ...
if (m_Seed > 0) { getInputFormat().randomize(new Random(m_Seed));
Instances instances; if (!m_FirstBatchDone) { if (m_Seed > 0) { getInputFormat().randomize(new Random(m_Seed)); } if (!m_Inverse) { instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1); } else { instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1); }
public boolean batchFinished() { if (getInputFormat() == null) { throw new IllegalStateException("No input instance format defined"); } if (m_Seed > 0) { // User has provided a random number seed. getInputFormat().randomize(new Random(m_Seed)); } // Push instances for output into output queue // Select out a fold Instances instances; if (!m_Inverse) { instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1); } else { instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1); } for (int i = 0; i < instances.numInstances(); i++) { push(instances.instance(i)); } m_NewBatch = true; return (numPendingOutput() != 0); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/c954e3a4846a4911dcd7fd936124787d7728eb56/RemoveFolds.java/buggy/branches/book2ndEd-branch/weka/filters/unsupervised/instance/RemoveFolds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2581, 10577, 1435, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2581, 10577, 1435, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67...
xmlTemplateDocument.setData("OWNER", Utils.getFullName(cms.readOwner(file))); xmlTemplateDocument.setData("GROUP", cms.readGroup(file).getName());
xmlTemplateDocument.setData("OWNER", "" /* Utils.getFullName(cms.readOwner(file)) */ ); xmlTemplateDocument.setData("GROUP", "" /* cms.readGroup(file).getName() */);
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { CmsRequestContext requestContext = cms.getRequestContext(); I_CmsSession session = requestContext.getSession(true); // the template to be displayed String template = null; // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_PARA_FILE); session.removeValue("lasturl"); } // get the lasturl parameter String lasturl = getLastUrl(cms, parameters); String newtype = (String)parameters.get(C_PARA_NEWTYPE); // get the filename String filename = (String)parameters.get(C_PARA_FILE); if(filename != null) { session.putValue(C_PARA_FILE, filename); } filename = (String)session.getValue(C_PARA_FILE); CmsFile file = (CmsFile)cms.readFileHeader(filename); // check if the newtype parameter is available. This parameter is set when // the new file type is selected if(newtype != null) { // get the new resource type I_CmsResourceType type = cms.getResourceType(newtype); cms.chtype(cms.readAbsolutePath(file), type.getResourceTypeName()); session.removeValue(C_PARA_FILE); // return to filelist try { if(lasturl == null || "".equals(lasturl)) { requestContext.getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(cms)); } else { requestContext.getResponse().sendRedirect(lasturl); } } catch(Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(cms), CmsException.C_UNKNOWN_EXCEPTION, e); } return null; } CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); // set all required datablocks xmlTemplateDocument.setData("OWNER", Utils.getFullName(cms.readOwner(file))); xmlTemplateDocument.setData("GROUP", cms.readGroup(file).getName()); xmlTemplateDocument.setData("FILENAME", file.getName()); getResources(cms, null, null, null, null, null); if(m_names != null) { xmlTemplateDocument.setData(C_RADIOSIZE, new Integer(m_names.size()).toString()); } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/b578cd7fdb67e88db69ff83766c892199ea7498f/CmsChtype.java/clean/src/com/opencms/workplace/CmsChtype.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 377, 1216, 11228, 288, 202, 202, 4747, 21426, 20820, 273, 6166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 377, 1216, 11228, 288, 202, 202, 4747, 21426, 20820, 273, 6166...
this.localFs = FileSystem.getNamed("local", job);
this.localFs = FileSystem.getLocal(job);
public MapOutputBuffer(TaskUmbilicalProtocol umbilical, JobConf job, Reporter reporter) throws IOException { this.partitions = job.getNumReduceTasks(); this.partitioner = (Partitioner)ReflectionUtils.newInstance( job.getPartitionerClass(), job); maxBufferSize = job.getInt("io.sort.mb", 100) * 1024 * 1024; keyValBuffer = new DataOutputBuffer(); this.umbilical = umbilical; this.job = job; this.reporter = reporter; this.comparator = job.getOutputKeyComparator(); this.keyClass = job.getMapOutputKeyClass(); this.valClass = job.getMapOutputValueClass(); this.localFs = FileSystem.getNamed("local", job); this.codec = null; this.compressionType = CompressionType.NONE; if (job.getCompressMapOutput()) { // find the kind of compression to do, defaulting to record compressionType = job.getMapOutputCompressionType(); // find the right codec Class codecClass = job.getMapOutputCompressorClass(DefaultCodec.class); codec = (CompressionCodec) ReflectionUtils.newInstance(codecClass, job); } sortImpl = new BufferSorter[partitions]; for (int i = 0; i < partitions; i++) sortImpl[i] = (BufferSorter)ReflectionUtils.newInstance( job.getClass("map.sort.class", MergeSorter.class, BufferSorter.class), job); }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/ed2da6b550c672b8d6867b05791a98214d3f9c30/MapTask.java/buggy/src/java/org/apache/hadoop/mapred/MapTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 1447, 1892, 12, 2174, 57, 1627, 330, 1706, 5752, 225, 3592, 330, 1706, 16, 3956, 3976, 1719, 16, 2398, 25585, 11528, 13, 1216, 1860, 288, 1377, 333, 18, 21275, 273, 1719, 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, 1635, 1447, 1892, 12, 2174, 57, 1627, 330, 1706, 5752, 225, 3592, 330, 1706, 16, 3956, 3976, 1719, 16, 2398, 25585, 11528, 13, 1216, 1860, 288, 1377, 333, 18, 21275, 273, 1719, 18, ...
try { out1.write(out0.toCharArray());
try { String contents = out0.toString(); out1.write(contents.toCharArray()); try { totalLength += getContentLength(contents); } catch (UnsupportedEncodingException e) { LOG.error("Encoding error getting content length: " + e.getMessage(),e ); }
public synchronized void flush() { if (trouble) return; super.flush(); if (out1 == null) { try { out1 = response.getWriter(); } catch (IOException e) { LOG.debug("I/O excepton flushing output in GSP response writer: " + e.getMessage(),e ); trouble = true; return; } } try { out1.write(out0.toCharArray()); out0.reset(); } catch (IOException e) { LOG.debug("I/O excepton flushing output in GSP response writer: " + e.getMessage(),e ); trouble = true; } } // flush()
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/689ddb3a9c7caa919bf562e125e8017895bbce7c/GSPResonseWriter.java/clean/src/web/org/codehaus/groovy/grails/web/pages/GSPResonseWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 3663, 1435, 288, 202, 202, 430, 261, 88, 303, 1255, 13, 327, 31, 202, 202, 9565, 18, 11330, 5621, 202, 202, 430, 261, 659, 21, 422, 446, 13, 288, 1082, 202, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 3663, 1435, 288, 202, 202, 430, 261, 88, 303, 1255, 13, 327, 31, 202, 202, 9565, 18, 11330, 5621, 202, 202, 430, 261, 659, 21, 422, 446, 13, 288, 1082, 202, 698, ...
if( !(o instanceof TemplateGroupDomainObject) )
} if ( !( o instanceof TemplateGroupDomainObject ) ) {
public boolean equals( Object o ) { if( this == o ) return true; if( !(o instanceof TemplateGroupDomainObject) ) return false; final TemplateGroupDomainObject templateGroupDomainObject = (TemplateGroupDomainObject)o; if( id != templateGroupDomainObject.id ) return false; if( name != null ? !name.equals( templateGroupDomainObject.name ) : templateGroupDomainObject.name != null ) return false; return true; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/76c0ba5de4379ef58e3ca7c07d3c43fd8eb98bec/TemplateGroupDomainObject.java/clean/server/src/imcode/server/document/TemplateGroupDomainObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 1033, 320, 262, 288, 3639, 309, 12, 333, 422, 320, 262, 5411, 327, 638, 31, 3639, 289, 309, 261, 401, 12, 320, 1276, 5035, 1114, 3748, 921, 262, 262, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 1033, 320, 262, 288, 3639, 309, 12, 333, 422, 320, 262, 5411, 327, 638, 31, 3639, 289, 309, 261, 401, 12, 320, 1276, 5035, 1114, 3748, 921, 262, 262, 288, 5411, ...
deassignButton.setIcon(shape.getIcon());
shapeIcon.setIcon(shape.getIcon());
public void update (Selection selection, SelectionHint hint) { Object entity = selection.getEntity(); if (logger.isFineEnabled()) { logger.info( "GlyphBoard " + selection.getTag() + " selfUpdating=" + selfUpdating + " : " + entity); } switch (selection.getTag()) { case VERTICAL_GLYPH : case HORIZONTAL_GLYPH : // Display Glyph parameters (while preventing circular updates) selfUpdating = true; Glyph glyph = (Glyph) entity; // Dump button and deassign button dump.setEnabled(glyph != null); deassignButton.setEnabled((glyph != null) && glyph.isKnown()); // Shape text and icon Shape shape = (glyph != null) ? glyph.getShape() : null; if (shape != null) { shapeField.setText(shape.toString()); deassignButton.setIcon(shape.getIcon()); } else { shapeField.setText(""); deassignButton.setIcon(null); } // Global Spinner if (globalSpinner != null) { if (glyph != null) { globalSpinner.setValue(glyph.getId()); } else { globalSpinner.setValue(NO_VALUE); } } // Known Spinner if (knownSpinner != null) { if (glyph != null) { knownSpinner.setValue( knownPredicate.check(glyph) ? glyph.getId() : NO_VALUE); } else { knownSpinner.setValue(NO_VALUE); } } selfUpdating = false; break; case GLYPH_SET : // Display count of glyphs in the glyph set List<Glyph> glyphs = (List<Glyph>) entity; // Compiler warning if ((glyphs != null) && (glyphs.size() > 0)) { count.setText(Integer.toString(glyphs.size())); } else { count.setText(""); } break; default : logger.severe("Unexpected selection event from " + selection); } }
37458 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37458/7d410a43df18a75561bdfc3365eaa71a438c434b/GlyphBoard.java/buggy/src/main/omr/glyph/ui/GlyphBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 261, 6233, 377, 4421, 16, 13491, 12977, 7002, 7380, 13, 565, 288, 3639, 1033, 1522, 273, 4421, 18, 588, 1943, 5621, 3639, 309, 261, 4901, 18, 291, 42, 558, 1526, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 261, 6233, 377, 4421, 16, 13491, 12977, 7002, 7380, 13, 565, 288, 3639, 1033, 1522, 273, 4421, 18, 588, 1943, 5621, 3639, 309, 261, 4901, 18, 291, 42, 558, 1526, 10756, ...
weapon.flags |= F_PROTOMECH;
weapon.flags |= F_PROTOMECH | F_MISSILE;
public static WeaponType createCLPROSRM4() { WeaponType weapon = new WeaponType(); weapon.name = "SRM 4"; weapon.setInternalName("CLSRM4"); weapon.heat = 0; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 4; weapon.ammoType = AmmoType.T_SRM; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 3; weapon.mediumRange = 6; weapon.longRange = 9; weapon.extremeRange = 12; weapon.tonnage = 1f; weapon.criticals = 0; weapon.bv = 39; weapon.flags |= F_PROTOMECH; return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/3de8871e6895277c40058c53708655401dda40bd/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 3373, 55, 8717, 24, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 55, 8717,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 3373, 55, 8717, 24, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 55, 8717,...
VM_Magic.setIntAtOffset(toObj, STATUS_OFFSET, availBitsWord);
VM_Magic.setWordAtOffset(toObj, STATUS_OFFSET, availBitsWord);
public static Object moveObject(VM_Address toAddress, Object fromObj, int numBytes, VM_Class type, int availBitsWord) throws VM_PragmaInline { int objectEndOffset; int hashState = HASH_STATE_UNHASHED; if (ADDRESS_BASED_HASHING) hashState = availBitsWord & HASH_STATE_MASK; if (hashState == HASH_STATE_UNHASHED) { objectEndOffset = -numBytes; } else { objectEndOffset = -numBytes + HASHCODE_BYTES; } VM_Address fromAddress = VM_Magic.objectAsAddress(fromObj).add(objectEndOffset); int copyBytes = numBytes; if (VM_AllocatorHeader.STEAL_NURSERY_SCALAR_GC_HEADER) copyBytes -= GC_HEADER_BYTES; VM_Memory.aligned32Copy(toAddress, fromAddress, copyBytes); Object toObj = VM_Magic.addressAsObject(toAddress.sub(objectEndOffset)); if (hashState == HASH_STATE_HASHED) { int hashCode = VM_Magic.objectAsAddress(fromObj).toInt() >>> LOG_BYTES_IN_ADDRESS; VM_Magic.setIntAtOffset(toObj, HASHCODE_SCALAR_OFFSET, hashCode); VM_Magic.setIntAtOffset(toObj, STATUS_OFFSET, availBitsWord | HASH_STATE_HASHED_AND_MOVED); if (VM_ObjectModel.HASH_STATS) VM_ObjectModel.hashTransition2++; } else { VM_Magic.setIntAtOffset(toObj, STATUS_OFFSET, availBitsWord); } return toObj; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e9199992b356786655ffe0ebed85eac89e929500/VM_JavaHeader.java/buggy/rvm/src/vm/objectModel/default/VM_JavaHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 3635, 921, 12, 7397, 67, 1887, 358, 1887, 16, 1033, 628, 2675, 16, 4766, 282, 509, 18633, 16, 8251, 67, 797, 618, 16, 4766, 282, 509, 15783, 6495, 3944, 13, 1216, 8251,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3635, 921, 12, 7397, 67, 1887, 358, 1887, 16, 1033, 628, 2675, 16, 4766, 282, 509, 18633, 16, 8251, 67, 797, 618, 16, 4766, 282, 509, 15783, 6495, 3944, 13, 1216, 8251,...
+ "not satisfied by " + permissions.getPermissionString() + " " + ((strongCheck) ? "(required all)" : "(required one)"));
+ "not satisfied by " + permissions.getPermissionString());
public Integer hasPermissions( CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, CmsResourceFilter filter, boolean strongCheck ) throws CmsException { // first check the filter if (filter != CmsResourceFilter.ALL) { // check if the resource is valid according to the current filter // if not, throw a CmsResourceNotFoundException if (!filter.isValid(context, resource)) { return PERM_FILTERED; } // modify the permission set, if the view permisisons must be validated if ((requiredPermissions.getPermissions() & I_CmsConstants.C_ACCESS_VISIBLE) > 0) { // the visible permissison is part of the permissions to check // so test if the current filter disables it if (!filter.includeVisiblePermission()) { requiredPermissions.setPermissions( requiredPermissions.getAllowedPermissions() | I_CmsConstants.C_ACCESS_VISIBLE, requiredPermissions.getDeniedPermissions()); } } } // checking the filter is less cost intensive then checking the cache, // this is why filter results are not cached String cacheKey = m_keyGenerator.getCacheKeyForUserPermissions(String.valueOf(strongCheck), context, resource, requiredPermissions); Integer cacheResult = (Integer)m_permissionCache.get(cacheKey); if (cacheResult != null) { return cacheResult; } int denied = 0; // if this is the onlineproject, write is rejected if (context.currentProject().isOnlineProject()) { denied |= I_CmsConstants.C_PERMISSION_WRITE; } // check if the current user is admin boolean isAdmin = isAdmin(context); // if the resource type is jsp or xml template // write is only allowed for administrators if (!isAdmin && ((resource.getType() == CmsResourceTypeXMLTemplate.C_RESOURCE_TYPE_ID) || (resource.getType() == CmsResourceTypeJsp.C_RESOURCE_TYPE_ID))) { denied |= I_CmsConstants.C_PERMISSION_WRITE; } // this means a resource MUST NOT be locked to a user, // everyone can write as long as the resource is not locked to someone else CmsLock lock = getLock(context, resource); if (!lock.isNullLock()) { // if the resource is locked by another user, write is rejected // read must still be possible, since the explorer file list needs some properties if (!context.currentUser().getId().equals(lock.getUserId())) { denied |= I_CmsConstants.C_PERMISSION_WRITE; } } CmsPermissionSet permissions; if (isAdmin) { // if the current user is administrator, anything is allowed permissions = new CmsPermissionSet(~0); } else { // otherwise, get the permissions from the access control list CmsAccessControlList acl = getAccessControlList(context, resource); permissions = acl.getPermissions(context.currentUser(), getGroupsOfUser(context, context.currentUser().getName())); } permissions.denyPermissions(denied); Integer result; if (strongCheck) { if ((requiredPermissions.getPermissions() & (permissions.getPermissions())) == requiredPermissions.getPermissions()) { result = PERM_ALLOWED; } else { result = PERM_DENIED; } } else { if ((requiredPermissions.getPermissions() & (permissions.getPermissions())) > 0) { result = PERM_ALLOWED; } else { result = PERM_DENIED; } } m_permissionCache.put(cacheKey, result); if ((result != PERM_ALLOWED) && OpenCms.getLog(this).isDebugEnabled()) { OpenCms.getLog(this).debug( "Access to resource " + resource.getRootPath() + " " + "not permitted for user " + context.currentUser().getName() + ", " + "required permissions " + requiredPermissions.getPermissionString() + " " + "not satisfied by " + permissions.getPermissionString() + " " + ((strongCheck) ? "(required all)" : "(required one)")); } return result; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/93407bb1fee28c23f97b5bfe9d6996911adfdd69/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2144, 711, 6521, 12, 3639, 2149, 21426, 819, 16, 540, 7630, 1058, 16, 540, 2149, 5041, 694, 1931, 6521, 16, 540, 21082, 1034, 16, 540, 1250, 11773, 1564, 565, 262, 1216, 11228, 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, 2144, 711, 6521, 12, 3639, 2149, 21426, 819, 16, 540, 7630, 1058, 16, 540, 2149, 5041, 694, 1931, 6521, 16, 540, 21082, 1034, 16, 540, 1250, 11773, 1564, 565, 262, 1216, 11228, 288,...
private AbstractFormatterFactory getAppropriateFormatterFactory (Format format)
private AbstractFormatterFactory getAppropriateFormatterFactory(Format format)
private AbstractFormatterFactory getAppropriateFormatterFactory (Format format) { AbstractFormatter newFormatter; if (format instanceof DateFormat) newFormatter = new DateFormatter((DateFormat)format); else if (format instanceof NumberFormat) newFormatter = new NumberFormatter ((NumberFormat)format); else newFormatter = new InternationalFormatter(format); return new DefaultFormatterFactory(newFormatter); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 4115, 5074, 1733, 336, 1294, 5986, 566, 340, 5074, 1733, 12, 1630, 740, 13, 225, 288, 565, 4115, 5074, 394, 5074, 31, 565, 309, 261, 2139, 1276, 18371, 13, 1377, 394, 5074, 273, 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, 4115, 5074, 1733, 336, 1294, 5986, 566, 340, 5074, 1733, 12, 1630, 740, 13, 225, 288, 565, 4115, 5074, 394, 5074, 31, 565, 309, 261, 2139, 1276, 18371, 13, 1377, 394, 5074, 273, 3...
public int addText(char odata[], int start, int end, LinkSet ls) {
public int addText(char odata[], int start, int end, LinkSet ls, boolean ul) {
public int addText(char odata[], int start, int end, LinkSet ls) { boolean overrun = false; wordStart = start; wordLength = 0; wordWidth = 0; char[] data = new char[odata.length]; for(int count=0;count <odata.length; count++) { data[count] = odata[count]; } /* iterate over each character */ for (int i = start; i < end; i++) { int charWidth; /* get the character */ char c = data[i]; if (c > 127) { /* this class shouldn't be hard coded */ char d = org.apache.fop.render.pdf.CodePointMapping.map[c]; if (d != 0) { c = data[i] = d; } else { MessageHandler.error("ch" + (int)c + "?"); c = data[i] = '#'; } } charWidth = currentFontState.width(c); if ((c == ' ') || (c == '\n') || (c == '\r') || (c == '\t')) { // whitespace if (prev == WHITESPACE) { // if current & previous are WHITESPACE if (this.whiteSpaceTreatment == WhiteSpaceTreatment.PRESERVE) { if (c == ' ') { spaceWidth += currentFontState.width(32); } else if (c == '\n') { // force line break return i; } else if (c == '\t') { spaceWidth += 8 * currentFontState.width(32); } } // else ignore it } else if (prev == TEXT) { // if current is WHITESPACE and previous TEXT // the current word made it, so // add the space before the current word (if there // was some) if (spaceWidth > 0) { addChild(new InlineSpace(spaceWidth)); finalWidth += spaceWidth; spaceWidth = 0; } // add any pending areas Enumeration e = pendingAreas.elements(); while (e.hasMoreElements()) { InlineArea inlineArea = (InlineArea) e.nextElement(); if (ls != null) { Rectangle lr = new Rectangle(finalWidth, 0, inlineArea.getContentWidth(), fontState.getFontSize()); ls.addRect(lr, this); } addChild(inlineArea); } finalWidth += pendingWidth; // reset pending areas array pendingWidth = 0; pendingAreas = new Vector(); // add the current word if (wordLength > 0) { InlineArea ia = new InlineArea(currentFontState, this.red, this.green, this.blue, new String(data, wordStart, wordLength), wordWidth); addChild(ia); if (ls != null) { Rectangle lr = new Rectangle(finalWidth, 0, ia.getContentWidth(), fontState.getFontSize()); ls.addRect(lr, this); } finalWidth += wordWidth; // reset word width wordWidth = 0; } // deal with this new whitespace following the // word we just added prev = WHITESPACE; embeddedLinkStart=0; //reset embeddedLinkStart since a space was encountered if (this.whiteSpaceTreatment == WhiteSpaceTreatment.IGNORE) { // do nothing } else { spaceWidth = currentFontState.width(32); } if (this.whiteSpaceTreatment == WhiteSpaceTreatment.PRESERVE) { if (c == '\n') { // force a line break return i; } else if (c == '\t') { spaceWidth = currentFontState.width(32); } } } else { // if current is WHITESPACE and no previous if (this.whiteSpaceTreatment == WhiteSpaceTreatment.PRESERVE) { prev = WHITESPACE; spaceWidth = currentFontState.width(32); } else { // skip over it start++; } } } else { // current is TEXT if (prev == WHITESPACE) { // if current is TEXT and previous WHITESPACE wordWidth = charWidth; if ((finalWidth + spaceWidth + wordWidth) > this.getContentWidth()) { if (overrun) MessageHandler.error(">"); if (this.wrapOption == WrapOption.WRAP) return i; } prev = TEXT; wordStart = i; wordLength = 1; } else if (prev == TEXT) { wordLength++; wordWidth += charWidth; } else { // nothing previous prev = TEXT; wordStart = i; wordLength = 1; wordWidth = charWidth; } if ((finalWidth + spaceWidth + pendingWidth + wordWidth) > this.getContentWidth()) { // BREAK MID WORD if (wordStart == start) { // if couldn't even fit // first word overrun = true; // if not at start of line, return word start // to try again on a new line if (finalWidth > 0) { return wordStart; } } else if (this.wrapOption == WrapOption.WRAP) { return wordStart; } } } } // end of iteration over text if (prev == TEXT) { InlineArea pia = new InlineArea(currentFontState, this.red, this.green, this.blue, new String(data, wordStart, wordLength), wordWidth); if (ls != null) { Rectangle lr = new Rectangle(finalWidth + spaceWidth + embeddedLinkStart, spaceWidth, pia.getContentWidth(), fontState.getFontSize()); ls.addRect(lr, this); } embeddedLinkStart += wordWidth; pendingAreas.addElement(pia); pendingWidth += wordWidth; wordWidth = 0; } if (overrun) MessageHandler.error(">"); return -1; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/537b16281cf7268e6b76ac1687ff2f365f51c184/LineArea.java/buggy/src/org/apache/fop/layout/LineArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 25796, 12, 3001, 320, 892, 63, 6487, 509, 787, 16, 509, 679, 16, 4048, 694, 7180, 13, 288, 202, 6494, 5713, 318, 273, 629, 31, 202, 1095, 1685, 273, 787, 31, 202, 1095, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 25796, 12, 3001, 320, 892, 63, 6487, 509, 787, 16, 509, 679, 16, 4048, 694, 7180, 13, 288, 202, 6494, 5713, 318, 273, 629, 31, 202, 1095, 1685, 273, 787, 31, 202, 1095, 178...
break; default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()});
public Node appendChild(Node newChild) throws DOMException { int type = ((ElemTemplateElement)newChild).getXSLToken(); switch(type) { // char-instructions case Constants.ELEMNAME_TEXTLITERALRESULT: case Constants.ELEMNAME_APPLY_TEMPLATES: case Constants.ELEMNAME_APPLY_IMPORTS: case Constants.ELEMNAME_CALLTEMPLATE: case Constants.ELEMNAME_FOREACH: case Constants.ELEMNAME_VALUEOF: case Constants.ELEMNAME_COPY_OF: case Constants.ELEMNAME_NUMBER: case Constants.ELEMNAME_CHOOSE: case Constants.ELEMNAME_IF: case Constants.ELEMNAME_TEXT: case Constants.ELEMNAME_COPY: case Constants.ELEMNAME_VARIABLE: case Constants.ELEMNAME_MESSAGE: // instructions // case Constants.ELEMNAME_PI: // case Constants.ELEMNAME_COMMENT: // case Constants.ELEMNAME_ELEMENT: // case Constants.ELEMNAME_ATTRIBUTE: break; default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()}); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemAttribute.java/buggy/src/org/apache/xalan/templates/ElemAttribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 9079, 5833, 12, 907, 19783, 13, 565, 1216, 4703, 503, 225, 288, 565, 509, 618, 273, 14015, 7498, 2283, 1046, 13, 2704, 1763, 2934, 588, 60, 4559, 1345, 5621, 565, 1620, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 9079, 5833, 12, 907, 19783, 13, 565, 1216, 4703, 503, 225, 288, 565, 509, 618, 273, 14015, 7498, 2283, 1046, 13, 2704, 1763, 2934, 588, 60, 4559, 1345, 5621, 565, 1620, 12, ...
for (int j=0;j<mlen;j++) { if (s.charAt(i)==m.charAt(j)) { if (j<tlen) { s.setCharAt(i,t.charAt(j)); } else { s.deleteCharAt(i--); slen--; } continue; }
char c = sv.charAt(i); int j = m.indexOf(c); if (j >= 0) { if (j>=tlen) continue; c = t.charAt(j);
public static Object translate (Object str, Object map, Object trans) { if (str == Values.empty || map == Values.empty || trans == Values.empty) return Values.empty; String m = map.toString(); int mlen = m.length(); if (mlen==0) return str.toString(); String t = trans.toString(); StringBuffer s = new StringBuffer(str.toString()); int slen = s.length(); int tlen = t.length(); for (int i=0;i < slen;i++) { for (int j=0;j<mlen;j++) { if (s.charAt(i)==m.charAt(j)) { if (j<tlen) { s.setCharAt(i,t.charAt(j)); } else { s.deleteCharAt(i--); slen--; } continue; } } } return s.toString(); }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/92d18dec25b6c6719796a034d502322bf830c93c/StringValue.java/buggy/gnu/xquery/util/StringValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 4204, 261, 921, 609, 16, 1033, 852, 16, 1033, 906, 13, 225, 288, 565, 309, 261, 701, 422, 6876, 18, 5531, 747, 852, 422, 6876, 18, 5531, 747, 906, 422, 6876, 18, 5531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 4204, 261, 921, 609, 16, 1033, 852, 16, 1033, 906, 13, 225, 288, 565, 309, 261, 701, 422, 6876, 18, 5531, 747, 852, 422, 6876, 18, 5531, 747, 906, 422, 6876, 18, 5531...
DocumentBuilderSetting[] newSettings)
DocumentBuilderSetting[] newSettings)
public DOMTestDocumentBuilderFactory newInstance( DocumentBuilderSetting[] newSettings) throws DOMTestIncompatibleException { if (newSettings == null) { return this; } DocumentBuilderSetting[] mergedSettings = mergeSettings(newSettings); return new BatikTestDocumentBuilderFactory(mergedSettings); }
55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/BatikTestDocumentBuilderFactory.java/clean/java/org/w3c/domts/BatikTestDocumentBuilderFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4703, 4709, 2519, 20692, 5984, 12, 3639, 4319, 1263, 5568, 8526, 394, 2628, 13, 3639, 1216, 4703, 4709, 24272, 503, 288, 3639, 309, 261, 2704, 2628, 422, 446, 13, 288, 5411, 327, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4703, 4709, 2519, 20692, 5984, 12, 3639, 4319, 1263, 5568, 8526, 394, 2628, 13, 3639, 1216, 4703, 4709, 24272, 503, 288, 3639, 309, 261, 2704, 2628, 422, 446, 13, 288, 5411, 327, 33...
if (uri!="") {
if (uri != "") {
public void startElement(String uri, String name, String raw, Attributes attr) throws SAXException { if (this.ignoreCount == 0) { if (uri!="") { super.startElement(uri, name, raw, attr); } else { switch (((Integer)elementNames.get(name,defaultElement)).intValue()) { case ELEMENT_INPUT: this.startInputElement(uri,name,raw,attr); break; case ELEMENT_SELECT: this.startSelectElement(uri,name,raw,attr); break; case ELEMENT_OPTION: this.startOptionElement(uri,name,raw,attr); break; case ELEMENT_TXTAREA: this.startTextareaElement(uri,name,raw,attr); break; case ELEMENT_ERROR: this.startErrorElement(uri,name,raw,attr); break; default: super.startElement(uri, name, raw, attr); } } } else { this.ignoreCount++; this.stack.push(name); if (((Integer)elementNames.get(name,defaultElement)).intValue()==ELEMENT_ERROR){ } } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f9b25cd4ef8d17125346aeffd54035a092e5ea1d/SimpleFormTransformer.java/clean/src/java/org/apache/cocoon/transformation/SimpleFormTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 2003, 16, 514, 508, 16, 514, 1831, 16, 9055, 1604, 13, 3639, 1216, 14366, 288, 3639, 309, 261, 2211, 18, 6185, 1380, 422, 374, 13, 288, 5411, 309, 261, 1650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 12, 780, 2003, 16, 514, 508, 16, 514, 1831, 16, 9055, 1604, 13, 3639, 1216, 14366, 288, 3639, 309, 261, 2211, 18, 6185, 1380, 422, 374, 13, 288, 5411, 309, 261, 1650, ...
super(jq_ClassFileConstants.jbc_FMUL); }
super(jq_ClassFileConstants.jbc_FMUL); }
public FMUL() { super(jq_ClassFileConstants.jbc_FMUL); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d7c792e0a316dd3ac20a9fe9f758abdde9bd79fe/Bytecodes.java/buggy/joeq_core/joeq/Compiler/BytecodeAnalysis/Bytecodes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 478, 49, 1506, 1435, 288, 5411, 2240, 12, 78, 85, 67, 797, 812, 2918, 18, 10649, 71, 67, 42, 49, 1506, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 478, 49, 1506, 1435, 288, 5411, 2240, 12, 78, 85, 67, 797, 812, 2918, 18, 10649, 71, 67, 42, 49, 1506, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void testGetMinimun() throws Exception { assertEquals(new CDateTime(2001, 4, 11), dsProcessor.getMinimum(ds1)); assertEquals(new Double(-43.0), dsProcessor.getMinimum(ds2));
public void testGetMinimun( ) throws Exception { assertEquals( new Double( -43.0 ), dsProcessor.getMinimum( ds2 ) );
public void testGetMinimun() throws Exception { assertEquals(new CDateTime(2001, 4, 11), dsProcessor.getMinimum(ds1)); assertEquals(new Double(-43.0), dsProcessor.getMinimum(ds2)); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fe41917b2706c3a4f1fd9b0efadf6d564184de0b/DataSetProcessorImplTest.java/clean/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/datafeed/DataSetProcessorImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 2930, 381, 318, 1435, 1216, 1185, 288, 9506, 202, 11231, 8867, 12, 2704, 385, 5096, 12, 6976, 21, 16, 1059, 16, 4648, 3631, 3780, 5164, 18, 588, 13042, 12, 237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 2930, 381, 318, 1435, 1216, 1185, 288, 9506, 202, 11231, 8867, 12, 2704, 385, 5096, 12, 6976, 21, 16, 1059, 16, 4648, 3631, 3780, 5164, 18, 588, 13042, 12, 237...
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); if (method.isUndefined()) { if (isModule()) { method = getRuntime().getClasses().getObjectClass().searchMethod(oldName); } if (method.isUndefined()) { throw new NameError(runtime, "undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + toName() + "'"); } } getMethods().put(name, new AliasMethod(method, oldName)); clearMethodCache(); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/319a529cc1666e267b662b895d6c0d0409a6a838/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 4930, 1305, 12, 780, 529, 16, 780, 1673, 461, 15329, 3813, 42, 9808, 5621, 430, 12, 1673, 461, 18, 14963, 12, 529, 3719, 95, 2463, 31, 97, 430, 12, 2211, 631, 588, 5576, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 4930, 1305, 12, 780, 529, 16, 780, 1673, 461, 15329, 3813, 42, 9808, 5621, 430, 12, 1673, 461, 18, 14963, 12, 529, 3719, 95, 2463, 31, 97, 430, 12, 2211, 631, 588, 5576, 7675, ...
copyToClipboard(tableTreeViewer.getSelection());
handleExport();
public void run() { copyToClipboard(tableTreeViewer.getSelection()); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/82674e955478776ae1394ec747ff424753d71996/LogView.java/buggy/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 3530, 774, 15339, 3752, 12, 2121, 2471, 18415, 18, 588, 6233, 10663, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 3530, 774, 15339, 3752, 12, 2121, 2471, 18415, 18, 588, 6233, 10663, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public void startDocument(XMLLocator locator, String encoding)
public void startDocument(XMLLocator locator, String encoding, Augmentations augs)
public void startDocument(XMLLocator locator, String encoding) throws XNIException;
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/XMLDocumentHandler.java/buggy/src/org/apache/xerces/xni/XMLDocumentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2519, 12, 4201, 5786, 8871, 16, 514, 2688, 16, 432, 14870, 1012, 279, 9024, 13, 540, 1216, 1139, 50, 45, 503, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2519, 12, 4201, 5786, 8871, 16, 514, 2688, 16, 432, 14870, 1012, 279, 9024, 13, 540, 1216, 1139, 50, 45, 503, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
private Expression parsePowExpr( Lexer lexer ) throws ParseException, IOException { Expression left = parseValExpr(lexer); for (;;) { Token token = lexer.nextToken(); switch (token.getType()) { case Token.POWER: left = factory.newPower( left, parsePowExpr(lexer) ); break; default: lexer.pushBack(token); return left; } } }
private Expression parsePowExpr( Lexer lexer ) throws ParseException, IOException { Expression left = parseValExpr(lexer); for (; ;) { Token token = lexer.nextToken(); switch (token.getType()) { case Token.POWER: left = factory.newPower(left, parsePowExpr(lexer)); break; default: lexer.pushBack(token); return left; } } }
private Expression parsePowExpr( Lexer lexer ) throws ParseException, IOException { Expression left = parseValExpr(lexer); for (;;) { Token token = lexer.nextToken(); switch (token.getType()) { case Token.POWER: left = factory.newPower( left, parsePowExpr(lexer) ); break; default: lexer.pushBack(token); return left; } } }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/InfixParser.java/clean/jmock/examples/calculator/src/org/jmock/examples/calculator/InfixParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5371, 1109, 28289, 4742, 12, 14234, 8512, 262, 540, 1216, 10616, 16, 1860, 377, 288, 3639, 5371, 2002, 273, 1109, 3053, 4742, 12, 31731, 1769, 7734, 364, 261, 25708, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5371, 1109, 28289, 4742, 12, 14234, 8512, 262, 540, 1216, 10616, 16, 1860, 377, 288, 3639, 5371, 2002, 273, 1109, 3053, 4742, 12, 31731, 1769, 7734, 364, 261, 25708, 13, 288, 5411, ...
if ((prebuf.length - prepos) < framesPerPacket*frameSize) { int nsz = prepos + framesPerPacket*frameSize; byte[] nbuf = new byte[nsz]; System.arraycopy(prebuf, 0, nbuf, 0, precount); prebuf = nbuf; }
protected void fill() throws IOException { makeSpace(); if (first) { writeHeaderFrame(); writeCommentFrame(); first = false; } while (true) { int n = in.read(prebuf, precount, prebuf.length - precount); if (n < 0) { // inputstream has ended if ((precount-prepos) % 2 != 0) { // we don't have a complete last PCM sample throw new StreamCorruptedException("Incompleted last PCM sample when stream ended"); } while (prepos < precount) { // still data to encode if ((precount - prepos) < framesPerPacket*frameSize) { // fill end of frame with zeros if ((prebuf.length - prepos) < framesPerPacket*frameSize) { // grow prebuf int nsz = prepos + framesPerPacket*frameSize; byte[] nbuf = new byte[nsz]; System.arraycopy(prebuf, 0, nbuf, 0, precount); prebuf = nbuf; } for (;precount < (prepos+framesPerPacket*frameSize); precount++) { prebuf[precount] = 0; } } if (packetCount == 0) { writeOggPageHeader(packetsPerOggPage, 0); } for (int i=0; i<framesPerPacket; i++) { encoder.processData(prebuf, prepos, frameSize); } prepos += framesPerPacket*frameSize; int size = encoder.getProcessedDataByteSize(); while ((buf.length - oggCount) < size) { // grow buffer int nsz = buf.length * 2; byte[] nbuf = new byte[nsz]; System.arraycopy(buf, 0, nbuf, 0, oggCount); buf = nbuf; } buf[count + 27 + packetCount] = (byte)(0xff & size); encoder.getProcessedData(buf, oggCount); oggCount += size; packetCount++; if (packetCount >= packetsPerOggPage) { writeOggPageChecksum(); return; } } if (packetCount > 0) { // we have less than the normal number of packets in this page. buf[count+5] = (byte)(0xff & 4); // set page header type to end of stream buf[count+26] = (byte)(0xff & packetCount); System.arraycopy(buf, count+27+packetsPerOggPage, buf, count+27+packetCount, oggCount-(count+27+packetsPerOggPage)); oggCount -= packetsPerOggPage-packetCount; writeOggPageChecksum(); } return; } else if (n > 0) { precount += n; if ((precount - prepos) >= framesPerPacket*frameSize) { // enough data to encode frame while ((precount - prepos) >= framesPerPacket*frameSize) { // lets encode all we can if (packetCount == 0) { writeOggPageHeader(packetsPerOggPage, 0); } for (int i=0; i<framesPerPacket; i++) { encoder.processData(prebuf, prepos, frameSize); } prepos += framesPerPacket*frameSize; int size = encoder.getProcessedDataByteSize(); while ((buf.length - oggCount) < size) { // grow buffer int nsz = buf.length * 2; byte[] nbuf = new byte[nsz]; System.arraycopy(buf, 0, nbuf, 0, oggCount); buf = nbuf; } buf[count + 27 + packetCount] = (byte)(0xff & size); encoder.getProcessedData(buf, oggCount); oggCount += size; packetCount++; if (packetCount >= packetsPerOggPage) { writeOggPageChecksum(); } } System.arraycopy(prebuf, prepos, prebuf, 0, precount-prepos); precount -= prepos; prepos = 0; if (packetCount >= packetsPerOggPage) { writeOggPageChecksum(); // we have encoded some data (all that we could), // so we can leave now, otherwise we return to a potentially // blocking read of the underlying inputstream. return; } } } else { // n == 0 // read 0 bytes from underlying stream yet it is not finished. if (precount >= prebuf.length) { // no more room in buffer if (prepos > 0) { // free some space System.arraycopy(prebuf, prepos, prebuf, 0, precount-prepos); precount -= prepos; prepos = 0; } else { // we could grow the pre-buffer but that risks in turn growing the // buffer which could lead sooner or later to an // OutOfMemoryException. return; } } else { return; } } } }
6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/29014ebefddf4a33731ad5097a84ce136594f80f/Pcm2SpeexAudioInputStream.java/clean/main/trunk/src/org/xiph/speex/spi/Pcm2SpeexAudioInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3636, 1435, 565, 1216, 1860, 225, 288, 565, 1221, 3819, 5621, 565, 309, 261, 3645, 13, 288, 1377, 1045, 1864, 3219, 5621, 1377, 1045, 4469, 3219, 5621, 1377, 1122, 273, 629, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3636, 1435, 565, 1216, 1860, 225, 288, 565, 1221, 3819, 5621, 565, 309, 261, 3645, 13, 288, 1377, 1045, 1864, 3219, 5621, 1377, 1045, 4469, 3219, 5621, 1377, 1122, 273, 629, 31...
String findByPrimarKeyQuery = "SELECT e FROM " + di.getBeanClass().getName() + " e WHERE ";
StringBuffer findByPrimarKeyQuery = new StringBuffer("SELECT e FROM " + di.getBeanClass().getName() + " e WHERE ");
public void init( Object id, HashMap registry, Properties properties ) throws org.openejb.OpenEJBException { containerID = id; deploymentRegistry = registry; this.props = properties; SafeToolkit toolkit = SafeToolkit.getToolkit( "CastorCMP11_EntityContainer" ); SafeProperties safeProps = toolkit.getSafeProperties( properties ); poolsize = safeProps.getPropertyAsInt(EnvProps.IM_POOL_SIZE, 100 ); Global_TX_Database = safeProps.getProperty(EnvProps.GLOBAL_TX_DATABASE); Local_TX_Database = safeProps.getProperty(EnvProps.LOCAL_TX_DATABASE); File gTxDb = null; File lTxDb = null; try { gTxDb = FileUtils.getBase(this.props).getFile( Global_TX_Database ); } catch ( Exception ignored ) { try { gTxDb = FileUtils.getHome(this.props).getFile(Global_TX_Database); } catch (Exception e) { throw new OpenEJBException("Cannot locate the " + EnvProps.GLOBAL_TX_DATABASE + " file. " + e.getMessage()); } } try { lTxDb = FileUtils.getBase(this.props).getFile( Local_TX_Database ); } catch ( Exception ignored ) { try { lTxDb = FileUtils.getHome(this.props).getFile(Local_TX_Database); } catch (Exception e) { throw new OpenEJBException("Cannot locate the " + EnvProps.LOCAL_TX_DATABASE + " file. " + e.getMessage()); } } /* * Castor JDO obtains a reference to the TransactionManager throught the InitialContext. * The new InitialContext will use the deployment's JNDI Context, which is normal inside * the container system, so we need to bind the TransactionManager to the deployment's name space * The biggest problem with this is that the bean itself may access the TransactionManager if it * knows the JNDI name, so we bind the TransactionManager into dynamically created transient name * space based every time the container starts. It nearly impossible for the bean to anticipate * and use the binding directly. It may be possible, however, to locate it using a Context listing method. */ String transactionManagerJndiName = "java:openejb/" + ( new java.rmi.dgc.VMID() ).toString().replace( ':', '_' ); /* * Because the Tyrex root (used by Castor) is different from the IntraVM root, * we have to bind the TxMgr under env in the IntraVM/comp * IntraVM/comp is bound under TyrexRoot/comp so beans can use java:comp indifferently. */ String transactionManagerJndiNameTyrex = "env/" + ( new java.rmi.dgc.VMID() ).toString().replace( ':', '_' ); /* * This container uses two different JDO objects. One whose transactions are managed by a tx manager * and which is not. The following code configures both. */ jdo_ForGlobalTransaction = new JDO(); // Assign the TransactionManager JNDI name to the dynamically generated JNDI name jdo_ForGlobalTransaction.setTransactionManager( "java:comp/" + transactionManagerJndiNameTyrex ); jdo_ForGlobalTransaction.setDatabasePooling( true ); jdo_ForGlobalTransaction.setConfiguration( gTxDb.getAbsolutePath() ); jdo_ForGlobalTransaction.setDatabaseName(EnvProps.GLOBAL_TX_DATABASE); jdo_ForGlobalTransaction.setCallbackInterceptor( this ); jdo_ForGlobalTransaction.setInstanceFactory( this ); jdo_ForGlobalTransaction.setLogInterceptor( new CMPLogger(EnvProps.GLOBAL_TX_DATABASE) ); // Make sure the DB is registered as a as synchronization object before the transaction begins. jdo_ForLocalTransaction = new JDO(); jdo_ForLocalTransaction.setConfiguration( lTxDb.getAbsolutePath() ); jdo_ForLocalTransaction.setDatabaseName(EnvProps.LOCAL_TX_DATABASE); jdo_ForLocalTransaction.setCallbackInterceptor( this ); jdo_ForLocalTransaction.setInstanceFactory( this ); jdo_ForLocalTransaction.setLogInterceptor( new CMPLogger(EnvProps.LOCAL_TX_DATABASE) ); /* * This block of code is necessary to avoid a chicken and egg problem. * The DeploymentInfo objects must have a reference to their container * during this assembly process, but the container is created after the * DeploymentInfo necessitating this loop to assign all deployment info * object's their containers. * * In addition the loop is leveraged for other oprations like creating * the method ready pool and the keyGenerator pool. */ org.openejb.DeploymentInfo[] deploys = this.deployments(); /* * the JndiTxReference will dynamically obtian a reference to the TransactionManger the first * time it used. The same Reference is shared by all deployments, which is not a problem. */ JndiTxReference txReference = new JndiTxReference(); for ( int x = 0; x < deploys.length; x++ ) { org.openejb.core.DeploymentInfo di = ( org.openejb.core.DeploymentInfo ) deploys[x]; di.setContainer( this ); // also added this line to create the Method Ready Pool for each deployment methodReadyPoolMap.put( di.getDeploymentID(), new LinkedListStack( poolsize / 2 ) ); KeyGenerator kg = null; try { kg = KeyGeneratorFactory.createKeyGenerator( di ); di.setKeyGenerator( kg ); } catch ( Exception e ) { logger.error( "Unable to create KeyGenerator for deployment id = " + di.getDeploymentID(), e ); throw new org.openejb.SystemException( "Unable to create KeyGenerator for deployment id = " + di.getDeploymentID(), e ); } // bind the TransactionManager to the dynamically generated JNDI name try { di.getJndiEnc().bind( transactionManagerJndiName, txReference ); jdo_ForGlobalTransaction.setTransactionManager( transactionManagerJndiName ); } catch ( Exception e ) { logger.error( "Unable to bind TransactionManager to deployment id = " + di.getDeploymentID() + " using JNDI name = \"" + transactionManagerJndiName + "\"", e ); throw new org.openejb.SystemException( "Unable to bind TransactionManager to deployment id = " + di.getDeploymentID() + " using JNDI name = \"" + transactionManagerJndiName + "\"", e ); } try { /** * The following code adds a findByPrimaryKey query-statement to the list of queries * held by the deployment descriptor. The container is required to generate this query * automatically, which is what this code does. */ String findByPrimarKeyQuery = "SELECT e FROM " + di.getBeanClass().getName() + " e WHERE "; if ( kg.isKeyComplex() ) { Field[] pkFields = di.getPrimaryKeyClass().getFields(); for ( int i = 1; i <= pkFields.length; i++ ) { findByPrimarKeyQuery += "e." + pkFields[i - 1].getName() + " = $" + i; if ( ( i + 1 ) <= pkFields.length ) findByPrimarKeyQuery += " AND "; } } else { findByPrimarKeyQuery += "e." + di.getPrimaryKeyField().getName() + " = $1"; } Method findByPrimaryKeyMethod = di.getHomeInterface().getMethod( "findByPrimaryKey", new Class[]{di.getPrimaryKeyClass()} ); di.addQuery( findByPrimaryKeyMethod, findByPrimarKeyQuery ); } catch ( Exception e ) { throw new org.openejb.SystemException( "Could not generate a query statement for the findByPrimaryKey method of the deployment = " + di.getDeploymentID(), e ); } } resetMap = new HashMap(); resetMap.put( byte.class, new Byte( ( byte ) 0 ) ); resetMap.put( boolean.class, new Boolean( false ) ); resetMap.put( char.class, new Character( ( char ) 0 ) ); resetMap.put( short.class, new Short( ( short ) 0 ) ); resetMap.put( int.class, new Integer( 0 ) ); resetMap.put( long.class, new Long( 0 ) ); resetMap.put( float.class, new Float( 0 ) ); resetMap.put( double.class, new Double( 0.0 ) ); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/4f52760bc3704be4f698b6ed3a2b5ae33ca1fa83/CastorCMP11_EntityContainer.java/clean/openejb1/modules/core/src/java/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 1033, 612, 16, 4317, 4023, 16, 6183, 1790, 262, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 288, 3639, 24257, 273, 612, 31, 3639, 6314, 4243, 273, 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, 918, 1208, 12, 1033, 612, 16, 4317, 4023, 16, 6183, 1790, 262, 565, 1216, 2358, 18, 3190, 73, 10649, 18, 3678, 22719, 503, 288, 3639, 24257, 273, 612, 31, 3639, 6314, 4243, 273, 4...
config = null; config = new MuleConfiguration(); instance = null;
public synchronized void dispose() { if (disposed.get()) { return; } try { if (started.get()) { stop(); } } catch (UMOException e) { logger.error("Failed to stop manager: " + e.getMessage(), e); } disposed.set(true); disposeConnectors(); if (model != null) { model.dispose(); } disposeAgents(); transformers.clear(); endpoints.clear(); endpointIdentifiers.clear(); containerContext.dispose(); containerContext = null; // props.clear(); fireSystemEvent(new ManagerEvent(this, ManagerEvent.MANAGER_DISPOSED)); transformers = null; endpoints = null; endpointIdentifiers = null; // props = null; initialised.set(false); if (eventManager != null) { eventManager.dispose(); } if (workManager != null) { workManager.dispose(); } config = null; config = new MuleConfiguration(); instance = null; if(!config.isEmbedded()) { if (logger.isInfoEnabled()) { logger.info(getEndSplash()); } else { System.out.println(getEndSplash()); } } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/52017c1e601c5799605acbc0ccb383996a153288/MuleManager.java/clean/mule/src/java/org/mule/MuleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 15825, 1435, 565, 288, 3639, 309, 261, 2251, 7423, 18, 588, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 309, 261, 14561, 18, 588, 10756, 288, 7734, 2132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 1435, 565, 288, 3639, 309, 261, 2251, 7423, 18, 588, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 309, 261, 14561, 18, 588, 10756, 288, 7734, 2132, ...
setDataPoint((DataPoint)null);
setDataPoint((DataPoint) null);
public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.SCATTER_SERIES__VISIBLE: unsetVisible(); return; case TypePackage.SCATTER_SERIES__LABEL: setLabel((Label)null); return; case TypePackage.SCATTER_SERIES__DATA_DEFINITION: getDataDefinition().clear(); return; case TypePackage.SCATTER_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier(SERIES_IDENTIFIER_EDEFAULT); return; case TypePackage.SCATTER_SERIES__DATA_POINT: setDataPoint((DataPoint)null); return; case TypePackage.SCATTER_SERIES__DATA_SET: setDataSet((DataSet)null); return; case TypePackage.SCATTER_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)null); return; case TypePackage.SCATTER_SERIES__LABEL_POSITION: unsetLabelPosition(); return; case TypePackage.SCATTER_SERIES__STACKED: unsetStacked(); return; case TypePackage.SCATTER_SERIES__TRIGGERS: getTriggers().clear(); return; case TypePackage.SCATTER_SERIES__TRANSLUCENT: unsetTranslucent(); return; case TypePackage.SCATTER_SERIES__MARKER: setMarker((Marker)null); return; case TypePackage.SCATTER_SERIES__LINE_ATTRIBUTES: setLineAttributes((LineAttributes)null); return; case TypePackage.SCATTER_SERIES__CURVE: unsetCurve(); return; case TypePackage.SCATTER_SERIES__SHADOW_COLOR: setShadowColor((ColorDefinition)null); return; } eDynamicUnset(eFeature); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ScatterSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 2312, 789, 2560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 2312, 789, 2560, ...
EditAction.getView((Component)evt.getSource())
GUIUtilities.getView((Component)evt.getSource())
public void actionPerformed(ActionEvent evt) { // Let input handler do recording, repeating, etc EditAction.getView((Component)evt.getSource()) .getInputHandler().invokeAction(action); }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/99dde32cdbff549ab55741bacca7a22239096c47/EditAction.java/buggy/org/gjt/sp/jedit/EditAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 759, 10559, 810, 1838, 741, 14949, 16, 30571, 16, 5527, 1082, 202, 4666, 1803, 18, 588, 1767, 12443, 1841, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 759, 10559, 810, 1838, 741, 14949, 16, 30571, 16, 5527, 1082, 202, 4666, 1803, 18, 588, 1767, 12443, 1841, 13, ...
DumpVisitor lVisitor = new DumpVisitor(); lScript.accept(lVisitor); ruby.getRuntime().getOutputStream().println(lVisitor.dump());
protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning); ruby.defineReadonlyVariable("$VERBOSE", warning ? ruby.getTrue() : ruby.getNil()); ruby.defineGlobalConstant("ARGV", lArgv); ruby.defineReadonlyVariable("$-p", (sDoPrint ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-n", (sDoLoop ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-a", (sDoSplit ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-l", (sDoLine ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$*", lArgv); ruby.defineVariable(new RubyGlobal.StringGlobalVariable(ruby, "$0", RubyString.newString(ruby, iFileName))); ruby.initLoad(sLoadDirectories); //require additional libraries int lNbRequire = sRequireFirst.size(); try { for (int i = 0; i < lNbRequire; i++) RubyKernel.require(ruby.getRubyTopSelf(), new RubyString(ruby, (String) sRequireFirst.get(i))); // +++ INode lScript = ruby.parse(iReader2Eval, iFileName); // DumpVisitor laVisitor = new DumpVisitor(); // lScript.accept(laVisitor); // ruby.getRuntime().getOutputStream().println(laVisitor.dump()); if (sDoPrint) { // FIXME lScript = new ParserSupport().appendPrintToBlock(lScript); // ruby.getParserHelper().rb_parser_append_print(); } if (sDoLoop) { // FIXME lScript = new ParserSupport().appendWhileLoopToBlock(lScript, sDoLine, sDoSplit); // ruby.getParserHelper().rb_parser_while_loop(sDoLine, sDoSplit); } if (sCheckOnly) { DumpVisitor lVisitor = new DumpVisitor(); lScript.accept(lVisitor); ruby.getRuntime().getOutputStream().println(lVisitor.dump()); } else { ruby.eval(lScript); } } catch (RaiseException rExcptn) { ruby.getRuntime().printError(rExcptn.getException()); } catch (ThrowJump throwJump) { ruby.getRuntime().printError(throwJump.getNameError()); } catch (RubyBugException lBug) { ruby.getRuntime().getErrorStream().print(lBug.getMessage()); } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/615c030e9e2e4f7129fe3e92d877dd15dd313c3d/Main.java/buggy/org/jruby/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 1086, 30010, 12, 2514, 277, 2514, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 3639, 368, 9190, 2509, 3639, 19817, 22155, 273, 19817, 18, 588, 1868, 1442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1086, 30010, 12, 2514, 277, 2514, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 3639, 368, 9190, 2509, 3639, 19817, 22155, 273, 19817, 18, 588, 1868, 1442, ...
}
MockService svc2 = m_network.getService(1, "192.168.1.2", "SMTP"); assertEquals(1, svc2.getPollingPackages().size()); assertEquals("TestPackage", svc2.getPollingPackages().iterator().next()); }
public void testPolling() throws Exception { m_pollerConfig.setNodeOutageProcessingEnabled(false); // create a poll anticipator PollAnticipator anticipator = new PollAnticipator(); // register it with the interfaces services MockInterface iface = m_network.getInterface(1, "192.168.1.2"); iface.addAnticipator(anticipator); // // first ensure that polls are working while it is up // // anticipate three polls on all the interfaces services anticipator.anticipateAllServices(iface); anticipator.anticipateAllServices(iface); anticipator.anticipateAllServices(iface); // start the poller startDaemons(); // wait for the polls to occur while its up... 1 poll per second plus // overhead assertEquals(0, anticipator.waitForAnticipated(4000L).size()); // ensure that the 192.168.1.3/HTTP service is only polled by TestPkg2 MockService svc = m_network.getService(2, "192.168.1.3", "HTTP"); assertEquals(1, svc.getPollingPackages().size()); assertEquals("TestPkg2", svc.getPollingPackages().iterator().next()); // ensure that another service has the TestPackage package MockService svc2 = m_network.getService(1, "192.168.1.2", "SMTP"); assertEquals(1, svc2.getPollingPackages().size()); assertEquals("TestPackage", svc2.getPollingPackages().iterator().next()); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 24767, 1435, 1216, 1185, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 5743, 1769, 3639, 368, 752, 279, 7672, 17841, 24629, 639, 3639, 1916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 24767, 1435, 1216, 1185, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 5743, 1769, 3639, 368, 752, 279, 7672, 17841, 24629, 639, 3639, 1916...
MylarStatusHandler.setStatusNotifier(new TestingStatusNotifier());
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tests.integration"); MylarStatusHandler.setStatusNotifier(new TestingStatusNotifier()); // $JUnit-BEGIN$ suite.addTestSuite(TaskListFilterTest.class); suite.addTestSuite(DefaultPreferenceConfigTest.class); suite.addTestSuite(ExtensionPointInitializationTest.class); suite.addTestSuite(ChangeDataDirTest.class); // $JUnit-END$ return suite; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8f5f4e4a5cf6e48bb1604ba57546ee3b180b8868/AllIntegrationTests.java/clean/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/AllIntegrationTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 2932, 4709, 364, 2358, 18, 20416, 18, 4811, 7901, 18, 16341, 18, 27667, 8863, 202, 202, 12062, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 394, 7766, 13587, 2932, 4709, 364, 2358, 18, 20416, 18, 4811, 7901, 18, 16341, 18, 27667, 8863, 202, 202, 12062, ...
in.read ();
in.read();
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { String cname = in.readUTF(); if (!cname.equals("")) { if (cname.equals ("UnicastRef2")) { // hack for interoperating with JDK cname = "UnicastRef"; in.read (); //some unknown UnicastRef2 field } // It would be nice to use RemoteRef.packagePrefix here, but for binary // compatibility with the JDK that has to contain "sun.rmi.server"... cname = "gnu.java.rmi.server." + cname; try { Class cls = Class.forName(cname); ref = (RemoteRef)cls.newInstance(); } catch (InstantiationException e1) { throw new UnmarshalException("failed to create ref", e1); } catch (IllegalAccessException e2) { throw new UnmarshalException("failed to create ref", e2); } ref.readExternal(in); } else { ref = (RemoteRef)in.readObject(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/RemoteObject.java/clean/core/src/classpath/java/java/rmi/server/RemoteObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 17362, 12, 921, 4348, 316, 13, 1216, 1860, 16, 10403, 282, 288, 565, 514, 18290, 273, 316, 18, 896, 5159, 5621, 565, 309, 16051, 71, 529, 18, 14963, 2932, 6, 3719, 4202, 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, 282, 3238, 918, 17362, 12, 921, 4348, 316, 13, 1216, 1860, 16, 10403, 282, 288, 565, 514, 18290, 273, 316, 18, 896, 5159, 5621, 565, 309, 16051, 71, 529, 18, 14963, 2932, 6, 3719, 4202, 288,...
+"test=E8\r\n"
+"test=80\r\n"
protected String getMultipartMessageExpected1() { return "Subject: test\r\n" +"MIME-Version: 1.0\r\n" +"Content-Type: multipart/alternative; \r\n" +"\tboundary=\"----=_Part_0_XXXXXXXXXXX.XXXXXXXXXXX\"\r\n" +"\r\n" +"------=_Part_0_XXXXXXXXXXX.XXXXXXXXXXX\r\n" +"X-header: test1\r\n" +"Content-Transfer-Encoding: quoted-printable\r\n" +"Content-Type: text/plain; charset=Cp1252\r\n" +"\r\n" +"test=E8\r\n" +"------=_Part_0_XXXXXXXXXXX.XXXXXXXXXXX\r\n" +"X-header: test2\r\n" +"Content-Transfer-Encoding: quoted-printable\r\n" +"Content-Type: text/plain; charset=Cp1252\r\n" +"\r\n" +"second part =E8=E8\r\n" +"------=_Part_0_XXXXXXXXXXX.XXXXXXXXXXX--\r\n"; }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/55098f240f74e8c15e74915e03b277b5094458ff/MimeMessageTest.java/clean/trunk/src/test/org/apache/james/core/MimeMessageTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 30226, 5762, 1079, 6861, 21, 1435, 288, 3639, 327, 315, 6638, 30, 1842, 64, 86, 64, 82, 6, 5411, 397, 6, 18178, 17, 1444, 30, 404, 18, 20, 64, 86, 64, 82, 6, 5411, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 30226, 5762, 1079, 6861, 21, 1435, 288, 3639, 327, 315, 6638, 30, 1842, 64, 86, 64, 82, 6, 5411, 397, 6, 18178, 17, 1444, 30, 404, 18, 20, 64, 86, 64, 82, 6, 5411, 397, ...
return false;
return true;
protected void updateAnnotations(CompilationUnit ast, IProgressMonitor progressMonitor) { if (ast == null || progressMonitor.isCanceled()) return; final Map annotationMap= new HashMap(50); ast.accept(new ASTVisitor(false) { /* * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MethodDeclaration) */ public boolean visit(MethodDeclaration node) { IMethodBinding binding= node.resolveBinding(); if (binding != null) { IMethodBinding definingMethod= Bindings.findMethodDefininition(binding, true); if (definingMethod != null) { ITypeBinding definingType= definingMethod.getDeclaringClass(); String qualifiedMethodName= definingType.getQualifiedName() + "." + binding.getName(); //$NON-NLS-1$ boolean isImplements= JdtFlags.isAbstract(definingMethod); String text; if (isImplements) text= JavaEditorMessages.getFormattedString("OverrideIndicatorManager.implements", qualifiedMethodName); //$NON-NLS-1$ else text= JavaEditorMessages.getFormattedString("OverrideIndicatorManager.overrides", qualifiedMethodName); //$NON-NLS-1$ SimpleName name= node.getName(); Position position= new Position(name.getStartPosition(), name.getLength()); annotationMap.put( new OverrideIndicator(isImplements, text, binding.getKey()), //$NON-NLS-1$ position); } } return false; } }); if (progressMonitor.isCanceled()) return; synchronized (fAnnotationModelLockObject) { if (fAnnotationModel instanceof IAnnotationModelExtension) { ((IAnnotationModelExtension)fAnnotationModel).replaceAnnotations(fOverrideAnnotations, annotationMap); } else { removeAnnotations(); Iterator iter= annotationMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry mapEntry= (Map.Entry)iter.next(); fAnnotationModel.addAnnotation((Annotation)mapEntry.getKey(), (Position)mapEntry.getValue()); } } fOverrideAnnotations= (Annotation[])annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6a4220085b35b8bf8f8e5f586ffd139f442a8a70/OverrideIndicatorManager.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1089, 5655, 12, 19184, 2802, 3364, 16, 467, 5491, 7187, 4007, 7187, 13, 288, 9506, 202, 430, 261, 689, 422, 446, 747, 4007, 7187, 18, 291, 23163, 10756, 1082, 202, 2463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1089, 5655, 12, 19184, 2802, 3364, 16, 467, 5491, 7187, 4007, 7187, 13, 288, 9506, 202, 430, 261, 689, 422, 446, 747, 4007, 7187, 18, 291, 23163, 10756, 1082, 202, 2463, ...
{ return 8192; }
{ return 8192; }
public int getMaxRowSize() throws SQLException { return 8192; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 1999, 1225, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 26730, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 1999, 1225, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 26730, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return fFilter; }
return fFilter; }
public String getFilter() { return fFilter; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6ef8cc8526a49e2e659df68cd1dbeef6fd842dc6/FilteredList.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12267, 1435, 288, 3639, 327, 284, 1586, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12267, 1435, 288, 3639, 327, 284, 1586, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return getRuntime().newArray(args);
RubyArray array = (RubyArray)allocateObject(); array.setMetaClass(this); if (args.length > 1) { for (int i = 0; i < args.length; i++) { array.add(args[i]); } } return array;
public IRubyObject create(IRubyObject[] args) { return getRuntime().newArray(args); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/4464dc9d096f5840c7920b6bc0d4de218d241503/ArrayMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ArrayMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 752, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 1076, 526, 273, 261, 54, 10340, 1076, 13, 16247, 921, 5621, 526, 18, 542, 2781, 797, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 752, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 1076, 526, 273, 261, 54, 10340, 1076, 13, 16247, 921, 5621, 526, 18, 542, 2781, 797, 12, 2211, 1769, ...
protected void virtualMaterializeItem(TreeItem treeItem) {
private void virtualMaterializeItem(TreeItem treeItem) {
protected void virtualMaterializeItem(TreeItem treeItem) { if (treeItem.getData() != null) { // already materialized return; } if (!(getContentProvider() instanceof ILazyTreeContentProvider)) { return; } ILazyTreeContentProvider lazyTreeContentProvider = (ILazyTreeContentProvider) getContentProvider(); int index; Widget parent = treeItem.getParentItem(); if (parent == null) { parent = treeItem.getParent(); } Object parentElement = parent.getData(); if (parentElement != null) { if (parent instanceof Tree) { index = ((Tree) parent).indexOf(treeItem); } else { index = ((TreeItem) parent).indexOf(treeItem); } lazyTreeContentProvider.updateElement(parentElement, index); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/623c80769a41b43f850b1a1b15fd1bb215aa0126/TreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5024, 49, 31624, 1180, 12, 2471, 1180, 2151, 1180, 13, 288, 202, 202, 430, 261, 3413, 1180, 18, 588, 751, 1435, 480, 446, 13, 288, 1082, 202, 759, 1818, 9390, 1235, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5024, 49, 31624, 1180, 12, 2471, 1180, 2151, 1180, 13, 288, 202, 202, 430, 261, 3413, 1180, 18, 588, 751, 1435, 480, 446, 13, 288, 1082, 202, 759, 1818, 9390, 1235, 1082...
setQueryUrl(repositoryUrl + MylarJiraPlugin.FILTER_URL_PREFIX + filter.getId());
setUrl(repositoryUrl + MylarJiraPlugin.FILTER_URL_PREFIX + filter.getId());
public JiraRepositoryQuery(String repositoryUrl, NamedFilter filter, TaskList taskList) { super(filter.getName(), taskList); setMaxHits(MAX_HITS); this.filter = filter; super.repositoryUrl = repositoryUrl; setQueryUrl(repositoryUrl + MylarJiraPlugin.FILTER_URL_PREFIX + filter.getId());// super.setDescription(filter.getName()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1ed4a2d3633b75ea84df37cf42458b448996f38d/JiraRepositoryQuery.java/buggy/org.eclipse.mylyn.jira.ui/src/org/eclipse/mylyn/internal/jira/JiraRepositoryQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 11547, 3305, 1138, 12, 780, 3352, 1489, 16, 9796, 1586, 1034, 16, 3837, 682, 1562, 682, 13, 288, 202, 202, 9565, 12, 2188, 18, 17994, 9334, 1562, 682, 1769, 202, 202, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 11547, 3305, 1138, 12, 780, 3352, 1489, 16, 9796, 1586, 1034, 16, 3837, 682, 1562, 682, 13, 288, 202, 202, 9565, 12, 2188, 18, 17994, 9334, 1562, 682, 1769, 202, 202, 542...
String type = columnTypeStringForAttribute(eoattribute); if ("timestamp".equals(type)) {
if ("T".equals(eoattribute.valueType())) {
public boolean shouldUseBindVariableForAttribute(EOAttribute eoattribute) { String type = columnTypeStringForAttribute(eoattribute); if ("timestamp".equals(type)) { return false; } else { return true; } }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/6324cd7e095bf0be7e2caad4cb638f01af8186ec/PostgresqlExpression.java/clean/PlugIns/PostgresqlPlugIn/Sources/com/webobjects/jdbcadaptor/PostgresqlExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1410, 3727, 3357, 3092, 1290, 1499, 12, 41, 51, 1499, 425, 83, 4589, 13, 288, 3639, 514, 618, 273, 27280, 780, 1290, 1499, 12, 4361, 4589, 1769, 3639, 309, 7566, 5508, 9654, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1410, 3727, 3357, 3092, 1290, 1499, 12, 41, 51, 1499, 425, 83, 4589, 13, 288, 3639, 514, 618, 273, 27280, 780, 1290, 1499, 12, 4361, 4589, 1769, 3639, 309, 7566, 5508, 9654, ...
if (node instanceof IBinding) { if (level > 0 && match[level - 1] == (IBinding)node) --level;
final int idx= currentPath.size()-1; if (idx >= 0 && currentPath.get(idx) == node) { currentPath.remove(idx); matchesUpToLevel= (BitSet) matchStack.remove(matchStack.size()-1);
public void leave(IPDOMNode node) throws CoreException { if (node instanceof IBinding) { if (level > 0 && match[level - 1] == (IBinding)node) // pop the stack --level; } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/PDOM.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 8851, 12, 2579, 8168, 907, 756, 13, 1216, 30015, 288, 1082, 202, 430, 261, 2159, 1276, 467, 5250, 13, 288, 9506, 202, 430, 261, 2815, 405, 374, 597, 845, 63, 2815, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8851, 12, 2579, 8168, 907, 756, 13, 1216, 30015, 288, 1082, 202, 430, 261, 2159, 1276, 467, 5250, 13, 288, 9506, 202, 430, 261, 2815, 405, 374, 597, 845, 63, 2815, 300, ...
super( reportContext );
super( context );
public DataSourceScriptExecutor( DataSourceHandle dataSourceHandle, IReportContext reportContext ) { super( reportContext ); this.dataSourceHandle = dataSourceHandle; String className = dataSourceHandle.getEventHandlerClass( ); initEventHandler( className ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/DataSourceScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DataSourceScriptExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12806, 3651, 6325, 12, 12806, 3259, 10233, 3259, 16, 1082, 202, 45, 4820, 1042, 2605, 1042, 262, 202, 95, 202, 202, 9565, 12, 2605, 1042, 11272, 202, 202, 2211, 18, 892, 1830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12806, 3651, 6325, 12, 12806, 3259, 10233, 3259, 16, 1082, 202, 45, 4820, 1042, 2605, 1042, 262, 202, 95, 202, 202, 9565, 12, 2605, 1042, 11272, 202, 202, 2211, 18, 892, 1830, ...
if (!u1[i].getName().equals(u2[i].getName())) {
String errorMessage = ""; if (u1[i] == null) { errorMessage = ("Unit " + i + " of word `" + word + "' in FastDictionary is null. "); } if (u2[i] == null) { errorMessage += ("Unit " + i + " of word `" + word + "' in FullDictionary is null."); } if (errorMessage.length() > 0) { throw new Error(errorMessage); } String name1 = u1[i].getName(); String name2 = u2[i].getName(); if (name1 == null) { throw new Error("No name for " + u1); } if (name2 == null) { throw new Error("No name for " + u2); } if (!name1.equals(name2)) {
private void compareUnits(String word, Unit[] u1, Unit[] u2) { if (u1.length != u2.length) { System.out.println("Different # units for " + word); } else { for (int i = 0; i < u1.length; i++) { if (!u1[i].getName().equals(u2[i].getName())) { System.out.println("Mismatched units " + u1[i].getName() + " and " + u2[i].getName()); } } } }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/dbf7c2a23d14346d6c2be709a479eaa467ca3901/FullDictionaryTest.java/clean/tests/knowledge/dictionary/FullDictionaryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3400, 7537, 12, 780, 2076, 16, 8380, 8526, 582, 21, 16, 202, 565, 8380, 8526, 582, 22, 13, 288, 202, 430, 261, 89, 21, 18, 2469, 480, 582, 22, 18, 2469, 13, 288, 202, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 7537, 12, 780, 2076, 16, 8380, 8526, 582, 21, 16, 202, 565, 8380, 8526, 582, 22, 13, 288, 202, 430, 261, 89, 21, 18, 2469, 480, 582, 22, 18, 2469, 13, 288, 202, 565...
jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_18(); } catch (LookaheadSuccess ls) { return true; } finally { jj_save(17, xla); } }
jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_18(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(17, xla); } }
final private boolean jj_2_18(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_18(); } catch (LookaheadSuccess ls) { return true; } finally { jj_save(17, xla); } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 22, 67, 2643, 12, 474, 619, 11821, 13, 288, 3639, 10684, 67, 11821, 273, 619, 11821, 31, 3639, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 1147, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 3238, 1250, 10684, 67, 22, 67, 2643, 12, 474, 619, 11821, 13, 288, 3639, 10684, 67, 11821, 273, 619, 11821, 31, 3639, 10684, 67, 2722, 917, 273, 10684, 67, 9871, 917, 273, 1147, 31...
dialog.setState(SIPDialog.TERMINATED_STATE);
dialog.delete();
protected void fireTimeoutTimer() { if (sipStack.isLoggingEnabled()) sipStack.logWriter.logDebug("fireTimeoutTimer " + this); SIPDialog dialog = (SIPDialog) this.getDialog(); if (TransactionState.CALLING == this.getState() || TransactionState.TRYING == this.getState() || TransactionState.PROCEEDING == this.getState()) { // Timeout occured. If this is asociated with a transaction // creation then kill the dialog. if (dialog != null) { if (((SIPTransactionStack) getSIPStack()).isDialogCreated(this .getOriginalRequest().getMethod())) { // terminate the enclosing dialog. dialog.setState(SIPDialog.TERMINATED_STATE); } else if (getOriginalRequest().getMethod().equalsIgnoreCase( Request.BYE) && dialog.isTerminatedOnBye()) { // Terminate the associated dialog on BYE Timeout. dialog.setState(SIPDialog.TERMINATED_STATE); } } } if (TransactionState.COMPLETED != this.getState()) { raiseErrorEvent(SIPTransactionErrorEvent.TIMEOUT_ERROR); } else { this.setState(TransactionState.TERMINATED); } }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/a6ae5886f33414b95b6cbcfb13e3394808af02e7/SIPClientTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPClientTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4452, 2694, 6777, 1435, 288, 202, 202, 430, 261, 28477, 2624, 18, 291, 7735, 1526, 10756, 1082, 202, 28477, 2624, 18, 1330, 2289, 18, 1330, 2829, 2932, 12179, 2694, 6777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 2694, 6777, 1435, 288, 202, 202, 430, 261, 28477, 2624, 18, 291, 7735, 1526, 10756, 1082, 202, 28477, 2624, 18, 1330, 2289, 18, 1330, 2829, 2932, 12179, 2694, 6777, ...
maybeStart(false);
public synchronized void nonfatalError(SplitfileBlock block, int reasonCode) { if(callOnProgress) callback.onProgress(); nonfatalErrors.inc(reasonCode); runningBlocks.remove(block); int levelNumber = block.getRetryCount(); levelNumber++; Logger.minor(this, "Non-fatal error on "+block+" -> "+levelNumber); if(levelNumber > maxLevel) { failedBlocksTooManyRetries.add(block); Logger.minor(this, "Finished with "+block); } else { Level newLevel = makeLevel(levelNumber); newLevel.add(block); } maybeStart(false); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/4494127894552d90423b4da0a9e9e08341b4b073/RetryTracker.java/buggy/src/freenet/client/RetryTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1661, 30709, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 430, 12, 1991, 1398, 5491, 13, 1082, 202, 3394, 18, 265, 5491, 5621, 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, 3852, 918, 1661, 30709, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 430, 12, 1991, 1398, 5491, 13, 1082, 202, 3394, 18, 265, 5491, 5621, 202, 202, ...
} catch (RemoteException e) { e.printStackTrace(); } catch (FinderException e) {
} catch (RemoteException e) {
protected void control(IWContext iwc) { Collection groups =null; try { groups = getFinanceService().getTariffGroupHome().findByCategory(getFinanceCategoryId()); } catch (RemoteException e1) { e1.printStackTrace(); } catch (FinderException e1) { e1.printStackTrace(); } //List groups = FinanceFinder.getInstance().listOfTariffGroups(iCategoryId); TariffGroup group = null; if (iwc.isParameterSet(prmGroup)) groupId = Integer.valueOf(iwc.getParameter(prmGroup)); if (groupId!=null && groupId.intValue() > 0) { try { //group = FinanceFinder.getInstance().getTariffGroup(iGroupId); group = getFinanceService().getTariffGroupHome().findByPrimaryKey(groupId); } catch (RemoteException e) { e.printStackTrace(); } catch (FinderException e) { e.printStackTrace(); } } else if (groups != null) { //group = (TariffGroup) groups.get(0); //iGroupId = group.getID(); } if (isAdmin) { try { PresentationObject MO = new Text(); if (iwc.getParameter("updateindex") != null) { MO = doUpdateIndex(iwc,group); } else if (iwc.getParameter("savetariffs") != null) { MO = doUpdate(iwc,group); } else if (iwc.getParameter(strAction) != null) { String sAct = iwc.getParameter(strAction); int iAct = Integer.parseInt(sAct); switch (iAct) { case ACT1 : MO = getMain(iwc,group); break; case ACT2 : MO = getSingleLineChange(iwc, false, false,group); break; case ACT3 : MO = doUpdate(iwc,group); break; case ACT4 : MO = getSingleLineChange(iwc, true, false,group); break; default : MO = getMain(iwc,group); break; } } else { MO = getMain(iwc, group); } String groupName = group != null ? group.getName() : ""; setTitle(localize("tariffs", "Tariffs") + " " + groupName); setTabPanel(getGroupLinks( groups)); setSearchPanel(makeLinkTable(1, group)); setMainPanel(MO); } catch (Exception S) { S.printStackTrace(); } } else add(localize("access_denied", "Access denies")); }
57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/33e5c85ca31478329116ab80b95fd07320394530/TariffEditor.java/clean/src/java/com/idega/block/finance/presentation/TariffEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3325, 12, 45, 59, 1042, 25522, 71, 13, 288, 9506, 202, 2532, 3252, 273, 2011, 31, 202, 202, 698, 288, 1082, 202, 4650, 273, 2812, 267, 1359, 1179, 7675, 588, 20464, 3048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3325, 12, 45, 59, 1042, 25522, 71, 13, 288, 9506, 202, 2532, 3252, 273, 2011, 31, 202, 202, 698, 288, 1082, 202, 4650, 273, 2812, 267, 1359, 1179, 7675, 588, 20464, 3048...
if (primary.equalsIgnoreCase("multipart")) { if (sub.equalsIgnoreCase("related")) { String type = contentType.getParameter("type");
if (primary.equalsIgnoreCase("multipart") && sub.equalsIgnoreCase("related")) { String type = contentType.getParameter("type"); if (type != null) {
private static int identifyContentType(ContentType contentType) { String primary = contentType.getPrimaryType(); String sub = contentType.getSubType(); if (primary.equalsIgnoreCase("multipart")) { if (sub.equalsIgnoreCase("related")) { String type = contentType.getParameter("type"); if (isXMLType(type)) { return MIME_MULTIPART_FLAG; } else if (isFastInfosetType(type)) { return MIME_MULTIPART_FLAG | FI_ENCODED_FLAG; } else { throw new XMLMessageException( "xml.content-type.mustbe.multipart"); } } else { throw new XMLMessageException("xml.invalid.content-type", new Object[] { primary+"/"+sub } ); } } else if (isXMLType(primary, sub)) { return PLAIN_XML_FLAG; } else if (isFastInfosetType(primary, sub)) { return PLAIN_XML_FLAG | FI_ENCODED_FLAG; } else { throw new XMLMessageException("xml.invalid.content-type", new Object[] { primary+"/"+sub } ); } }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/e62b376a7d7ff394179b2e7a9a3b852f1156f10d/XMLMessage.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/encoding/xml/XMLMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 9786, 8046, 12, 8046, 5064, 13, 288, 3639, 514, 3354, 273, 5064, 18, 588, 6793, 559, 5621, 3639, 514, 720, 273, 5064, 18, 588, 30511, 5621, 3639, 309, 261, 8258, 18, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 9786, 8046, 12, 8046, 5064, 13, 288, 3639, 514, 3354, 273, 5064, 18, 588, 6793, 559, 5621, 3639, 514, 720, 273, 5064, 18, 588, 30511, 5621, 3639, 309, 261, 8258, 18, 149...
if (hasConflictingDeclaration) { return; } if (block.equals(exceptBlock)) { return; } super.visitCodeBlock(block); }
if (hasConflictingDeclaration) { return; } if (block.equals(exceptBlock)) { return; } super.visitCodeBlock(block); }
public void visitCodeBlock(PsiCodeBlock block) { if (hasConflictingDeclaration) { return; } if (block.equals(exceptBlock)) { return; } super.visitCodeBlock(block); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0c22d3bce35a1ee7d70c329328f649614cf6f21a/ConstantIfStatementInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/ConstantIfStatementInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1085, 1768, 12, 52, 7722, 1085, 1768, 1203, 13, 288, 1377, 309, 261, 5332, 10732, 310, 6094, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 261, 2629, 18, 14963, 12, 141...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 1085, 1768, 12, 52, 7722, 1085, 1768, 1203, 13, 288, 1377, 309, 261, 5332, 10732, 310, 6094, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 261, 2629, 18, 14963, 12, 141...
protected void validateDuplicateUtilJars(WorkbenchComponent module) { List utilJars = module.getReferencedComponents();
protected void validateDuplicateUtilJars(EARArtifactEdit edit, IVirtualComponent module) { List utilJars = edit.getUtilityModuleReferences();
protected void validateDuplicateUtilJars(WorkbenchComponent module) { List utilJars = module.getReferencedComponents(); Set visitedUtilUri = new HashSet(); if (utilJars == null) return; for (int i = 0; i < utilJars.size(); i++) { UtilityJARMapping utilModule = (UtilityJARMapping) utilJars.get(i); if (utilModule != null) { if (visitedUtilUri.contains(utilModule.getUri())) { String projectName = utilModule.getProjectName(); duplicateUtilError(module.getName(), utilModule.getUri(), projectName); } else visitedUtilUri.add(utilModule.getUri()); } // if } // for } // validateModuleMapsDuplicateUtil
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/bd1d82feddb32c88ee26411c61e8222da58ef403/UIEarValidator.java/clean/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/validation/UIEarValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1954, 11826, 1304, 46, 5913, 12, 2421, 22144, 1841, 1605, 13, 288, 202, 202, 682, 1709, 46, 5913, 273, 1605, 18, 588, 22344, 7171, 5621, 202, 202, 694, 9711, 1304, 3006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 11826, 1304, 46, 5913, 12, 2421, 22144, 1841, 1605, 13, 288, 202, 202, 682, 1709, 46, 5913, 273, 1605, 18, 588, 22344, 7171, 5621, 202, 202, 694, 9711, 1304, 3006, ...
delete.setImageDescriptor(MylarImages.REMOVE);
delete.setImageDescriptor(TaskListImages.REMOVE);
private void defineActions() { delete = new Action() { @Override public void run() { removeLink(); } }; delete.setText("Delete"); delete.setToolTipText("Delete"); delete.setImageDescriptor(MylarImages.REMOVE); add = new Action() { @Override public void run() { addLink(); } }; add.setText("Add"); add.setToolTipText("Add"); //add.setImageDescriptor(MylarImages.REMOVE); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7fc296d93c4ea78623f31a1d48beae1e9fcee9fc/TaskSummaryEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskSummaryEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4426, 6100, 1435, 288, 1082, 1850, 1430, 273, 394, 4382, 1435, 288, 1082, 202, 36, 6618, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 4479, 2098, 5621, 1082, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4426, 6100, 1435, 288, 1082, 1850, 1430, 273, 394, 4382, 1435, 288, 1082, 202, 36, 6618, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 4479, 2098, 5621, 1082, 202, 97, ...
DateRangeContainer newPastWeeks = MylarTaskListPlugin.getTaskListManager().getActivityPast(); DateRangeContainer newPreviousWeek = MylarTaskListPlugin.getTaskListManager().getActivityPrevious(); DateRangeContainer newThisWeek = MylarTaskListPlugin.getTaskListManager().getActivityThisWeek(); DateRangeContainer newNextWeek = MylarTaskListPlugin.getTaskListManager().getActivityNextWeek();
DateRangeContainer newPastWeeks = TasksUiPlugin.getTaskListManager().getActivityPast(); DateRangeContainer newPreviousWeek = TasksUiPlugin.getTaskListManager().getActivityPrevious(); DateRangeContainer newThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek(); DateRangeContainer newNextWeek = TasksUiPlugin.getTaskListManager().getActivityNextWeek();
public void testResetAndRollOver() { DateRangeContainer pastWeeks = MylarTaskListPlugin.getTaskListManager().getActivityPast(); DateRangeContainer previousWeek = MylarTaskListPlugin.getTaskListManager().getActivityPrevious(); DateRangeContainer thisWeek = MylarTaskListPlugin.getTaskListManager().getActivityThisWeek(); DateRangeContainer nextWeek = MylarTaskListPlugin.getTaskListManager().getActivityNextWeek(); DateRangeContainer futureWeeks = MylarTaskListPlugin.getTaskListManager().getActivityFuture(); assertTrue(thisWeek.isPresent()); assertTrue(nextWeek.isFuture()); long pastStartTime = pastWeeks.getEnd().getTimeInMillis(); long previousStartTime = previousWeek.getStart().getTimeInMillis(); long thisWeekStartTime = thisWeek.getStart().getTimeInMillis(); long nextStartTime = nextWeek.getStart().getTimeInMillis(); long futureStartTime = futureWeeks.getStart().getTimeInMillis(); Calendar pastWeeksTaskStart = Calendar.getInstance(); pastWeeksTaskStart.setTimeInMillis(pastStartTime - 10); assertTrue(pastWeeks.includes(pastWeeksTaskStart)); Calendar previousWeekTaskStart = Calendar.getInstance(); previousWeekTaskStart.setTimeInMillis(previousStartTime + 10); assertTrue(previousWeek.includes(previousWeekTaskStart)); Calendar thisWeekTaskStart = Calendar.getInstance(); thisWeekTaskStart.setTimeInMillis(thisWeekStartTime + 10); assertTrue(thisWeek.includes(thisWeekTaskStart)); Calendar thisWeekTaskStop = Calendar.getInstance(); thisWeekTaskStop.setTimeInMillis(thisWeek.getEnd().getTimeInMillis() - 10); assertTrue(thisWeek.includes(thisWeekTaskStop)); Calendar nextWeekTaskStart = Calendar.getInstance(); nextWeekTaskStart.setTimeInMillis(nextStartTime + 10); assertTrue(nextWeek.includes(nextWeekTaskStart)); Calendar futureWeekTaskStart = Calendar.getInstance(); futureWeekTaskStart.setTimeInMillis(futureStartTime + 10); assertTrue(futureWeeks.includes(futureWeekTaskStart)); ITask task1 = new Task("task 1", "Task 1", true); MylarTaskListPlugin.getTaskListManager().getTaskList().addTask(task1); InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1 .getHandleIdentifier(), "originId", "navigatedRelation", MylarContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, thisWeekTaskStart.getTime(), thisWeekTaskStart.getTime()); InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1 .getHandleIdentifier(), "originId", "navigatedRelation", MylarContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, thisWeekTaskStop.getTime(), thisWeekTaskStop.getTime()); MylarTaskListPlugin.getTaskListManager().parseInteractionEvent(event1); MylarTaskListPlugin.getTaskListManager().parseInteractionEvent(event2); assertEquals(1, thisWeek.getChildren().size()); assertEquals(thisWeekTaskStop.getTime().getTime() - thisWeekTaskStart.getTime().getTime(), thisWeek.getTotalElapsed()); // ROLL OVER MylarTaskListPlugin.getTaskListManager().startTime = new Date(nextWeek.getStart().getTimeInMillis() + 10); MylarTaskListPlugin.getTaskListManager().resetAndRollOver(); MylarTaskListPlugin.getTaskListManager().parseInteractionEvent(event1); MylarTaskListPlugin.getTaskListManager().parseInteractionEvent(event2); DateRangeContainer newPastWeeks = MylarTaskListPlugin.getTaskListManager().getActivityPast(); DateRangeContainer newPreviousWeek = MylarTaskListPlugin.getTaskListManager().getActivityPrevious(); DateRangeContainer newThisWeek = MylarTaskListPlugin.getTaskListManager().getActivityThisWeek(); DateRangeContainer newNextWeek = MylarTaskListPlugin.getTaskListManager().getActivityNextWeek(); //DateRangeContainer newFutureWeeks = MylarTaskListPlugin.getTaskListManager().getActivityFuture(); assertTrue(newPastWeeks.includes(previousWeekTaskStart)); assertTrue(newPreviousWeek.includes(thisWeekTaskStart)); assertTrue(newThisWeek.includes(nextWeekTaskStart)); assertTrue(newNextWeek.includes(futureWeekTaskStart)); assertFalse(newThisWeek.includes(thisWeekTaskStart)); assertFalse(newThisWeek.isPresent()); assertTrue(newThisWeek.isFuture()); assertEquals(1, newPreviousWeek.getChildren().size()); assertEquals(thisWeekTaskStop.getTime().getTime() - thisWeekTaskStart.getTime().getTime(), newPreviousWeek.getTotalElapsed()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/TaskActivityViewTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskActivityViewTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 7013, 1876, 24194, 4851, 1435, 288, 9506, 202, 1626, 2655, 2170, 8854, 6630, 87, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 6193, 52, 689,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7013, 1876, 24194, 4851, 1435, 288, 9506, 202, 1626, 2655, 2170, 8854, 6630, 87, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 6193, 52, 689,...
"imageSize", imageData,
"imageSize", imageSize,
public String render( DocumentDomainObject document, HttpServletRequest request ) { UserDomainObject user = Utility.getLoggedOnUser( request ); ImageData imageData = getImageDataFromFileDocument( (FileDocumentDomainObject)document ); List values = Arrays.asList( new Object[]{ "imageUrl", "GetDoc?meta_id=" + document.getId(), "imageSize", imageData, } ); return ApplicationServer.getIMCServiceInterface().getAdminTemplate( "images/thumbnail.frag", user, values ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/bd959962ffbc3c6793504d637043fba705cac05a/ChangeImage.java/buggy/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1743, 12, 4319, 3748, 921, 1668, 16, 9984, 590, 262, 288, 5411, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 590, 11272, 5411, 3421, 751, 26229, 273, 10567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1743, 12, 4319, 3748, 921, 1668, 16, 9984, 590, 262, 288, 5411, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 590, 11272, 5411, 3421, 751, 26229, 273, 10567...
Logger.normal(this, "now is more than 10 seconds past oldNow ("+(now - oldNow)+") in PacketSender");
Logger.error(this, "now is more than 10 seconds past oldNow ("+(now - oldNow)+") in PacketSender");
private void realRun() { long now = System.currentTimeMillis(); lastTimeInSeconds = (int) (now / 1000); PeerManager pm = node.peers; PeerNode[] nodes = pm.myPeers; // Run the time sensitive status updater separately for(int i=0;i<nodes.length;i++) { PeerNode pn = nodes[i]; pn.setPeerNodeStatus(now); } node.maybeLogPeerNodeStatusSummary(now); long nextActionTime = Long.MAX_VALUE; long oldTempNow = now; for(int i=0;i<nodes.length;i++) { PeerNode pn = nodes[i]; lastReceivedPacketFromAnyNode = Math.max(pn.lastReceivedPacketTime(), lastReceivedPacketFromAnyNode); if(pn.isConnected()) { // Is the node dead? if(now - pn.lastReceivedPacketTime() > pn.maxTimeBetweenReceivedPackets()) { Logger.error(this, "Disconnecting from "+pn+" - haven't received packets recently"); pn.disconnected(); continue; } // Any urgent notifications to send? long urgentTime = pn.getNextUrgentTime(); // Should spam the logs, unless there is a deadlock Logger.minor(this, "Next urgent time: "+urgentTime+" for "+pn.getDetectedPeer()); if(urgentTime <= now) { // Send them try { pn.sendAnyUrgentNotifications(); } catch (PacketSequenceException e) { Logger.error(this, "Caught "+e+" - disconnecting", e); pn.forceDisconnect(); } } else { nextActionTime = Math.min(nextActionTime, urgentTime); } // Any packets to resend? for(int j=0;j<2;j++) { KeyTracker kt; if(j == 0) kt = pn.getCurrentKeyTracker(); else if(j == 1) kt = pn.getPreviousKeyTracker(); else break; // impossible if(kt == null) continue; ResendPacketItem[] resendItems = kt.grabResendPackets(); if(resendItems == null) continue; for(int k=0;k<resendItems.length;k++) { ResendPacketItem item = resendItems[k]; if(item == null) continue; try { Logger.minor(this, "Resending "+item.packetNumber+" to "+item.kt); node.packetMangler.processOutgoingPreformatted(item.buf, 0, item.buf.length, item.kt, item.packetNumber, item.callbacks); } catch (KeyChangedException e) { Logger.error(this, "Caught "+e+" resending packets to "+kt); pn.requeueResendItems(resendItems); break; } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" resending packets to "+kt); pn.requeueResendItems(resendItems); break; } catch (PacketSequenceException e) { Logger.error(this, "Caught "+e+" - disconnecting", e); pn.forceDisconnect(); } catch (WouldBlockException e) { Logger.error(this, "Impossible: "+e, e); } } } if(node.packetMangler == null) continue; // Any messages to send? MessageItem[] messages = null; messages = pn.grabQueuedMessageItems(); if(messages != null && messages.length > 0) { long l = Long.MAX_VALUE; int sz = 56; // overhead; FIXME should be a constant or something for(int j=0;j<messages.length;j++) { if(l > messages[j].submitted) l = messages[j].submitted; sz += 2 + /* FIXME only 2? */ messages[j].getData(node.packetMangler, pn).length; } if(l + 100 > now && sz < 1024) { // Don't send immediately if(nextActionTime > (l+100)) nextActionTime = l+100; pn.requeueMessageItems(messages, 0, messages.length, true, "TrafficCoalescing"); } else { for(int j=0;j<messages.length;j++) { Logger.minor(this, "PS Sending: "+(messages[j].msg == null ? "(not a Message)" : messages[j].msg.getSpec().getName())); if (messages[j].msg != null) { pn.addToLocalNodeSentMessagesToStatistic(messages[j].msg); } } // Send packets, right now, blocking, including any active notifications node.packetMangler.processOutgoingOrRequeue(messages, pn, true, false); continue; } } // Need to send a keepalive packet? if(now - pn.lastSentPacketTime() > Node.KEEPALIVE_INTERVAL) { Logger.minor(this, "Sending keepalive"); // Force packet to have a sequence number. Message m = DMT.createFNPVoid(); pn.addToLocalNodeSentMessagesToStatistic(m); node.packetMangler.processOutgoingOrRequeue(new MessageItem[] { new MessageItem(m, null) }, pn, true, true); } } else { // Not connected // Send handshake if necessary long beforeHandshakeTime = System.currentTimeMillis(); if(pn.shouldSendHandshake()) node.packetMangler.sendHandshake(pn); long afterHandshakeTime = System.currentTimeMillis(); if((afterHandshakeTime - beforeHandshakeTime) > (2*1000)) Logger.normal(this, "afterHandshakeTime is more than 2 seconds past beforeHandshakeTime ("+(afterHandshakeTime - beforeHandshakeTime)+") in PacketSender working with "+pn.getPeer()+" named "+pn.getName()); } long tempNow = System.currentTimeMillis(); if((tempNow - oldTempNow) > (5*1000)) Logger.normal(this, "tempNow is more than 5 seconds past oldTempNow ("+(tempNow - oldTempNow)+") in PacketSender working with "+pn.getPeer()+" named "+pn.getName()); oldTempNow = tempNow; } if(now - lastClearedOldSwapChains > 10000) { node.lm.clearOldSwapChains(); lastClearedOldSwapChains = now; } long oldNow = System.currentTimeMillis(); // Send may have taken some time now = System.currentTimeMillis(); lastTimeInSeconds = (int) (now / 1000); if((now - oldNow) > (10*1000)) Logger.normal(this, "now is more than 10 seconds past oldNow ("+(now - oldNow)+") in PacketSender"); Vector jobsToRun = null; synchronized(timedJobsByTime) { while(!timedJobsByTime.isEmpty()) { Long tRun = (Long) timedJobsByTime.firstKey(); if(tRun.longValue() <= now) { if(jobsToRun == null) jobsToRun = new Vector(); Object o = timedJobsByTime.remove(tRun); if(o instanceof Runnable[]) { Runnable[] r = (Runnable[]) o; for(int i=0;i<r.length;i++) jobsToRun.add(r[i]); } else { Runnable r = (Runnable) o; jobsToRun.add(r); } } else break; } } if(jobsToRun != null) for(int i=0;i<jobsToRun.size();i++) { Runnable r = (Runnable) jobsToRun.get(i); Logger.minor(this, "Running "+r); if(r instanceof FastRunnable) { // Run in-line try { r.run(); } catch (Throwable t) { Logger.error(this, "Caught "+t+" running "+r, t); } } else { Thread t = new Thread(r, "Scheduled job: "+r); t.setDaemon(true); t.start(); } } long sleepTime = nextActionTime - now; // 200ms maximum sleep time sleepTime = Math.min(sleepTime, 200); if(now - node.startupTime > 60*1000*5) { if(now - lastReceivedPacketFromAnyNode > Node.ALARM_TIME) { Logger.error(this, "Have not received any packets from any node in last "+Node.ALARM_TIME/1000+" seconds"); lastReportedNoPackets = now; } } if(sleepTime > 0) { try { synchronized(this) { wait(sleepTime); } } catch (InterruptedException e) { // Ignore, just wake up. Probably we got interrupt()ed // because a new packet came in. } } }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/eeca3bcf6e867de2577f41461470a78057554d0b/PacketSender.java/clean/src/freenet/node/PacketSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2863, 1997, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 31323, 17840, 273, 261, 474, 13, 261, 3338, 342, 4336, 1769, 3639, 10669, 1318, 7430, 273, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2863, 1997, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 31323, 17840, 273, 261, 474, 13, 261, 3338, 342, 4336, 1769, 3639, 10669, 1318, 7430, 273, 756, ...
} else if (currentTool == LINE_TOOL && brokenLine==true) {
} else if (currentTool == LINE_TOOL && brokenLine == true) {
private void formMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseDragged Main.getGUI().setCoords(evt.getX(), evt.getY()); if (currentTool == PEN_TOOL) { if (lastX < 0 || lastY < 0) { lastX = evt.getX(); lastY = evt.getY(); return; } if (lastButton == 1) { currentColor = currentOutlineColor; } else if (lastButton == 3) { currentColor = currentFillColor; } drawLine(evt.getX(), evt.getY(), lastX, lastY); lastX = evt.getX(); lastY = evt.getY(); repaint(); } else if (currentTool == EREASER_TOOL) { if (lastX < 0 || lastY < 0) { lastX = evt.getX(); lastY = evt.getY(); return; } if (lastButton == 1) { currentColor = java.awt.Color.white; } else if (lastButton == 3) { currentColor = currentFillColor; } drawErase(evt.getX() - 12, evt.getY() - 12, 25, 25); lastX = evt.getX(); lastY = evt.getY(); repaint(); } else if (currentTool == RECT_TOOL) { int x = (evt.getX() - lastX > 0) ? lastX : evt.getX(); int y = (evt.getY() - lastY > 0) ? lastY : evt.getY(); if (lastXorX >= 0 && lastXorY >= 0) { if (lastXorW > 0 && lastXorH > 0) { drawXorRect(lastXorX, lastXorY, lastXorW, lastXorH); } drawXorRect(x, y, Math.abs(lastX - evt.getX()), Math.abs(lastY - evt.getY())); lastXorW = Math.abs(evt.getX() - lastX); lastXorH = Math.abs(evt.getY() - lastY); } lastXorX = x; lastXorY = y; } else if (currentTool == OVAL_TOOL) { int x = (evt.getX() - lastX > 0) ? lastX : evt.getX(); int y = (evt.getY() - lastY > 0) ? lastY : evt.getY(); if (lastXorX >= 0 && lastXorY >= 0) { if (lastXorW > 0 && lastXorH > 0) { drawXorOval(lastXorX, lastXorY, lastXorW, lastXorH); } drawXorOval(x, y, Math.abs(lastX - evt.getX()), Math.abs(lastY - evt.getY())); lastXorW = Math.abs(evt.getX() - lastX); lastXorH = Math.abs(evt.getY() - lastY); } lastXorX = x; lastXorY = y; } else if (currentTool == LINE_TOOL && lastButton == 1) { if (lastXorX >= 0 && lastXorY >= 0) { drawXorLine(lastXorX, lastXorY, lastX, lastY); } drawXorLine(evt.getX(),evt.getY(), lastX, lastY); lastXorX = evt.getX(); lastXorY = evt.getY(); } else if (currentTool == LINE_TOOL && brokenLine==true) { if (lastXorX >= 0 && lastXorY >= 0) { drawXorLine(lastXorX, lastXorY, lastX, lastY); } drawXorLine(evt.getX(),evt.getY(), lastX, lastY); lastXorX = evt.getX(); lastXorY = evt.getY(); } repaint(); }//GEN-LAST:event_formMouseDragged
11087 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11087/ea5cb1611d3f30717ecb90bfe697ef9f408caea4/DrawingPanel.java/buggy/netboard/DrawingPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 646, 9186, 11728, 2423, 12, 6290, 18, 2219, 88, 18, 2575, 18, 9186, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 687, 9186, 11728, 2423, 3639, 12740, 18, 588, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 646, 9186, 11728, 2423, 12, 6290, 18, 2219, 88, 18, 2575, 18, 9186, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 687, 9186, 11728, 2423, 3639, 12740, 18, 588, 43...
declarator.getNameStartOffset(), declarator.getConstructorExpression());
declarator.getNameStartOffset(), declarator.getNameEndOffset(), declarator.getConstructorExpression());
private IASTVariable createVariableASTNode(Declarator declarator, boolean nested ) throws ASTSemanticException { return astFactory.createVariable( scope, nested ? declarator.getOwnedDeclarator().getName() : declarator.getName(), isAuto(), declarator.getInitializerClause(), declarator.getBitFieldExpression(), astFactory.createAbstractDeclaration( constt, volatil, getTypeSpecifier(), declarator.getPointerOperators(), declarator.getArrayModifiers(), null, null), mutable, extern, register, staticc, getStartingOffset(), declarator.getNameStartOffset(), declarator.getConstructorExpression()); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e95da4dadebf96c72bbb248f97571b58e92fb39c/DeclarationWrapper.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/DeclarationWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 9053, 3092, 752, 3092, 9053, 907, 12, 31419, 3496, 5880, 16, 1250, 4764, 262, 1216, 9183, 13185, 9941, 503, 565, 288, 3639, 327, 3364, 1733, 18, 2640, 3092, 12, 5411, 2146, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 9053, 3092, 752, 3092, 9053, 907, 12, 31419, 3496, 5880, 16, 1250, 4764, 262, 1216, 9183, 13185, 9941, 503, 565, 288, 3639, 327, 3364, 1733, 18, 2640, 3092, 12, 5411, 2146, 16,...
mode = ((RubyString) args[1]).getValue();
mode = ((RubyString) args[1]).toString();
public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).getValue(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).getValue(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/9f2efc63a858fa0507245b207025eab027840a04/RubyIO.java/clean/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 31563, 12, 7937, 10340, 921, 8526, 833, 13, 288, 377, 202, 430, 261, 1968, 18, 2469, 411, 404, 13, 288, 5411, 604, 18814, 7675, 2704, 1379, 668, 2932, 21530, 1300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 31563, 12, 7937, 10340, 921, 8526, 833, 13, 288, 377, 202, 430, 261, 1968, 18, 2469, 411, 404, 13, 288, 5411, 604, 18814, 7675, 2704, 1379, 668, 2932, 21530, 1300...
return ( ( rgb.red & 0xff ) << 16 ) | ( ( rgb.green & 0xff ) << 8 )
return ( ( rgb.red & 0xff ) << 16 ) | ( ( rgb.green & 0xff ) << 8 )
public static int getRGBInt( RGB rgb ) { if ( rgb == null ) { return -1; } return ( ( rgb.red & 0xff ) << 16 ) | ( ( rgb.green & 0xff ) << 8 ) | ( rgb.blue & 0xff ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bd4d66f78a2177b14abd81505fa39cd4e4abe645/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, 509, 4170, 5887, 1702, 12, 11510, 6917, 262, 202, 95, 202, 202, 430, 261, 6917, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 300, 21, 31, 202, 202, 97, 202, 202, 2463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 4170, 5887, 1702, 12, 11510, 6917, 262, 202, 95, 202, 202, 430, 261, 6917, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 300, 21, 31, 202, 202, 97, 202, 202, 2463,...
if (AUTOACTIVATION_TRIGGERS_DOT.equals(key)) {
if ( (AUTOACTIVATION_TRIGGERS_DOT.equals(key)) || (AUTOACTIVATION_TRIGGERS_ARROW.equals(key)) || (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(key)) ){
private static void changeCProcessor(ContentAssistant assistant, IPreferenceStore store, String key) { CCompletionProcessor jcp= getCProcessor(assistant); if (jcp == null) return; if (AUTOACTIVATION_TRIGGERS_DOT.equals(key)) { boolean useDotAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT); if (useDotAsTrigger){ String triggers= "."; //$NON-NLS-1$ jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray()); } } else if (AUTOACTIVATION_TRIGGERS_ARROW.equals(key)) { boolean useArrowAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_ARROW); if (useArrowAsTrigger){ String triggers= ">"; //$NON-NLS-1$ jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray()); } } else if (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(key)) { boolean useDoubleColonAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOUBLECOLON); if (useDoubleColonAsTrigger){ String triggers= ":"; //$NON-NLS-1$ jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray()); } } else if (SHOW_DOCUMENTED_PROPOSALS.equals(key)) { //boolean enabled= store.getBoolean(SHOW_DOCUMENTED_PROPOSALS); //jcp.restrictProposalsToVisibility(enabled); } //else if (CASE_SENSITIVITY.equals(key)) { // boolean enabled= store.getBoolean(CASE_SENSITIVITY); // jcp.restrictProposalsToMatchingCases(enabled); // } else if (ORDER_PROPOSALS.equals(key)) { boolean enable= store.getBoolean(ORDER_PROPOSALS); jcp.orderProposalsAlphabetically(enable); } else if (ADD_INCLUDE.equals(key)) { boolean enabled= store.getBoolean(ADD_INCLUDE); jcp.allowAddingIncludes(enabled); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e6bcfeaf82fe52867701eb2f3c9573ecef4e6a7a/ContentAssistPreference.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistPreference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2549, 39, 5164, 12, 1350, 2610, 17175, 28779, 16, 467, 9624, 2257, 1707, 16, 514, 498, 13, 288, 202, 202, 39, 11238, 5164, 525, 4057, 33, 1927, 5164, 12, 428, 17175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2549, 39, 5164, 12, 1350, 2610, 17175, 28779, 16, 467, 9624, 2257, 1707, 16, 514, 498, 13, 288, 202, 202, 39, 11238, 5164, 525, 4057, 33, 1927, 5164, 12, 428, 17175...
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix44/DontKnowTrade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
public Object getSelection(GraphicsNodeRenderContext rc) {
public Object getSelection() {
public Object getSelection(GraphicsNodeRenderContext rc) { int[] ranges = textPainter.getSelected(aci, beginMark, endMark); Object o = null; // TODO: later we can return more complex things like // noncontiguous selections if ((ranges != null) && (ranges.length > 1)) { // make sure that they are in order if (ranges[0] > ranges[1]) { int temp = ranges[1]; ranges[1] = ranges[0]; ranges[0] = temp; } o = new AttributedCharacterSpanIterator (aci, ranges[0], ranges[1]+1); } return o; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/TextNode.java/clean/sources/org/apache/batik/gvt/TextNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 23204, 1435, 288, 540, 509, 8526, 7322, 273, 977, 15775, 18, 588, 7416, 12, 1077, 77, 16, 2376, 3882, 16, 679, 3882, 1769, 3639, 1033, 320, 273, 446, 31, 202, 759, 2660, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23204, 1435, 288, 540, 509, 8526, 7322, 273, 977, 15775, 18, 588, 7416, 12, 1077, 77, 16, 2376, 3882, 16, 679, 3882, 1769, 3639, 1033, 320, 273, 446, 31, 202, 759, 2660, 30,...
+ "; level " + mhex.getElevation() + "; " + Terrain.TERRAIN_NAMES[mhex.getTerrainType()];
+ "; level " + mhex.getElevation();
private String[] getTipText(Point point) { // check if it's on an attack for (Iterator i = attackSprites.iterator(); i.hasNext();) { final AttackSprite sprite = (AttackSprite)i.next(); if (sprite.isInside(point)) { return sprite.getTooltip(); } } // check if it's on an entity for (Iterator i = entitySprites.iterator(); i.hasNext();) { final EntitySprite sprite = (EntitySprite)i.next(); if (sprite.isInside(point)) { return sprite.getTooltip(); } } // then return a tip for the hex it's on final Coords mcoords = getCoordsAt(point); if (!game.board.contains(mcoords)) { return null; } Hex mhex = game.board.getHex(mcoords); String[] strings = new String[1]; strings[0] = "Hex " + mcoords.getBoardNum() + "; level " + mhex.getElevation() + "; " + Terrain.TERRAIN_NAMES[mhex.getTerrainType()]; return strings; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3045e322f5d70e8d851c863279a5680bed754e84/BoardView1.java/buggy/megamek/src/megamek/client/ui/AWT/BoardView1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 8526, 3181, 625, 1528, 12, 2148, 1634, 13, 288, 3639, 368, 866, 309, 518, 1807, 603, 392, 13843, 3639, 364, 261, 3198, 277, 273, 13843, 3389, 24047, 18, 9838, 5621, 277, 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, 3238, 514, 8526, 3181, 625, 1528, 12, 2148, 1634, 13, 288, 3639, 368, 866, 309, 518, 1807, 603, 392, 13843, 3639, 364, 261, 3198, 277, 273, 13843, 3389, 24047, 18, 9838, 5621, 277, 18, ...
finish(); return; } else if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { FileOutputStream fos; try { fos = new FileOutputStream(tempFile); } catch (FileNotFoundException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); data.free(); finish(); return; } try { BucketTools.copyTo(data, fos, data.size()); } catch (IOException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); data.free(); try { fos.close(); } catch (IOException e1) { } finish(); return; } try { fos.close(); } catch (IOException e) { Logger.error(this, "Caught "+e+" closing file "+tempFile, e); } if(!tempFile.renameTo(targetFile)) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); } data.free(); trySendDataFoundOrGetFailed(); finish(); return; }
finish();
public void onSuccess(FetchResult result, ClientGetter state) { progressPending = null; FCPMessage msg = new DataFoundMessage(result, identifier); Bucket data = result.asBucket(); this.foundDataLength = data.size(); this.foundDataMimeType = result.getMimeType(); this.succeeded = true; finished = true; if(returnType == ClientGetMessage.RETURN_TYPE_DIRECT) { // Send all the data at once // FIXME there should be other options trySendDataFoundOrGetFailed(); AllDataMessage m = new AllDataMessage(data, identifier); if(persistenceType == PERSIST_CONNECTION) m.setFreeOnSent(); trySendAllDataMessage(m); finish(); return; } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { // Do nothing trySendDataFoundOrGetFailed(); data.free(); finish(); return; } else if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { // Write to temp file, then rename over filename FileOutputStream fos; try { fos = new FileOutputStream(tempFile); } catch (FileNotFoundException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); data.free(); finish(); return; } try { BucketTools.copyTo(data, fos, data.size()); } catch (IOException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); data.free(); try { fos.close(); } catch (IOException e1) { // Ignore } finish(); return; } try { fos.close(); } catch (IOException e) { Logger.error(this, "Caught "+e+" closing file "+tempFile, e); } if(!tempFile.renameTo(targetFile)) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null, identifier); trySendDataFoundOrGetFailed(); // Don't delete temp file, user might want it. } data.free(); trySendDataFoundOrGetFailed(); finish(); return; } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/2feef30f4266f2b8f54b92445661044a936a611a/ClientGet.java/clean/src/freenet/node/fcp/ClientGet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 8298, 8579, 273, 446, 31, 202, 202, 42, 4258, 1079, 1234, 273, 394, 1910, 2043, 1079, 12, 2088, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 8298, 8579, 273, 446, 31, 202, 202, 42, 4258, 1079, 1234, 273, 394, 1910, 2043, 1079, 12, 2088, 16, ...
GrouperLog.error(LOG, s, ERR_EFF_LOG + eS.getMessage());
ErrorLog.error(EventLog.class, E.EVENT_EFFADD + eS.getMessage());
private void _delEffs( GrouperSession s, String name, Subject subj, Field f, Set effs ) { try { GrouperSession root = GrouperSessionFinder.getTransientRootSession(); Iterator iter = effs.iterator(); while (iter.hasNext()) { Membership eff = (Membership) iter.next(); if (eff.getList().getType().equals(FieldType.ACCESS)) { this._eff(root, s, G_RP_E, name, subj, f, eff, "priv="); } else if (eff.getList().getType().equals(FieldType.LIST)) { this._eff(root, s, G_DM_E, name, subj, f, eff, "list="); } else if (eff.getList().getType().equals(FieldType.NAMING)) { this._eff(root, s, S_RP_E, name, subj, f, eff, "priv="); } } root.stop(); } catch (SessionException eS) { GrouperLog.error(LOG, s, ERR_EFF_LOG + eS.getMessage()); } } // private void _delEffs(s, name, subj, f, effs)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/11170f2a782492e4c1e43aa1adabfc484a62c9f3/EventLog.java/clean/grouper/src/grouper/edu/internet2/middleware/grouper/EventLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 3771, 41, 1403, 87, 12, 565, 3756, 264, 2157, 272, 16, 514, 508, 16, 9912, 15333, 16, 2286, 284, 16, 1000, 16419, 87, 225, 262, 225, 288, 565, 775, 288, 1377, 3756, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 3771, 41, 1403, 87, 12, 565, 3756, 264, 2157, 272, 16, 514, 508, 16, 9912, 15333, 16, 2286, 284, 16, 1000, 16419, 87, 225, 262, 225, 288, 565, 775, 288, 1377, 3756, 26...
return InternalValue.create(ValueHelper.convert(value, targetType), nsContext);
return InternalValue.create(ValueHelper.convert( value, targetType, ValueFactoryImpl.getInstance()), nsContext);
public InternalValue getInternalValue(int targetType) throws ValueFormatException, RepositoryException { try { if (targetType == PropertyType.BINARY) { // base64 encoded BINARY type; // decode using Reader ByteArrayOutputStream baos = new ByteArrayOutputStream(); Base64.decode(value, baos); return InternalValue.create(baos.toByteArray()); } else { // convert serialized value to InternalValue using // current namespace context of xml document return InternalValue.create(ValueHelper.convert(value, targetType), nsContext); } } catch (IOException e) { throw new RepositoryException("Error decoding Base64 content", e); } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/2b2fda09f04d8121a2f338acca40726a79f5ee13/StringValue.java/clean/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/StringValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3186, 620, 16918, 620, 12, 474, 16065, 13, 5411, 1216, 1445, 9291, 16, 13367, 288, 3639, 775, 288, 5411, 309, 261, 3299, 559, 422, 22983, 18, 16813, 13, 288, 7734, 368, 1026, 1105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3186, 620, 16918, 620, 12, 474, 16065, 13, 5411, 1216, 1445, 9291, 16, 13367, 288, 3639, 775, 288, 5411, 309, 261, 3299, 559, 422, 22983, 18, 16813, 13, 288, 7734, 368, 1026, 1105, ...
"{[Time].[1997].[Q2]})"); String expected = "[Time].[1997].[Q1]" + nl +
"{[Time].[1997].[Q2]})", "[Time].[1997].[Q1]" + nl +
public void testToggleDrillState3(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState(" + "{[Time].[1997].[Q1]," + " [Time].[1997].[Q2]," + " [Time].[1997].[Q2].[4]," + " [Time].[1997].[Q2].[6]," + " [Time].[1997].[Q3]}," + "{[Time].[1997].[Q2]})"); String expected = "[Time].[1997].[Q1]" + nl + "[Time].[1997].[Q2]" + nl + "[Time].[1997].[Q3]"; test.assertEquals(expected, test.toString(axis.positions)); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/70c4270c1bff30f538d792913a6023b7dd613649/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1842, 17986, 8956, 737, 1119, 23, 12, 42, 4773, 49, 485, 4709, 2449, 1842, 13, 288, 25083, 202, 6558, 2654, 273, 1842, 18, 8837, 6558, 22, 12, 6862, 9506, 202, 6, 17986,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1842, 17986, 8956, 737, 1119, 23, 12, 42, 4773, 49, 485, 4709, 2449, 1842, 13, 288, 25083, 202, 6558, 2654, 273, 1842, 18, 8837, 6558, 22, 12, 6862, 9506, 202, 6, 17986,...
public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } );
public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } );
protected Control createCustomArea( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; // gridLayout.marginTop = 15; container.setLayout( gridLayout ); Button chkbox = new Button( container, SWT.CHECK ); chkbox.setText( REMEMBER_DECISION ); chkbox.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } ); return super.createCustomArea( parent ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6f2bf55f121981dcb9b70c8145124efef6d7ada0/ExportToLibraryAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ExportToLibraryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 25083, 202, 55, 8588, 18, 9826, 11272, 6862,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 25083, 202, 55, 8588, 18, 9826, 11272, 6862,...
sbNewRepresentation.append("'");
sbNewRepresentation.append("'");
private String getConvertedBaseSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); StringBuffer sbNewRepresentation = new StringBuffer(""); while (strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); if (!sElement.startsWith("'")) { sbNewRepresentation.append("'"); sbNewRepresentation.append(sElement); sbNewRepresentation.append("'"); } else { sbNewRepresentation.append(sElement); } sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 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, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 19...
return 0;
return this.choiceGroup.getSelectedFlags(selectedArray_return);
public int getSelectedFlags(boolean[] selectedArray_return) { return 0; //TODO implement getSelectedFlags }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/4e8983ac96e4e1a995d9f8434572c31f4d05d76c/List.java/clean/enough-polish-j2me/source/src/de/enough/polish/ui/List.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 16625, 5094, 12, 6494, 8526, 3170, 1076, 67, 2463, 13, 202, 95, 202, 202, 2463, 374, 31, 202, 202, 759, 6241, 2348, 16625, 5094, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 16625, 5094, 12, 6494, 8526, 3170, 1076, 67, 2463, 13, 202, 95, 202, 202, 2463, 374, 31, 202, 202, 759, 6241, 2348, 16625, 5094, 202, 97, 2, -100, -100, -100, -100, -100,...
public void eventDispatched(WebclientEvent event){ boolean enabledState; String status; if (event instanceof DocumentLoadEvent) { switch ((int) event.getType()) { case ((int) DocumentLoadEvent.START_DOCUMENT_LOAD_EVENT_MASK): stopButton.setEnabled(true); refreshButton.setEnabled(true); currentURL = (String) event.getEventData(); System.out.println("debug: edburns: Currently Viewing: " + currentURL); statusLabel.setText("Starting to load " + currentURL); urlField.setText(currentURL); currentDocument = null; break; case ((int) DocumentLoadEvent.END_DOCUMENT_LOAD_EVENT_MASK): stopButton.setEnabled(false); backButton.setEnabled(history.canBack()); backMenuItem.setEnabled(history.canBack()); forwardButton.setEnabled(history.canForward()); forwardMenuItem.setEnabled(history.canForward()); populateHistoryMenu(); statusLabel.setText("Done."); urlStatusLabel.setText(""); currentDocument = currentPage.getDOM(); // add the new document to the domViewer if (null != currentDocument && null != domViewer) { domViewer.setDocument(currentDocument); } break; case ((int) DocumentLoadEvent.PROGRESS_URL_LOAD_EVENT_MASK): status = "Status: " + (String) event.getEventData(); statusLabel.setText(status); break; case ((int) DocumentLoadEvent.STATUS_URL_LOAD_EVENT_MASK): status = "Status: " + (String) event.getEventData(); statusLabel.setText(status); break; case ((int) DocumentLoadEvent.START_URL_LOAD_EVENT_MASK): status = (String) event.getEventData(); urlStatusLabel.setText("startURL: " + status); break; case ((int) DocumentLoadEvent.END_URL_LOAD_EVENT_MASK): status = (String) event.getEventData(); urlStatusLabel.setText(" endURL: " + status); break; } }}
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/afee19ff581e3d13844917014bf035cd25e515ae/EMWindow.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 871, 5325, 329, 12, 4079, 2625, 1133, 871, 15329, 565, 1250, 3696, 1119, 31, 565, 514, 1267, 31, 565, 309, 261, 2575, 1276, 4319, 2563, 1133, 13, 288, 3639, 1620, 14015, 474, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 871, 5325, 329, 12, 4079, 2625, 1133, 871, 15329, 565, 1250, 3696, 1119, 31, 565, 514, 1267, 31, 565, 309, 261, 2575, 1276, 4319, 2563, 1133, 13, 288, 3639, 1620, 14015, 474, 13, ...
ISearchScope searchScope = SModelSearchUtil.createModelAndImportedModelsScope(sourceNode.getModel(), false, scope);
ISearchScope searchScope = (ISearchScope) status.getUserObject();
private static List<INodeSubstituteAction> createPrimaryReferentSubstituteActions(SNode sourceNode, SNode currentReferent, LinkDeclaration linkDeclaration, final Condition<SNode> filterCondition, final IScope scope) { final ConceptDeclaration referentConcept = linkDeclaration.getTarget(); if (referentConcept == null) { return Collections.emptyList(); } // test { ConceptDeclaration referenceNodeConcept = SModelUtil.getConceptDeclaration(sourceNode, scope); INodeReferentSearchScopeProvider scopeProvider = ModelConstraintsManager.getInstance().getNodeReferentSearchScopeProvider(referenceNodeConcept, linkDeclaration.getRole()); if (scopeProvider != null) { String errorDescr = scopeProvider.canCreateNodeReferentSearchScope(sourceNode.getModel(), sourceNode.getParent(), sourceNode, referenceNodeConcept, linkDeclaration.getRole(), scope); if (errorDescr != null) return Collections.emptyList(); ISearchScope searchScope = scopeProvider.createNodeReferentSearchScope(sourceNode.getModel(), sourceNode.getParent(), sourceNode, referenceNodeConcept, linkDeclaration.getRole(), scope); return createDefaultReferentSubstituteActions(sourceNode, currentReferent, linkDeclaration, searchScope, filterCondition, scope); } } //todo i changed roots only to false because OWL and MSP4Web depends on this behaviour (kostik) ISearchScope searchScope = SModelSearchUtil.createModelAndImportedModelsScope(sourceNode.getModel(), false, scope); return createDefaultReferentSubstituteActions(sourceNode, currentReferent, linkDeclaration, searchScope, filterCondition, scope); }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/bd6ce20dc1007bda8ad2a120dd334d2cb440f3f9/ReferentSubstituteActionsHelper.java/clean/source/jetbrains/mps/smodel/action/ReferentSubstituteActionsHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 987, 32, 23184, 1676, 17207, 1803, 34, 752, 6793, 426, 3518, 1676, 17207, 6100, 12, 55, 907, 26799, 16, 348, 907, 783, 426, 3518, 16, 4048, 6094, 1692, 6094, 16, 727, 7949, 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, 760, 987, 32, 23184, 1676, 17207, 1803, 34, 752, 6793, 426, 3518, 1676, 17207, 6100, 12, 55, 907, 26799, 16, 348, 907, 783, 426, 3518, 16, 4048, 6094, 1692, 6094, 16, 727, 7949, 3...
if (currentListener == listener) currentListener = null;
if (currentListener == listener) { currentListener = null; }
public void removeDropTargetListener(TransferDropTargetListener listener) { if (currentListener == listener) currentListener = null; listeners.remove(listener); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/DelegatingDropAdapter.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/util/DelegatingDropAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 7544, 2326, 2223, 12, 5912, 7544, 2326, 2223, 2991, 13, 288, 3639, 309, 261, 2972, 2223, 422, 2991, 13, 5411, 783, 2223, 273, 446, 31, 3639, 4679, 18, 4479, 12, 12757, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 7544, 2326, 2223, 12, 5912, 7544, 2326, 2223, 2991, 13, 288, 3639, 309, 261, 2972, 2223, 422, 2991, 13, 5411, 783, 2223, 273, 446, 31, 3639, 4679, 18, 4479, 12, 12757, ...
for (int i=0; i<filesets.size(); i++) {
for (int i = 0; i < filesets.size(); i++) {
public void execute() throws BuildException { Vector savedTransaction = (Vector) transactions.clone(); String savedSqlCommand = sqlCommand; sqlCommand = sqlCommand.trim(); try { if (srcFile == null && sqlCommand.length()==0 && filesets.isEmpty()) { if (transactions.size() == 0) { throw new BuildException("Source file or fileset, " + "transactions or sql statement " + "must be set!", location); } } if (driver == null) { throw new BuildException("Driver attribute must be set!", location); } if (userId == null) { throw new BuildException("User Id attribute must be set!", location); } if (password == null) { throw new BuildException("Password attribute must be set!", location); } if (url == null) { throw new BuildException("Url attribute must be set!", location); } if (srcFile != null && !srcFile.exists()) { throw new BuildException("Source file does not exist!", location); } Driver driverInstance = null; try { Class dc; if (classpath != null) { // check first that it is not already loaded otherwise // consecutive runs seems to end into an OutOfMemoryError // or it fails when there is a native library to load // several times. // this is far from being perfect but should work // in most cases. synchronized (loaderMap){ if (caching){ loader = (AntClassLoader)loaderMap.get(driver); } if (loader == null){ log( "Loading " + driver + " using AntClassLoader with classpath " + classpath, Project.MSG_VERBOSE ); loader = new AntClassLoader(project, classpath); if (caching){ loaderMap.put(driver, loader); } } else { log("Loading " + driver + " using a cached AntClassLoader.", Project.MSG_VERBOSE); } } dc = loader.loadClass(driver); } else { log("Loading " + driver + " using system loader.", Project.MSG_VERBOSE); dc = Class.forName(driver); } driverInstance = (Driver) dc.newInstance(); }catch(ClassNotFoundException e){ throw new BuildException("Class Not Found: JDBC driver " + driver + " could not be loaded", location); }catch(IllegalAccessException e){ throw new BuildException("Illegal Access: JDBC driver " + driver + " could not be loaded", location); }catch(InstantiationException e) { throw new BuildException("Instantiation Exception: JDBC driver " + driver + " could not be loaded", location); } // deal with the filesets for (int i=0; i<filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(project); File srcDir = fs.getDir(project); String[] srcFiles = ds.getIncludedFiles(); // Make a transaction for each file for ( int j=0 ; j<srcFiles.length ; j++ ) { Transaction t = createTransaction(); t.setSrc(new File(srcDir, srcFiles[j])); } } // Make a transaction group for the outer command Transaction t = createTransaction(); t.setSrc(srcFile); t.addText(sqlCommand); try{ log("connecting to " + url, Project.MSG_VERBOSE ); Properties info = new Properties(); info.put("user", userId); info.put("password", password); conn = driverInstance.connect(url, info); if (conn == null) { // Driver doesn't understand the URL throw new SQLException("No suitable Driver for "+url); } if (!isValidRdbms(conn)) { return; } conn.setAutoCommit(autocommit); statement = conn.createStatement(); PrintStream out = System.out; try { if (output != null) { log("Opening PrintStream to output file " + output, Project.MSG_VERBOSE); out = new PrintStream( new BufferedOutputStream( new FileOutputStream(output .getAbsolutePath(), append))); } // Process all transactions for (Enumeration e = transactions.elements(); e.hasMoreElements();) { ((Transaction) e.nextElement()).runTransaction(out); if (!autocommit) { log("Commiting transaction", Project.MSG_VERBOSE); conn.commit(); } } } finally { if (out != null && out != System.out) { out.close(); } } } catch(IOException e){ if (!autocommit && conn != null && onError.equals("abort")) { try { conn.rollback(); } catch (SQLException ex) {} } throw new BuildException(e, location); } catch(SQLException e){ if (!autocommit && conn != null && onError.equals("abort")) { try { conn.rollback(); } catch (SQLException ex) {} } throw new BuildException(e, location); } finally { try { if (statement != null) { statement.close(); } if (conn != null) { conn.close(); } } catch (SQLException e) {} } log(goodSql + " of " + totalSql + " SQL statements executed successfully"); } finally { transactions = savedTransaction; sqlCommand = savedSqlCommand; } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/SQLExec.java/buggy/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 5589, 5198, 3342, 273, 261, 5018, 13, 8938, 18, 14056, 5621, 3639, 514, 5198, 5101, 2189, 273, 1847, 2189, 31, 3639, 1847, 2189, 273, 1847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 5589, 5198, 3342, 273, 261, 5018, 13, 8938, 18, 14056, 5621, 3639, 514, 5198, 5101, 2189, 273, 1847, 2189, 31, 3639, 1847, 2189, 273, 1847, ...
AST __t273 = _t; AST tmp18_AST_in = (AST)_t;
AST __t282 = _t; AST tmp20_AST_in = (AST)_t;
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST t = null; AST varName = null; AST posVar = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t247 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(context); int cardinality = Cardinality.EXACTLY_ONE; expr(_t,expr); _t = _retTree; t = (AST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { AST tmp4_AST_in = (AST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality = Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr = new CastExpression(context, expr, code, cardinality); path.add(castExpr); _t = __t247; _t = _t.getNextSibling(); break; } case COMMA: { AST __t249 = _t; AST tmp5_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); _t = __t249; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t250 = _t; AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); expr(_t,testExpr); _t = _retTree; expr(_t,thenExpr); _t = _retTree; expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); _t = __t250; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t251 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt262=0; _loop262: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t253 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt257=0; _loop257: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t255 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (AST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar = posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t255; _t = _t.getNextSibling(); } else { if ( _cnt257>=1 ) { break _loop257; } else {throw new NoViableAltException(_t);} } _cnt257++; } while (true); } _t = __t253; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t258 = _t; AST tmp9_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt261=0; _loop261: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t260 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t260; _t = _t.getNextSibling(); } else { if ( _cnt261>=1 ) { break _loop261; } else {throw new NoViableAltException(_t);} } _cnt261++; } while (true); } _t = __t258; _t = _t.getNextSibling(); break; } default: { if ( _cnt262>=1 ) { break _loop262; } else {throw new NoViableAltException(_t);} } } _cnt262++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp10_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t265 = _t; AST tmp11_AST_in = (AST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt271=0; _loop271: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { AST tmp12_AST_in = (AST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { AST tmp13_AST_in = (AST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { AST tmp14_AST_in = (AST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { AST tmp15_AST_in = (AST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { AST tmp16_AST_in = (AST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt271>=1 ) { break _loop271; } else {throw new NoViableAltException(_t);} } _cnt271++; } while (true); } _t = __t265; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr)expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } expr.setOrderSpecs(orderSpecs); } action= expr; } path.add(action); _t = __t251; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t272 = _t; AST tmp17_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t272; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t273 = _t; AST tmp18_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t273; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t274 = _t; AST tmp19_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr pathExpr= new PathExpr(context); path.addPath(pathExpr); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { expr(_t,pathExpr); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t274; _t = _t.getNextSibling(); break; } case UNION: { AST __t276 = _t; AST tmp20_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t276; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); break; } case ABSOLUTE_SLASH: { AST __t277 = _t; AST tmp21_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t277; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t279 = _t; AST tmp22_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t279; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t281 = _t; AST tmp23_AST_in = (AST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); expr(_t,start); _t = _retTree; expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); _t = __t281; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 104: case 105: case LITERAL_parent: case LITERAL_ancestor: case 108: case 109: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case LCURLY: case XML_COMMENT: case XML_PI: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 90...
public byte[] getData(int tagSignature)
public byte[] getData()
public byte[] getData(int tagSignature) { if (tagSignature == icSigHead) return header.getData(getSize()); TagEntry t = (TagEntry) tagTable.get(TagEntry.tagHashKey(tagSignature)); if (t == null) return null; return t.getData(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/ICC_Profile.java/buggy/core/src/classpath/java/java/awt/color/ICC_Profile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 4303, 1435, 225, 288, 565, 309, 261, 2692, 5374, 422, 13579, 8267, 1414, 13, 1377, 327, 1446, 18, 588, 751, 12, 588, 1225, 10663, 565, 4034, 1622, 268, 273, 261, 1805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 4303, 1435, 225, 288, 565, 309, 261, 2692, 5374, 422, 13579, 8267, 1414, 13, 1377, 327, 1446, 18, 588, 751, 12, 588, 1225, 10663, 565, 4034, 1622, 268, 273, 261, 1805, ...
stringBuffer.append(TEXT_216);
stringBuffer.append(TEXT_183);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenNodeLabel genLabel = (GenNodeLabel) genElement;final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];GenNode genHost = genLabel.getNode();GenClass underlyingMetaClass = genHost.getDomainMetaClass();GenDiagram genDiagram = genLabel.getDiagram();LabelModelFacet labelModelFacet = genLabel.getModelFacet();final boolean isReadOnly = genLabel.isReadOnly(); 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); } stringBuffer.append(TEXT_4); stringBuffer.append(TEXT_5); 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_6); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_7); } if (needsCastToEObject) { stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_9); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_12); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_13); if (needsCastToResultType) { stringBuffer.append(TEXT_14); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_16); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_17); } stringBuffer.append(TEXT_18); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_19); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_20); importManager.emitPackageStatement(stringBuffer); stringBuffer.append(TEXT_21); importManager.addImport("org.eclipse.gef.EditPart");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_22); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_24); {GenCommonBase genCommonBase = genLabel; stringBuffer.append(TEXT_25); stringBuffer.append(TEXT_26); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_27); } stringBuffer.append(TEXT_28); if (!isReadOnly) { stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_30); } stringBuffer.append(TEXT_31); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_32); final String primaryView = "getUpdatableParent().getDiagramNode()"; final String resolvedSemanticElement = "resolveSemanticElement()"; if (!isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_33); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_37); stringBuffer.append(TEXT_38); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_43); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_49); stringBuffer.append(primaryView); stringBuffer.append(TEXT_50); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_57); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_58); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_61); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_64); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_69); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_72); } else { stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_76); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_83); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_86); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_87); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_88); } stringBuffer.append(TEXT_89); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_91); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_93); stringBuffer.append(i); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_95); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_96); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_97); } stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_99); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_102); } else { stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_104); } } stringBuffer.append(TEXT_105); } stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); if (!isReadOnly) { stringBuffer.append(TEXT_108); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); stringBuffer.append(TEXT_119); /*genFeature.getObjectType() throws NPE on primitive types. This is a workaround. */HashMap primitiveTypeToWrapperClassName = new HashMap();primitiveTypeToWrapperClassName.put(Boolean.TYPE, "Boolean");primitiveTypeToWrapperClassName.put(Byte.TYPE, "Byte");primitiveTypeToWrapperClassName.put(Character.TYPE, "Character");primitiveTypeToWrapperClassName.put(Double.TYPE, "Double");primitiveTypeToWrapperClassName.put(Float.TYPE, "Float");primitiveTypeToWrapperClassName.put(Integer.TYPE, "Integer");primitiveTypeToWrapperClassName.put(Long.TYPE, "Long");primitiveTypeToWrapperClassName.put(Short.TYPE, "Short");String viewPattern = null;String editPattern = null;if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; viewPattern = featureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { viewPattern = "{0}"; } editPattern = featureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { editPattern = "{0}"; }} else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; viewPattern = compositeFeatureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } viewPattern = patternBuffer.toString().trim(); } editPattern = compositeFeatureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } editPattern = patternBuffer.toString().trim(); }} stringBuffer.append(TEXT_120); stringBuffer.append(viewPattern); stringBuffer.append(TEXT_121); stringBuffer.append(editPattern); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_123); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_125); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_127); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; GenFeature feature = featureLabelModelFacet.getMetaFeature(); if (!feature.isPrimitiveType()) { stringBuffer.append(TEXT_128); myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_131); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_132); stringBuffer.append(primitiveTypeToWrapperClassName.get(feature.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_133); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_134); } stringBuffer.append(TEXT_135); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_137); for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_138); stringBuffer.append(primitiveTypeToWrapperClassName.get(next.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_139); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", next, underlyingMetaClass, false); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_140); } if (it.hasNext()) { stringBuffer.append(TEXT_141); } } stringBuffer.append(TEXT_142); } else { stringBuffer.append(TEXT_143); } stringBuffer.append(TEXT_144); stringBuffer.append(TEXT_145); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_146); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_149); stringBuffer.append(primaryView); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_154); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_158); } stringBuffer.append(TEXT_159); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_161); } stringBuffer.append(TEXT_162); stringBuffer.append(TEXT_163); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_166); stringBuffer.append(primaryView); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image")); stringBuffer.append(TEXT_173); if (genLabel.isElementIcon()) { stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.ImageDescriptor")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_177); } stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_179); stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_188); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_190); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_192); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_193); }} stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_195); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_200); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_202); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_203); }} stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_207); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_210); final Viewmap viewmap = genLabel.getViewmap(); stringBuffer.append(TEXT_211); final String figureQualifiedClassName;if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; figureQualifiedClassName = parentAssignedViewmap.getFigureQualifiedClassName() == null ? "org.eclipse.draw2d.IFigure" : parentAssignedViewmap.getFigureQualifiedClassName();} else if (viewmap instanceof FigureViewmap) { String figureQualifiedClassNameCandidate = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassNameCandidate == null || figureQualifiedClassNameCandidate.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.Label"; } else { figureQualifiedClassName = figureQualifiedClassNameCandidate; }} else if (viewmap instanceof SnippetViewmap) { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";} else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();} else { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";}final String figureImportedName;if (viewmap instanceof InnerClassViewmap) { figureImportedName = figureQualifiedClassName; //do not import inner class} else { figureImportedName = importManager.getImportedName(figureQualifiedClassName);}if (viewmap instanceof ParentAssignedViewmap) { final ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_213); stringBuffer.append((parentAssignedViewmap.getSetterName() == null ? "setLabel" : parentAssignedViewmap.getSetterName())); stringBuffer.append(TEXT_214); } else { stringBuffer.append(TEXT_215); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_216); if (viewmap instanceof FigureViewmap) { stringBuffer.append(TEXT_217); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_218); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_219); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_220); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_221); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_224); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_225); if ("org.eclipse.draw2d.Label".equals(figureQualifiedClassName) || viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_226); } else { stringBuffer.append(TEXT_227); } stringBuffer.append(TEXT_228); } /*not parent-assigned*/ stringBuffer.append(TEXT_229); if (!"org.eclipse.draw2d.Label".equals(figureQualifiedClassName) && viewmap instanceof InnerClassViewmap==false) { stringBuffer.append(TEXT_230); } stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_233); String labelSetterName = "setLabel"; // same assumption in NodeEditPartString labelFigureClassName = "org.eclipse.draw2d.IFigure";if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; if (parentAssignedViewmap.getSetterName() != null) { labelSetterName = parentAssignedViewmap.getSetterName(); } if (parentAssignedViewmap.getFigureQualifiedClassName() != null) { labelFigureClassName = parentAssignedViewmap.getFigureQualifiedClassName(); }} // FIXME perhaps, there's no sense to have setLabel for any other viewmap than ParentAssigned? stringBuffer.append(TEXT_234); stringBuffer.append(labelSetterName); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName(labelFigureClassName)); stringBuffer.append(TEXT_236); if ("org.eclipse.draw2d.Label".equals(labelFigureClassName)) { stringBuffer.append(TEXT_237); } else { stringBuffer.append(TEXT_238); } stringBuffer.append(TEXT_239); if (viewmap instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) viewmap).getClassBody(); stringBuffer.append(TEXT_240); stringBuffer.append(classBody); stringBuffer.append(TEXT_241); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_242); } } stringBuffer.append(TEXT_243); importManager.emitSortedImports(); stringBuffer.append(TEXT_244); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/de70953cec74fbba0ed0cfbed37c36c0b594b3db/NodeLabelEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeLabelEditPartGenerator.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, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 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, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5...
for (Object object : l) { iQuery.evict(object); }
public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Integer.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), PojosQP.klass(rootNodeType), PojosQP.ids(imageIds), PojosQP.options(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 565, 364, 261, 921, 733, 294, 328, 13, 288, 277, 1138, 18, 73, 11946, 12, 1612, 1769, 289, 225, 1000, 565, 364, 261, 921, 733, 294, 328, 13, 288, 277, 1138, 18, 73, 11946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 364, 261, 921, 733, 294, 328, 13, 288, 277, 1138, 18, 73, 11946, 12, 1612, 1769, 289, 225, 1000, 565, 364, 261, 921, 733, 294, 328, 13, 288, 277, 1138, 18, 73, 11946, ...
action = new IndexManagementHelper.IndexReuser(hsqldb, core.getQueueManager(), browserPanel.getUnknownIndexList(), browserPanel.getIndexTree(), button);
action = new IndexManagementHelper.IndexReuser(hsqldb, core.getQueueManager(), browserPanel.getUnknownIndexList(), browserPanel.getIndexTree(), core.getMainWindow(), button);
public boolean run(Core core) { this.core = core; if(core.getPluginManager().getPlugin("thaw.plugins.Hsqldb") == null) { Logger.info(this, "Loading Hsqldb plugin"); if(!core.getPluginManager().loadPlugin("thaw.plugins.Hsqldb") || !core.getPluginManager().runPlugin("thaw.plugins.Hsqldb")) { Logger.error(this, "Unable to load thaw.plugins.Hsqldb !"); return false; } } hsqldb = (Hsqldb)core.getPluginManager().getPlugin("thaw.plugins.Hsqldb"); hsqldb.registerChild(this); boolean newDb; newDb = false; if (core.getConfig().getValue("indexDatabaseVersion") == null) { TableCreator.createTables(hsqldb); newDb = true; core.getConfig().setValue("indexDatabaseVersion", "1"); } browserPanel = new IndexBrowserPanel(hsqldb, core.getQueueManager(), core.getConfig()); setMainWindow(core.getMainWindow()); core.getMainWindow().getTabbedPane().addChangeListener(this); core.getMainWindow().addTab(I18n.getMessage("thaw.plugin.index.indexes"), IconBox.minIndexBrowser, browserPanel.getPanel()); browserPanel.restoreState(); JButton button; IndexManagementHelper.IndexAction action; button = new JButton(IconBox.refreshAction); button.setToolTipText(I18n.getMessage("thaw.plugin.index.downloadIndexes")); action = new IndexManagementHelper.IndexDownloader(button); action.setTarget(browserPanel.getIndexTree().getRoot()); /* TODO : Listen to tree to only refresh the selected node */ addButtonToTheToolbar(button); button = new JButton(IconBox.indexReuse); button.setToolTipText(I18n.getMessage("thaw.plugin.index.addAlreadyExistingIndex")); action = new IndexManagementHelper.IndexReuser(hsqldb, core.getQueueManager(), browserPanel.getUnknownIndexList(), browserPanel.getIndexTree(), button); action.setTarget(browserPanel.getIndexTree().getRoot()); addButtonToTheToolbar(button); button = new JButton(IconBox.indexNew); button.setToolTipText(I18n.getMessage("thaw.plugin.index.createIndex")); action = new IndexManagementHelper.IndexCreator(hsqldb, core.getQueueManager(), browserPanel.getUnknownIndexList(), browserPanel.getIndexTree(), button); action.setTarget(browserPanel.getIndexTree().getRoot()); addButtonToTheToolbar(button); if (newDb) { IndexManagementHelper.addIndex(hsqldb, core.getQueueManager(), browserPanel.getUnknownIndexList(), browserPanel.getIndexTree(), browserPanel.getIndexTree().getRoot(), DEFAULT_INDEX); } stateChanged(null); return true; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/e471bc762e2a8fa953ffc9556bb69ca89bb11c82/IndexBrowser.java/buggy/src/thaw/plugins/IndexBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1086, 12, 4670, 2922, 13, 288, 202, 202, 2211, 18, 3644, 273, 2922, 31, 202, 202, 430, 12, 3644, 18, 588, 3773, 1318, 7675, 588, 3773, 2932, 451, 2219, 18, 8057, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1086, 12, 4670, 2922, 13, 288, 202, 202, 2211, 18, 3644, 273, 2922, 31, 202, 202, 430, 12, 3644, 18, 588, 3773, 1318, 7675, 588, 3773, 2932, 451, 2219, 18, 8057, 18, 4...
res.writeExternal( out );
try { res.writeExternal( out ); } catch (java.io.IOException ie) { logger.fatal("Couldn't write EjbResponse to output stream", ie); }
public void processEjbRequest(ObjectInputStream in, ObjectOutputStream out) throws Exception{ EJBRequest req = new EJBRequest(); EJBResponse res = new EJBResponse(); // TODO:2: This method can throw a large number of exceptions, we should // be prepared to handle them all. Look in the ObejctOutputStream code // for a full list of the exceptions thrown. // java.io.WriteAbortedException can be thrown containing a // try { req.readExternal( in ); } catch (java.io.WriteAbortedException e){ if ( e.detail instanceof java.io.NotSerializableException){ //TODO:1: Log this warning better. Include information on what bean is to blame throw new Exception("Client attempting to serialize unserializable object: "+ e.detail.getMessage()); } else { throw e.detail; } } catch (java.io.EOFException e) { throw new Exception("Reached the end of the stream before the full request could be read"); } catch (Throwable t){ throw new Exception("Cannot read client request: "+ t.getClass().getName()+" "+ t.getMessage()); } CallContext call = null; DeploymentInfo di = null; RpcContainer c = null;; try{ di = getDeployment(req); } catch (RemoteException e){ logger.warn( req + "No such deployment: "+e.getMessage()); res.setResponse( EJB_SYS_EXCEPTION, e); res.writeExternal( out ); return; } catch ( Throwable t ){ String message = "Unkown error occured while retreiving deployment:"+t.getMessage(); logger.fatal( req + message, t); RemoteException e = new RemoteException("The server has encountered a fatal error and must be restarted."+message); res.setResponse( EJB_ERROR , e ); res.writeExternal( out ); return; } try { call = CallContext.getCallContext(); call.setEJBRequest( req ); call.setDeploymentInfo( di ); } catch ( Throwable t ){ logger.fatal( req + "Unable to set the thread context for this request: ", t); RemoteException e = new RemoteException("The server has encountered a fatal error and must be restarted."); res.setResponse( EJB_ERROR , e ); res.writeExternal( out ); return; } logger.info( "EJB REQUEST : "+req ); try { switch (req.getRequestMethod()) { // Remote interface methods case EJB_OBJECT_BUSINESS_METHOD: doEjbObject_BUSINESS_METHOD( req, res ); break; // Home interface methods case EJB_HOME_CREATE: doEjbHome_CREATE( req, res ); break; case EJB_HOME_FIND: doEjbHome_FIND( req, res ); break; // javax.ejb.EJBObject methods case EJB_OBJECT_GET_EJB_HOME: doEjbObject_GET_EJB_HOME( req, res ); break; case EJB_OBJECT_GET_HANDLE: doEjbObject_GET_HANDLE( req, res ); break; case EJB_OBJECT_GET_PRIMARY_KEY: doEjbObject_GET_PRIMARY_KEY( req, res ); break; case EJB_OBJECT_IS_IDENTICAL: doEjbObject_IS_IDENTICAL( req, res ); break; case EJB_OBJECT_REMOVE: doEjbObject_REMOVE( req, res ); break; // javax.ejb.EJBHome methods case EJB_HOME_GET_EJB_META_DATA: doEjbHome_GET_EJB_META_DATA( req, res ); break; case EJB_HOME_GET_HOME_HANDLE: doEjbHome_GET_HOME_HANDLE( req, res ); break; case EJB_HOME_REMOVE_BY_HANDLE: doEjbHome_REMOVE_BY_HANDLE( req, res ); break; case EJB_HOME_REMOVE_BY_PKEY: doEjbHome_REMOVE_BY_PKEY( req, res ); break; } } catch (org.openejb.InvalidateReferenceException e) { res.setResponse(EJB_SYS_EXCEPTION, e.getRootCause()); } catch (org.openejb.ApplicationException e) { res.setResponse(EJB_APP_EXCEPTION, e.getRootCause()); } catch (org.openejb.SystemException e){ res.setResponse(EJB_ERROR, e.getRootCause()); // TODO:2: This means a severe error occured in OpenEJB // we should restart the container system or take other // aggressive actions to attempt recovery. logger.fatal( req+": OpenEJB encountered an unknown system error in container: ", e); } catch (java.lang.Throwable t){ //System.out.println(req+": Unkown error in container: "); res.setResponse(EJB_ERROR, t); logger.fatal( req+": Unkown error in container: ", t); } finally { logger.info( "EJB RESPONSE: "+res ); res.writeExternal( out ); call.reset(); } }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/e6d37e7c20825a3f7812d90f38772c91519a585a/EjbDaemon.java/buggy/openejb0/src/server/org/openejb/server/EjbDaemon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 41, 10649, 691, 12, 921, 4348, 316, 16, 23438, 596, 13, 1216, 1185, 95, 7734, 12157, 691, 1111, 273, 394, 12157, 691, 5621, 3639, 12157, 1064, 400, 273, 394, 12157, 1064,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 41, 10649, 691, 12, 921, 4348, 316, 16, 23438, 596, 13, 1216, 1185, 95, 7734, 12157, 691, 1111, 273, 394, 12157, 691, 5621, 3639, 12157, 1064, 400, 273, 394, 12157, 1064,...
public static double jsFunction_setUTCFullYear(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 3, false, funObj);
private double jsFunction_setUTCFullYear(Object[] args) { return makeDate(args, 3, false);
public static double jsFunction_setUTCFullYear(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 3, false, funObj); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 5080, 5593, 12, 1042, 9494, 16, 4766, 10402, 22780, 15261, 16, 4766, 10402, 1033, 8526, 833, 16, 4766, 10402, 4284, 9831, 2675, 13, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 5080, 5593, 12, 1042, 9494, 16, 4766, 10402, 22780, 15261, 16, 4766, 10402, 1033, 8526, 833, 16, 4766, 10402, 4284, 9831, 2675, 13, 565, 288, ...
midletClassNames[i] = midlets[i].getClassName();
String className = midlets[i].getClassName(); if (useDefaultPackage) { int dotIndex = className.lastIndexOf('.'); if (dotIndex != -1) { className = className.substring( dotIndex + 1 ); } } midletClassNames[i] = className;
public String[] getMidletClassNames() { Midlet[] midlets = getMidlets(); String[] midletClassNames = new String[ midlets.length ]; for (int i = 0; i < midlets.length; i++) { midletClassNames[i] = midlets[i].getClassName(); } return midletClassNames; }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/3b8c8b6c4d94de23963f563b591ccfed1277b62e/BuildSetting.java/buggy/enough-polish-build/source/src/de/enough/polish/ant/build/BuildSetting.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 2108, 350, 1810, 18127, 1435, 288, 202, 202, 20711, 1810, 8526, 7501, 17307, 273, 2108, 350, 17307, 5621, 202, 202, 780, 8526, 7501, 1810, 18127, 273, 394, 514, 63, 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, 225, 202, 482, 514, 8526, 2108, 350, 1810, 18127, 1435, 288, 202, 202, 20711, 1810, 8526, 7501, 17307, 273, 2108, 350, 17307, 5621, 202, 202, 780, 8526, 7501, 1810, 18127, 273, 394, 514, 63, 7...
throws ProxyException
throws ProxyException, IOException
public void testGetMetadataNotPresent() throws ProxyException { String path = "org/apache/maven/test/dummy-artifact/1.0/maven-metadata.xml"; File expectedFile = new File( defaultManagedRepository.getBasedir(), path ); assertFalse( expectedFile.exists() ); try { File file = requestHandler.get( path, proxiedRepositories, defaultManagedRepository ); fail( "Found file: " + file + "; but was expecting a failure" ); } catch ( ResourceDoesNotExistException e ) { // expected assertFalse( expectedFile.exists() ); } }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/2ba752a19147094d8b5145730c46f8f1a0bed7dc/ProxyRequestHandlerTest.java/buggy/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/ProxyRequestHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 2277, 1248, 6351, 1435, 3639, 1216, 7659, 503, 16, 1860, 565, 288, 3639, 514, 589, 273, 315, 3341, 19, 19211, 19, 81, 7638, 19, 3813, 19, 21050, 17, 17706, 19, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 2277, 1248, 6351, 1435, 3639, 1216, 7659, 503, 16, 1860, 565, 288, 3639, 514, 589, 273, 315, 3341, 19, 19211, 19, 81, 7638, 19, 3813, 19, 21050, 17, 17706, 19, 21,...
Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); }
Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); }
public String getText(Object object) { Size size = (Size)object; return getString("_UI_Size_type") + " " + size.getWidth(); //$NON-NLS-1$ //$NON-NLS-2$ }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/SizeItemProvider.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation.edit/src/org/eclipse/gmf/runtime/notation/provider/SizeItemProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 12, 921, 733, 13, 288, 202, 202, 1225, 963, 273, 261, 1225, 13, 1612, 31, 202, 202, 2463, 4997, 2932, 67, 5370, 67, 1225, 67, 723, 7923, 397, 315, 315, 397, 963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 12, 921, 733, 13, 288, 202, 202, 1225, 963, 273, 261, 1225, 13, 1612, 31, 202, 202, 2463, 4997, 2932, 67, 5370, 67, 1225, 67, 723, 7923, 397, 315, 315, 397, 963, ...
m_instanceVals = new double [m_incrementalStructure.numAttributes()];
m_instanceVals = new double [m_format.numAttributes()];
public void acceptClassifier(IncrementalClassifierEvent e) { weka.classifiers.Classifier classifier = e.getClassifier(); Instance currentI = e.getCurrentInstance(); int status = e.getStatus(); int oldNumAtts = currentI.dataset().numAttributes(); if (status == IncrementalClassifierEvent.NEW_BATCH) { m_instanceEvent = new InstanceEvent(this, null, 0); // create new header structure Instances oldStructure = new Instances(currentI.dataset(), 0); String relationNameModifier = oldStructure.relationName() +"_with predictions"; if (!m_appendProbabilities || oldStructure.classAttribute().isNumeric()) { try { m_incrementalStructure = makeDataSetClass(oldStructure, classifier, relationNameModifier); m_instanceVals = new double [m_incrementalStructure.numAttributes()]; } catch (Exception ex) { ex.printStackTrace(); return; } } else if (m_appendProbabilities) { try { m_incrementalStructure = makeDataSetProbabilities(oldStructure, classifier, relationNameModifier); m_instanceVals = new double [m_incrementalStructure.numAttributes()]; } catch (Exception ex) { ex.printStackTrace(); return; } } } Instance newInst; try { // process the actual instance for (int i = 0; i < oldNumAtts; i++) { m_instanceVals[i] = currentI.value(i); } if (!m_appendProbabilities || currentI.dataset().classAttribute().isNumeric()) { double predClass = classifier.classifyInstance(currentI); m_instanceVals[m_instanceVals.length - 1] = predClass; } else if (m_appendProbabilities) { double [] preds = classifier.distributionForInstance(currentI); for (int i = oldNumAtts; i < m_instanceVals.length; i++) { m_instanceVals[i] = preds[i-oldNumAtts]; } } } catch (Exception ex) { ex.printStackTrace(); return; } finally { newInst = new Instance(currentI.weight(), m_instanceVals); newInst.setDataset(m_incrementalStructure); m_instanceEvent.setInstance(newInst); m_instanceEvent.setStatus(status); // notify listeners notifyInstanceAvailable(m_instanceEvent); } if (status == IncrementalClassifierEvent.BATCH_FINISHED) { // clean up m_incrementalStructure = null; m_instanceVals = null; m_instanceEvent = null; } }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/a8039ada141eef9b4afddb7259c97e813f3d4471/PredictionAppender.java/clean/weka/gui/beans/PredictionAppender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2791, 13860, 12, 10798, 287, 13860, 1133, 425, 13, 288, 565, 732, 7282, 18, 1106, 3383, 18, 13860, 14622, 273, 425, 18, 588, 13860, 5621, 565, 5180, 783, 45, 273, 425, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2791, 13860, 12, 10798, 287, 13860, 1133, 425, 13, 288, 565, 732, 7282, 18, 1106, 3383, 18, 13860, 14622, 273, 425, 18, 588, 13860, 5621, 565, 5180, 783, 45, 273, 425, 18, 58...
} codePoint = reader.getCodePoint(); }
stmt = database.newDRDAStatement(pkgnamcsn); String sqlStmt = parsePRPSQLSTTobjects(stmt); if (databaseToSet != null) stmt.setDatabase(database); stmt.explicitPrepare(sqlStmt); database.setCurrentStatement(stmt);
private int parsePRPSQLSTT() throws DRDAProtocolException,SQLException { int codePoint; boolean rtnsqlda = false; boolean rtnOutput = true; // Return output SQLDA is default String typdefnam; Pkgnamcsn pkgnamcsn = null; DRDAStatement stmt = null; Database databaseToSet = null; reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.RDBNAM: setDatabase(CodePoint.PRPSQLSTT); databaseToSet = database; break; // required case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; //optional case CodePoint.RTNSQLDA: // Return SQLDA with description of statement rtnsqlda = readBoolean(CodePoint.RTNSQLDA); break; //optional case CodePoint.TYPSQLDA: rtnOutput = parseTYPSQLDA(); break; //optional case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } stmt = database.newDRDAStatement(pkgnamcsn); String sqlStmt = parsePRPSQLSTTobjects(stmt); if (databaseToSet != null) stmt.setDatabase(database); stmt.explicitPrepare(sqlStmt); // set the statement as the current statement database.setCurrentStatement(stmt); if (!rtnsqlda) return 0; else if (rtnOutput) return 2; else return 1; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 8025, 52, 3997, 882, 56, 1435, 1216, 16801, 9793, 5752, 503, 16, 23116, 202, 95, 202, 202, 474, 18614, 31, 202, 202, 6494, 8253, 2387, 1217, 2414, 273, 629, 31, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 8025, 52, 3997, 882, 56, 1435, 1216, 16801, 9793, 5752, 503, 16, 23116, 202, 95, 202, 202, 474, 18614, 31, 202, 202, 6494, 8253, 2387, 1217, 2414, 273, 629, 31, 20...
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir)
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir)
public static SequenceFile.Reader[] getReaders(Configuration conf, File dir) throws IOException { FileSystem fs = FileSystem.get(conf); File[] names = fs.listFiles(dir); // sort names, so that hash partitioning works Arrays.sort(names); SequenceFile.Reader[] parts = new SequenceFile.Reader[names.length]; for (int i = 0; i < names.length; i++) { parts[i] = new SequenceFile.Reader(fs, names[i].toString(), conf); } return parts; }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ee01fef4b4fb82c7492a4a747793839a4d14cd39/SequenceFileOutputFormat.java/buggy/src/java/org/apache/hadoop/mapred/SequenceFileOutputFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 8370, 812, 18, 2514, 8526, 19900, 414, 12, 1750, 2195, 16, 1387, 1577, 13, 565, 1216, 1860, 288, 565, 10931, 2662, 273, 10931, 18, 588, 12, 3923, 1769, 565, 1387, 8526, 1257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8370, 812, 18, 2514, 8526, 19900, 414, 12, 1750, 2195, 16, 1387, 1577, 13, 565, 1216, 1860, 288, 565, 10931, 2662, 273, 10931, 18, 588, 12, 3923, 1769, 565, 1387, 8526, 1257, ...
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
public RubyNumeric op_pow(RubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRuby(), 1); } else if (other.getLongValue() == 1) { return this; } else if (other.getLongValue() > 1) { return RubyBignum.newBignum(getRuby(), getLongValue()).op_pow(other); } else { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_pow(other); } } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyFixnum.java/clean/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 9902, 1061, 67, 23509, 12, 54, 10340, 921, 818, 13, 288, 3639, 19817, 9902, 1308, 273, 6389, 620, 12, 2107, 1769, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 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, 1071, 19817, 9902, 1061, 67, 23509, 12, 54, 10340, 921, 818, 13, 288, 3639, 19817, 9902, 1308, 273, 6389, 620, 12, 2107, 1769, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 327,...
case 140:
case 142:
public final Expression pathExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST pathExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST nc1 = null; org.exist.xquery.parser.XQueryAST nc = null; org.exist.xquery.parser.XQueryAST n = null; org.exist.xquery.parser.XQueryAST qn2 = null; org.exist.xquery.parser.XQueryAST qn3 = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST nc2 = null; org.exist.xquery.parser.XQueryAST nc3 = null; Expression rightStep= null; step= null; int axis= Constants.CHILD_AXIS; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_preceding: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_attribute: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_preceding: { axis=forwardAxis(_t); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case LITERAL_text: case LITERAL_node: case LITERAL_comment: case 140: { break; } default: { throw new NoViableAltException(_t); } } } NodeTest test; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case PREFIX_WILDCARD: { AST __t116 = _t; org.exist.xquery.parser.XQueryAST tmp62_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc1 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t116; _t = _t.getNextSibling(); QName qname= new QName(nc1.getText(), null, null); qname.setNamespaceURI(null); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case NCNAME: { AST __t117 = _t; nc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp63_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t117; _t = _t.getNextSibling(); String namespaceURI= context.getURIForPrefix(nc.getText()); QName qname= new QName(null, namespaceURI, nc.getText()); test= new NameTest(Type.ELEMENT, qname); if (axis == Constants.ATTRIBUTE_AXIS) test.setType(Type.ATTRIBUTE); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp64_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) test= new TypeTest(Type.ATTRIBUTE); else test= new TypeTest(Type.ELEMENT); break; } case LITERAL_node: { n = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_node); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for node() on the attribute axis"); test= new AnyNodeTest(); break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp65_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_text); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for text() on the attribute axis"); test= new TypeTest(Type.TEXT); break; } case LITERAL_element: { AST __t118 = _t; org.exist.xquery.parser.XQueryAST tmp66_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_element); _t = _t.getFirstChild(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for element() on the attribute axis"); test= new TypeTest(Type.ELEMENT); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn2.getText()); test= new NameTest(Type.ELEMENT, qname); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp67_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t118; _t = _t.getNextSibling(); break; } case ATTRIBUTE_TEST: { AST __t120 = _t; org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_TEST); _t = _t.getFirstChild(); test= new TypeTest(Type.ATTRIBUTE); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn3 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(context, qn3.getText()); test= new NameTest(Type.ATTRIBUTE, qname); axis= Constants.ATTRIBUTE_AXIS; break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp69_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t120; _t = _t.getNextSibling(); break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp70_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_comment); _t = _t.getNextSibling(); if (axis == Constants.ATTRIBUTE_AXIS) throw new XPathException(n, "Cannot test for comment() on the attribute axis"); test= new TypeTest(Type.COMMENT); break; } case 140: { org.exist.xquery.parser.XQueryAST tmp71_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,140); _t = _t.getNextSibling(); test= new TypeTest(Type.DOCUMENT); break; } default: { throw new NoViableAltException(_t); } } } step= new LocationStep(context, axis, test); path.add(step); { _loop123: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop123; } } while (true); } break; } case AT: { org.exist.xquery.parser.XQueryAST tmp72_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,AT); _t = _t.getNextSibling(); QName qname= null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { attr = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); qname= QName.parse(context, attr.getText(), null); break; } case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp73_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case PREFIX_WILDCARD: { AST __t125 = _t; org.exist.xquery.parser.XQueryAST tmp74_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t125; _t = _t.getNextSibling(); qname= new QName(nc2.getText(), null, null); break; } case NCNAME: { AST __t126 = _t; nc3 = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); org.exist.xquery.parser.XQueryAST tmp75_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t126; _t = _t.getNextSibling(); String namespaceURI= context.getURIForPrefix(nc3.getText()); if (namespaceURI == null) throw new EXistException("No namespace defined for prefix " + nc3.getText()); qname= new QName(null, namespaceURI, null); break; } default: { throw new NoViableAltException(_t); } } } NodeTest test= qname == null ? new TypeTest(Type.ATTRIBUTE) : new NameTest(Type.ATTRIBUTE, qname); step= new LocationStep(context, Constants.ATTRIBUTE_AXIS, test); path.add(step); { _loop128: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop128; } } while (true); } break; } case SELF: { org.exist.xquery.parser.XQueryAST tmp76_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SELF); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.SELF_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop130: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop130; } } while (true); } break; } case PARENT: { org.exist.xquery.parser.XQueryAST tmp77_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PARENT); _t = _t.getNextSibling(); step= new LocationStep(context, Constants.PARENT_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop132: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep) step); _t = _retTree; } else { break _loop132; } } while (true); } break; } case SLASH: { AST __t133 = _t; org.exist.xquery.parser.XQueryAST tmp78_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,SLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { if(((LocationStep) rightStep).getAxis() == -1) ((LocationStep) rightStep).setAxis(Constants.CHILD_AXIS); } else { rightStep.setPrimaryAxis(Constants.CHILD_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.CHILD_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t133; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == -1) ((LocationStep) step).setAxis(Constants.CHILD_AXIS); break; } case DSLASH: { AST __t135 = _t; org.exist.xquery.parser.XQueryAST tmp79_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,DSLASH); _t = _t.getFirstChild(); step=expr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { rightStep=expr(_t,path); _t = _retTree; if (rightStep instanceof LocationStep) { LocationStep rs= (LocationStep) rightStep; if (rs.getAxis() == Constants.ATTRIBUTE_AXIS) rs.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else rs.setAxis(Constants.DESCENDANT_SELF_AXIS); } else { rightStep.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); if(rightStep instanceof VariableReference) { rightStep = new SimpleStep(context, Constants.DESCENDANT_SELF_AXIS, rightStep); path.replaceLastExpression(rightStep); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t135; _t = _t.getNextSibling(); if (step instanceof LocationStep && ((LocationStep) step).getAxis() == -1) ((LocationStep) step).setAxis(Constants.DESCENDANT_SELF_AXIS); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 589, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 589, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 22...
parse(buffer.toString(), ParserLanguage.CPP, true, true);
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
public void test14_5_5_1s8a() { StringBuffer buffer = new StringBuffer(); buffer.append("// Guaranteed to be the same\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("// Guaranteed to be different\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+10>);\n"); //$NON-NLS-1$ buffer.append("template <int I> void f(A<I>, A<I+11>);\n"); //$NON-NLS-1$ try { parse(buffer.toString(), ParserLanguage.CPP, true, true); assertTrue(false); } catch (Exception e) { } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecFailingTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecFailingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3461, 67, 25, 67, 25, 67, 21, 87, 28, 69, 1435, 225, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 759, 6467, 30164, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3461, 67, 25, 67, 25, 67, 21, 87, 28, 69, 1435, 225, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 759, 6467, 30164, 358, ...
public BaseDescr lhs_unary() throws RecognitionException { BaseDescr d = null; BaseDescr u = null; FromDescr fm = null; AccumulateDescr ac = null; CollectDescr cs = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) int alt44=5; switch ( input.LA(1) ) { case 70: alt44=1; break; case 71: alt44=2; break; case 72: alt44=3; break; case ID: alt44=4; break; case LEFT_PAREN: alt44=5; break; default: if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("1218:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )", 44, 0, input); throw nvae; } switch (alt44) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1218:6: ( lhs_exist )=>u= lhs_exist { pushFollow(FOLLOW_lhs_exist_in_lhs_unary2852); u=lhs_exist(); _fsp--; if (failed) return d; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1219:5: ( lhs_not )=>u= lhs_not { pushFollow(FOLLOW_lhs_not_in_lhs_unary2860); u=lhs_not(); _fsp--; if (failed) return d; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1220:5: ( lhs_eval )=>u= lhs_eval { pushFollow(FOLLOW_lhs_eval_in_lhs_unary2868); u=lhs_eval(); _fsp--; if (failed) return d; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:5: ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? { pushFollow(FOLLOW_lhs_column_in_lhs_unary2876); u=lhs_column(); _fsp--; if (failed) return d; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:18: ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? int alt43=4; int LA43_0 = input.LA(1); if ( (LA43_0==47) ) { switch ( input.LA(2) ) { case 52: alt43=3; break; case 48: alt43=2; break; case ID: alt43=1; break; } } switch (alt43) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:14: ( ( from_statement ) )=> (fm= from_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:14: (fm= from_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1222:15: fm= from_statement { pushFollow(FOLLOW_from_statement_in_lhs_unary2896); fm=from_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { fm.setColumn((ColumnDescr) u); u=fm; } } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:14: ( ( accumulate_statement ) )=> (ac= accumulate_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:14: (ac= accumulate_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1223:15: ac= accumulate_statement { pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2918); ac=accumulate_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { ac.setResultColumn((ColumnDescr) u); u=ac; } } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:14: ( ( collect_statement ) )=> (cs= collect_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:14: (cs= collect_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1224:15: cs= collect_statement { pushFollow(FOLLOW_collect_statement_in_lhs_unary2939); cs=collect_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { cs.setResultColumn((ColumnDescr) u); u=cs; } } } break; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1226:5: '(' u= lhs ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2962); if (failed) return d; pushFollow(FOLLOW_lhs_in_lhs_unary2966); u=lhs(); _fsp--; if (failed) return d; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary2968); if (failed) return d; } break; } if ( backtracking==0 ) { d = u; } pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2978); opt_semicolon(); _fsp--; if (failed) return d; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
final FieldValue field = new MockField( "cheddar" );
final FieldValue field = FieldFactory.getFieldValue( "cheddar" );
public void testReturnValueConstraintAssertObject() throws Exception { final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( 1, (ReteooRuleBase) RuleBaseFactory.newRuleBase() ); final Rule rule = new Rule( "test-rule" ); final PropagationContext context = new PropagationContextImpl( 0, PropagationContext.ASSERTION, null, null ); final MockObjectSource source = new MockObjectSource( 15 ); final FieldExtractor extractor = new ClassFieldExtractor( Cheese.class, "type" ); final FieldValue field = new MockField( "cheddar" ); final Evaluator evaluator = ValueType.OBJECT_TYPE.getEvaluator( Operator.EQUAL ); final LiteralConstraint constraint = new LiteralConstraint( extractor, evaluator, field ); final AlphaNode alphaNode = new AlphaNode( 2, constraint, source ); final MockObjectSink sink = new MockObjectSink(); alphaNode.addObjectSink( sink ); final Cheese cheddar = new Cheese( "cheddar", 5 ); final DefaultFactHandle f0 = (DefaultFactHandle) workingMemory.assertObject( cheddar ); assertLength( 0, sink.getAsserted() ); // object should assert as it passes text alphaNode.assertObject( f0, context, workingMemory ); assertLength( 1, sink.getAsserted() ); final Object[] list = (Object[]) sink.getAsserted().get( 0 ); assertSame( cheddar, workingMemory.getObject( (DefaultFactHandle) list[0] ) ); final Cheese stilton = new Cheese( "stilton", 6 ); f0.setObject( stilton ); sink.getAsserted().clear(); // object should not assert as it does not pass text alphaNode.assertObject( f0, context, workingMemory ); assertLength( 0, sink.getAsserted() ); }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/47fb4db33a78ddc4cbf4c3f1ffb0a0e7f1ca2109/AlphaNodeTest.java/clean/drools-core/src/test/java/org/drools/reteoo/AlphaNodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19092, 5806, 8213, 921, 1435, 1216, 1185, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 404, 16, 28524, 6647, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19092, 5806, 8213, 921, 1435, 1216, 1185, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 404, 16, 28524, 6647, 261, ...